]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b60cea74
TT
12020-09-18 Tom Tromey <tromey@adacore.com>
2
3 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4 (windows_nat_target::wait): Update.
5 * target/wait.h (enum target_wait_flag): New. Use
6 DEF_ENUM_FLAGS_TYPE.
7 * target/target.h (target_wait): Change type of options.
8 * target.h (target_options_to_string, default_target_wait):
9 Update.
10 (struct target_ops) <wait>: Change type of options.
11 * target.c (target_wait, default_target_wait, do_option): Change
12 type of "options".
13 (target_options_to_string): Likewise.
14 * target-delegates.c: Rebuild.
15 * target-debug.h (target_debug_print_target_wait_flags): Rename
16 from target_debug_print_options.
17 * sol-thread.c (class sol_thread_target) <wait>: Update.
18 (sol_thread_target::wait): Update.
19 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
20 (rs6000_nat_target::wait): Update.
21 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
22 Update.
23 (remote_target::wait_ns, remote_target::wait_as): Change type of
24 "options".
25 (remote_target::wait): Update.
26 * remote-sim.c (struct gdbsim_target) <wait>: Update.
27 (gdbsim_target::wait): Update.
28 * record-full.c (class record_full_base_target) <wait>: Update.
29 (record_full_wait_1): Change type of "options".
30 (record_full_base_target::wait): Update.
31 * record-btrace.c (class record_btrace_target) <wait>: Update.
32 (record_btrace_target::wait): Update.
33 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
34 Update.
35 (ravenscar_thread_target::wait): Update.
36 * procfs.c (class procfs_target) <wait>: Update.
37 (procfs_target::wait): Update.
38 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
39 * obsd-nat.c (obsd_nat_target::wait): Update.
40 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
41 (nto_procfs_target::wait): Update.
42 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
43 * nbsd-nat.c (nbsd_wait): Change type of "options".
44 (nbsd_nat_target::wait): Update.
45 * linux-thread-db.c (class thread_db_target) <wait>: Update.
46 (thread_db_target::wait): Update.
47 * linux-nat.h (class linux_nat_target) <wait>: Update.
48 * linux-nat.c (linux_nat_target::wait): Update.
49 (linux_nat_wait_1): Update.
50 * infrun.c (do_target_wait_1, do_target_wait): Change type of
51 "options".
52 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
53 * inf-ptrace.c (inf_ptrace_target::wait): Update.
54 * go32-nat.c (struct go32_nat_target) <wait>: Update.
55 (go32_nat_target::wait): Update.
56 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
57 * gnu-nat.c (gnu_nat_target::wait): Update.
58 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
59 * fbsd-nat.c (fbsd_nat_target::wait): Update.
60 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
61 * darwin-nat.c (darwin_nat_target::wait): Update.
62 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
63 (bsd_uthread_target::wait): Update.
64 * aix-thread.c (class aix_thread_target) <wait>: Update.
65 (aix_thread_target::wait): Update.
66
0295dde6
AB
672020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * compile/compile-object-run.c (create_copied_type_recursive): New
70 function.
71 (compile_object_run): Use new function.
72
d3483b43
JT
732020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
74
75 * NEWS: Mention x86_64 Cygwin core file support.
76
e7d612ad
JT
772020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
78
79 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
80 (core_process_module_section): Handle NOTE_INFO_MODULE64.
81
aff9d387
JT
822020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
83
62a5151b
JT
84 * windows-tdep.h: Add prototypes.
85 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
86 (i386_windows_core_pid_to_str): Move and rename ...
87 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
88 (windows_core_pid_to_str): ... and here.
89 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
90
912020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
92 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
93 (amd64_windows_init_abi_common): ... and register.
94
7d155da3
JT
952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
96
97 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
98 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
99
e8ef12b9
PA
1002020-09-18 Pedro Alves <pedro@palves.net>
101
102 PR gdb/26631
103 * thread.c (thread_find_command): Switch inferior before calling
104 target methods.
105
c1e1314d
TT
1062020-09-17 Tom Tromey <tromey@adacore.com>
107
108 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
109 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
110 (tdesc_arch_data_up): New typedef.
111 (tdesc_use_registers, tdesc_data_alloc): Update.
112 (tdesc_data_cleanup): Don't declare.
113 * target-descriptions.c (tdesc_data_alloc): Return a
114 tdesc_arch_data_up.
115 (tdesc_arch_data_deleter::operator()): Rename from
116 tdesc_data_cleanup. Change argument type.
117 (tdesc_use_registers): Change early_data to an rvalue reference.
118 (tdesc_use_registers): Don't use delete.
119 * sparc-tdep.c (sparc32_gdbarch_init): Update.
120 * s390-tdep.c (s390_gdbarch_init): Update.
121 * rx-tdep.c (rx_gdbarch_init): Update.
122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
123 * riscv-tdep.c (riscv_gdbarch_init): Update.
124 * or1k-tdep.c (or1k_gdbarch_init): Update.
125 * nios2-tdep.c (nios2_gdbarch_init): Update.
126 * nds32-tdep.c (nds32_gdbarch_init): Update.
127 * mips-tdep.c (mips_gdbarch_init): Update.
128 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
129 * m68k-tdep.c (m68k_gdbarch_init): Update.
130 * i386-tdep.c (i386_gdbarch_init): Update.
131 * arm-tdep.c (arm_gdbarch_init): Update.
132 * arc-tdep.c (arc_tdesc_init): Update.
133 (arc_gdbarch_init): Update.
134 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
135
0363df3d
HD
1362020-09-17 Hannes Domani <ssbssa@yahoo.de>
137
138 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
139 for WOW64 processes.
140
280a9412
TT
1412020-09-17 Tom Tromey <tom@tromey.com>
142
143 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
144
6108fd18
TT
1452020-09-17 Tom Tromey <tom@tromey.com>
146
147 * value.c (preserve_values): Update.
148 * python/py-type.c (save_objfile_types): Update.
149 * guile/scm-type.c (save_objfile_types): Update.
150 * gdbtypes.h (create_copied_types_hash): Return htab_up.
151 * gdbtypes.c (create_copied_types_hash): Return htab_up.
152 * compile/compile-object-run.c (compile_object_run): Update.
153
fa9b1164
TT
1542020-09-17 Tom Tromey <tom@tromey.com>
155
156 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
157 Remove.
158 <m_table>: Now htab_up.
159 * typeprint.c (typedef_hash_table::recursively_update)
160 (typedef_hash_table::add_template_parameters)
161 (typedef_hash_table::typedef_hash_table): Update.
162 (typedef_hash_table::~typedef_hash_table): Remove.
163 (typedef_hash_table::typedef_hash_table)
164 (typedef_hash_table::find_global_typedef)
165 (typedef_hash_table::find_typedef): Update.
166
eb53f105
TT
1672020-09-17 Tom Tromey <tom@tromey.com>
168
169 * target-descriptions.c (tdesc_use_registers): Use htab_up.
170
7a8a5d47
TT
1712020-09-17 Tom Tromey <tom@tromey.com>
172
173 * linespec.c (class decode_compound_collector)
174 <~decode_compound_collector>: Remove.
175 <m_unique_syms>: Now htab_up.
176 (decode_compound_collector::operator ()): Update.
177 (class symtab_collector) <~symtab_collector>: Remove.
178 <m_symtab_table>: Now htab_up.
179 (symtab_collector::operator ()): Update.
180
99032cfc
TT
1812020-09-17 Tom Tromey <tom@tromey.com>
182
183 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
184 (filename_seen_cache::clear): Update.
185 (~filename_seen_cache): Remove.
186 (filename_seen_cache::seen): Update.
187 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
188 htab_up.
189 <~filename_seen_cache>: Remove.
190 <traverse>: Update.
191
32580f6d
TT
1922020-09-17 Tom Tromey <tom@tromey.com>
193
194 * completer.c (completion_tracker::discard_completions)
195 (completion_tracker::~completion_tracker)
196 (completion_tracker::maybe_add_completion)
197 (completion_tracker::remove_completion)
198 (completion_tracker::recompute_lowest_common_denominator)
199 (completion_tracker::build_completion_result): Update.
200 * completer.h (class completion_tracker) <have_completions>:
201 Update.
202 <m_entries_hash>: Now htab_up.
203
c1fb9836
TT
2042020-09-17 Tom Tromey <tom@tromey.com>
205
206 * breakpoint.c (ambiguous_names_p): Use htab_up.
207
88f07206
TT
2082020-09-17 Tom Tromey <tom@tromey.com>
209
210 * auto-load.c (struct auto_load_pspace_info)
211 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
212 <loaded_script_files, loaded_script_texts>: Change type to
213 htab_up.
214 (~auto_load_pspace_info) Remove.
215 (init_loaded_scripts_info, maybe_add_script_file)
216 (maybe_add_script_text, auto_load_info_scripts): Update.
217
9519b2ee
TT
2182020-09-17 Tom Tromey <tromey@adacore.com>
219
220 * c-exp.y (name_obstack): Now static.
221
d2cd4113
CC
2222020-09-17 Chungyi Chi <demonic@csie.io>
223
224 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
225
b650a282
SM
2262020-09-16 Simon Marchi <simon.marchi@efficios.com>
227
228 * breakpoint.h (init_catchpoint): Change int parameter to bool.
229 (add_solib_catchpoint): Likewise.
230 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
231 to bool.
232 (add_solib_catchpoint): Change int parameter/variable to bool.
233 (catch_load_or_unload): Likewise.
234 (init_catchpoint): Likewise.
235 (create_fork_vfork_event_catchpoint): Likewise.
236 (catch_fork_command_1): Likewise.
237 (catch_exec_command_1): Likewise.
238
4d0bcfcf
SM
2392020-09-16 Simon Marchi <simon.marchi@efficios.com>
240
241 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
242 Change instance_flags to m_instance_flags.
243
fe830662
TT
2442020-09-16 Tom Tromey <tromey@adacore.com>
245
246 PR gdb/26598:
247 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
248
fe5ddfc3
JB
2492020-09-16 John Baldwin <jhb@FreeBSD.org>
250
251 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
252 PL_FLAG_EXEC.
253 (fbsd_nat_target::insert_exec_catchpoint)
254 (fbsd_nat_target::remove_exec_catchpoint): Always define.
255 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
256 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
257
e911c666
JB
2582020-09-16 John Baldwin <jhb@FreeBSD.org>
259
260 * configure.ac: Remove check for kinfo_getvmmap().
261 * configure, config.in: Regenerate.
262 * fbsd-nat.c (fbsd_read_mapping): Remove
263 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
264 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
265 kinfo_get_vmmap() are always present.
266
1f17d372
JB
2672020-09-16 John Baldwin <jhb@FreeBSD.org>
268
269 * fbsd-nat.c: Always include support for
270 TARGET_OBJECT_SIGNAL_INFO.
271
bcb1da7f
JB
2722020-09-16 John Baldwin <jhb@FreeBSD.org>
273
274 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
275 sysctl and remove procfs fallback.
276
5515f729
JB
2772020-09-16 John Baldwin <jhb@FreeBSD.org>
278
279 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
280 * fbsd-nat.h: Likewise.
281
da1df1db
TBA
2822020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283
284 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
285 argument.
286
0e25e767
AB
2872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
288
289 * ada-lang.c (ada_language_data): Delete.
290 (ada_language): Remove references to ada_language_data.
291 * c-lang.c (c_language_data): Delete.
292 (c_language): Remove references to c_language_data.
293 (cplus_language_data): Delete.
294 (cplus_language): Remove references to cplus_language_data.
295 (asm_language_data): Delete.
296 (asm_language): Remove references to asm_language_data.
297 (minimal_language_data): Delete.
298 (minimal_language): Remove references to minimal_language_data.
299 * d-lang.c (d_language_data): Delete.
300 (d_language): Remove references to d_language_data.
301 * f-lang.c (f_language_data): Delete.
302 (f_language): Remove references to f_language_data.
303 * go-lang.c (go_language_data): Delete.
304 (go_language): Remove references to go_language_data.
305 * language.c (unknown_language_data): Delete.
306 (unknown_language): Remove references to unknown_language_data.
307 (auto_language_data): Delete.
308 (auto_language): Remove references to auto_language_data.
309 * language.h (language_data): Delete struct.
310 (language_defn): No longer inherit from language_data.
311 * m2-lang.c (m2_language_data): Delete.
312 (m2_language): Remove references to m2_language_data.
313 * objc-lang.c (objc_language_data): Delete.
314 (objc_language): Remove references to objc_language_data.
315 * opencl-lang.c (opencl_language_data): Delete.
316 (opencl_language): Remove references to opencl_language_data.
317 * p-lang.c (pascal_language_data): Delete.
318 (pascal_language): Remove references to pascal_language_data.
319 * rust-lang.c (rust_language_data): Delete.
320 (rust_language): Remove references to rust_language_data.
321
b7c6e27d
AB
3222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
323
324 * ada-lang.c (ada_language_data): Remove la_op_print_tab
325 initializer.
326 (ada_language::opcode_print_table): New member function.
327 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
328 (c_language::opcode_print_table): New member function.
329 (cplus_language_data): Remove la_op_print_tab initializer.
330 (cplus_language::opcode_print_table): New member function.
331 (asm_language_data): Remove la_op_print_tab initializer.
332 (asm_language::opcode_print_table): New member function.
333 (minimal_language_data): Remove la_op_print_tab initializer.
334 (minimal_language::opcode_print_table): New member function.
335 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
336 (d_language::opcode_print_table): New member function.
337 * expprint.c (print_subexp_standard): Update call to
338 opcode_print_table.
339 (op_string): Likewise.
340 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
341 (f_language::opcode_print_table): New member function.
342 * go-lang.c (go_language_data): Remove la_op_print_tab
343 initializer.
344 (go_language::opcode_print_table): New member function.
345 * language.c (unknown_language_data): Remove la_op_print_tab
346 initializer.
347 (unknown_language::opcode_print_table): New member function.
348 (auto_language_data): Remove la_op_print_tab initializer.
349 (auto_language::opcode_print_table): New member function.
350 * language.h (language_data): Remove la_op_print_tab field.
351 (language_defn::opcode_print_table): Declare new member function.
352 * m2-lang.c (m2_language_data): Remove la_op_print_tab
353 initializer.
354 (m2_language::opcode_print_table): New member function.
355 * objc-lang.c (objc_language_data): Remove la_op_print_tab
356 initializer.
357 (objc_language::opcode_print_table): New member function.
358 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
359 initializer.
360 (opencl_language::opcode_print_table): New member function.
361 * p-lang.c (pascal_language_data): Remove la_op_print_tab
362 initializer.
363 (pascal_language::opcode_print_table): New member function.
364 * rust-lang.c (rust_language_data): Remove la_op_print_tab
365 initializer.
366 (rust_language::opcode_print_table): New member function.
367
5aba6ebe
AB
3682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
369
370 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
371 (ada_language::expression_ops): New member function.
372 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
373 (c_language::expression_ops): New member function.
374 (cplus_language_data): Remove la_exp_desc initializer.
375 (cplus_language::expression_ops): New member function.
376 (asm_language_data): Remove la_exp_desc initializer.
377 (asm_language::expression_ops): New member function.
378 (minimal_language_data): Remove la_exp_desc initializer.
379 (minimal_language::expression_ops): New member function.
380 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
381 (d_language::expression_ops): New member function.
382 * eval.c (evaluate_subexp): Update call to expression_ops.
383 * expprint.c (print_subexp): Likewise.
384 (op_name): Likewise.
385 (dump_subexp_body): Likewise.
386 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
387 (f_language::expression_ops): New member function.
388 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
389 (go_language::expression_ops): New member function.
390 * language.c (language_defn::expression_ops): New function.
391 (unknown_language_data): Remove la_exp_desc initializer.
392 (auto_language_data): Likewise.
393 * language.h (language_data): Remove la_exp_desc field.
394 (language_defn::expression_ops): Declare new member function.
395 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
396 (m2_language::expression_ops): New member function.
397 * objc-lang.c (objc_language_data): Remove la_exp_desc
398 initializer.
399 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
400 initializer.
401 (opencl_language::expression_ops): New member function.
402 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
403 * parse.c (operator_length): Update call to expression_ops.
404 (exp_iterate): Likewise.
405 * rust-lang.c (rust_language_data): Remove la_exp_desc
406 initializer.
407 (ruse_language::expression_ops): New member function.
408
b63a3f3f
AB
4092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * ada-lang.c (ada_language_data): Remove la_varobj_ops
412 initializer.
413 (ada_language::varobj_ops): New member function.
414 * c-lang.c (c_language_data): Remove la_varobj_ops
415 initializer.
416 (cplus_language_data): Likewise.
417 (cplus_language::varobj_ops): New member function.
418 (asm_language_data): Remove la_varobj_ops initializer.
419 (minimal_language_data): Likewise.
420 * d-lang.c (d_language_data): Likewise.
421 * f-lang.c (f_language_data): Likewise.
422 * go-lang.c (go_language_data): Likewise.
423 * language.c (language_defn::varobj_ops): New function.
424 (unknown_language_data): Remove la_varobj_ops
425 initializer.
426 (auto_language_data): Likewise.
427 * language.h (language_data): Remove la_varobj_ops field.
428 (language_defn::varobj_ops): Declare new member function.
429 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
430 * objc-lang.c (objc_language_data): Likewise.
431 * opencl-lang.c (opencl_language_data): Likewise.
432 * p-lang.c (pascal_language_data): Likewise.
433 * rust-lang.c (rust_language_data): Likewise.
434 * varobj.c (varobj_create): Update call to varobj_ops.
435 * varobj.h (default_varobj_ops): Delete define.
436
1ac14a04
AB
4372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * ada-lang.c (ada_language_data): Remove la_macro_expansion
440 initializer.
441 * c-lang.c (c_language_data): Likewise.
442 (c_language::macro_expansion): New member function.
443 (cplus_language_data): Likewise.
444 (cplus_language::macro_expansion): New member function.
445 (asm_language_data): Likewise.
446 (asm_language::macro_expansion): New member function.
447 (minimal_language_data): Likewise.
448 (minimal_language::macro_expansion): New member function.
449 * d-lang.c (d_language_data): Remove la_macro_expansion
450 initializer.
451 * f-lang.c (f_language_data): Likewise.
452 * go-lang.c (go_language_data): Likewise.
453 * language.c (unknown_language_data): Likewise.
454 (auto_language_data): Likewise.
455 * language.h (language_data): Remove la_macro_expansion field.
456 (language_defn::macro_expansion): New member function.
457 * m2-lang.c (m2_language_data): Remove la_macro_expansion
458 initializer.
459 * objc-lang.c (objc_language_data): Likewise.
460 (objc_language::macro_expansion): New member function.
461 * opencl-lang.c (opencl_language_data): Likewise.
462 (opencl_language::macro_expansion): New member function.
463 * p-lang.c (pascal_language_data): Remove la_macro_expansion
464 initializer.
465 * rust-lang.c (rust_language_data): Likewise.
466 * symtab.c (default_collect_symbol_completion_matches_break_on):
467 Update call to macro_expansion.
468
3a3440fb
AB
4692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 * ada-lang.c (ada_language_data): Remove la_array_ordering
472 initializer.
473 * c-lang.c (c_language_data): Likewise.
474 (cplus_language_data): Likewise.
475 (asm_language_data): Likewise.
476 (minimal_language_data): Likewise.
477 * d-lang.c (d_language_data): Likewise.
478 * dwarf2/read.c (read_array_order): Update for call to
479 array_ordering.
480 * f-lang.c (f_language_data): Remove la_array_ordering
481 initializer.
482 (f_language::array_ordering): New member function.
483 * go-lang.c (go_language_data): Remove la_array_ordering
484 initializer.
485 * language.c (unknown_language_data): Likewise.
486 (auto_language_data): Likewise.
487 * language.h (language_data): Delete la_array_ordering field.
488 (language_defn::array_ordering): New member function.
489 * m2-lang.c (m2_language_data): Remove la_array_ordering
490 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
0d201fa4
AB
4962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
499 initializer.
500 * c-lang.c (c_language_data): Likewise.
501 (cplus_language_data): Likewise.
502 (asm_language_data): Likewise.
503 (minimal_language_data): Likewise.
504 * d-lang.c (d_language_data): Likewise.
505 * f-lang.c (f_language_data): Likewise.
506 (f_language::case_sensitivity): New member function.
507 * go-lang.c (go_language_data): Remove la_case_sensitivity
508 initializer.
509 * language.c (enum case_mode): Moved here from language.h.
510 (case_mode): Make static.
511 (show_case_command): Update for case_sensitivity being a method.
512 (set_case_command): Likewise.
513 (set_range_case): Likewise.
514 (unknown_language_data): Remove la_case_sensitivity initializer.
515 (auto_language_data): Likewise.
516 * language.h (case_mode): Delete, move enum declaration to
517 language.c.
518 (language_data): Delete la_case_sensitivity field.
519 (language_defn::case_sensitivity): New member function.
520 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
521 initializer.
522 * objc-lang.c (objc_language_data): Likewise.
523 * opencl-lang.c (opencl_language_data): Likewise.
524 * p-lang.c (pascal_language_data): Likewise.
525 * rust-lang.c (rust_language_data): Likewise.
526
efdf6a73
AB
5272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * ada-lang.c (ada_language_data): Remove la_range_check
530 initializer.
531 * c-lang.c (c_language_data): Likewise.
532 (cplus_language_data): Likewise.
533 (asm_language_data): Likewise.
534 (minimal_language_data): Likewise.
535 * d-lang.c (d_language_data): Likewise.
536 * f-lang.c (f_language_data): Likewise.
537 (f_language::range_checking_on_by_default): New member function.
538 * go-lang.c (go_language_data): Remove la_range_check initializer.
539 * language.c (enum range_mode): Moved here from language.h.
540 (range_mode): Made static.
541 (show_range_command): Update to use
542 range_checking_on_by_default.
543 (set_range_command): Likewise.
544 (set_range_case): Likewise.
545 (unknown_language_data): Remove la_range_check initializer.
546 (auto_language_data): Likewise.
547 * language.h (range_mode): Delete. Enum definition moved to
548 language.c.
549 (language_data): Remove la_range_check field.
550 (language_defn::range_checking_on_by_default): New member
551 function.
552 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
553 (m2_language::range_checking_on_by_default): New member function.
554 * objc-lang.c (objc_language_data): Remove la_range_check
555 initializer.
556 * opencl-lang.c (opencl_language_data): Likewise.
557 * p-lang.c (pascal_language_data): Likewise.
558 (pascal_language::range_checking_on_by_default): New member
559 function.
560 * rust-lang.c (rust_language_data): Remove la_range_check
561 initializer.
562 (rust_language::range_checking_on_by_default): New member
563 function.
564
bf92aec5
AB
5652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * dwarf2/read.c (dwarf2_physname): Remove special case for
568 language_go.
569 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
570 member function.
571
d3355e4d
AB
5722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * ada-lang.c (ada_language_data): Remove
575 la_store_sym_names_in_linkage_form_p initializer.
576 (ada_language::store_sym_names_in_linkage_form_p): New member
577 function.
578 * c-lang.c (c_language_data): Remove
579 la_store_sym_names_in_linkage_form_p initializer.
580 (c_language::store_sym_names_in_linkage_form_p): New member
581 function.
582 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
583 initializer.
584 (asm_language_data): Likewise.
585 (asm_language::store_sym_names_in_linkage_form_p): New member
586 function.
587 (minimal_language_data): Remove
588 la_store_sym_names_in_linkage_form_p initializer.
589 (minimal_language::store_sym_names_in_linkage_form_p): New member
590 function.
591 * d-lang.c (d_language_data): Remove
592 la_store_sym_names_in_linkage_form_p initializer.
593 * dwarf2/read.c (dwarf2_physname): Update call to
594 store_sym_names_in_linkage_form_p.
595 * f-lang.c (f_language_data): Remove
596 la_store_sym_names_in_linkage_form_p initializer.
597 * go-lang.c (go_language_data): Remove
598 la_store_sym_names_in_linkage_form_p initializer.
599 * language.c (unknown_language_data): Remove
600 la_store_sym_names_in_linkage_form_p initializer.
601 (unknown_language::store_sym_names_in_linkage_form_p): New member
602 function.
603 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
604 initializer.
605 (auto_language::store_sym_names_in_linkage_form_p): New member
606 function.
607 * language.h (language_data): Remove
608 la_store_sym_names_in_linkage_form_p member variable.
609 (language_defn::store_sym_names_in_linkage_form_p): New member
610 function.
611 * m2-lang.c (m2_language_data): Remove
612 la_store_sym_names_in_linkage_form_p initializer.
613 * objc-lang.c (objc_language_data): Likewise.
614 * opencl-lang.c (opencl_language_data): Likewise.
615 * p-lang.c (pascal_language_data): Likewise.
616 * rust-lang.c (rust_language_data): Likewise.
617
22c12a6c
AB
6182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * ada-lang.c (ada_language_data): Remove string_lower_bound
621 initializer.
622 * c-lang.c (c_language_data): Likewise.
623 (cplus_language_data): Likewise.
624 (asm_language_data): Likewise.
625 (minimal_language_data): Likewise.
626 * d-lang.c (d_language_data): Likewise.
627 * f-lang.c (f_language_data): Likewise.
628 * go-lang.c (go_language_data): Likewise.
629 * language.c (unknown_language_data): Likewise.
630 (auto_language_data): Likewise.
631 * language.h (language_data): Remove string_lower_bound field.
632 (language_defn::string_lower_bound): New member function.
633 * m2-lang.c (m2_language_data): Remove string_lower_bound
634 initializer.
635 (m2_language::string_lower_bound): New member function.
636 * objc-lang.c (objc_language_data): Remove string_lower_bound
637 initializer.
638 * opencl-lang.c (opencl_language_data): Likewise.
639 * p-lang.c (pascal_language_data): Likewise.
640 * rust-lang.c (rust_language_data): Likewise.
641 * valops.c (value_cstring): Update call to string_lower_bound.
642 (value_string): Likewise.
643 * value.c (allocate_repeated_value): Likewise.
644
1c236ddd
AB
6452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * valops.c (value_repeat): Fix incorrect argument name in comment.
648
67bd3fd5
AB
6492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * ada-lang.c (ada_language_data): Remove c_style_arrays
652 initializer.
653 (ada_language::c_style_arrays_p): New member fuction.
654 * c-lang.c (c_language_data): Remove c_style_arrays
655 initializer.
656 (cplus_language_data): Likewise.
657 (asm_language_data): Likewise.
658 (minimal_language_data): Likewise.
659 * d-lang.c (d_language_data): Likewise.
660 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
661 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
662 (f_language::c_style_arrays_p): New member function.
663 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
664 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
665 * language.c (unknown_language_data): Remove c_style_arrays
666 initializer.
667 (auto_language_data): Likewise.
668 * language.h (language_data): Remove c_style_arrays field.
669 (language_defn::c_style_arrays_p): New member function.
670 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
671 (m2_language::c_style_arrays_p): New member function.
672 * objc-lang.c (objc_language_data): Remove c_style_arrays
673 initializer.
674 * opencl-lang.c (opencl_language_data): Likewise.
675 * p-lang.c (pascal_language_data): Likewise.
676 * rust-lang.c (rust_language_data): Likewise.
677 * valarith.c (value_subscript): Update call to c_style_arrays_p,
678 and update local variable to a bool.
679 * valops.c (value_cast): Update call to c_style_arrays_p.
680 (value_array): Likewise.
681 * value.c (coerce_array): Likewise.
682
85967615
AB
6832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * ada-lang.c (ada_language_data): Remove la_language initializer.
686 * c-lang.c (c_language_data): Likewise.
687 (cplus_language_data): Likewise.
688 (asm_language_data): Likewise.
689 (minimal_language_data): Likewise.
690 * d-lang.c (d_language_data): Likewise.
691 * f-lang.c (f_language_data): Likewise.
692 * go-lang.c (go_language_data): Likewise.
693 * language.c (unknown_language_data): Likewise.
694 (auto_language_data): Likewise.
695 * language.h (language_data): Remove la_language field.
696 (language_defn::language_defn): Initialise la_language field.
697 (language_defn::la_language): New member variable.
698 * m2-lang.c (m2_language_data): Remove la_language field.
699 * objc-lang.c (objc_language_data): Likewise.
700 * opencl-lang.c (opencl_language_data): Likewise.
701 * p-lang.c (pascal_language_data): Likewise.
702 * rust-lang.c (rust_language_data): Likewise.
703
e171d6f1
AB
7042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * ada-lang.c (ada_extensions): Delete, moved into
707 ada_language::filename_extensions.
708 (ada_language_data): Remove la_filename_extensions initializer.
709 (ada_language::filename_extensions): New member function.
710 * c-lang.c (c_extensions): Delete, moved into
711 c_language::filename_extensions.
712 (c_language_data): Remove la_filename_extensions initializer.
713 (c_language::filename_extensions): New member function.
714 (cplus_extensions): Delete, moved into
715 cplus_language::filename_extensions.
716 (cplus_language_data): Remove la_filename_extensions initializer.
717 (cplus_language::filename_extensions): New member function.
718 (asm_extensions): Delete, moved into
719 asm_language::filename_extensions.
720 (asm_language_data): Remove la_filename_extensions initializer.
721 (asm_language::filename_extensions): New member function.
722 (minimal_language_data): Remove la_filename_extensions
723 initializer.
724 * d-lang.c (d_extensions): Delete, moved into
725 d_language::filename_extensions.
726 (d_language_data): Remove la_filename_extensions initializer.
727 (d_language::filename_extensions): New member function.
728 * f-lang.c (f_extensions): Delete, moved into
729 f_language::filename_extensions.
730 (f_language_data): Remove la_filename_extensions initializer.
731 (f_language::filename_extensions): New member function.
732 * go-lang.c (go_language_data): Remove la_filename_extensions
733 initializer.
734 * language.c (add_set_language_command): Update now that
735 filename_extensions returns a vector.
736 (unknown_language_data): Remove la_filename_extensions
737 initializer.
738 (auto_language_data): Likewise.
739 * language.h (language_data): Remove la_filename_extensions field.
740 (language_defn::filename_extensions): New member function.
741 * m2-lang.c (m2_language_data): Remove la_filename_extensions
742 initializer.
743 * objc-lang.c (objc_extensions): Delete, moved into
744 objc_language::filename_extensions.
745 (objc_language_data): Remove la_filename_extensions initializer.
746 (objc_language::filename_extensions): New member function.
747 * opencl-lang.c (opencl_language_data): Remove
748 la_filename_extensions initializer.
749 * p-lang.c (pascal_extensions): Delete, moved into
750 pascal_language::filename_extensions.
751 (pascal_language_data): Remove la_filename_extensions initializer.
752 (pascal_language::filename_extensions): New member function.
753 * rust-lang.c (rust_extensions): Delete, moved into
754 rust_language::filename_extensions.
755 (rust_language_data): Remove la_filename_extensions initializer.
756 (rust_language::filename_extensions): New member function.
757 * symfile.c (add_filename_language): Add new assert.
758
6f7664a9
AB
7592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * ada-lang.c (ada_language_data): Remove la_name and
762 la_natural_name initializers.
763 (ada_language::name): New member function.
764 (ada_language::natural_name): New member function.
765 * c-lang.c (c_language_data): Remove la_name and
766 la_natural_name initializers.
767 (c_language::name): New member function.
768 (c_language::natural_name): New member function.
769 (cplus_language_data): Remove la_name and
770 la_natural_name initializers.
771 (cplus_language::name): New member function.
772 (cplus_language::natural_name): New member function.
773 (asm_language_data): Remove la_name and
774 la_natural_name initializers.
775 (asm_language::name): New member function.
776 (asm_language::natural_name): New member function.
777 (minimal_language_data): Remove la_name and
778 la_natural_name initializers.
779 (minimal_language::name): New member function.
780 (minimal_language::natural_name): New member function.
781 * compile/compile.c (compile_to_object): Update call to
782 lanugage_defn::name.
783 * d-lang.c (d_language_data): Remove la_name and
784 la_natural_name initializers.
785 (d_language::name): New member function.
786 (d_language::natural_name): New member function.
787 * expprint.c (print_subexp_standard): Update call to
788 language_defn::name.
789 (dump_raw_expression): Likewise
790 (dump_prefix_expression): Likewise.
791 * f-lang.c (f_language_data): Remove la_name and
792 la_natural_name initializers.
793 (f_language::name): New member function.
794 (f_language::natural_name): New member function.
795 * go-lang.c (go_language_data): Remove la_name and
796 la_natural_name initializers.
797 (go_language::name): New member function.
798 (go_language::natural_name): New member function.
799 * language.c (show_language_command): Update call to
800 language_defn::name.
801 (set_language_command): Likewise.
802 (language_enum): Likewise.
803 (language_str): Likewise.
804 (add_set_language_command): Likewise, use
805 language_defn::natural_name in the doc string.
806 (unknown_language_data): Remove la_name and
807 la_natural_name initializers.
808 (unknown_language::name): New member function.
809 (unknown_language::natural_name): New member function.
810 (auto_language_data): Remove la_name and
811 la_natural_name initializers.
812 (auto_language::name): New member function.
813 (auto_language::natural_name): New member function.
814 (language_lookup_primitive_type_as_symbol): Update call to
815 language_defn::name.
816 * language.h (language_data): Remove la_name and la_natural_name
817 member variables.
818 (language_defn::name): New member function.
819 (language_defn::natural_name): New member function.
820 * m2-lang.c (m2_language_data): Remove la_name and
821 la_natural_name initializers.
822 (m2_language::name): New member function.
823 (m2_language::natural_name): New member function.
824 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
825 language_defn::natural_name.
826 * objc-lang.c (objc_language_data): Remove la_name and
827 la_natural_name initializers.
828 (objc_language::name): New member function.
829 (objc_language::natural_name): New member function.
830 * opencl-lang.c (opencl_language_data): Remove la_name and
831 la_natural_name initializers.
832 (opencl_language::name): New member function.
833 (opencl_language::natural_name): New member function.
834 * p-lang.c (pascal_language_data): Remove la_name and
835 la_natural_name initializers.
836 (pascal_language::name): New member function.
837 (pascal_language::natural_name): New member function.
838 * rust-lang.c (rust_language_data): Remove la_name and
839 la_natural_name initializers.
840 (rust_language::name): New member function.
841 (rust_language::natural_name): New member function.
842 * symtab.c (lookup_language_this): Update call to
843 language_defn::name.
844
5bae7c4e
AB
8452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * ada-lang.c (ada_language_data): Remove la_name_of_this
848 initializer.
849 * ax-gdb.c (gen_expr): Update call to name_of_this.
850 * c-exp.y (classify_name): Likewise.
851 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
852 (cplus_language_data): Likewise.
853 (cplus_language::name_of_this): New member function.
854 (asm_language_data): Remove la_name_of_this initializer.
855 (minimal_language_data): Likewise.
856 * d-lang.c (d_language_data): Likewise.
857 (d_language::name_of_this): New member function.
858 * expprint.c (print_subexp_standard): Update call to name_of_this.
859 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
860 * go-lang.c (go_language_data): Likewise.
861 * language.c (unknown_language_data): Likewise.
862 (unknown_language::name_of_this): New member function.
863 (auto_language_data): Remove la_name_of_this initializer.
864 (auto_language::name_of_this): New member function.
865 * language.h (language_data): Delete la_name_of_this member
866 variable.
867 (language_defn::name_of_this): New member function.
868 * m2-lang.c (m2_language_data): Remove la_name_of_this
869 initializer.
870 * objc-lang.c (objc_language_data): Likewise.
871 (objc_language::name_of_this): New member function.
872 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
873 initializer.
874 * p-lang.c (pascal_language_data): Likewise.
875 (pascal_language::name_of_this): New member function.
876 * rust-lang.c (rust_language_data): Remove la_name_of_this
877 initializer.
878 * symtab.c (lookup_language_this): Update call to name_of_this.
879 (lookup_symbol_aux): Likewise.
880 * valops.c (value_of_this): Likewise.
881
22e3f3ed
AB
8822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * ada-lang.c (ada_language_data): Remove
885 la_struct_too_deep_ellipsis initializer.
886 (ada_language::struct_too_deep_ellipsis): New member function.
887 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
888 initializer.
889 (cplus_language_data): Likewise.
890 (asm_language_data): Likewise.
891 (minimal_language_data): Likewise.
892 * cp-valprint.c (cp_print_value): Update call to
893 struct_too_deep_ellipsis.
894 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
895 initializer.
896 * f-lang.c (f_language_data): Likewise.
897 (f_language::struct_too_deep_ellipsis): New member function.
898 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
899 initializer.
900 * language.c (unknown_language_data): Likewise.
901 (auto_language_data): Likewise.
902 * language.h (language_data): Delete la_struct_too_deep_ellipsis
903 member variable.
904 (language_defn::struct_too_deep_ellipsis): New member function.
905 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
906 initializer.Q
907 * objc-lang.c (objc_language_data): Likewise.
908 * opencl-lang.c (opencl_language_data): Likewise.
909 * p-lang.c (pascal_language_data): Likewise.
910 * rust-lang.c (rust_language_data): Likewise.
911 * valprint.c (val_print_check_max_depth): Update call to
912 struct_too_deep_ellipsis.
913
ed29e1c7
FW
9142020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
915
916 * MAINTAINERS (Write After Approval): Add myself.
917
12d8f940
TT
9182020-09-15 Tom Tromey <tom@tromey.com>
919
920 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
921 Remove.
922
6b5a7bc7
TT
9232020-09-15 Tom Tromey <tom@tromey.com>
924
925 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
926 and TYPE_CODE_METHODPTR cases.
927 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
928 (c_value_print_inner): Update.
929 * valprint.c (generic_value_print_memberptr): New function, from
930 c_value_print_memberptr.
931 (generic_value_print): Use it. Call cplus_print_method_ptr.
932
47f0e2ff
TT
9332020-09-15 Tom Tromey <tromey@adacore.com>
934
935 * python/python-internal.h (PyInt_FromLong): Remove define.
936 * python/py-value.c (convert_value_from_python): Use
937 gdb_py_object_from_longest.
938 * python/py-type.c (typy_get_code): Use
939 gdb_py_object_from_longest.
940 * python/py-symtab.c (salpy_get_line): Use
941 gdb_py_object_from_longest.
942 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
943 gdb_py_object_from_longest.
944 * python/py-record.c (recpy_gap_reason_code): Use
945 gdb_py_object_from_longest.
946 * python/py-record-btrace.c (recpy_bt_insn_size)
947 (recpy_bt_func_level, btpy_list_count): Use
948 gdb_py_object_from_longest.
949 * python/py-infthread.c (gdbpy_create_ptid_object): Use
950 gdb_py_object_from_longest. Fix error handling.
951 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
952 gdb_py_object_from_longest.
953 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
954 gdb_py_object_from_longest.
955 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
956 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
957 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
958
512116ce
TT
9592020-09-15 Tom Tromey <tromey@adacore.com>
960
961 * python/python.c (gdbpy_parameter_value): Use
962 gdb_py_object_from_ulongest.
963
4ab1029c
TT
9642020-09-15 Tom Tromey <tromey@adacore.com>
965
966 * python/py-infevents.c (create_register_changed_event_object):
967 Use gdb_py_object_from_longest.
968 * python/py-exitedevent.c (create_exited_event_object): Use
969 gdb_py_object_from_longest.
970
062534d4
TT
9712020-09-15 Tom Tromey <tromey@adacore.com>
972
973 * python/python.c (gdbpy_parameter_value): Use
974 gdb_py_object_from_longest.
975 * python/py-type.c (convert_field, typy_range): Use
976 gdb_py_object_from_longest.
977 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
978 gdb_py_object_from_longest.
979 * python/py-lazy-string.c (stpy_get_length): Use
980 gdb_py_object_from_longest.
981 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
982 gdb_py_object_from_longest.
983 * python/py-infevents.c (create_memory_changed_event_object): Use
984 gdb_py_object_from_longest.
985 * python/py-inferior.c (infpy_get_num): Use
986 gdb_py_object_from_longest.
987 (infpy_get_pid): Likewise.
988
d1cab987
TT
9892020-09-15 Tom Tromey <tromey@adacore.com>
990
991 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
992 defines.
993 * python/py-value.c (valpy_long): Use
994 gdb_py_object_from_ulongest.
995 * python/py-symtab.c (salpy_get_pc): Use
996 gdb_py_object_from_ulongest.
997 (salpy_get_last): Likewise.
998 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
999 gdb_py_object_from_ulongest.
1000 * python/py-lazy-string.c (stpy_get_address): Use
1001 gdb_py_object_from_ulongest.
1002 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1003 * python/py-arch.c (archpy_disassemble): Use
1004 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1005 error handling.
1006
4bde49dc
TT
10072020-09-15 Tom Tromey <tromey@adacore.com>
1008
1009 * python/python-internal.h (gdb_py_long_from_longest): Remove
1010 defines.
1011 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1012 * python/py-type.c (convert_field, typy_get_sizeof): Use
1013 gdb_py_object_from_longest.
1014 * python/py-record-btrace.c (btpy_list_index): Use
1015 gdb_py_object_from_longest.
1016
37431074
TT
10172020-09-15 Tom Tromey <tromey@adacore.com>
1018
1019 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1020 * python/py-record.c (recpy_element_number): Use
1021 gdb_py_object_from_longest.
1022 (recpy_gap_number): Likewise.
1023
cbe25684
TT
10242020-09-15 Tom Tromey <tromey@adacore.com>
1025
1026 * top.c (ui::ui): Update.
1027 (highest_ui_num): Remove.
1028 * top.h (struct ui) <num>: Remove.
1029
db92ac45
TT
10302020-09-15 Tom Tromey <tromey@adacore.com>
1031
1032 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1033 * ui-style.c (ansi_regex_text): Now array.
1034 * rust-exp.y (number_regex_text): Now array.
1035 * linespec.c (linespec_quote_characters): Now array.
1036 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1037 Now arrays.
1038
d2b31b67
SM
10392020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1040
1041 * debuginfod-support.c (debuginfod_client_deleter): New.
1042 (debuginfod_client_up): New.
1043 (debuginfod_init): Return debuginfod_client_up.
1044 (debuginfod_source_query): Adjust.
1045 (debuginfod_debuginfo_query): Adjust.
1046
3246bd8e
SM
10472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1048
1049 * debuginfod-support.c (debuginfod_source_query): Use
1050 make_unique_xstrdup.
1051
10242f36
SM
10522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1055 with `type::instance_flags`.
1056
e1044e6a
MM
10572020-09-14 Michael Mullin <masmullin@gmail.com>
1058
1059 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1060 Remove baton parameter.
1061
04902b09
PA
10622020-09-14 Pedro Alves <pedro@palves.net>
1063
1064 * Makefile.in (SELFTESTS_SRCS): Add
1065 unittests/enum-flags-selftests.c.
1066 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1067 btrace_function_flags instead of enum btrace_function_flag.
1068 * compile/compile-c-types.c (convert_qualified): Use
1069 enum_flags::raw.
1070 * compile/compile-cplus-symbols.c (convert_one_symbol)
1071 (convert_symbol_bmsym):
1072 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1073 (compile_cplus_convert_struct_or_union_methods)
1074 (compile_cplus_instance::convert_qualified_base):
1075 * go-exp.y (parse_string_or_char): Add cast to int.
1076 * unittests/enum-flags-selftests.c: New file.
1077 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1078 type to btrace_thread_flags from btrace_thread_flag.
1079 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1080 local's type to btrace_thread_flags from btrace_thread_flag. Add
1081 cast in DEBUG call.
1082
69896a2c
PA
10832020-09-14 Pedro Alves <pedro@palves.net>
1084
1085 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1086 * gdbtypes.c (address_space_name_to_int): Rename to ...
1087 (address_space_name_to_type_instance_flags): ... this.
1088 (address_space_int_to_name): Rename to ...
1089 (address_space_type_instance_flags_to_name): ... this.
1090 * gdbtypes.h (address_space_name_to_int): Rename to ...
1091 (address_space_name_to_type_instance_flags): ... this.
1092 (address_space_int_to_name): Rename to ...
1093 (address_space_type_instance_flags_to_name): ... this.
1094 * type-stack.c (type_stack::insert): Adjust to rename.
1095 * type-stack.h (type_stack::insert): Likewise.
1096
314ad88d
PA
10972020-09-14 Pedro Alves <pedro@palves.net>
1098 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * avr-tdep.c (avr_address_class_type_flags): Return
1101 type_instance_flags.
1102 (avr_address_class_type_flags_to_name): Take a
1103 type_instance_flags.
1104 (avr_address_class_name_to_type_flags): Return bool and take a
1105 type_instance_flags.
1106 * d-lang.c (build_d_types): Use type::set_instance_flags.
1107 * ft32-tdep.c (ft32_address_class_type_flags): Return
1108 type_instance_flags.
1109 (ft32_address_class_type_flags_to_name): Take a
1110 type_instance_flags.
1111 (ft32_address_class_name_to_type_flags): Return bool and take a
1112 type_instance_flags.
1113 (ft32_gdbarch_init): Use type::set_instance_flags.
1114 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1115 * gdbarch.h, gdbarch.c: Regenerate.
1116 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1117 (address_class_name_to_type_flags): Use type_instance_flags and
1118 bool.
1119 * gdbtypes.c (address_space_name_to_int)
1120 (address_space_int_to_name, make_qualified_type): Use
1121 type_instance_flags.
1122 (make_qualified_type): Use type_instance_flags and
1123 type::set_instance_flags.
1124 (make_type_with_address_space, make_cv_type, make_vector_type)
1125 (check_typedef): Use type_instance_flags.
1126 (recursive_dump_type): Cast type_instance_flags to unsigned for
1127 printing.
1128 (copy_type_recursive): Use type::set_instance_flags.
1129 (gdbtypes_post_init): Use type::set_instance_flags.
1130 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1131 <m_instance_flags>: ... this.
1132 <instance_flags, set_instance_flags>: New methods.
1133 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1134 (SET_TYPE_INSTANCE_FLAGS): New.
1135 (address_space_name_to_int, address_space_int_to_name)
1136 (make_type_with_address_space): Pass flags using
1137 type_instance_flags instead of int.
1138 * stabsread.c (cleanup_undefined_types_noname): Use
1139 type::set_instance_flags.
1140 * s390-tdep.c (s390_address_class_type_flags): Return
1141 type_instance_flags.
1142 (s390_address_class_type_flags_to_name): Take a
1143 type_instance_flags.
1144 (s390_address_class_name_to_type_flags): Return bool and take a
1145 type_instance_flags.
1146 * type-stack.c (type_stack::follow_types): Use
1147 type_instance_flags.
1148 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1149
27087b7f
TT
11502020-09-14 Tom Tromey <tromey@adacore.com>
1151
1152 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1153 * x86-tdep.c (x86_is_thunk_register_name)
1154 (x86_in_indirect_branch_thunk): Update.
1155 * sparc64-tdep.c (sparc64_fpu_register_names)
1156 (sparc64_cp0_register_names, sparc64_register_names)
1157 (sparc64_pseudo_register_names): Now const.
1158 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1159 cp0_registers_num>: Now const.
1160 * sparc-tdep.c (sparc_core_register_names)
1161 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1162 (sparc32_pseudo_register_names): Now const.
1163 (validate_tdesc_registers): Update.
1164 * rust-lang.c (rust_extensions): Now const.
1165 * p-lang.c (p_extensions): Now const.
1166 * objc-lang.c (objc_extensions): Now const.
1167 * nto-tdep.c (nto_thread_state_str): Now const.
1168 * moxie-tdep.c (moxie_register_names): Now const.
1169 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1170 Now const.
1171 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1172 (mips_linux_reg_names): Now const.
1173 (mips_gdbarch_init): Update.
1174 * microblaze-tdep.c (microblaze_register_names): Now const.
1175 * m68k-tdep.c (m68k_register_names): Now const.
1176 * m32r-tdep.c (m32r_register_names): Now const.
1177 * ia64-tdep.c (ia64_register_names): Now const.
1178 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1179 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1180 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1181 ymm_avx512_register_names, pkeys_register_names>: Now const.
1182 * i386-tdep.c (i386_register_names, i386_zmm_names)
1183 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1184 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1185 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1186 * f-lang.c (f_extensions): Now const.
1187 * d-lang.c (d_extensions): Now const.
1188 * csky-tdep.c (csky_register_names): Now const.
1189 * charset.c (default_charset_names, charset_enum): Now const.
1190 (_initialize_charset): Update.
1191 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1192 const.
1193 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1194 (bsd_uthread_solib_loaded): Update.
1195 (bsd_uthread_state): Now const.
1196 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1197 (amd64_ymm_avx512_names, amd64_ymmh_names)
1198 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1199 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1200 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1201 (amd64_dword_names): Now const.
1202 * agent.c (can_use_agent_enum): Now const.
1203 * ada-tasks.c (task_states, long_task_states): Now const.
1204 * ada-lang.c (known_runtime_file_name_patterns)
1205 (known_auxiliary_function_name_patterns, attribute_names)
1206 (standard_exc, ada_extensions): Now const.
1207
89806626
SM
12082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 * bcache.h (struct bcache) <bcache>: Remove constructor.
1211 <m_hash_function, m_compare_function>: Remove.
1212 <~bcache>: Make virtual.
1213 <compare>: Remove static method, introduce virtual method.
1214 <default_hash>: Remove.
1215 <hash>: New virtual method.
1216 * bcache.c (bcache::expand_hash_table): Update.
1217 (bcache::insert): Update.
1218 (bcache::hash): New.
1219 (bcache::compare): Update comment and parameter names.
1220 * gdbtypes.c (types_deeply_equal): Update.
1221 * psymtab.h (struct psymbol_bcache): New struct.
1222 (class psymtab_storage) <psymtab_storage>: Make default.
1223 <psymbol_cache>: Change type to psymbol_bcache.
1224 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1225 (psymbol_hash): Change to...
1226 (psymbol_bcache::hash): ... this.
1227 (psymbol_compare): Change to...
1228 (psymbol_bcache::compare): ... this.
1229
677c92fe
SM
12302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1233 checking for initial lwp.
1234
3eba3a01
TT
12352020-09-14 Tom Tromey <tromey@adacore.com>
1236
1237 * m68k-tdep.c (m68k_extract_return_value): Use
1238 pointer_result_regnum.
1239 (m68k_store_return_value): Likewise.
1240 (m68k_reg_struct_return_p): Handle vectors and arrays.
1241 (m68k_return_value): Handle arrays.
1242 (m68k_svr4_return_value): Fix single-element aggregate handling.
1243 Handle long double. Adjust for embedded ABI.
1244 (m68k_svr4_init_abi): Set pointer_result_regnum.
1245 (m68k_embedded_init_abi): New function.
1246 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1247 (m68k_osabi_sniffer): New function.
1248 (_initialize_m68k_tdep): Register osabi sniffer.
1249 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1250 member.
1251
33f4dd48
SM
12522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1255 with gdb::unique_xmalloc_ptr<char>.
1256
8400a90d
SM
12572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * xml-support.h (xml_fetch_another): Change type to be a
1260 function_view.
1261 (xml_process_xincludes): Remove baton parameter.
1262 (xml_fetch_content_from_file): Change baton parameter to
1263 dirname.
1264 * xml-support.c (struct xinclude_parsing_data)
1265 <xinclude_parsing_data>: Remove baton parameter.
1266 <fetcher_baton>: Remove.
1267 (xinclude_start_include): Adjust.
1268 (xml_process_xincludes): Adjust.
1269 (xml_fetch_content_from_file): Replace baton parameter with
1270 dirname.
1271 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1272 (xml_init_syscalls_info): Use a lambda.
1273 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1274 (file_read_description_xml): Use a lambda.
1275 (fetch_available_features_from_target): Change baton parameter
1276 to target_ops.
1277 (target_read_description_xml): Use a lambda.
1278 (target_fetch_description_xml): Use a lambda.
1279 (string_read_description_xml): Update.
1280
04f5bab2
SM
12812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1284 uses with type::endianity_is_not_default.
1285
db558e34
SM
12862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1287
1288 * gdbtypes.h (struct type) <endianity_is_not_default,
1289 set_endianity_is_not_default>: New methods.
1290 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1291 type::endianity_is_not_default, change all write call sites to
1292 use type::set_endianity_is_not_default.
1293
22c4c60c
SM
12942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1297 uses with type::is_fixed_instance.
1298
9cdd0d12
SM
12992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1300
1301 * gdbtypes.h (struct type) <is_fixed_instance,
1302 set_is_fixed_instance>: New methods.
1303 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1304 write call sites to use type::set_is_fixed_instance.
1305
0becda7a
SM
13062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1309 uses with type::is_gnu_ifunc.
1310
03cc7249
SM
13112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1312
1313 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1314 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1315 use type::set_is_gnu_ifunc.
1316
3f46044c
SM
13172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1318
1319 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1320 uses with type::stub_is_supported.
1321
9baccff6
SM
13222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1323
1324 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1325 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1326 use type::set_stub_is_supported.
1327
bd63c870
SM
13282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1329
1330 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1331 uses with type::is_vector.
1332
2062087b
SM
13332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1334
1335 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1336 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1337 use type::set_is_vector.
1338
a409645d
SM
13392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1340
1341 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1342 uses with type::has_varargs.
1343
1d6286ed
SM
13442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1347 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1348 use type::set_has_varargs.
1349
7f9f399b
SM
13502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1351
1352 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1353 uses with type::is_prototyped.
1354
27e69b7a
SM
13552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1358 New methods.
1359 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1360 call sites to use type::set_is_prototyped.
1361
d2183968
SM
13622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1365 uses with type::target_is_stub.
1366
8f53807e
SM
13672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1368
1369 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1370 New methods.
1371 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1372 sites to use type::set_target_is_stub.
1373
e46d3488
SM
13742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1375
1376 * gdbtypes.h (TYPE_STUB): Remove, replace all
1377 uses with type::is_stub.
1378
b4b73759
SM
13792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1380
1381 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1382 (TYPE_STUB): Use type::is_stub, change all write call sites to
1383 use type::set_is_stub.
1384
20ce4123
SM
13852020-09-14 Simon Marchi <simon.marchi@efficios.com>
1386
1387 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1388 type::has_no_signedness.
1389
15152a54
SM
13902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * gdbtypes.h (struct type) <has_no_signedness,
1393 set_has_no_signedness>: New methods.
1394 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1395 call sites to use type::set_has_no_signedness.
1396
c6d940a9
SM
13972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1400 type::is_unsigned.
1401
653223d3
SM
14022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1403
1404 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1405 methods.
1406 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1407 sites to use type::set_is_unsigned.
1408
55ea94da
FH
14092020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1410 Adam Renquinha <arenquinha@cimeq.qc.ca>
1411
1412 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1413 pointer and stack frame offset when unwinding.
1414
6791b117
PA
14152020-09-13 Pedro Alves <pedro@palves.net>
1416
1417 * NEWS: Document "-break-insert --qualified".
1418 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1419
77f2120b
PA
14202020-09-13 Pedro Alves <pedro@palves.net>
1421
1422 * linespec.c (classify_mtype, compare_msyms): Delete.
1423 (search_minsyms_for_name): Remove classification logic. Instead
1424 filter out trampoline symbols if we also found an external
1425 function of the same name.
1426
ed6a896c
JB
14272020-09-13 Joel Brobecker <brobecker@adacore.com>
1428
1429 * NEWS: Create a new section for the next release branch.
1430 Rename the section of the current branch, now that it has
1431 been cut.
1432
32aea73e
JB
14332020-09-13 Joel Brobecker <brobecker@adacore.com>
1434
1435 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1436 * version.in: Bump version to 11.0.50.DATE-git.
1437
8087c3fa
JB
14382020-09-12 Joel Brobecker <brobecker@adacore.com>
1439
1440 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1441
2a67f09d
FW
14422020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1443 Felix Willgerodt <Felix.Willgerodt@intel.com>
1444
1445 * gdbarch.sh: Added bfloat16 type.
1446 * gdbarch.c: Regenerated.
1447 * gdbarch.h: Regenerated.
1448 * gdbtypes.c (floatformats_bfloat16): New struct.
1449 (gdbtypes_post_init): Add builtin_bfloat16.
1450 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1451 (floatformats_bfloat16): New struct.
1452 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1453 (i386_ymm_type): Add field "v16_bfloat16"
1454 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1455 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1456 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1457 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1458 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1459 * features/i386/64bit-avx512.c: Regenerated.
1460 * features/i386/64bit-sse.xml: Add bfloat16 type.
1461 * features/i386/64bit-sse.c: Regenerated.
1462
1347d111
FW
14632020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1464
1465 * i386-tdep.c (i386_zmm_type): Fix field names.
1466 (i386_ymm_type): Fix field names.
1467
7a4e8e7d
TBA
14682020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1469
1470 * breakpoint.c: Fix typo in the help message of the
1471 "set breakpoint condition-evaluation" command.
1472
cf4ac4be
KR
14732020-09-10 Kamil Rytarowski <n54@gmx.com>
1474
1475 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1476 * (nbsd_nat_target::pid_to_exec_file)
1477 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1478 (nbsd_nat_target::post_startup_inferior)
1479 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1480 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1481 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1482 * (nbsd_thread_lister): Remove.
1483
f404573e
KR
14842020-09-10 Kamil Rytarowski <n54@gmx.com>
1485
1486 * fork-inferior.c (startup_inferior): Avoid double free.
1487
1ccb2c17
KR
14882020-09-10 Kamil Rytarowski <n54@gmx.com>
1489
1490 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1491 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1492
feedfcc7
KR
14932020-09-10 Kamil Rytarowski <n54@gmx.com>
1494
1495 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1496 * netbsd-nat.c: Include <sys/ptrace.h>.
1497 * (netbsd_nat::enable_proc_events): Add.
1498
c489f8c6
KR
14992020-09-10 Kamil Rytarowski <n54@gmx.com>
1500
1501 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1502 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1503 (netbsd_nat::for_each_thread): Add.
1504 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1505 "gdbsupport/common-debug.h".
1506 * (netbsd_nat::netbsd_thread_lister)
1507 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1508 (netbsd_nat::for_each_thread): Add.
1509
330662f6
KR
15102020-09-10 Kamil Rytarowski <n54@gmx.com>
1511
1512 * netbsd-nat.h: Include <unistd.h>.
1513 * (netbsd_nat::pid_to_exec_file): Add.
1514 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1515 * (netbsd_nat::pid_to_exec_file) Add.
1516
70b67307
KR
15172020-09-10 Kamil Rytarowski <n54@gmx.com>
1518
1519 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1520
99cf6da6
KR
15212020-09-10 Kamil Rytarowski <n54@gmx.com>
1522
1523 * netbsd-nat.h: New file.
1524 * netbsd-nat.c: Likewise.
1525
1b788fb6
TT
15262020-09-09 Tom Tromey <tromey@adacore.com>
1527
1528 * ada-lang.c (remove_extra_symbols): Do not increment when
1529 removing an element
1530
03b0a45f
TT
15312020-09-08 Tom Tromey <tromey@adacore.com>
1532
1533 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1534
3cae4447
TT
15352020-09-08 Tom Tromey <tromey@adacore.com>
1536
1537 PR win32/25302:
1538 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1539 (gdb_bfd_init_data): New function.
1540 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1541
7f08fd51
TBA
15422020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1543
1544 * infrun.c (fetch_inferior_event): Use
1545 `switch_to_target_no_thread` to switch the target.
1546
3e6ff933
TT
15472020-09-06 Tom Tromey <tom@tromey.com>
1548
1549 * symfile.h (dwarf2_free_objfile): Don't declare.
1550
e56798df
AKS
15512020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1552
1553 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1554 to match 16 byte real/complex type generated by Flang compiler.
1555
8f5c6526
TV
15562020-09-03 Tom de Vries <tdevries@suse.de>
1557
1558 PR breakpoint/26546
1559 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1560 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1561
c5065df0
SM
15622020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1563
1564 * maint.c (index_digits): New function.
1565 (struct maint_print_section_data): Remove.
1566 (print_bfd_section_info): Remove print_data parameter, add arg
1567 and index_digits.
1568 (print_objfile_section_info): Likewise.
1569 (print_bfd_section_info_maybe_relocated): Likewise (plus
1570 objfile).
1571 (maintenance_info_sections): Adjust calls.
1572
02c6f3f1
TT
15732020-09-02 Tom Tromey <tromey@adacore.com>
1574
1575 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1576 for null pointers.
1577 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1578
ef5e5b0b
SM
15792020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * bcache.h (struct bcache) <insert>: Change type of `added` to
1582 pointer to bool.
1583 * bcache.c (bcache::insert): Likewise.
1584 * gdbtypes.c (check_types_worklist): Adjust.
1585 * psymtab.c (add_psymbol_to_bcache): Adjust.
1586
973695d6
KB
15872020-08-31 Kevin Buettner <kevinb@redhat.com>
1588
1589 * corelow.c (unordered_set): Include.
1590 (class core_target): Add field 'm_core_unavailable_mappings'.
1591 (core_target::build_file_mappings): Print only one warning
1592 per inaccessible file. Add unavailable/broken mappings
1593 to m_core_unavailable_mappings.
1594 (core_target::xfer_partial): Call...
1595 (core_target::xfer_memory_via_mappings): New method.
1596
264fc0e2
SM
15972020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1600 type to bool.
1601
2de01bdb
SM
16022020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * dwarf2/read.c (struct field_info): Fix indentation.
1605
f3bd50f1
SM
16062020-08-31 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1609 ordering in comment.
1610 * frame.c (frame_id_eq): Fix indentation.
1611
22b9b4b0
SL
16122020-08-31 Scott Linder <scott@scottlinder.com>
1613 Simon Marchi <simon.marchi@efficios.com>
1614
1615 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1616 inline frame ids in outer frame.
1617
84154d16
SM
16182020-08-31 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1621 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1622 (outer_frame_id): Use FID_STACK_OUTER instead of
1623 FID_STACK_INVALID.
1624 (frame_id_p): Don't check for outer_frame_id.
1625
8efaf6b3
SM
16262020-08-31 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1629 regnum/frame in value. Call allocate_value_lazy.
1630 * frame.c (frame_unwind_register_value): Use
1631 val_print_not_saved.
1632
fe1fe7ea
SM
16332020-08-31 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1636
f7c7700d
PA
16372020-08-29 Pedro Alves <pedro@palves.net>
1638
1639 * progspace.c (print_program_space): Use all_inferiors. Switch to
1640 the inferior before calling target_pid_to_str.
1641
e0814aae
TT
16422020-08-28 Tom Tromey <tom@tromey.com>
1643
1644 * xcoffread.c (xcoff_end_psymtab): Update comment.
1645 * dbxread.c (dbx_end_psymtab): Update comment.
1646
626d2320
TV
16472020-08-28 Tom de Vries <tdevries@suse.de>
1648
1649 PR breakpoint/26544
1650 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1651 event_location.
1652 (create_breakpoint): Same.
1653 (base_breakpoint_decode_location): Same.
1654 (bkpt_create_sals_from_location): Same.
1655 (bkpt_decode_location): Same.
1656 (bkpt_probe_create_sals_from_location): Same.
1657 (bkpt_probe_decode_location): Same.
1658 (tracepoint_create_sals_from_location): Same.
1659 (tracepoint_decode_location): Same.
1660 (tracepoint_probe_decode_location): Same.
1661 (strace_marker_create_sals_from_location): Same.
1662 (strace_marker_decode_location): Same.
1663 (create_sals_from_location_default): Same.
1664 (decode_location_default): Same.
1665 * breakpoint.h (struct breakpoint_ops): Same.
1666 (create_breakpoint): Same.
1667 * linespec.h (decode_line_full): Same.
1668 * linespec.c (decode_line_full): Same. Throw error if
1669 result.size () == 0.
1670
df631783
PA
16712020-08-27 Pedro Alves <pedro@palves.net>
1672
1673 PR gdb/26524
1674 * breakpoint.c (until_break_fsm) <location_breakpoint,
1675 caller_breakpoint>: Delete fields.
1676 <breakpoints>: New field.
1677 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1678 two individual breakpoints.
1679 (until_break_fsm::should_stop): Loop over breakpoints in the
1680 breakpoint vector.
1681 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1682 vector.
1683 (until_break_command): Handle location expanding into multiple
1684 sals.
1685
b2b38aa4
PA
16862020-08-27 Pedro Alves <pedro@palves.net>
1687
1688 PR gdb/26523
1689 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1690 bp_until breakpoints user-specified locations. Update intro
1691 comment.
1692
b886559f
SM
16932020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1696 gdb_bfd_sections): New.
1697 * maint.c (print_bfd_section_info): Change param type to
1698 maint_print_section_data.
1699 (print_objfile_section_info): Likewise.
1700 (print_bfd_section_info_maybe_relocated): Likewise.
1701 (maintenance_info_sections): Use gdb_bfd_sections.
1702
4c6e63bf
SV
17032020-08-25 Shahab Vahedi <shahab@synopsys.com>
1704
1705 * MAINTAINERS: Add ARC target and maintainer.
1706
8d7f0635
AK
17072020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1708
1709 * configure.tgt: ARC support for GNU/Linux.
1710 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1711 * arc-linux-tdep.c: New file.
1712 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1713 * arc-tdep.c (arc_write_pc): Use it.
1714
fdd8731b
SV
17152020-08-25 Shahab Vahedi <shahab@synopsys.com>
1716
1717 * arc-tdep.c (arc_check_for_hardware_loop): New.
1718 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1719
22459524
SV
17202020-08-25 Shahab Vahedi <shahab@synopsys.com>
1721
1722 * arc-tdep.h: Include "gdbarch.h".
1723
995d3a19
SV
17242020-08-25 Shahab Vahedi <shahab@synopsys.com>
1725
1726 * arch/arc.h
1727 (arc_gdbarch_features): New class to stir the selection of target XML.
1728 (arc_create_target_description): Use FEATURES to choose XML target.
1729 (arc_lookup_target_description): Use arc_create_target_description
1730 to create _new_ target descriptions or return the already created
1731 ones if the FEATURES is the same.
1732 * arch/arc.c: Implementation of prototypes described above.
1733 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1734 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1735 * arc-tdep.c (*_feature_name): Make feature names consistent.
1736 (arc_register_feature): A new struct to hold information about
1737 registers of a particular target/feature.
1738 (arc_check_tdesc_feature): Check if XML provides registers in
1739 compliance with ARC_REGISTER_FEATURE structs.
1740 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1741 (determine_*_reg_feature_set): Which feature name to look for.
1742 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1743 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1744 to expected ISA enums to be used in arc_gdbarch_features structs.
1745 * features/Makefile (FEATURE_XMLFILES): Add new files.
1746 * gdb/features/arc/v1-aux.c: New file.
1747 * gdb/features/arc/v1-aux.xml: Likewise.
1748 * gdb/features/arc/v1-core.c: Likewise.
1749 * gdb/features/arc/v1-core.xml: Likewise.
1750 * gdb/features/arc/v2-aux.c: Likewise.
1751 * gdb/features/arc/v2-aux.xml: Likewise.
1752 * gdb/features/arc/v2-core.c: Likewise.
1753 * gdb/features/arc/v2-core.xml: Likewise.
1754 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1755
3945d2d7
GM
17562020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1757 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 PR m2/26372
fc5d6901 1760 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1761 an assert. Remove single element array indexing pattern as the
1762 MULTI_SUBSCRIPT support will handle this case too.
1763
2677f2d3
SM
17642020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * value.h (valprint_check_validity): Move declaration from
1767 here...
1768 * valprint.h (valprint_check_validity): ... to here.
1769
c426fddb
SM
17702020-08-24 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * debug.h: New file.
1773 * debug.c (debug_prefixed_vprintf): New function.
1774 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1775 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1776
1eb8556f
SM
17772020-08-24 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * infrun.h (infrun_debug_printf_1): New function declaration.
1780 (infrun_debug_printf): New macro.
1781 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1782 throughout.
1783 (infrun_debug_printf): New function.
1784 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1785 (handle_jit_event): Likewise.
1786
b8fff44e
MW
17872020-08-21 Mark Wielaard <mark@klomp.org>
1788
1789 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1790
d19c3068
SM
17912020-08-22 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * frame.c (enum class frame_id_status): New.
1794 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1795 (fprintf_frame): Update.
1796 (compute_frame_id): Set frame id status to "computing" on entry.
1797 Set it back to "not_computed" on failure and to "computed" on
1798 success.
1799 (get_frame_id): Assert the frame id is not being computed.
1800 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1801 (create_new_frame): Likewise.
1802 (frame_cleanup_after_sniffer): Update assert.
1803
b70e516e
SM
18042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1805
1806 * regcache.c (pid_ptid_regcache_map): New type.
1807 (target_ptid_regcache_map): Remove.
1808 (target_pid_ptid_regcache_map): New type.
1809 (regcaches): Change type to target_pid_ptid_regcache_map.
1810 (get_thread_arch_aspace_regcache): Update.
1811 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1812 case.
1813 (regcaches_size): Update.
1814 (regcache_count): Update.
1815 (registers_changed_ptid_target_pid_test): New.
1816 (_initialize_regcache): Register new test.
1817
cdd9148a
SM
18182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * regcache.c (regcache_count): New.
1821 (struct regcache_test_data): New.
1822 (regcache_test_data_up): New.
1823 (populate_regcaches_for_test): New.
1824 (regcaches_test): Remove.
1825 (get_thread_arch_aspace_regcache_test): New.
1826 (registers_changed_ptid_all_test): New.
1827 (registers_changed_ptid_target_test): New.
1828 (registers_changed_ptid_target_ptid_test): New.
1829 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1830 (_initialize_regcache): Register new tests.
1831
dd125343
SM
18322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1835 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1836 gdbarch and aspace parameter. Use current inferior's aspace.
1837 Validate regcache's arch value.
1838 (regcaches_test): Update.
1839
3ee93972
SM
18402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * regcache.c (regcaches_test): Call registers_changed.
1843
33bf4c5c
TBA
18442020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1845
1846 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1847
c2fd7fae
AKS
18482020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1849
1850 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1851 to find the end of prologue for flang compiled binaries.
1852 * arm-tdep.c (arm_skip_prologue): Likewise.
1853 * i386-tdep.c (i386_skip_prologue): Likewise.
1854 * producer.c (producer_is_llvm): New function.
1855 (producer_parsing_tests): Added new tests for clang/flang.
1856 * producer.h (producer_is_llvm): New declaration.
1857
9327494e
SM
18582020-08-18 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * linux-nat.c (linux_nat_debug_printf): New function.
1861 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1862
d138725a
AM
18632020-08-18 Aaron Merey <amerey@redhat.com>
1864
1865 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1866 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1867 (CLIBS): Add DEBUGINFOD_LIBS.
1868
f9b11e6b
ST
18692020-08-17 Sergei Trofimovich <siarheit@google.com>
1870
1871 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1872 'gdbarch_num_regs'.
1873
3ae7ab99
TT
18742020-08-17 Tom Tromey <tromey@adacore.com>
1875
1876 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1877 ada_get_decoded_value returns NULL.
1878
b017825f
TT
18792020-08-17 Tom Tromey <tromey@adacore.com>
1880
1881 * python/py-inferior.c (infpy_search_memory): Use
1882 gdb_py_object_from_ulongest.
1883 * python/py-infevents.c (create_inferior_call_event_object)
1884 (create_memory_changed_event_object): Use
1885 gdb_py_object_from_ulongest.
1886 * python/py-linetable.c (ltpy_entry_get_pc): Use
1887 gdb_py_object_from_ulongest.
1888
7635cf79
SM
18892020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * loc.c (class symbol_needs_eval_context): Fix indentation.
1892
f54be24b
SM
18932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1896 bool.
1897
53d5a2a5
TV
18982020-08-17 Tom de Vries <tdevries@suse.de>
1899
1900 PR gdb/26393
1901 * gdbtypes.c (dump_dynamic_prop): New function.
1902 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1903
547ce8f0
TV
19042020-08-15 Tom de Vries <tdevries@suse.de>
1905
1906 PR backtrace/26390
1907 * stack.c (print_frame_args): Temporarily set the selected
1908 frame to FRAME while printing the frame's arguments.
1909
6ea815e7
PFC
19102020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1911
1912 PR breakpoints/26385
1913 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1914 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1915
6e562fa3
PFC
19162020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1917
1918 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1919 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1920 and >= to check return value instead of == -1 and != -1.
1921
d369b608
SM
19222020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * utils.h (class gdb_argv) <as_array_view>: New method.
1925 * utils.c (gdb_argv_as_array_view_test): New.
1926 (_initialize_utils): Register selftest.
1927 * maint.c (maintenance_selftest): Use the new method.
1928
b31488a3
KR
19292020-08-13 Kamil Rytarowski <n54@gmx.com>
1930
1931 * target.h (supports_dumpcore, dumpcore): New
1932 function declarations.
1933 * target.c (supports_dumpcore, dumpcore): New
1934 functions.
1935 * target-delegates.c: Rebuild.
1936 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1937 and target_dumpcore ().
1938
002a3166
AM
19392020-08-13 Aaron Merey <amerey@redhat.com>
1940
1941 * debuginfod-support.c: Replace global variables with user_data.
1942
ece5bc8a
SM
19432020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * maint.c (maintenance_selftest): Split args and pass array_view
1946 to run_tests.
1947
6d8a0a5e
LM
19482020-08-12 Luis Machado <luis.machado@linaro.org>
1949
1950 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1951 type's length.
1952 Use %s and pulongest to print the length.
1953
7cf663a9
PA
19542020-08-12 Pedro Alves <palves@redhat.com>
1955
1956 * NEWS: Move "Multi-target debugging support" item to the
1957 "Changes since GDB 9" section.
1958
27c7b875
PA
19592020-08-12 Pedro Alves <palves@redhat.com>
1960
1961 PR gdb/26336
1962 * progspace.c (program_space::remove_objfile): Invalidate the
1963 frame cache.
1964
1796a2a1
TV
19652020-08-11 Tom de Vries <tdevries@suse.de>
1966
1967 * MAINTAINERS: Mark ms1 as deleted.
1968
f8e3fe0d
LM
19692020-08-10 Luis Machado <luis.machado@linaro.org>
1970
1971 PR gdb/26310
1972
1973 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1974 act accordingly.
1975 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1976 movz/str/stur/stp skipping behavior.
1977
cc308722
LM
19782020-08-10 Luis Machado <luis.machado@linaro.org>
1979
1980 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1981 struct user_sve_header instead of struct sve_context.
1982
041d9819
SM
19832020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * read.h (dwarf2_fetch_die_loc_sect_off,
1986 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1987 `void *` parameter with function_view.
1988 * read.c (dwarf2_fetch_die_loc_sect_off,
1989 dwarf2_fetch_die_loc_cu_off): Likewise.
1990 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1991 (per_cu_dwarf_call): Adjust.
1992 (get_frame_address_in_block_wrapper): Remove.
1993 (indirect_synthetic_pointer): Adjust.
1994 (get_ax_pc): Remove.
1995 (dwarf2_compile_expr_to_ax): Adjust.
1996
38f8aa06
TV
19972020-08-08 Tom de Vries <tdevries@suse.de>
1998
1999 PR build/26344
2000 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2001 constructor.
2002 * regcache.c (get_thread_arch_aspace_regcache): Same.
2003
a52b3ae2
TT
20042020-08-07 Tom Tromey <tromey@adacore.com>
2005
2006 * ravenscar-thread.c
2007 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2008 New method.
2009 (ravenscar_thread_target::wait): Check
2010 runtime_initialized.
2011 (ravenscar_thread_target::prepare_to_store)
2012 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2013 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2014 (ravenscar_thread_target::stopped_by_watchpoint)
2015 (ravenscar_thread_target::stopped_data_address)
2016 (ravenscar_thread_target::core_of_thread): Use
2017 scoped_restore_current_thread and
2018 set_base_thread_from_ravenscar_task.
2019
0e29517d
TT
20202020-08-07 Tom Tromey <tromey@adacore.com>
2021
2022 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2023
592f9bd7
TT
20242020-08-07 Tom Tromey <tromey@adacore.com>
2025
2026 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2027 update_inferior_ptid before update_thread_list.
2028 (temporarily_change_regcache_ptid): New class.
2029 (ravenscar_thread_target::fetch_registers)
2030 (ravenscar_thread_target::store_registers)
2031 (ravenscar_thread_target::prepare_to_store): Use base thread when
2032 forwarding operation.
2033
39e2018a
TT
20342020-08-07 Tom Tromey <tromey@adacore.com>
2035
2036 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2037 "is_pid" case.
2038
2080266b
TT
20392020-08-07 Tom Tromey <tromey@adacore.com>
2040
2041 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2042 New methods.
2043 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2044 first.
2045 (ravenscar_thread_target::add_thread): Rename from
2046 ravenscar_add_thread.
2047 (ravenscar_thread_target::update_thread_list): Use a lambda.
2048 (ravenscar_thread_target::xfer_partial): New method.
2049
78c02f21
TT
20502020-08-07 Tom Tromey <tromey@adacore.com>
2051
2052 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2053 gdb::function_view.
2054 (iterate_over_live_ada_tasks): Change type of argument.
2055 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2056 of argument.
2057
d5d833af
TT
20582020-08-07 Tom Tromey <tromey@adacore.com>
2059
2060 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2061 Remove.
2062 (ravenscar_thread_target::extra_thread_info): Remove.
2063 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2064 defer to target beneath for non-Ravenscar threads.
2065
a8ac85bb
TT
20662020-08-07 Tom Tromey <tromey@adacore.com>
2067
2068 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2069 get_base_thread_from_ravenscar_task>: Now methods.
2070 <m_cpu_map>: New member.
2071 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2072 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2073 (ravenscar_thread_target::task_is_currently_active): Update.
2074 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2075 Now a method.
2076 (ravenscar_thread_target::add_active_thread): Put initial thread
2077 into the m_cpu_map.
2078
550ab58d
TT
20792020-08-07 Tom Tromey <tromey@adacore.com>
2080
2081 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2082 event_ptid.
2083
e9546579
TT
20842020-08-07 Tom Tromey <tromey@adacore.com>
2085
2086 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2087 runtime_initialized.
2088
3d4470e5
TT
20892020-08-07 Tom Tromey <tromey@adacore.com>
2090
2091 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2092 add_active_thread.
2093 (ravenscar_thread_target::add_active_thread): Now public.
2094 (ravenscar_inferior_created): Call add_active_thread after pushing
2095 the target.
2096
888bdb2b
SM
20972020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2098
2099 * regcache.c (ptid_regcache_map): New type.
2100 (target_ptid_regcache_map): New type.
2101 (regcaches): Change type to target_ptid_regcache_map.
2102 (get_thread_arch_aspace_regcache): Update to regcaches' new
2103 type.
2104 (regcache_thread_ptid_changed): Likewise.
2105 (registers_changed_ptid): Likewise.
2106 (regcaches_size): Likewise.
2107 (regcaches_test): Update.
2108 (regcache_thread_ptid_changed): Update.
2109 * regcache.h (regcache_up): New type.
2110 * gdbsupport/ptid.h (hash_ptid): New struct.
2111
b161a60d
SM
21122020-08-07 Simon Marchi <simon.marchi@efficios.com>
2113
2114 * observable.h (thread_ptid_changed): Add parameter
2115 `process_stratum_target *`.
2116 * infrun.c (infrun_thread_ptid_changed): Add parameter
2117 `process_stratum_target *` and use it.
2118 (selftests): New namespace.
2119 (infrun_thread_ptid_changed): New function.
2120 (_initialize_infrun): Register selftest.
2121 * regcache.c (regcache_thread_ptid_changed): Add parameter
2122 `process_stratum_target *` and use it.
2123 (regcache_thread_ptid_changed): New function.
2124 (_initialize_regcache): Register selftest.
2125 * thread.c (thread_change_ptid): Pass target to
2126 thread_ptid_changed observable.
2127
d2854d8d
CT
21282020-08-06 Caroline Tice <cmtice@google.com>
2129
fe4c3d43
SM
2130 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2131 (struct dwp_sections): Update field comments. Add loclists and
2132 rnglists fields.
2133 (struct virtual_v2_dwo_sections): Rename struct to
2134 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2135 size & offset fields for loclists and rnglists.
2136 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2137 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2138 skipping dummy type units.
2139 (create_dwp_hash_table): Update the large comment above the function to
2140 discuss Version 5 DWP files as well, with references. Update all the
2141 version checks in the function to check for version 5 as well. Add new
2142 section at the end to create dwp hash table for version 5.
2143 (create_dwp_v2_section): Rename function to
2144 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2145 Add V5 to error message text.
2146 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2147 into calls to create_dwp_v2_or_v5_section.
2148 (create_dwo_unit_in_dwp_v5): New function.
2149 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2150 check for version2; add else clause to handle version 5.
2151 (open_and_init_dwo_file): Add code to check dwarf version & only call
2152 create_debug_types_hash_table (with sections.types) if version is not 5;
2153 else call create_debug_type_hash_table, with sections.info.
2154 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2155 version 5.
2156 (dwarf2_locate_v5_dwp_sections): New function.
2157 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2158 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2159
159ed7d9
SM
21602020-08-06 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * regcache.h (class regcache): Remove friend
2163 registers_changed_ptid.
2164 <regcache_thread_ptid_changed>: Remove.
2165 <regcaches>: Remove.
2166 * regcache.c (regcache::regcaches): Rename to...
2167 (regcaches): ... this. Make static.
2168 (get_thread_arch_aspace_regcache): Update.
2169 (regcache::regcache_thread_ptid_changed): Rename to...
2170 (regcache_thread_ptid_changed): ... this. Update.
2171 (class regcache_access): Remove.
2172 (regcaches_test): Update.
2173 (_initialize_regcache): Update.
2174 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2175 <forward_list>.
2176
174981ae
SM
21772020-08-06 Simon Marchi <simon.marchi@efficios.com>
2178
2179 * regcache.h (class regcache) <current_regcache>: Rename to...
2180 <regcaches>: ... this. Move doc here.
2181 * regcache.c (regcache::current_regcache) Rename to...
2182 (regcache::regcaches): ... this. Move doc to header.
2183 (get_thread_arch_aspace_regcache): Update.
2184 (regcache::regcache_thread_ptid_changed): Update.
2185 (registers_changed_ptid): Update.
2186 (class regcache_access) <current_regcache_size>: Rename to...
2187 <regcaches_size>: ... this.
2188 (current_regcache_test): Rename to...
2189 (regcaches_test): ... this.
2190 (_initialize_regcache): Update.
2191
ed908db6
VC
21922020-08-06 Victor Collod <vcollod@nvidia.com>
2193
2194 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2195
b5582ab7
KB
21962020-08-05 Kevin Buettner <kevinb@redhat.com>
2197
2198 * corelow.c (core_target::build_file_mappings): Don't output
2199 null pathname in warning.
2200
ea946b86
SM
22012020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2204 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2205 gdb.dwarf2/dw2-single-line-discriminators.exp,
2206 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2207
57d02173
TT
22082020-08-05 Tom Tromey <tromey@adacore.com>
2209
2210 PR rust/26197:
2211 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2212 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2213 Fix off-by-one and type size errors in ordinary case.
2214
5555c86d
TV
22152020-08-05 Tom de Vries <tdevries@suse.de>
2216
2217 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2218 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2219
97916bfe
SM
22202020-08-04 Simon Marchi <simon.marchi@efficios.com>
2221
2222 * frame.h (frame_id_p): Return bool.
2223 (frame_id_artificial_p): Return bool.
2224 (frame_id_eq): Return bool.
2225 (has_stack_frames): Return bool.
2226 (get_selected_frame): Fix typo in comment.
2227 (get_frame_pc_if_available): Return bool.
2228 (get_frame_address_in_block_if_available): Return bool.
2229 (get_frame_func_if_available): Return bool.
2230 (read_frame_register_unsigned): Return bool.
2231 (get_frame_register_bytes): Return bool.
2232 (safe_frame_unwind_memory): Return bool.
2233 (deprecated_frame_register_read): Return bool.
2234 (frame_unwinder_is): Return bool.
2235 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2236 bool.
2237 <this_id::p>: Likewise.
2238 <prev_p>: Likewise.
2239 (frame_stash_add): Return bool.
2240 (get_frame_id): Use bool.
2241 (frame_id_build_special) Use bool.
2242 (frame_id_build_unavailable_stack): Use bool.
2243 (frame_id_build): Use bool.
2244 (frame_id_p): Return bool, use true/false instead of 1/0.
2245 (frame_id_artificial_p): Likewise.
2246 (frame_id_eq): Likewise.
2247 (frame_id_inner): Likewise.
2248 (get_frame_func_if_available): Likewise.
2249 (read_frame_register_unsigned): Likewise.
2250 (deprecated_frame_register_read): Likewise.
2251 (get_frame_register_bytes): Likewise.
2252 (has_stack_frames): Likewise.
2253 (inside_main_func): Likewise.
2254 (inside_entry_func): Likewise.
2255 (get_frame_pc_if_available): Likewise.
2256 (get_frame_address_in_block_if_available): Likewise.
2257 (frame_unwinder_is): Likewise.
2258 (safe_frame_unwind_memory): Likewise.
2259 (frame_unwind_arch): Likewise.
2260
fedfee88
SM
22612020-08-04 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2264 type to cached_copy_status.
2265 (fprintf_frame): Adjust.
2266 (get_frame_func_if_available): Adjust.
2267 (frame_cleanup_after_sniffer): Adjust.
2268
6cfa9b59
MW
22692020-08-04 Mark Wielaard <mark@klomp.org>
2270
2271 * MAINTAINERS (Write After Approval): Update email address.
2272
66d6346b
SM
22732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2276 dynamic_prop::const_val.
2277
8a6d5e35
SM
22782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2281 dynamic_prop::kind.
2282
51d6067d
SM
22832020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2286
b26e2ae7
JM
22872020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2288
2289 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2290
39791af2
JM
22912020-08-04 Weimin Pan <weimin.pan@oracle.com>
2292 Jose E. Marchesi <jose.marchesi@oracle.com>
2293
2294 * configure.tgt: Add entry for bpf-*-*.
2295 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2296 (ALLDEPFILES): Add bpf-tdep.c.
2297 * bpf-tdep.c: New file.
2298 * MAINTAINERS: Add bpf target and maintainer.
2299 * NEWS: Mention the support for the new target.
2300
521894aa
TV
23012020-08-04 Tom de Vries <tdevries@suse.de>
2302
2303 PR symtab/23270
2304 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2305 Error.
2306
5d6356e9
JB
23072020-08-03 John Baldwin <jhb@FreeBSD.org>
2308
2309 * syscalls/freebsd.xml: Regenerate.
2310
0cf82b81
JB
23112020-08-03 John Baldwin <jhb@FreeBSD.org>
2312
2313 * syscalls/update-freebsd.sh: Fix usage and year range.
2314
8f34b746
TV
23152020-08-03 Tom de Vries <tdevries@suse.de>
2316
2317 PR symtab/26333
2318 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2319 DW_LNE_lo_user/DW_LNE_hi_user range.
2320
5e500d33
SM
23212020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 PR ada/26318
2324 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2325 kind.
2326
78319c15
TBA
23272020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2328
2329 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2330
4c55e970
TBA
23312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2332
2333 * breakpoint.c (set_breakpoint_condition): Update the condition
2334 expressions after checking that the input condition string parses
2335 successfully and does not contain junk at the end.
2336
1e620590
TBA
23372020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2338
2339 * breakpoint.c (set_breakpoint_condition): Update the
2340 condition string after parsing the new condition successfully.
2341
c8693053
RO
23422020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2343
2344 * proc-api.c (_STRUCTURED_PROC): Don't define.
2345 * proc-events.c: Likewise.
2346 * proc-flags.c: Likewise.
2347 * proc-why.c: Likewise.
2348 * procfs.c: Likewise.
2349
2350 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2351 * configure, config.in: Regenerate.
2352
5a99adb8
TV
23532020-07-30 Tom de Vries <tdevries@suse.de>
2354
2355 PR build/26320
2356 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2357 m_red/m_green/m_blue in a union.
2358
8ba83e91
TV
23592020-07-29 Tom de Vries <tdevries@suse.de>
2360
2361 PR tdep/26280
2362 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2363
f75a0693
AB
23642020-07-28 Tom Tromey <tromey@adacore.com>
2365
2366 PR symtab/26270:
2367 * symtab.h (find_pc_partial_function_sym): Declare.
2368 * cli/cli-cmds.c (disassemble_command): Use
2369 find_pc_partial_function_sym. Check asm_demangle.
2370 * blockframe.c (cache_pc_function_sym): New global.
2371 (cache_pc_function_name): Remove.
2372 (clear_pc_function_cache): Update.
2373 (find_pc_partial_function_sym): New function, from
2374 find_pc_partial_function.
2375 (find_pc_partial_function): Rewrite using
2376 find_pc_partial_function_sym.
2377
16f3242c
TT
23782020-07-28 Tom Tromey <tromey@adacore.com>
2379
2380 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2381 help. Add usage.
2382
4888741a
TT
23832020-07-28 Tom Tromey <tromey@adacore.com>
2384
2385 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2386 <DW_OP_GNU_variable_value>: Cast to address type.
2387
4d46f402
KR
23882020-07-28 Kamil Rytarowski <n54@gmx.com>
2389
2390 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2391 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2392 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2393 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2394 (nbsd_get_siginfo_type): New.
2395 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2396 (_initialize_nbsd_tdep): New.
2397
d70f978b
L
23982020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2399
2400 PR binutils/26301
2401 * configure: Regenerated.
2402
377170fa
L
24032020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2404
2405 PR binutils/26301
2406 * configure: Regenerated.
2407
43d5901d
AB
24082020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * python/py-frame.c: Remove 'user-regs.h' include.
2411 (frapy_read_register): Rewrite to make use of
2412 gdbpy_parse_register_id.
2413 * python/py-registers.c (gdbpy_parse_register_id): New function,
2414 moved here from python/py-unwind.c. Updated the return type, and
2415 also accepts register descriptor objects.
2416 * python/py-unwind.c: Remove 'user-regs.h' include.
2417 (pyuw_parse_register_id): Moved to python/py-registers.c.
2418 (unwind_infopy_add_saved_register): Update to use
2419 gdbpy_parse_register_id.
2420 (pending_framepy_read_register): Likewise.
2421 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2422
14fa8fb3
AB
24232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * python/py-registers.c: Add 'user-regs.h' include.
2426 (register_descriptor_iter_find): New function.
2427 (register_descriptor_iterator_object_methods): New static global
2428 methods array.
2429 (register_descriptor_iterator_object_type): Add pointer to methods
2430 array.
2431
ddce1758
JB
24322020-07-27 John Baldwin <jhb@FreeBSD.org>
2433
2434 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2435 for all architectures on FreeBSD 11.3 and later.
2436
a4089f52
TT
24372020-07-27 Tom Tromey <tromey@adacore.com>
2438
2439 * gcore.h (load_corefile): Don't declare.
2440
95420d30
TV
24412020-07-27 Tom de Vries <tdevries@suse.de>
2442
2443 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2444 * config.in: Regenerate.
2445 * configure: Regenerate.
2446
05a6b8c2
EZ
24472020-07-26 Eli Zaretskii <eliz@gnu.org>
2448
2449 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2450 ws2tcpip.h. When checking whether socklen_t type is defined, use
2451 ws2tcpip.h if it is available and sys/socket.h isn't.
2452 * configure: Regenerate.
2453 * config.in: Regenerate.
2454
e79eb02f
AB
24552020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 PR fortran/23051
2458 PR fortran/26139
2459 * valops.c (value_ind): Pass address to
2460 readjust_indirect_value_type.
2461 * value.c (readjust_indirect_value_type): Make parameter
2462 non-const, and add extra address parameter. Resolve original type
2463 before using it.
2464 * value.h (readjust_indirect_value_type): Update function
2465 signature and comment.
2466
876518dd
TV
24672020-07-25 Tom de Vries <tdevries@suse.de>
2468
2469 PR symtab/26243
2470 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2471 entries.
2472
f6720b1c
AM
24732020-07-24 Aaron Merey <amerey@redhat.com>
2474
2475 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2476 * configure: Rebuild.
2477
513487e1
KB
24782020-07-23 Kevin Buettner <kevinb@redhat.com>
2479
2480 PR corefiles/26294
2481 * corelow.c (_initialize_corelow): Add period to help text
2482 for "maintenance print core-file-backed-mappings".
2483
e7bc9db8
PA
24842020-07-23 Pedro Alves <pedro@palves.net>
2485
2486 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2487 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2488 meanwhile.
2489 * frame.c (frame_cache_generation, get_frame_cache_generation):
2490 New.
2491 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2492 (get_prev_frame_if_no_cycle): On exception, don't touch
2493 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2494 * frame.h (get_frame_cache_generation): Declare.
2495
90fcc466
TV
24962020-07-23 Tom de Vries <tdevries@suse.de>
2497
2498 PR tui/26282
2499 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2500 New default constructor.
2501
78344df7
AB
25022020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2505 exclude non-statement entries.
2506
b089853a
KB
25072020-07-22 Kevin Buettner <kevinb@redhat.com>
2508
2509 * NEWS (New commands): Mention new command
2510 "maintenance print core-file-backed-mappings".
2511
09c2f5d4
KB
25122020-07-22 Kevin Buettner <kevinb@redhat.com>
2513
2514 * corelow.c (gdbcmd.h): Include.
2515 (core_target::info_proc_mappings): New method.
2516 (get_current_core_target): New function.
2517 (maintenance_print_core_file_backed_mappings): New function.
2518 (_initialize_corelow): Add core-file-backed-mappings to
2519 "maint print" commands.
2520
9c5ec5c2 25212020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2522
9c5ec5c2
KB
2523 * linux-tdep.c (dump_note_entry_p): New function.
2524 (linux_dump_mapping_p_ftype): New typedef.
2525 (linux_find_memory_regions_full): Add new parameter,
2526 should_dump_mapping_p.
2527 (linux_find_memory_regions): Adjust call to
2528 linux_find_memory_regions_full.
2529 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2530 call to linux_find_memory_regions_full.
2531
db082f59
KB
25322020-07-22 Kevin Buettner <kevinb@redhat.com>
2533
2534 * corelow.c (solist.h, unordered_map): Include.
2535 (class core_target): Add field m_core_file_mappings and
2536 method build_file_mappings.
2537 (core_target::core_target): Call build_file_mappings.
2538 (core_target::~core_target): Free memory associated with
2539 m_core_file_mappings.
2540 (core_target::build_file_mappings): New method.
2541 (core_target::xfer_partial): Use m_core_file_mappings
2542 for memory transfers.
2543 * linux-tdep.c (linux_read_core_file_mappings): New
2544 function.
2545 (linux_core_info_proc_mappings): Rewrite to use
2546 linux_read_core_file_mappings.
2547 (linux_init_abi): Register linux_read_core_file_mappings.
2548
7e183d27
KB
25492020-07-22 Kevin Buettner <kevinb@redhat.com>
2550
2551 * arch-utils.c (default_read_core_file_mappings): New function.
2552 * arch-utils.c (default_read_core_file_mappings): Declare.
2553 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2554 * gdbarch.h, gdbarch.c: Regenerate.
2555
2735d421
KB
25562020-07-22 Kevin Buettner <kevinb@redhat.com>
2557
2558 PR corefiles/25631
2559 * corelow.c (core_target:xfer_partial): Revise
2560 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2561 case after first checking the stratum beneath the core
2562 target.
2563 (has_all_memory): Return true.
2564 * target.c (raw_memory_xfer_partial): Revise comment
2565 regarding use of has_all_memory.
2566
e56cb451
KB
25672020-07-22 Kevin Buettner <kevinb@redhat.com>
2568
2569 * exec.h (section_table_xfer_memory): Revise declaration,
2570 replacing section name parameter with an optional callback
2571 predicate.
2572 * exec.c (section_table_xfer_memory): Likewise.
2573 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2574 of section_table_xfer_memory.
2575
32fa152e
TT
25762020-07-22 Tom Tromey <tromey@adacore.com>
2577
2578 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2579 lookup_symbol_search_name.
2580
a67a1c41
AB
25812020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2584 redundant local variable.
2585 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2586 reference, not pointer, update code accordingly.
2587
a7b4ff4f
SM
25882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2589 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2590
2591 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2592 * jit.c (jit_breakpoint_re_set_internal): Use the
2593 `skip_jit_symbol_lookup` field.
2594
2340e834
SM
25952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2596 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597
2598 * jit.c (jit_read_descriptor): Define the descriptor address once,
2599 use twice.
2600 (jit_breakpoint_deleted): Move the declaration of the loop variable
2601 `iter` into the loop header.
2602 (jit_breakpoint_re_set_internal): Move the declaration of the local
2603 variable `objf_data` to the first point of definition.
2604 (jit_event_handler): Move the declaration of local variables
2605 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2606 Rename `objf` to `jited`.
2607
c1072906
SM
26082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2609
2610 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2611 Remove.
2612 * jit.c (get_jiter_objfile_data): Update.
2613
c8474dc3
TBA
26142020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2615 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * jit.c (struct jit_program_space_data): Remove.
2618 (jit_program_space_key): Remove.
2619 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2620 stuff.
2621 (get_jit_program_space_data): Remove.
2622 (jit_breakpoint_deleted): Iterate on all of the program space's
2623 objfiles.
2624 (jit_inferior_init): Likewise.
2625 (jit_breakpoint_re_set_internal): Likewise. Also change return
2626 type to void.
2627 (jit_breakpoint_re_set): Pass current_program_space to
2628 jit_breakpoint_re_set_internal.
2629
77208eb7
SM
26302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2631
2632 * jit.h (struct jiter_objfile_data) <cached_code_address,
2633 jit_breakpoint>: Move to here from ...
2634 * jit.c (jit_program_space_data): ... here.
2635 (jiter_objfile_data::~jiter_objfile_data): Update.
2636 (jit_breakpoint_deleted): Update.
2637 (jit_breakpoint_re_set_internal): Update.
2638
8c1c720f
SM
26392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2640
2641 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2642 checks.
2643 (jit_read_descriptor): Remove NULL check.
2644 (jit_event_handler): Add an assertion.
2645
0e74a041
SM
26462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * jit.h (struct jit_objfile_data): Split into...
2649 (struct jiter_objfile_data): ... this ...
2650 (struct jited_objfile_data): ... and this.
2651 * objfiles.h (struct objfile) <jit_data>: Remove.
2652 <jiter_data, jited_data>: New fields.
2653 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2654 (jiter_objfile_data::~jiter_objfile_data): ... this.
2655 (get_jit_objfile_data): Rename to ...
2656 (get_jiter_objfile_data): ... this.
2657 (add_objfile_entry): Update.
2658 (jit_read_descriptor): Use get_jiter_objfile_data.
2659 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2660 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2661 (jit_inferior_exit_hook): Use objfile's jited_data field.
2662
238b5c9f
SM
26632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * jit.h: Forward-declare `struct minimal_symbol`.
2666 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2667 constructor, destructor, and an objfile* field.
2668 * jit.c (jit_objfile_data): Remove.
2669 (struct jit_objfile_data): Migrate from here to jit.h.
2670 (jit_objfile_data::~jit_objfile_data): New destructor
2671 implementation with code moved from free_objfile_data.
2672 (free_objfile_data): Delete.
2673 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2674 (jit_find_objf_with_entry_addr): Ditto.
2675 (jit_inferior_exit_hook): Ditto.
2676 (_initialize_jit): Remove the call to
2677 register_objfile_data_with_cleanup.
2678 * objfiles.h (struct objfile) <jit_data>: New field.
2679
fe053b9e
TBA
26802020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681
2682 * jit.h: Forward-declare `struct objfile`.
2683 (jit_event_handler): Add a second parameter, the JITer objfile.
2684 * jit.c (jit_read_descriptor): Change the signature to take the
2685 JITer objfile as an argument instead of the jit_program_space_data.
2686 (jit_inferior_init): Update the call to jit_read_descriptor.
2687 (jit_event_handler): Use the new JITer objfile argument when calling
2688 jit_read_descriptor.
2689 * breakpoint.c (handle_jit_event): Update the call to
2690 jit_event_handler to pass the JITer objfile.
2691
4cec0c66
JB
26922020-07-21 John Baldwin <jhb@FreeBSD.org>
2693
2694 * gdbarch.c: Regenerate.
2695 * gdbarch.h: Regenerate.
2696 * gdbarch.sh (handle_segmentation_fault): Remove method.
2697 * infrun.c (handle_segmentation_fault): Remove.
2698 (print_signal_received_reason): Remove call to
2699 handle_segmentation_fault.
2700
0e42f66a
JB
27012020-07-21 John Baldwin <jhb@FreeBSD.org>
2702
2703 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2704 Rename to sparc64_linux_report_signal_info and add siggnal
2705 argument.
2706 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2707 instead of sparc64_linux_handle_segmentation_fault.
2708
77bdfeb2
JB
27092020-07-21 John Baldwin <jhb@FreeBSD.org>
2710
2711 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2712 i386_linux_report_signal_info instead of
2713 i386_linux_handle_segmentation_fault.
2714 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2715 to i386_linux_report_signal_info and add siggnal argument.
2716 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2717 of i386_linux_handle_segmentation_fault.
2718 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2719 to i386_linux_report_signal_info and add siggnal argument.
2720
ad97bfc5
JB
27212020-07-21 John Baldwin <jhb@FreeBSD.org>
2722
2723 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2724 hook if present.
2725
272bb05c
JB
27262020-07-21 John Baldwin <jhb@FreeBSD.org>
2727
2728 * gdbarch.c: Regenerate.
2729 * gdbarch.h: Regenerate.
2730 * gdbarch.sh (report_signal_info): New method.
2731 * infrun.c (print_signal_received_reason): Invoke gdbarch
2732 report_signal_info hook if present.
2733
baf8791e
AB
27342020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * python/py-registers.c : Add 'unordered_map' include.
2737 (gdbpy_new_reggroup): Renamed to...
2738 (gdbpy_get_reggroup): ...this. Update to only create register
2739 group descriptors when needed.
2740 (gdbpy_reggroup_iter_next): Update.
2741
f7306dac
AB
27422020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * python/py-registers.c (gdbpy_register_object_data): New static
2745 global.
2746 (gdbpy_register_object_data_init): New function.
2747 (gdbpy_new_register_descriptor): Renamed to...
2748 (gdbpy_get_register_descriptor): ...this, and update to reuse
2749 existing register descriptors where possible.
2750 (gdbpy_register_descriptor_iter_next): Update.
2751 (gdbpy_initialize_registers): Register new gdbarch data.
2752
05c309a8
SM
27532020-07-21 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * linux-nat.c (stopped_pids): Make static.
2756
d1fd641e
SM
27572020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 PR ada/26235
2760 * gdbtypes.c (ada_discrete_type_low_bound,
2761 ada_discrete_type_high_bound): Handle undefined bounds.
2762
1de14d77
KR
27632020-07-21 Kamil Rytarowski <n54@gmx.com>
2764
2765 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2766 declaration.
2767 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2768 function.
2769
ed810cc7
JB
27702020-07-20 John Baldwin <jhb@FreeBSD.org>
2771
2772 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2773 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2774 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2775 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2776 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2777 method.
2778
ae5369e7
LC
27792020-07-20 Ludovic Courtès <ludo@gnu.org>
2780
2781 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2782 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2783 which are deprecated in Guile 3.0.
2784 * configure.ac (try_guile_versions): Add "guile-3.0".
2785 * configure (try_guile_versions): Regenerate.
2786 * NEWS: Update entry.
2787
68cf161c
LC
27882020-07-20 Ludovic Courtès <ludo@gnu.org>
2789 Doug Evans <dje@google.com>
2790
2791 PR gdb/21104
2792 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2793 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2794 USING_GUILE_BEFORE_2_2.
2795 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2796 Change type to 'scm_t_port_type *'.
2797 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2798 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2799 parameter and honor it. Update callers.
2800 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2801 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2802 functions.
2803 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2804 USING_GUILE_BEFORE_2_2.
2805 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2806 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2807 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2808 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2809 and 'SCM_PORT_TYPE'.
2810 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2811 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2812 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2813 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2814 [!USING_GUILE_BEFORE_2_2]: New functions.
2815 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2816 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2817 'gdbscm_memory_port_read'.
2818 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2819 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2820 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2821 function.
2822 (ioscm_init_memory_port): Remove.
2823 (ioscm_init_memory_port_stream): New function
2824 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2825 function.
2826 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2827 Return scm_from_uint (0).
2828 (gdbscm_set_memory_port_read_buffer_size_x)
2829 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2830 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2831 Return scm_from_uint (0).
2832 (gdbscm_set_memory_port_write_buffer_size_x)
2833 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2834 * configure.ac (try_guile_versions): Add "guile-2.2".
2835 * configure: Regenerate.
2836 * NEWS: Add entry.
2837
aee91db3
TT
28382020-07-18 Tom Tromey <tom@tromey.com>
2839
2840 * linux-nat.c (linux_multi_process): Remove.
2841 (linux_nat_target::supports_multi_process): Return true.
2842
0e267416
AB
28432020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2846 (riscv_lookup_target_description): Return pointer out of
2847 unique_ptr.
2848 * target-descriptions.c (allocate_target_description): Add
2849 comment.
2850 (target_desc_deleter::operator()): Likewise.
2851 * target-descriptions.h (struct target_desc_deleter): Moved to
2852 gdbsupport/tdesc.h.
2853 (target_desc_up): Likewise.
2854
f80c8ec4
TT
28552020-07-17 Tom Tromey <tromey@adacore.com>
2856
2857 * linux-nat.c (linux_nat_target::supports_non_stop)
2858 (linux_nat_target::always_non_stop_p): Use "true".
2859 (linux_nat_target::supports_disable_randomization): Use "true" and
2860 "false".
2861
d0ce17d8
CT
28622020-07-16 Caroline Tice <cmtice@google.com>
2863
2864 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2865 (RNGLIST_HEADER_SIZE64): New constant definition.
2866 (struct dwop_section_names): Add rnglists_dwo.
2867 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2868 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2869 (struct dwo_sections): Add rnglists field.
2870 (read_attribut_reprocess): Add tag parameter.
2871 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2872 (cu_debug_rnglists_section): New function (decl & definition).
2873 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2874 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2875 die whose range is being checked; get rnglist section from
2876 cu_debug_rnglists_section, to get from either objfile or dwo file as
2877 appropriate. Add cases for DW_RLE_base_addressx,
2878 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2879 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2880 test inside if-condition and updating complaint message.
2881 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2882 dwarf2_rnglists_process.
2883 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2884 dwarf2_ranges_process.
2885 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2886 need_ranges_base and update comment appropriately. Also pass die tag
2887 to dwarf2_ranges_read.
2888 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2889 need_ranges_base and update comment appropriately. Also pass die tag
2890 to dwarf2_ranges_process.
2891 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2892 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2893 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2894 need_ranges_base and update comment appropriately. Also pass die tag
2895 to read_attribute_reprocess and dwarf2_ranges_read.
2896 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2897 and update function comment appropriately.
2898 (read_loclist_index): Call read_loclists_rnglists_header instead of
2899 read_loclist_header.
2900 (read_rnglist_index): New function.
2901 (read_attribute_reprocess): Add tag parameter. Add code for
2902 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2903 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2904
3dcc261c
AB
29052020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2908 being resolved.
2909
ccb9eba6
AB
29102020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * arch-utils.c (show_architecture): Update formatting of messages.
2913
cf88be68
SM
29142020-07-12 Simon Marchi <simon.marchi@efficios.com>
2915
2916 * gdbtypes.h (struct type) <bounds>: Handle array and string
2917 types.
2918 * ada-lang.c (assign_aggregate): Use type::bounds on
2919 array/string type.
2920 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2921 * c-varobj.c (c_number_of_children): Likewise.
2922 (c_describe_child): Likewise.
2923 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2924 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2925 (f_type_print_base): Likewise.
2926 * f-valprint.c (f77_array_offset_tbl): Likewise.
2927 (f77_get_upperbound): Likewise.
2928 (f77_print_array_1): Likewise.
2929 * guile/scm-type.c (gdbscm_type_range): Likewise.
2930 * m2-typeprint.c (m2_array): Likewise.
2931 (m2_is_long_set_of_type): Likewise.
2932 * m2-valprint.c (get_long_set_bounds): Likewise.
2933 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2934 * python/py-type.c (typy_range): Likewise.
2935 * rust-lang.c (rust_internal_print_type): Likewise.
2936 * type-stack.c (type_stack::follow_types): Likewise.
2937 * valarith.c (value_subscripted_rvalue): Likewise.
2938 * valops.c (value_cast): Likewise.
2939
509971ae
SM
29402020-07-12 Simon Marchi <simon.marchi@efficios.com>
2941
2942 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2943 callers to use the equivalent accessor methods.
2944
107406b7
SM
29452020-07-12 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2948 (struct type) <bit_stride>: New method.
2949 (TYPE_BIT_STRIDE): Remove.
2950 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2951
bb789949
SM
29522020-07-12 Simon Marchi <simon.marchi@efficios.com>
2953
2954 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2955 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2956 callers to use the equivalent accessor methods instead.
2957
39498edb
SM
29582020-07-12 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2961 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2962 callers to use the equivalent accessor methods instead.
2963
3b606f38
SM
29642020-07-12 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2967 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2968 to use dynamic_prop::kind.
2969
064d9cb9
SM
29702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2973 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2974 to get the bound property's kind and check against
2975 PROP_UNDEFINED.
2976
5537ddd0
SM
29772020-07-12 Simon Marchi <simon.marchi@efficios.com>
2978
2979 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2980 all callers to use type::range_bounds followed by
2981 dynamic_prop::{low,high}.
2982
8c2e4e06
SM
29832020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2984
2985 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2986 const_val, set_const_val, baton, set_locexpr, set_loclist,
2987 set_addr_offset, variant_parts, set_variant_parts,
2988 original_type, set_original_type>: New methods.
2989 <kind>: Rename to...
2990 <m_kind>: ... this. Update all users to use the new methods
2991 instead.
2992 <data>: Rename to...
2993 <m_data>: ... this. Update all users to use the new methods
2994 instead.
2995
7c6f2712
SM
29962020-07-12 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * gdbtypes.c (get_discrete_bounds): Return failure if
2999 the range type's bounds are not both defined and constant
3000 values.
3001 (get_array_bounds): Update comment. Remove undefined bound check.
3002
599088e3
SM
30032020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3006 the type::bounds method directly.
3007
c4dfcb36
SM
30082020-07-12 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3011 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3012 are used to set the range type's bounds to use set_bounds.
3013
0a278aa7
PW
30142020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3015
3016 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3017
cce20f10
PA
30182020-07-10 Pedro Alves <pedro@palves.net>
3019
3020 * gdbthread.h (inferior_ref): Define.
3021 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3022 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3023 * thread.c
3024 (scoped_restore_current_thread::restore):
3025 Adjust to gdb::ref_ptr.
3026 (scoped_restore_current_thread::~scoped_restore_current_thread):
3027 Remove manual decref handling.
3028 (scoped_restore_current_thread::scoped_restore_current_thread):
3029 Adjust to use
3030 inferior_ref::new_reference/thread_info_ref::new_reference.
3031 Incref the thread before calling get_frame_id instead of after.
3032 Let TARGET_CLOSE_ERROR propagate.
3033
6d7aa592
PA
30342020-07-10 Pedro Alves <pedro@palves.net>
3035
3036 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3037 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3038 NOT_AVAILABLE_ERROR.
3039 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3040 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3041
b3e3a4c1
SM
30422020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3043 Pedro Alves <pedro@palves.net>
3044
3045 PR gdb/26199
3046 * infrun.c (threads_are_resumed_pending_p): Delete.
3047 (do_target_wait): Remove threads_are_executing and
3048 threads_are_resumed_pending_p checks from the inferior_matches
3049 lambda. Update comments.
3050
d6cc5d98
PA
30512020-07-10 Pedro Alves <pedro@palves.net>
3052
3053 PR gdb/26199
3054 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3055 executing threads.
3056
7d3badc6
PA
30572020-07-10 Pedro Alves <pedro@palves.net>
3058
3059 PR gdb/26199
3060 * infrun.c (handle_no_resumed): Handle multiple targets.
3061
42bd97a6
PA
30622020-07-10 Pedro Alves <pedro@palves.net>
3063
3064 PR gdb/26199
3065 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3066 target_is_async_p.
3067
43667cc6
PA
30682020-07-10 Pedro Alves <pedro@palves.net>
3069
3070 PR gdb/26199
3071 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3072 threads, not all threads.
3073
96118d11
PA
30742020-07-10 Pedro Alves <pedro@palves.net>
3075
3076 PR gdb/26199
3077 * remote.c (remote_target::open_1): Pass remote target pointer as
3078 data to create_async_event_handler.
3079 (remote_async_inferior_event_handler): Mark async event handler
3080 before returning if the remote target still has either pending
3081 events or unacknowledged notifications.
3082
54904d81
JB
30832020-07-10 John Baldwin <jhb@FreeBSD.org>
3084
3085 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3086 declaration.
3087 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3088 function.
3089
f37e5866
JB
30902020-07-09 John Baldwin <jhb@FreeBSD.org>
3091
3092 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3093 inferior_ptid.
3094
fc238d4a
JB
30952020-07-09 John Baldwin <jhb@FreeBSD.org>
3096
3097 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3098 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3099 AT_FREEBSD_PS_STRINGS.
3100
6e2469ff
HD
31012020-07-08 Hannes Domani <ssbssa@yahoo.de>
3102
3103 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3104 of debugfile path on Windows.
3105
d1076c41
JB
31062020-07-08 John Baldwin <jhb@FreeBSD.org>
3107
3108 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3109 argument to 'data'.
3110
15f3b077
TT
31112020-07-08 Tom Tromey <tromey@adacore.com>
3112
3113 * ada-lang.c (ada_exception_message_1): Use read_memory.
3114
9fc501fd
AB
31152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 PR python/22748
3118 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3119 special handling for inline frames.
3120 * findvar.c (value_of_register_lazy): Skip inline frames when
3121 creating lazy register values.
3122 * frame.c (frame_id_computed_p): Delete definition.
3123 * frame.h (frame_id_computed_p): Delete declaration.
3124
64cb3757
AB
31252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * NEWS: Mention additions to Python API.
3128 * python/py-arch.c (archpy_register_groups): New function.
3129 (arch_object_methods): Add 'register_groups' method.
3130 * python/py-registers.c (reggroup_iterator_object): New struct.
3131 (reggroup_object): New struct.
3132 (gdbpy_new_reggroup): New function.
3133 (gdbpy_reggroup_to_string): New function.
3134 (gdbpy_reggroup_name): New function.
3135 (gdbpy_reggroup_iter): New function.
3136 (gdbpy_reggroup_iter_next): New function.
3137 (gdbpy_new_reggroup_iterator): New function
3138 (gdbpy_initialize_registers): Register new types.
3139 (reggroup_iterator_object_type): Define new Python type.
3140 (gdbpy_reggroup_getset): New static global.
3141 (reggroup_object_type): Define new Python type.
3142 * python/python-internal.h
3143
0f767f94
AB
31442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3147 * python/py-arch.c (archpy_registers): New function.
3148 (arch_object_methods): Add 'registers' method.
3149 * python/py-registers.c: New file.
3150 * python/python-internal.h
3151 (gdbpy_new_register_descriptor_iterator): Declare.
3152 (gdbpy_initialize_registers): Declare.
3153 * python/python.c (do_start_initialization): Call
3154 gdbpy_initialize_registers.
3155 * NEWS: Mention additions to the Python API.
3156
87dbc774
AB
31572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * NEWS: Mention new Python API method.
3160 * python/py-unwind.c (pending_framepy_architecture): New function.
3161 (pending_frame_object_methods): Add architecture method.
3162
3bc98c0c
AB
31632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3164
3165 * gdbarch.c: Regenerate.
3166 * gdbarch.h: Regenerate.
3167 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3168 (gdbarch_data): Use internal_error for the case where
3169 deprecated_set_gdbarch_data was originally needed.
3170 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3171 and use passed in obstack.
3172 (libunwind_frame_set_descr): Should no longer get back NULL from
3173 gdbarch_data.
3174 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3175 type.
3176 * user-regs.c (user_regs_init): Update parameters, and use passed
3177 in obstack.
3178 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3179 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3180
d8cc8af6
TV
31812020-07-06 Tom de Vries <tdevries@suse.de>
3182
3183 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3184 End-Of-Sequence in lte_is_less_than.
3185 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3186 "gdb: Don't reorder line table entries too much when sorting".
3187
947f7597
TV
31882020-07-06 Tom de Vries <tdevries@suse.de>
3189
3190 PR tui/26205
3191 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3192
1e7c1b22
TV
31932020-07-05 Tom de Vries <tdevries@suse.de>
3194
3195 PR build/26187
3196 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3197 std::uncaught_exceptions instead of deprecated
3198 std::uncaught_exception.
3199
a36158ec
SM
32002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * macroexp.h (macro_stringify): Return
3203 gdb::unique_xmalloc_ptr<char>.
3204 * macroexp.c (macro_stringify): Likewise.
3205 * macrotab.c (fixup_definition): Update.
3206
14d960c8
SM
32072020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3208
3209 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3210 (lex_one_token): Update.
3211 * macroexp.c (struct macro_buffer) <release>: Return
3212 gdb::unique_xmalloc_ptr<char>.
3213 (macro_stringify): Update.
3214 (macro_expand): Update.
3215 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3216 * macroexp.h (macro_expand_next): Likewise.
3217
211d5b1c
SM
32182020-07-02 Simon Marchi <simon.marchi@efficios.com>
3219
3220 * macroexp.h (macro_lookup_ftype): Remove.
3221 (macro_expand, macro_expand_once, macro_expand_next): Remove
3222 lookup function parameters, add scope parameter.
3223 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3224 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3225 * macroscope.h (standard_macro_lookup): Change parameter type
3226 to macro_scope.
3227 * macroscope.c (standard_macro_lookup): Likewise.
3228 * c-exp.y (lex_one_token): Update.
3229 * macrocmd.c (macro_expand_command): Likewise.
3230 (macro_expand_once_command): Likewise.
3231
b1a35af2
SM
32322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 * inf-loop.c (inferior_event_handler): Remove client_data param.
3235 * inf-loop.h (inferior_event_handler): Likewise.
3236 * infcmd.c (step_1): Adjust.
3237 * infrun.c (proceed): Adjust.
3238 (fetch_inferior_event): Remove client_data param.
3239 (infrun_async_inferior_event_handler): Adjust.
3240 * infrun.h (fetch_inferior_event): Remove `void *` param.
3241 * linux-nat.c (handle_target_event): Adjust.
3242 * record-btrace.c (record_btrace_handle_async_inferior_event):
3243 Adjust.
3244 * record-full.c (record_full_async_inferior_event_handler):
3245 Adjust.
3246 * remote.c (remote_async_inferior_event_handler): Adjust.
3247
1cdf9e33
TT
32482020-07-01 Tom Tromey <tom@tromey.com>
3249
3250 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3251 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3252
32c1e210
TT
32532020-07-01 Tom Tromey <tom@tromey.com>
3254
3255 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3256 tui_gen_win_info.
3257 (tui_win_info::make_window): Merge with
3258 tui_gen_win_info::make_window.
3259 (tui_win_info::make_visible): Move from tui_gen_win_info.
3260 * tui/tui-win.c (tui_win_info::max_width): Move from
3261 tui_gen_win_info.
3262 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3263 type.
3264 <window_factory>: Likewise.
3265 * tui/tui-layout.c (tui_win_info::resize): Move from
3266 tui_gen_win_info.
3267 (make_standard_window): Change return type.
3268 (get_locator_window, tui_get_window_by_name): Likewise.
3269 (tui_layout_window::apply): Remove a cast.
3270 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3271 (struct tui_win_info): Merge with tui_gen_win_info.
3272 (struct tui_gen_win_info): Remove.
3273
a30cb6da
TT
32742020-07-01 Tom Tromey <tom@tromey.com>
3275
3276 * tui/tui-stack.h (struct tui_locator_window): Derive from
3277 tui_win_info.
3278 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3279 <can_box>: New method.
3280
1eb2161f
TT
32812020-07-01 Tom Tromey <tom@tromey.com>
3282
3283 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3284
7134f2eb
TT
32852020-07-01 Tom Tromey <tom@tromey.com>
3286
3287 * tui/tui-regs.c (tui_data_window::display_registers_from)
3288 (tui_data_window::display_registers_from)
3289 (tui_data_window::first_data_item_displayed)
3290 (tui_data_window::delete_data_content_windows): Update.
3291 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3292 Remove.
3293 (tui_data_window::check_register_values): Update.
3294 (tui_data_item_window::rerender): Add parameters. Update.
3295 (tui_data_item_window::refresh_window): Remove.
3296 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3297 virtual.
3298 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3299 tui_gen_win_info.
3300 <refresh_window, max_height, min_height>: Remove.
3301 <rerender>: Add parameters.
3302 <x, y, visible>: New members.
3303 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3304 <m_item_width>: New member.
3305
22b7b041
TT
33062020-07-01 Tom Tromey <tom@tromey.com>
3307
3308 * tui/tui-regs.c (tui_data_window::show_register_group)
3309 (tui_data_window::check_register_values): Update.
3310 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3311 from item_no.
3312
c9753adb
TT
33132020-07-01 Tom Tromey <tom@tromey.com>
3314
3315 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3316 useless "if".
3317
9ab26b4a
TT
33182020-07-01 Tom Tromey <tom@tromey.com>
3319
3320 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3321 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3322
e555083f
TT
33232020-07-01 Tom Tromey <tom@tromey.com>
3324
3325 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3326 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3327 (struct tui_line_or_address): Move from tui-data.h.
3328 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3329 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3330 (tui_cmd_window, tui_source_window_base, tui_source_window)
3331 (tui_disasm_window): Don't declare.
3332 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3333 to tui-winsource.h.
3334 (SINGLE_KEY): Move to tui-stack.c.
3335
7a02bab7
TT
33362020-07-01 Tom Tromey <tom@tromey.com>
3337
3338 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3339 std::string.
3340 * tui/tui-regs.c (class tab_expansion_file): New.
3341 (tab_expansion_file::write): New method.
3342 (tui_register_format): Change return type. Use
3343 tab_expansion_file.
3344 (tui_get_register, tui_data_window::display_registers_from)
3345 (tui_data_item_window::rerender): Update.
3346 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3347 * tui/tui-io.c (tui_expand_tabs): Remove.
3348
ea68593b
TT
33492020-07-01 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3352
a8caed5d
FS
33532020-07-01 Fangrui Song <maskray@google.com>
3354
3355 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3356
9cdf9820
AKS
33572020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3358
3359 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3360 forms for DW_AT_associated and DW_AT_allocated attributes,
3361 which is already checked in function attr_to_dynamic_prop.
3362
a1520ad8
TT
33632020-06-30 Tom Tromey <tromey@adacore.com>
3364
3365 * dwarf2/read.c (quirk_rust_enum): Correctly call
3366 alloc_rust_variant for default-less enum.
3367
5ac58899
TT
33682020-06-30 Tom Tromey <tromey@adacore.com>
3369
3370 PR build/26183:
3371 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3372 gdb::to_string.
3373
19b187a9
SM
33742020-06-29 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3377 * gdbarch.h: Re-generate.
3378
cd4c4c07
TT
33792020-06-28 Tom Tromey <tom@tromey.com>
3380
3381 * command.h (cmd_types): Remove.
3382 (cmd_type): Don't declare.
3383 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3384 typedef.
3385 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3386 * cli/cli-decode.c (cmd_type): Remove.
3387
05779d57
PA
33882020-06-27 Pedro Alves <palves@redhat.com>
3389
3390 * fork-child.c (prefork_hook): Adjust.
3391 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3392 Delete.
3393 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3394 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3395 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3396 Remove declarations.
3397 (struct inferior) <set_tty, tty>: New methods.
3398 (struct inferior) <terminal>: Rename to ...
3399 (struct inferior) <m_terminal>: ... this and make private.
3400 * main.c (captured_main_1): Adjust.
3401 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3402 (mi_cmd_inferior_tty_show): Adjust.
3403 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3404 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3405
1776e3e5
NA
34062020-06-26 Nick Alcock <nick.alcock@oracle.com>
3407
3408 * configure.ac: Add --enable-libctf: handle --disable-static
3409 properly.
3410 * acinclude.m4: sinclude ../config/enable.m4.
3411 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3412 (LIBCTF): Substitute in.
3413 (CTF_DEPS): New, likewise.
3414 (CLIBS): libctf needs symbols from libbfd: move earlier.
3415 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3416 flags.
3417 * ctfread.c: Surround in ENABLE_LIBCTF.
3418 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3419 * configure: Regenerate.
3420 * config.in: Likewise.
3421
58373b80
SM
34222020-06-25 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3425
277474ee
SM
34262020-06-25 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * inferior.h (struct inferior) <terminal>: Change type to
3429 gdb::unique_xmalloc_ptr<char>.
3430 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3431 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3432 field, adjust to unique pointer.
3433 (get_inferior_io_terminal): Adjust to unique pointer.
3434
6d74da72
AB
34352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3438 registers, not just the known core set of registers.
3439
2e52d038
AB
34402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3441
3442 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3443 fflags, frm, and fcsr registers.
3444 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3445 restore groups.
3446 (riscv_tdesc_unknown_reg): New function.
3447 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3448 tdesc_use_registers.
3449 * riscv-tdep.h (struct gdbarch_tdep): Add
3450 unknown_csrs_first_regnum, unknown_csrs_count,
3451 duplicate_fflags_regnum, duplicate_frm_regnum, and
3452 duplicate_fcsr_regnum fields.
3453
be64fd07
AB
34542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3457 callback, use the callback (when not null) to help number unknown
3458 registers.
3459 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3460 (tdesc_use_registers): Add extra parameter to declaration.
3461
3b9fce96
AB
34622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3463
3464 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3465 in the file.
3466 (class riscv_pending_register_alias): Likewise.
3467 (riscv_register_feature::register_info): Change 'required_p' field
3468 to 'required', and change its type. Add 'check' member function.
3469 (riscv_register_feature::register_info::check): Define new member
3470 function.
3471 (riscv_xreg_feature): Change initialisation of 'required' field.
3472 (riscv_freg_feature): Likewise.
3473 (riscv_virtual_feature): Likewise.
3474 (riscv_csr_feature): Likewise.
3475 (riscv_check_tdesc_feature): Take extra parameter, the csr
3476 tdesc_feature, rewrite the function to use the new
3477 riscv_register_feature::register_info::check function.
3478 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3479
865bad26
AB
34802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * features/Makefile: Remove all references to the deleted files
3483 below.
3484 * features/riscv/32bit-csr.c: Deleted.
3485 * features/riscv/32bit-csr.xml: Deleted.
3486 * features/riscv/64bit-csr.c: Deleted.
3487 * features/riscv/64bit-csr.xml: Deleted.
3488 * features/riscv/rebuild-csr-xml.sh: Deleted.
3489
ed69cbc8
AB
34902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3493 whitespace error for declaration of names member variable.
3494 (struct riscv_register_feature): Add new prefer_first_name member
3495 variable, and fix whitespace error in declaration of registers.
3496 (riscv_xreg_feature): Initialize prefer_first_name field.
3497 (riscv_freg_feature): Likewise.
3498 (riscv_virtual_feature): Likewise.
3499 (riscv_csr_feature): Likewise.
3500 (riscv_register_name): Expand on comments. Remove register name
3501 modifications for CSR and virtual registers.
3502
4445e8f5
AB
35032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3506 errors.
3507
767a879e
AB
35082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3509
3510 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3511 riscv-opc.h.
3512 (class riscv_pending_register_alias): New class.
3513 (riscv_check_tdesc_feature): Take vector of pending aliases and
3514 populate it as appropriate.
3515 (riscv_setup_register_aliases): Delete.
3516 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3517 to riscv_check_tdesc_feature in all cases. Use the vector to
3518 create the register aliases.
3519
bb6e55f3
RO
35202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3521
3522 * sol2-tdep.c (sol2_static_transform_name): Remove.
3523 (sol2_init_abi): Don't register it.
3524 * gdbarch.sh (static_transform_name): Remove.
3525 * gdbarch.c, gdbarch.h: Regenerate.
3526
3527 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3528 gdbarch_static_transform_name.
3529 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3530 * stabsread.c (define_symbol) <'X'>: Remove.
3531 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3532 handling.
3533 <'V'>: Likewise.
3534 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3535 <'S'>: Remove call to gdbarch_static_transform_name.
3536
c6d36836
RO
35372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3538
3539 * procfs.c (procfs_pre_trace): New function.
3540 (procfs_target::create_inferior): Pass it to fork_inferior.
3541
a7e6196b
RO
35422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3543
3544 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3545 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3546 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3547 sol2-tdep.o, sparc-sol2-tdep.o.
3548 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3549 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3550 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3551 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3552
d412e696
RO
35532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3554
3555 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3556 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3557 Call sol2_init_abi.
3558 Remove calls to set_gdbarch_skip_solib_resolver,
3559 set_gdbarch_core_pid_to_str.
3560 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3561 (i386_sol2_static_transform_name): Remove.
3562 (i386_sol2_init_abi): Call sol2_init_abi.
3563 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3564 set_gdbarch_static_transform_name,
3565 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3566 Use sol2_sigtramp_p.
3567 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3568 (sol2_sigtramp_p): New function.
3569 (sol2_static_transform_name): New function.
3570 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3571 (sol2_init_abi): New function.
3572 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3573 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3574 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3575 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3576 (sparc_sol2_static_transform_name): Remove.
3577 (sparc32_sol2_init_abi): Call sol2_init_abi.
3578 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3579 set_gdbarch_static_transform_name,
3580 set_gdbarch_skip_solib_resolver,
3581 set_gdbarch_core_pid_to_str.
3582 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3583 (sparc_sol2_static_transform_name): Remove
3584 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3585 call sol2_sigtramp_p.
3586 (sparc64_sol2_init_abi): Call sol2_init_abi.
3587 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3588 set_gdbarch_static_transform_name,
3589 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3590
a8654e7d
PW
35912020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3592
3593 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3594 * exec.c (validate_exec_file): If from_tty, set both
3595 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3596 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3597 and from_tty, unconditionally ask a confirmation.
3598
caa7fd04
AB
35992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * target-descriptions.c (tdesc_architecture_name): Protect against
3602 NULL pointer dereference.
3603 (maint_print_xml_tdesc_cmd): New function.
3604 (_initialize_target_descriptions): Register new 'maint print
3605 xml-tdesc' command and give it the filename completer.
3606 * NEWS: Mention new 'maint print xml-tdesc' command.
3607
fbf42f4e
AB
36082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3609
3610 * target-descriptions.c (class tdesc_compatible_info): New class.
3611 (struct target_desc): Change type of compatible vector.
3612 (tdesc_compatible_p): Update for change in type of
3613 target_desc::compatible.
3614 (tdesc_compatible_info_list): New function.
3615 (tdesc_compatible_info_arch_name): New function.
3616 (tdesc_add_compatible): Update for change in type of
3617 target_desc::compatible.
3618 (print_c_tdesc::visit_pre): Likewise.
3619
20821f4e
AB
36202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3623 whitespace to underscore.
3624 (maint_print_c_tdesc_cmd): Use fake filename for target
3625 descriptions that came from the target.
3626 (_initialize_target_descriptions): Add filename command completion
3627 for 'maint print c-tdesc'.
3628
1fb5ee62
SM
36292020-06-23 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3632 lines.
3633
fc3ecb3e
SM
36342020-06-23 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3637 lines.
3638 (dwarf2_find_location_expression): Likewise.
3639 (call_site_parameter_matches): Likewise.
3640 (dwarf2_compile_expr_to_ax): Likewise.
3641 (disassemble_dwarf_expression): Likewise.
3642 (loclist_describe_location): Likewise.
3643
236ef034
PA
36442020-06-23 Pedro Alves <palves@redhat.com>
3645
3646 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3647 progspace-and-thread.h. Include scoped-mock-context.h instead.
3648 (register_to_value_test): Use scoped_mock_context.
3649 * regcache.c: Include "scoped-mock-context.h".
3650 (cooked_read_test): Don't error out if a target is already pushed.
3651 Use scoped_mock_context. Adjust.
3652 * scoped-mock-context.h: New file.
3653
39e7ecca
AB
36542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3657 initializer.
3658 (ada_language::is_string_type_p): New member function.
3659 * c-lang.c (c_language_data): Delete la_is_string_type_p
3660 initializer.
3661 (cplus_language_data): Likewise.
3662 (asm_language_data): Likewise.
3663 (minimal_language_data): Likewise.
3664 * d-lang.c (d_language_data): Likewise.
3665 * f-lang.c (f_is_string_type_p): Delete function, implementation
3666 moved to f_language::is_string_type_p.
3667 (f_language_data): Delete la_is_string_type_p initializer.
3668 (f_language::is_string_type_p): New member function,
3669 implementation from f_is_string_type_p.
3670 * go-lang.c (go_is_string_type_p): Delete function, implementation
3671 moved to go_language::is_string_type_p.
3672 (go_language_data): Delete la_is_string_type_p initializer.
3673 (go_language::is_string_type_p): New member function,
3674 implementation from go_is_string_type_p.
3675 * language.c (language_defn::is_string_type_p): Define new member
3676 function.
3677 (default_is_string_type_p): Make static, add comment copied from
3678 header file.
3679 (unknown_language_data): Delete la_is_string_type_p initializer.
3680 (unknown_language::is_string_type_p): New member function.
3681 (auto_language_data): Delete la_is_string_type_p initializer.
3682 (auto_language::is_string_type_p): New member function.
3683 * language.h (language_data): Delete la_is_string_type_p field.
3684 (language_defn::is_string_type_p): Declare new function.
3685 (default_is_string_type_p): Delete desclaration, move comment to
3686 definition.
3687 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3688 moved to m2_language::is_string_type_p.
3689 (m2_language_data): Delete la_is_string_type_p initializer.
3690 (m2_language::is_string_type_p): New member function,
3691 implementation from m2_is_string_type_p.
3692 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3693 initializer.
3694 * opencl-lang.c (opencl_language_data): Likewise.
3695 * p-lang.c (pascal_is_string_type_p): Delete function,
3696 implementation moved to pascal_language::is_string_type_p.
3697 (pascal_language_data): Delete la_is_string_type_p initializer.
3698 (pascal_language::is_string_type_p): New member function,
3699 implementation from pascal_is_string_type_p.
3700 * rust-lang.c (rust_is_string_type_p): Delete function,
3701 implementation moved to rust_language::is_string_type_p.
3702 (rust_language_data): Delete la_is_string_type_p initializer.
3703 (rust_language::is_string_type_p): New member function,
3704 implementation from rust_is_string_type_p.
3705 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3706 is_string_type_p.
3707
4ffc13fb
AB
37082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3709
3710 * ada-lang.c (ada_language_data): Delete la_print_typedef
3711 initializer.
3712 (ada_language::print_typedef): New member function.
3713 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3714 (cplus_language_data): Likewise.
3715 (asm_language_data): Likewise.
3716 (minimal_language_data): Likewise.
3717 * d-lang.c (d_language_data): Likewise.
3718 * f-lang.c (f_language_data): Likewise.
3719 (f_language::print_typedef): New member function.
3720 * go-lang.c (go_language_data): Delete la_print_typedef
3721 initializer.
3722 * language.c (language_defn::print_typedef): Define member
3723 function.
3724 (unknown_language_data): Delete la_print_typedef initializer.
3725 (unknown_language::print_typedef): New member function.
3726 (auto_language_data): Delete la_print_typedef initializer.
3727 (auto_language::print_typedef): New member function.
3728 * language.h (language_data): Delete la_print_typedef field.
3729 (language_defn::print_typedef): Declare new member function.
3730 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3731 (default_print_typedef): Delete declaration.
3732 * m2-lang.c (m2_language_data): Delete la_print_typedef
3733 initializer.
3734 (m2_language::print_typedef): New member function.
3735 * objc-lang.c (objc_language_data): Delete la_print_typedef
3736 initializer.
3737 * opencl-lang.c (opencl_language_data): Likewise.
3738 * p-lang.c (pascal_language_data): Likewise.
3739 (pascal_language::print_typedef): New member function.
3740 * rust-lang.c (rust_print_typedef): Delete function,
3741 implementation moved to rust_language::print_typedef.
3742 (rust_language): Delete la_print_typedef initializer.
3743 (rust_language::print_typedef): New member function,
3744 implementation from rust_print_typedef.
3745 * typeprint.c (default_print_typedef): Delete.
3746
d711ee67
AB
37472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3750 (ada_language::printstr): New member function.
3751 * c-lang.c (c_language_data): Delete la_printstr initializer.
3752 (cplus_language_data): Likewise.
3753 (asm_language_data): Likewise.
3754 (minimal_language_data): Likewise.
3755 * d-lang.c (d_language_data): Likewise.
3756 * f-lang.c (f_printstr): Rename to f_language::printstr.
3757 (f_language_data): Delete la_printstr initializer.
3758 (f_language::printstr): New member function, implementation from
3759 f_printstr.
3760 * go-lang.c (go_language_data): Delete la_printstr initializer.
3761 * language.c (language_defn::printstr): Define new member
3762 function.
3763 (unk_lang_printstr): Delete.
3764 (unknown_language_data): Delete la_printstr initializer.
3765 (unknown_language::printstr): New member function.
3766 (auto_language_data): Delete la_printstr initializer.
3767 (auto_language::printstr): New member function.
3768 * language.h (language_data): Delete la_printstr field.
3769 (language_defn::printstr): Declare new member function.
3770 (LA_PRINT_STRING): Update call to printstr.
3771 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3772 (m2_language_data): Delete la_printstr initializer.
3773 (m2_language::printstr): New member function, implementation from
3774 m2_printstr.
3775 * objc-lang.c (objc_language_data): Delete la_printstr
3776 initializer.
3777 * opencl-lang.c (opencl_language_data): Likewise.
3778 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3779 (pascal_language_data): Delete la_printstr initializer.
3780 (pascal_language::printstr): New member function, implementation
3781 from pascal_printstr.
3782 * p-lang.h (pascal_printstr): Delete declaration.
3783 * rust-lang.c (rust_printstr): Update header comment.
3784 (rust_language_data): Delete la_printstr initializer.
3785 (rust_language::printstr): New member function.
3786
52b50f2c
AB
37872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3790 (ada_language::printchar): New member function.
3791 * c-lang.c (c_language_data): Delete la_printchar initializer.
3792 (cplus_language_data): Likewise.
3793 (asm_language_data): Likewise.
3794 (minimal_language_data): Likewise.
3795 * d-lang.c (d_language_data): Likewise.
3796 * f-lang.c (f_printchar): Rename to f_language::printchar.
3797 (f_language_data): Delete la_printchar initializer.
3798 (f_language::printchar): New member function, implementation from
3799 f_printchar.
3800 * go-lang.c (go_language_data): Delete la_printchar initializer.
3801 * language.c (unk_lang_printchar): Delete.
3802 (language_defn::printchar): Define new member function.
3803 (unknown_language_data): Delete la_printchar initializer.
3804 (unknown_language::printchar): New member function.
3805 (auto_language_data): Delete la_printchar initializer.
3806 (auto_language::printchar): New member function.
3807 * language.h (language_data): Delete la_printchar field.
3808 (language_defn::printchar): Declare new member function.
3809 (LA_PRINT_CHAR): Update call to printchar.
3810 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3811 (m2_language::printchar): New member function.
3812 * objc-lang.c (objc_language_data): Delete la_printchar
3813 initializer.
3814 * opencl-lang.c (opencl_language_data): Likewise.
3815 * p-lang.c (pascal_language_data): Delete la_printchar
3816 initializer.
3817 (pascal_language::printchar): New member function.
3818 * rust-lang.c (rust_printchar): Rename to
3819 rust_language::printchar.
3820 (rust_language_data): Delete la_printchar initializer.
3821 (rust_language::printchar): New member function, implementation
3822 from rust_printchar.
3823
ec8cec5b
AB
38242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3827 (ada_language_data): Delete la_emitchar initializer.
3828 (ada_language::emitchar): New member function, implementation from
3829 emit_char.
3830 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3831 (cplus_language_data): Likewise.
3832 (asm_language_data): Likewise.
3833 (minimal_language_data): Likewise.
3834 * d-lang.c (d_language_data): Likewise.
3835 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3836 (f_language_data): Delete la_emitchar initializer.
3837 (f_language::emitchar): New member function, implementation from
3838 f_emit_char.
3839 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3840 * language.c (unk_lang_emit_char): Delete.
3841 (language_defn::emitchar): New member function definition.
3842 (unknown_language_data): Delete la_emitchar initializer.
3843 (unknown_language::emitchar): New member function.
3844 (auto_language_data): Delete la_emitchar initializer.
3845 (auto_language::emitchar): New member function.
3846 * language.h (language_data): Delete la_emitchar field.
3847 (language_defn::emitchar): New member field declaration.
3848 (LA_EMIT_CHAR): Update call to emitchar.
3849 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3850 (m2_language_data): Delete la_emitchar initializer.
3851 (m2_language::emitchar): New member function, implementation from
3852 m2_emit_char.
3853 * objc-lang.c (objc_language_data): Delete la_emitchar
3854 initializer.
3855 * opencl-lang.c (opencl_language_data): Likewise.
3856 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3857 (pascal_language_data): Delete la_emitchar initializer.
3858 (pascal_language::emitchar): New member function, implementation
3859 from pascal_emit_char.
3860 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3861 (rust_language_data): Delete la_emitchar initializer.
3862 (rust_language::emitchar): New member function, implementation
3863 from rust_emitchar.
3864
1bf9c363
AB
38652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3868 (ada_language_data): Delete la_post_parser initializer.
3869 (ada_language::post_parser): New member function.
3870 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3871 (cplus_language_data): Likewise.
3872 (asm_language_data): Likewise.
3873 (minimal_language_data): Likewise.
3874 * d-lang.c (d_language_data): Likewise.
3875 * f-lang.c (f_language_data): Likewise.
3876 * go-lang.c (go_language_data): Likewise.
3877 * language.c (unknown_language_data): Likewise.
3878 (auto_language_data): Likewise.
3879 * language.h (language_data): Delete la_post_parser field.
3880 (language_defn::post_parser): New member function.
3881 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3882 * objc-lang.c (objc_language_data): Likewise.
3883 * opencl-lang.c (opencl_language_data): Likewise.
3884 * p-lang.c (pascal_language_data): Likewise.
3885 * parse.c (parse_exp_in_context): Update call to post_parser.
3886 (null_post_parser): Delete definition.
3887 * parser-defs.h (null_post_parser): Delete declaration.
3888 * rust-lang.c (rust_language_data): Delete la_post_parser
3889 initializer.
3890
87afa652
AB
38912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * ada-lang.c (parse): Rename to ada_language::parser.
3894 (ada_language_data): Delete la_parser initializer.
3895 (ada_language::parser): New member function, implementation from
3896 parse.
3897 * c-lang.c (c_language_data): Delete la_parser initializer.
3898 (cplus_language_data): Likewise.
3899 (asm_language_data): Likewise.
3900 (minimal_language_data): Likewise.
3901 * d-lang.c (d_language_data): Likewise.
3902 (d_language::parser): New member function.
3903 * f-lang.c (f_language_data): Delete la_parser initializer.
3904 (f_language::parser): New member function.
3905 * go-lang.c (go_language_data): Delete la_parser initializer.
3906 (go_language::parser): New member function.
3907 * language.c (unk_lang_parser): Delete.
3908 (language_defn::parser): Define new member function.
3909 (unknown_language_data): Delete la_parser initializer.
3910 (unknown_language::parser): New member function.
3911 (auto_language_data): Delete la_parser initializer.
3912 (auto_language::parser): New member function.
3913 * language.h (language_data): Delete la_parser field.
3914 (language_defn::parser): Declare new member function.
3915 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3916 (m2_language::parser): New member function.
3917 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3918 * opencl-lang.c (opencl_language_data): Likewise.
3919 * p-lang.c (pascal_language_data): Likewise.
3920 (pascal_language::parser): New member function.
3921 * parse.c (parse_exp_in_context): Update call to parser.
3922 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3923 (rust_language::parser): New member function.
3924
37825800
AB
39252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3926
3927 * top.c (print_gdb_configuration): Print --with-python-libdir
3928 configuration value.
3929
5b860c93
PW
39302020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3931
3932 * NEWS: Mention change to the alias command.
3933
cf00cd6f
PW
39342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3935
3936 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3937 (alias_command_completer)
3938 (make_alias_options_def_group): New functions.
3939 (alias_opts, alias_option_defs): New struct and array.
3940 (alias_usage_error): Update usage.
3941 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3942 Use option framework.
3943 (_initialize_cli_cmds): Update alias command help.
3944 Update aliases command help.
3945 (show_user):
3946 Add NULL for new default_args lookup_cmd argument.
3947 (valid_command_p): Rename to validate_aliased_command.
3948 Add NULL for new default_args lookup_cmd argument. Verify that the
3949 aliased_command has no default args.
3950 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3951 (lookup_cmd_1, lookup_cmd): New argument default_args.
3952 (add_alias_cmd):
3953 Add NULL for new default_args lookup_cmd argument.
3954 (print_help_for_command): Show default args under the layout
3955 alias some_alias = some_aliased_cmd some_alias_default_arg.
3956 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3957 xfree default_args in destructor.
3958 * cli/cli-script.c (process_next_line, do_define_command):
3959 Add NULL for new default_args lookup_cmd argument.
3960 * command.h: Declare new default_args argument in lookup_cmd
3961 and lookup_cmd_1.
3962 * completer.c (complete_line_internal_1):
3963 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3964 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3965 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3966 Likewise.
3967 * infcmd.c (_initialize_infcmd): Likewise.
3968 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3969 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3970 * python/py-param.c (add_setshow_generic): Likewise.
3971 * remote.c (_initialize_remote): Likewise.
3972 * top.c (execute_command): Prepend default_args if command has some.
3973 (set_verbose):
3974 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3975 * tracepoint.c (validate_actionline, encode_actions_1):
3976 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3977
bd920864
TBA
39782020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979
3980 * jit.c (jit_read_descriptor): Use bool as the return type.
3981 (jit_breakpoint_re_set_internal): Use bool as the return type.
3982 Invert the return value logic; return true if the jit breakpoint
3983 has been successfully initialized.
3984 (jit_inferior_init): Update the call to
3985 jit_breakpoint_re_set_internal.
3986
f8098322
PA
39872020-06-22 Pedro Alves <palves@redhat.com>
3988
3989 PR gdb/25939
3990 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3991 Use the current inferior instead. Don't return
3992 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3993 wait again.
3994 * sol-thread.c (sol_thread_target::wait): Don't reference
3995 inferior_ptid.
3996 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3997 (sol_update_thread_list_callback): Use the current inferior's pid
3998 instead of inferior_ptid.
3999
196535a6
RO
40002020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4001
4002 * procfs.c: Cleanup many comments.
4003
4004 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4005 (AFTER_WATCHFLAG): Replace by value.
4006
4007 (MAIN_PROC_NAME_FORMAT): Inline ...
4008 (create_procinfo): ... here.
4009
4010 (procfs_debug_inferior): Remove SYS_exec handling.
4011 (syscall_is_exec): Likewise.
4012 (procfs_set_exec_trap): Likewise.
4013
4014 (syscall_is_lwp_exit): Inline in callers.
4015 (syscall_is_exit): Likewise.
4016 (syscall_is_exec): Likewise.
4017 (syscall_is_lwp_create): Likewise.
4018
4019 (invalidate_cache): Remove #if 0 code.
4020
4021 (make_signal_thread_runnable): Remove.
4022 (procfs_target::resume): Remove #if 0 code.
4023
cf6f3e86
RO
40242020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4025
4026 PR gdb/25939
4027 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4028 call ...
4029 (procfs_target::create_inferior): ... here.
4030
48e9cc84
PW
40312020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4032
4033 * exec.c (validate_exec_file): Ensure the build-id is up to
4034 date by calling reopen_exec_file (that checks file timestamp
4035 to decide to re-read the file).
4036
3922b302
PA
40372020-06-18 Pedro Alves <palves@redhat.com>
4038
4039 PR gdb/25412
4040 * gdbthread.h (delete_thread, delete_thread_silent)
4041 (find_thread_ptid): Update comments.
4042 * thread.c (current_thread_): New global.
4043 (is_current_thread): Move higher, and reimplement.
4044 (inferior_thread): Reimplement.
4045 (set_thread_exited): Use bool. Add assertions.
4046 (add_thread_silent): Simplify thread-reuse handling by always
4047 calling delete_thread.
4048 (delete_thread): Remove intro comment.
4049 (find_thread_ptid): Skip exited threads.
4050 (switch_to_thread_no_regs): Write to current_thread_.
4051 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4052 INFERIOR_PTID. Clear current_thread_.
4053
6dbdab44
PA
40542020-06-18 Pedro Alves <palves@redhat.com>
4055
4056 * aix-thread.c (pd_update): Use switch_to_thread.
4057
2da4b788
PA
40582020-06-18 Pedro Alves <palves@redhat.com>
4059
4060 * ravenscar-thread.c (ravenscar_thread_target): Update.
4061 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4062 (ravenscar_thread_target::add_active_thread): ... this. Don't
4063 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4064 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4065
50838d1b
PA
40662020-06-18 Pedro Alves <palves@redhat.com>
4067
4068 * nat/windows-nat.c (current_windows_thread): Remove.
4069 * nat/windows-nat.h (current_windows_thread): Remove.
4070 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4071 Adjust.
4072 (display_selectors): Adjust to fetch the current
4073 windows_thread_info based on inferior_ptid.
4074 (fake_create_process): No longer write to current_windows_thread.
4075 (windows_nat_target::get_windows_debug_event):
4076 Don't set inferior_ptid or current_windows_thread.
4077 (windows_nat_target::wait): Adjust to not rely on
4078 current_windows_thread.
4079 (do_initial_windows_stuff): Now a method of windows_nat_target.
4080 Switch to the last_ptid thread.
4081 (windows_nat_target::attach): Adjust.
4082 (windows_nat_target::detach): Use switch_to_no_thread instead of
4083 writing to inferior_ptid directly.
4084 (windows_nat_target::create_inferior): Adjust.
4085
31ce04e9
PA
40862020-06-18 Pedro Alves <palves@redhat.com>
4087
4088 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4089
1ee1a363
PA
40902020-06-18 Pedro Alves <palves@redhat.com>
4091
4092 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4093 after creating it, instead of writing to inferior_ptid. Don't
4094 write to inferior_ptid.
4095
6d350754
PA
40962020-06-18 Pedro Alves <palves@redhat.com>
4097
4098 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4099
5d971d48
PA
41002020-06-18 Pedro Alves <palves@redhat.com>
4101
4102 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4103 it, instead of writing to inferior_ptid.
4104
86e57d1b
PA
41052020-06-18 Pedro Alves <palves@redhat.com>
4106
4107 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4108 to inferior_ptid.
4109
f2e1c129
PA
41102020-06-18 Pedro Alves <palves@redhat.com>
4111
4112 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4113 instead of writing to inferior_ptid directly.
4114
60db1b85
PA
41152020-06-18 Pedro Alves <palves@redhat.com>
4116
4117 * corelow.c (core_target::close): Use switch_to_no_thread instead
4118 of writing to inferior_ptid directly.
4119 (add_to_thread_list, core_target_open): Use switch_to_thread
4120 instead of writing to inferior_ptid directly.
4121
fe7d6a8d
PA
41222020-06-18 Pedro Alves <palves@redhat.com>
4123
4124 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4125 inferior_ptid.
4126 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4127 inferior_ptid.
4128 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4129 inferior_ptid directly.
4130 (darwin_nat_target::init_thread_list): Switch to thread, instead
4131 of writing to inferior_ptid.
4132 (darwin_nat_target::attach): Don't write to inferior_ptid.
4133 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4134
975f8708
PA
41352020-06-18 Pedro Alves <palves@redhat.com>
4136
4137 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4138 thread.
4139 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4140 Instead use switch_to_thread.
4141 (gnu_nat_target::detach): Use switch_to_no_thread
4142 instead of writing to inferior_ptid directly. Used passed-in
4143 inferior instead of looking up the inferior by pid.
4144
1a204730
PA
41452020-06-18 Pedro Alves <palves@redhat.com>
4146
4147 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4148 inferior_ptid.
4149
ebe84f23
PA
41502020-06-18 Pedro Alves <palves@redhat.com>
4151
4152 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4153 inferior_ptid.
4154 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4155 thread.
4156 (nto_procfs_target::detach): Avoid referencing
4157 inferior_ptid. Use switch_to_no_thread instead of writing to
4158 inferior_ptid directly.
4159 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4160 instead of writing to inferior_ptid directly.
4161 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4162 to thread.
4163
191f02e5
PA
41642020-06-18 Pedro Alves <palves@redhat.com>
4165
4166 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4167 after creating it, instead of writing to inferior_ptid.
4168 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4169 to inferior_ptid directly.
4170 (gdbsim_target::wait): Don't write to inferior_ptid.
4171
0ac55310
PA
41722020-06-18 Pedro Alves <palves@redhat.com>
4173
4174 * remote.c (remote_target::remote_notice_new_inferior): Use
4175 switch_to_thread instead of writing to inferior_ptid directly.
4176 (remote_target::add_current_inferior_and_thread): Use
4177 switch_to_no_thread instead of writing to inferior_ptid directly.
4178 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4179 and switch_to_thread instead of using set_current_inferior or
4180 writing to inferior_ptid directly.
4181
5233f39b
PA
41822020-06-18 Pedro Alves <palves@redhat.com>
4183
4184 * tracectf.c (ctf_target_open): Switch to added thread instead of
4185 writing to inferior_ptid directly.
4186 (ctf_target::close): Use switch_to_no_thread instead of writing to
4187 inferior_ptid directly.
4188
087e161b
PA
41892020-06-18 Pedro Alves <palves@redhat.com>
4190
4191 * tracefile-tfile.c (tfile_target_open): Don't write to
4192 inferior_ptid directly, instead switch to added thread.
4193 (tfile_target::close): Use switch_to_no_thread instead of writing
4194 to inferior_ptid directly.
4195
7fb43e53
PA
41962020-06-18 Pedro Alves <palves@redhat.com>
4197
4198 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4199 (procfs_target::detach): Use switch_to_no_thread
4200 instead of writing to inferior_ptid directly.
4201 (do_attach): Change return type to void. Switch to the added
4202 thread.
4203 (procfs_target::create_inferior): Switch to the added thread.
4204 (procfs_do_thread_registers): Don't write to inferior_ptid.
4205
18493a00
PA
42062020-06-18 Pedro Alves <palves@redhat.com>
4207
4208 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4209 of writing to inferior_ptid.
4210 (scoped_restore_exited_inferior): Delete.
4211 (handle_vfork_child_exec_or_exit): Simplify using
4212 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4213 instead of writing to inferior_ptid.
4214 (THREAD_STOPPED_BY): Delete.
4215 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4216 (thread_stopped_by_hw_breakpoint): Delete.
4217 (save_waitstatus): Use
4218 scoped_restore_current_thread+switch_to_thread, and call
4219 target_stopped_by_watchpoint instead of
4220 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4221 instead of thread_stopped_by_sw_breakpoint, and
4222 target_stopped_by_hw_breakpoint instead of
4223 thread_stopped_by_hw_breakpoint.
4224 (handle_inferior_event)
4225 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4226 inferior_ptid directly, nor
4227 set_current_inferior/set_current_program_space. Use
4228 switch_to_thread / switch_to_inferior_no_thread instead.
4229
a0776b13
PA
42302020-06-18 Pedro Alves <palves@redhat.com>
4231
4232 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4233 instead of writing to inferior_ptid.
4234
6155c136
PA
42352020-06-18 Pedro Alves <palves@redhat.com>
4236
4237 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4238 added thread.
4239 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4240 to the added thread.
4241 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4242 instead of writing to inferior_ptid.
4243
c5316fc6
PA
42442020-06-18 Pedro Alves <palves@redhat.com>
4245
4246 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4247 (register_to_value_test): Mock a program_space too. Heap-allocate
4248 the address space. Don't write to inferior_ptid. Use
4249 switch_to_thread instead.
4250
8df01799
PA
42512020-06-18 Pedro Alves <palves@redhat.com>
4252
4253 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4254 Delete.
4255 (find_signalled_thread()): New, factored out from
4256 linux_make_corefile_notes and adjusted to handle exited threads.
4257 (linux_make_corefile_notes): Adjust to use the new
4258 find_signalled_thread.
4259
41792d68
PA
42602020-06-18 Pedro Alves <palves@redhat.com>
4261
4262 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4263 of saving/restoring inferior_ptid.
4264
612f258a
TT
42652020-06-17 Tom Tromey <tom@tromey.com>
4266
4267 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4268 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4269 declare.
4270 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4271
efb763a5
SM
42722020-06-15 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4275 of partial symtabs.
4276
2951f6c0
SM
42772020-06-17 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * regformats/reg-arm.dat: Remove.
4280 * regformats/reg-bfin.dat: Remove.
4281 * regformats/reg-cris.dat: Remove.
4282 * regformats/reg-crisv32.dat: Remove.
4283 * regformats/reg-m32r.dat: Remove.
4284 * regformats/reg-tilegx.dat: Remove.
4285 * regformats/reg-tilegx32.dat: Remove.
4286
7d458ea5
SM
42872020-06-17 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * features/Makefile (WHICH): Remove arm files.
4290 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4291 * regformats/arm/arm-with-neon.dat: Remove.
4292 * regformats/arm/arm-with-vfpv2.dat: Remove.
4293 * regformats/arm/arm-with-vfpv3.dat: Remove.
4294
3af96c0d
SM
42952020-06-17 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * features/Makefile (XMLTOC): Remove rx.xml.
4298
b25e22fd
PA
42992020-06-17 Pedro Alves <palves@redhat.com>
4300
4301 * gdbthread.h (thread_control_state) <trap_expected> Update
4302 comments.
4303
a78a19b1
AB
43042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4305
4306 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4307 ada_language::lookup_symbol_nonlocal.
4308 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4309 (ada_language::lookup_symbol_nonlocal): New member function,
4310 implementation from ada_lookup_symbol_nonlocal.
4311 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4312 initializer.
4313 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4314 initializer.
4315 (cplus_language::lookup_symbol_nonlocal): New member function.
4316 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4317 (minimal_language_data) Likewise.
4318 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4319 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4320 initializer.
4321 (d_language::lookup_symbol_nonlocal): New member function.
4322 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4323 initializer.
4324 (f_language::lookup_symbol_nonlocal): New member function.
4325 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4326 initializer.
4327 * language.c (unknown_language_data): Likewise.
4328 (auto_language_data): Likewise.
4329 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4330 field.
4331 (language_defn::lookup_symbol_nonlocal): New member function.
4332 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4333 initializer.
4334 * objc-lang.c (objc_language_data): Likewise.
4335 * opencl-lang.c (opencl_language_data): Likewise.
4336 * p-lang.c (pascal_language_data): Likewise.
4337 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4338 rust_language::lookup_symbol_nonlocal.
4339 (rust_language_data): Delete la_lookup_symbol_nonlocal
4340 initializer.
4341 (rust_language::lookup_symbol_nonlocal): New member function,
4342 implementation from rust_lookup_symbol_nonlocal.
4343 * symtab.c (lookup_symbol_aux): Update call to
4344 lookup_symbol_nonlocal.
4345 (basic_lookup_symbol_nonlocal): Rename to...
4346 (language_defn::lookup_symbol_nonlocal): ...this, and update
4347 header comment. Remove language_defn parameter, and replace with
4348 uses of `this'.
4349 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4350
ebe2334e
AB
43512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4352
4353 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4354 initializer.
4355 (ada_language::value_print_inner): New member function.
4356 * c-lang.c (c_language_data): Delete la_value_print_inner
4357 initializer.
4358 (cplus_language_data): Likewise.
4359 (asm_language_data): Likewise.
4360 (minimal_language_data): Likewise.
4361 * d-lang.c (d_language_data): Likewise.
4362 (d_language::value_print_inner): New member function.
4363 * f-lang.c (f_language_data): Delete la_value_print_inner
4364 initializer.
4365 (f_language::value_print_inner): New member function.
4366 * f-lang.h (f_value_print_innner): Rename to...
4367 (f_value_print_inner): ...this (note spelling of 'inner').
4368 * f-valprint.c (f_value_print_innner): Rename to...
4369 (f_value_print_inner): ...this (note spelling of 'inner').
4370 * go-lang.c (go_language_data): Delete la_value_print_inner
4371 initializer.
4372 (go_language::value_print_inner): New member function.
4373 * language.c (language_defn::value_print_inner): Define new member
4374 function.
4375 (unk_lang_value_print_inner): Delete.
4376 (unknown_language_data): Delete la_value_print_inner initializer.
4377 (unknown_language::value_print_inner): New member function.
4378 (auto_language_data): Delete la_value_print_inner initializer.
4379 (auto_language::value_print_inner): New member function.
4380 * language.h (language_data): Delete la_value_print_inner field.
4381 (language_defn::value_print_inner): Delcare new member function.
4382 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4383 initializer.
4384 (m2_language::value_print_inner): New member function.
4385 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4386 initializer.
4387 * opencl-lang.c (opencl_language_data): Likewise.
4388 * p-lang.c (pascal_language_data): Likewise.
4389 (pascal_language::value_print_inner): New member function.
4390 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4391 initializer.
4392 (rust_language::value_print_inner): New member function.
4393 * valprint.c (do_val_print): Update call to value_print_inner.
4394
a1d1fa3e
AB
43952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * ada-lang.c (ada_language_data): Delete la_value_print
4398 initializer.
4399 (ada_language::value_print): New member function.
4400 * c-lang.c (c_language_data): Delete la_value_print initializer.
4401 (cplus_language_data): Likewise.
4402 (asm_language_data): Likewise.
4403 (minimal_language_data): Likewise.
4404 * d-lang.c (d_language_data): Likewise.
4405 * f-lang.c (f_language_data): Likewise.
4406 * go-lang.c (go_language_data): Likewise.
4407 * language.c (unk_lang_value_print): Delete.
4408 (language_defn::value_print): Define new member function.
4409 (unknown_language_data): Delete la_value_print initializer.
4410 (unknown_language::value_print): New member function.
4411 (auto_language_data): Delete la_value_print initializer.
4412 (auto_language::value_print): New member function.
4413 * language.h (language_data): Delete la_value_print field.
4414 (language_defn::value_print): Declare new member function.
4415 (LA_VALUE_PRINT): Update call to value_print.
4416 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4417 * objc-lang.c (objc_language_data): Likewise.
4418 * opencl-lang.c (opencl_language_data): Likewise.
4419 * p-lang.c (pascal_language_data): Likewise.
4420 (pascal_language::value_print): New member function.
4421 * rust-lang.c (rust_language_data): Delete la_value_print
4422 initializer.
4423
f16a9f57
AB
44242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4425
4426 * ada-lang.c (ada_watch_location_expression): Rename to
4427 ada_language::watch_location_expression.
4428 (ada_language_data): Delete la_watch_location_expression
4429 initializer.
4430 (ada_language::watch_location_expression): New member function,
4431 implementation from ada_watch_location_expression.
4432 * breakpoint.c (watch_command_1): Update call to
4433 watch_location_expression.
4434 * c-lang.c (c_watch_location_expression): Rename to
4435 language_defn::watch_location_expression.
4436 (c_language_data): Delete la_watch_location_expression
4437 initializer.
4438 (cplus_language_data): Likewise.
4439 (asm_language_data): Likewise.
4440 (minimal_language_data): Likewise.
4441 * c-lang.h (c_watch_location_expression): Delete declaration.
4442 * d-lang.c (d_language_data): Delete la_watch_location_expression
4443 initializer.
4444 * f-lang.c (f_language_data): Likewise.
4445 * go-lang.c (go_language_data): Likewise.
4446 * language.c (language_defn::watch_location_expression): Member
4447 function implementation from c_watch_location_expression.
4448 (unknown_language_data): Delete la_watch_location_expression
4449 initializer.
4450 (auto_language_data): Likewise.
4451 * language.h (language_data): Delete la_watch_location_expression
4452 field.
4453 (language_defn::watch_location_expression): Declare new member
4454 function.
4455 * m2-lang.c (m2_language_data): Delete
4456 la_watch_location_expression initializer.
4457 * objc-lang.c (objc_language_data): Likewise.
4458 * opencl-lang.c (opencl_language_data): Likewise.
4459 * p-lang.c (pascal_language_data): Likewise.
4460 * rust-lang.c (rust_watch_location_expression): Rename to
4461 rust_language::watch_location_expression.
4462 (rust_language_data): Delete la_watch_location_expression
4463 initializer.
4464 (rust_language::watch_location_expression): New member function,
4465 implementation from rust_watch_location_expression.
4466
7e56227d
AB
44672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4470 ada_language::collect_symbol_completion_matches.
4471 (ada_language_data): Delete la_collect_symbol_completion_matches
4472 initializer.
4473 (ada_language::collect_symbol_completion_matches): New member
4474 function, implementation from
4475 ada_collect_symbol_completion_matches.
4476 * c-lang.c (c_language_data): Delete
4477 la_collect_symbol_completion_matches initializer.
4478 (cplus_language_data): Likewise.
4479 (asm_language_data): Likewise.
4480 (minimal_language_data): Likewise.
4481 * d-lang.c (d_language_data): Likewise.
4482 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4483 f_language::collect_symbol_completion_matches.
4484 (f_language_data): Delete la_collect_symbol_completion_matches
4485 initializer.
4486 (f_language::collect_symbol_completion_matches) New member
4487 function, implementation from f_collect_symbol_completion_matches.
4488 * go-lang.c (go_language_data): Delete
4489 la_collect_symbol_completion_matches initializer.
4490 * language.c (unknown_language_data): Likewise.
4491 (auto_language_data): Likewise.
4492 * language.h (language_data): Delete
4493 la_collect_symbol_completion_matches field.
4494 (language_defn::collect_symbol_completion_matches): New member
4495 function.
4496 * m2-lang.c (m2_language_data): Delete
4497 la_collect_symbol_completion_matches initializer.
4498 * objc-lang.c (objc_language_data): Likewise.
4499 * opencl-lang.c (opencl_language_data): Likewise.
4500 * p-lang.c (pascal_language_data): Likewise.
4501 * rust-lang.c (rust_language_data): Likewise.
4502 * symtab.c (default_collect_symbol_completion_matches): Delete.
4503 (collect_symbol_completion_matches): Update call to
4504 collect_symbol_completion_matches.
4505 (collect_symbol_completion_matches_type): Likewise.
4506 * symtab.h (default_collect_symbol_completion_matches): Delete
4507 declaration.
4508
53fc67f8
AB
45092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4512 (ada_language_data): Delete la_word_break_characters initializer.
4513 (ada_language::word_break_characters): New member function.
4514 * c-lang.c (c_language_data): Delete la_word_break_characters
4515 initializer.
4516 (cplus_language_data): Likewise.
4517 (asm_language_data): Likewise.
4518 (minimal_language_data): Likewise.
4519 * completer.c: Update global comment.
4520 (advance_to_expression_complete_word_point): Update call to
4521 word_break_characters.
4522 (complete_files_symbols): Likewise.
4523 (complete_line_internal_1): Likewise.
4524 (default_completer_handle_brkchars): Likewise.
4525 (skip_quoted_chars): Likewise.
4526 * d-lang.c (d_language_data): Delete la_word_break_characters
4527 initializer.
4528 * f-lang.c (f_word_break_characters): Delete.
4529 (f_language_data): Delete la_word_break_characters initializer.
4530 (f_language::word_break_characters): New member function.
4531 * go-lang.c (go_language_data): Delete la_word_break_characters
4532 initializer.
4533 * language.c (unknown_language_data): Likewise.
4534 (auto_language_data): Likewise.
4535 * language.h (default_word_break_characters): Move declaration to
4536 earlier in the file.
4537 (language_data): Delete la_word_break_characters field.
4538 (language_defn::word_break_characters): New member function.
4539 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4540 initializer.
4541 * objc-lang.c (objc_language_data): Likewise.
4542 * opencl-lang.c (opencl_language_data): Likewise.
4543 * p-lang.c (pascal_language_data): Likewise.
4544 * rust-lang.c (rust_language_data): Likewise.
4545
c9debfb9
AB
45462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4547
4548 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4549 (ada_language_data): Delete la_get_symbol_name_matcher
4550 initializer.
4551 (language_defn::get_symbol_name_matcher_inner): New member
4552 function.
4553 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4554 initializer.
4555 (cplus_language_data): Likewise.
4556 (cplus_language::get_symbol_name_matcher_inner): New member
4557 function.
4558 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4559 (minimal_language_data): Likewise.
4560 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4561 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4562 initializer.
4563 * dictionary.c (iter_match_first_hashed): Update call to
4564 get_symbol_name_matcher.
4565 (iter_match_next_hashed): Likewise.
4566 (iter_match_next_linear): Likewise.
4567 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4568 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4569 initializer.
4570 (f_language::get_symbol_name_matcher_inner): New member function.
4571 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4572 initializer.
4573 * language.c (default_symbol_name_matcher): Update header comment,
4574 make static.
4575 (language_defn::get_symbol_name_matcher): New definition.
4576 (language_defn::get_symbol_name_matcher_inner): Likewise.
4577 (get_symbol_name_matcher): Delete.
4578 (unknown_language_data): Delete la_get_symbol_name_matcher
4579 initializer.
4580 (auto_language_data): Likewise.
4581 * language.h (language_data): Delete la_get_symbol_name_matcher
4582 field.
4583 (language_defn::get_symbol_name_matcher): New member function.
4584 (language_defn::get_symbol_name_matcher_inner): Likewise.
4585 (default_symbol_name_matcher): Delete declaration.
4586 * linespec.c (find_methods): Update call to
4587 get_symbol_name_matcher.
4588 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4589 initializer.
4590 * minsyms.c (lookup_minimal_symbol): Update call to
4591 get_symbol_name_matcher.
4592 (iterate_over_minimal_symbols): Likewise.
4593 * objc-lang.c (objc_language_data): Delete
4594 la_get_symbol_name_matcher initializer.
4595 * opencl-lang.c (opencl_language_data): Likewise.
4596 * p-lang.c (pascal_language_data): Likewise.
4597 * psymtab.c (psymbol_name_matches): Update call to
4598 get_symbol_name_matcher.
4599 * rust-lang.c (rust_language_data): Delete
4600 la_get_symbol_name_matcher initializer.
4601 * symtab.c (symbol_matches_search_name): Update call to
4602 get_symbol_name_matcher.
4603 (compare_symbol_name): Likewise.
4604
9a49ad8c
AB
46052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 * ada-lang.c (ada_language_data): Delete la_compute_program
4608 initializer.
4609 * c-lang.c (c_language_data): Likewise.
4610 (c_language::compute_program): New member function.
4611 (cplus_language_data): Delete la_compute_program initializer.
4612 (cplus_language::compute_program): New member function.
4613 (asm_language_data): Delete la_compute_program initializer.
4614 (minimal_language_data): Likewise.
4615 * c-lang.h (c_compute_program): Update comment.
4616 (cplus_compute_program): Likewise.
4617 * compile/compile-c-support.c (c_compute_program): Likewise.
4618 (cplus_compute_program): Likewise.
4619 * compile/compile.c (compile_to_object): Update call to
4620 la_compute_program.
4621 * d-lang.c (d_language_data): Delete la_compute_program
4622 initializer.
4623 * f-lang.c (f_language_data): Likewise.
4624 * go-lang.c (go_language_data): Likewise.
4625 * language.c (unknown_language_data): Likewise.
4626 (auto_language_data): Likewise.
4627 * language.h (language_data): Delete la_compute_program field.
4628 (language_defn::compute_program): New member function.
4629 * m2-lang.c (m2_language_data): Delete la_compute_program
4630 initializer.
4631 * objc-lang.c (objc_language_data): Likewise.
4632 * opencl-lang.c (opencl_language_data): Likewise.
4633 * p-lang.c (pascal_language_data): Likewise.
4634 * rust-lang.c (rust_language_data): Likewise.
4635
eff93b4d
AB
46362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_language_data) Delete
4639 la_class_name_from_physname initializer.
4640 * c-lang.c (c_language_data): Likewise.
4641 (cplus_language_data): Likewise.
4642 (cplus_language::class_name_from_physname): New member function.
4643 (asm_language_data): Delete la_class_name_from_physname
4644 initializer.
4645 (minimal_language_data): Likewise.
4646 * d-lang.c (d_language_data): Likewise.
4647 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4648 method on language_defn class.
4649 (guess_full_die_structure_name): Likewise.
4650 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4651 initializer.
4652 * go-lang.c (go_language_data): Likewise.
4653 * language.c (language_class_name_from_physname): Delete.
4654 (unk_lang_class_name): Delete.
4655 (unknown_language_data): Delete la_class_name_from_physname
4656 initializer.
4657 (auto_language_data): Likewise.
4658 * language.h (language_data): Delete la_class_name_from_physname
4659 field.
4660 (language_defn::class_name_from_physname): New function.
4661 (language_class_name_from_physname): Delete declaration.
4662 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4663 initializer.
4664 * objc-lang.c (objc_language_data): Likewise.
4665 * opencl-lang.c (opencl_language_data): Likewise.
4666 * p-lang.c (pascal_language_data): Likewise.
4667 * rust-lang.c (rust_language_data): Likewise.
4668
de543742
TT
46692020-06-16 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-data.h (STATUS_NAME): New macro.
4672 * tui/tui-layout.c (tui_remove_some_windows)
4673 (initialize_known_windows, tui_register_window)
4674 (tui_layout_split::remove_windows, initialize_layouts)
4675 (tui_new_layout_command): Don't use hard-coded window names.
4676
a350efd4
TT
46772020-06-16 Tom Tromey <tom@tromey.com>
4678
4679 PR tui/25348:
4680 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4681 tui_initialize_readline. Only run once. Call rl_initialize.
4682 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4683 tui_initialize_readline.
4684 * tui/tui-io.c (tui_setup_io): Call
4685 tui_ensure_readline_initialized.
4686 * tui/tui-interp.c (tui_interp::init): Update.
4687
39ec0490
TT
46882020-06-16 Tom Tromey <tom@tromey.com>
4689
4690 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4691 Also preserve the status window.
4692
d2d1ea20
TT
46932020-06-16 Tom Tromey <tom@tromey.com>
4694
4695 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4696 where m_window==nullptr.
4697
66920317
TT
46982020-06-15 Tom Tromey <tromey@adacore.com>
4699
4700 * windows-nat.c (windows_nat::handle_output_debug_string):
4701 Update.
4702 (windows_nat::handle_ms_vc_exception): Update.
4703 * target.h (target_read_string): Change API.
4704 * target.c (target_read_string): Change API.
4705 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4706 Update.
4707 * solib-frv.c (frv_current_sos): Update.
4708 * solib-dsbt.c (dsbt_current_sos): Update.
4709 * solib-darwin.c (darwin_current_sos): Update.
4710 * linux-thread-db.c (inferior_has_bug): Update.
4711 * expprint.c (print_subexp_standard): Update.
4712 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4713 (ada_exception_message_1): Update.
4714
a5d871dd
TT
47152020-06-15 Tom Tromey <tromey@adacore.com>
4716
4717 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4718
670e35fa
TT
47192020-06-15 Tom Tromey <tromey@adacore.com>
4720
4721 * valprint.c (read_string): Update comment.
4722 * target.c (MIN): Remove.
4723 (target_read_string): Rewrite.
4724
f5272a3b
TT
47252020-06-15 Tom Tromey <tromey@adacore.com>
4726
4727 * corefile.c (read_memory_string): Remove.
4728 * ada-valprint.c (ada_value_print_ptr): Update.
4729 * ada-lang.h (ada_tag_name): Change return type.
4730 * ada-lang.c (type_from_tag): Update.
4731 (ada_tag_name_from_tsd): Change return type. Use
4732 target_read_string.
4733 (ada_tag_name): Likewise.
4734 * gdbcore.h (read_memory_string): Don't declare.
4735
2c074f49
HD
47362020-06-14 Hannes Domani <ssbssa@yahoo.de>
4737
4738 * symtab.c (rbreak_command): Ignore Windows drive colon.
4739
6a17d503
SM
47402020-06-12 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * NEWS: Mention removed GDBserver host support.
4743
453c733f
NC
47442020-06-12 Nelson Chu <nelson.chu@sifive.com>
4745
4746 * features/riscv/rebuild-csr-xml.sh: Updated.
4747
2b4e6a3f
TT
47482020-06-11 Tom Tromey <tom@tromey.com>
4749
4750 PR gdb/18318:
4751 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4752
4412332f
JG
47532020-06-09 Jonny Grant <jg@jguk.org>
47542020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * main.c (captured_main_1): Don't print new line after help.
4757 (print_gdb_help): add mailing list and IRC channel information
4758 to --help. Add new lines between items in the footer. Remove
4759 quotes around bug url.
4760
2f33032a
KS
47612020-06-11 Keith Seitz <keiths@redhat.com>
4762
4763 PR gdb/21356
4764 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4765 Resolve typedefs for type length calculations.
4766
7ab96794
TV
47672020-06-10 Tom de Vries <tdevries@suse.de>
4768
4769 PR ada/24713
4770 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4771 (write_psymbols): Enable .gdb_index for ada.
4772 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4773 ada.
4774
e5f3ece2
TV
47752020-06-10 Tom de Vries <tdevries@suse.de>
4776
4777 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4778 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4779 namei" instead of "const char *name" argument.
4780 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4781 dw2_symtab_iter_init.
4782
940da03e
SM
47832020-06-08 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4786 to use type::field and field::type instead.
4787
b6cdac4b
SM
47882020-06-08 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4791 to use field::type instead.
4792
5d14b6e5
SM
47932020-06-08 Simon Marchi <simon.marchi@efficios.com>
4794
4795 * gdbtypes.h (struct field) <type, set_type>: New methods.
4796 Rename `type` field to...
4797 <m_type>: ... this. Change references throughout to use type or
4798 set_type methods.
4799 (FIELD_TYPE): Use field::type. Change call sites that modify
4800 the field's type to use field::set_type instead.
4801
3d967001
SM
48022020-06-08 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4805 to use type::index_type instead.
4806
262abc0d
SM
48072020-06-08 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4810 methods.
4811 (TYPE_INDEX_TYPE): Use type::index_type.
4812 * gdbtypes.c (create_array_type_with_stride): Likewise.
4813
82836c92
TT
48142020-06-07 Tom Tromey <tom@tromey.com>
4815
4816 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4817 parameter.
4818 (generic_value_print): Update.
4819
940dace9
AB
48202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4821
4822 Revert commit 982a38f60b0.
4823 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4824
982a38f6
AB
48252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4826
4827 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4828 avoid use after free.
4829
82f06518
TV
48302020-06-05 Tom de Vries <tdevries@suse.de>
4831
4832 * NEWS: Fix typos.
4833
f8c41851
SM
48342020-06-04 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4837 the per_bfd object.
4838 (dwarf2_read_debug_names): Likewise.
4839 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4840 object when re-using a per_bfd object with an index.
4841
f9b5d5ea
TV
48422020-06-03 Tom de Vries <tdevries@suse.de>
4843
4844 PR symtab/26046
4845 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4846 children for C++.
4847 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4848 DW_TAG_subprogram.
4849
f6eee2d0
AB
48502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4851
4852 * ada-lang.c (ada_language_data): Delete skip_trampoline
4853 initializer.
4854 * c-lang.c (c_language_data): Likewise.
4855 (cplus_language_data): Likewise.
4856 (cplus_language::skip_trampoline): New member function.
4857 (asm_language_data): Delete skip_trampoline initializer.
4858 (minimal_language_data): Likewise.
4859 * d-lang.c (d_language_data): Likewise.
4860 * f-lang.c (f_language_data): Likewise.
4861 * go-lang.c (go_language_data): Likewise.
4862 * language.c (unk_lang_trampoline): Delete function.
4863 (skip_language_trampoline): Update.
4864 (unknown_language_data): Delete skip_trampoline initializer.
4865 (auto_language_data): Likewise.
4866 * language.h (language_data): Delete skip_trampoline field.
4867 (language_defn::skip_trampoline): New function.
4868 * m2-lang.c (m2_language_data): Delete skip_trampoline
4869 initializer.
4870 * objc-lang.c (objc_skip_trampoline): Delete function, move
4871 implementation to objc_language::skip_trampoline.
4872 (objc_language_data): Delete skip_trampoline initializer.
4873 (objc_language::skip_trampoline): New member function with
4874 implementation from objc_skip_trampoline.
4875 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4876 initializer.
4877 * p-lang.c (pascal_language_data): Likewise.
4878 * rust-lang.c (rust_language_data): Likewise.
4879
0a50df5d
AB
48802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4883 (ada_language::demangle): New member function.
4884 * c-lang.c (c_language_data): Delete la_demangle initializer.
4885 (cplus_language_data): Delete la_demangle initializer.
4886 (cplus_language::demangle): New member function.
4887 (asm_language_data): Delete la_demangle initializer.
4888 (minimal_language_data): Delete la_demangle initializer.
4889 * d-lang.c (d_language_data): Delete la_demangle initializer.
4890 (d_language::demangle): New member function.
4891 * f-lang.c (f_language_data): Delete la_demangle initializer.
4892 (f_language::demangle): New member function.
4893 * go-lang.c (go_language_data): Delete la_demangle initializer.
4894 (go_language::demangle): New member function.
4895 * language.c (language_demangle): Update.
4896 (unk_lang_demangle): Delete.
4897 (unknown_language_data): Delete la_demangle initializer.
4898 (unknown_language::demangle): New member function.
4899 (auto_language_data): Delete la_demangle initializer.
4900 (auto_language::demangle): New member function.
4901 * language.h (language_data): Delete la_demangle field.
4902 (language_defn::demangle): New function.
4903 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4904 * objc-lang.c (objc_language_data): Delete la_demangle
4905 initializer.
4906 (objc_language::demangle): New member function.
4907 * opencl-lang.c (opencl_language_data): Delete la_demangle
4908 initializer.
4909 * p-lang.c (pascal_language_data): Likewise.
4910 * rust-lang.c (rust_language_data): Likewise.
4911 (rust_language::demangle): New member function.
4912
fbfb0a46
AB
49132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * ada-lang.c (ada_language_data): Delete la_print_type
4916 initializer.
4917 (ada_language::print_type): New member function.
4918 * c-lang.c (c_language_data): Delete la_print_type initializer.
4919 (c_language::print_type): New member function.
4920 (cplus_language_data): Delete la_print_type initializer.
4921 (cplus_language::print_type): New member function.
4922 (asm_language_data): Delete la_print_type initializer.
4923 (asm_language::print_type): New member function.
4924 (minimal_language_data): Delete la_print_type initializer.
4925 (minimal_language::print_type): New member function.
4926 * d-lang.c (d_language_data): Delete la_print_type initializer.
4927 (d_language::print_type): New member function.
4928 * f-lang.c (f_language_data): Delete la_print_type initializer.
4929 (f_language::print_type): New member function.
4930 * go-lang.c (go_language_data): Delete la_print_type initializer.
4931 (go_language::print_type): New member function.
4932 * language.c (unk_lang_print_type): Delete.
4933 (unknown_language_data): Delete la_print_type initializer.
4934 (unknown_language::print_type): New member function.
4935 (auto_language_data): Delete la_print_type initializer.
4936 (auto_language::print_type): New member function.
4937 * language.h (language_data): Delete la_print_type field.
4938 (language_defn::print_type): New function.
4939 (LA_PRINT_TYPE): Update.
4940 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4941 (m2_language::print_type): New member function.
4942 * objc-lang.c (objc_language_data): Delete la_print_type
4943 initializer.
4944 (objc_language::print_type): New member function.
4945 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4946 to opencl_language::print_type.
4947 (opencl_language_data): Delete la_print_type initializer.
4948 (opencl_language::print_type): New member function, implementation
4949 from opencl_print_type.
4950 * p-lang.c (pascal_language_data): Delete la_print_type
4951 initializer.
4952 (pascal_language::print_type): New member function.
4953 * rust-lang.c (rust_print_type): Delete, implementation moved to
4954 rust_language::print_type.
4955 (rust_language_data): Delete la_print_type initializer.
4956 (rust_language::print_type): New member function, implementation
4957 from rust_print_type.
4958
6f827019
AB
49592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4960
4961 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4962 implementation moves to...
4963 (ada_language::sniff_from_mangled_name): ...here. Update return
4964 type.
4965 (ada_language_data): Delete la_sniff_from_mangled_name
4966 initializer.
4967 * c-lang.c (c_language_data): Likewise.
4968 (cplus_language_data): Likewise.
4969 (cplus_language::sniff_from_mangled_name): New member function,
4970 implementation taken from gdb_sniff_from_mangled_name.
4971 (asm_language_data): Delete la_sniff_from_mangled_name
4972 initializer.
4973 (minimal_language_data): Likewise.
4974 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4975 implementation moves to cplus_language::sniff_from_mangled_name.
4976 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4977 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4978 moves to...
4979 (d_language::sniff_from_mangled_name): ...here.
4980 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4981 * f-lang.c (f_language_data): Likewise.
4982 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4983 moves to...
4984 (go_language::sniff_from_mangled_name): ...here.
4985 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4986 * language.c (language_sniff_from_mangled_name): Delete.
4987 (unknown_language_data): Delete la_sniff_from_mangled_name
4988 initializer.
4989 (auto_language_data): Likewise.
4990 * language.h (language_data): Delete la_sniff_from_mangled_name
4991 field.
4992 (language_defn::sniff_from_mangled_name): New function.
4993 (language_sniff_from_mangled_name): Delete declaration.
4994 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4995 field.
4996 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4997 implementation moves to...
4998 (objc_language::sniff_from_mangled_name): ...here.
4999 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5000 * opencl-lang.c (opencl_language_data): Likewise.
5001 * p-lang.c (pascal_language_data): Likewise.
5002 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5003 implementation moves to...
5004 (rust_language::sniff_from_mangled_name): ...here.
5005 (rust_language_data): Delete la_sniff_from_mangled_name
5006 initializer.
5007 * symtab.c (symbol_find_demangled_name): Call
5008 sniff_from_mangled_name member function.
5009
fb8006fd
AB
50102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5011
5012 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5013 initializer.
5014 * c-lang.c (c_language_data): Likewise.
5015 (cplus_language_data): Likewise.
5016 (cplus_language::search_name_hash): New member function.
5017 (asm_language_data): Delete la_search_name_hash initializer.
5018 (minimal_language_data): Likewise.
5019 * d-lang.c (d_language_data): Likewise.
5020 * dictionary.c (default_search_name_hash): Rename to...
5021 (language_defn::search_name_hash): ...this.
5022 * f-lang.c (f_language_data): Likewise.
5023 (f_language::search_name_hash): New member function.
5024 * go-lang.c (go_language_data): Delete la_search_name_hash
5025 initializer.
5026 * language.c (unknown_language_data): Likewise.
5027 (auto_language_data): Likewise.
5028 * language.h (struct language_data): Delete la_search_name_hash
5029 field.
5030 (language_defn::search_name_hash): Declare new member function.
5031 (default_search_name_hash): Delete declaration.
5032 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5033 initializer.
5034 * objc-lang.c (objc_language_data): Likewise.
5035 * opencl-lang.c (opencl_language_data): Likewise.
5036 * p-lang.c (pascal_language_data): Likewise.
5037 * rust-lang.c (rust_language_data): Likewise.
5038 * symtab.c (search_name_hash): Update call.
5039
8e25bafe
AB
50402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5043 initializer.
5044 * c-lang.c (class compile_instance): Declare.
5045 (c_language_data): Delete la_get_compile_instance initializer.
5046 (c_language::get_compile_instance): New member function.
5047 (cplus_language_data): Delete la_get_compile_instance initializer.
5048 (cplus_language::get_compile_instance): New member function.
5049 (asm_language_data): Delete la_get_compile_instance initializer.
5050 (minimal_language_data): Likewise.
5051 * c-lang.h (c_get_compile_context): Update comment.
5052 (cplus_get_compile_context): Update comment.
5053 * compile/compile.c (compile_to_object): Update calls, don't rely
5054 on function pointer being NULL.
5055 * d-lang.c (d_language_data): Delete la_get_compile_instance
5056 initializer.
5057 * f-lang.c (f_language_data): Likewise.
5058 * go-lang.c (go_language_data): Likewise.
5059 * language.c (unknown_language_data): Likewise.
5060 (auto_language_data): Likewise.
5061 * language.h (language_data): Delete la_get_compile_instance field.
5062 (language_defn::get_compile_instance): New member function.
5063 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5064 initializer.
5065 * objc-lang.c (objc_language_data): Likewise.
5066 * opencl-lang.c (opencl_language_data): Likewise.
5067 * p-lang.c (pascal_language_data): Likewise.
5068 * rust-lang.c (rust_language_data): Likewise.
5069
4009ee92
AB
50702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * ada-lang.c (ada_add_all_symbols): Update comment.
5073 (ada_iterate_over_symbols): Delete, move implementation to...
5074 (ada_language::iterate_over_symbols): ...here, a new member
5075 function, rewrite to use range based for loop.
5076 (ada_language_data): Delete la_iterate_over_symbols initializer.
5077 * c-lang.c (c_language_data): Likewise.
5078 (cplus_language_data): Likewise.
5079 (asm_language_data): Likewise.
5080 (minimal_language_data): Likewise.
5081 * d-lang.c (d_language_data): Likewise.
5082 * f-lang.c (f_language_data): Likewise.
5083 * go-lang.c (go_language_data): Likewise.
5084 * language.c (unknown_language_data): Likewise.
5085 (auto_language_data): Likewise.
5086 * language.h (language_data): Delete la_iterate_over_symbols field.
5087 (language_defn::iterate_over_symbols): New member function.
5088 (LA_ITERATE_OVER_SYMBOLS): Update.
5089 * linespec.c (iterate_over_all_matching_symtabs): Update.
5090 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5091 initializer.
5092 * objc-lang.c (objc_language_data): Likewise.
5093 * opencl-lang.c (opencl_language_data): Likewise.
5094 * p-lang.c (pascal_language_data): Likewise.
5095 * rust-lang.c (rust_language_data): Likewise.
5096
54f4ca46
AB
50972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * ada-lang.c (ada_language_data): Delete
5100 la_lookup_transparent_type initializer.
5101 * c-lang.c (c_language_data): Likewise.
5102 (cplus_language_data): Likewise.
5103 (cplus_language::lookup_transparent_type): New member function.
5104 (asm_language_data): Delete la_lookup_transparent_type
5105 initializer.
5106 (minimal_language_data): Likewise.
5107 * d-lang.c (d_language_data): Likewise.
5108 * f-lang.c (f_language_data): Likewise.
5109 * go-lang.c (go_language_data): Likewise.
5110 * language.c (unknown_language_data): Likewise.
5111 (auto_language_data): Likewise.
5112 * language.h (struct language_data): Delete
5113 la_lookup_transparent_type field.
5114 (language_defn::lookup_transparent_type): New member function.
5115 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5116 initializer.
5117 * objc-lang.c (objc_language_data): Likewise.
5118 * opencl-lang.c (opencl_language_data): Likewise.
5119 * p-lang.c (pascal_language_data): Likewise.
5120 * rust-lang.c (rust_language_data): Likewise.
5121 * symtab.c (symbol_matches_domain): Update call.
5122
1fb314aa
AB
51232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * ada-lang.c (ada_language_arch_info): Delete function, move
5126 implementation to...
5127 (ada_language::language_arch_info): ...here, a new member
5128 function.
5129 (ada_language_data): Delete la_language_arch_info.
5130 * c-lang.c (c_language_data): Likewise.
5131 (c_language::language_arch_info): New member function.
5132 (cplus_language_arch_info): Delete function, move
5133 implementation to...
5134 (cplus_language::language_arch_info): ...here, a new member
5135 function.
5136 (cplus_language_data): Delete la_language_arch_info.
5137 (asm_language_data): Likewise.
5138 (asm_language::language_arch_info): New member function.
5139 (minimal_language_data): Delete la_language_arch_info.
5140 (minimal_language::language_arch_info): New member function.
5141 * d-lang.c (d_language_arch_info): Delete function, move
5142 implementation to...
5143 (d_language::language_arch_info): ...here, a new member
5144 function.
5145 (d_language_data): Delete la_language_arch_info.
5146 * f-lang.c (f_language_arch_info): Delete function, move
5147 implementation to...
5148 (f_language::language_arch_info): ...here, a new member
5149 function.
5150 (f_language_data): Delete la_language_arch_info.
5151 * go-lang.c (go_language_arch_info): Delete function, move
5152 implementation to...
5153 (go_language::language_arch_info): ...here, a new member
5154 function.
5155 (go_language_data): Delete la_language_arch_info.
5156 * language.c (unknown_language_data): Likewise.
5157 (unknown_language::language_arch_info): New member function.
5158 (auto_language_data): Delete la_language_arch_info.
5159 (auto_language::language_arch_info): New member function.
5160 (language_gdbarch_post_init): Update call to
5161 la_language_arch_info.
5162 * language.h (language_data): Delete la_language_arch_info
5163 function pointer.
5164 (language_defn::language_arch_info): New function.
5165 * m2-lang.c (m2_language_arch_info): Delete function, move
5166 implementation to...
5167 (m2_language::language_arch_info): ...here, a new member
5168 function.
5169 (m2_language_data): Delete la_language_arch_info.
5170 * objc-lang.c (objc_language_arch_info): Delete function, move
5171 implementation to...
5172 (objc_language::language_arch_info): ...here, a new member
5173 function.
5174 (objc_language_data): Delete la_language_arch_info.
5175 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5176 implementation to...
5177 (opencl_language::language_arch_info): ...here, a new member
5178 function.
5179 (opencl_language_data): Delete la_language_arch_info.
5180 * p-lang.c (pascal_language_arch_info): Delete function, move
5181 implementation to...
5182 (pascal_language::language_arch_info): ...here, a new member
5183 function.
5184 (pascal_language_data): Delete la_language_arch_info.
5185 * rust-lang.c (rust_language_arch_info): Delete function, move
5186 implementation to...
5187 (rust_language::language_arch_info): ...here, a new member
5188 function.
5189 (rust_language_data): Delete la_language_arch_info.
5190
48448202
AB
51912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5192
5193 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5194 initializer.
5195 * c-lang.c (c_language_data): Likewise.
5196 (cplus_language_data): Likewise.
5197 (cplus_language::pass_by_reference_info): New method.
5198 (asm_language_data): Delete la_pass_by_reference initializer.
5199 (minimal_language_data): Likewise.
5200 * cp-abi.c (cp_pass_by_reference): Remove use of
5201 default_pass_by_reference.
5202 * d-lang.c (d_language_data): Likewise.
5203 * f-lang.c (f_language_data): Likewise.
5204 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5205 default_pass_by_reference.
5206 * go-lang.c (go_language_data): Likewise.
5207 * language.c (language_pass_by_reference): Update.
5208 (default_pass_by_reference): Delete.
5209 (unknown_language_data): Delete la_pass_by_reference
5210 initializer.
5211 (auto_language_data): Likewise.
5212 * language.h (struct language_data): Delete la_pass_by_reference
5213 field.
5214 (language_defn::pass_by_reference_info): New member function.
5215 (default_pass_by_reference): Delete declaration.
5216 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5217 initializer.
5218 * objc-lang.c (objc_language_data): Likewise.
5219 * opencl-lang.c (opencl_language_data): Likewise.
5220 * p-lang.c (pascal_language_data): Likewise.
5221 * rust-lang.c (rust_language_data): Likewise.
5222
15e5fd35
AB
52232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5224
5225 * ada-lang.c (ada_read_var_value): Delete function, move
5226 implementation to...
5227 (ada_language::read_var_value): ...here.
5228 (ada_language_data): Delete la_read_var_value initializer.
5229 * c-lang.c (c_language_data): Likewise.
5230 (cplus_language_data): Likewise.
5231 (minimal_language_data): Likewise.
5232 * d-lang.c (d_language_data): Likewise.
5233 * f-lang.c (f_language_data): Likewise.
5234 * findvar.c (default_read_var_value): Rename to...
5235 (language_defn::read_var_value): ...this.
5236 * findvar.c (read_var_value): Update header comment, and change to
5237 call member function instead of function pointer.
5238 * go-lang.c (go_language_data): Likewise.
5239 * language.c (unknown_language_data): Delete la_read_var_value
5240 initializer.
5241 (auto_language_data): Likewise.
5242 * language.h (struct language_data): Delete la_read_var_value
5243 field.
5244 (language_defn::read_var_value): New member function.
5245 (default_read_var_value): Delete declaration.
5246 * m2-lang.c (m2_language_data): Delete la_read_var_value
5247 initializer.
5248 * objc-lang.c (objc_language_data): Likewise.
5249 * opencl-lang.c (opencl_language_data): Likewise.
5250 * p-lang.c (pascal_language_data): Likewise.
5251 * rust-lang.c (rust_language_data): Likewise.
5252 * value.h (default_read_var_value): Delete declaration.
5253
5bd40f2a
AB
52542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5255
5256 * ada-lang.c (ada_print_array_index): Delete function, move
5257 implementation to...
5258 (ada_language::print_array_index): ...here.
5259 (ada_language_data): Delete la_print_array_index initializer.
5260 * c-lang.c (c_language_data): Likewise.
5261 (cplus_language_data): Likewise.
5262 (minimal_language_data): Likewise.
5263 * d-lang.c (d_language_data): Likewise.
5264 * f-lang.c (f_language_data): Likewise.
5265 * go-lang.c (go_language_data): Likewise.
5266 * language.c (default_print_array_index): Delete function, move
5267 implementation to...
5268 (language_defn::print_array_index): ...here.
5269 (unknown_language_data): Delete la_print_array_index initializer.
5270 (auto_language_data): Likewise.
5271 * language.h (struct language_data): Delete la_print_array_index
5272 field.
5273 (language_defn::print_array_index): New member function.
5274 (LA_PRINT_ARRAY_INDEX): Update.
5275 (default_print_array_index): Delete declaration.
5276 * m2-lang.c (m2_language_data): Delete la_print_array_index
5277 initializer.
5278 * objc-lang.c (objc_language_data): Likewise.
5279 * opencl-lang.c (opencl_language_data): Likewise.
5280 * p-lang.c (pascal_language_data): Likewise.
5281 * rust-lang.c (rust_language_data): Likewise.
5282
0874fd07
AB
52832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5284
5285 * gdb/ada-lang.c (ada_language_defn): Convert to...
5286 (ada_language_data): ...this.
5287 (class ada_language): New class.
5288 (ada_language_defn): New static global.
5289 * gdb/c-lang.c (c_language_defn): Convert to...
5290 (c_language_data): ...this.
5291 (class c_language): New class.
5292 (c_language_defn): New static global.
5293 (cplus_language_defn): Convert to...
5294 (cplus_language_data): ...this.
5295 (class cplus_language): New class.
5296 (cplus_language_defn): New static global.
5297 (asm_language_defn): Convert to...
5298 (asm_language_data): ...this.
5299 (class asm_language): New class.
5300 (asm_language_defn): New static global.
5301 (minimal_language_defn): Convert to...
5302 (minimal_language_data): ...this.
5303 (class minimal_language): New class.
5304 (minimal_language_defn): New static global.
5305 * gdb/d-lang.c (d_language_defn): Convert to...
5306 (d_language_data): ...this.
5307 (class d_language): New class.
5308 (d_language_defn): New static global.
5309 * gdb/f-lang.c (f_language_defn): Convert to...
5310 (f_language_data): ...this.
5311 (class f_language): New class.
5312 (f_language_defn): New static global.
5313 * gdb/go-lang.c (go_language_defn): Convert to...
5314 (go_language_data): ...this.
5315 (class go_language): New class.
5316 (go_language_defn): New static global.
5317 * gdb/language.c (unknown_language_defn): Remove declaration.
5318 (current_language): Initialize to nullptr, real initialization is
5319 moved to _initialize_language.
5320 (languages): Delete global.
5321 (language_defn::languages): Define.
5322 (set_language_command): Use language_defn::languages.
5323 (set_language): Likewise.
5324 (range_error): Likewise.
5325 (language_enum): Likewise.
5326 (language_def): Likewise.
5327 (add_set_language_command): Use language_def::languages for the
5328 language list, and language_def to lookup language pointers.
5329 (skip_language_trampoline): Use language_defn::languages.
5330 (unknown_language_defn): Convert to...
5331 (unknown_language_data): ...this.
5332 (class unknown_language): New class.
5333 (unknown_language_defn): New static global.
5334 (auto_language_defn): Convert to...
5335 (auto_language_data): ...this.
5336 (class auto_language): New class.
5337 (auto_language_defn): New static global.
5338 (language_gdbarch_post_init): Use language_defn::languages.
5339 (_initialize_language): Initialize current_language.
5340 * gdb/language.h (struct language_defn): Rename to...
5341 (struct language_data): ...this.
5342 (struct language_defn): New.
5343 (auto_language_defn): Delete.
5344 (unknown_language_defn): Delete.
5345 (minimal_language_defn): Delete.
5346 (ada_language_defn): Delete.
5347 (asm_language_defn): Delete.
5348 (c_language_defn): Delete.
5349 (cplus_language_defn): Delete.
5350 (d_language_defn): Delete.
5351 (f_language_defn): Delete.
5352 (go_language_defn): Delete.
5353 (m2_language_defn): Delete.
5354 (objc_language_defn): Delete.
5355 (opencl_language_defn): Delete.
5356 (pascal_language_defn): Delete.
5357 (rust_language_defn): Delete.
5358 * gdb/m2-lang.c (m2_language_defn): Convert to...
5359 (m2_language_data): ...this.
5360 (class m2_language): New class.
5361 (m2_language_defn): New static global.
5362 * gdb/objc-lang.c (objc_language_defn): Convert to...
5363 (objc_language_data): ...this.
5364 (class objc_language): New class.
5365 (objc_language_defn): New static global.
5366 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5367 (opencl_language_data): ...this.
5368 (class opencl_language): New class.
5369 (opencl_language_defn): New static global.
5370 * gdb/p-lang.c (pascal_language_defn): Convert to...
5371 (pascal_language_data): ...this.
5372 (class pascal_language): New class.
5373 (pascal_language_defn): New static global.
5374 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5375 language pointer, update comment format.
5376 * gdb/rust-lang.c (rust_language_defn): Convert to...
5377 (rust_language_data): ...this.
5378 (class rust_language): New class.
5379 (rust_language_defn): New static global.
5380
1313c56e
AB
53812020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5384 member variable.
5385 <m_stmt_at_address>: New member variable.
5386 (lnp_state_machine::record_line): Don't record some lines, update
5387 tracking of is_stmt at the same address.
5388 (lnp_state_machine::lnp_state_machine): Initialise new member
5389 variables.
5390
b7ed9f3d
ST
53912020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5392
5393 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5394 "-include gnu-nat-mig.h".
5395 * gnu-nat-mig.h: New file.
5396 * gnu-nat.c: Include "gnu-nat-mig.h".
5397 (exc_server, msg_reply_server, notify_server,
5398 process_reply_server): Remove declarations.
5399
14a8ad62
ST
54002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5401
5402 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5403 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5404 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5405 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5406 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5407 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5408 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5409 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5410 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5411 to gnu_nat_target class.
5412 * gnu-nat.c: Likewise.
5413 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5414 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5415 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5416 object.
5417 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5418 instead of `gnu_target'.
5419
0af5e106
ST
54202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5421
5422 * i386-gnu-tdep.c: Include "gdbcore.h"
5423 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5424 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5425 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5426 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5427 i386_gnu_sigcontext_addr): New functions
5428 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5429 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5430 tdep.
5431
078f2fc9
ST
54322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5433
5434 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5435 before fork_inferior call. Avoid calling it if target_is_pushed returns
5436 true.
5437
53dff92c
ST
54382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5439
5440 * gnu-nat.h (gnu_target): New variable declaration.
5441 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5442 gnu_target.
5443 * gnu-nat.c (gnu_target): New variable.
5444 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5445 add_thread_silent, and add_thread calls.
5446 (gnu_nat_target::create_inferior): Pass gnu_target to
5447 add_thread_silent, thread_change_ptid call.
5448 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5449 call.
5450
5a8b8627
ST
54512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5452
5453 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5454 (gnu_nat_target::find_memory_regions): Remove unused
5455 `old_address' variable.
5456
366f550a
ST
54572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5458
5459 * gnu-nat.c: Include "gdbarch.h".
5460
f14871bf
ST
54612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5462
5463 * reply_mig_hack.awk (Error return): Cast function through
5464 void *, to bypass compiler function call check.
5465
c6887cfb
ST
54662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5467
5468 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5469 $(srcdir)/reply_mig_hack.awk.
5470
6930bffe
ST
54712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5472
5473 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5474
112c22ed
JG
54752020-05-30 Jonny Grant <jg@jguk.org>
5476
5477 * configure.ac (ACX_BUGURL): change bug URL to https.
5478
f68f85b5
PA
54792020-05-30 Pedro Alves <palves@redhat.com>
5480
5481 * cp-support.c (replace_typedefs_template): New.
5482 (replace_typedefs_qualified_name): Handle
5483 DEMANGLE_COMPONENT_TEMPLATE.
5484
976ca316
SM
54852020-05-29 Simon Marchi <simon.marchi@efficios.com>
5486
5487 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5488 dwarf2/index-cache.h, dwarf2/index-write.c,
5489 dwarf2/index-write.h, dwarf2/line-header.c,
5490 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5491 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5492 variables and fields from `dwarf2_per_objfile` to just
5493 `per_objfile` throughout.
5494
989ade05
SM
54952020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5496
5497 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5498 <push_dwarf_reg_entry_value>: Add comment.
5499
c47bae85
KB
55002020-05-28 Kevin Buettner <kevinb@redhat.com>
5501 Keith Seitz <keiths@redhat.com>
5502
5503 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5504 instead of PyEval_ReleaseLock.
5505 (class gdbpy_gil): Move to earlier in file.
5506 (finalize_python): Set gdb_python_initialized.
5507 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5508 when not initialized.
5509
44486dcf
SM
55102020-05-28 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5513 <push_dwarf_reg_entry_value>: Remove assert. Override
5514 per_objfile with caller_per_objfile.
5515
f030440d
TV
55162020-05-28 Tom de Vries <tdevries@suse.de>
5517
5518 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5519 PR gold/15646 workaround to symbol kind "type".
5520
f0fbb768
TT
55212020-05-27 Tom Tromey <tromey@adacore.com>
5522
5523 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5524
af0b2a3e
TT
55252020-05-27 Tom Tromey <tromey@adacore.com>
5526
5527 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5528 Use htab_find_with_hash.
5529 <add_abbrev>: Remove "abbrev_number" parameter.
5530 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5531 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5532 (hash_abbrev): Add comment.
5533 (abbrev_table::lookup_abbrev): Move to header file.
5534 (abbrev_table::read): Update.
5535
7d00ffec
TT
55362020-05-27 Tom Tromey <tromey@adacore.com>
5537
5538 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5539 method.
5540 <canonical_name>: New member.
5541 <raw_name>: Rename from "name".
5542 (partial_die_info): Initialize canonical_name.
5543 (scan_partial_symbols): Check raw_name.
5544 (partial_die_parent_scope, partial_die_full_name)
5545 (add_partial_symbol, add_partial_subprogram)
5546 (add_partial_enumeration, load_partial_dies): Use "name" method.
5547 (partial_die_info::name): New method.
5548 (partial_die_info::read, guess_partial_die_structure_name)
5549 (partial_die_info::fixup): Update.
5550
697bba18
TT
55512020-05-27 Tom Tromey <tromey@adacore.com>
5552
5553 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5554 <get_ref_die_offset>: Inline.
5555 <get_ref_die_offset_complaint>: New method.
5556 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5557 (attribute::get_ref_die_offset_complaint): Rename from
5558 get_ref_die_offset. Just issue complaint.
5559
c17ace43
HD
55602020-05-27 Hannes Domani <ssbssa@yahoo.de>
5561
5562 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5563
96445f0b
HD
55642020-05-27 Hannes Domani <ssbssa@yahoo.de>
5565
5566 * exec.c (exec_file_attach): Use errno value of first openp failure.
5567
ac637ec3
HD
55682020-05-27 Hannes Domani <ssbssa@yahoo.de>
5569
5570 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5571 Don't close thread handle.
5572
17ee85fc
TT
55732020-05-27 Tom Tromey <tom@tromey.com>
5574 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5577 shared_ptr.
5578 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5579 member.
5580 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5581 dwarf2_per_bfd_objfile_data_key>: New globals.
5582 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5583 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5584 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5585 shared.
5586 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5587 short-circuit when sharing.
5588 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5589 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5590
39b16f87
SM
55912020-05-27 Simon Marchi <simon.marchi@efficios.com>
5592
5593 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5594 to...
5595 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5596 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5597
fcf23d5b
SM
55982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5601 build_name_components, find_name_components_bounds>:
5602 Add per_objfile parameter.
5603 (struct mapped_index) <symbol_name_at>: Likewise.
5604 (struct mapped_debug_names): Remove constructor.
5605 <dwarf2_per_objfile>: Remove field.
5606 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5607 (mapped_index_base::find_name_components_bounds,
5608 mapped_index_base::build_name_components,
5609 dw2_expand_symtabs_matching_symbol): Likewise.
5610 (class mock_mapped_index) <symbol_name_at>: Likewise.
5611 (check_match): Likewise.
5612 (check_find_bounds_finds): Likewise.
5613 (test_mapped_index_find_name_component_bounds): Update.
5614 (CHECK_MATCH): Update.
5615 (dw2_expand_symtabs_matching): Update.
5616 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5617 per_objfile parameter.
5618 <find_vec_in_debug_names>: Likewise.
5619 <m_per_objfile>: New field.
5620 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5621 parameter.
5622 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5623 (dw2_debug_names_iterator::next): Update.
5624 (dw2_debug_names_lookup_symbol): Update.
5625 (dw2_debug_names_expand_symtabs_for_function): Update.
5626 (dw2_debug_names_map_matching_symbols): Update.
5627 (dw2_debug_names_expand_symtabs_matching): Update.
5628 (dwarf2_read_debug_names): Update.
5629
7188ed02
SM
56302020-05-27 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5633 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5634 move to dwarf2_per_objfile.
5635 <read_in_chain>: Remove.
5636 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5637 remove_all_cus, age_comp_units>: New methods.
5638 <m_dwarf2_cus>: New member.
5639 (struct dwarf2_per_cu_data) <cu>: Remove.
5640 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5641 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5642 moved to methods of dwarf2_per_objfile.
5643 (dwarf2_clear_marks): Remove.
5644 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5645 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5646 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5647 (dwarf2_per_objfile::remove_all_cus): New.
5648 (class free_cached_comp_units) <~free_cached_comp_units>:
5649 Update.
5650 (load_cu): Update.
5651 (dw2_do_instantiate_symtab): Adjust.
5652 (fill_in_sig_entry_from_dwo_entry): Adjust.
5653 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5654 (cutu_reader::cutu_reader): Likewise.
5655 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5656 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5657 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5658 and dwarf2_per_objfile::age_comp_units.
5659 (load_partial_comp_unit): Update.
5660 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5661 (process_queue): Likewise.
5662 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5663 backlink.
5664 (dwarf2_read_addr_index): Likewise.
5665 (follow_die_offset): Likewise.
5666 (dwarf2_fetch_die_loc_sect_off): Likewise.
5667 (dwarf2_fetch_constant_bytes): Likewise.
5668 (dwarf2_fetch_die_type_sect_off): Likewise.
5669 (follow_die_sig_1): Likewise.
5670 (load_full_type_unit): Likewise.
5671 (read_signatured_type): Likewise.
5672 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5673 (dwarf2_cu::~dwarf2_cu): Remove.
5674 (dwarf2_per_objfile::get_cu): New.
5675 (dwarf2_per_objfile::set_cu): New.
5676 (age_cached_comp_units): Rename to...
5677 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5678 to std::unordered_map.
5679 (free_one_cached_comp_unit): Rename to...
5680 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5681 to std::unordered_map.
5682 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5683 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5684 a dwarf2_per_objfile in data.
5685 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5686 (dwarf2_clear_marks): Remove.
5687
2e671100
SM
56882020-05-27 Simon Marchi <simon.marchi@efficios.com>
5689
5690 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5691 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5692 (init_tu_and_read_dwo_dies): Likewise.
5693 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5694 (cutu_reader::cutu_reader): Likewise.
5695 (load_partial_comp_unit): Likewise.
5696 (process_psymtab_comp_unit): Update.
5697 (build_type_psymtabs_1): Update.
5698 (process_skeletonless_type_unit): Update.
5699 (load_full_comp_unit): Update.
5700 (find_partial_die): Update.
5701 (dwarf2_read_addr_index): Update.
5702 (read_signatured_type): Update.
5703
2e6a9f79
SM
57042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5705
5706 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5707 m_header_read_in>: New fields.
5708 <get_header>: New method.
5709 * dwarf2/read.c (per_cu_header_read_in): Remove.
5710 (dwarf2_per_cu_data::get_header): New.
5711 (dwarf2_per_cu_data::addr_size): Update.
5712 (dwarf2_per_cu_data::offset_size): Update.
5713 (dwarf2_per_cu_data::ref_addr_size): Update.
5714
1b555f17
SM
57152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5718 (dw2_do_instantiate_symtab): Update.
5719 (queue_and_load_all_dwo_tus): Change parameter from
5720 dwarf2_per_cu_data to dwarf2_cu.
5721 (dwarf2_fetch_die_loc_sect_off): Update.
5722 (dwarf2_fetch_constant_bytes): Update.
5723 (dwarf2_fetch_die_type_sect_off): Update.
5724
8fc0b21d
SM
57252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * dwarf2/read.c (process_full_comp_unit,
5728 process_full_type_unit): Remove per_cu, per_objfile paramters.
5729 Add dwarf2_cu parameter.
5730 (process_queue): Update.
5731
168c9250
SM
57322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * dwarf2/read.c (create_cu_from_index_list): Replace
5735 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5736 (create_cus_from_index_list): Likewise.
5737 (create_cus_from_index): Likewise.
5738 (create_signatured_type_table_from_index): Likewise.
5739 (create_cus_from_debug_names_list): Likewise.
5740 (create_cus_from_debug_names): Likewise.
5741 (dwarf2_read_gdb_index): Update.
5742 (dwarf2_read_debug_names): Update.
5743
e286671b
TT
57442020-05-27 Tom Tromey <tom@tromey.com>
5745 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * dwarf2/read.h (struct dwarf2_per_objfile)
5748 <get_type_for_signatured_type, set_type_for_signatured_type>:
5749 New methods.
5750 <m_type_map>: New member.
5751 (struct signatured_type) <type>: Remove.
5752 * dwarf2/read.c
5753 (dwarf2_per_objfile::get_type_for_signatured_type,
5754 dwarf2_per_objfile::set_type_for_signatured_type): New.
5755 (get_signatured_type): Use new methods.
5756
8adb8487
TT
57572020-05-27 Tom Tromey <tom@tromey.com>
5758 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5761 (struct dwarf2_per_objfile) <type_units>: New member.
5762 <get_type_unit_group_unshareable>: New method.
5763 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5764 num_symtabs, symtabs>: Remove; move to
5765 type_unit_group_unshareable.
5766 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5767 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5768 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5769
127bbf4b
SM
57702020-05-27 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * dwarf2/read.h (struct dwarf2_per_cu_data):
5773 <dwarf2_per_objfile>: Remove.
5774 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5775 dwarf2_per_objfile.
5776 (create_signatured_type_table_from_index): Likewise.
5777 (create_signatured_type_table_from_debug_names): Likewise.
5778 (create_debug_type_hash_table): Likewise.
5779 (fill_in_sig_entry_from_dwo_entry): Likewise.
5780 (create_type_unit_group): Likewise.
5781 (read_comp_units_from_section): Likewise.
5782 (create_cus_hash_table): Likewise.
5783
f6e649dd
SM
57842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5787 dwarf2_per_cu_data::dwarf2_per_objfile.
5788 (compute_compunit_symtab_includes): Likewise.
5789 (dwarf2_cu::start_symtab): Likewise.
5790
aa66c379
SM
57912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5792
5793 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5794 parameter.
5795 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5796 (read_namespace_alias): Update.
5797 (lookup_die_type): Update.
5798 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5799 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5800 Update.
5801 (disassemble_dwarf_expression): Update.
5802
120ce1b5
SM
58032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * dwarf2/read.h (struct dwarf2_queue_item): Add
5806 dwarf2_per_objfile parameter, assign new parameter.
5807 <per_objfile>: New field.
5808 * dwarf2/read.c (free_one_cached_comp_unit): Add
5809 dwarf2_per_objfile parameter.
5810 (queue_comp_unit): Likewise.
5811 (dw2_do_instantiate_symtab): Update.
5812 (process_psymtab_comp_unit): Update.
5813 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5814 (process_imported_unit_die): Update.
5815 (queue_and_load_dwo_tu): Update.
5816 (follow_die_offset): Update.
5817 (follow_die_sig_1): Update.
5818
9f47c707
SM
58192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5822 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5823 (read_call_site_scope): Assign per_objfile.
5824 (dwarf2_per_cu_data::objfile): Remove.
5825 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5826 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5827 dwarf2_per_objfile parameter.
5828 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5829 dwarf2_per_objfile parameter.
5830 (dwarf_expr_reg_to_entry_parameter): Add output
5831 dwarf2_per_objfile parameter.
5832 (locexpr_get_frame_base): Update.
5833 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5834 <push_dwarf_reg_entry_value>: Update.
5835 <call_site_to_target_addr>: Update.
5836 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5837 parameter.
5838 (value_of_dwarf_reg_entry): Update.
5839 (rw_pieced_value): Update.
5840 (indirect_synthetic_pointer): Update.
5841 (dwarf2_evaluate_property): Update.
5842 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5843 parameter.
5844 (locexpr_read_variable): Update.
5845 (locexpr_get_symbol_read_needs): Update.
5846 (loclist_read_variable): Update.
5847
14095eb3
SM
58482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5851 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5852 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5853 parameter.
5854 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5855 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5856 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5857 parameter.
5858 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5859 sect_variable_value): Add dwarf2_per_objfile parameter.
5860 (class dwarf_evaluate_loc_desc) <dwarf_call,
5861 dwarf_variable_value>: Update.
5862 (fetch_const_value_from_synthetic_pointer): Add
5863 dwarf2_per_objfile parameter.
5864 (fetch_const_value_from_synthetic_pointer): Update.
5865 (coerced_pieced_ref): Update.
5866 (class symbol_needs_eval_context) <dwarf_call,
5867 dwarf_variable_value>: Update.
5868 (dwarf2_compile_expr_to_ax): Update.
5869
3c3cd3d4
SM
58702020-05-27 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5873 parameter.
5874 (dwarf2_evaluate_loc_desc_full): Update.
5875
82ca3f51
SM
58762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5877
5878 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5879 parameter.
5880 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5881 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5882 dwarf2_per_objfile parameter.
5883 (decode_debug_loc_dwo_addresses): Likewise.
5884 (dwarf2_find_location_expression): Update.
5885 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5886 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5887 parameter.
5888 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5889 parameter.
5890 (locexpr_describe_location_1): Likewise.
5891 (locexpr_describe_location): Update.
5892
4b167ea1
SM
58932020-05-27 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5896 Remove.
5897 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5898 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5899 (dwarf2_compile_property_to_c): Update.
5900 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5901 use text offset from objfile.
5902 (locexpr_tracepoint_var_ref): Update.
5903 (locexpr_generate_c_location): Update.
5904 (loclist_describe_location): Update.
5905 (loclist_tracepoint_var_ref): Update.
5906 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5907 dwarf2_per_objfile parameter.
5908 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5909 use text offset from objfile.
5910 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5911
89b07335
SM
59122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * dwarf2/expr.h (struct dwarf_expr_context)
5915 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5916 <offset>: Remove.
5917 <per_objfile>: New member.
5918 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5919 dwarf2_per_objfile parameter. Don't set offset, set
5920 per_objfile.
5921 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5922 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5923 a dwarf2_per_objfile object instead of an offset.
5924 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5925 constructor.
5926 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5927 to dwarf2_expr_executor constructor. Don't set offset.
5928 (dwarf2_fetch_cfa_info): Update.
5929 (struct dwarf2_frame_cache) <text_offset>: Remove.
5930 <per_objfile>: New field.
5931 (dwarf2_frame_cache): Update.
5932 (dwarf2_frame_prev_register): Update.
5933 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5934 <dwarf_evaluate_loc_desc>: Add constructor.
5935 (dwarf2_evaluate_loc_desc_full): Update.
5936 (dwarf2_locexpr_baton_eval): Update.
5937 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5938 Add constructor.
5939 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5940
293e7e51
SM
59412020-05-27 Simon Marchi <simon.marchi@efficios.com>
5942
5943 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5944 addr_sized_int_type>: Move to dwarf2_cu.
5945 <int_type>: Move to dwarf2_per_objfile.
5946 (struct dwarf2_per_objfile) <int_type>: Move here.
5947 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5948 addr_sized_int_type>: Move here.
5949 (read_func_scope): Update.
5950 (read_array_type): Update.
5951 (read_tag_string_type): Update.
5952 (attr_to_dynamic_prop): Update.
5953 (dwarf2_per_cu_data::int_type): Rename to...
5954 (dwarf2_per_objfile::int_type): ... this.
5955 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5956 (dwarf2_cu::addr_sized_int_type): ... this.
5957 (read_subrange_type): Update.
5958 (dwarf2_per_cu_data::addr_type): Rename to...
5959 (dwarf2_cu::addr_type): ... this.
5960 (set_die_type): Update.
5961
64874a40
SM
59622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5963
5964 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5965 data through per_cu->cu.
5966
4ab09049
SM
59672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5970 dwarf2_per_cu_data parameter fo dwarf2_cu.
5971 (lookup_dwo_type_unit): Likewise.
5972 (read_cutu_die_from_dwo): Likewise.
5973 (lookup_dwo_unit): Likewise.
5974 (open_and_init_dwo_file): Likewise.
5975 (lookup_dwo_cutu): Likewise.
5976 (lookup_dwo_comp_unit): Likewise.
5977 (lookup_dwo_type_unit): Likewise.
5978 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5979 (cutu_reader::cutu_reader): Update.
5980
47b14e86
SM
59812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5984 parameter.
5985 (process_full_type_unit): Likewise.
5986 (process_queue): Update.
5987
43182c09
SM
59882020-05-27 Simon Marchi <simon.marchi@efficios.com>
5989
5990 * dwarf2/read.c (recursively_compute_inclusions): Add
5991 dwarf2_per_objfile parameter.
5992 (compute_compunit_symtab_includes): Likewise.
5993 (process_cu_includes): Update.
5994
7aa104c4
SM
59952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5998 parameter.
5999 (create_type_unit_group): Update.
6000 (process_psymtab_comp_unit_reader): Update.
6001 (build_type_psymtabs_reader): Update.
6002
e3beb21d
SM
60032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6006 object through m_this_cu->cu.
6007
d460f660
SM
60082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6011 the info parameter.
6012 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6013
ab432490
SM
60142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6017 per_objfile parameter.
6018 (load_full_type_unit): Add per_objfile parameter.
6019 (read_signatured_type): Likewise.
6020 (load_full_comp_unit): Likewise.
6021 (load_cu): Likewise.
6022 (dw2_do_instantiate_symtab): Likewise.
6023 (dw2_get_file_names): Likewise.
6024 (dw2_map_symtabs_matching_filename): Update.
6025 (dw_expand_symtabs_matching_file_matcher): Update.
6026 (dw2_map_symbol_filenames): Update.
6027 (process_psymtab_comp_unit): Add per_objfile parameter.
6028 (build_type_psymtabs_1): Update.
6029 (process_skeletonless_type_unit): Update.
6030 (dwarf2_build_psymtabs_hard): Update.
6031 (load_partial_comp_unit): Add per_objfile parameter.
6032 (scan_partial_symbols): Update.
6033 (load_full_comp_unit): Add per_objfile parameter.
6034 (process_imported_unit_die): Update.
6035 (create_cus_hash_table): Update.
6036 (find_partial_die): Update.
6037 (dwarf2_read_addr_index): Update.
6038 (follow_die_offset): Update.
6039 (dwarf2_fetch_die_loc_sect_off): Update.
6040 (dwarf2_fetch_constant_bytes): Update.
6041 (dwarf2_fetch_die_type_sect_off): Update.
6042 (follow_die_sig_1): Update.
6043 (load_full_type_unit): Add per_objfile parameter.
6044 (read_signatured_type): Likewise.
6045
313bad1b
SM
60462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6047
6048 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6049 of objfile_name.
6050
c3699833
SM
60512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6054 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6055 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6056 field.
6057 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6058 (create_cus_from_index): Update.
6059 (dwarf2_read_gdb_index): Update.
6060 (create_cus_from_debug_names): Update.
6061 (dwarf2_read_debug_names): Update.
6062 (get_abbrev_section_for_cu): Update.
6063 (create_all_comp_units): Update.
6064 (read_attribute_value): Update.
6065 (get_debug_line_section): Update.
6066 * dwarf2/index-cache.c (index_cache::store): Update.
6067 * dwarf2/index-write.c (save_gdb_index_command): Update.
6068 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6069
1859c670
SM
60702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6073 member.
6074 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6075 dwarf2_per_cu_data::per_bfd.
6076 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6077 (create_type_unit_group): Likewise.
6078 (queue_comp_unit): Remove reference to
6079 per_cu->dwarf2_per_objfile.
6080 (maybe_queue_comp_unit): Likewise.
6081 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6082 (create_cus_hash_table): Assign new field.
6083
5e22e966
SM
60842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * dwarf2/read.c: Replace
6087 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6088 dwarf2_cu->per_objfile throughout.
6089
97a1449a
SM
60902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6093 parameter, don't use per_cu->dwarf2_per_objfile.
6094 (dw2_instantiate_symtab): Likewise.
6095 (dw2_find_last_source_symtab): Update.
6096 (dw2_map_expand_apply): Update.
6097 (dw2_lookup_symbol): Update.
6098 (dw2_expand_symtabs_for_function): Update.
6099 (dw2_expand_all_symtabs): Update.
6100 (dw2_expand_symtabs_with_fullname): Update.
6101 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6102 don't use per_cu->dwarf2_per_objfile.
6103 (dw2_expand_marked_cus): Update.
6104 (dw2_find_pc_sect_compunit_symtab): Update.
6105 (dw2_debug_names_lookup_symbol): Update.
6106 (dw2_debug_names_expand_symtabs_for_function): Update.
6107 (dw2_debug_names_map_matching_symbols): Update.
6108 (dwarf2_psymtab::expand_psymtab): Update.
6109
9e021579
SM
61102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6113 <per_objfile>: New member.
6114 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6115 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6116 call to dwarf2_cu.
6117 (cutu_reader::cutu_reader): Update.
6118 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6119
ae090bdb
SM
61202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6123 struct dwarf2_per_objfile.
6124 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6125 dwarf2_per_bfd.
6126 * dwarf2/read.c (set_die_type): Update.
6127 (get_die_type_at_offset): Update.
6128
af758d11
SM
61292020-05-27 Tom Tromey <tom@tromey.com>
6130 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6133 method.
6134 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6135 get_symtab, set_symtab>: New methods.
6136 <m_symtabs>: New field.
6137 (struct dwarf2_psymtab): Derive from partial_symtab.
6138 <readin_p, get_compunit_symtab>: Declare methods.
6139 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6140 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6141 New methods.
6142 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6143 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6144 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6145 (dw2_symtab_iter_next, dw2_print_stats)
6146 (dw2_expand_symtabs_with_fullname)
6147 (dw2_expand_symtabs_matching_one)
6148 (dw_expand_symtabs_matching_file_matcher)
6149 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6150 (dw2_debug_names_iterator::next)
6151 (dw2_debug_names_map_matching_symbols)
6152 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6153 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6154 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6155 New methods.
6156 (get_compunit_symtab, process_full_comp_unit)
6157 (process_full_type_unit): Update.
6158 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6159
5989a64e
SM
61602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6161
6162 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6163 then introduce a new dwarf2_per_objfile type.
6164 <read_line_string>: Move to the new dwarf2_per_objfile type.
6165 <objfile>: Likewise.
6166 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6167 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6168 dwarf2_per_objfile->per_bfd.
6169 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6170 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6171 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6172 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6173 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6174 (dwarf2_per_objfile::locate_sections): Rename to...
6175 (dwarf2_per_bfd::locate_sections): ... this.
6176 (dwarf2_per_objfile::get_cutu): Rename to...
6177 (dwarf2_per_bfd::get_cutu): ... this.
6178 (dwarf2_per_objfile::get_cu): Rename to...
6179 (dwarf2_per_bfd::get_cu): ... this.
6180 (dwarf2_per_objfile::get_tu): Rename to...
6181 (dwarf2_per_bfd::get_tu): ... this.
6182 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6183 (dwarf2_per_bfd::allocate_per_cu): ... this.
6184 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6185 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6186 (get_gdb_index_contents_ftype): Change parameter from
6187 dwarf2_per_objfile to dwarf2_per_bfd.
6188 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6189 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6190
a50264ba
TT
61912020-05-27 Tom Tromey <tom@tromey.com>
6192 Simon Marchi <simon.marchi@efficios.com>
6193
6194 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6195 (allocate_piece_closure): Set "per_objfile" member.
6196 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6197 (locexpr_describe_location, loclist_describe_location): Use new
6198 member.
6199 * dwarf2/read.c (read_call_site_scope)
6200 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6201 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6202 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6203 handle_data_member_location): Set per_objfile member.
6204 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6205 member.
6206 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6207
d3473f0c
TT
62082020-05-27 Tom Tromey <tom@tromey.com>
6209
6210 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6211 allocate_signatured_type>: Declare new methods.
6212 <m_num_psymtabs>: New member.
6213 (struct dwarf2_per_cu_data) <index>: New member.
6214 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6215 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6216 (create_cu_from_index_list): Use allocate_per_cu.
6217 (create_signatured_type_table_from_index)
6218 (create_signatured_type_table_from_debug_names)
6219 (create_debug_type_hash_table, add_type_unit)
6220 (read_comp_units_from_section): Use allocate_signatured_type.
6221
5717c425
TT
62222020-05-27 Tom Tromey <tom@tromey.com>
6223
6224 * psymtab.c (partial_map_expand_apply)
6225 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6226 (psym_lookup_global_symbol_language)
6227 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6228 (psym_print_stats, psym_expand_symtabs_for_function)
6229 (psym_map_symbol_filenames, psym_map_matching_symbols)
6230 (psym_expand_symtabs_matching)
6231 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6232 (maintenance_check_psymtabs): Update.
6233 * psympriv.h (struct partial_symtab) <readin_p,
6234 get_compunit_symtab>: Add objfile parameter.
6235 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6236 Likewise.
6237 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6238 get_compunit_symtab>: Likewise.
6239 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6240
45940949
TT
62412020-05-27 Tom Tromey <tom@tromey.com>
6242
6243 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6244 member.
6245 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6246 (create_cu_from_index_list)
6247 (create_signatured_type_table_from_index)
6248 (create_signatured_type_table_from_debug_names)
6249 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6250 (dwarf2_create_include_psymtab)
6251 (create_debug_type_hash_table, add_type_unit)
6252 (create_type_unit_group, read_comp_units_from_section)
6253 (dwarf2_compute_name, create_cus_hash_table)
6254 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6255 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6256 obstack.
6257 (dw2_get_real_path): Likewise. Change argument to
6258 dwarf2_per_objfile.
6259
f8c6d152
LM
62602020-05-27 Luis Machado <luis.machado@linaro.org>
6261
6262 PR tdep/26000
6263 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6264 for ldrd (immediate).
6265
e98d2e6d
PW
62662020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6267
6268 * command.h: Add comment giving the name of class_tui.
6269 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6270 create the fake command for the help for class_tui.
6271
53a47a3e
TT
62722020-05-26 Tom Tromey <tromey@adacore.com>
6273
6274 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6275 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6276 (val_atr): New function.
6277 (value_val_atr): Use it.
6278 * ada-valprint.c (print_optional_low_bound): Change low bound
6279 handling for enums.
6280 (val_print_packed_array_elements): Don't call discrete_position.
6281 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6282 discrete_position for enum types.
6283 * language.c (default_print_array_index): Change type.
6284 * language.h (struct language_defn) <la_print_array_index>: Add
6285 index_type parameter, change type of index_value.
6286 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6287 (default_print_array_index): Update.
6288 * valprint.c (maybe_print_array_index): Don't call
6289 value_from_longest. Update.
6290 (value_print_array_elements): Don't call discrete_position.
6291
0bc2354b
TT
62922020-05-26 Tom Tromey <tromey@adacore.com>
6293
6294 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6295 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6296
1218a4bf
CDA
62972020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6298
6299 PR gdb/13519
6300 * avr-tdep.c (avr_integer_to_address): Return data or code
6301 address accordingly to the second 'type' argument of the
6302 function.
6303
92651b1d
MW
63042020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6305
6306 * infcmd.c, inferior.h: (construct_inferior_arguments):
6307 Moved function from here to gdbsupport/common-inferior.{h,cc}
6308
0a4f5f8c
TT
63092020-05-23 Tom Tromey <tom@tromey.com>
6310
6311 Revert commit eca1f90c:
6312 * NEWS: Remove entry for completion styling.
6313 * completer.c (_rl_completion_prefix_display_length): Move
6314 declaration later.
6315 (gdb_fnprint): Revert.
6316 (gdb_display_match_list_1): Likewise.
6317 * cli/cli-style.c (completion_prefix_style)
6318 (completion_difference_style, completion_suffix_style): Remove.
6319 (_initialize_cli_style): Revert.
6320 * cli/cli-style.h (completion_prefix_style)
6321 (completion_difference_style, completion_suffix_style): Don't
6322 declare.
6323
e08bd6c5
PA
63242020-05-24 Pedro Alves <palves@redhat.com>
6325
6326 * symtab.c (completion_list_add_name): Return boolean indication
6327 of whether the symbol matched.
6328 (completion_list_add_symbol): Don't try to remove C++ aliases if
6329 the symbol didn't match in the first place.
6330 * symtab.h (completion_list_add_name): Return bool.
6331
ceacbf6e
SM
63322020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6333
6334 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6335 type::field.
6336
26f16254
JB
63372020-05-23 Joel Brobecker <brobecker@adacore.com>
6338
6339 GDB 9.2 released.
6340
eca1f90c
TT
63412020-05-23 Tom Tromey <tom@tromey.com>
6342
6343 * NEWS: Add entry for completion styling.
6344 * completer.c (_rl_completion_prefix_display_length): Move
6345 declaration earlier.
6346 (gdb_fnprint): Use completion_style.
6347 (gdb_display_match_list_1): Likewise.
6348 * cli/cli-style.c (completion_prefix_style)
6349 (completion_difference_style, completion_suffix_style): New
6350 globals.
6351 (_initialize_cli_style): Register new globals.
6352 * cli/cli-style.h (completion_prefix_style)
6353 (completion_difference_style, completion_suffix_style): Declare.
6354
51e2cfa2
PA
63552020-05-23 Pedro Alves <palves@redhat.com>
6356
6357 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6358 (parse_escape): Use ISDIGIT instead of isdigit.
6359 (puts_debug): Use gdb_isprint instead of isprint.
6360 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6361 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6362 ISSPACE instead of isspace.
6363 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6364 instead of isspace.
6365 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6366 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6367 instead of isxdigit and ISDIGIT instead of isdigit.
6368
80fc5e77
SM
63692020-05-22 Simon Marchi <simon.marchi@efficios.com>
6370
6371 * gdbtypes.h (struct type) <field>: New method.
6372 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6373 or type::field.
6374
3cabb6b0
SM
63752020-05-22 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6378 (TYPE_FIELDS): Use type::fields. Change all call sites that
6379 modify the propery to use type::set_fields instead.
6380
1f704f76
SM
63812020-05-22 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6384 type::num_fields instead.
6385
5e33d5f4
SM
63862020-05-22 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6389 methods.
6390 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6391 that modify the number of fields to use type::set_num_fields
6392 instead.
6393
9392ebb3
TT
63942020-05-22 Tom Tromey <tromey@adacore.com>
6395
6396 * compile/compile-object-load.h (munmap_list_free): Don't
6397 declare.
6398
7c13f4e8
AB
63992020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6400
6401 * annotate.c (annotate_source_line): Update return type, add call
6402 to update current symtab and line.
6403 * annotate.h (annotate_source_line): Update return type, and
6404 extend header comment.
6405 * source.c (info_line_command): Check annotation_level before
6406 calling annotate_source_line.
6407 * stack.c (print_frame_info): If calling annotate_source_line
6408 returns true, then don't print any other source line information.
6409
aa370940
SM
64102020-05-21 Simon Marchi <simon.marchi@efficios.com>
6411
6412 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6413
84d53fa9
SM
64142020-05-21 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * coffread.c (patch_type): Remove NULL check before xfree.
6417 * corefile.c (set_gnutarget): Likewise.
6418 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6419 * exec.c (build_section_table): Likewise.
6420 * remote.c (remote_target::pass_signals): Likewise.
6421 * utils.c (n_spaces): Likewise.
6422 * cli/cli-script.c (document_command): Likewise.
6423 * i386-windows-tdep.c (core_process_module_section): Likewise.
6424 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6425
9d428aae
SM
64262020-05-20 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * symfile.c (reread_symbols): Clear objfile's section_offsets
6429 vector and section indices, re-compute them by calling
6430 sym_offsets.
6431
250106a7
TT
64322020-05-20 Tom Tromey <tromey@adacore.com>
6433
6434 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6435 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6436
9a0bacfb
TV
64372020-05-20 Tom de Vries <tdevries@suse.de>
6438
6439 PR symtab/25833
6440 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6441
7b958a48
AM
64422020-05-20 Alan Modra <amodra@gmail.com>
6443
6444 PR 25993
6445 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6446 bfd_set_filename.
6447 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6448 passed to bfd_set_filename.
6449 * symfile-mem.c (add_vsyscall_page): Likewise for string
6450 passed to symbol_file_add_from_memory.
6451 (symbol_file_add_from_memory): Make name param a const char* and
6452 don't strdup.
6453
c7e97679
AM
64542020-05-20 Alan Modra <amodra@gmail.com>
6455
6456 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6457 rather than accessing bfd->filename directly.
6458 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6459 and use bfd_section_name.
6460 * dwarf2/frame.c (decode_frame_entry): Likewise.
6461 * exec.c (exec_set_section_address): Likewise.
6462 * solib-aix.c (solib_aix_bfd_open): Likewise.
6463 * stap-probe.c (get_stap_base_address): Likewise.
6464 * symfile.c (reread_symbols): Likewise.
6465
563c591b
TT
64662020-05-19 Tom Tromey <tromey@adacore.com>
6467
6468 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6469
f408d82c
SM
64702020-05-19 Simon Marchi <simon.marchi@efficios.com>
6471
6472 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6473
98c59b52
PA
64742020-05-19 Pedro Alves <palves@redhat.com>
6475
6476 * NEWS (set exec-file-mismatch): Adjust entry.
6477 * exec.c: Include "build-id.h".
6478 (validate_exec_file): Try to match build IDs instead of filenames.
6479 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6480 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6481 and pass down 'warn_if_slow'.
6482 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6483 gdb_bfd_open_closure to pass it down.
6484 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6485
4111f652
PA
64862020-05-19 Pedro Alves <palves@redhat.com>
6487
6488 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6489 * target.c (target_fileio_open_1): Rename to target_fileio_open
6490 and make extern. Use bool.
6491 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6492 (target_fileio_read_alloc_1): Adjust.
6493 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6494 (target_fileio_open_warn_if_slow): Delete declaration.
6495
ad80db5b
PA
64962020-05-19 Pedro Alves <palves@redhat.com>
6497
6498 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6499 Adjust all callers.
6500
1d6ce4d3
YS
65012020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6502
6503 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6504 whether disp is negative.
6505
9005fbbb
SM
65062020-05-19 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * symfile.h (struct symfile_segment_data)
6509 <~symfile_segment_data>: Remove.
6510 <segment_info>: Change to std::vector.
6511 * symfile.c (default_symfile_segments): Update.
6512 * elfread.c (elf_symfile_segments): Update.
6513
68b888ff
SM
65142020-05-19 Simon Marchi <simon.marchi@efficios.com>
6515
6516 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6517 <segments>: New.
6518 <segment_bases, segment_sizes>: Remove.
6519 * symfile.c (default_symfile_segments): Update.
6520 * elfread.c (elf_symfile_segments): Update.
6521 * remote.c (remote_target::get_offsets): Update.
6522 * solib-target.c (solib_target_relocate_section_addresses):
6523 Update.
6524
62982abd
SM
65252020-05-19 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * symfile.h (struct symfile_segment_data): Initialize fields.
6528 <~symfile_segment_data>: Add.
6529 (symfile_segment_data_up): New.
6530 (struct sym_fns) <sym_segments>: Return a
6531 symfile_segment_data_up.
6532 (default_symfile_segments): Return a symfile_segment_data_up.
6533 (free_symfile_segment_data): Remove.
6534 (get_symfile_segment_data): Return a symfile_segment_data_up.
6535 * symfile.c (default_symfile_segments): Likewise.
6536 (get_symfile_segment_data): Likewise.
6537 (free_symfile_segment_data): Remove.
6538 (symfile_find_segment_sections): Update.
6539 * elfread.c (elf_symfile_segments): Return a
6540 symfile_segment_data_up.
6541 * remote.c (remote_target::get_offsets): Update.
6542 * solib-target.c (solib_target_relocate_section_addresses):
6543 Update.
6544 * symfile-debug.c (debug_sym_segments): Return a
6545 symfile_segment_data_up.
6546
7f204339
RO
65472020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6548
e52a0f1b
RO
6549 PR build/25981
6550 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6551 Hardcode register numbers.
6552
7f204339
RO
6553 PR build/25981
6554 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6555 procfs_find_LDT_entry): Remove.
6556 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6557 procfs_find_LDT_entry): Remove.
6558 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6559 Remove.
6560
7f32a4d5
PA
65612020-05-17 Pedro Alves <palves@redhat.com>
6562 Andrew Burgess <andrew.burgess@embecosm.com>
6563 Keno Fischer <keno@juliacomputing.com>
6564
6565 PR gdb/25741
6566 * breakpoint.c (build_target_condition_list): Update comments.
6567 (build_target_command_list): Update comments and skip matching
6568 locations.
6569 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6570 a separate function. Simplify "set breakpoint auto-hw off"
6571 handling.
6572 (insert_breakpoints): Update comment.
6573 (tracepoint_locations_match): New parameter. For breakpoints,
6574 compare location types too, if the caller wants to.
6575 (handle_automatic_hardware_breakpoints): New functions.
6576 (bp_location_is_less_than): Also sort by location type and
6577 hardware breakpoint length.
6578 (update_global_location_list): Handle "set breakpoint auto-hw on"
6579 here.
6580 (update_breakpoint_locations): Ask breakpoint_locations_match to
6581 ignore location types.
6582
7d93a1e0
SM
65832020-05-16 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6586 type::name instead.
6587
d0e39ea2
SM
65882020-05-16 Simon Marchi <simon.marchi@efficios.com>
6589
6590 * gdbtypes.h (struct type) <name, set_name>: New methods.
6591 (TYPE_CODE): Use type::name. Change all call sites used to set
6592 the name to use type::set_name instead.
6593
2dab0c7b
TT
65942020-05-16 Tom Tromey <tom@tromey.com>
6595
6596 * top.c (quit_force): Update.
6597 * infrun.c (handle_no_resumed): Update.
6598 * top.h (all_uis): New function.
6599 (ALL_UIS): Remove.
6600
59f7bd8d
SM
66012020-05-16 Simon Marchi <simon.marchi@efficios.com>
6602
6603 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6604
9bf058f0
PA
66052020-05-16 Pedro Alves <palves@redhat.com>
6606
6607 * ia64-linux-nat.c
6608 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6609 Declare method.
6610 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6611
8f86ae1a
SM
66122020-05-15 Simon Marchi <simon.marchi@efficios.com>
6613
6614 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6615 (sparc64_adi_info): Likewise.
6616
d6bc0792
TT
66172020-05-15 Tom Tromey <tom@tromey.com>
6618
6619 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6620 block_objfile.
6621 (lookup_objfile_from_block): Remove.
6622 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6623 (lookup_global_symbol): Use block_objfile.
6624 * symtab.h (lookup_objfile_from_block): Don't declare.
6625 * printcmd.c (clear_dangling_display_expressions): Use
6626 block_objfile.
6627 * parse.c (operator_check_standard): Use block_objfile.
6628
8c14c3a3
TT
66292020-05-15 Tom Tromey <tom@tromey.com>
6630
6631 * language.c (language_alloc_type_symbol): Set
6632 SYMBOL_SECTION.
6633 * symtab.c (initialize_objfile_symbol): Remove.
6634 (allocate_symbol): Remove.
6635 (allocate_template_symbol): Remove.
6636 * dwarf2/read.c (fixup_go_packaging): Use "new".
6637 (new_symbol): Use "new".
6638 (read_variable): Don't call initialize_objfile_symbol. Use
6639 "new".
6640 (read_func_scope): Use "new".
6641 * xcoffread.c (process_xcoff_symbol): Don't call
6642 initialize_objfile_symbol.
6643 (SYMBOL_DUP): Remove.
6644 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6645 "new".
6646 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6647 (allocate_template_symbol): Don't declare.
6648 (struct symbol): Add copy constructor. Change defaults.
6649 * jit.c (finalize_symtab): Use "new".
6650 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6651 Use "new".
6652 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6653 (common_block_end): Use "new".
6654 * mdebugread.c (parse_symbol): Use "new".
6655 (new_symbol): Likewise.
6656
5b4a1a8d
PW
66572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6658
6659 * NEWS: Mention changes to help and apropos.
6660
57b4f16e
PW
66612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6662
6663 * command.h (enum command_class): Improve comments, document
6664 that class_alias is for user-defined aliases, give the class
6665 name for each class, remove unused class_xdb.
6666 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6667 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6668 by a precise class.
6669 * infcmd.c (_initialize_infcmd): Likewise.
6670 * reverse.c (_initialize_reverse): Likewise.
6671 * stack.c (_initialize_stack): Likewise.
6672 * symfile.c (_initialize_symfile): Likewise.
6673 * tracepoint.c (_initialize_tracepoint): Likewise.
6674
7c05caf7
PW
66752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6676
6677 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6678 when their aliased command is traversed.
6679 (help_cmd): Add fput_command_names_styled call to
6680 output command name and aliases when command has an alias.
6681
3b3aaacb
PW
66822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6683
6684 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6685 * cli/cli-decode.c (help_cmd_list): Declare as static,
6686 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6687 a command together with the command.
6688 (fput_command_name_styled, fput_command_names_styled): New functions.
6689 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6690 fput_command_name_styled.
6691 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6692 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6693
7aa1b46f
PW
66942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6695
6696 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6697 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6698 * command.h (cmd_show_list): Likewise.
6699 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6700 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6701
89bcba74
PW
67022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6703
6704 * unittests/command-def-selftests.c (traverse_command_structure):
6705 Verify all commands of a list have the same prefix command and
6706 that only the top cmdlist commands have a null prefix.
6707
3f4d92eb
PW
67082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6711 as prefix, not one of its aliases.
6712 (set_cmd_prefix): Remove.
6713 (do_add_cmd): Centralize the setting of the prefix of a command, when
6714 command is defined after its full chain of prefix commands.
6715 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6716 (add_setshow_cmd_full): Likewise.
6717 (update_prefix_field_of_prefixed_commands): New function.
6718 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6719 update_prefix_field_of_prefixed_commands.
6720 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6721 addresses of remote_set_cmdlist and remote_show_cmdlist given
6722 as argument, not the address of an argument.
6723 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6724 * gdb/remote.c (_initialize_remote): Likewise.
6725
0605465f
PW
67262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6727
6728 * cli/cli-cmds.c (alias_command): Check for an existing alias
6729 using lookup_cmd_composition, as valid_command_p is too strict
6730 and forbids aliases that are the prefix of an existing alias
6731 or command.
6732 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6733 command is properly recognised as a valid command.
6734
58e6ac70
PW
67352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6736
6737 * unittests/help-doc-selftests.c: Rename to
6738 unittests/command-def-selftests.c
6739 * unittests/command-def-selftests.c (help_doc_tests): Update some
6740 comments.
6741 (command_structure_tests, traverse_command_structure): New namespace
6742 and function.
6743 (command_structure_invariants_tests): New function.
6744 (_initialize_command_def_selftests) Renamed from
6745 _initialize_help_doc_selftests, register command_structure_invariants
6746 selftest.
6747
a7b9ceb8
PW
67482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6749
6750 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6751 an alias of 'show'.
6752
b2188a06
JB
67532020-05-15 Joel Brobecker <brobecker@adacore.com>
6754
6755 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6756 ada_is_fixed_point_type. Update all callers.
6757 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6758 all callers.
6759 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6760 Update all callers.
6761 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6762 print_fixed_point_type. Update all callers.
6763 * ada-valprint.c (ada_value_print_num): Replace call to
6764 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6765
a51951c2
KB
67662020-05-14 Kevin Buettner <kevinb@redhat.com>
6767
6768 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6769 processors.
6770 (cpu_supports_bts): Add CV_AMD case.
6771
29d6859f
LM
67722020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6773 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * infrun.c (stop_all_threads): Collect multiple wait events at
6776 each pass.
6777
78134374
SM
67782020-05-14 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6781 type::code instead.
6782
67607e24
SM
67832020-05-14 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * gdbtypes.h (struct type) <code, set_code>: New methods.
6786 (TYPE_CODE): Use type::code. Change all call sites used to set
6787 the code to use type::set_code instead.
6788
a05575d3
TBA
67892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6790 Tom de Vries <tdevries@suse.de>
6791 Pedro Alves <palves@redhat.com>
6792
6793 PR threads/25478
6794 * infrun.c (stop_all_threads): Do NOT ignore
6795 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6796 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6797 received.
6798 (handle_no_resumed): Remove code handling a live inferior with no
6799 threads.
6800 * remote.c (has_single_non_exited_thread): New.
6801 (remote_target::update_thread_list): Do not delete a thread if is
6802 the last thread of the process.
6803 * thread.c (thread_select): Call delete_exited_threads instead of
6804 prune_threads.
6805
6ad82919
TBA
68062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6807
6808 * infrun.c (stop_all_threads): Enable/disable thread events of all
6809 targets. Move a debug message denoting the end of the function
6810 into the SCOPED_EXIT block.
6811
d890404b
TBA
68122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6813
6814 * process-stratum-target.h: Include <set>.
6815 (all_non_exited_process_targets, switch_to_target_no_thread): New
6816 function declarations.
6817 * process-stratum-target.c (all_non_exited_process_targets)
6818 (switch_to_target_no_thread): New function implementations.
6819
293b3ebc
TBA
68202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6821
6822 * infrun.c (handle_inferior_event): Extract out a piece of code
6823 into...
6824 (mark_non_executing_threads): ...this new function.
6825
7ca9b62a
TBA
68262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6827
6828 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6829 use.
6830
fc75c28b
TBA
68312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6832
6833 * regcache.c (regcache_read_pc_protected): New function
6834 implementation that returns 0 if the PC cannot read via
6835 'regcache_read_pc'.
6836 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6837 instead of 'regcache_read_pc'.
6838 (keep_going_pass_signal): Ditto.
6839
a89febbd
TT
68402020-05-13 Tom Tromey <tromey@adacore.com>
6841
6842 * ada-lang.c (align_value): Remove.
6843 (ada_template_to_fixed_record_type_1): Use align_up.
6844
f7e23710
TBA
68452020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6846
6847 * async-event.c: Update the copyright year.
6848 * async-event.h: Update the copyright year.
6849
02ff80c2
SM
68502020-05-12 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * objfiles.h (is_addr_in_objfile,
6853 shared_objfile_contains_address_p): Return bool.
6854 * objfile.c (is_addr_in_objfile,
6855 shared_objfile_contains_address_p): Return bool.
6856
4fd6c7e8
TT
68572020-05-11 Tom Tromey <tromey@adacore.com>
6858
6859 * cli/cli-cmds.c (info_command): Restore.
6860 (_initialize_cli_cmds): Use add_prefix_command for "info".
6861 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6862
5eb68a39
TT
68632020-05-11 Tom Tromey <tromey@adacore.com>
6864
6865 * ada-lang.c (ada_value_primitive_field): Now public.
6866 * ada-lang.h (ada_value_primitive_field): Declare.
6867 * ada-valprint.c (print_field_values): Use
6868 ada_value_primitive_field for wrapper fields.
6869
7666722f
TV
68702020-05-11 Tom de Vries <tdevries@suse.de>
6871
6872 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6873 MODULE_DOMAIN.
6874
3ee6bb11
TV
68752020-05-11 Tom de Vries <tdevries@suse.de>
6876
6877 PR symtab/25941
6878 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6879 with length 0, if not gdb-produced.
6880 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6881
43434996
TV
68822020-05-09 Tom de Vries <tdevries@suse.de>
6883
6884 PR gdb/25955
6885 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6886 calculation.
6887
2f78cffc
TT
68882020-05-09 Tom Tromey <tom@tromey.com>
6889
6890 * top.c (server_command): Now bool.
6891 * top.h (server_command): Now bool.
6892
4f7bc5ed
TT
68932020-05-08 Tom Tromey <tromey@adacore.com>
6894
6895 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6896 already being processed.
6897
8be4b118
TT
68982020-05-08 Tom Tromey <tom@tromey.com>
6899
6900 * printcmd.c (struct display) <next>: Remove.
6901 <display>: New constructor.
6902 <exp_string>: Now a std::string.
6903 <enabled_p>: Now a bool.
6904 (display_number): Move definition earlier.
6905 (displays): Rename from display_chain. Now a std::vector.
6906 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6907 (display_command): Update.
6908 (do_one_display, disable_display)
6909 (enable_disable_display_command, do_enable_disable_display):
6910 Update.
6911 (free_display): Remove.
6912 (clear_displays): Rewrite.
6913 (delete_display): Update.
6914 (map_display_numbers): Use function_view. Remove "data"
6915 parameter. Update.
6916 (do_delete_display): Remove.
6917 (undisplay_command): Update.
6918 (do_one_display, do_displays, disable_display)
6919 (info_display_command): Update.
6920 (do_enable_disable_display): Remove.
6921 (enable_disable_display_command)
6922 (clear_dangling_display_expressions): Update.
6923
94c93c35
TT
69242020-05-08 Tom Tromey <tom@tromey.com>
6925
6926 * symtab.c (set_symbol_cache_size)
6927 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6928 (maintenance_print_symbol_cache_statistics): Update.
6929 * symmisc.c (print_symbol_bcache_statistics)
6930 (print_objfile_statistics, maintenance_print_objfiles)
6931 (maintenance_info_symtabs, maintenance_check_symtabs)
6932 (maintenance_expand_symtabs, maintenance_info_line_tables):
6933 Update.
6934 * symfile-debug.c (set_debug_symfile): Update.
6935 * source.c (forget_cached_source_info): Update.
6936 * python/python.c (gdbpy_progspaces): Update.
6937 * psymtab.c (maintenance_info_psymtabs): Update.
6938 * probe.c (parse_probes): Update.
6939 * linespec.c (iterate_over_all_matching_symtabs)
6940 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6941 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6942 * exec.c (exec_target::close): Update.
6943 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6944 * breakpoint.c (print_one_breakpoint_location)
6945 (create_longjmp_master_breakpoint)
6946 (create_std_terminate_master_breakpoint): Update.
6947 * progspace.c (program_spaces): Now a std::vector.
6948 (maybe_new_address_space): Update.
6949 (add_program_space): Remove.
6950 (program_space::program_space): Update.
6951 (remove_program_space): Update.
6952 (number_of_program_spaces): Remove.
6953 (print_program_space, update_address_spaces): Update.
6954 * progspace.h (program_spaces): Change type.
6955 (ALL_PSPACES): Remove.
6956 (number_of_program_spaces): Don't declare.
6957 (struct program_space) <next>: Remove.
6958
a1fd1ac9
TT
69592020-05-08 Tom Tromey <tom@tromey.com>
6960
6961 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6962 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6963 (enable_break): Update.
6964 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6965 (frv_fdpic_find_canonical_descriptor): Update.
6966 (frv_fetch_objfile_link_map): Update.
6967 * progspace.c (program_space::free_all_objfiles): Update.
6968 (program_space::solibs): New method.
6969 * progspace.h (struct program_space) <solibs>: New method.
6970 * solist.h (master_so_list): Don't declare.
6971 (ALL_SO_LIBS): Remove.
6972 * solib.h (so_list_head): Remove.
6973 (update_solib_list): Update comment.
6974 * solib.c (master_so_list): Remove.
6975 (solib_used, update_solib_list, solib_add)
6976 (info_sharedlibrary_command, clear_solib)
6977 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6978
38eae084
TT
69792020-05-08 Tom Tromey <tom@tromey.com>
6980
6981 * extension.c (extension_languages): Now a std::array.
6982 (ALL_EXTENSION_LANGUAGES): Remove.
6983 (get_ext_lang_defn, get_ext_lang_of_file)
6984 (eval_ext_lang_from_control_command): Update.
6985 (finish_ext_lang_initialization)
6986 (auto_load_ext_lang_scripts_for_objfile)
6987 (ext_lang_type_printers::ext_lang_type_printers)
6988 (apply_ext_lang_type_printers)
6989 (ext_lang_type_printers::~ext_lang_type_printers)
6990 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6991 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6992 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6993 (get_matching_xmethod_workers, ext_lang_colorize)
6994 (ext_lang_before_prompt): Update.
6995 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6996
596dc4ad
TT
69972020-05-08 Tom Tromey <tom@tromey.com>
6998
6999 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7000 overload.
7001 <swap_string, m_string>: Remove.
7002 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7003 Update.
7004 * stabsread.c (define_symbol, read_type): Update.
7005 * linespec.c (find_linespec_symbols): Update.
7006 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7007 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7008 * dbxread.c (read_dbx_symtab): Update.
7009 * cp-support.h (cp_canonicalize_string_full)
7010 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7011 Return unique_xmalloc_ptr.
7012 * cp-support.c (inspect_type): Update.
7013 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7014 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7015 Likewise.
7016 * c-typeprint.c (print_name_maybe_canonical): Update.
7017 * break-catch-throw.c (check_status_exception_catchpoint):
7018 Update.
7019
bf4cb9be
TV
70202020-05-08 Tom de Vries <tdevries@suse.de>
7021
7022 * infrun.c (follow_fork): Copy current_line and current_symtab to
7023 child thread.
7024
a1b68f28
SM
70252020-05-07 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * async-event.c (struct async_signal_handler, struct
7028 async_event_handler): Reformat, remove typedef.
7029
98d48915
SM
70302020-05-07 Simon Marchi <simon.marchi@efficios.com>
7031
7032 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7033 access thistype->main_type->dyn_prop_list directly.
7034
7aa91313
SM
70352020-05-07 Simon Marchi <simon.marchi@efficios.com>
7036
7037 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7038 (remove_dyn_prop): Remove. Update all users to use
7039 type::remove_dyn_prop.
7040 * gdbtypes.c (remove_dyn_prop): Rename to...
7041 (type::remove_dyn_prop): ... this.
7042
5c54719c
SM
70432020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7044
7045 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7046 (add_dyn_prop): Remove. Update all users to use
7047 type::add_dyn_prop.
7048 * gdbtypes.c (add_dyn_prop): Rename to...
7049 (type::add_dyn_prop): ... this.
7050
24e99c6c
SM
70512020-05-07 Simon Marchi <simon.marchi@efficios.com>
7052
7053 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7054 (get_dyn_prop): Remove. Update all users to use
7055 type::dyn_prop.
7056 * gdbtypes.c (get_dyn_prop): Rename to...
7057 (type::dyn_prop): ... this.
7058
0d4bf016
SM
70592020-05-06 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7062
ac4a4f1c
SM
70632020-05-06 Simon Marchi <simon.marchi@efficios.com>
7064
7065 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7066 instruction, skip it if it's there.
7067
a3bbacc1
SM
70682020-05-05 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7071
c3236f84
SM
70722020-05-04 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7075 * gdbtypes.c (recursive_dump_type): Remove use of
7076 TYPE_INCOMPLETE.
7077
3b6acaee
TT
70782020-05-03 Tom Tromey <tom@tromey.com>
7079
7080 * breakpoint.c (catch_command, tcatch_command): Remove.
7081 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7082 add_show_prefix_cmd.
7083 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7084 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7085 Remove.
7086 (add_internal_problem_command): Use add_basic_prefix_cmd,
7087 add_show_prefix_cmd.
7088 * mips-tdep.c (set_mipsfpu_command): Remove.
7089 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7090 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7091 (_initialize_index_cache): Use add_basic_prefix_cmd.
7092 * memattr.c (dummy_cmd): Remove.
7093 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7094 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7095 (_initialize_tui_win): Use add_basic_prefix_cmd,
7096 add_show_prefix_cmd.
7097 * cli/cli-logging.c (set_logging_command): Remove.
7098 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7099 add_show_prefix_cmd.
7100 (show_logging_command): Remove.
7101 * target.c (target_command): Remove.
7102 (add_target): Use add_basic_prefix_cmd.
7103
a51119cd
HD
71042020-05-02 Hannes Domani <ssbssa@yahoo.de>
7105
7106 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7107
652fc23a 71082020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7109
652fc23a
PW
7110 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7111 info_command.
7112
117539e6
KR
71132020-04-30 Kamil Rytarowski <n54@gmx.com>
7114
7115 * nbsd-nat.c (nbsd_enable_proc_events)
7116 (nbsd_nat_target::post_startup_inferior): Add.
7117 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7118 (nbsd_nat_target::update_thread_list): Rewrite.
7119 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7120 "PTRACE_LWP_CREATE".
7121 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7122
102e38eb 71232020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7124
102e38eb
PW
7125 * stack.c (_initialize_stack): Remove duplicated creation
7126 of "frame" command and "f" alias.
7127
ee9d1e5f
HD
71282020-04-30 Hannes Domani <ssbssa@yahoo.de>
7129
7130 PR gdb/18706
7131 * gdbtypes.c (check_typedef): Calculate size of array of
7132 stubbed type.
7133
627c7fb8
HD
71342020-04-30 Hannes Domani <ssbssa@yahoo.de>
7135
7136 PR gdb/15559
7137 * i386-tdep.c (i386_push_dummy_call): Call
7138 i386_thiscall_push_dummy_call.
7139 (i386_thiscall_push_dummy_call): New function.
7140 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7141 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7142 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7143
ffc2844e
SM
71442020-04-29 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * gdbarch.sh (do_read): Add shellcheck disable directive for
7147 warning SC2162.
7148
1207375d
SM
71492020-04-29 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7152 "referenced but not assigned" warning.
7153
9fdb2916
SM
71542020-04-29 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * gdbarch.sh: Remove code that sets fallbackdefault.
7157
759cea5e
SM
71582020-04-29 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * gdbarch.sh: Use shell operators && and || instead of
7161 -a and -o.
7162
cb02ab24
SM
71632020-04-29 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * gdbarch.sh: Use $(...) instead of `...`.
7166
a6fc5ffc
SM
71672020-04-29 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * gdbarch.sh: Use double quotes around variables.
7170
8d113d13
SM
71712020-04-29 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * gdbarch.sh: Use %s with printf, instead of variables in the
7174 format string.
7175
ed6acedd
TT
71762020-04-29 Tom Tromey <tromey@adacore.com>
7177
7178 PR ada/25875:
7179 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7180 type fields here.
7181 (read_enumeration_type): Call
7182 update_enumeration_type_from_children later. Update comments.
7183 (process_enumeration_scope): Don't create type fields.
7184
b68b1b58
KR
71852020-04-29 Kamil Rytarowski <n54@gmx.com>
7186
7187 * nbsd-tdep.c: Include "xml-syscall.h".
7188 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7189
f94b2e03
KR
71902020-04-29 Kamil Rytarowski <n54@gmx.com>
7191
7192 * nbsd-nat.c: Include "sys/wait.h".
7193 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7194 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7195 (nbsd_nat_target::remove_exec_catchpoint)
7196 (nbsd_nat_target::set_syscall_catchpoint): Add.
7197 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7198 (nbsd_nat_target::insert_exec_catchpoint)
7199 (nbsd_nat_target::remove_exec_catchpoint)
7200 (nbsd_nat_target::set_syscall_catchpoint): Add.
7201 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7202 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7203 `nbsd_get_syscall_number'.
7204
fc49bc72
TT
72052020-04-29 Tom Tromey <tom@tromey.com>
7206
7207 * stack.c (print_block_frame_labels): Remove.
7208
d642b692
HD
72092020-04-29 Hannes Domani <ssbssa@yahoo.de>
7210
7211 PR gdb/17320
7212 * ada-valprint.c (val_print_packed_array_elements): Move array
7213 end bracket to new line.
7214 (ada_val_print_string): Remove extra spaces before first array
7215 element.
7216 * c-valprint.c (c_value_print_array): Likewise.
7217 * m2-valprint.c (m2_print_array_contents): Likewise.
7218 (m2_value_print_inner): Likewise.
7219 * p-valprint.c (pascal_value_print_inner): Likewise.
7220 * valprint.c (generic_val_print_array): Likewise.
7221 (value_print_array_elements): Move first array element and array
7222 end bracket to new line.
7223
ea90f227
TV
72242020-04-29 Tom de Vries <tdevries@suse.de>
7225
7226 PR symtab/25889
7227 * linespec.c (find_method): Fix ix calculation.
7228
4498ef4f
KR
72292020-04-28 Kamil Rytarowski <n54@gmx.com>
7230
7231 * syscalls/update-netbsd.sh: New file.
7232 * syscalls/netbsd.xml: Regenerate.
7233 * data-directory/Makefile.in: Register `netbsd.xml' in
7234 `SYSCALLS_FILES'.
7235
a55e30b5
SM
72362020-04-28 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * syscalls/update-freebsd.sh: Add double quotes.
7239
2b2fbab8
TT
72402020-04-28 Tom Tromey <tom@tromey.com>
7241
7242 * NEWS: Update.
7243 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7244 (cmdpy_init): Allow class_tui.
7245
a65189c9
TV
72462020-04-28 Mark Williams <mark@myosotissp.com>
7247
7248 PR gdb/24480
7249 * dwarf2read.c: Add missing assingments to list_in_scope when
7250 start_symtab was already called.
7251
1b95cdb7
SM
72522020-04-28 Simon Marchi <simon.marchi@efficios.com>
7253
7254 PR gdb/25881
7255 * dwarf2/read.c (offset_map_type): Use
7256 gdb:hash_enum<sect_offset> as hash function.
7257
15cd93d0
TV
72582020-04-28 Tom de Vries <tdevries@suse.de>
7259
7260 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7261 with DW_AT_signature.
7262
1eb39914
SM
72632020-04-27 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * configure.ac: Remove check for fs_base/gs_base in
7266 user_regs_struct.
7267 * configure: Re-generate.
7268 * config.in: Re-generate.
7269 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7270 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7271 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7272
991a3e2e
LM
72732020-04-27 Luis Machado <luis.machado@linaro.org>
7274
7275 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7276 problematic inline frame unwinding situation.
7277 * frame.c (frame_id_computed_p): New function.
7278 * frame.h (frame_id_computed_p): New prototype.
7279
361ba0e8
TT
72802020-04-26 Tom Tromey <tom@tromey.com>
7281
7282 * command.h (enum command_class) <class_pseudo>: Remove.
7283
bc3609fd
PW
72842020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7285
7286 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7287 and whitespace.
7288
b9771db7
KR
72892020-04-25 Kamil Rytarowski <n54@gmx.com>
7290
ec16513e
SM
7291 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7292 `PT_GET_PROCESS_STATE' block.
b9771db7 7293
7151c1af
TT
72942020-04-24 Tom Tromey <tom@tromey.com>
7295
7296 * symtab.h (symbol_get_demangled_name): Don't declare.
7297 * symtab.c (symbol_get_demangled_name): Remove.
7298 (general_symbol_info::natural_name)
7299 (general_symbol_info::demangled_name): Update.
7300
906bb4c5
TT
73012020-04-24 Tom Tromey <tom@tromey.com>
7302
7303 PR rust/25025:
7304 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7305
bcfe6157
TT
73062020-04-24 Tom Tromey <tom@tromey.com>
7307
7308 PR symtab/12707:
7309 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7310 exists.
7311 (new_symbol): Likewise.
7312 * compile/compile-object-load.c (get_out_value_type): Use
7313 symbol_matches_search_name.
7314
f049a313
TT
73152020-04-24 Tom Tromey <tom@tromey.com>
7316
7317 * dwarf2/read.c (add_partial_symbol): Do not call
7318 compute_and_set_names.
7319
76e288d1
TT
73202020-04-24 Tom Tromey <tom@tromey.com>
7321
7322 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7323 overload.
7324
2467f4f6
TT
73252020-04-24 Tom Tromey <tom@tromey.com>
7326
7327 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7328 (add_psymbol_to_list): New overload. Make old overload call new
7329 one.
7330 * psympriv.h (add_psymbol_to_list): New overload.
7331
e61108c9
TT
73322020-04-24 Tom Tromey <tom@tromey.com>
7333
7334 * dwarf2/read.c (partial_die_info::read) <case
7335 DW_AT_linkage_name>: Use value_as_string.
7336 (dwarf2_string_attr): Use value_as_string.
7337 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7338 method.
7339 * dwarf2/attribute.c (attribute::value_as_string): New method.
7340
8c87a452
TT
73412020-04-24 Tom Tromey <tom@tromey.com>
7342
7343 * symtab.c (general_symbol_info::natural_name)
7344 (general_symbol_info::demangled_name): Check for language_rust.
7345
787de330
TT
73462020-04-24 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7349 (dwarf2_physname): ... from here.
7350 (partial_die_info::read): Add Rust "{" hack.
7351
ff985671
TT
73522020-04-24 Tom Tromey <tom@tromey.com>
7353
7354 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7355 method.
7356 (symbol_set_demangled_name): Don't declare.
7357 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7358 symbol_set_demangled_name.
7359 (general_symbol_info::set_language)
7360 (general_symbol_info::compute_and_set_names): Update.
7361 * minsyms.c (minimal_symbol_reader::install): Update.
7362 * dwarf2/read.c (new_symbol): Update.
7363
1acda803
TT
73642020-04-24 Tom Tromey <tromey@adacore.com>
7365
7366 PR python/23662:
7367 * python/py-type.c (convert_field): Handle
7368 FIELD_LOC_KIND_DWARF_BLOCK.
7369 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7370 (typy_get_dynamic): Nw function.
7371 (type_object_getset): Add "dynamic".
7372 * NEWS: Add entry.
7373
d656f129
TT
73742020-04-24 Tom Tromey <tromey@adacore.com>
7375
7376 * ada-typeprint.c (print_choices, print_variant_part)
7377 (print_record_field_types_dynamic): New functions.
7378 (print_record_field_types): Use print_record_field_types_dynamic.
7379
7d79de9a
TT
73802020-04-24 Tom Tromey <tromey@adacore.com>
7381
7382 * dwarf2/read.c (handle_data_member_location): New overload.
7383 (dwarf2_add_field): Use it.
7384 (decode_locdesc): Add "computed" parameter. Update comment.
7385 * gdbtypes.c (is_dynamic_type_internal): Also look for
7386 FIELD_LOC_KIND_DWARF_BLOCK.
7387 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7388 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7389 virtual base classes.
7390 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7391 FIELD_LOC_KIND_DWARF_BLOCK.
7392
f8e89861
TT
73932020-04-24 Tom Tromey <tromey@adacore.com>
7394
7395 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7396 * gdbtypes.c (is_dynamic_type_internal): Check
7397 TYPE_HAS_DYNAMIC_LENGTH.
7398 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7399 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7400 New macros.
7401 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7402 constant.
7403
9c6a1327
TT
74042020-04-24 Tom Tromey <tromey@adacore.com>
7405
7406 * dwarf2/read.c (struct variant_field): Rewrite.
7407 (struct variant_part_builder): New.
7408 (struct nextfield): Remove "variant" field. Add "offset".
7409 (struct field_info): Add "current_variant_part" and
7410 "variant_parts".
7411 (alloc_discriminant_info): Remove.
7412 (alloc_rust_variant): New function.
7413 (quirk_rust_enum): Update.
7414 (dwarf2_add_field): Set "offset" member. Don't handle
7415 DW_TAG_variant_part.
7416 (offset_map_type): New typedef.
7417 (convert_variant_range, create_one_variant)
7418 (create_one_variant_part, create_variant_parts)
7419 (add_variant_property): New functions.
7420 (dwarf2_attach_fields_to_type): Call add_variant_property.
7421 (read_structure_type): Don't handle DW_TAG_variant_part.
7422 (handle_variant_part, handle_variant): New functions.
7423 (handle_struct_member_die): Use them.
7424 (process_structure_scope): Don't handle variant parts.
7425 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7426 (struct discriminant_info): Remove.
7427 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7428 (struct main_type) <flag_discriminated_union>: Remove.
7429 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7430 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7431 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7432 Update.
7433 * valops.c (value_union_variant): Remove.
7434 * value.h (value_union_variant): Don't declare.
7435
b249d2c2
TT
74362020-04-24 Tom Tromey <tromey@adacore.com>
7437
7438 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7439 (ada_value_primitive_packed_val): Update.
7440 * ada-valprint.c (ada_value_print_1): Update.
7441 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7442 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7443 just an address. Use evaluate_for_locexpr_baton.
7444 (dwarf2_evaluate_property): Update.
7445 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7446 array_view.
7447 * findvar.c (default_read_var_value): Update.
7448 * gdbtypes.c (compute_variant_fields_inner)
7449 (resolve_dynamic_type_internal): Update.
7450 (resolve_dynamic_type): Change type of valaddr parameter.
7451 * gdbtypes.h (resolve_dynamic_type): Update.
7452 * valarith.c (value_subscripted_rvalue): Update.
7453 * value.c (value_from_contents_and_address): Update.
7454
61122aa9
TT
74552020-04-24 Tom Tromey <tromey@adacore.com>
7456
7457 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7458 "push_initial_value" parameter.
7459 (dwarf2_evaluate_property): Likewise.
7460 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7461
ef83a141
TT
74622020-04-24 Tom Tromey <tromey@adacore.com>
7463
7464 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7465 (variant::matches, compute_variant_fields_recurse)
7466 (compute_variant_fields_inner, compute_variant_fields): New
7467 functions.
7468 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7469 Use resolved_type after type is made.
7470 (operator==): Add new cases.
7471 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7472 (struct discriminant_range, struct variant, struct variant_part):
7473 New.
7474 (union dynamic_prop_data) <variant_parts, original_type>: New
7475 members.
7476 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7477 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7478 constants.
7479 * value.c (unpack_bits_as_long): Now public.
7480 * value.h (unpack_bits_as_long): Declare.
7481
675127ec
TT
74822020-04-24 Tom Tromey <tromey@adacore.com>
7483
7484 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7485 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7486
9852ceef
HD
74872020-04-24 Hannes Domani <ssbssa@yahoo.de>
7488
7489 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7490
7632c6ce
KR
74912020-04-24 Kamil Rytarowski <n54@gmx.com>
7492
7493 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7494 (remove_fork_catchpoint, post_startup_inferior)
7495 (post_attach): Move...
7496 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7497 (remove_fork_catchpoint, post_startup_inferior)
7498 (post_attach): ...here.
7499 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7500 (remove_fork_catchpoint, post_startup_inferior)
7501 (post_attach): Move...
7502 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7503 (remove_fork_catchpoint, post_startup_inferior)
7504 (post_attach): ...here.
7505
7be2bb4f
TT
75062020-04-24 Tom Tromey <tromey@adacore.com>
7507
7508 * nat/windows-nat.h (struct windows_thread_info)
7509 <pc_adjusted>: New member.
7510 * windows-nat.c (windows_fetch_one_register): Check
7511 pc_adjusted.
7512 (windows_nat_target::get_windows_debug_event)
7513 (windows_nat_target::wait): Set pc_adjusted.
7514
f80cb3b4
TV
75152020-04-24 Tom de Vries <tdevries@suse.de>
7516
7517 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7518 Run gdb-add-index inside temp dir.
7519
29514b87
TT
75202020-04-23 Tom Tromey <tromey@adacore.com>
7521
7522 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7523 in loop.
7524
5939967b
LM
75252020-04-23 Luis Machado <luis.machado@linaro.org>
7526
7527 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7528 get_frame_register instead of gdbarch_unwind_pc.
7529
70bc38f5
TV
75302020-04-23 Tom de Vries <tdevries@suse.de>
7531
7532 * symtab.c (lookup_global_symbol): Prefer def over decl.
7533
de82891c
TV
75342020-04-23 Tom de Vries <tdevries@suse.de>
7535
7536 PR symtab/25807
7537 * block.c (best_symbol, better_symbol): Promote to external.
7538 * block.h (best_symbol, better_symbol): Declare.
7539 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7540 decl.
7541
ecc6c606
TT
75422020-04-23 Tom Tromey <tromey@adacore.com>
7543
7544 PR ada/25837:
7545 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7546 "const char *", not a "const std::string &".
7547 <name_and_matcher::operator==>: Update.
7548 * unittests/lookup_name_info-selftests.c: Change type of
7549 "result".
7550
740480b8
TT
75512020-04-23 Tom Tromey <tom@tromey.com>
7552
7553 * inferior.h (iterate_over_inferiors): Don't declare.
7554 * inferior.c (iterate_over_inferiors): Remove.
7555 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7556 Remove.
7557 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7558 use iterate_over_inferiors.
7559 (darwin_resume_inferior_it)
7560 (struct resume_inferior_threads_param)
7561 (darwin_resume_inferior_threads_it): Remove.
7562 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7563
ae3ab1f0
TV
75642020-04-23 Tom de Vries <tdevries@suse.de>
7565
7566 * blockframe.c (find_pc_partial_function): Use
7567 find_pc_sect_compunit_symtab rather than
7568 objfile->sf->qf->find_pc_sect_compunit_symtab.
7569
317d2668
TV
75702020-04-22 Tom de Vries <tdevries@suse.de>
7571
7572 PR symtab/25764
7573 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7574 in psymtabs.
7575
eea9e357
TV
75762020-04-22 Tom de Vries <tdevries@suse.de>
7577
7578 PR symtab/25801
7579 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7580 symtabs.
7581
3d5afab3
TV
75822020-04-22 Tom de Vries <tdevries@suse.de>
7583
7584 PR symtab/25700
7585 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7586 CU if already created.
7587
d43b7a2d
TBA
75882020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7589
7590 * infrun.c (displaced_step_fixup): Switch to the event_thread
7591 before calling displaced_step_restore, not after.
7592
d89edf9b
MM
75932020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7594
7595 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7596 its inferior is not recorded by us.
7597 (record_btrace_target_open): Replace call to
7598 all_non_exited_threads () with call to current_inferior
7599 ()->non_exited_threads ().
7600 (record_btrace_target::stop_recording): Likewise.
7601 (record_btrace_target::close): Likewise.
7602 (record_btrace_target::wait): Likewise.
7603 (record_btrace_target::record_stop_replaying): Likewise.
7604
5897fd49
MM
76052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7606
7607 * btrace.c (btrace_enable): Throw an error on double enables and
7608 when enabling recording fails.
7609 (btrace_disable): Throw an error if the thread is not recorded.
7610
1a476b6d
MM
76112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7612
7613 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7614 request if we do not have a thread_info.
7615
4778a5f8
TV
76162020-04-21 Tom de Vries <tdevries@suse.de>
7617
7618 PR gdb/25471
7619 * thread.c
7620 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7621 exception in get_frame_id.
7622
0fa7617d
TT
76232020-04-20 Tom Tromey <tromey@adacore.com>
7624
7625 * python/python.c (struct gdbpy_event): Mark move constructor as
7626 noexcept.
7627 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7628 constructor as noexcept.
7629 * completer.h (struct completion_result): Mark move constructor as
7630 noexcept.
7631 * completer.c (completion_result::completion_result): Use
7632 initialization style. Don't call reset_match_list.
7633
ad23bda0
MS
76342020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7635
7636 * MAINTAINERS (Write After Approval): Add myself.
7637
45e1f031
TT
76382020-04-18 Tom Tromey <tom@tromey.com>
7639
7640 * windows-tdep.c (init_w32_command_list)
7641 (w32_prefix_command_valid): Restore.
7642 (_initialize_windows_tdep): Call init_w32_command_list.
7643
08feed99
TT
76442020-04-18 Tom Tromey <tom@tromey.com>
7645
7646 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7647 * value.c (value_fn_field): Update.
7648 * valops.c (find_function_in_inferior)
7649 (value_allocate_space_in_inferior): Update.
7650 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7651 Update.
7652 * tui/tui-source.c (tui_source_window::set_contents): Update.
7653 * symtab.c (lookup_global_or_static_symbol)
7654 (find_function_start_sal_1, skip_prologue_sal)
7655 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7656 * symmisc.c (dump_msymbols, dump_symtab_1)
7657 (maintenance_print_one_line_table): Update.
7658 * symfile.c (init_entry_point_info, section_is_mapped)
7659 (list_overlays_command, simple_read_overlay_table)
7660 (simple_overlay_update_1): Update.
7661 * stap-probe.c (handle_stap_probe): Update.
7662 * stabsread.c (dbx_init_float_type, define_symbol)
7663 (read_one_struct_field, read_enum_type, read_range_type): Update.
7664 * source.c (info_line_command): Update.
7665 * python/python.c (gdbpy_source_objfile_script)
7666 (gdbpy_execute_objfile_script): Update.
7667 * python/py-type.c (save_objfile_types): Update.
7668 * python/py-objfile.c (py_free_objfile): Update.
7669 * python/py-inferior.c (python_new_objfile): Update.
7670 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7671 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7672 (maintenance_check_psymtabs): Update.
7673 * printcmd.c (info_address_command): Update.
7674 * objfiles.h (struct objfile) <arch>: New method, from
7675 get_objfile_arch.
7676 (get_objfile_arch): Don't declare.
7677 * objfiles.c (get_objfile_arch): Remove.
7678 (filter_overlapping_sections): Update.
7679 * minsyms.c (msymbol_is_function): Update.
7680 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7681 (output_nondebug_symbol): Update.
7682 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7683 (mdebug_expand_psymtab): Update.
7684 * machoread.c (macho_add_oso_symfile): Update.
7685 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7686 Update.
7687 * linux-fork.c (checkpoint_command): Update.
7688 * linespec.c (convert_linespec_to_sals): Update.
7689 * jit.c (finalize_symtab): Update.
7690 * infrun.c (insert_exception_resume_from_probe): Update.
7691 * ia64-tdep.c (ia64_find_unwind_table): Update.
7692 * hppa-tdep.c (internalize_unwinds): Update.
7693 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7694 Update.
7695 * gcore.c (call_target_sbrk): Update.
7696 * elfread.c (record_minimal_symbol, elf_symtab_read)
7697 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7698 (elf_gnu_ifunc_resolve_by_got): Update.
7699 * dwarf2/read.c (create_addrmap_from_index)
7700 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7701 (read_debug_names_from_section)
7702 (process_psymtab_comp_unit_reader, add_partial_symbol)
7703 (add_partial_subprogram, process_full_comp_unit)
7704 (read_file_scope, read_func_scope, read_lexical_block_scope)
7705 (read_call_site_scope, dwarf2_ranges_read)
7706 (dwarf2_record_block_ranges, dwarf2_add_field)
7707 (mark_common_block_symbol_computed, read_tag_pointer_type)
7708 (read_tag_string_type, dwarf2_init_float_type)
7709 (dwarf2_init_complex_target_type, read_base_type)
7710 (partial_die_info::read, partial_die_info::read)
7711 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7712 (dwarf2_fetch_die_loc_sect_off): Update.
7713 * dwarf2/loc.c (dwarf2_find_location_expression)
7714 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7715 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7716 (dwarf2_loc_desc_get_symbol_read_needs)
7717 (locexpr_describe_location_piece, locexpr_describe_location_1)
7718 (loclist_describe_location): Update.
7719 * dwarf2/index-write.c (write_debug_names): Update.
7720 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7721 * dtrace-probe.c (dtrace_process_dof): Update.
7722 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7723 (process_one_symbol): Update.
7724 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7725 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7726 (coff_read_enum_type): Update.
7727 * cli/cli-cmds.c (edit_command, list_command): Update.
7728 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7729 * breakpoint.c (create_overlay_event_breakpoint)
7730 (create_longjmp_master_breakpoint)
7731 (create_std_terminate_master_breakpoint)
7732 (create_exception_master_breakpoint, get_sal_arch): Update.
7733 * block.c (block_gdbarch): Update.
7734 * annotate.c (annotate_source_line): Update.
7735
0743fc83
TT
77362020-04-17 Tom Tromey <tromey@adacore.com>
7737
7738 * auto-load.c (show_auto_load_cmd): Remove.
7739 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7740 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7741 (maintenance_print_arc_command): Remove.
7742 * tui/tui-win.c (tui_command): Remove.
7743 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7744 * tui/tui-layout.c (tui_layout_command): Remove.
7745 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7746 * python/python.c (user_set_python, user_show_python): Remove.
7747 (_initialize_python): Use add_basic_prefix_cmd,
7748 add_show_prefix_cmd.
7749 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7750 (install_gdb_commands): Use add_basic_prefix_cmd,
7751 add_show_prefix_cmd.
7752 (info_guile_command): Remove.
7753 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7754 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7755 add_show_prefix_cmd.
7756 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7757 Remove do_set and do_show parameters.
7758 * cli/cli-style.c (set_style, show_style): Remove.
7759 (_initialize_cli_style): Use add_basic_prefix_cmd,
7760 add_show_prefix_cmd.
7761 (cli_style_option::add_setshow_commands): Remove do_set and
7762 do_show parameters.
7763 (cli_style_option::add_setshow_commands): Use
7764 add_basic_prefix_cmd, add_show_prefix_cmd.
7765 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7766 (set_style_name): Remove.
7767 * cli/cli-dump.c (dump_command, append_command): Remove.
7768 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7769 (tekhex_dump_command, binary_dump_command)
7770 (binary_append_command): Remove.
7771 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7772 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7773 (init_w32_command_list): Remove; move into ...
7774 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7775 * valprint.c (set_print, show_print, set_print_raw)
7776 (show_print_raw): Remove.
7777 (_initialize_valprint): Use add_basic_prefix_cmd,
7778 add_show_prefix_cmd.
7779 * typeprint.c (set_print_type, show_print_type): Remove.
7780 (_initialize_typeprint): Use add_basic_prefix_cmd,
7781 add_show_prefix_cmd.
7782 * record.c (set_record_command, show_record_command): Remove.
7783 (_initialize_record): Use add_basic_prefix_cmd,
7784 add_show_prefix_cmd.
7785 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7786 add_show_prefix_cmd.
7787 (info_command, show_command, set_debug, show_debug): Remove.
7788 * top.h (set_history, show_history): Don't declare.
7789 * top.c (set_history, show_history): Remove.
7790 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7791 (unset_tdesc_cmd): Remove.
7792 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7793 add_show_prefix_cmd.
7794 * symtab.c (info_module_command): Remove.
7795 (_initialize_symtab): Use add_basic_prefix_cmd.
7796 * symfile.c (overlay_command): Remove.
7797 (_initialize_symfile): Use add_basic_prefix_cmd.
7798 * sparc64-tdep.c (info_adi_command): Remove.
7799 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7800 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7801 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7802 add_show_prefix_cmd.
7803 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7804 (_initialize_serial): Use add_basic_prefix_cmd,
7805 add_show_prefix_cmd.
7806 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7807 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7808 add_show_prefix_cmd.
7809 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7810 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7811 add_show_prefix_cmd.
7812 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7813 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7814 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7815 add_show_prefix_cmd.
7816 * remote.c (remote_command, set_remote_cmd): Remove.
7817 (_initialize_remote): Use add_basic_prefix_cmd.
7818 * record-full.c (set_record_full_command)
7819 (show_record_full_command): Remove.
7820 (_initialize_record_full): Use add_basic_prefix_cmd,
7821 add_show_prefix_cmd.
7822 * record-btrace.c (cmd_set_record_btrace)
7823 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7824 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7825 (cmd_show_record_btrace_pt): Remove.
7826 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7827 add_show_prefix_cmd.
7828 * ravenscar-thread.c (set_ravenscar_command)
7829 (show_ravenscar_command): Remove.
7830 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7831 add_show_prefix_cmd.
7832 * mips-tdep.c (show_mips_command, set_mips_command)
7833 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7834 add_show_prefix_cmd.
7835 * maint.c (maintenance_command, maintenance_info_command)
7836 (maintenance_check_command, maintenance_print_command)
7837 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7838 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7839 add_show_prefix_cmd.
7840 (show_per_command_cmd): Remove.
7841 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7842 Remove.
7843 (maintenance_show_test_settings_cmd): Remove.
7844 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7845 add_show_prefix_cmd.
7846 * maint-test-options.c (maintenance_test_options_command):
7847 Remove.
7848 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7849 * macrocmd.c (macro_command): Remove
7850 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7851 * language.c (set_check, show_check): Remove.
7852 (_initialize_language): Use add_basic_prefix_cmd,
7853 add_show_prefix_cmd.
7854 * infcmd.c (unset_command): Remove.
7855 (_initialize_infcmd): Use add_basic_prefix_cmd.
7856 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7857 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 * go32-nat.c (go32_info_dos_command): Remove.
7860 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7861 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7862 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7863 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7864 (_initialize_frame): Use add_basic_prefix_cmd,
7865 add_show_prefix_cmd.
7866 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7867 (_initialize_dcache): Use add_basic_prefix_cmd,
7868 add_show_prefix_cmd.
7869 * cp-support.c (maint_cplus_command): Remove.
7870 (_initialize_cp_support): Use add_basic_prefix_cmd.
7871 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7872 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7873 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7874 add_basic_prefix_cmd, add_show_prefix_cmd.
7875 * breakpoint.c (save_command): Remove.
7876 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7877 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7878 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7879 add_show_prefix_cmd.
7880 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7881 (set_ada_command, show_ada_command): Remove.
7882 (_initialize_ada_language): Use add_basic_prefix_cmd,
7883 add_show_prefix_cmd.
7884 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7885
3557f442
KR
78862020-04-16 Kamil Rytarowski <n54@gmx.com>
7887
7888 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7889 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7890
16197208
SM
78912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7892
7893 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7894 warning messages.
7895
00ac85d3
SM
78962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7897
7898 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7899 import table is not at beginning of .idata section.
7900
381ce63f
PA
79012020-04-16 Pedro Alves <palves@redhat.com>
7902
7903 * inferior.c (delete_inferior): Use delete operator directly
7904 instead of delete_program_space.
7905 * progspace.c (add_program_space): New, factored out from
7906 program_space::program_space.
7907 (remove_program_space): New, factored out from
7908 delete_program_space.
7909 (program_space::program_space): Remove intro comment. Rewrite.
7910 (program_space::~program_space): Remove intro comment. Call
7911 remove_program_space.
7912 (delete_program_space): Delete.
7913 * progspace.h (program_space::program_space): Make explicit. Move
7914 intro comment here, adjusted.
7915 (program_space::~program_space): Move intro comment here,
7916 adjusted.
7917 (delete_program_space): Remove.
7918
a010605f
TT
79192020-04-16 Tom Tromey <tromey@adacore.com>
7920
7921 * windows-nat.c (windows_nat::handle_access_violation): New
7922 function.
7923 * nat/windows-nat.h (handle_access_violation): Declare.
7924 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7925 windows-nat.c. Call handle_access_violation.
7926
efba5c23
TV
79272020-04-16 Tom de Vries <tdevries@suse.de>
7928
7929 PR symtab/25791
7930 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7931 CUs without psymtab.
7932
97ed802d
KB
79332020-04-16 Kevin Buettner <kevinb@redhat.com>
7934
7935 * python/python.c (do_start_initialization): Don't call
7936 PyEval_InitThreads for Python 3.9 and beyond.
7937
c7d64809
KR
79382020-04-15 Kamil Rytarowski <n54@gmx.com>
7939
7940 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7941 thread functions.
7942 (obsd_nat_target::wait): Likewise.
7943
ce127a96
TT
79442020-04-15 Tom Tromey <tromey@adacore.com>
7945
7946 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7947 (DEBUG_EXCEPT): Use debug_printf.
7948
99f1bc6a
AB
79492020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * completer.c (class completion_tracker::completion_hash_entry)
7952 <hash_name>: New member function.
7953 (completion_tracker::discard_completions): New callback to hash a
7954 completion_hash_entry, pass this to htab_create_alloc.
7955
a0e9b532
JT
79562016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7957
7958 * windows-nat.c (windows_make_so): Warn rather than stopping with
7959 an error if realpath() fails.
7960
06ca5dd4
KR
79612020-04-14 Kamil Rytarowski <n54@gmx.com>
7962
7963 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7964 (nbsd_nat_target::info_proc): Add do_status.
7965
194d088f
TV
79662020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7967 Tom de Vries <tdevries@suse.de>
7968
7969 PR symtab/25718
7970 * psympriv.h (struct partial_symtab::read_symtab)
7971 (struct partial_symtab::expand_psymtab)
7972 (struct partial_symtab::read_dependencies): Update comments.
7973 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7974 read_symtab for includer.
7975 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7976 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7977 (struct dwarf2_include_psymtab::m_readin): Remove.
7978 (struct dwarf2_include_psymtab::includer): New member function.
7979 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7980
c1a66c06
TV
79812020-04-14 Tom de Vries <tdevries@suse.de>
7982
7983 PR symtab/25720
7984 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7985 with NULL symbol_matcher and lookup_name.
7986 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7987 and lookup_name.
7988 * dwarf2/read.c (dw2_expand_symtabs_matching)
7989 (dw2_debug_names_expand_symtabs_matching): Same.
7990 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7991 Make lookup_name a pointer. Update comment.
7992 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7993 lookup_name being a pointer.
7994 * symfile.c (expand_symtabs_matching): Same.
7995 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7996 * linespec.c (iterate_over_all_matching_symtabs): Same.
7997
400b5eca
TT
79982020-04-13 Tom Tromey <tom@tromey.com>
7999
8000 * run-on-main-thread.c: Update include.
8001 * unittests/main-thread-selftests.c: Update include.
8002 * tui/tui-win.c: Update include.
8003 * tui/tui-io.c: Update include.
8004 * tui/tui-interp.c: Update include.
8005 * tui/tui-hooks.c: Update include.
8006 * top.h: Update include.
8007 * top.c: Update include.
8008 * ser-base.c: Update include.
8009 * remote.c: Update include.
8010 * remote-notif.c: Update include.
8011 * remote-fileio.c: Update include.
8012 * record-full.c: Update include.
8013 * record-btrace.c: Update include.
8014 * python/python.c: Update include.
8015 * posix-hdep.c: Update include.
8016 * mingw-hdep.c: Update include.
8017 * mi/mi-main.c: Update include.
8018 * mi/mi-interp.c: Update include.
8019 * main.c: Update include.
8020 * linux-nat.c: Update include.
8021 * interps.c: Update include.
8022 * infrun.c: Update include.
8023 * inf-loop.c: Update include.
8024 * event-top.c: Update include.
8025 * event-loop.c: Move to ../gdbsupport/.
8026 * event-loop.h: Move to ../gdbsupport/.
8027 * async-event.h: Update include.
8028 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8029
93b54c8e
TT
80302020-04-13 Tom Tromey <tom@tromey.com>
8031
8032 * tui/tui-win.c: Include async-event.h.
8033 * remote.c: Include async-event.h.
8034 * remote-notif.c: Include async-event.h.
8035 * record-full.c: Include async-event.h.
8036 * record-btrace.c: Include async-event.h.
8037 * infrun.c: Include async-event.h.
8038 * event-top.c: Include async-event.h.
8039 * event-loop.h: Move some declarations to async-event.h.
8040 * event-loop.c: Don't include ser-event.h or top.h. Move some
8041 code to async-event.c.
8042 * async-event.h: New file.
8043 * async-event.c: New file.
8044 * Makefile.in (COMMON_SFILES): Add async-event.c.
8045 (HFILES_NO_SRCDIR): Add async-event.h.
8046
c1cd3163
TT
80472020-04-13 Tom Tromey <tom@tromey.com>
8048
8049 * utils.c (flush_streams): New function.
8050 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8051
29f2bf4f
TT
80522020-04-13 Tom Tromey <tom@tromey.com>
8053
8054 * event-loop.c (handle_file_event): Use warning, not
8055 printf_unfiltered.
8056
98029d02
TT
80572020-04-13 Tom Tromey <tom@tromey.com>
8058
8059 * event-loop.c: Include <chrono>.
8060
06cc9596
TT
80612020-04-13 Tom Tromey <tom@tromey.com>
8062
8063 * gdb_select.h: Move to ../gdbsupport/.
8064 * event-loop.c: Update include path.
8065 * top.c: Update include path.
8066 * ser-base.c: Update include path.
8067 * ui-file.c: Update include path.
8068 * ser-tcp.c: Update include path.
8069 * guile/scm-ports.c: Update include path.
8070 * posix-hdep.c: Update include path.
8071 * ser-unix.c: Update include path.
8072 * gdb_usleep.c: Update include path.
8073 * mingw-hdep.c: Update include path.
8074 * inflow.c: Update include path.
8075 * infrun.c: Update include path.
8076 * event-top.c: Update include path.
8077
8ae8e197
TT
80782020-04-13 Tom Tromey <tom@tromey.com>
8079
8080 * configure: Rebuild.
8081 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8082
58cf28e8
TT
80832020-04-13 Tom Tromey <tom@tromey.com>
8084
8085 * event-loop.h (start_event_loop): Don't declare.
8086 * event-loop.c (start_event_loop): Move...
8087 * main.c (start_event_loop): ...here. Now static.
8088
b7f999ae
SDJ
80892020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8090
8091 * MAINTAINERS: Update my email address.
8092
1085dfd4
KR
80932020-04-12 Kamil Rytarowski <n54@gmx.com>
8094
8095 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8096 IP_ALL.
8097
49d1d1f5
KR
80982020-04-12 Kamil Rytarowski <n54@gmx.com>
8099
8100 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8101 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8102
b4848d2a
KR
81032020-04-12 Kamil Rytarowski <n54@gmx.com>
8104
8105 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8106 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8107
51c133d5
KR
81082020-04-12 Kamil Rytarowski <n54@gmx.com>
8109
8110 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8111
54b8cbd0
KR
81122020-04-11 Kamil Rytarowski <n54@gmx.com>
8113
8114 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8115 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8116 (nbsd_nat_target::info_proc): New functions.
8117 * nbsd-nat.c (kinfo_get_vmmap): New function.
8118 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8119 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8120 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8121 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8122 functions.
8123 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8124 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8125 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8126 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8127 (KINFO_VME_FLAG_GROWS_DOWN): New.
8128
cf83625d
AS
81292020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8130
8131 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8132 bit shift.
8133
0c4311ab
TT
81342020-04-10 Tom Tromey <tromey@adacore.com>
8135
8136 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8137
3e65b3e9
TT
81382020-04-10 Tom Tromey <tromey@adacore.com>
8139
8140 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8141 separate debug files.
8142
13302e95
HD
81432020-04-10 Hannes Domani <ssbssa@yahoo.de>
8144
8145 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8146 Move to...
8147 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8148 ... here.
8149 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8150 Check for STATUS_WX86_BREAKPOINT.
8151 (windows_nat_target::wait): Same.
8152
bdfc1e8a
TV
81532020-04-10 Tom de Vries <tdevries@suse.de>
8154
8155 PR cli/25808
8156 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8157
f4460aec
SM
81582020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8159
8160 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8161 (Write After Approval): Remove Tom de Vries.
8162
a25198bb
BE
81632020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8164
8165 revert partially:
8166 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8167
aac66a4c
SM
8168 * buildsym.c (record_line): Fix undefined behavior and preserve
8169 lines at eof.
a25198bb 8170
206c98a6
KR
81712020-04-09 Kamil Rytarowski <n54@gmx.com>
8172
8173 * auxv.h (svr4_auxv_parse): New.
8174 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8175 and generic_auxv_parse.
8176 (svr4_auxv_parse): Add.
8177 * obsd-tdep.c: Include "auxv.h".
8178 (obsd_auxv_parse): Remove.
8179 (obsd_init_abi): Remove comment.
8180 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8181 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8182 * nbsd-tdep.c: Include "auxv.h".
8183 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8184
71fbdbaf
TT
81852020-04-08 Tom Tromey <tromey@adacore.com>
8186
8187 * nat/windows-nat.h (last_wait_event): Don't declare.
8188 (wait_for_debug_event): Update comment.
8189 * nat/windows-nat.c (last_wait_event): Now static.
8190
2c1d95e8
TT
81912020-04-08 Tom Tromey <tromey@adacore.com>
8192
8193 * windows-nat.c (wait_for_debug_event): Move to
8194 nat/windows-nat.c.
8195 * nat/windows-nat.h (wait_for_debug_event): Declare.
8196 * nat/windows-nat.c (wait_for_debug_event): Move from
8197 windows-nat.c. No longer static.
8198
d2977bc4
TT
81992020-04-08 Tom Tromey <tromey@adacore.com>
8200
8201 * windows-nat.c (get_windows_debug_event): Use
8202 fetch_pending_stop.
8203 * nat/windows-nat.h (fetch_pending_stop): Declare.
8204 * nat/windows-nat.c (fetch_pending_stop): New function.
8205
e758e19c
TT
82062020-04-08 Tom Tromey <tromey@adacore.com>
8207
8208 * windows-nat.c (windows_continue): Use matching_pending_stop and
8209 continue_last_debug_event.
8210 * nat/windows-nat.h (matching_pending_stop)
8211 (continue_last_debug_event): Declare.
8212 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8213 (matching_pending_stop, continue_last_debug_event): New
8214 functions.
8215
8d30e395
TT
82162020-04-08 Tom Tromey <tromey@adacore.com>
8217
8218 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8219 (handle_exception_result): Move to nat/windows-nat.h.
8220 (DEBUG_EXCEPTION_SIMPLE): Remove.
8221 (windows_nat::handle_ms_vc_exception): New function.
8222 (handle_exception): Move to nat/windows-nat.c.
8223 (get_windows_debug_event): Update.
8224 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8225 nat/windows-nat.c.
8226 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8227 (handle_exception_result): Move from windows-nat.c.
8228 (handle_exception): Declare.
8229 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8230 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8231 windows-nat.c.
8232
29de418d
TT
82332020-04-08 Tom Tromey <tromey@adacore.com>
8234
8235 * windows-nat.c (exception_count, event_count): Remove.
8236 (handle_exception, get_windows_debug_event)
8237 (do_initial_windows_stuff): Update.
8238
a816ba18
TT
82392020-04-08 Tom Tromey <tromey@adacore.com>
8240
8241 * windows-nat.c (windows_nat::handle_load_dll)
8242 (windows_nat::handle_unload_dll): Rename. No longer static.
8243 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8244 Declare.
8245
a00caa12
TT
82462020-04-08 Tom Tromey <tromey@adacore.com>
8247
8248 * complaints.h (stop_whining): Declare at top-level.
8249 (complaint): Don't declare stop_whining.
8250
d41b524f
TT
82512020-04-08 Tom Tromey <tromey@adacore.com>
8252
8253 * windows-nat.c (windows_nat::handle_output_debug_string):
8254 Rename. No longer static.
8255 * nat/windows-nat.h (handle_output_debug_string): Declare.
8256
3c76026d
TT
82572020-04-08 Tom Tromey <tromey@adacore.com>
8258
8259 * windows-nat.c (current_process_handle, current_process_id)
8260 (main_thread_id, last_sig, current_event, last_wait_event)
8261 (current_windows_thread, desired_stop_thread_id, pending_stops)
8262 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8263 (display_selectors, fake_create_process)
8264 (get_windows_debug_event): Update.
8265 * nat/windows-nat.h (current_process_handle, current_process_id)
8266 (main_thread_id, last_sig, current_event, last_wait_event)
8267 (current_windows_thread, desired_stop_thread_id, pending_stops)
8268 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8269 * nat/windows-nat.c (current_process_handle, current_process_id)
8270 (main_thread_id, last_sig, current_event, last_wait_event)
8271 (current_windows_thread, desired_stop_thread_id, pending_stops)
8272 (siginfo_er): New globals. Move from windows-nat.c.
8273
9d8679cc
TT
82742020-04-08 Tom Tromey <tromey@adacore.com>
8275
8276 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8277 (handle_load_dll): Update.
8278 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8279
28688adf
TT
82802020-04-08 Tom Tromey <tromey@adacore.com>
8281
8282 * windows-nat.c (enum thread_disposition_type): Move to
8283 nat/windows-nat.h.
8284 (windows_nat::thread_rec): Rename from thread_rec. No longer
8285 static.
8286 (windows_add_thread, windows_nat_target::fetch_registers)
8287 (windows_nat_target::store_registers, handle_exception)
8288 (windows_nat_target::resume, get_windows_debug_event)
8289 (windows_nat_target::get_tib_address)
8290 (windows_nat_target::thread_name)
8291 (windows_nat_target::thread_alive): Update.
8292 * nat/windows-nat.h (enum thread_disposition_type): Move from
8293 windows-nat.c.
8294 (thread_rec): Declare.
8295
4834dad0
TT
82962020-04-08 Tom Tromey <tromey@adacore.com>
8297
8298 * windows-nat.c: Add "using namespace".
8299 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8300 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8301
65bafd5b
TT
83022020-04-08 Tom Tromey <tromey@adacore.com>
8303
8304 * nat/windows-nat.h (struct windows_thread_info): Declare
8305 destructor.
8306 * nat/windows-nat.c (~windows_thread_info): New.
8307
0a4afda3
TT
83082020-04-08 Tom Tromey <tromey@adacore.com>
8309
8310 PR gdb/22992
8311 * windows-nat.c (current_event): Update comment.
8312 (last_wait_event, desired_stop_thread_id): New globals.
8313 (struct pending_stop): New.
8314 (pending_stops): New global.
8315 (windows_nat_target) <stopped_by_sw_breakpoint>
8316 <supports_stopped_by_sw_breakpoint>: New methods.
8317 (windows_fetch_one_register): Add assertions. Adjust PC.
8318 (windows_continue): Handle pending stops. Suspend other threads
8319 when stepping. Use last_wait_event
8320 (wait_for_debug_event): New function.
8321 (get_windows_debug_event): Use wait_for_debug_event. Handle
8322 pending stops. Queue spurious stops.
8323 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8324 (windows_nat_target::kill): Use wait_for_debug_event.
8325 * nat/windows-nat.h (struct windows_thread_info)
8326 <stopped_at_software_breakpoint>: New field.
8327 * nat/windows-nat.c (windows_thread_info::resume): Clear
8328 stopped_at_software_breakpoint.
8329
8e61ebec
TT
83302020-04-08 Tom Tromey <tromey@adacore.com>
8331
8332 * windows-nat.c (enum thread_disposition_type): New.
8333 (thread_rec): Replace "get_context" parameter with "disposition";
8334 change type.
8335 (windows_add_thread, windows_nat_target::fetch_registers)
8336 (windows_nat_target::store_registers, handle_exception)
8337 (windows_nat_target::resume, get_windows_debug_event)
8338 (windows_nat_target::get_tib_address)
8339 (windows_nat_target::thread_name)
8340 (windows_nat_target::thread_alive): Update.
8341
98a03287
TT
83422020-04-08 Tom Tromey <tromey@adacore.com>
8343
8344 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8345 (windows_continue): Use windows_continue::resume.
8346 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8347 resume>: Declare new methods.
8348 * nat/windows-nat.c: New file.
8349 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8350
7c7411bc
TT
83512020-04-08 Tom Tromey <tromey@adacore.com>
8352
8353 * windows-nat.c (windows_add_thread, windows_delete_thread)
8354 (windows_nat_target::fetch_registers)
8355 (windows_nat_target::store_registers, fake_create_process)
8356 (windows_nat_target::resume, windows_nat_target::resume)
8357 (get_windows_debug_event, windows_nat_target::wait)
8358 (windows_nat_target::pid_to_str)
8359 (windows_nat_target::get_tib_address)
8360 (windows_nat_target::get_ada_task_ptid)
8361 (windows_nat_target::thread_name)
8362 (windows_nat_target::thread_alive): Use lwp, not tid.
8363
2950fdf7
TT
83642020-04-08 Tom Tromey <tromey@adacore.com>
8365
8366 * windows-nat.c (handle_exception)
8367 (windows_nat_target::thread_name): Update.
8368 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8369 <name>: Now unique_xmalloc_ptr.
8370
62fe396b
TT
83712020-04-08 Tom Tromey <tromey@adacore.com>
8372
8373 * windows-nat.c (thread_rec)
8374 (windows_nat_target::fetch_registers): Update.
8375 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8376 Update comment.
8377 <debug_registers_changed, reload_context>: Now bool.
8378
e9534bd2
TT
83792020-04-08 Tom Tromey <tromey@adacore.com>
8380
8381 * windows-nat.c (windows_add_thread): Use new.
8382 (windows_init_thread_list, windows_delete_thread): Use delete.
8383 (get_windows_debug_event): Update.
8384 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8385 destructor, and initializers.
8386
ae1f8880
TT
83872020-04-08 Tom Tromey <tromey@adacore.com>
8388
8389 * windows-nat.c (struct windows_thread_info): Remove.
8390 * nat/windows-nat.h: New file.
8391
55a1e039
TT
83922020-04-08 Tom Tromey <tromey@adacore.com>
8393
8394 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8395 (thread_rec, windows_add_thread, windows_delete_thread)
8396 (windows_continue): Update.
8397
93366324
TT
83982020-04-08 Tom Tromey <tromey@adacore.com>
8399
8400 * windows-nat.c (struct windows_thread_info): Remove typedef.
8401 (thread_head): Remove.
8402 (thread_list): New global.
8403 (thread_rec, windows_add_thread, windows_init_thread_list)
8404 (windows_delete_thread, windows_continue): Update.
8405
0f2265e2
SM
84062020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8407
8408 * windows-tdep.h (windows_init_abi): Add comment.
8409 (cygwin_init_abi): New declaration.
8410 * windows-tdep.c: Split signal enumeration in two, one for
8411 Windows and one for Cygwin.
8412 (windows_gdb_signal_to_target): Only deal with signal of the
8413 Windows OS ABI.
8414 (cygwin_gdb_signal_to_target): New function.
8415 (windows_init_abi): Rename to windows_init_abi_common, don't set
8416 gdb_signal_to_target gdbarch method. Add new new function with
8417 this name.
8418 (cygwin_init_abi): New function.
8419 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8420 comment. Don't call windows_init_abi.
8421 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8422 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8423 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8424 i386_windows_init_abi_common, don't call windows_init_abi. Add
8425 a new function of this name.
8426 (i386_cygwin_init_abi): New function.
8427 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8428 OS ABI Cygwin.
8429
3810f182
SM
84302020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8431
8432 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8433 parameter.c.
8434 (dwarf2_read_gdb_index): Update.
8435
063f8e80
KR
84362020-04-07 Kamil Rytarowski <n54@gmx.com>
8437
8438 * nbsd-tdep.c: Include "objfiles.h".
8439 (nbsd_skip_solib_resolver): New.
8440 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8441
85a9510c 84422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8443
8444 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8445 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8446 with DW_LLE_base_addressx are being emitted in DWARFv5.
8447 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8448 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8449 unsigned integer.
8450
9fc3eaae 84512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8452
8453 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8454 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8455 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8456 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8457 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8458 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8459 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8460
8461
41144253 84622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8463
8464 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8465 (read_loclist_index): New function definition.
8466 (lookup_loclist_base): New function definition.
8467 (read_loclist_header): New function definition.
8468 (dwarf2_cu): Add loclist_base and loclist_header field.
8469 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8470 (read_full_die_1): Read the value of DW_AT_loclists_base.
8471 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8472 (read_attribute_value): Handle DW_FORM_loclistx.
8473 (skip_one_die): Handle DW_FORM_loclistx.
8474 (loclist_header): New structure declaration.
8475 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8476
9f4e76a4
SM
84772020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8478
8479 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8480 constructor. Remove `addr` parameter from other constructor and
8481 add `per_cu` parameter.
8482 * dwarf2/read.c (create_partial_symtab): Update.
8483
25c11aca
TV
84842020-04-07 Tom de Vries <tdevries@suse.de>
8485
8486 PR symtab/25796
8487 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8488 (partial_die_info::fixup): Inherit has_const_value.
8489
5707e24b
TV
84902020-04-07 Tom de Vries <tdevries@suse.de>
8491
8492 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8493 symbols without address.
8494
05f00e22
KR
84952020-04-06 Kamil Rytarowski <n54@gmx.com>
8496
8497 * nbsd-nat.h (struct thread_info): Add forward declaration.
8498 (nbsd_nat_target::thread_alive): Add.
8499 (nbsd_nat_target::thread_name): Likewise.
8500 (nbsd_nat_target::update_thread_list): Likewise.
8501 (update_thread_list::post_attach): Likewise.
8502 (post_attach::pid_to_str): Likewise.
8503 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8504 (nbsd_thread_lister): Add.
8505 (nbsd_nat_target::thread_alive): Likewise.
8506 (nbsd_nat_target::thread_name): Likewise.
8507 (nbsd_add_threads): Likewise.
8508 (update_thread_list::post_attach): Likewise.
8509 (nbsd_nat_target::update_thread_list): Likewise.
8510 (post_attach::pid_to_str): Likewise.
8511
6ee448cc
TT
85122020-04-06 Tom Tromey <tromey@adacore.com>
8513
8514 * ada-valprint.c (print_variant_part): Extract the variant field.
8515 (print_field_values): Use the field as the outer value when
8516 recursing.
8517
dea34e8c
TT
85182020-04-06 Tom Tromey <tromey@adacore.com>
8519
8520 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8521 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8522 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8523 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8524 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8525
93689ce9
TT
85262020-04-06 Tom Tromey <tromey@adacore.com>
8527
8528 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8529 TYPE_CODE_ERROR.
8530
79743962
KR
85312020-04-06 Kamil Rytarowski <n54@gmx.com>
8532
8533 * nbsd-tdep.c: Include "gdbarch.h".
8534 Define enum with NetBSD signal numbers.
8535 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8536 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8537 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8538 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8539 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8540 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8541 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8542 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8543 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8544 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8545 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8546 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8547
9e7c9a03
HD
85482020-04-03 Hannes Domani <ssbssa@yahoo.de>
8549
8550 PR gdb/25325
8551 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8552
d9e49b61
TT
85532020-04-03 Tom Tromey <tromey@adacore.com>
8554
8555 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8556 Read constant block.
8557
e0fc5c3f
SM
85582020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8559
8560 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8561 (gdb_bfd_get_full_section_contents): New declaration.
8562 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8563 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8564 gdb_bfd_get_full_section_contents.
8565
e2ff18a0
SM
85662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8567
8568 * exec.c (build_section_table): Replace internal_error with
8569 gdb_assert.
8570 (section_table_xfer_memory_partial): Likewise.
8571 * mdebugread.c (parse_partial_symbols): Likewise.
8572 * psymtab.c (lookup_partial_symbol): Likewise.
8573 * utils.c (wrap_here): Likewise.
8574
0830d301
TT
85752020-04-02 Tom Tromey <tromey@adacore.com>
8576
8577 * f-lang.c (build_fortran_types): Use arch_type to initialize
8578 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8579
e7da7f8f
TT
85802020-04-02 Tom Tromey <tromey@adacore.com>
8581
8582 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8583 of attributes.
8584
c90d28ac
AB
85852020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8586 Bernd Edlinger <bernd.edlinger@hotmail.de>
8587 Tom Tromey <tromey@adacore.com>
8588
8589 * buildsym.c (buildsym_compunit::record_line): Remove
8590 deduplication code.
8591
1aa98955
TV
85922020-04-02 Tom de Vries <tdevries@suse.de>
8593
8594 PR ada/24671
8595 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8596
d3214198
TV
85972020-04-02 Tom de Vries <tdevries@suse.de>
8598
8599 * dwarf2/read.c (dwarf2_gdb_index_functions,
8600 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8601 NULL.
8602 * psymtab.c (psym_lookup_global_symbol_language): New function.
8603 (psym_functions): Init psym_lookup_global_symbol_language with
8604 psym_lookup_global_symbol_language.
8605 * symfile-debug.c (debug_sym_quick_functions): Init
8606 lookup_global_symbol_language with NULL.
8607 * symfile.c (set_initial_language): Remove fixme comment.
8608 * symfile.h (struct quick_symbol_functions): Add
8609 lookup_global_symbol_language.
8610 * symtab.c (find_quick_global_symbol_language): New function.
8611 (find_main_name): Use find_quick_global_symbol_language.
8612
2836752f
SM
86132020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8614
8615 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8616
64dc2d4b
BE
86172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8618
8619 * buildsym.c (record_line): Fix undefined behavior and preserve
8620 lines at eof.
8621
bbe3dc41
BE
86222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8623
8624 * buildsym.c (record_line): Fix the resizing condition.
8625
6b4a335b
TT
86262020-04-01 Tom Tromey <tom@tromey.com>
8627
8628 * value.h (value_literal_complex): Add comment.
8629 * valops.c (value_literal_complex): Refer to value.h.
8630
3638a098
TT
86312020-04-01 Tom Tromey <tom@tromey.com>
8632
8633 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8634 (scalar_type): New rule, from typebase.
8635 (typebase): Use scalar_type. Recognize complex types.
8636 (field_name): Handle FLOAT_KEYWORD.
8637 (ident_tokens): Add _Complex and __complex__.
8638
c34e8714
TT
86392020-04-01 Tom Tromey <tom@tromey.com>
8640
8641 PR exp/25299:
8642 * valarith.c (promotion_type, complex_binop): New functions.
8643 (scalar_binop): Handle complex numbers. Use promotion_type.
8644 (value_pos, value_neg, value_complement): Handle complex numbers.
8645
fa649bb7
TT
86462020-04-01 Tom Tromey <tom@tromey.com>
8647
8648 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8649 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8650 (parse_number): Handle complex numbers.
8651
981c08ce
TT
86522020-04-01 Tom Tromey <tom@tromey.com>
8653
8654 * c-valprint.c (c_decorations): Change complex suffix to "i".
8655
4c99290d
TT
86562020-04-01 Tom Tromey <tom@tromey.com>
8657
8658 * valprint.c (generic_value_print_complex): Use accessors.
8659 * value.h (value_real_part, value_imaginary_part): Declare.
8660 * valops.c (value_real_part, value_imaginary_part): New
8661 functions.
8662 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8663
5b930b45
TT
86642020-04-01 Tom Tromey <tom@tromey.com>
8665
8666 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8667 (read_range_type): Update.
8668 * mdebugread.c (basic_type): Update.
8669 * go-lang.c (build_go_types): Use init_complex_type.
8670 * gdbtypes.h (struct main_type) <complex_type>: New member.
8671 (init_complex_type): Update.
8672 (arch_complex_type): Don't declare.
8673 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8674 Make name if none given. Use alloc_type_copy. Look for cached
8675 complex type.
8676 (arch_complex_type): Remove.
8677 (gdbtypes_post_init): Use init_complex_type.
8678 * f-lang.c (build_fortran_types): Use init_complex_type.
8679 * dwarf2/read.c (read_base_type): Update.
8680 * d-lang.c (build_d_types): Use init_complex_type.
8681 * ctfread.c (read_base_type): Update.
8682
53cccef1
TBA
86832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8684
8685 * infrun.c (stop_all_threads): Update assertion, plus when
8686 stopping threads, take into account that we might be trying
8687 to stop an all-stop target.
8688 (stop_waiting): Call 'stop_all_threads' if there exists a
8689 non-stop target.
8690
a0714d30
TBA
86912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8692
8693 * target.h (exists_non_stop_target): New function declaration.
8694 * target.c (exists_non_stop_target): New function.
8695
60e22c1e
HD
86962020-04-01 Hannes Domani <ssbssa@yahoo.de>
8697
8698 PR gdb/24789
8699 * eval.c (is_integral_or_integral_reference): New function.
8700 (evaluate_subexp_standard): Allow integer references in
8701 pointer arithmetic.
8702
e139a727
TBA
87032020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8704
8705 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8706 check for no ptid in the stop reply when the target is non-stop.
8707
e0802d59
TT
87082020-04-01 Tom Tromey <tromey@adacore.com>
8709
8710 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8711 "name" parameter to rvalue reference. Initialize m_name_holder.
8712 <lookup_name_info>: New overloads.
8713 <name>: Return gdb::string_view.
8714 <c_str>: New method.
8715 <make_ignore_params>: Update.
8716 <search_name_hash>: Update.
8717 <language_lookup_name>: Return const char *.
8718 <m_name>: Change type.
8719 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8720 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8721 (lookup_name_info::match_any): Update.
8722 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8723 Update.
8724 * minsyms.c (linkage_name_str): Update.
8725 * language.c (default_symbol_name_matcher): Update.
8726 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8727 Update.
8728 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8729 (ada_lookup_name_info::ada_lookup_name_info): Update.
8730 (literal_symbol_name_matcher): Update.
8731
8c072cb6
TT
87322020-04-01 Tom Tromey <tromey@adacore.com>
8733
8734 * psymtab.c (psymtab_search_name): Remove function.
8735 (psym_lookup_symbol): Create search name and lookup name here.
8736 (lookup_partial_symbol): Remove "name" parameter; add
8737 lookup_name.
8738 (psym_expand_symtabs_for_function): Update.
8739
6f29a534
TT
87402020-03-31 Joel Jones <joelkevinjones@gmail.com>
8741
8742 PR tui/25597:
8743 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8744
af62665e
TT
87452020-03-31 Tom Tromey <tromey@adacore.com>
8746
8747 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8748 memcpy.
8749
d1a89da5
NC
87502020-03-30 Nelson Chu <nelson.chu@sifive.com>
8751
8752 * features/riscv/32bit-csr.xml: Regenerated.
8753 * features/riscv/64bit-csr.xml: Regenerated.
8754
d8af9068
TT
87552020-03-30 Tom Tromey <tromey@adacore.com>
8756
8757 * ada-valprint.c (print_variant_part): Update.
8758 * ada-lang.h (ada_which_variant_applies): Update.
8759 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8760 outer_valaddr parameters; replace with "outer" value parameter.
8761 (to_fixed_variant_branch_type): Update.
8762
227c0bf4
PFC
87632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8764
8765 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8766 <list>. Remove inclusion of observable.h.
8767 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8768 (struct arch_lwp_info): New struct.
8769 (class ppc_linux_dreg_interface): New class.
8770 (struct ppc_linux_process_info): New struct.
8771 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8772 <low_new_clone, low_forget_process, low_prepare_to_resume>
8773 <copy_thread_dreg_state, mark_thread_stale>
8774 <mark_debug_registers_changed, register_hw_breakpoint>
8775 <clear_hw_breakpoint, register_wp, clear_wp>
8776 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8777 <num_memory_accesses, get_trigger_type>
8778 <create_watchpoint_request, hwdebug_point_cmp>
8779 <init_arch_lwp_info, get_arch_lwp_info>
8780 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8781 methods.
8782 <struct ptid_hash>: New inner struct.
8783 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8784 members.
8785 (saved_dabr_value, hwdebug_info, max_slots_number)
8786 (struct hw_break_tuple, struct thread_points, ppc_threads)
8787 (have_ptrace_hwdebug_interface)
8788 (hwdebug_find_thread_points_by_tid)
8789 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8790 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8791 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8792 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8793 use m_dreg_interface.
8794 (hwdebug_point_cmp): Change to...
8795 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8796 reference arguments instead of pointers.
8797 (ppc_linux_nat_target::ranged_break_num_registers): Use
8798 m_dreg_interface.
8799 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8800 m_dreg_interface. Call register_hw_breakpoint.
8801 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8802 m_dreg_interface. Call clear_hw_breakpoint.
8803 (get_trigger_type): Change to...
8804 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8805 comment.
8806 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8807 use m_dreg_interface. Call register_hw_breakpoint.
8808 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8809 use m_dreg_interface. Call clear_hw_breakpoint.
8810 (can_use_watchpoint_cond_accel): Change to...
8811 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8812 method. Update comment, use m_dreg_interface and
8813 m_process_info.
8814 (calculate_dvc): Change to...
8815 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8816 m_dreg_interface.
8817 (num_memory_accesses): Change to...
8818 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8819 (check_condition): Change to...
8820 (ppc_linux_nat_target::check_condition): ...this method.
8821 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8822 comment, use m_dreg_interface.
8823 (create_watchpoint_request): Change to...
8824 (ppc_linux_nat_target::create_watchpoint_request): ...this
8825 method. Use m_dreg_interface.
8826 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8827 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8828 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8829 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8830 (ppc_linux_nat_target::low_forget_process)
8831 (ppc_linux_nat_target::low_new_fork)
8832 (ppc_linux_nat_target::low_new_clone)
8833 (ppc_linux_nat_target::low_delete_thread)
8834 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8835 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8836 only call mark_thread_stale.
8837 (ppc_linux_thread_exit): Remove.
8838 (ppc_linux_nat_target::stopped_data_address): Change to...
8839 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8840 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8841 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8842 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8843 comment. Call low_stopped_data_address.
8844 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8845 m_dreg_interface.
8846 (ppc_linux_nat_target::masked_watch_num_registers): Use
8847 m_dreg_interface.
8848 (ppc_linux_nat_target::copy_thread_dreg_state)
8849 (ppc_linux_nat_target::mark_thread_stale)
8850 (ppc_linux_nat_target::mark_debug_registers_changed)
8851 (ppc_linux_nat_target::register_hw_breakpoint)
8852 (ppc_linux_nat_target::clear_hw_breakpoint)
8853 (ppc_linux_nat_target::register_wp)
8854 (ppc_linux_nat_target::clear_wp)
8855 (ppc_linux_nat_target::init_arch_lwp_info)
8856 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8857 (_initialize_ppc_linux_nat): Remove observer callback.
8858
4db10d8f
PFC
88592020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8860
8861 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8862 (ppc_linux_nat_target::auxv_parse)
8863 (ppc_linux_nat_target::read_description)
8864 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8865 Move up.
8866
1310c1b0
PFC
88672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8868
8869 * linux-nat.h (low_new_clone): New method.
8870 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8871
69b037c3
SM
88722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8873
8874 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8875 (dbx_expand_psymtab): ... this.
8876 (start_psymtab): Update.
8877 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8878 (mdebug_expand_psymtab): ... this.
8879 (parse_partial_symbols): Update.
8880 (new_psymtab): Update.
8881 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8882 (xcoff_expand_psymtab): ... this.
8883 (xcoff_start_psymtab): Update.
8884
48993951
SM
88852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8886
8887 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8888 <expand_dependencies>: ... this.
8889 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8890 (partial_symtab::expand_dependencies): ... this.
8891 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8892 Update.
8893 (dwarf2_psymtab::expand_psymtab): Update.
8894 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8895 * mdebugread.c (psymtab_to_symtab_1): Update.
8896 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8897
3ad83046
SM
88982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8899
8900 * psympriv.h (discard_psymtab): Remove.
8901 * dbxread.c (dbx_end_psymtab): Update.
8902 * xcoffread.c (xcoff_end_psymtab): Update.
8903
4d1b9ab6
TT
89042020-03-28 Tom Tromey <tom@tromey.com>
8905
8906 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8907 comment.
8908
f1749218
TT
89092020-03-28 Tom Tromey <tom@tromey.com>
8910
8911 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8912
ebea7626
HD
89132020-03-27 Hannes Domani <ssbssa@yahoo.de>
8914
8915 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8916
a879b4d5
JB
89172020-03-26 John Baldwin <jhb@FreeBSD.org>
8918
8919 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8920
0826b30a
TT
89212020-03-26 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8924 (mark_common_block_symbol_computed, read_tag_string_type)
8925 (attr_to_dynamic_prop, read_subrange_type): Update.
8926 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8927 to be methods on struct attribute.
8928 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8929 (read_call_site_scope, partial_die_info::read)
8930 (partial_die_info::read, lookup_die_type, follow_die_ref):
8931 Update.
8932 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8933 from dwarf2_get_ref_die_offset.
8934 (attribute::constant_value): New method, from
8935 dwarf2_get_attr_constant_value.
8936 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8937 Declare method.
8938 <constant_value>: New method.
8939
2b2558bf
TT
89402020-03-26 Tom Tromey <tom@tromey.com>
8941
8942 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8943 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8944 (dwarf_type_encoding_name): Move to stringify.c.
8945 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8946 * dwarf2/stringify.c: New file.
8947 * dwarf2/stringify.h: New file.
8948
eeb64781
TT
89492020-03-26 Tom Tromey <tom@tromey.com>
8950
8951 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8952 Rewrite.
8953
a39fdb41
TT
89542020-03-26 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8957 methods.
8958 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8959 (lookup_ranges_base): Likewise.
8960 (read_cutu_die_from_dwo, read_full_die_1): Update.
8961
436c571c
TT
89622020-03-26 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/read.c (read_import_statement, read_file_scope)
8965 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8966 (read_lexical_block_scope, read_call_site_scope)
8967 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8968 (handle_struct_member_die, process_structure_scope)
8969 (update_enumeration_type_from_children)
8970 (process_enumeration_scope, read_array_type, read_common_block)
8971 (read_namespace, read_module, read_subroutine_type): Update.
8972 (sibling_die): Remove.
8973
052c8bb8
TT
89742020-03-26 Tom Tromey <tom@tromey.com>
8975
8976 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8977 (build_type_psymtabs_reader, read_structure_type)
8978 (read_enumeration_type, read_full_die_1): Update.
8979 (dwarf2_attr_no_follow): Move to die.h.
8980 * dwarf2/die.h (struct die_info) <attr>: New method.
8981
2b24b6e4
TT
89822020-03-26 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8985 <base_address>: Now an optional.
8986 (dwarf2_find_base_address, dwarf2_rnglists_process)
8987 (dwarf2_ranges_process, fill_in_loclist_baton)
8988 (dwarf2_symbol_mark_computed): Update.
8989
c2d50fd0
TT
89902020-03-26 Tom Tromey <tom@tromey.com>
8991
8992 * dwarf2/read.c (struct die_info): Move to die.h.
8993 * dwarf2/die.h: New file.
8994
0df7ad3a
TT
89952020-03-26 Tom Tromey <tom@tromey.com>
8996
8997 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8998 * dwarf2/read.c
8999 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9000 Move to line-header.c.
9001 (read_checked_initial_length_and_offset, read_formatted_entries):
9002 Likewise.
9003 (dwarf_decode_line_header): Split into two.
9004 * dwarf2/line-header.c
9005 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9006 Move from read.c.
9007 (read_checked_initial_length_and_offset, read_formatted_entries):
9008 Likewise.
9009 (dwarf_decode_line_header): New function, split from read.c.
9010
86c0bb4c
TT
90112020-03-26 Tom Tromey <tom@tromey.com>
9012
9013 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9014 Declare method.
9015 * dwarf2/read.c (read_attribute_value): Update.
9016 (dwarf2_per_objfile::read_line_string): Rename from
9017 read_indirect_line_string.
9018 (read_formatted_entries): Update.
9019
2ef46c2f
TT
90202020-03-26 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9023 variable.
9024
4f9c1eda
TT
90252020-03-26 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9028 const.
9029 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9030 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9031 parameter const.
9032
5a0e026f
TT
90332020-03-26 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9036 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9037 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9038 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9039
8844c11b
TT
90402020-03-26 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9043 file_names_size, file_full_name, file_file_name>: Use const.
9044 <file_name_at, file_names>: Add const overload.
9045 * dwarf2/line-header.c (line_header::file_file_name)
9046 (line_header::file_full_name): Update.
9047
c90ec28a
TT
90482020-03-26 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9051 (macro_start_file, consume_improper_spaces)
9052 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9053 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9054 (dwarf_decode_macros): Move to macro.c.
9055 * dwarf2/macro.c: New file.
9056 * dwarf2/macro.h: New file.
9057 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9058
4f44ae6c
TT
90592020-03-26 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9062 method.
9063 * dwarf2/section.c: New method. From
9064 read_indirect_string_at_offset_from.
9065 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9066 (read_indirect_string_at_offset_from): Move to section.c.
9067 (read_indirect_string_at_offset): Rewrite.
9068 (read_indirect_line_string_at_offset): Remove.
9069 (read_indirect_string, read_indirect_line_string)
9070 (dwarf_decode_macro_bytes): Update.
9071
a0194fa8
TT
90722020-03-26 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/section.h (struct dwarf2_section_info)
9075 <overload_complaint>: Declare.
9076 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9077 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9078 Rename from dwarf2_section_buffer_overflow_complaint.
9079 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9080 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9081
3d27bbdb
TT
90822020-03-26 Tom Tromey <tom@tromey.com>
9083
9084 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9085 Declare.
9086 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9087 Move from read.c.
9088 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9089 to section.c.
9090
9eac9650
TT
90912020-03-26 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9094
bf80d710
TT
90952020-03-26 Tom Tromey <tom@tromey.com>
9096
9097 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9098 "builder".
9099 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9100 parameter.
9101 (dwarf_decode_macros): Update.
9102
0314b390
TT
91032020-03-26 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/read.c (read_attribute_value): Update.
9106 (read_indirect_string_from_dwz): Move to dwz.c; change into
9107 method.
9108 (dwarf_decode_macro_bytes): Update.
9109 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9110 * dwarf2/dwz.c: New file.
9111 * Makefile.in (COMMON_SFILES): Add dwz.c.
9112
9fda78b6
TT
91132020-03-26 Tom Tromey <tom@tromey.com>
9114
9115 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9116 * dwarf2/read.c: Add include.
9117 * dwarf2/index-write.c: Add include.
9118 * dwarf2/index-cache.c: Add include.
9119 * dwarf2/dwz.h: New file.
9120
33aa3c10
TT
91212020-03-25 Tom Tromey <tom@tromey.com>
9122
9123 * compile/compile-object-load.c (get_out_value_type): Mention
9124 correct symbol name in error message.
9125
d503b685
HD
91262020-03-25 Hannes Domani <ssbssa@yahoo.de>
9127
9128 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9129
7b1eff95
TV
91302020-03-25 Tom de Vries <tdevries@suse.de>
9131
9132 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9133 * symmisc.c (dump_symtab_1): Print user and includes fields.
9134 (maintenance_info_symtabs): Same.
9135
dd895392
AB
91362020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9137
9138 PR gdb/25534
9139 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9140 (riscv_regcache_cooked_write): New function.
9141 (riscv_push_dummy_call): Use new function.
9142 (riscv_return_value): Likewise.
9143
5ab2fbf1
SM
91442020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9145
9146 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9147 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9148 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9149 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9150 * infrun.c (follow_fork): Likewise.
9151 (follow_fork_inferior): Likewise.
9152 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9153 * linux-nat.h (class linux_nat_target): Likewise.
9154 * remote.c (class remote_target) <follow_fork>: Likewise.
9155 (remote_target::follow_fork): Likewise.
9156 * target-delegates.c: Re-generate.
9157 * target.c (default_follow_fork): Likewise.
9158 (target_follow_fork): Likewise.
9159 * target.h (struct target_ops) <follow_fork>: Likewise.
9160 (target_follow_fork): Likewise.
9161
a64fafb5
TV
91622020-03-24 Tom de Vries <tdevries@suse.de>
9163
9164 * psymtab.c (maintenance_info_psymtabs): Print user field.
9165
fe26d3a3
TT
91662020-03-20 Tom Tromey <tromey@adacore.com>
9167
9168 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9169 const.
9170 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9171 const.
9172
c884cc46
SM
91732020-03-20 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * ptrace.m4: Don't check for ptrace declaration.
9176 * config.in: Re-generate.
9177 * configure: Re-generate.
9178 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9179 not defined.
9180
1ff700c2
KR
91812020-03-20 Kamil Rytarowski <n54@gmx.com>
9182
9183 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9184 `PTRACE_TYPE_RET'.
9185 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9186 * sparc-nat.c (gdb_ptrace): Likewise.
9187 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9188
f7d4f0b1
TT
91892020-03-20 Tom Tromey <tromey@adacore.com>
9190
9191 * c-exp.y (lex_one_token): Fix assert.
9192
f67210ff
TT
91932020-03-20 Tom Tromey <tromey@adacore.com>
9194
9195 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9196 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9197 strncpy call.
9198
1773be9e
TT
91992020-03-20 Tom Tromey <tromey@adacore.com>
9200
9201 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9202
70304be9
TT
92032020-03-20 Tom Tromey <tromey@adacore.com>
9204
9205 * ada-valprint.c (print_variant_part): Remove parameters; switch
9206 to value-based API.
9207 (print_field_values): Likewise.
9208 (ada_val_print_struct_union): Likewise.
9209 (ada_value_print_1): Update.
9210
9faa006d
KR
92112020-03-20 Kamil Rytarowski <n54@gmx.com>
9212
9213 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9214 nbsd_nat_target instead of inf_ptrace_target.
9215 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9216 nbsd_nat_target.
9217
4a90f062
KR
92182020-03-20 Kamil Rytarowski <n54@gmx.com>
9219
9220 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9221 it to the ptrace call.
9222 * (store_registers): Likewise.
9223
92242020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9225
9226 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9227 it to the ptrace call.
9228 * (store_registers): Likewise.
9229
2d07da27
LM
92302020-03-19 Luis Machado <luis.machado@linaro.org>
9231
9232 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9233 valid, fetch vg value from ptrace.
9234
f09db380
KR
92352020-03-19 Kamil Rytarowski <n54@gmx.com>
9236 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9237 * inf-ptrace.c: Likewise.
9238 * (gdb_ptrace): Add.
9239 * (inf_ptrace_target::resume): Update.
9240 * (inf_ptrace_target::xfer_partial): Likewise.
9241 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9242 * (inf_ptrace_peek_poke): Update.
9243
fcc7376e
KR
92442020-03-19 Kamil Rytarowski <n54@gmx.com>
9245
9246 * x86-bsd-nat.c (gdb_ptrace): New.
9247 * (x86bsd_dr_set): Add new argument `ptid'.
9248 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9249 x86bsd_dr_set_addr): Update.
9250
cada5fc9
AB
92512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * remote.c (remote_target::process_stop_reply): Handle events for
9254 all threads differently.
9255
19a2740f
AB
92562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9257
9258 * completer.c (completion_tracker::remove_completion): Define new
9259 function.
9260 * completer.h (completion_tracker::remove_completion): Declare new
9261 function.
9262 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9263 when adding a C++ function symbol.
9264
724fd9ba
AB
92652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9266
9267 * completer.c (completion_tracker::completion_hash_entry): Define
9268 new class.
9269 (advance_to_filename_complete_word_point): Call
9270 recompute_lowest_common_denominator.
9271 (completion_tracker::completion_tracker): Call discard_completions
9272 to setup the hash table.
9273 (completion_tracker::discard_completions): Allow for being called
9274 from the constructor, pass new equal function, and element deleter
9275 when constructing the hash table. Initialise new class member
9276 variables.
9277 (completion_tracker::maybe_add_completion): Remove use of
9278 m_entries_vec, and store more information into m_entries_hash.
9279 (completion_tracker::recompute_lcd_visitor): New function, most
9280 content taken from...
9281 (completion_tracker::recompute_lowest_common_denominator):
9282 ...here, this now just visits each item in the hash calling the
9283 above visitor.
9284 (completion_tracker::build_completion_result): Remove use of
9285 m_entries_vec, call recompute_lowest_common_denominator.
9286 * completer.h (completion_tracker::have_completions): Remove use
9287 of m_entries_vec.
9288 (completion_tracker::completion_hash_entry): Declare new class.
9289 (completion_tracker::recompute_lowest_common_denominator): Change
9290 function signature.
9291 (completion_tracker::recompute_lcd_visitor): Declare new function.
9292 (completion_tracker::m_entries_vec): Delete.
9293 (completion_tracker::m_entries_hash): Initialize to NULL.
9294 (completion_tracker::m_lowest_common_denominator_valid): New
9295 member variable.
9296 (completion_tracker::m_lowest_common_denominator_max_length): New
9297 member variable.
9298
5a82b8a1
KR
92992020-03-17 Kamil Rytarowski <n54@gmx.com>
9300
9301 * regformats/regdef.h: Put reg in gdb namespace.
9302
fb516a69
KR
93032020-03-17 Kamil Rytarowski <n54@gmx.com>
9304
9305 * i386-bsd-nat.c (gdb_ptrace): New.
9306 * (i386bsd_fetch_inferior_registers,
9307 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9308 * (i386bsd_fetch_inferior_registers,
9309 i386bsd_store_inferior_registers) Use gdb_ptrace.
9310
1c0aa1fb
KR
93112020-03-17 Kamil Rytarowski <n54@gmx.com>
9312
9313 * amd64-bsd-nat.c (gdb_ptrace): New.
9314 * (amd64bsd_fetch_inferior_registers,
9315 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9316 * (amd64bsd_fetch_inferior_registers,
9317 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9318
5ccd2fb7
KR
93192020-03-17 Kamil Rytarowski <n54@gmx.com>
9320
9321 * user-regs.c (user_reg::read): Rename to...
9322 (user_reg::xread): ...this.
9323 * (append_user_reg): Rename argument `read' to `xread'.
9324 * (user_reg_add_builtin): Likewise.
9325 * (user_reg_add): Likewise.
9326 * (value_of_user_reg): Likewise.
9327
2108a63a
KR
93282020-03-17 Kamil Rytarowski <n54@gmx.com>
9329
9330 * sparc-nat.c (gdb_ptrace): New.
9331 * sparc-nat.c (sparc_fetch_inferior_registers)
9332 (sparc_store_inferior_registers) Remove obsolete comment.
9333 * sparc-nat.c (sparc_fetch_inferior_registers)
9334 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9335 * sparc-nat.c (sparc_fetch_inferior_registers)
9336 (sparc_store_inferior_registers) Use gdb_ptrace.
9337
a225c9a8
KR
93382020-03-17 Kamil Rytarowski <n54@gmx.com>
9339
9340 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9341 it to the ptrace call.
9342 * sh-nbsd-nat.c (store_registers): Likewise.
9343
98097623
KR
93442020-03-17 Kamil Rytarowski <n54@gmx.com>
9345
9346 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9347 nbsd_nat_target instead of inf_ptrace_target.
9348 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9349 nbsd_nat_target.
9350
9e38d619
KR
93512020-03-17 Kamil Rytarowski <n54@gmx.com>
9352
9353 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9354
a2ecbe9f
KR
93552020-03-17 Kamil Rytarowski <n54@gmx.com>
9356
9357 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9358 <sys/sysctl.h>.
9359 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9360
58990295
TV
93612020-03-17 Tom de Vries <tdevries@suse.de>
9362
9363 PR gdb/23710
9364 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9365 fields.
9366 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9367 fields.
9368 (process_imported_unit_die): Skip import of c++ CUs.
9369
771dd3a8
TT
93702020-03-16 Tom Tromey <tom@tromey.com>
9371
9372 * p-valprint.c (pascal_object_print_value): Initialize
9373 base_value.
9374
817a7585
AK
93752020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9376 Shahab Vahedi <shahab@synopsys.com>
9377
9378 * Makefile.in: Add arch/arc.o
9379 * configure.tgt: Likewise.
9380 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9381 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9382 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9383 * arc-tdep.h (arc_read_description): Add proto type.
9384 * arch/arc.c: New file.
9385 * arch/arc.h: Likewise.
9386 * features/Makefile: Replace old target descriptions with new.
9387 * features/arc-arcompact.c: Remove.
9388 * features/arc-arcompact.xml: Likewise.
9389 * features/arc-v2.c: Likewise
9390 * features/arc-v2.xml: Likewise
9391 * features/arc/aux-arcompact.xml: New file.
9392 * features/arc/aux-v2.xml: Likewise.
9393 * features/arc/core-arcompact.xml: Likewise.
9394 * features/arc/core-v2.xml: Likewise.
9395 * features/arc/aux-arcompact.c: Generate.
9396 * features/arc/aux-v2.c: Likewise.
9397 * features/arc/core-arcompact.c: Likewise.
9398 * features/arc/core-v2.c: Likewise.
9399 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9400
67430cd0
TT
94012020-03-16 Tom Tromey <tromey@adacore.com>
9402
9403 PR gdb/25663:
9404 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9405 putting value into bcache.
9406
30efb6c7
SM
94072020-03-16 Simon Marchi <simon.marchi@efficios.com>
9408
9409 PR gdb/21500
9410 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9411 to...
9412 (amd64_windows_init_abi_common): ... this. Don't set size of
9413 long type.
9414 (amd64_windows_init_abi): New function.
9415 (amd64_cygwin_init_abi): New function.
9416 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9417 the Cygwin OS ABI.
9418 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9419 comment.
9420
8db52437
SM
94212020-03-16 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9424 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9425 (pe_import_directory_entry): New struct type.
9426 (is_linked_with_cygwin_dll): New function.
9427 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9428 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9429 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9430
5982a56a
SM
94312020-03-16 Simon Marchi <simon.marchi@efficios.com>
9432
9433 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9434 i386_cygwin_core_osabi_sniffer.
9435
7a1998df
SM
94362020-03-16 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * i386-cygwin-tdep.c: Rename to...
9439 * i386-windows-tdep.c: ... this.
9440 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9441 i386-windows-tdep.c.
9442 * configure.tgt: Likewise.
9443
053205cc
SM
94442020-03-16 Simon Marchi <simon.marchi@efficios.com>
9445
9446 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9447 * osabi.c (gdb_osabi_names): Add "Windows".
9448 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9449 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9450 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9451 i386_cygwin_osabi_sniffer.
9452 (_initialize_i386_cygwin_tdep): Register OS ABI
9453 GDB_OSABI_WINDOWS for i386.
9454 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9455 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9456 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9457 for x86-64.
9458 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9459 when the target matches '*-*-mingw*'.
9460
fe4b2ee6
SM
94612020-03-16 Simon Marchi <simon.marchi@efficios.com>
9462
9463 * defs.h (enum gdb_osabi): Move to...
9464 * osabi.h (enum gdb_osabi): ... here.
9465 * gdbarch.sh: Include osabi.h in gdbarch.h.
9466 * gdbarch.h: Re-generate.
9467
cb9b645d
SM
94682020-03-16 Simon Marchi <simon.marchi@efficios.com>
9469
9470 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9471 function.
9472 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9473
3293bbaf
TT
94742020-03-14 Tom Tromey <tom@tromey.com>
9475
9476 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9477 for C++.
9478 (c_type_print_modifier): Likewise. Add "language" parameter.
9479 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9480 (c_type_print_base_1): Update.
9481 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9482 constants.
9483 * type-stack.c (type_stack::insert): Handle tp_atomic and
9484 tp_restrict.
9485 (type_stack::follow_type_instance_flags): Likewise.
9486 (type_stack::follow_types): Likewise. Merge type-following code.
9487 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9488 (space_identifier, cv_with_space_id)
9489 (const_or_volatile_or_space_identifier_noopt)
9490 (const_or_volatile_or_space_identifier): Remove.
9491 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9492 rules.
9493 (ptr_operator, typebase): Update.
9494 (enum token_flag) <FLAG_C>: New constant.
9495 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9496 "_Atomic".
9497 (lex_one_token): Handle FLAG_C.
9498
154151a6
KR
94992020-03-14 Kamil Rytarowski <n54@gmx.com>
9500
9501 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9502 it to the ptrace call.
9503 * m68k-bsd-nat.c (store_registers): Likewise.
9504
bc107784
KR
95052020-03-14 Kamil Rytarowski <n54@gmx.com>
9506
9507 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9508 gdb_byte *.
9509 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9510 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9511 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9512
01a80117
KR
95132020-03-14 Kamil Rytarowski <n54@gmx.com>
9514
9515 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9516 nbsd_nat_target instead of inf_ptrace_target.
9517 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9518 nbsd_nat_target.
9519
f90280ca
KR
95202020-03-14 Kamil Rytarowski <n54@gmx.com>
9521
9522 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9523 register_t.
9524
6def66f1
KR
95252020-03-14 Kamil Rytarowski <n54@gmx.com>
9526
9527 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9528 it to the ptrace call.
9529 * alpha-bsd-nat.c (store_registers): Likewise.
9530
66eaca97
KR
95312020-03-14 Kamil Rytarowski <n54@gmx.com>
9532
9533 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9534 includes.
9535 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9536 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9537 fill_fpregset): Likewise.
9538
4fed520b
KR
95392020-03-14 Kamil Rytarowski <n54@gmx.com>
9540
9541 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9542 nbsd_nat_target instead of inf_ptrace_target.
9543 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9544 nbsd_nat_target.
9545
2190cf06
KR
95462020-03-14 Kamil Rytarowski <n54@gmx.com>
9547
9548 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9549 register_t.
9550
75c56d3d
KR
95512020-03-14 Kamil Rytarowski <n54@gmx.com>
9552
9553 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9554 it to the ptrace call.
9555 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9556 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9557 * arm-nbsd-nat.c (store_register): Likewise.
9558 * arm-nbsd-nat.c (store_regs): Likewise.
9559 * arm-nbsd-nat.c (store_fp_register): Likewise.
9560 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9561
6018d381
KR
95622020-03-14 Kamil Rytarowski <n54@gmx.com>
9563
9564 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9565 nbsd_nat_target instead of inf_ptrace_target.
9566 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9567 nbsd_nat_target.
9568
013f99f0
KR
95692020-03-14 Kamil Rytarowski <n54@gmx.com>
9570
9571 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9572 it to the ptrace call.
9573 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9574
12753073
KR
95752020-03-14 Kamil Rytarowski <n54@gmx.com>
9576
6227b330
KR
9577 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9578 it to the ptrace call.
9579 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9580
95812020-03-14 Kamil Rytarowski <n54@gmx.com>
9582
9583 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9584 gdb_byte *.
12753073
KR
9585 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9586
d5be5fa4
KR
95872020-03-14 Kamil Rytarowski <n54@gmx.com>
9588
9589 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9590 instead of inf_ptrace_target.
9591 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9592 nbsd_nat_target.
9593
8110f842
KR
95942020-03-14 Kamil Rytarowski <n54@gmx.com>
9595
9596 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9597 register_t.
9598
52feded7
KR
95992020-03-14 Kamil Rytarowski <n54@gmx.com>
9600
9601 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9602 register_t.
9603
25567eee
KR
96042020-03-14 Kamil Rytarowski <n54@gmx.com>
9605
9606 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9607 register_t.
9608
426a9c18
TT
96092020-03-13 Tom Tromey <tom@tromey.com>
9610
9611 * value.h (val_print): Don't declare.
9612 * valprint.h (val_print_array_elements)
9613 (val_print_scalar_formatted, generic_val_print): Don't declare.
9614 * valprint.c (generic_val_print_array): Take a struct value.
9615 (generic_val_print_ptr, generic_val_print_memberptr)
9616 (generic_val_print_bool, generic_val_print_int)
9617 (generic_val_print_char, generic_val_print_complex)
9618 (generic_val_print): Remove.
9619 (generic_value_print): Update.
9620 (do_val_print): Remove unused parameters. Don't call
9621 la_val_print.
9622 (val_print): Remove.
9623 (common_val_print): Update. Don't call value_check_printable.
9624 (val_print_scalar_formatted, val_print_array_elements): Remove.
9625 * rust-lang.c (rust_val_print): Remove.
9626 (rust_language_defn): Update.
9627 * p-valprint.c (pascal_val_print): Remove.
9628 (pascal_value_print_inner): Update.
9629 (pascal_object_print_val_fields, pascal_object_print_val):
9630 Remove.
9631 (pascal_object_print_static_field): Update.
9632 * p-lang.h (pascal_val_print): Don't declare.
9633 * p-lang.c (pascal_language_defn): Update.
9634 * opencl-lang.c (opencl_language_defn): Update.
9635 * objc-lang.c (objc_language_defn): Update.
9636 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9637 * m2-lang.h (m2_val_print): Don't declare.
9638 * m2-lang.c (m2_language_defn): Update.
9639 * language.h (struct language_defn) <la_val_print>: Remove.
9640 * language.c (unk_lang_value_print_inner): Rename. Change
9641 argument types.
9642 (unknown_language_defn, auto_language_defn): Update.
9643 * go-valprint.c (go_val_print): Remove.
9644 * go-lang.h (go_val_print): Don't declare.
9645 * go-lang.c (go_language_defn): Update.
9646 * f-valprint.c (f_val_print): Remove.
9647 * f-lang.h (f_value_print): Don't declare.
9648 * f-lang.c (f_language_defn): Update.
9649 * d-valprint.c (d_val_print): Remove.
9650 * d-lang.h (d_value_print): Don't declare.
9651 * d-lang.c (d_language_defn): Update.
9652 * cp-valprint.c (cp_print_value_fields)
9653 (cp_print_value_fields_rtti, cp_print_value): Remove.
9654 (cp_print_static_field): Update.
9655 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9656 (c_val_print_struct, c_val_print_union, c_val_print_int)
9657 (c_val_print_memberptr, c_val_print): Remove.
9658 * c-lang.h (c_val_print_array, cp_print_value_fields)
9659 (cp_print_value_fields_rtti): Don't declare.
9660 * c-lang.c (c_language_defn, cplus_language_defn)
9661 (asm_language_defn, minimal_language_defn): Update.
9662 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9663 (ada_val_print_enum): Take a struct value.
9664 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9665 (ada_val_print): Remove.
9666 (ada_value_print_1): Update.
9667 (printable_val_type): Remove.
9668 * ada-lang.h (ada_val_print): Don't declare.
9669 * ada-lang.c (ada_language_defn): Update.
9670
42331a1e
TT
96712020-03-13 Tom Tromey <tom@tromey.com>
9672
9673 * valprint.c (do_val_print): Update.
9674 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9675 a struct value.
9676 (value_to_value_object_no_release): Declare.
9677 * python/py-value.c (value_to_value_object_no_release): New
9678 function.
9679 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9680 struct value.
9681 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9682 function.
9683 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9684 a struct value.
9685 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9686 Declare.
9687 (gdbscm_apply_val_pretty_printer): Take a struct value.
9688 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9689 value.
9690 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9691 value.
9692 * extension-priv.h (struct extension_language_ops)
9693 <apply_val_pretty_printer>: Take a struct value.
9694 * cp-valprint.c (cp_print_value): Create a struct value.
9695 (cp_print_value): Update.
9696
3a916a97
TT
96972020-03-13 Tom Tromey <tom@tromey.com>
9698
9699 * ada-valprint.c (print_field_values): Call common_val_print.
9700
b59eac37
TT
97012020-03-13 Tom Tromey <tom@tromey.com>
9702
9703 * ada-valprint.c (val_print_packed_array_elements): Remove
9704 bitoffset and val parameters. Call common_val_print.
9705 (ada_val_print_string): Remove offset, address, and original_value
9706 parameters.
9707 (ada_val_print_array): Update.
9708 (ada_value_print_array): New function.
9709 (ada_value_print_1): Call it.
9710
03371129
TT
97112020-03-13 Tom Tromey <tom@tromey.com>
9712
9713 * ada-valprint.c (ada_value_print): Use common_val_print.
9714
2e088f8b
TT
97152020-03-13 Tom Tromey <tom@tromey.com>
9716
9717 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9718
39ef85a8
TT
97192020-03-13 Tom Tromey <tom@tromey.com>
9720
9721 * ada-valprint.c (ada_value_print_num): New function.
9722 (ada_value_print_1): Use it.
9723
b9fa6e07
TT
97242020-03-13 Tom Tromey <tom@tromey.com>
9725
9726 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9727
416595d6
TT
97282020-03-13 Tom Tromey <tom@tromey.com>
9729
9730 * ada-valprint.c (ada_value_print_ptr): New function.
9731 (ada_value_print_1): Use it.
9732
5b5e15ec
TT
97332020-03-13 Tom Tromey <tom@tromey.com>
9734
9735 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9736 call common_val_print.
9737 (ada_val_print_1): Update.
9738 (ada_value_print_1): New function.
9739 (ada_value_print_inner): Rewrite.
9740
fbf54e75
TT
97412020-03-13 Tom Tromey <tom@tromey.com>
9742
9743 * cp-valprint.c (cp_print_value_fields): Update.
9744 (cp_print_value): New function.
9745
64b653ca
TT
97462020-03-13 Tom Tromey <tom@tromey.com>
9747
9748 * m2-valprint.c (m2_value_print_inner): Use
9749 cp_print_value_fields.
9750 * cp-valprint.c (cp_print_value_fields): New function.
9751 * c-valprint.c (c_value_print_struct): New function.
9752 (c_value_print_inner): Use c_value_print_struct.
9753 * c-lang.h (cp_print_value_fields): Declare.
9754
6999f067
TT
97552020-03-13 Tom Tromey <tom@tromey.com>
9756
9757 * c-valprint.c (c_value_print_array): New function.
9758 (c_value_print_inner): Use it.
9759
ce80b8bd
TT
97602020-03-13 Tom Tromey <tom@tromey.com>
9761
9762 * c-valprint.c (c_value_print_memberptr): New function.
9763 (c_value_print_inner): Use it.
9764
2faac269
TT
97652020-03-13 Tom Tromey <tom@tromey.com>
9766
9767 * c-valprint.c (c_value_print_int): New function.
9768 (c_value_print_inner): Use it.
9769
da3e2c29
TT
97702020-03-13 Tom Tromey <tom@tromey.com>
9771
9772 * c-valprint.c (c_value_print_ptr): New function.
9773 (c_value_print_inner): Use it.
9774
50836231
TT
97752020-03-13 Tom Tromey <tom@tromey.com>
9776
9777 * c-valprint.c (c_value_print_inner): Rewrite.
9778
4f412b6e
TT
97792020-03-13 Tom Tromey <tom@tromey.com>
9780
9781 * valprint.c (generic_value_print_complex): New function.
9782 (generic_value_print): Use it.
9783
f5354008
TT
97842020-03-13 Tom Tromey <tom@tromey.com>
9785
9786 * valprint.c (generic_val_print_float): Don't call
9787 val_print_scalar_formatted.
9788 (generic_val_print, generic_value_print): Update.
9789
3eec3b05
TT
97902020-03-13 Tom Tromey <tom@tromey.com>
9791
9792 * valprint.c (generic_value_print_char): New function
9793 (generic_value_print): Use it.
9794
fdddfccb
TT
97952020-03-13 Tom Tromey <tom@tromey.com>
9796
9797 * valprint.c (generic_value_print_int): New function.
9798 (generic_value_print): Use it.
9799
6dde7521
TT
98002020-03-13 Tom Tromey <tom@tromey.com>
9801
9802 * valprint.c (generic_value_print_bool): New function.
9803 (generic_value_print): Use it.
9804
4112d2e6
TT
98052020-03-13 Tom Tromey <tom@tromey.com>
9806
9807 * valprint.c (generic_val_print_func): Simplify.
9808 (generic_val_print, generic_value_print): Update.
9809
65786af6
TT
98102020-03-13 Tom Tromey <tom@tromey.com>
9811
9812 * valprint.c (generic_val_print_flags): Remove.
9813 (generic_val_print, generic_value_print): Update.
9814 (val_print_type_code_flags): Add original_value parameter.
9815
40f3ce18
TT
98162020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * valprint.c (generic_val_print): Update.
9819 (generic_value_print): Update.
9820 * valprint.c (generic_val_print_enum): Don't call
9821 val_print_scalar_formatted.
9822
2a5b130b
TT
98232020-03-13 Tom Tromey <tom@tromey.com>
9824
9825 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9826 * valprint.c (generic_value_print_ptr): New function.
9827
abc66ce9
TT
98282020-03-13 Tom Tromey <tom@tromey.com>
9829
9830 * valprint.c (generic_value_print): Rewrite.
9831
07a32858
TT
98322020-03-13 Tom Tromey <tom@tromey.com>
9833
9834 * p-valprint.c (pascal_object_print_value_fields)
9835 (pascal_object_print_value): New functions.
9836
64d64d3a
TT
98372020-03-13 Tom Tromey <tom@tromey.com>
9838
9839 * p-valprint.c (pascal_value_print_inner): Rewrite.
9840
6a95a1f5
TT
98412020-03-13 Tom Tromey <tom@tromey.com>
9842
9843 * f-valprint.c (f_value_print_innner): Rewrite.
9844
59fcdac6
TT
98452020-03-13 Tom Tromey <tom@tromey.com>
9846
9847 * m2-valprint.c (m2_print_unbounded_array): New overload.
9848 (m2_print_unbounded_array): Update.
9849 (m2_print_array_contents): Take a struct value.
9850 (m2_value_print_inner): Rewrite.
9851
d133c3e1
TT
98522020-03-13 Tom Tromey <tom@tromey.com>
9853
9854 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9855 (d_value_print_inner): New function.
9856 * d-lang.h (d_value_print_inner): Declare.
9857 * d-lang.c (d_language_defn): Use d_value_print_inner.
9858
23b0f06b
TT
98592020-03-13 Tom Tromey <tom@tromey.com>
9860
9861 * go-valprint.c (go_value_print_inner): New function.
9862 * go-lang.h (go_value_print_inner): Declare.
9863 * go-lang.c (go_language_defn): Use go_value_print_inner.
9864
5f56f7cb
TT
98652020-03-13 Tom Tromey <tom@tromey.com>
9866
9867 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9868 API.
9869 (rust_val_print): Rewrite.
9870 (rust_value_print_inner): New function, from rust_val_print.
9871 (rust_language_defn): Use rust_value_print_inner.
9872
26792ee0
TT
98732020-03-13 Tom Tromey <tom@tromey.com>
9874
9875 * ada-valprint.c (ada_value_print_inner): New function.
9876 * ada-lang.h (ada_value_print_inner): Declare.
9877 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9878
24051bbe
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * f-valprint.c (f_value_print_innner): New function.
9882 * f-lang.h (f_value_print_innner): Declare.
9883 * f-lang.c (f_language_defn): Use f_value_print_innner.
9884
c0941be6
TT
98852020-03-13 Tom Tromey <tom@tromey.com>
9886
9887 * p-valprint.c (pascal_value_print_inner): New function.
9888 * p-lang.h (pascal_value_print_inner): Declare.
9889 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9890
62c4663d
TT
98912020-03-13 Tom Tromey <tom@tromey.com>
9892
9893 * m2-valprint.c (m2_value_print_inner): New function.
9894 * m2-lang.h (m2_value_print_inner): Declare.
9895 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9896
62182190
TT
98972020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9900 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9901 * c-valprint.c (c_value_print_inner): New function.
9902 * c-lang.h (c_value_print_inner): Declare.
9903 * c-lang.c (c_language_defn, cplus_language_defn)
9904 (asm_language_defn, minimal_language_defn): Use
9905 c_value_print_inner.
9906
1e592a8a
TT
99072020-03-13 Tom Tromey <tom@tromey.com>
9908
9909 * p-valprint.c (pascal_object_print_value_fields): Now static.
9910 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9911
7fe471e9
TT
99122020-03-13 Tom Tromey <tom@tromey.com>
9913
9914 * c-valprint.c (c_val_print_array): Simplify.
9915
d121c6ce
TT
99162020-03-13 Tom Tromey <tom@tromey.com>
9917
9918 * valprint.c (value_print_array_elements): New function.
9919 * valprint.h (value_print_array_elements): Declare.
9920
4dba70ee
TT
99212020-03-13 Tom Tromey <tom@tromey.com>
9922
9923 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9924 * mips-tdep.c (mips_print_register): Use
9925 value_print_scalar_formatted.
9926
4f9ae810
TT
99272020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * valprint.h (value_print_scalar_formatted): Declare.
9930 * valprint.c (value_print_scalar_formatted): New function.
9931
156bfec9
TT
99322020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * valprint.h (generic_value_print): Declare.
9935 * valprint.c (generic_value_print): New function.
9936
2b4e573d
TT
99372020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * valprint.c (do_val_print): Call la_value_print_inner, if
9940 available.
9941 * rust-lang.c (rust_language_defn): Update.
9942 * p-lang.c (pascal_language_defn): Update.
9943 * opencl-lang.c (opencl_language_defn): Update.
9944 * objc-lang.c (objc_language_defn): Update.
9945 * m2-lang.c (m2_language_defn): Update.
9946 * language.h (struct language_defn) <la_value_print_inner>: New
9947 member.
9948 * language.c (unknown_language_defn, auto_language_defn): Update.
9949 * go-lang.c (go_language_defn): Update.
9950 * f-lang.c (f_language_defn): Update.
9951 * d-lang.c (d_language_defn): Update.
9952 * c-lang.c (c_language_defn, cplus_language_defn)
9953 (asm_language_defn, minimal_language_defn): Update.
9954 * ada-lang.c (ada_language_defn): Update.
9955
a1f6a07c
TT
99562020-03-13 Tom Tromey <tom@tromey.com>
9957
9958 * c-valprint.c (c_value_print): Use common_val_print.
9959
410cf315
TT
99602020-03-13 Tom Tromey <tom@tromey.com>
9961
9962 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9963
72a45c93
TT
99642020-03-13 Tom Tromey <tom@tromey.com>
9965
9966 * f-valprint.c (f77_print_array_1, f_val_print): Use
9967 common_val_print.
9968
040f66bd
TT
99692020-03-13 Tom Tromey <tom@tromey.com>
9970
9971 * riscv-tdep.c (riscv_print_one_register_info): Use
9972 common_val_print.
9973
a6e05a6c
TT
99742020-03-13 Tom Tromey <tom@tromey.com>
9975
9976 * mi/mi-main.c (output_register): Use common_val_print.
9977
3444c526
TT
99782020-03-13 Tom Tromey <tom@tromey.com>
9979
9980 * infcmd.c (default_print_one_register_info): Use
9981 common_val_print.
9982
c2a44efe
TT
99832020-03-13 Tom Tromey <tom@tromey.com>
9984
9985 * valprint.h (common_val_print_checked): Declare.
9986 * valprint.c (common_val_print_checked): New function.
9987 * stack.c (print_frame_arg): Use common_val_print_checked.
9988
b0c26e99
TT
99892020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * valprint.c (do_val_print): New function, from val_print.
9992 (val_print): Use do_val_print.
9993 (common_val_print): Use do_val_print.
9994
ce3acbe9
TT
99952020-03-13 Tom Tromey <tom@tromey.com>
9996
9997 * valprint.c (value_print): Use scoped_value_mark.
9998
96c7f873
TV
99992020-03-13 Tom de Vries <tdevries@suse.de>
10000
10001 PR symtab/25646
10002 * psymtab.c (partial_symtab::partial_symtab): Don't set
10003 globals_offset and statics_offset. Push element onto
10004 current_global_psymbols and current_static_psymbols stacks.
10005 (concat): New function.
10006 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10007 element from current_global_psymbols and current_static_psymbols
10008 stacks. Concat popped elements to global_psymbols and
10009 static_symbols.
10010 (add_psymbol_to_list): Use current_global_psymbols and
10011 current_static_psymbols stacks.
10012 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10013 current_static_psymbols fields.
10014
6ba0a321
CB
100152020-03-12 Christian Biesinger <cbiesinger@google.com>
10016
10017 * corelow.c (sniff_core_bfd): Remove.
10018 (class core_target) <m_core_vec>: Remove.
10019 (core_target::core_target): Update.
10020 (core_file_fns): Remove.
10021 (deprecated_add_core_fns): Remove.
10022 (default_core_sniffer): Remove.
10023 (sniff_core_bfd): Remove.
10024 (default_check_format): Remove.
10025 (gdb_check_format): Remove.
10026 (core_target_open): Update.
10027 (core_target::get_core_register_section): Update.
10028 (get_core_registers_cb): Update.
10029 (core_target::fetch_registers): Update.
10030 * gdbcore.h (struct core_fns): Remove.
10031 (deprecated_add_core_fns): Remove.
10032 (default_core_sniffer): Remove.
10033 (default_check_format): Remove.
10034
227031b2
TT
100352020-03-12 Tom Tromey <tom@tromey.com>
10036
10037 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10038 CORE_ADDR.
10039 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10040
53807e9f
TT
100412020-03-12 Tom Tromey <tom@tromey.com>
10042
10043 * remote.c (remote_target::download_tracepoint)
10044 (remote_target::enable_tracepoint)
10045 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10046 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10047 sprintf_vma.
10048
64f25102
TT
100492020-03-12 Tom Tromey <tom@tromey.com>
10050
10051 * symfile-mem.c: Update CORE_ADDR size assert.
10052
272cd5a3
SM
100532020-03-12 Simon Marchi <simon.marchi@efficios.com>
10054
10055 * selftest.m4: Move to gdbsupport/.
10056 * acinclude.m4: Update path to selftest.m4.
10057
74cd3f9d
SM
100582020-03-12 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10061 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10062 gdbarch-selfselftests.c and selftest-arch.c.
10063 (SUBDIR_UNITTESTS_OBS): Rename to...
10064 (SELFTESTS_OBS): ... this.
10065 (COMMON_SFILES): Remove disasm-selftests.c and
10066 gdbarch-selftests.c.
10067 * configure.ac: Don't add selftest-arch.{c,o} to
10068 CONFIG_{SRCS,OBS}.
10069 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10070 preprocessor conditions.
10071
db6878ac
SM
100722020-03-12 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * configure.ac: Don't source bfd/development.sh.
10075 * selftest.m4: Modify comment.
10076 * configure: Re-generate.
10077
4d696a5c
SM
100782020-03-12 Simon Marchi <simon.marchi@efficios.com>
10079
10080 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10081 not "true" or "false".
10082 * configure: Re-generate.
10083
8dd8e1c7
CB
100842020-03-12 Christian Biesinger <cbiesinger@google.com>
10085
10086 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10087 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10088 renamed to arm_nbsd_supply_gregset.
10089 (fetch_register): Update to call arm_nbsd_supply_gregset.
10090 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10091 (arm_netbsd_nat_target::fetch_registers): Update.
10092 (fetch_elfcore_registers): Removed.
10093 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10094 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10095 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10096 not require NetBSD system headers.
10097 (arm_nbsd_regset): New struct.
10098 (arm_nbsd_iterate_over_regset_sections): New function.
10099 (arm_netbsd_init_abi_common): Updated to call
10100 set_gdbarch_iterate_over_regset_sections.
10101 * arm-nbsd-tdep.h: New file.
10102
dd69bf7a
KB
101032020-03-11 Kevin Buettner <kevinb@redhat.com>
10104
10105 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10106 recursion.
10107
a0761e34
SM
101082020-03-11 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * configure: Re-generate.
10111
e7a82140
TT
101122020-03-11 Tom Tromey <tromey@adacore.com>
10113
10114 * ada-typeprint.c (print_choices): Fix comment.
10115
dcc050c8
AB
101162020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10117
10118 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10119 previous item in the list, when the list has no items.
10120
1c33af77
TV
101212020-03-11 Tom de Vries <tdevries@suse.de>
10122
10123 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10124 PROP_LOCLIST handling code.
10125
8c95582d
AB
101262020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 * buildsym-legacy.c (record_line): Pass extra parameter to
10129 record_line.
10130 * buildsym.c (buildsym_compunit::record_line): Take an extra
10131 parameter, reduce duplication in the line table, and record the
10132 is_stmt flag in the line table.
10133 * buildsym.h (buildsym_compunit::record_line): Add extra
10134 parameter.
10135 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10136 non-statement lines.
10137 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10138 this to the symtab builder.
10139 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10140 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10141 through to dwarf_record_line_1.
10142 * infrun.c (process_event_stop_test): When stepping, don't stop at
10143 a non-statement instruction, and only refresh the step info when
10144 we land in the middle of a line's range. Also add an extra
10145 comment.
10146 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10147 field.
10148 * record-btrace.c (btrace_find_line_range): Only record lines
10149 marked as is-statement.
10150 * stack.c (frame_show_address): Show the frame address if we are
10151 in a non-statement sal.
10152 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10153 (maintenance_print_one_line_table): Print a header for the is_stmt
10154 column, and include is_stmt information in the output.
10155 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10156 preference to non-statements.
10157 (find_pcs_for_symtab_line): Prefer is-statement entries.
10158 (find_line_common): Likewise.
10159 * symtab.h (struct linetable_entry): Add is_stmt field.
10160 (struct symtab_and_line): Likewise.
10161 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10162 arranging the line table.
10163
e4003a34
TV
101642020-03-07 Tom de Vries <tdevries@suse.de>
10165
10166 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10167 DIE.
10168
e8932576
TT
101692020-03-07 Tom Tromey <tom@tromey.com>
10170
10171 * valops.c (value_literal_complex): Remove obsolete comment.
10172 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10173 comment.
10174
29734269
SM
101752020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10176
10177 * infrun.h: Forward-declare thread_info.
10178 (set_step_info): Add thread_info parameter, add doc.
10179 * infrun.c (set_step_info): Add thread_info parameter, move doc
10180 to header.
10181 * infrun.c (process_event_stop_test): Pass thread to
10182 set_step_info call.
10183 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10184 set_step_info.
10185 (prepare_one_step): Add thread_info parameter, pass it to
10186 set_step_frame and prepare_one_step (recursive) call.
10187 (step_1): Pass thread to prepare_one_step call.
10188 (step_command_fsm::should_stop): Pass thread to
10189 prepare_one_step.
10190 (until_next_fsm): Pass thread to set_step_frame call.
10191 (finish_command): Pass thread to set_step_info call.
10192
b7d64b29
HD
101932020-03-06 Hannes Domani <ssbssa@yahoo.de>
10194
10195 * windows-tdep.c (windows_solib_create_inferior_hook):
10196 Check if inferior is running.
10197
09f2921c
TV
101982020-03-06 Tom de Vries <tdevries@suse.de>
10199
10200 * NEWS: Fix "the the".
10201 * ctfread.c: Same.
10202
fd760e79
TV
102032020-03-06 Tom de Vries <tdevries@suse.de>
10204
10205 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10206
20ea4a60
AB
102072020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10208
10209 * .dir-locals.el: Add a comment referencing the other copies of
10210 this file.
10211
0afbabf0
JB
102122020-03-05 John Baldwin <jhb@FreeBSD.org>
10213
10214 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10215 psargs.
10216
842806cb
TBA
102172020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10218
10219 * .gitattributes: New file.
10220
be1e3d3e
TT
102212020-03-04 Tom Tromey <tom@tromey.com>
10222
10223 * symmisc.c (print_symbol_bcache_statistics)
10224 (print_objfile_statistics): Update.
10225 * symfile.c (allocate_symtab): Use intern.
10226 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10227 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10228 macro_cache>: Remove.
10229 <string_cache>: New member.
10230 (struct objfile) <intern>: New methods.
10231 * elfread.c (elf_symtab_read): Use intern.
10232 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10233 (dwarf2_compute_name, dwarf2_physname)
10234 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10235 names.
10236 (guess_partial_die_structure_name): Update.
10237 (partial_die_info::fixup): Intern name.
10238 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10239 name.
10240 (dwarf2_name): Intern name. Update.
10241 * buildsym.c (buildsym_compunit::get_macro_table): Use
10242 string_cache.
10243
4e7625fd
TT
102442020-03-04 Tom Tromey <tom@tromey.com>
10245
10246 * jit.c (bfd_open_from_target_memory): Make "target" const.
10247 * corefile.c (gnutarget): Now const.
10248 * gdbcore.h (gnutarget): Now const.
10249
46f9f931
HD
102502020-03-04 Hannes Domani <ssbssa@yahoo.de>
10251
10252 * NEWS: Mention support for WOW64 processes.
10253 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10254 (amd64_windows_segment_register_p): Remove static.
10255 (_initialize_amd64_windows_nat): Update.
10256 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10257 * i386-windows-nat.c (context_offset): Update.
10258 (i386_mappings): Rename and remove static.
10259 (i386_windows_segment_register_p): Remove static.
10260 (_initialize_i386_windows_nat): Update.
10261 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10262 (STATUS_WX86_SINGLE_STEP): New macro.
10263 (EnumProcessModulesEx): New macro.
10264 (Wow64SuspendThread): New macro.
10265 (Wow64GetThreadContext): New macro.
10266 (Wow64SetThreadContext): New macro.
10267 (Wow64GetThreadSelectorEntry): New macro.
10268 (windows_set_context_register_offsets): Add static.
10269 (windows_set_segment_register_p): Likewise.
10270 (windows_add_thread): Adapt for WOW64 processes.
10271 (windows_fetch_one_register): Likewise.
10272 (windows_nat_target::fetch_registers): Likewise.
10273 (windows_store_one_register): Likewise.
10274 (display_selector): Likewise.
10275 (display_selectors): Likewise.
10276 (handle_exception): Likewise.
10277 (windows_continue): Likewise.
10278 (windows_nat_target::resume): Likewise.
10279 (windows_add_all_dlls): Likewise.
10280 (do_initial_windows_stuff): Likewise.
10281 (windows_nat_target::attach): Likewise.
10282 (windows_get_exec_module_filename): Likewise.
10283 (windows_nat_target::create_inferior): Likewise.
10284 (windows_xfer_siginfo): Likewise.
10285 (_initialize_loadable): Initialize Wow64SuspendThread,
10286 Wow64GetThreadContext, Wow64SetThreadContext,
10287 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10288 * windows-nat.h (windows_set_context_register_offsets):
10289 Remove declaration.
10290 (windows_set_segment_register_p): Likewise.
10291 (i386_windows_segment_register_p): Add declaration.
10292 (amd64_windows_segment_register_p): Likewise.
10293
440cf44e
LM
102942020-03-04 Luis Machado <luis.machado@linaro.org>
10295
10296 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10297 in "info registers" for AArch64/ARM.
10298
10299 The change caused "info registers" to not print GPR's.
10300
10301 gdb/ChangeLog:
10302
10303 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10304
10305 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10306 when reg->group is empty and reggroup is not.
10307
1009d92f
TT
103082020-03-03 Tom Tromey <tromey@adacore.com>
10309
10310 * dwarf2/frame.c (struct dwarf2_frame_cache)
10311 <checked_tailcall_bottom, entry_cfa_sp_offset,
10312 entry_cfa_sp_offset_p>: Remove members.
10313 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10314 (dwarf2_frame_prev_register): Don't call
10315 dwarf2_tailcall_sniffer_first.
10316 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10317 * frame-unwind.c (add_unwinder): New fuction.
10318 (frame_unwind_init): Use it. Add tailcall unwinder.
10319
5e5d66b6
AB
103202020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10321 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10322
10323 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10324 value should be printed as true.
10325
584cf46d
HD
103262020-03-03 Hannes Domani <ssbssa@yahoo.de>
10327
10328 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10329 (windows_init_abi): Set and use windows_so_ops.
10330
7b973adc
SDJ
103312020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10332
10333 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10334 when verifying if dealing with a convenience variable.
10335
bb7b70ab
LM
103362020-03-03 Luis Machado <luis.machado@linaro.org>
10337
10338 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10339
9822cb57
SM
103402020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10341
10342 * infrun.c (gdbarch_supports_displaced_stepping): New.
10343 (use_displaced_stepping): Break up conditions in smaller pieces.
10344 Use gdbarch_supports_displaced_stepping.
10345 (displaced_step_prepare_throw): Use
10346 gdbarch_supports_displaced_stepping.
10347
63e163f2
AB
103482020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10349
10350 * NEWS: Mention new behaviour of the history filename.
10351 * top.c (write_history_p): Add comment.
10352 (show_write_history_p): Add header comment, give a different
10353 message when history writing is on, but the history filename is
10354 empty.
10355 (history_filename): Add comment.
10356 (history_filename_empty): New function.
10357 (show_history_filename): Add header comment, give a different
10358 message when the filename is empty.
10359 (init_history): Compare history_filename against nullptr, and only
10360 read history if the filename is not empty.
10361 (set_history_filename): Add header comment, and only make
10362 non-empty filenames absolute.
10363 (init_main): Make the filename argument to 'set history filename'
10364 optional.
10365
81b86b97
CB
103662020-03-02 Christian Biesinger <cbiesinger@google.com>
10367
10368 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10369 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10370 (fetch_fp_register): Update.
10371 (fetch_fp_regs): Update.
10372 (store_fp_register): Update.
10373 (store_fp_regs): Update.
10374 (arm_netbsd_nat_target::read_description): New function.
10375 (fetch_elfcore_registers): Update.
10376
24ed6739
AB
103772020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10380 general_thread if the stop reply is missing a thread-id.
10381 (remote_target::process_stop_reply): Use the first non-exited
10382 thread if the target didn't pass a thread-id.
10383 * infrun.c (do_target_wait): Move call to
10384 switch_to_inferior_no_thread to ....
10385 (do_target_wait_1): ... here.
10386
a84bb2a0
JT
103872020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10388
10389 * debuginfod-support.c: Include defs.h first.
10390
658dadf0
TV
103912020-02-28 Tom de Vries <tdevries@suse.de>
10392
10393 * symfile.c (set_initial_language): Use default language for lookup.
10394
4ebe4877
SM
103952020-02-28 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10398 reader variable, pass `this` to read_cutu_die_from_dwo.
10399
e5da1139
AM
104002020-02-27 Aaron Merey <amerey@redhat.com>
10401
10402 * source.c (open_source_file): Check for nullptr when computing
10403 srcpath.
10404
317f7127
TT
104052020-02-27 Tom Tromey <tromey@adacore.com>
10406
10407 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10408 member.
10409 (dwarf2_add_field): Don't update nfields.
10410 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10411
3104d9ee
AB
104122020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10413
10414 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10415 abs.
10416
b83470bf
TT
104172020-02-26 Tom Tromey <tom@tromey.com>
10418
10419 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10420 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10421 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10422 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10423 per_cu_data.
10424
edfe0a0c
TT
104252020-02-26 Tom Tromey <tom@tromey.com>
10426
10427 * dwarf2/index-write.c (psym_index_map): Change type.
10428 (add_address_entry_worker, write_one_signatured_type)
10429 (recursively_count_psymbols, recursively_write_psymbols)
10430 (class debug_names, psyms_seen_size, write_gdbindex)
10431 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10432
0d79cdc4
AM
104332020-02-26 Aaron Merey <amerey@redhat.com>
10434
10435 * Makefile.in: Handle optional debuginfod support.
10436 * NEWS: Update.
10437 * README: Add --with-debuginfod summary.
10438 * config.in: Regenerate.
10439 * configure: Regenerate.
10440 * configure.ac: Handle optional debuginfod support.
10441 * debuginfod-support.c: debuginfod helper functions.
10442 * debuginfod-support.h: Ditto.
10443 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10444 summary.
10445 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10446 when a dwz file cannot be found.
10447 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10448 debuginfo file cannot be found.
10449 * source.c (open_source_file): Query debuginfod servers when a
10450 source file cannot be found.
10451 * top.c (print_gdb_configuration): Include
10452 --{with,without}-debuginfod in the output.
10453
b65ce565
JG
104542020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10455
10456 * thread.c (thr_try_catch_cmd): Print thread name.
10457
d4c9a4f8
SM
104582020-02-26 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10461 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10462 dwarf2_fetch_die_type_sect_off): Move to...
10463 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10464 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10465 dwarf2_fetch_die_type_sect_off): ... here.
10466 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10467 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10468 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10469
0dce4280
TV
104702020-02-26 Tom de Vries <tdevries@suse.de>
10471
10472 PR gdb/25603
10473 * symfile.c (set_initial_language): Exit-early if
10474 language_mode == language_mode_manual.
10475
450a1bfc
SM
104762020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10477
10478 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10479 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10480 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10481
9e80cfa1
AB
104822020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10483
10484 * gdbtypes.c (create_array_type_with_stride): Handle negative
10485 array strides.
10486 * valarith.c (value_subscripted_rvalue): Likewise.
10487
09624f1f
LM
104882020-02-25 Luis Machado <luis.machado@linaro.org>
10489
10490 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10491
8cb5117c
SM
104922020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10493
10494 * loc.h (dwarf2_get_die_type): Move to...
10495 * read.h (dwarf2_get_die_type): ... here.
10496 * read.c (dwarf2_get_die_type): Move doc to header.
10497
c325c44e
JB
104982020-02-25 Joel Brobecker <brobecker@adacore.com>
10499
10500 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10501 'gnulib/Makefile.in' to the list.
10502
4ac93832
TT
105032020-02-24 Tom Tromey <tom@tromey.com>
10504
10505 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10506 Remove.
10507 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10508 XOBNEWVEC.
10509
197400e8
TT
105102020-02-24 Tom Tromey <tom@tromey.com>
10511
10512 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10513 New method.
10514 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10515 (dw2_do_instantiate_symtab, dw2_get_file_names)
10516 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10517
76935768
TT
105182020-02-24 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10521 make_scoped_restore.
10522 (dwarf2_psymtab::read_symtab): Don't clear
10523 reading_partial_symbols.
10524
a88ef40d
TV
105252020-02-24 Tom de Vries <tdevries@suse.de>
10526
10527 PR gdb/25592
10528 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10529
c9af6521
TV
105302020-02-24 Tom de Vries <tdevries@suse.de>
10531
10532 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10533 commands layout next/prev/regs.
10534
5707a07a
TT
105352020-02-22 Tom Tromey <tom@tromey.com>
10536
10537 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10538 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10539
3b0fb49e
TT
105402020-02-22 Tom Tromey <tom@tromey.com>
10541
10542 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10543
283be8bf
TT
105442020-02-22 Tom Tromey <tom@tromey.com>
10545
10546 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10547 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10548 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10549 * tui/tui.c (_initialize_tui): Add usage text.
10550
ca793b96
TT
105512020-02-22 Tom Tromey <tom@tromey.com>
10552
10553 * tui/tui-win.c (tui_set_focus_command)
10554 (tui_set_win_height_command): Use error_no_arg.
10555 (_initialize_tui_win): Update help text.
10556 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10557
432b5c40
TT
105582020-02-22 Tom Tromey <tom@tromey.com>
10559
10560 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10561 * tui/tui-disasm.h (struct tui_disasm_window)
10562 <display_start_addr>: Declare.
10563 * tui/tui-source.h (struct tui_source_window)
10564 <display_start_addr>: Declare.
10565 * tui/tui-winsource.h (struct tui_source_window_base)
10566 <show_source_line, display_start_addr>: New methods.
10567 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10568 Rename and move to protected section.
10569 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10570 (tui_source_window_base::do_erase_source_content): Update.
10571 (tui_source_window_base::show_source_line): Now a method.
10572 (tui_source_window_base::show_source_content)
10573 (tui_source_window_base::tui_source_window_base)
10574 (tui_source_window_base::rerender)
10575 (tui_source_window_base::refill)
10576 (tui_source_window_base::do_scroll_horizontal)
10577 (tui_source_window_base::set_is_exec_point_at)
10578 (tui_source_window_base::update_breakpoint_info)
10579 (tui_source_window_base::update_exec_info): Update.
10580 * tui/tui-source.c (tui_source_window::set_contents)
10581 (tui_source_window::showing_source_p)
10582 (tui_source_window::do_scroll_vertical)
10583 (tui_source_window::location_matches_p)
10584 (tui_source_window::line_is_displayed): Update.
10585 (tui_source_window::display_start_addr): New method.
10586 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10587 (tui_disasm_window::do_scroll_vertical)
10588 (tui_disasm_window::location_matches_p): Update.
10589 (tui_disasm_window::display_start_addr): New method.
10590
01b1af32
TT
105912020-02-22 Tom Tromey <tom@tromey.com>
10592
10593 * NEWS: Add entry for gdb.register_window_type.
10594 * tui/tui-layout.h (window_factory): New typedef.
10595 (tui_register_window): Declare.
10596 * tui/tui-layout.c (saved_tui_windows): New global.
10597 (tui_apply_current_layout): Use it.
10598 (tui_register_window): New function.
10599 * python/python.c (do_start_initialization): Call
10600 gdbpy_initialize_tui.
10601 (python_GdbMethods): Add "register_window_type" function.
10602 * python/python-internal.h (gdbpy_register_tui_window)
10603 (gdbpy_initialize_tui): Declare.
10604 * python/py-tui.c: New file.
10605 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10606
fc96d20b
TT
106072020-02-22 Tom Tromey <tom@tromey.com>
10608
10609 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10610
935c78c0
TT
106112020-02-22 Tom Tromey <tom@tromey.com>
10612
10613 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10614 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10615 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10616 (tui_set_win_focus_to): Move from tui-win.c.
10617
0240c8f1
TT
106182020-02-22 Tom Tromey <tom@tromey.com>
10619
10620 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10621 functions.
10622 (known_window_types): New global.
10623 (tui_get_window_by_name): Reimplement.
10624 (initialize_known_windows): New function.
10625 (validate_window_name): Rewrite.
10626 (_initialize_tui_layout): Call initialize_known_windows.
10627
fdb01f0c
TT
106282020-02-22 Tom Tromey <tom@tromey.com>
10629
10630 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10631 Remove constants.
10632 * tui/tui-winsource.h (struct tui_source_window_base)
10633 <tui_source_window_base>: Remove parameter.
10634 * tui/tui-winsource.c
10635 (tui_source_window_base::tui_source_window_base): Remove
10636 parameter.
10637 (tui_source_window_base::refill): Update.
10638 * tui/tui-stack.h (struct tui_locator_window)
10639 <tui_locator_window>: Update.
10640 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10641 Default the constructor.
10642 * tui/tui-regs.h (struct tui_data_item_window)
10643 <tui_data_item_window>: Default the constructor.
10644 (struct tui_data_window) <tui_data_window>: Likewise.
10645 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10646 Default the constructor.
10647 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10648 Default the constructor.
10649 <type>: Remove.
10650 (struct tui_win_info) <tui_win_info>: Default the constructor.
10651 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10652 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10653 Default the constructor.
10654
865a5aec
TT
106552020-02-22 Tom Tromey <tom@tromey.com>
10656
10657 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10658 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10659 * tui/tui-win.c (tui_resize_all): Don't call
10660 tui_delete_invisible_windows.
10661 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10662 done.
10663 (tui_set_layout): Update.
10664 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10665 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10666 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10667
e098d18c
TT
106682020-02-22 Tom Tromey <tom@tromey.com>
10669
10670 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10671 correctly.
10672
eb9c8874
TT
106732020-02-22 Tom Tromey <tom@tromey.com>
10674
10675 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10676
7eed1a8e
TT
106772020-02-22 Tom Tromey <tom@tromey.com>
10678
10679 * tui/tui-winsource.h (struct tui_source_window_iterator)
10680 <inner_iterator>: New etytypedef.
10681 <tui_source_window_iterator>: Take "end" parameter.
10682 <tui_source_window_iterator>: Take iterator.
10683 <operator*, advance>: Update.
10684 <m_iter>: Change type.
10685 <m_end>: New field.
10686 (struct tui_source_windows) <begin, end>: Update.
10687 * tui/tui-layout.c (tui_windows): New global.
10688 (tui_apply_current_layout): Clear tui_windows.
10689 (tui_layout_window::apply): Update tui_windows.
10690 * tui/tui-data.h (tui_windows): Declare.
10691 (all_tui_windows): Now inline function.
10692 (class tui_window_iterator, struct all_tui_windows): Remove.
10693
7c043ba6
TT
106942020-02-22 Tom Tromey <tom@tromey.com>
10695
10696 PR tui/17850:
10697 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10698 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10699 "height" argument.
10700 (class tui_layout_window) <get_sizes>: Likewise.
10701 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10702 argument.
10703 <get_sizes>: Add "height" argument.
10704 <m_vertical>: New field.
10705 * tui/tui-layout.c (tui_layout_split::clone): Update.
10706 (tui_layout_split::get_sizes): Add "height" argument.
10707 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10708 (tui_new_layout_command): Parse "-horizontal".
10709 (_initialize_tui_layout): Update help string.
10710 (tui_layout_split::specification): Add "-horizontal" when needed.
10711 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10712 argument.
10713 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10714 New methods.
10715
6bc56648
TT
107162020-02-22 Tom Tromey <tom@tromey.com>
10717
10718 * tui/tui-layout.h (enum tui_adjust_result): New.
10719 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10720 (class tui_layout_window) <adjust_size>: Return
10721 tui_adjust_result. Rewrite.
10722 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10723 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10724
c22fef7e
TT
107252020-02-22 Tom Tromey <tom@tromey.com>
10726
10727 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10728 parameter and return types.
10729 (class tui_layout_base) <specification>: Add "depth".
10730 (class tui_layout_window) <specification>: Add "depth".
10731 (class tui_layout_split) <specification>: Add "depth".
10732 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10733 and return types.
10734 (tui_new_layout_command): Parse sub-layouts.
10735 (_initialize_tui_layout): Update help string.
10736 (tui_layout_window::specification): Add "depth".
10737 (add_layout_command): Update.
10738
ee325b61
TT
107392020-02-22 Tom Tromey <tom@tromey.com>
10740
10741 * NEWS: Add "tui new-layout" item.
10742 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10743 Add new-layout command to help text.
10744 (validate_window_name): New function.
10745 (tui_new_layout_command): New function.
10746 (_initialize_tui_layout): Register "new-layout".
10747 (tui_layout_window::specification): New method.
10748 (tui_layout_window::specification): New method.
10749 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10750 method.
10751 (class tui_layout_window) <specification>: New method.
10752 (class tui_layout_split) <specification>: New method.
10753
416eb92d
TT
107542020-02-22 Tom Tromey <tom@tromey.com>
10755
10756 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10757 * tui/tui-win.c (window_name_completer): Update comment.
10758 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10759 Declare method.
10760 (class tui_layout_window) <replace_window>: Likewise.
10761 (class tui_layout_split) <replace_window>: Likewise.
10762 (tui_set_layout): Don't declare.
10763 (tui_set_initial_layout): Declare function.
10764 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10765 (asm_regs_layout): New globals.
10766 (tui_current_layout, show_layout): Remove.
10767 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10768 (find_layout, tui_apply_layout): New function.
10769 (layout_completer): Remove.
10770 (tui_next_layout): Reimplement.
10771 (tui_next_layout_command): New function.
10772 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10773 (tui_regs_layout): Reimplement.
10774 (tui_regs_layout_command): New function.
10775 (extract_display_start_addr): Rewrite.
10776 (next_layout, prev_layout): Remove.
10777 (tui_layout_window::replace_window): New method.
10778 (tui_layout_split::replace_window): New method.
10779 (destroy_layout): New function.
10780 (layout_list): New global.
10781 (add_layout_command): New function.
10782 (initialize_layouts): Update.
10783 (tui_layout_command): New function.
10784 (_initialize_tui_layout): Install "layout" commands.
10785 * tui/tui-data.h (enum tui_layout_type): Remove.
10786 (tui_current_layout): Don't declare.
10787
0dbc2fc7
TT
107882020-02-22 Tom Tromey <tom@tromey.com>
10789
10790 * tui/tui-regs.c (tui_reg_layout): Remove.
10791 (tui_reg_command): Use tui_regs_layout.
10792 * tui/tui-layout.h (tui_reg_command): Declare.
10793 * tui/tui-layout.c (tui_reg_command): New function.
10794
5afe342e
TT
107952020-02-22 Tom Tromey <tom@tromey.com>
10796
10797 * tui/tui.c (tui_rl_delete_other_windows): Call
10798 tui_remove_some_windows.
10799 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10800 Declare method.
10801 (class tui_layout_window) <remove_windows>: New method.
10802 (class tui_layout_split) <remove_windows>: Declare.
10803 (tui_remove_some_windows): Declare.
10804 * tui/tui-layout.c (tui_remove_some_windows): New function.
10805 (tui_layout_split::remove_windows): New method.
10806
427326a8
TT
108072020-02-22 Tom Tromey <tom@tromey.com>
10808
10809 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10810 * tui/tui-layout.h (tui_next_layout): Declare.
10811 * tui/tui-layout.c (tui_next_layout): New function.
10812
3fe12b6d
TT
108132020-02-22 Tom Tromey <tom@tromey.com>
10814
10815 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10816 correct coordinates.
10817
59b8b5d2
TT
108182020-02-22 Tom Tromey <tom@tromey.com>
10819
10820 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10821 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10822 DATA_WIN case.
10823
2a3d458b
TT
108242020-02-22 Tom Tromey <tom@tromey.com>
10825
10826 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10827 TUI_DISASM_WIN, not tui_win_list.
10828
3f0cbb04
TT
108292020-02-22 Tom Tromey <tom@tromey.com>
10830
10831 * valprint.c (generic_val_print_enum_1)
10832 (val_print_type_code_flags): Style member names.
10833 * rust-lang.c (val_print_struct, rust_print_enum)
10834 (rust_print_struct_def, rust_internal_print_type): Style member
10835 names.
10836 * p-valprint.c (pascal_object_print_value_fields): Style member
10837 names. Only call fprintf_symbol_filtered for static members.
10838 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10839 * f-valprint.c (f_val_print): Style member names.
10840 * f-typeprint.c (f_type_print_base): Style member names.
10841 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10842 call fprintf_symbol_filtered for static members.
10843 (cp_print_class_member): Style member names.
10844 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10845 member names.
10846 * ada-valprint.c (ada_print_scalar): Style enum names.
10847 (ada_val_print_enum): Likewise.
10848 * ada-typeprint.c (print_enum_type): Style enum names.
10849
d4d947ae
TT
108502020-02-21 Tom Tromey <tom@tromey.com>
10851
10852 * psympriv.h (struct partial_symtab): Update comment.
10853
e94e944b
TT
108542020-02-21 Tom Tromey <tromey@adacore.com>
10855
10856 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10857 type is CORE_ADDR.
10858
1eb73179
TV
108592020-02-21 Tom de Vries <tdevries@suse.de>
10860
10861 PR gdb/25534
10862 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10863 if dependencies[i]->user != NULL.
10864
4f180d53
AT
108652020-02-21 Ali Tamur <tamur@google.com>
10866
10867 * dwarf2/read.c (dwarf2_name): Add null check.
10868
22b6cd70
TT
108692020-02-20 Tom Tromey <tom@tromey.com>
10870
10871 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10872 ">=", in binary search.
10873 (dwarf2_find_containing_comp_unit): New overload.
10874 (run_test): New self-test.
10875 (_initialize_dwarf2_read): Register new test.
10876
bd0cf5a6
NC
108772020-02-20 Nelson Chu <nelson.chu@sifive.com>
10878
10879 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10880 * riscv-tdep.h: Likewise.
10881 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10882 rv32-only CSR.
10883 * features/riscv/64bit-csr.xml: Regenerated.
10884
3f702acd
SDJ
108852020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10886 Tom Tromey <tom@tromey.com>
10887
10888 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10889 of 'fputc_unfiltered'.
10890 (putchar_unfiltered): Call 'fputc_unfiltered'.
10891 (fputc_unfiltered): Call 'fputs_unfiltered'.
10892
d13c7322
AB
108932020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 * config.in: Regenerate.
10896 * configure: Regenerate.
10897 * configure.ac: Add --with-python-libdir option.
10898 * main.c: Use WITH_PYTHON_LIBDIR.
10899
869d8950
TT
109002020-02-19 Tom Tromey <tom@tromey.com>
10901
10902 * symtab.c (general_symbol_info::compute_and_set_names): Use
10903 obstack_strndup. Simplify call to symbol_set_demangled_name.
10904
298e9637
SM
109052020-02-19 Simon Marchi <simon.marchi@efficios.com>
10906
10907 * dwarf2/read.c (allocate_signatured_type_table,
10908 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10909 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10910 Remove objfile parameter, update all callers.
10911
08410482
DE
109122020-02-19 Doug Evans <dje@google.com>
10913
10914 PR rust/25535
10915 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10916 rust_enum_variant calculation.
10917
dfdeeca1
TT
109182020-02-19 Tom Tromey <tromey@adacore.com>
10919
10920 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10921
2ef5453b
TT
109222020-02-19 Tom Tromey <tromey@adacore.com>
10923
10924 * ada-lang.c (cache_symbol): Use obstack_strdup.
10925
9f1528a1
AB
109262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * configure: Regenerate.
10929
d3c22fa8
TT
109302020-02-19 Tom Tromey <tromey@adacore.com>
10931
10932 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10933 NULL check.
10934
bf84f706
MR
109352020-02-19 Maciej W. Rozycki <macro@wdc.com>
10936
10937 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10938
d1c9b20f
AB
109392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10940
10941 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10942 if GDBSERVER is not defined.
10943 (riscv_tdesc_cache): Likewise, also store const target_desc.
10944 (STATIC_IN_GDB): Define.
10945 (riscv_create_target_description): Update declaration with
10946 STATIC_IN_GDB.
10947 (riscv_lookup_target_description): New function, only define if
10948 GDBSERVER is not defined.
10949 * arch/riscv.h (riscv_create_target_description): Declare only
10950 when GDBSERVER is defined.
10951 (riscv_lookup_target_description): New declaration when GDBSERVER
10952 is not defined.
10953 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10954 (riscv_linux_read_features): ...this, and return
10955 riscv_gdbarch_features instead of target_desc.
10956 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10957 (riscv_linux_read_description): Rename to...
10958 (riscv_linux_read_features): ...this.
10959 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10960 Update to use riscv_gdbarch_features and
10961 riscv_lookup_target_description.
10962 * riscv-tdep.c (riscv_find_default_target_description): Use
10963 riscv_lookup_target_description instead of
10964 riscv_create_target_description.
10965
373d7ac0
SM
109662020-02-18 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * valprint.c (generic_val_print_enum_1): When printing a flag
10969 enum with value 0 and there is no enumerator with value 0, print
10970 just "0" instead of "(unknown: 0x0)".
10971
b29a2df0
SM
109722020-02-18 Simon Marchi <simon.marchi@efficios.com>
10973
10974 * valprint.c (generic_val_print_enum_1): Print unknown part of
10975 flag enum in hex.
10976
6740f0cc
SM
109772020-02-18 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10980 flag enums to contain duplicate enumerators.
10981 * valprint.c (generic_val_print_enum_1): Update comment.
10982
edd45eb0
SM
109832020-02-18 Simon Marchi <simon.marchi@efficios.com>
10984
10985 * dwarf2/read.c: Include "count-one-bits.h".
10986 (update_enumeration_type_from_children): If an enumerator has
10987 multiple bits set, don't treat the enumeration as a "flag enum".
10988 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10989 of flag enums have 0 or 1 bit set.
10990
6d0cf446
BE
109912020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10992
10993 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10994 conversion.
10995 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10996 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10997 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10998 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10999 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11000
7001c1b7
SM
110012020-02-18 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11004
fdb61c6c
SM
110052020-02-14 Simon Marchi <simon.marchi@efficios.com>
11006
11007 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11008 displaced_step_closure_up.
11009 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11010 (struct displaced_step_closure_up):
11011 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11012 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11013 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11014 Likewise.
11015 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11016 * gdbarch.c, gdbarch.h: Re-generate.
11017 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11018 displaced_step_closure_up.
11019 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11020 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11021 * infrun.h (displaced_step_closure_up): New type alias.
11022 (struct displaced_step_inferior_state) <step_closure>: Change
11023 type to displaced_step_closure_up.
11024 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11025 displaced_step_closure_up.
11026 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11027
a4a38eb4
TT
110282020-02-14 Tom Tromey <tom@tromey.com>
11029
11030 * minidebug.c (gnu_debug_key): New global.
11031 (find_separate_debug_file_in_section): Use it.
11032
e8217e61
SM
110332020-02-14 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11036 std::unique_ptr.
11037 * gdbarch.c: Re-generate.
11038 * gdbarch.h: Re-generate.
11039 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11040 change.
11041 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11042 type to std::unique_ptr.
11043 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11044 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11045 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11046 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11047 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11048 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11049 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11050 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11051 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11052
d8d83535
SM
110532020-02-14 Simon Marchi <simon.marchi@efficios.com>
11054
11055 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11056 std::unique_ptr.
11057 (displaced_step_clear): Rename to...
11058 (displaced_step_reset): ... this. Just call displaced->reset ().
11059 (displaced_step_clear_cleanup): Rename to...
11060 (displaced_step_reset_cleanup): ... this.
11061 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11062 (displaced_step_fixup): Likewise.
11063 (resume_1): Likewise.
11064 (handle_inferior_event): Restore child's memory before calling
11065 displaced_step_fixup on the parent.
11066 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11067 to std::unique_ptr.
11068 <step_closure>: Change type to std::unique_ptr.
11069
5f661e03
SM
110702020-02-14 Simon Marchi <simon.marchi@efficios.com>
11071
11072 * arm-tdep.c: Include count-one-bits.h.
11073 (cleanup_block_store_pc): Use count_one_bits.
11074 (cleanup_block_load_pc): Use count_one_bits.
11075 (arm_copy_block_xfer): Use count_one_bits.
11076 (thumb2_copy_block_xfer): Use count_one_bits.
11077 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11078 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11079 (thumb_get_next_pcs_raw): Use count_one_bits.
11080 (arm_get_next_pcs_raw): Use count_one_bits_l.
11081 * arch/arm.c (bitcount): Remove.
11082 * arch/arm.h (bitcount): Remove.
11083
8084e579
TT
110842020-02-14 Tom Tromey <tromey@adacore.com>
11085
11086 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11087 Update.
11088 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11089 * dwarf2/loc.c (call_site_find_chain_1): Return
11090 unique_xmalloc_ptr.
11091 (call_site_find_chain): Likewise.
11092
258bf0ee
RB
110932020-02-14 Richard Biener <rguenther@suse.de>
11094
11095 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11096 on expression with division operators.
11097
f98a8458
AKS
110982020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11099
11100 * MAINTAINERS (Write After Approval): Adding myself.
11101
d1437c0e
TT
111022020-02-12 Tom Tromey <tom@tromey.com>
11103
11104 * event-loop.c (event_data, gdb_event, event_handler_func):
11105 Remove.
11106
3d4560f7
TT
111072020-02-12 Tom Tromey <tom@tromey.com>
11108
11109 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11110 (dwarf2_frame_objfile_data): Add comment.
11111 (find_comp_unit, set_comp_unit): New functions.
11112 (dwarf2_frame_find_fde): Use find_comp_unit.
11113 (dwarf2_build_frame_info): Use set_comp_unit.
11114
21982304
TT
111152020-02-12 Tom Tromey <tom@tromey.com>
11116
11117 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11118 (comp_unit): Don't initialize objfile.
11119 (execute_cfa_program): Add text_offset parameter.
11120 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11121 (dwarf2_frame_cache): Update.
11122 (dwarf2_build_frame_info): Don't set "objfile" member.
11123
4debb237
TT
111242020-02-12 Tom Tromey <tom@tromey.com>
11125
11126 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11127 (decode_frame_entry): Likewise.
11128 (dwarf2_build_frame_info): Update.
11129
0d404d44
TT
111302020-02-12 Tom Tromey <tom@tromey.com>
11131
11132 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11133 (decode_frame_entry_1): Use the comp_unit obstack.
11134
a7a3ae5c
TT
111352020-02-12 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/frame.c (struct comp_unit): Add initializers and
11138 constructor.
11139 (dwarf2_frame_objfile_data): Store a comp_unit.
11140 (dwarf2_frame_find_fde): Update.
11141 (dwarf2_build_frame_info): Use "new".
11142
a9d65418
TT
111432020-02-12 Tom Tromey <tom@tromey.com>
11144
11145 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11146 (dwarf2_fde_table): Typedef for std::vector.
11147 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11148 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11149 (decode_frame_entry): Update.
11150 (dwarf2_build_frame_info): Use "new".
11151
7559c217
CB
111522020-02-12 Christian Biesinger <cbiesinger@google.com>
11153
11154 * arm-tdep.c (arm_gdbarch_init): Update.
11155 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11156 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11157 have_neon, is_m>: Change to bool.
11158
aeefc73c
CB
111592020-02-12 Christian Biesinger <cbiesinger@google.com>
11160
11161 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11162
d27b8e5f
TT
111632020-02-12 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11166
cd5900f3
HD
111672020-02-12 Hannes Domani <ssbssa@yahoo.de>
11168
11169 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11170 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11171
f056b22b
TT
111722020-02-11 Tom Tromey <tom@tromey.com>
11173
11174 * psymtab.h: Update comment.
11175
f92ff6b5
TT
111762020-02-11 Tom Tromey <tom@tromey.com>
11177
11178 * gdb_obstack.h (struct auto_obstack): Use
11179 DISABLE_COPY_AND_ASSIGN.
11180
3fd6912b
TT
111812020-02-11 Tom Tromey <tom@tromey.com>
11182
11183 * dwarf2/frame.h (struct objfile): Don't forward declare.
11184
69ed9b74
CB
111852020-02-11 Christian Biesinger <cbiesinger@google.com>
11186
11187 * cris-tdep.c (cris_supply_gregset): Change signature to match
11188 what struct regset expects.
11189 (cris_regset): New struct.
11190 (fetch_core_registers): Remove.
11191 (cris_iterate_over_regset_sections): New function.
11192 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11193 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11194
bda874f6
CB
111952020-02-11 Christian Biesinger <cbiesinger@google.com>
11196
11197 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11198 registers.
11199
754e1564
CB
112002020-02-11 Christian Biesinger <cbiesinger@google.com>
11201
11202 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11203
8ddd8e0e
SM
112042020-02-11 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * configure: Re-generate.
11207
898e7f60
SM
112082020-02-11 Simon Marchi <simon.marchi@efficios.com>
11209
11210 * configure: Re-generate.
11211
58df732b
SM
112122020-02-11 Simon Marchi <simon.marchi@efficios.com>
11213
11214 * acinclude: Update warning.m4 path.
11215 * warning.m4: Move to gdbsupport.
11216
da5bd37e
TT
112172020-02-11 Tom Tromey <tromey@adacore.com>
11218
11219 * remote.c (remote_console_output): Update.
11220 * printcmd.c (printf_command): Update.
11221 * event-loop.c (gdb_wait_for_event): Update.
11222 * linux-nat.c (sigchld_handler): Update.
11223 * remote-sim.c (gdb_os_write_stdout): Update.
11224 (gdb_os_flush_stdout): Update.
11225 (gdb_os_flush_stderr): Update.
11226 (gdb_os_write_stderr): Update.
11227 * exceptions.c (print_exception): Update.
11228 * remote-fileio.c (remote_fileio_func_read): Update.
11229 (remote_fileio_func_write): Update.
11230 * tui/tui.c (tui_enable): Update.
11231 * tui/tui-interp.c (tui_interp::init): Update.
11232 * utils.c (init_page_info): Update.
11233 (putchar_unfiltered, fputc_unfiltered): Update.
11234 (gdb_flush): Update.
11235 (emit_style_escape): Update.
11236 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11237 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11238 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11239 (stderr_file::write): Update.
11240 (stderr_file::puts): Update.
11241 * ui-file.h (ui_file_isatty, ui_file_write)
11242 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11243 (ui_file_puts): Don't declare.
11244
85f0dd3c
TV
112452020-02-10 Tom de Vries <tdevries@suse.de>
11246
11247 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11248 sentinel to char *.
11249
2e927613
TV
112502020-02-09 Tom de Vries <tdevries@suse.de>
11251
11252 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11253 filename if it matches "<artificial>".
11254
6bafc845
HD
112552020-02-09 Hannes Domani <ssbssa@yahoo.de>
11256
11257 * windows-tdep.c (struct enum_value_name): New struct.
11258 (create_enum): New function.
11259 (windows_get_siginfo_type): Create and use enum types.
11260
7928d571
HD
112612020-02-09 Hannes Domani <ssbssa@yahoo.de>
11262
11263 * NEWS: Mention $_siginfo support for Windows.
11264 * windows-nat.c (handle_exception): Set siginfo_er.
11265 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11266 (windows_xfer_siginfo): New function.
11267 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11268 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11269 (init_windows_gdbarch_data): New function.
11270 (get_windows_gdbarch_data): New function.
11271 (windows_get_siginfo_type): New function.
11272 (windows_init_abi): Register windows_get_siginfo_type.
11273 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11274
6751ebae
TT
112752020-02-08 Tom Tromey <tom@tromey.com>
11276
11277 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11278 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11279 <keep>: Declare method.
11280 <m_keep>: Remove member.
11281 <~cutu_reader>: Remove.
11282 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11283 (cutu_reader::cutu_reader): Update.
11284 (cutu_reader::keep): Rename from ~cutu_reader.
11285 (process_psymtab_comp_unit, build_type_psymtabs_1)
11286 (process_skeletonless_type_unit, load_partial_comp_unit)
11287 (load_full_comp_unit, dwarf2_read_addr_index)
11288 (read_signatured_type): Update.
11289
135f5437
TT
112902020-02-08 Tom Tromey <tom@tromey.com>
11291
11292 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11293 "want_partial_unit" parameter.
11294 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11295 Inline check for DW_TAG_partial_unit.
11296 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11297
9f66ff1c
TT
112982020-02-08 Tom Tromey <tom@tromey.com>
11299
11300 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11301 read.c.
11302 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11303 read.c.
11304
c8a7a66f
TT
113052020-02-08 Tom Tromey <tom@tromey.com>
11306
11307 * dwarf2/read.c (read_address): Move to comp-unit.c.
11308 (dwarf2_rnglists_process, dwarf2_ranges_process)
11309 (read_attribute_value, dwarf_decode_lines_1)
11310 (var_decode_location, decode_locdesc): Update.
11311 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11312 read.c. Remove "cu" parameter.
11313 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11314 method.
11315
8266302d
TT
113162020-02-08 Tom Tromey <tom@tromey.com>
11317
11318 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11319 (read_indirect_line_string): Update.
11320 * dwarf2/comp-unit.c (read_offset): Remove.
11321 (read_comp_unit_head): Update.
11322 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11323 method.
11324 (read_offset): Don't declare.
11325
4057dfde
TT
113262020-02-08 Tom Tromey <tom@tromey.com>
11327
11328 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11329 * dwarf2/read.c (struct comp_unit_head): Move to
11330 dwarf2/comp-unit.h.
11331 (enum class rcuh_kind): Move to comp-unit.h.
11332 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11333 (read_comp_unit_head, error_check_comp_unit_head)
11334 (read_and_check_comp_unit_head): Move to comp-unit.c.
11335 (read_offset, dwarf_unit_type_name): Likewise.
11336 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11337 (cutu_reader::cutu_reader, read_call_site_scope)
11338 (find_partial_die, follow_die_offset): Update.
11339 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11340
24aa364d
TT
113412020-02-08 Tom Tromey <tom@tromey.com>
11342
11343 * dwarf2/read.c (read_offset_1): Move to leb.c.
11344 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11345 (dwarf_decode_macro_bytes): Update.
11346 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11347 * dwarf2/leb.h (read_offset): Declare.
11348
2c7d5afc
TT
113492020-02-08 Tom Tromey <tom@tromey.com>
11350
11351 * dwarf2/read.c (dwarf2_section_size): Remove.
11352 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11353 Update.
11354 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11355
4075cb26
TT
113562020-02-08 Tom Tromey <tom@tromey.com>
11357
11358 * dwarf2/read.c (read_initial_length): Move to leb.c.
11359 * dwarf2/leb.h (read_initial_length): Declare.
11360 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11361 handle_nonstd parameter.
11362 * dwarf2/frame.c (read_initial_length): Remove.
11363 (decode_frame_entry_1): Update.
11364
09ba997f
TT
113652020-02-08 Tom Tromey <tom@tromey.com>
11366
11367 * dwarf2/loc.c (dwarf2_find_location_expression)
11368 (dwarf_evaluate_loc_desc::get_tls_address)
11369 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11370 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11371 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11372 (dwarf2_compile_property_to_c)
11373 (dwarf2_loc_desc_get_symbol_read_needs)
11374 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11375 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11376 (loclist_describe_location, loclist_tracepoint_var_ref)
11377 (loclist_generate_c_location): Update.
11378 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11379 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11380 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11381 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11382 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11383 (dwarf2_per_cu_data::addr_size)
11384 (dwarf2_per_cu_data::ref_addr_size)
11385 (dwarf2_per_cu_data::text_offset)
11386 (dwarf2_per_cu_data::addr_type): Now methods.
11387 (per_cu_header_read_in): Make per_cu "const".
11388 (dwarf2_version): Remove.
11389 (dwarf2_per_cu_data::int_type): Now a method.
11390 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11391 (set_die_type, read_array_type, read_subrange_index_type)
11392 (read_tag_string_type, read_subrange_type): Update.
11393 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11394 offset_size, ref_addr_size, text_offset, addr_type, version,
11395 objfile, int_type, addr_sized_int_type>: Declare methods.
11396
96c738c0
TT
113972020-02-08 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11400 Move earlier.
11401
8fdd972c
TT
114022020-02-08 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2/read.h (dwarf_line_debug): Declare.
11405 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11406 * dwarf2/read.c: Move line_header code to new files.
11407 (dwarf_line_debug): No longer static.
11408 * dwarf2/line-header.c: New file.
11409 * dwarf2/line-header.h: New file.
11410
03075812
TT
114112020-02-08 Tom Tromey <tom@tromey.com>
11412
11413 * dwarf2/read.c (struct line_header) <file_full_name,
11414 file_file_name>: Return unique_xmalloc_ptr.
11415 (line_header::file_file_name): Update.
11416 (line_header::file_full_name): Update.
11417 (dw2_get_file_names_reader): Update.
11418 (macro_start_file): Update.
11419
bb822404
TT
114202020-02-08 Tom Tromey <tom@tromey.com>
11421
11422 * dwarf2/read.c (struct line_header) <file_full_name,
11423 file_file_name>: Declare methods.
11424 (dw2_get_file_names_reader): Update.
11425 (file_file_name): Now a method.
11426 (file_full_name): Likewise.
11427 (macro_start_file): Update.
11428
009b64fc
TT
114292020-02-08 Tom Tromey <tom@tromey.com>
11430
11431 * dwarf2/read.c (dwarf_always_disassemble)
11432 (show_dwarf_always_disassemble): Move to loc.c.
11433 (_initialize_dwarf2_read): Move "always-disassemble" registration
11434 to loc.c.
11435 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11436 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11437 static.
11438 (show_dwarf_always_disassemble): Move from read.c.
11439 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11440
5895093f
TT
114412020-02-08 Tom Tromey <tom@tromey.com>
11442
11443 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11444 (create_quick_file_names_table): Return htab_up.
11445 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11446 Update.
11447 * dwarf2/read.h (struct dwarf2_per_objfile)
11448 <quick_file_names_table>: Now htab_up.
11449
b3b32279
TT
114502020-02-08 Tom Tromey <tom@tromey.com>
11451
11452 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11453
1d33d811
TT
114542020-02-08 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11457 Rewrite.
11458 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11459 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11460 (abbrev_table::abbrev_table): No longer inline.
11461 (ABBREV_HASH_SIZE): Remove.
11462 (abbrev_table::m_abbrevs): Now an htab_up.
11463
86de1d91
TT
114642020-02-08 Tom Tromey <tom@tromey.com>
11465
11466 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11467 (cutu_reader): Update.
11468 (build_type_psymtabs_1): Update.
11469 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11470 (abbrev_table::alloc_abbrev): Update.
11471 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11472 (abbrev_table::read): New static method, renamed from
11473 abbrev_table_read_table.
11474 (abbrev_table::alloc_abbrev)
11475 (abbrev_table::add_abbrev): Now private.
11476 (abbrev_table::abbrev_table): Now private.
11477 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11478
0335378b
TT
114792020-02-08 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11482 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11483 htab_up.
11484
48b490f2
TT
114852020-02-08 Tom Tromey <tom@tromey.com>
11486
11487 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11488 htab_up.
11489 (lookup_dwo_unit_in_dwp): Update.
11490 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11491 on obstack.
11492
bc68fb19
TT
114932020-02-08 Tom Tromey <tom@tromey.com>
11494
11495 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11496 obstack.
11497
d15acc42
TT
114982020-02-08 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11501 line_header_hash.
11502 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11503 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11504 Change type to htab_up.
11505
eaa5fa8b
TT
115062020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11509 htab_up. Don't allocate on obstack.
11510 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11511 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11512 Change type to htab_up.
11513
b0b6a987
TT
115142020-02-08 Tom Tromey <tom@tromey.com>
11515
11516 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11517 Change type to htab_up.
11518 * dwarf2/read.c (create_signatured_type_table_from_index)
11519 (create_signatured_type_table_from_debug_names)
11520 (create_all_type_units, add_type_unit)
11521 (lookup_dwo_signatured_type, lookup_signatured_type)
11522 (process_skeletonless_type_unit): Update.
11523 (create_debug_type_hash_table, create_debug_types_hash_table):
11524 Change type of types_htab.
11525 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11526 htab_up. Don't allocate on obstack.
11527 (create_cus_hash_table): Change type of cus_htab parameter.
11528 (struct dwo_file) <cus, tus>: Now htab_up.
11529 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11530 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11531 (queue_and_load_all_dwo_tus): Update.
11532 * dwarf2/index-write.c (write_gdbindex): Update.
11533 (write_debug_names): Update.
11534
39856def
TT
115352020-02-08 Tom Tromey <tom@tromey.com>
11536
11537 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11538 dwarf2/read.c. Remove "next" member. Add constructor ntad
11539 destructor.
11540 (struct dwarf2_per_objfile) <queue>: New member.
11541 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11542 dwarf2/read.h.
11543 (dwarf2_queue, dwarf2_queue_tail): Remove.
11544 (class dwarf2_queue_guard): Add parameter to constructor. Use
11545 DISABLE_COPY_AND_ASSIGN.
11546 <m_per_objfile>: New member.
11547 <~dwarf2_queue_guard>: Rewrite.
11548 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11549 Update.
11550 (~dwarf2_queue_item): New.
11551
3e225074
TT
115522020-02-08 Tom Tromey <tom@tromey.com>
11553
11554 * dwarf2/read.c (struct die_info) <has_children>: New member.
11555 (dw2_get_file_names_reader): Remove has_children.
11556 (dw2_get_file_names): Update.
11557 (read_cutu_die_from_dwo): Remove has_children.
11558 (cutu_reader::init_tu_and_read_dwo_dies)
11559 (cutu_reader::cutu_reader): Update.
11560 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11561 Remove has_children.
11562 (build_type_psymtabs_1, process_skeletonless_type_unit)
11563 (load_partial_comp_unit, load_full_comp_unit): Update.
11564 (create_dwo_cu_reader): Remove has_children.
11565 (create_cus_hash_table, read_die_and_children): Update.
11566 (read_full_die_1,read_full_die): Remove has_children.
11567 (read_signatured_type): Update.
11568 (class cutu_reader) <has_children>: Remove.
11569
82ca8957
TT
115702020-02-08 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/expr.c: Rename from dwarf2expr.c.
11573 * dwarf2/expr.h: Rename from dwarf2expr.h.
11574 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11575 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11576 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11577 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11578 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11579 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11580 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11581 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11582 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11583 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11584 * dwarf2/loc.c: Rename from dwarf2loc.c.
11585 * dwarf2/loc.h: Rename from dwarf2loc.h.
11586 * dwarf2/read.c: Rename from dwarf2read.c.
11587 * dwarf2/read.h: Rename from dwarf2read.h.
11588 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11589 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11590 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11591 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11592 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11593 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11594 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11595 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11596 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11597 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11598 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11599 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11600 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11601 Update.
11602 * Makefile.in (COMMON_SFILES): Update.
11603 (HFILES_NO_SRCDIR): Update.
11604
9e35d499
TT
116052020-02-08 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11608 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11609
1eba2311
TT
116102020-02-08 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2read.h (struct die_info): Don't declare.
11613
e41c2da2
TT
116142020-02-08 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2read.h (die_info_ptr): Remove typedef.
11617
4fc6c0d5
TT
116182020-02-08 Tom Tromey <tom@tromey.com>
11619
11620 * dwarf2read.c (read_call_site_scope)
11621 (handle_data_member_location, dwarf2_add_member_fn)
11622 (mark_common_block_symbol_computed, read_common_block)
11623 (attr_to_dynamic_prop, partial_die_info::read)
11624 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11625 (dwarf2_symbol_mark_computed, set_die_type): Update.
11626 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11627 method.
11628 (attr_form_is_block): Don't declare.
11629 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11630
cd6c91b4
TT
116312020-02-08 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2read.c (dwarf2_find_base_address, )
11634 (read_call_site_scope, rust_containing_type)
11635 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11636 (handle_data_member_location, dwarf2_add_member_fn)
11637 (get_alignment, read_structure_type, process_structure_scope)
11638 (mark_common_block_symbol_computed, read_common_block)
11639 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11640 (partial_die_info::read, read_attribute_value, new_symbol)
11641 (lookup_die_type, dwarf2_get_ref_die_offset)
11642 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11643 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11644 (dwarf2_symbol_mark_computed): Update.
11645 * dwarf2/attribute.h (struct attribute) <value_as_address,
11646 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11647 methods.
11648 (value_as_address, attr_form_is_section_offset)
11649 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11650 * dwarf2/attribute.c (attribute::value_as_address)
11651 (attribute::form_is_section_offset, attribute::form_is_constant)
11652 (attribute::form_is_ref): Now methods.
11653
162dce55
TT
116542020-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * dwarf2read.c (struct attribute, DW_STRING)
11657 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11658 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11659 (attr_form_is_block, attr_form_is_section_offset)
11660 (attr_form_is_constant, attr_form_is_ref): Move.
11661 * dwarf2/attribute.h: New file.
11662 * dwarf2/attribute.c: New file, from dwarf2read.c.
11663 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11664
3054dd54
TT
116652020-02-08 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11668 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11669 Move.
11670 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11671 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11672 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11673 abbrev.c.
11674 * dwarf2/abbrev.h: New file.
11675 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11676 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11677
96b79293
TT
116782020-02-08 Tom Tromey <tom@tromey.com>
11679
11680 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11681 (dwarf2_section_size, dwarf2_get_section_info)
11682 (create_signatured_type_table_from_debug_names)
11683 (create_addrmap_from_aranges, read_debug_names_from_section)
11684 (get_gdb_index_contents_from_section, read_comp_unit_head)
11685 (error_check_comp_unit_head, read_abbrev_offset)
11686 (create_debug_type_hash_table, init_cu_die_reader)
11687 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11688 (read_comp_units_from_section, create_cus_hash_table)
11689 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11690 (create_dwp_v2_section, dwarf2_rnglists_process)
11691 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11692 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11693 (read_indirect_string_from_dwz, read_addr_index_1)
11694 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11695 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11696 (fill_in_loclist_baton): Update.
11697 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11698 get_containing_section, get_bfd_owner, get_bfd_section,
11699 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11700 (dwarf2_read_section, get_section_name, get_section_file_name)
11701 (get_containing_section, get_section_bfd_owner)
11702 (get_section_bfd_section, get_section_name, get_section_file_name)
11703 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11704 declare.
11705 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11706 (dwarf2_section_info::get_bfd_owner)
11707 (dwarf2_section_info::get_bfd_section)
11708 (dwarf2_section_info::get_name)
11709 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11710 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11711 (dwarf2_section_info::read): Now methods.
11712 * dwarf-index-write.c (class debug_names): Update.
11713
2c86cff9
TT
117142020-02-08 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11717 Move to dwarf2/section.h.
11718 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11719 (get_section_bfd_section, get_section_name)
11720 (get_section_file_name, get_section_id, get_section_flags)
11721 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11722 dwarf2/section.c.
11723 * dwarf2/section.h: New file.
11724 * dwarf2/section.c: New file, from dwarf2read.c.
11725 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11726
f4382c45
TT
117272020-02-08 Tom Tromey <tom@tromey.com>
11728
11729 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11730 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11731 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11732 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11733 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11734 * dwarf2/leb.h: New file, from dwarf2read.c.
11735 * dwarf2/leb.c: New file, from dwarf2read.c.
11736 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11737 Remove.
11738 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11739 (COMMON_SFILES): Add dwarf2/leb.c.
11740
01840b7a
JB
117412020-02-08 Joel Brobecker <brobecker@adacore.com>
11742
11743 GDB 9.1 released.
11744
dfcb27e4
IB
117452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11746
11747 PR gdb/25190:
aac66a4c
SM
11748 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11749 * gdb/remote.c (remote_console_output): Update.
11750 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11751 (ui_file_puts): ...this.
11752 * gdb/ui-file.h (ui_file_puts): Add declaration.
11753 * gdb/utils.c (emit_style_escape): Update.
11754 (flush_wrap_buffer): Update.
11755 (fputs_maybe_filtered): Update.
11756 (fputs_unfiltered): Add function.
dfcb27e4 11757
faa17681
IB
117582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11759
aac66a4c
SM
11760 * gdb/event-loop.c (gdb_wait_for_event): Update.
11761 * gdb/printcmd.c (printf_command): Update.
11762 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11763 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11764 (gdb_os_flush_stderr): Update.
11765 * gdb/remote.c (remote_console_output): Update.
11766 * gdb/ui-file.c (gdb_flush): Rename to...
11767 (ui_file_flush): ...this.
11768 (stderr_file::write): Update.
11769 (stderr_file::puts): Update.
11770 * gdb/ui-file.h (gdb_flush): Rename to...
11771 (ui_file_flush): ...this.
11772 * gdb/utils.c (gdb_flush): Add function.
11773 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11774
5abbbe1d
TT
117752020-02-07 Tom Tromey <tromey@adacore.com>
11776
11777 PR breakpoints/24915:
11778 * source.c (find_and_open_source): Do not check basenames_may_differ.
11779
919adfe8
TT
117802020-02-07 Tom Tromey <tom@tromey.com>
11781
11782 * README: Update gdbserver documentation.
11783 * gdbserver: Move to top level.
11784 * configure.tgt (build_gdbserver): Remove.
11785 * configure.ac: Remove --enable-gdbserver.
11786 * configure: Rebuild.
11787 * Makefile.in (distclean): Don't mention gdbserver.
11788
1d5d29e7
SV
117892020-02-06 Shahab Vahedi <shahab@synopsys.com>
11790
11791 * source-cache.c (source_cache::ensure): Surround
11792 get_plain_source_lines with a try/catch.
11793 (source_cache::get_line_charpos): Get rid of try/catch
11794 and only check for the return value of "ensure".
11795 * tui/tui-source.c (tui_source_window::set_contents):
11796 Simplify "nlines" calculation.
11797
6eb1129c
SV
117982020-02-06 Shahab Vahedi <shahab@synopsys.com>
11799
11800 * MAINTAINERS (Write After Approval): Add myself.
11801
c6a42d11
CB
118022020-02-05 Christian Biesinger <cbiesinger@google.com>
11803
11804 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11805 function call.
11806
c8ecdda6
CB
118072020-02-05 Christian Biesinger <cbiesinger@google.com>
11808
11809 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11810
f6480e70
MR
118112020-02-05 Maciej W. Rozycki <macro@wdc.com>
11812
11813 * nat/riscv-linux-tdesc.h: New file.
11814 * nat/riscv-linux-tdesc.c: New file, taking code from...
11815 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11816 ... here.
11817 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11818 NATDEPFILES.
11819
dcc9fbc6
AB
118202020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11821
11822 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11823 we don't set the fake simulator ptid to the null_ptid.
11824
719546c4
SM
118252020-02-03 Simon Marchi <simon.marchi@efficios.com>
11826
11827 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11828 * gdbthread.h (class thread_info) <resumed>: Likewise.
11829 * infrun.c (resume_1): Likewise.
11830 (proceed): Likewise.
11831 (infrun_thread_stop_requested): Likewise.
11832 (stop_all_threads): Likewise.
11833 (handle_inferior_event): Likewise.
11834 (restart_threads): Likewise.
11835 (finish_step_over): Likewise.
11836 (keep_going_stepped_thread): Likewise.
11837 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11838 (linux_handle_extended_wait): Likewise.
11839 * record-btrace.c (get_thread_current_frame_id): Likewise.
11840 * record-full.c (record_full_wait_1): Likewise.
11841 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11842 * target.c (target_resume): Likewise.
11843 * thread.c (set_running_thread): Likewise.
11844
e409c542
AKS
118452020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11846
11847 * f-valprint.c (f77_print_array_1): Changed datatype of index
11848 variable to LONGEST from int to enable it to contain bound
11849 values correctly.
11850
ee98c0da
MR
118512020-02-03 Maciej W. Rozycki <macro@wdc.com>
11852
11853 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11854 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11855 offsets according to FLEN determined.
11856 (riscv_linux_nat_target::read_description): Determine FLEN
11857 dynamically.
11858 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11859 according to FLEN determined.
11860 (riscv_linux_nat_target::store_registers): Likewise.
11861
aa66aac4
SV
118622020-02-01 Shahab Vahedi <shahab@synopsys.com>
11863
11864 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11865 when reg->group is empty and reggroup is not.
11866
fd9faca8
TT
118672020-01-31 Tom Tromey <tromey@adacore.com>
11868
11869 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11870 Call beneath target's mourn_inferior after unpushing.
11871
42330a68
AB
118722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11873
11874 PR tui/9765
11875 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11876 have enough lines to fill the screen, still return the lowest
11877 address we found.
11878
7a27a45b
AB
118792020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11880
11881 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11882 '-', '<', and '>' commands.
11883
c47f70e2
PA
118842020-01-29 Pedro Alves <palves@redhat.com>
11885 Sergio Durigan Junior <sergiodj@redhat.com>
11886
11887 * infcmd.c (construct_inferior_arguments): Assert that
11888 'argc' is greater than 0.
11889
5133a315
LM
118902020-01-29 Luis Machado <luis.machado@linaro.org>
11891
11892 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11893 (BRK_INSN_MASK): Define to 0xd4200000.
11894 (aarch64_program_breakpoint_here_p): New function.
11895 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11896 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11897 breakpoint.c.
11898 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11899 breakpoint.h
11900 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11901 call gdbarch_program_breakpoint_here_p.
11902 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11903 default_program_breakpoint_here_p, changed return type to bool and
11904 simplified.
11905 * breakpoint.h (program_breakpoint_here): Moved prototype to
11906 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11907 return type to bool.
11908 * gdbarch.c: Regenerate.
11909 * gdbarch.h: Regenerate.
11910 * gdbarch.sh (program_breakpoint_here_p): New method.
11911 * infrun.c (handle_signal_stop): Call
11912 gdbarch_program_breakpoint_here_p.
11913
168f8c6b
TT
119142020-01-26 Tom Tromey <tom@tromey.com>
11915
11916 * ctfread.c (struct ctf_fp_info): Reindent.
11917 (_initialize_ctfread): Remove.
11918
128a391f
TT
119192020-01-26 Tom Tromey <tom@tromey.com>
11920
11921 * psymtab.c (partial_map_expand_apply)
11922 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11923 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11924 (psym_print_stats, psym_expand_symtabs_for_function)
11925 (psym_map_symbol_filenames, psym_map_matching_symbols)
11926 (psym_expand_symtabs_matching)
11927 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11928 (maintenance_check_psymtabs): Use new methods.
11929 * psympriv.h (struct partial_symtab) <readin_p,
11930 get_compunit_symtab>: New methods.
11931 <readin, compunit_symtab>: Remove members.
11932 (struct standard_psymtab): New.
11933 (struct legacy_psymtab): Derive from standard_psymtab.
11934 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11935 standard_psymtab.
11936 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11937
0494dbec
TT
119382020-01-26 Tom Tromey <tom@tromey.com>
11939
11940 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11941 read_dependencies. Add assert.
11942 * psymtab.c (partial_symtab::read_dependencies): New method.
11943 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11944 method.
11945 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11946 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11947 read_dependencies.
11948 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11949 Add assert.
11950
8566b89b
TT
119512020-01-26 Tom Tromey <tom@tromey.com>
11952
11953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11954 Call expand_psymtab.
11955 (xcoff_read_symtab): Call expand_psymtab.
11956 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11957 legacy_expand_psymtab.
11958 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11959 method.
11960 (struct legacy_psymtab) <expand_psymtab>: Implement.
11961 <legacy_expand_psymtab>: New member.
11962 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11963 (parse_partial_symbols): Set legacy_expand_psymtab.
11964 (psymtab_to_symtab_1): Change argument order. Call
11965 expand_psymtab.
11966 (new_psymtab): Set legacy_expand_psymtab.
11967 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11968 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11969 expand_psymtab.
11970 (dwarf2_psymtab::expand_psymtab): Rename from
11971 psymtab_to_symtab_1. Call expand_psymtab.
11972 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11973 (dbx_end_psymtab): Likewise.
11974 (dbx_psymtab_to_symtab_1): Change argument order. Call
11975 expand_psymtab.
11976 (dbx_read_symtab): Call expand_psymtab.
11977 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11978 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11979 (ctf_psymtab::read_symtab): Call expand_psymtab.
11980
077cbab2
TT
119812020-01-26 Tom Tromey <tom@tromey.com>
11982
11983 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11984 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11985 messages.
11986 * mdebugread.c (mdebug_read_symtab): Remove prints.
11987 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11988 assert.
11989 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11990
891813be
TT
119912020-01-26 Tom Tromey <tom@tromey.com>
11992
11993 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11994 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11995 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11996 legacy_symtab.
11997 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11998 * psymtab.c (psymtab_to_symtab): Call method.
11999 (dump_psymtab): Update.
12000 * psympriv.h (struct partial_symtab): Add virtual destructor.
12001 <read_symtab>: New method.
12002 (struct legacy_symtab): New.
12003 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12004 (struct pst_map) <pst>: Now a legacy_psymtab.
12005 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12006 (new_psymtab): Use legacy_psymtab.
12007 * dwarf2read.h (struct dwarf2_psymtab): New.
12008 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12009 * dwarf2read.c (dwarf2_create_include_psymtab)
12010 (dwarf2_build_include_psymtabs, create_type_unit_group)
12011 (create_partial_symtab, process_psymtab_comp_unit_reader)
12012 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12013 (set_partial_user): Use dwarf2_psymtab.
12014 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12015 (psymtab_to_symtab_1, process_full_comp_unit)
12016 (process_full_type_unit, dwarf2_ranges_read)
12017 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12018 (dwarf_decode_lines): Use dwarf2_psymtab.
12019 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12020 (add_address_entry_worker, write_one_signatured_type)
12021 (recursively_count_psymbols, recursively_write_psymbols)
12022 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12023 (write_debug_names): Likewise.
12024 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12025 <pst>: Now a legacy_psymtab.
12026 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12027 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12028 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12029 * ctfread.c (struct ctf_psymtab): New.
12030 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12031 ctf_psymtab.
12032 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12033 (create_partial_symtab): Return a ctf_psymtab.
12034 (scan_partial_symbols): Update.
12035
c3693a1d
TT
120362020-01-26 Tom Tromey <tom@tromey.com>
12037
12038 * xcoffread.c (xcoff_start_psymtab): Use new.
12039 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12040 renamed from start_psymtab_common.
12041 * psympriv.h (struct partial_symtab): Add new constructor.
12042 (start_psymtab_common): Don't declare.
12043 * mdebugread.c (parse_partial_symbols): Use new.
12044 * dwarf2read.c (create_partial_symtab): Use new.
12045 * dbxread.c (start_psymtab): Use new.
12046 * ctfread.c (create_partial_symtab): Use new.
12047
32caafd0
TT
120482020-01-26 Tom Tromey <tom@tromey.com>
12049
12050 * xcoffread.c (xcoff_end_psymtab): Use new.
12051 * psymtab.c (start_psymtab_common): Use new.
12052 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12053 Update.
12054 * psympriv.h (struct partial_symtab): Add parameters to
12055 constructor. Don't inline.
12056 (allocate_psymtab): Don't declare.
12057 * mdebugread.c (new_psymtab): Use new.
12058 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12059 * dbxread.c (dbx_end_psymtab): Use new.
12060
abaa2f23
TT
120612020-01-26 Tom Tromey <tom@tromey.com>
12062
12063 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12064 allocate_psymtab. Update documentation.
12065 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12066 allocate_psymtab. Do not use new.
12067 (allocate_psymtab): Use new. Update.
12068
6d94535f
TT
120692020-01-26 Tom Tromey <tom@tromey.com>
12070
12071 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12072 * psymtab.c (psym_print_stats): Update.
12073 * psympriv.h (struct partial_symtab) <readin,
12074 psymtabs_addrmap_supported, anonymous>: Now bool.
12075 * mdebugread.c (psymtab_to_symtab_1): Update.
12076 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12077 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12078 (process_full_comp_unit, process_full_type_unit): Update.
12079 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12080 * ctfread.c (psymtab_to_symtab): Update.
12081
6f17252b
TT
120822020-01-26 Tom Tromey <tom@tromey.com>
12083
12084 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12085 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12086 * psymtab.c (psymtab_storage): Delete psymtabs.
12087 (psymtab_storage::allocate_psymtab): Use new.
12088 (psymtab_storage::discard_psymtab): Use delete.
12089 * psympriv.h (struct partial_symtab): Add constructor and
12090 initializers.
12091
f6f1cebc
TT
120922020-01-26 Tom Tromey <tom@tromey.com>
12093
12094 * machoread.c: Do not include psympriv.h.
12095
e47e48f6
PW
120962020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12097
12098 * NEWS: Mention the new option and the set/show commands.
12099
a2fedca9
PW
121002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12101
12102 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12103 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12104 (validate_exec_file): New variables, enums, functions.
12105 (exec_file_locate_attach, print_section_info): Style the filenames.
12106 (_initialize_exec): Install show_exec_file_mismatch_command and
12107 set_exec_file_mismatch_command.
12108 * gdbcore.h (validate_exec_file): Declare.
12109 * infcmd.c (attach_command): Call validate_exec_file.
12110 * remote.c ( remote_target::remote_add_inferior): Likewise.
12111
7ffa82e1
AB
121122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12113
12114 * frame.c (find_frame_sal): Move call to get_next_frame into more
12115 inner scope.
12116 * inline-frame.c (inilne_state) <inline_state>: Update argument
12117 types.
12118 (inilne_state) <skipped_symbol>: Rename to...
12119 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12120 (skip_inline_frames): Build vector of skipped symbols and use this
12121 to reate the inline_state.
12122 (inline_skipped_symbol): Add a comment and some assertions, fetch
12123 skipped symbol from the list.
12124
3d92a3e3
AB
121252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12126
12127 * buildsym.c (lte_is_less_than): Delete.
12128 (buildsym_compunit::end_symtab_with_blockvector): Create local
12129 lambda function to sort line table entries, and use
12130 std::stable_sort instead of std::sort.
12131 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12132 markers when looking for a previous line.
12133
94a72be7
AB
121342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12135
12136 * dwarf2read.c (lnp_state_machine::record_line): Include
12137 end_sequence parameter in debug print out. Record the line if we
12138 are at an end_sequence marker even if it's not the start of a
12139 statement.
12140 * symmisc.c (maintenance_print_one_line_table): Print end of
12141 sequence markers with 'END' not '0'.
12142
53af73bf
PA
121432020-01-24 Pedro Alves <palves@redhat.com>
12144
12145 PR gdb/25410
12146 * thread.c (scoped_restore_current_thread::restore): Use
12147 switch_to_inferior_no_thread.
12148 * exec.c: Include "progspace-and-thread.h".
12149 (add_target_sections, remove_target_sections):
12150 scoped_restore_current_pspace_and_thread instead of
12151 scoped_restore_current_thread.
12152 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12153 and aspace to the inferior before calling clone_program_space.
12154 Remove stale comment.
12155
3050c6f4
CB
121562020-01-24 Christian Biesinger <cbiesinger@google.com>
12157
12158 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12159 (arm_netbsd_nat_target::fetch_registers): ...this.
12160 (arm_nbsd_nat_target::store_registers): Rename to...
12161 (arm_netbsd_nat_target::store_registers): ...this.
12162
73685c7e
CB
121632020-01-24 Christian Biesinger <cbiesinger@google.com>
12164
12165 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12166 register_t.
12167
89203d40
CB
121682020-01-24 Christian Biesinger <cbiesinger@google.com>
12169
12170 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12171 Update comment.
12172 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12173 Likewise.
12174 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12175 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12176 the correct replacement (iterate_over_regset_sections).
12177 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12178 Update comment.
12179
1ba1ac88
AB
121802020-01-24 Graham Markall <graham.markall@embecosm.com>
12181
12182 PR gdb/23718
12183 * gdb/python/python.c (execute_gdb_command): Call
12184 async_enable_stdin in catch block.
12185
f3364a6d
AB
121862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12187
12188 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12189 SWITCH_THRU_ALL_UIS.
12190
733d0a67
AB
121912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12192
12193 PR tui/9765
12194 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12195 comment, add extra parameter, and update to store previous symbol
12196 when appropriate.
12197 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12198 add extra parameter.
12199 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12200 remove unneeded parameter, add try/catch around gdb_print_insn,
12201 rewrite to add items to asm_lines vector.
12202 (tui_find_backward_disassembly_start_address): New function.
12203 (tui_find_disassembly_address): Updated throughout.
12204 (tui_disasm_window::set_contents): Update for changes to
12205 tui_disassemble.
12206 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12207 number of lines to scroll.
12208
b3b3bada
SM
122092020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12210
12211 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12212 (SECT_OFF_DATA): Likewise.
12213 (SECT_OFF_RODATA): Likewise.
12214 (SECT_OFF_TEXT): Likewise.
12215 (SECT_OFF_BSS): Likewise.
12216 (struct objfile) <text_section_offset, data_section_offset>: New
12217 methods.
12218 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12219 objfile::text_section_offset.
12220 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12221 * coffread.c (coff_symtab_read): Likewise.
12222 (enter_linenos): Likewise.
12223 (process_coff_symbol): Likewise.
12224 * ctfread.c (get_objfile_text_range): Likewise.
12225 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12226 Use objfile::data_section_offset.
12227 * dwarf2-frame.c (execute_cfa_program): Use
12228 objfile::text_section_offset.
12229 (dwarf2_frame_find_fde): Likewise.
12230 * dwarf2read.c (create_addrmap_from_index): Likewise.
12231 (create_addrmap_from_aranges): Likewise.
12232 (dw2_find_pc_sect_compunit_symtab): Likewise.
12233 (process_psymtab_comp_unit_reader): Likewise.
12234 (add_partial_symbol): Likewise.
12235 (add_partial_subprogram): Likewise.
12236 (process_full_comp_unit): Likewise.
12237 (read_file_scope): Likewise.
12238 (read_func_scope): Likewise.
12239 (read_lexical_block_scope): Likewise.
12240 (read_call_site_scope): Likewise.
12241 (dwarf2_rnglists_process): Likewise.
12242 (dwarf2_ranges_process): Likewise.
12243 (dwarf2_ranges_read): Likewise.
12244 (dwarf_decode_lines_1): Likewise.
12245 (new_symbol): Likewise.
12246 (dwarf2_fetch_die_loc_sect_off): Likewise.
12247 (dwarf2_per_cu_text_offset): Likewise.
12248 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12249 * hppa-tdep.c (read_unwind_info): Likewise.
12250 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12251 * psympriv.h (struct partial_symtab): Likewise.
12252 * psymtab.c (find_pc_sect_psymtab): Likewise.
12253 * solib-svr4.c (enable_break): Likewise.
12254 * stap-probe.c (relocate_address): Use
12255 objfile::data_section_offset.
12256 * xcoffread.c (enter_line_range): Use
12257 objfile::text_section_offset.
12258 (read_xcoff_symtab): Likewise.
12259
ab53f382
SM
122602020-01-23 Simon Marchi <simon.marchi@efficios.com>
12261
12262 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12263 declaration to narrower scopes.
12264
e7eee665
SM
122652020-01-23 Simon Marchi <simon.marchi@efficios.com>
12266
12267 * darwin-nat.h (struct darwin_exception_msg, enum
12268 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12269 Move up.
12270 (class darwin_nat_target) <wait_1, check_new_threads,
12271 decode_exception_message, decode_message, stop_inferior,
12272 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12273 * darwin-nat.c (darwin_check_new_threads): Rename to...
12274 (darwin_nat_target::check_new_threads): ... this.
12275 (darwin_suspend_inferior_it): Remove.
12276 (darwin_decode_exception_message): Rename to...
12277 (darwin_nat_target::decode_exception_message): ... this.
12278 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12279 (darwin_decode_message): Rename to...
12280 (darwin_nat_target::decode_message): ... this.
12281 (cancel_breakpoint): Rename to...
12282 (darwin_nat_target::cancel_breakpoint): ... this.
12283 (darwin_wait): Rename to...
12284 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12285 instead of iterate_over_inferiors.
12286 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12287 (darwin_stop_inferior): Rename to...
12288 (darwin_nat_target::stop_inferior): ... this.
12289 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12290 (darwin_init_thread_list): Rename to...
12291 (darwin_nat_target::init_thread_list): ... this.
12292 (darwin_ptrace_him): Rename to...
12293 (darwin_nat_target::ptrace_him): ... this.
12294 (darwin_nat_target::create_inferior): Pass lambda function to
12295 fork_inferior.
12296 (darwin_nat_target::detach): Call stop_inferior instead of
12297 darwin_stop_inferior.
12298 * fork-inferior.h (fork_inferior): Change init_trace_fun
12299 parameter to gdb::function_view.
12300 * fork-inferior.c (fork_inferior): Likewise.
12301
c162ed3e
HD
123022020-01-23 Hannes Domani <ssbssa@yahoo.de>
12303
12304 * i386-cygwin-tdep.c (core_process_module_section): Update.
12305 * windows-nat.c (struct lm_info_windows): Add text_offset.
12306 (windows_xfer_shared_libraries): Update.
12307 * windows-tdep.c (windows_xfer_shared_library):
12308 Add text_offset_cached argument.
12309 * windows-tdep.h (windows_xfer_shared_library): Update.
12310
a1237872
SM
123112020-01-21 Simon Marchi <simon.marchi@efficios.com>
12312
12313 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12314
b3ee6dd9
SM
123152020-01-21 Simon Marchi <simon.marchi@efficios.com>
12316
12317 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12318 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12319 replace with range-based for.
12320 (gdbsim_interrupt_inferior): Remove.
12321 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12322 with a range-based for. Inline code from
12323 gdbsim_interrupt_inferior.
12324
f9fac3c8
SM
123252020-01-21 Simon Marchi <simon.marchi@efficios.com>
12326
12327 * infrun.c (proceed): Fix indentation.
12328
f6474de9
TT
123292020-01-21 Tom Tromey <tromey@adacore.com>
12330
12331 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12332 * python/python.c (python_extension_ops): Update.
12333 (gdbpy_colorize): New function.
12334 * python/lib/gdb/__init__.py (colorize): New function.
12335 * extension.h (ext_lang_colorize): Declare.
12336 * extension.c (ext_lang_colorize): New function.
12337 * extension-priv.h (struct extension_language_ops) <colorize>: New
12338 member.
12339 * cli/cli-style.c (_initialize_cli_style): Update help text.
12340
f0c702d4
LM
123412020-01-21 Luis Machado <luis.machado@linaro.org>
12342
12343 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12344 <cond>: Change type to bool.
12345 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12346 (aarch64_displaced_step_cb): Likewise.
12347 (aarch64_displaced_step_tb): Likewise.
12348
1ab139e5
LM
123492020-01-21 Luis Machado <luis.machado@linaro.org>
12350
12351 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12352 output.
12353
0c271889
LM
123542020-01-21 Luis Machado <luis.machado@linaro.org>
12355
12356 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12357 <pc_adjust>: Adjust the documentation.
12358 (aarch64_displaced_step_fixup): Check if PC really moved before
12359 adjusting it.
12360
4d89c1c7
TT
123612020-01-19 Tom Tromey <tom@tromey.com>
12362
12363 * disasm.c (~gdb_disassembler): New destructor.
12364 (gdb_buffered_insn_length): Call disassemble_free_target.
12365 * disasm.h (class gdb_disassembler): Declare destructor. Use
12366 DISABLE_COPY_AND_ASSIGN.
12367
c0ab21c2
TT
123682020-01-19 Tom Tromey <tom@tromey.com>
12369
12370 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12371 (die_reader_func_ftype): Remove.
12372 (cutu_reader): New class.
12373 (dw2_get_file_names_reader): Remove "data" parameter.
12374 (dw2_get_file_names): Use cutu_reader.
12375 (create_debug_type_hash_table): Update.
12376 (read_cutu_die_from_dwo): Update comment.
12377 (lookup_dwo_unit): Add dwo_name parameter.
12378 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12379 die_reader_func_ftype and data parameters.
12380 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12381 Remove die_reader_func_ftype and data parameters.
12382 (~cutu_reader): New; from init_cutu_and_read_dies.
12383 (cutu_reader::cutu_reader): Rename from
12384 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12385 and data parameters.
12386 (init_cutu_and_read_dies_simple): Remove.
12387 (struct process_psymtab_comp_unit_data): Remove.
12388 (process_psymtab_comp_unit_reader): Remove data parameter; add
12389 want_partial_unit and pretend_language parameters.
12390 (process_psymtab_comp_unit): Use cutu_reader.
12391 (build_type_psymtabs_reader): Remove data parameter.
12392 (build_type_psymtabs_1): Use cutu_reader.
12393 (process_skeletonless_type_unit): Likewise.
12394 (load_partial_comp_unit_reader): Remove.
12395 (load_partial_comp_unit): Use cutu_reader.
12396 (load_full_comp_unit_reader): Remove.
12397 (load_full_comp_unit): Use cutu_reader.
12398 (struct create_dwo_cu_data): Remove.
12399 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12400 dwo_unit parameters.
12401 (create_cus_hash_table): Use cutu_reader.
12402 (struct dwarf2_read_addr_index_data): Remove.
12403 (dwarf2_read_addr_index_reader): Remove.
12404 (dwarf2_read_addr_index): Use cutu_reader.
12405 (read_signatured_type_reader): Remove.
12406 (read_signatured_type): Use cutu_reader.
12407
45bbae5c
TT
124082020-01-19 Tom Tromey <tom@tromey.com>
12409
12410 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12411 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12412 (tui_wrefresh): Declare.
12413 * tui/tui-wingeneral.c (suppress_output): New global.
12414 (tui_suppress_output, ~tui_suppress_output): New constructor and
12415 destructor.
12416 (tui_wrefresh): New function.
12417 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12418 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12419 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12420 method.
12421 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12422 tui_wrefresh.
12423 (tui_data_window::no_refresh): New method.
12424 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12425 (tui_reg_command): Use tui_suppress_output
12426 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12427 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12428 method.
12429 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12430
4f13c1c0
TT
124312020-01-19 Tom Tromey <tom@tromey.com>
12432
12433 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12434 Handle case where symtab is null.
12435
fa47e446
SM
124362020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12437
12438 * linux-fork.c (one_fork_p): Simplify.
12439
26f42329
SM
124402020-01-17 Simon Marchi <simon.marchi@efficios.com>
12441
12442 * top.c (struct qt_args): Remove.
12443 (kill_or_detach): Change return type to void, replace `void *`
12444 parameter with a proper one.
12445 (print_inferior_quit_action): Likewise.
12446 (quit_confirm): Use range-based for loop to iterate over inferiors.
12447 (quit_force): Likewise.
12448
a9ac81b1
SM
124492020-01-17 Simon Marchi <simon.marchi@efficios.com>
12450
12451 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12452 `void *` parameter with proper parameters.
12453 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12454 (print_one_inferior): Change return type to void, replace `void *`
12455 parameter with proper parameters.
12456 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12457 inferiors.
12458 (get_other_inferior): Remove.
12459 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12460 inferiors.
12461
788eca49
SM
124622020-01-17 Simon Marchi <simon.marchi@efficios.com>
12463
12464 * mi/mi-interp.c (report_initial_inferior): Remove.
12465 (mi_interp::init): Use range-based for to iterate over inferiors.
12466
d9bc85b6
SM
124672020-01-17 Simon Marchi <simon.marchi@efficios.com>
12468
12469 * python/py-inferior.c (build_inferior_list): Remove.
12470 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12471
40c94099
CB
124722020-01-16 Christian Biesinger <cbiesinger@google.com>
12473
12474 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12475 (btrace_stitch_trace): Likewise.
12476 * charset.c (intermediate_encoding): Likewise (vaild).
12477 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12478 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12479 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12480
e0cdfe3c
HD
124812020-01-16 Hannes Domani <ssbssa@yahoo.de>
12482
12483 * windows-tdep.c (windows_get_tlb_type):
12484 Add rtl_user_process_parameters type.
12485
790f1718 124862020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12487 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12488
12489 PR build/24805
12490 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12491 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12492 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12493 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12494 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12495 (ps_plog): Redeclare exported functions with default visibility.
12496
3112ed97
NA
124972020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12498
12499 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12500 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12501
8dc3273e
SM
125022020-01-15 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * infcmd.c (post_create_inferior): Use get_thread_regcache
12505 instead of get_current_regcache.
12506
ff47f4f0
TT
125072020-01-14 Tom Tromey <tom@tromey.com>
12508
12509 PR symtab/12535:
12510 * python/python.c (gdbpy_decode_line): Treat empty string the same
12511 as no argument.
12512
975f45b7
TT
125132020-01-14 Tom Tromey <tom@tromey.com>
12514
12515 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12516
25e57356
TT
125172020-01-14 Tom Tromey <tom@tromey.com>
12518
12519 * nat/linux-btrace.c: Don't include <config.h>.
12520 * nat/linux-ptrace.c: Don't include <config.h>.
12521 * nat/x86-linux-dregs.c: Don't include <config.h>.
12522
05ea2a05
TT
125232020-01-14 Tom Tromey <tom@tromey.com>
12524
12525 * configure: Rebuild.
12526 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12527
01027315
TT
125282020-01-14 Tom Tromey <tom@tromey.com>
12529
12530 * nat/x86-linux-dregs.c: Include configh.h.
12531 * nat/linux-ptrace.c: Include configh.h.
12532 * nat/linux-btrace.c: Include configh.h.
12533 * defs.h: Include config.h, bfd.h.
12534 * configure.ac: Don't source common.host.
12535 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12536 * configure: Rebuild.
12537 * acinclude.m4: Update path.
12538 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12539 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12540 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12541 (CLIBS): Add LIBSUPPORT.
12542 (CDEPS): Likewise.
12543 (COMMON_SFILES): Remove gdbsupport files.
12544 (HFILES_NO_SRCDIR): Likewise.
12545 (stamp-version): Update path to create-version.sh.
12546 (ALLDEPFILES): Remove gdbsupport files.
12547
b2ceabe8
TT
125482020-01-14 Tom Tromey <tom@tromey.com>
12549
12550 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12551 USE_WIN32API when needed.
12552 * configure.ac (USE_WIN32API): Don't define.
12553 (WIN32LIBS): Use WIN32APILIBS.
12554 * configure: Rebuild.
12555
25c51f71
TT
125562020-01-14 Tom Tromey <tom@tromey.com>
12557
12558 * configure: Rebuild.
12559 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12560
717c684d
BE
125612020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12562
12563 * skip.c (skip_function_command): Make skip w/o arguments use the
12564 name of the inlined function if pc is inside any inlined function.
12565
7da6a5b9
LM
125662020-01-14 Luis Machado <luis.machado@linaro.org>
12567
12568 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12569 * infrun.c (resume_1): Likewise.
12570 (handle_inferior_event): Remove stale comment.
12571 * linux-nat.c (linux_nat_target::resume): Update comments.
12572 (save_stop_reason): Likewise.
12573 (linux_nat_filter_event): Likewise.
12574 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12575
44e4c775
AB
125762020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12577
12578 * elfread.c (record_minimal_symbol): Set section index to 0 for
12579 non-allocatable sections.
12580
18a8505e
AT
12581
125822020-01-13 Ali Tamur <tamur@google.com>
12583
12584 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12585 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12586 to gdb::optional. Update comments.
12587 (dwo_file): Update comments.
12588 (read_attribute): Update API to take an additional out parameter,
12589 need_reprocess. This is used to mark attributes that need other
12590 attributes (e.g. str_offsets_base) for correct computation which may not
12591 have been read yet.
12592 (read_attribute_reprocess): New function declaration.
12593 (read_addr_index): Likewise.
12594 (read_dwo_str_index): Likewise.
12595 (read_stub_str_index): Likewise.
12596 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12597 (lookup_addr_base): New function definition.
12598 (lookup_ranges_base): Likewise.
12599 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12600 lookup_ranges_base.
12601 (init_cutu_and_read_dies): Update comments.
12602 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12603 unit. This is used to inherit parent's str_offsets_base and addr_base.
12604 Update comments.
12605 (init_cutu_and_read_dies_simple): Reflect API changes.
12606 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12607 (create_cus_hash_table): Change API to take parent compile unit.
12608 Reflect API changes.
12609 (open_and_init_dwo_file): Reflect API changes.
12610 (dwarf2_get_pc_bounds): Update comments.
12611 (dwarf2_record_block_ranges): Likewise.
12612 (read_full_die_1): Change implementation to reprocess attributes that
12613 need str_offsets_base and addr_base.
12614 (partial_die_info::read): Likewise.
12615 (read_attribute_reprocess): New function definition.
12616 (read_attribute_value): Change API to take an additional out parameter,
12617 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12618 when a non-dwo compile unit has index based attributes.
12619 (read_attribute): Reflect API changes.
12620 (read_addr_index_1): Reflect API changes. Update comments.
12621 (dwarf2_read_addr_index_data): Reflect API changes.
12622 (dwarf2_read_addr_index): Likewise.
12623 (read_str_index): Change API and implementation. This becomes a helper
12624 to be used by the new string index related methods. Update error
12625 message and comments.
12626 (read_dwo_str_index): New function definition.
12627 (read_stub_str_index): Likewise.
12628 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12629 * symfile.h (dwarf2_debug_sections): Likewise.
12630 * xcoffread.c (dwarf2_debug_sections): Likewise.
12631
0cac9354
SM
126322020-01-13 Simon Marchi <simon.marchi@efficios.com>
12633
12634 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12635 core_reg_sect type to gdb_byte *.
12636 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12637 * cris-tdep.c (fetch_core_registers): Likewise.
12638 * corelow.c (core_target::get_core_register_section): Change
12639 type of `contents` to gdb::byte_vector.
12640
9a6d629c
AB
126412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12642
12643 * tui/tui-wingeneral.c (box_win): Position the title in the center
12644 of the border.
12645
d8b2f9e3
SM
126462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12647
12648 * corelow.c (core_target::get_core_register_section): Use
12649 std::vector instead of alloca.
12650
bb564c58
SM
126512020-01-13 Simon Marchi <simon.marchi@efficios.com>
12652
12653 * warning.m4: Add -Wmissing-declarations to build_warnings.
12654 * configure: Re-generate.
12655
6b366111
SM
126562020-01-13 Simon Marchi <simon.marchi@efficios.com>
12657
12658 * python/python.c (init__gdb_module): Add declaration.
12659
6c265988
SM
126602020-01-13 Simon Marchi <simon.marchi@efficios.com>
12661
12662 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12663 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12664 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12665 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12666 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12667 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12668 * ada-exp.y (_initialize_ada_exp): Add declaration.
12669 * ada-lang.c (_initialize_ada_language): Add declaration.
12670 * ada-tasks.c (_initialize_tasks): Add declaration.
12671 * agent.c (_initialize_agent): Add declaration.
12672 * aix-thread.c (_initialize_aix_thread): Add declaration.
12673 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12674 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12675 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12676 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12677 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12678 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12679 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12680 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12681 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12682 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12683 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12684 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12685 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12686 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12687 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12688 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12689 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12690 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12691 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12692 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12693 * annotate.c (_initialize_annotate): Add declaration.
12694 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12695 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12696 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12697 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12698 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12699 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12700 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12701 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12702 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12703 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12704 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12705 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12706 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12707 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12708 * auto-load.c (_initialize_auto_load): Add declaration.
12709 * auxv.c (_initialize_auxv): Add declaration.
12710 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12711 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12712 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12713 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12714 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12715 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12716 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12717 * breakpoint.c (_initialize_breakpoint): Add declaration.
12718 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12719 * btrace.c (_initialize_btrace): Add declaration.
12720 * charset.c (_initialize_charset): Add declaration.
12721 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12722 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12723 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12724 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12725 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12726 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12727 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12728 * coffread.c (_initialize_coffread): Add declaration.
12729 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12730 * compile/compile.c (_initialize_compile): Add declaration.
12731 * complaints.c (_initialize_complaints): Add declaration.
12732 * completer.c (_initialize_completer): Add declaration.
12733 * copying.c (_initialize_copying): Add declaration.
12734 * corefile.c (_initialize_core): Add declaration.
12735 * corelow.c (_initialize_corelow): Add declaration.
12736 * cp-abi.c (_initialize_cp_abi): Add declaration.
12737 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12738 * cp-support.c (_initialize_cp_support): Add declaration.
12739 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12740 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12741 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12742 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12743 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12744 * ctfread.c (_initialize_ctfread): Add declaration.
12745 * d-lang.c (_initialize_d_language): Add declaration.
12746 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12747 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12748 * dbxread.c (_initialize_dbxread): Add declaration.
12749 * dcache.c (_initialize_dcache): Add declaration.
12750 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12751 * disasm.c (_initialize_disasm): Add declaration.
12752 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12753 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12754 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12755 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12756 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12757 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12758 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12759 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12760 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12761 * elfread.c (_initialize_elfread): Add declaration.
12762 * exec.c (_initialize_exec): Add declaration.
12763 * extension.c (_initialize_extension): Add declaration.
12764 * f-lang.c (_initialize_f_language): Add declaration.
12765 * f-valprint.c (_initialize_f_valprint): Add declaration.
12766 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12767 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12768 * filesystem.c (_initialize_filesystem): Add declaration.
12769 * findcmd.c (_initialize_mem_search): Add declaration.
12770 * findvar.c (_initialize_findvar): Add declaration.
12771 * fork-child.c (_initialize_fork_child): Add declaration.
12772 * frame-base.c (_initialize_frame_base): Add declaration.
12773 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12774 * frame.c (_initialize_frame): Add declaration.
12775 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12776 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12777 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12778 * gcore.c (_initialize_gcore): Add declaration.
12779 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12780 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12781 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12782 * gdbarch.c (_initialize_gdbarch): Add declaration.
12783 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12784 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12785 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12786 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12787 * go-lang.c (_initialize_go_language): Add declaration.
12788 * go32-nat.c (_initialize_go32_nat): Add declaration.
12789 * guile/guile.c (_initialize_guile): Add declaration.
12790 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12791 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12792 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12793 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12794 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12795 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12796 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12797 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12798 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12799 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12800 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12801 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12802 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12803 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12804 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12805 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12806 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12807 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12808 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12809 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12810 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12811 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12812 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12813 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12814 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12815 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12816 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12817 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12818 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12819 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12820 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12821 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12822 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12823 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12824 * infcall.c (_initialize_infcall): Add declaration.
12825 * infcmd.c (_initialize_infcmd): Add declaration.
12826 * inflow.c (_initialize_inflow): Add declaration.
12827 * infrun.c (_initialize_infrun): Add declaration.
12828 * interps.c (_initialize_interpreter): Add declaration.
12829 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12830 * jit.c (_initialize_jit): Add declaration.
12831 * language.c (_initialize_language): Add declaration.
12832 * linux-fork.c (_initialize_linux_fork): Add declaration.
12833 * linux-nat.c (_initialize_linux_nat): Add declaration.
12834 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12835 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12836 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12837 * m2-lang.c (_initialize_m2_language): Add declaration.
12838 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12839 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12840 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12841 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12842 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12843 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12844 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12845 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12846 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12847 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12848 * machoread.c (_initialize_machoread): Add declaration.
12849 * macrocmd.c (_initialize_macrocmd): Add declaration.
12850 * macroscope.c (_initialize_macroscope): Add declaration.
12851 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12852 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12853 * maint.c (_initialize_maint_cmds): Add declaration.
12854 * mdebugread.c (_initialize_mdebugread): Add declaration.
12855 * memattr.c (_initialize_mem): Add declaration.
12856 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12857 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12858 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12859 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12860 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12861 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12862 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12863 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12864 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12865 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12866 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12867 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12868 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12869 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12870 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12871 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12872 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12873 * mipsread.c (_initialize_mipsread): Add declaration.
12874 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12875 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12876 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12877 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12878 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12879 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12880 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12881 * nto-procfs.c (_initialize_procfs): Add declaration.
12882 * objc-lang.c (_initialize_objc_language): Add declaration.
12883 * observable.c (_initialize_observer): Add declaration.
12884 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12885 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12886 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12887 * osabi.c (_initialize_gdb_osabi): Add declaration.
12888 * osdata.c (_initialize_osdata): Add declaration.
12889 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12890 * parse.c (_initialize_parse): Add declaration.
12891 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12892 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12893 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12894 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12895 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12896 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12897 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12898 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12899 * printcmd.c (_initialize_printcmd): Add declaration.
12900 * probe.c (_initialize_probe): Add declaration.
12901 * proc-api.c (_initialize_proc_api): Add declaration.
12902 * proc-events.c (_initialize_proc_events): Add declaration.
12903 * proc-service.c (_initialize_proc_service): Add declaration.
12904 * procfs.c (_initialize_procfs): Add declaration.
12905 * producer.c (_initialize_producer): Add declaration.
12906 * psymtab.c (_initialize_psymtab): Add declaration.
12907 * python/python.c (_initialize_python): Add declaration.
12908 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12909 * record-btrace.c (_initialize_record_btrace): Add declaration.
12910 * record-full.c (_initialize_record_full): Add declaration.
12911 * record.c (_initialize_record): Add declaration.
12912 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12913 * regcache.c (_initialize_regcache): Add declaration.
12914 * reggroups.c (_initialize_reggroup): Add declaration.
12915 * remote-notif.c (_initialize_notif): Add declaration.
12916 * remote-sim.c (_initialize_remote_sim): Add declaration.
12917 * remote.c (_initialize_remote): Add declaration.
12918 * reverse.c (_initialize_reverse): Add declaration.
12919 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12920 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12921 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12922 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12923 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12924 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12925 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12926 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12927 Add declaration.
12928 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12929 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12930 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12931 * rust-exp.y (_initialize_rust_exp): Add declaration.
12932 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12933 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12934 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12935 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12936 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12937 * score-tdep.c (_initialize_score_tdep): Add declaration.
12938 * ser-go32.c (_initialize_ser_dos): Add declaration.
12939 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12940 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12941 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12942 * ser-uds.c (_initialize_ser_socket): Add declaration.
12943 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12944 * serial.c (_initialize_serial): Add declaration.
12945 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12946 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12947 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12948 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12949 * skip.c (_initialize_step_skip): Add declaration.
12950 * sol-thread.c (_initialize_sol_thread): Add declaration.
12951 * solib-aix.c (_initialize_solib_aix): Add declaration.
12952 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12953 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12954 * solib-frv.c (_initialize_frv_solib): Add declaration.
12955 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12956 * solib-target.c (_initialize_solib_target): Add declaration.
12957 * solib.c (_initialize_solib): Add declaration.
12958 * source-cache.c (_initialize_source_cache): Add declaration.
12959 * source.c (_initialize_source): Add declaration.
12960 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12961 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12962 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12963 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12964 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12965 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12966 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12967 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12968 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12969 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12970 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12971 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12972 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12973 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12974 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12975 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12976 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12977 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12978 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12979 * stabsread.c (_initialize_stabsread): Add declaration.
12980 * stack.c (_initialize_stack): Add declaration.
12981 * stap-probe.c (_initialize_stap_probe): Add declaration.
12982 * std-regs.c (_initialize_frame_reg): Add declaration.
12983 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12984 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12985 * symfile.c (_initialize_symfile): Add declaration.
12986 * symmisc.c (_initialize_symmisc): Add declaration.
12987 * symtab.c (_initialize_symtab): Add declaration.
12988 * target.c (_initialize_target): Add declaration.
12989 * target-connection.c (_initialize_target_connection): Add
12990 declaration.
12991 * target-dcache.c (_initialize_target_dcache): Add declaration.
12992 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12993 * thread.c (_initialize_thread): Add declaration.
12994 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12995 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12996 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12997 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12998 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12999 * tracectf.c (_initialize_ctf): Add declaration.
13000 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13001 * tracefile.c (_initialize_tracefile): Add declaration.
13002 * tracepoint.c (_initialize_tracepoint): Add declaration.
13003 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13004 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13005 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13006 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13007 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13008 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13009 * tui/tui.c (_initialize_tui): Add declaration.
13010 * typeprint.c (_initialize_typeprint): Add declaration.
13011 * ui-style.c (_initialize_ui_style): Add declaration.
13012 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13013 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13014 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13015 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13016 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13017 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13018 * unittests/filtered_iterator-selftests.c
13019 (_initialize_filtered_iterator_selftests): Add declaration.
13020 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13021 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13022 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13023 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13024 * unittests/main-thread-selftests.c
13025 (_initialize_main_thread_selftests): Add declaration.
13026 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13027 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13028 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13029 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13030 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13031 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13032 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13033 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13034 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13035 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13036 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13037 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13038 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13039 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13040 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13041 declaration.
13042 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13043 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13044 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13045 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13046 * user-regs.c (_initialize_user_regs): Add declaration.
13047 * utils.c (_initialize_utils): Add declaration.
13048 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13049 * valops.c (_initialize_valops): Add declaration.
13050 * valprint.c (_initialize_valprint): Add declaration.
13051 * value.c (_initialize_values): Add declaration.
13052 * varobj.c (_initialize_varobj): Add declaration.
13053 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13054 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13055 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13056 * windows-nat.c (_initialize_windows_nat): Add declaration.
13057 (_initialize_check_for_gdb_ini): Add declaration.
13058 (_initialize_loadable): Add declaration.
13059 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13060 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13061 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13062 * xcoffread.c (_initialize_xcoffread): Add declaration.
13063 * xml-support.c (_initialize_xml_support): Add declaration.
13064 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13065 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13066 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13067 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13068
e2de1eec
SM
130692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13070
13071 * regformats/regdat.sh: Generate declaration for init function.
13072
e0037b4c
SM
130732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13074
13075 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13076 up.
13077 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13078 close_one_inferior>: New methods.
13079 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13080 pass down target to find_inferior_pid.
13081 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13082 Pass down target to find_inferior_ptid.
13083 (gdbsim_target::create_inferior): Pass down target to
13084 add_thread_silent.
13085 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13086 target down to find_inferior_ptid and switch_to_thread.
13087 (gdbsim_target::close): Update to call close_one_inferior.
13088 (struct resume_data): Remove.
13089 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13090 directly, rather than through a void pointer.
13091 (gdbsim_target::resume): Update to call resume_one_inferior.
13092
58920b5b
SM
130932020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13094
13095 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13096
4ec89149
PA
130972020-01-12 Pedro Alves <palves@redhat.com>
13098
13099 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13100 directly for the current inferior instead of
13101 discard_all_inferiors.
13102 (discard_all_inferiors): Delete.
13103
7c392d1d
TT
131042020-01-11 Tom Tromey <tom@tromey.com>
13105
13106 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13107 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13108 deprecated_safe_get_selected_frame.
13109
d9ebdab7
TBA
131102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13111
13112 * inferior.c (print_inferior): Switch inferior before printing it.
13113
f3c469b9
PA
131142020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13115 Pedro Alves <palves@redhat.com>
13116
13117 * progspace-and-thread.c (switch_to_program_space_and_thread):
13118 Assert there's an inferior for PSPACE. Use
13119 switch_to_inferior_no_thread to switch the inferior too.
13120 * progspace.c (program_space::~program_space): Call
13121 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13122 (program_space::free_all_objfiles): Don't call clear_symtab_users
13123 here.
13124 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13125
65c574f6
PA
131262020-01-10 Pedro Alves <palves@redhat.com>
13127
13128 * NEWS: Mention multi-target debugging, "info connections", and
13129 "add-inferior -no-connection".
13130
2f4fcf00
PA
131312020-01-10 Pedro Alves <palves@redhat.com>
13132
13133 * infrun.c: Include "target-connection.h".
13134 (check_multi_target_resumption): New.
13135 (proceed): Call it.
13136 * target-connection.c (make_target_connection_string): Make
13137 extern.
13138 * target-connection.h (make_target_connection_string): Declare.
13139
121b3efd
PA
131402020-01-10 Pedro Alves <palves@redhat.com>
13141
13142 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13143 * inferior.c (uiout_field_connection): New function.
13144 (print_inferior): Add new "connection-id" column.
13145 (add_inferior_command): Show connection number/string of added
13146 inferior.
13147 * process-stratum-target.h
13148 (process_stratum_target::connection_string): New virtual method.
13149 (process_stratum_target::connection_number): New field.
13150 * remote.c (remote_target::connection_string): New override.
13151 * target-connection.c: New file.
13152 * target-connection.h: New file.
13153 * target.c (decref_target): Remove process_stratum targets from
13154 the connection list.
13155 (target_stack::push): Add process_stratum targets to the
13156 connection list.
13157
4f837581
PA
131582020-01-10 Pedro Alves <palves@redhat.com>
13159
13160 Revert:
13161 2016-04-12 Pedro Alves <palves@redhat.com>
13162 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13163 Remove references to name.
13164 * serial.h (struct serial) <name>: Delete.
13165
f4ec508e
PA
131662020-01-10 Pedro Alves <palves@redhat.com>
13167
13168 * gdbarch-selftests.c (register_to_value_test): Remove "target
13169 already pushed" check.
13170
5b6d1e4f
PA
131712020-01-10 Pedro Alves <palves@redhat.com>
13172 John Baldwin <jhb@FreeBSD.org>
13173
13174 * aarch64-linux-nat.c
13175 (aarch64_linux_nat_target::thread_architecture): Adjust.
13176 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13177 (task_command_1): Likewise.
13178 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13179 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13180 (aix_thread_target::store_registers)
13181 (aix_thread_target::thread_alive): Adjust.
13182 * amd64-fbsd-tdep.c: Include "inferior.h".
13183 (amd64fbsd_get_thread_local_address): Pass down target.
13184 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13185 thread's gdbarch instead of target_gdbarch.
13186 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13187 get_last_target_status.
13188 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13189 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13190 inferiors.
13191 (update_inserted_breakpoint_locations): Skip if inferiors with no
13192 execution.
13193 (update_global_location_list): When handling moribund locations,
13194 find representative inferior for location's pspace, and use thread
13195 count of its process_stratum target.
13196 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13197 * bsd-uthread.c (bsd_uthread_target::wait): Use
13198 as_process_stratum_target and adjust thread_change_ptid and
13199 add_thread calls.
13200 (bsd_uthread_target::update_thread_list): Use
13201 as_process_stratum_target and adjust find_thread_ptid,
13202 thread_change_ptid and add_thread calls.
13203 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13204 find_thread_ptid call.
13205 * corelow.c (add_to_thread_list): Adjust add_thread call.
13206 (core_target_open): Adjust add_thread_silent and thread_count
13207 calls.
13208 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13209 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13210 * event-top.c (async_disconnect): Pop targets from all inferiors.
13211 * exec.c (add_target_sections): Push exec target on all inferiors
13212 sharing the program space.
13213 (remove_target_sections): Remove the exec target from all
13214 inferiors sharing the program space.
13215 (exec_on_vfork): New.
13216 * exec.h (exec_on_vfork): Declare.
13217 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13218 Pass it down.
13219 (fbsd_nat_target::update_thread_list): Adjust.
13220 (fbsd_nat_target::resume): Adjust.
13221 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13222 down.
13223 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13224 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13225 get_thread_arch_regcache call.
13226 * fork-child.c (gdb_startup_inferior): Pass target down to
13227 startup_inferior and set_executing.
13228 * gdbthread.h (struct process_stratum_target): Forward declare.
13229 (add_thread, add_thread_silent, add_thread_with_info)
13230 (in_thread_list): Add process_stratum_target parameter.
13231 (find_thread_ptid(inferior*, ptid_t)): New overload.
13232 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13233 parameter.
13234 (all_threads()): Delete overload.
13235 (all_threads, all_non_exited_threads): Add process_stratum_target
13236 parameter.
13237 (all_threads_safe): Use brace initialization.
13238 (thread_count): Add process_stratum_target parameter.
13239 (set_resumed, set_running, set_stop_requested, set_executing)
13240 (threads_are_executing, finish_thread_state): Add
13241 process_stratum_target parameter.
13242 (switch_to_thread): Use is_current_thread.
13243 * i386-fbsd-tdep.c: Include "inferior.h".
13244 (i386fbsd_get_thread_local_address): Pass down target.
13245 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13246 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13247 have_inferiors check.
13248 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13249 (inf_ptrace_target::attach): Adjust.
13250 * infcall.c (run_inferior_call): Adjust.
13251 * infcmd.c (run_command_1): Pass target to
13252 scoped_finish_thread_state.
13253 (proceed_thread_callback): Skip inferiors with no execution.
13254 (continue_command): Rename 'all_threads' local to avoid hiding
13255 'all_threads' function. Adjust get_last_target_status call.
13256 (prepare_one_step): Adjust set_running call.
13257 (signal_command): Use user_visible_resume_target. Compare thread
13258 pointers instead of inferior_ptid.
13259 (info_program_command): Adjust to pass down target.
13260 (attach_command): Mark target's 'thread_executing' flag.
13261 (stop_current_target_threads_ns): New, factored out from ...
13262 (interrupt_target_1): ... this. Switch inferior before making
13263 target calls.
13264 * inferior-iter.h
13265 (struct all_inferiors_iterator, struct all_inferiors_range)
13266 (struct all_inferiors_safe_range)
13267 (struct all_non_exited_inferiors_range): Filter on
13268 process_stratum_target too. Remove explicit.
13269 * inferior.c (inferior::inferior): Push dummy target on target
13270 stack.
13271 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13272 Add process_stratum_target parameter, and pass it down.
13273 (have_live_inferiors): Adjust.
13274 (switch_to_inferior_and_push_target): New.
13275 (add_inferior_command, clone_inferior_command): Handle
13276 "-no-connection" parameter. Use
13277 switch_to_inferior_and_push_target.
13278 (_initialize_inferior): Mention "-no-connection" option in
13279 the help of "add-inferior" and "clone-inferior" commands.
13280 * inferior.h: Include "process-stratum-target.h".
13281 (interrupt_target_1): Use bool.
13282 (struct inferior) <push_target, unpush_target, target_is_pushed,
13283 find_target_beneath, top_target, process_target, target_at,
13284 m_stack>: New.
13285 (discard_all_inferiors): Delete.
13286 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13287 (all_inferiors, all_non_exited_inferiors): Add
13288 process_stratum_target parameter.
13289 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13290 (target_last_proc_target): New global.
13291 (follow_fork_inferior): Push target on new inferior. Pass target
13292 to add_thread_silent. Call exec_on_vfork. Handle target's
13293 reference count.
13294 (follow_fork): Adjust get_last_target_status call. Also consider
13295 target.
13296 (follow_exec): Push target on new inferior.
13297 (struct execution_control_state) <target>: New field.
13298 (user_visible_resume_target): New.
13299 (do_target_resume): Call target_async.
13300 (resume_1): Set target's threads_executing flag. Consider resume
13301 target.
13302 (commit_resume_all_targets): New.
13303 (proceed): Also consider resume target. Skip threads of inferiors
13304 with no execution. Commit resumtion in all targets.
13305 (start_remote): Pass current inferior to wait_for_inferior.
13306 (infrun_thread_stop_requested): Consider target as well. Pass
13307 thread_info pointer to clear_inline_frame_state instead of ptid.
13308 (infrun_thread_thread_exit): Consider target as well.
13309 (random_pending_event_thread): New inferior parameter. Use it.
13310 (do_target_wait): Rename to ...
13311 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13312 down.
13313 (threads_are_resumed_pending_p, do_target_wait): New.
13314 (prepare_for_detach): Adjust calls.
13315 (wait_for_inferior): New inferior parameter. Handle it. Use
13316 do_target_wait_1 instead of do_target_wait.
13317 (fetch_inferior_event): Adjust. Switch to representative
13318 inferior. Pass target down.
13319 (set_last_target_status): Add process_stratum_target parameter.
13320 Save target in global.
13321 (get_last_target_status): Add process_stratum_target parameter and
13322 handle it.
13323 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13324 (context_switch): Check inferior_ptid == null_ptid before calling
13325 inferior_thread().
13326 (get_inferior_stop_soon): Pass down target.
13327 (wait_one): Rename to ...
13328 (poll_one_curr_target): ... this.
13329 (struct wait_one_event): New.
13330 (wait_one): New.
13331 (stop_all_threads): Adjust.
13332 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13333 event's target.
13334 (switch_back_to_stepped_thread): Also consider target.
13335 (print_stop_event): Update.
13336 (normal_stop): Update. Also consider the resume target.
13337 * infrun.h (wait_for_inferior): Remove declaration.
13338 (user_visible_resume_target): New declaration.
13339 (get_last_target_status, set_last_target_status): New
13340 process_stratum_target parameter.
13341 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13342 process_stratum_target parameter, and use it.
13343 (clear_inline_frame_state (thread_info*)): New.
13344 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13345 process_stratum_target parameter.
13346 (clear_inline_frame_state (thread_info*)): Declare.
13347 * linux-fork.c (delete_checkpoint_command): Pass target down to
13348 find_thread_ptid.
13349 (checkpoint_command): Adjust.
13350 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13351 instead of just tweaking inferior_ptid.
13352 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13353 (exit_lwp): Pass target down to find_thread_ptid.
13354 (attach_proc_task_lwp_callback): Pass target down to
13355 add_thread/set_running/set_executing.
13356 (linux_nat_target::attach): Pass target down to
13357 thread_change_ptid.
13358 (get_detach_signal): Pass target down to find_thread_ptid.
13359 Consider last target status's target.
13360 (linux_resume_one_lwp_throw, resume_lwp)
13361 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13362 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13363 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13364 (linux_nat_target::async_wait_fd): New.
13365 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13366 target down.
13367 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13368 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13369 * linux-thread-db.c (struct thread_db_info::process_target): New
13370 field.
13371 (add_thread_db_info): Save target.
13372 (get_thread_db_info): New process_stratum_target parameter. Also
13373 match target.
13374 (delete_thread_db_info): New process_stratum_target parameter.
13375 Also match target.
13376 (thread_from_lwp): Adjust to pass down target.
13377 (thread_db_notice_clone): Pass down target.
13378 (check_thread_db_callback): Pass down target.
13379 (try_thread_db_load_1): Always push the thread_db target.
13380 (try_thread_db_load, record_thread): Pass target down.
13381 (thread_db_target::detach): Pass target down. Always unpush the
13382 thread_db target.
13383 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13384 target down. Always unpush the thread_db target.
13385 (find_new_threads_callback, thread_db_find_new_threads_2)
13386 (thread_db_target::update_thread_list): Pass target down.
13387 (thread_db_target::pid_to_str): Pass current inferior down.
13388 (thread_db_target::get_thread_local_address): Pass target down.
13389 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13390 target down.
13391 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13392 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13393 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13394 (procfs_init_inferior): Rename to ...
13395 (procfs_target::procfs_init_inferior): ... this and adjust.
13396 (procfs_target::create_inferior, procfs_notice_thread)
13397 (procfs_do_thread_registers): Adjust.
13398 * ppc-fbsd-tdep.c: Include "inferior.h".
13399 (ppcfbsd_get_thread_local_address): Pass down target.
13400 * proc-service.c (ps_xfer_memory): Switch current inferior and
13401 program space as well.
13402 (get_ps_regcache): Pass target down.
13403 * process-stratum-target.c
13404 (process_stratum_target::thread_address_space)
13405 (process_stratum_target::thread_architecture): Pass target down.
13406 * process-stratum-target.h
13407 (process_stratum_target::threads_executing): New field.
13408 (as_process_stratum_target): New.
13409 * ravenscar-thread.c
13410 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13411 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13412 down.
13413 * record-btrace.c (record_btrace_target::info_record): Adjust.
13414 (record_btrace_target::record_method)
13415 (record_btrace_target::record_is_replaying)
13416 (record_btrace_target::fetch_registers)
13417 (get_thread_current_frame_id, record_btrace_target::resume)
13418 (record_btrace_target::wait, record_btrace_target::stop): Pass
13419 target down.
13420 * record-full.c (record_full_wait_1): Switch to event thread.
13421 Pass target down.
13422 * regcache.c (regcache::regcache)
13423 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13424 process_stratum_target parameter and handle it.
13425 (current_thread_target): New global.
13426 (get_thread_regcache): Add process_stratum_target parameter and
13427 handle it. Switch inferior before calling target method.
13428 (get_thread_regcache): Pass target down.
13429 (get_thread_regcache_for_ptid): Pass target down.
13430 (registers_changed_ptid): Add process_stratum_target parameter and
13431 handle it.
13432 (registers_changed_thread, registers_changed): Pass target down.
13433 (test_get_thread_arch_aspace_regcache): New.
13434 (current_regcache_test): Define a couple local test_target_ops
13435 instances and use them for testing.
13436 (readwrite_regcache): Pass process_stratum_target parameter.
13437 (cooked_read_test, cooked_write_test): Pass mock_target down.
13438 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13439 (get_thread_arch_aspace_regcache): Add process_stratum_target
13440 parameter.
13441 (regcache::target): New method.
13442 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13443 (regcache::registers_changed_ptid): Add process_stratum_target
13444 parameter.
13445 (regcache::m_target): New field.
13446 (registers_changed_ptid): Add process_stratum_target parameter.
13447 * remote.c (remote_state::supports_vCont_probed): New field.
13448 (remote_target::async_wait_fd): New method.
13449 (remote_unpush_and_throw): Add remote_target parameter.
13450 (get_current_remote_target): Adjust.
13451 (remote_target::remote_add_inferior): Push target.
13452 (remote_target::remote_add_thread)
13453 (remote_target::remote_notice_new_inferior)
13454 (get_remote_thread_info): Pass target down.
13455 (remote_target::update_thread_list): Skip threads of inferiors
13456 bound to other targets. (remote_target::close): Don't discard
13457 inferiors. (remote_target::add_current_inferior_and_thread)
13458 (remote_target::process_initial_stop_replies)
13459 (remote_target::start_remote)
13460 (remote_target::remote_serial_quit_handler): Pass down target.
13461 (remote_target::remote_unpush_target): New remote_target
13462 parameter. Unpush the target from all inferiors.
13463 (remote_target::remote_unpush_and_throw): New remote_target
13464 parameter. Pass it down.
13465 (remote_target::open_1): Check whether the current inferior has
13466 execution instead of checking whether any inferior is live. Pass
13467 target down.
13468 (remote_target::remote_detach_1): Pass down target. Use
13469 remote_unpush_target.
13470 (extended_remote_target::attach): Pass down target.
13471 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13472 (remote_target::append_resumption): Pass down target.
13473 (remote_target::append_pending_thread_resumptions)
13474 (remote_target::remote_resume_with_hc, remote_target::resume)
13475 (remote_target::commit_resume): Pass down target.
13476 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13477 (remote_target::interrupt_query)
13478 (remote_target::remove_new_fork_children)
13479 (remote_target::check_pending_events_prevent_wildcard_vcont)
13480 (remote_target::remote_parse_stop_reply)
13481 (remote_target::process_stop_reply): Pass down target.
13482 (first_remote_resumed_thread): New remote_target parameter. Pass
13483 it down.
13484 (remote_target::wait_as): Pass down target.
13485 (unpush_and_perror): New remote_target parameter. Pass it down.
13486 (remote_target::readchar, remote_target::remote_serial_write)
13487 (remote_target::getpkt_or_notif_sane_1)
13488 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13489 down target.
13490 (remote_target::mourn_inferior): Pass down target. Use
13491 remote_unpush_target.
13492 (remote_target::core_of_thread)
13493 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13494 (remote_target::pid_to_exec_file)
13495 (remote_target::thread_handle_to_thread_info): Pass down target.
13496 (remote_target::async_wait_fd): New.
13497 * riscv-fbsd-tdep.c: Include "inferior.h".
13498 (riscv_fbsd_get_thread_local_address): Pass down target.
13499 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13500 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13501 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13502 Adjust.
13503 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13504 * solib-svr4.c (enable_break): Pass down target.
13505 * spu-multiarch.c (parse_spufs_run): Pass down target.
13506 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13507 * target-delegates.c: Regenerate.
13508 * target.c (g_target_stack): Delete.
13509 (current_top_target): Return the current inferior's top target.
13510 (target_has_execution_1): Refer to the passed-in inferior's top
13511 target.
13512 (target_supports_terminal_ours): Check whether the initial
13513 inferior was already created.
13514 (decref_target): New.
13515 (target_stack::push): Incref/decref the target.
13516 (push_target, push_target, unpush_target): Adjust.
13517 (target_stack::unpush): Defref target.
13518 (target_is_pushed): Return bool. Adjust to refer to the current
13519 inferior's target stack.
13520 (dispose_inferior): Delete, and inline parts ...
13521 (target_preopen): ... here. Only dispose of the current inferior.
13522 (target_detach): Hold strong target reference while detaching.
13523 Pass target down.
13524 (target_thread_name): Add assertion.
13525 (target_resume): Pass down target.
13526 (target_ops::beneath, find_target_at): Adjust to refer to the
13527 current inferior's target stack.
13528 (get_dummy_target): New.
13529 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13530 has a thread running.
13531 (initialize_targets): Rename to ...
13532 (_initialize_target): ... this.
13533 * target.h: Include "gdbsupport/refcounted-object.h".
13534 (struct target_ops): Inherit refcounted_object.
13535 (target_ops::shortname, target_ops::longname): Make const.
13536 (target_ops::async_wait_fd): New method.
13537 (decref_target): Declare.
13538 (struct target_ops_ref_policy): New.
13539 (target_ops_ref): New typedef.
13540 (get_dummy_target): Declare function.
13541 (target_is_pushed): Return bool.
13542 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13543 (all_matching_threads_iterator::all_matching_threads_iterator):
13544 Handle filter target.
13545 * thread-iter.h (struct all_matching_threads_iterator, struct
13546 all_matching_threads_range, class all_non_exited_threads_range):
13547 Filter by target too. Remove explicit.
13548 * thread.c (threads_executing): Delete.
13549 (inferior_thread): Pass down current inferior.
13550 (clear_thread_inferior_resources): Pass down thread pointer
13551 instead of ptid_t.
13552 (add_thread_silent, add_thread_with_info, add_thread): Add
13553 process_stratum_target parameter. Use it for thread and inferior
13554 searches.
13555 (is_current_thread): New.
13556 (thread_info::deletable): Use it.
13557 (find_thread_ptid, thread_count, in_thread_list)
13558 (thread_change_ptid, set_resumed, set_running): New
13559 process_stratum_target parameter. Pass it down.
13560 (set_executing): New process_stratum_target parameter. Pass it
13561 down. Adjust reference to 'threads_executing'.
13562 (threads_are_executing): New process_stratum_target parameter.
13563 Adjust reference to 'threads_executing'.
13564 (set_stop_requested, finish_thread_state): New
13565 process_stratum_target parameter. Pass it down.
13566 (switch_to_thread): Also match inferior.
13567 (switch_to_thread): New process_stratum_target parameter. Pass it
13568 down.
13569 (update_threads_executing): Reimplement.
13570 * top.c (quit_force): Pop targets from all inferior.
13571 (gdb_init): Don't call initialize_targets.
13572 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13573 Declare.
13574 (windows_add_thread, windows_delete_thread): Adjust.
13575 (get_windows_debug_event): Rename to ...
13576 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13577 * tracefile-tfile.c (tfile_target_open): Pass down target.
13578 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13579 Forward declare.
13580 (switch_to_thread): Add process_stratum_target parameter.
13581 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13582 parameter. Use it.
13583 (mi_on_resume): Pass target down.
13584 * nat/fork-inferior.c (startup_inferior): Add
13585 process_stratum_target parameter. Pass it down.
13586 * nat/fork-inferior.h (startup_inferior): Add
13587 process_stratum_target parameter.
13588 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13589
75c6c844
PA
135902020-01-10 Pedro Alves <palves@redhat.com>
13591
13592 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13593 directly. Instead find the first thread in the thread list and
13594 use switch_to_thread.
13595
78f2c40a
PA
135962020-01-10 Pedro Alves <palves@redhat.com>
13597
13598 * remote.c (remote_target::remote_add_inferior): Don't bind a
13599 process to the current inferior if the current inferior is already
13600 bound to a process.
13601
e7af6c70
TBA
136022020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13603 Pedro Alves <palves@redhat.com>
13604
13605 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13606 If no process is specified, return null_ptid instead of
13607 inferior_ptid.
13608 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13609 TARGET_WAITKIND_SIGNALLED with no pid.
13610
31ba933e
PA
136112020-01-10 Pedro Alves <palves@redhat.com>
13612
13613 * remote.c (first_remote_resumed_thread): New.
13614 (remote_target::wait_as): Use it as default event_ptid instead of
13615 inferior_ptid.
13616
735fc2ca
PA
136172020-01-10 Pedro Alves <palves@redhat.com>
13618
13619 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13620
c17e02e1
PA
136212020-01-10 Pedro Alves <palves@redhat.com>
13622
13623 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13624 not -1.
13625
ab1ddbcf
PA
136262020-01-10 Pedro Alves <palves@redhat.com>
13627
13628 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13629 ptid to get_last_target_status.
13630 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13631 ptid to get_last_target_status.
13632 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13633 get_last_target_status.
13634 (info_program_command): Don't pass a target_waitstatus to
13635 get_last_target_status.
13636 * infrun.c (init_wait_for_inferior): Use
13637 nullify_last_target_wait_ptid.
13638 (get_last_target_status): Handle nullptr arguments.
13639 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13640 (print_stop_event): Don't pass a ptid to get_last_target_status.
13641 (normal_stop): Don't pass a ptid to get_last_target_status.
13642 * infrun.h (get_last_target_status, set_last_target_status): Move
13643 comments here and update.
13644 (nullify_last_target_wait_ptid): Declare.
13645 * linux-fork.c (fork_load_infrun_state): Remove local extern
13646 declaration of nullify_last_target_wait_ptid.
13647 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13648 to get_last_target_status.
13649
f3f8ece4
PA
136502020-01-10 Pedro Alves <palves@redhat.com>
13651
13652 * gdbthread.h (scoped_restore_current_thread)
13653 <dont_restore, restore, m_dont_restore>: Declare.
13654 * thread.c (thread_alive): Add assertion. Return bool.
13655 (switch_to_thread_if_alive): New.
13656 (prune_threads): Switch inferior/thread.
13657 (print_thread_info_1): Switch thread before calling target methods.
13658 (scoped_restore_current_thread::restore): New, factored out from
13659 ...
13660 (scoped_restore_current_thread::~scoped_restore_current_thread):
13661 ... this.
13662 (scoped_restore_current_thread::scoped_restore_current_thread):
13663 Add assertion.
13664 (thread_apply_all_command, thread_select): Use
13665 switch_to_thread_if_alive.
13666 * infrun.c (proceed, restart_threads, handle_signal_stop)
13667 (switch_back_to_stepped_thread): Switch current thread before
13668 calling target methods.
13669
db2d40f7
PA
136702020-01-10 Pedro Alves <palves@redhat.com>
13671
13672 * inferior.c (switch_to_inferior_no_thread): New function,
13673 factored out from ...
13674 (inferior_command): ... here.
13675 * inferior.h (switch_to_inferior_no_thread): Declare.
13676 * mi/mi-main.c (run_one_inferior): Use
13677 switch_to_inferior_no_thread.
13678
bd420a2d
PA
136792020-01-10 Pedro Alves <palves@redhat.com>
13680
13681 * infcmd.c (kill_command): Remove dead code.
13682
ddf5db90
PA
136832020-01-10 Pedro Alves <palves@redhat.com>
13684
13685 * remote.c (remote_target::mourn_inferior): No longer check
13686 whether the target is running.
13687
5018ce90
PA
136882020-01-10 Pedro Alves <palves@redhat.com>
13689
13690 * corelow.c (core_target::has_execution): Change parameter type to
13691 inferior pointer.
13692 * inferior.c (number_of_live_inferiors): Use
13693 inferior::has_execution instead of target_has_execution_1.
13694 * inferior.h (inferior::has_execution): New.
13695 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13696 inferior::has_execution instead of target_has_execution_1.
13697 * process-stratum-target.c
13698 (process_stratum_target::has_execution): Change parameter type to
13699 inferior pointer. Check the inferior's PID instead of
13700 inferior_ptid.
13701 * process-stratum-target.h
13702 (process_stratum_target::has_execution): Change parameter type to
13703 inferior pointer.
13704 * record-full.c (record_full_core_target::has_execution): Change
13705 parameter type to inferior pointer.
13706 * target.c (target_has_execution_1): Change parameter type to
13707 inferior pointer.
13708 (target_has_execution_current): Adjust.
13709 * target.h (target_ops::has_execution): Change parameter type to
13710 inferior pointer.
13711 (target_has_execution_1): Change parameter type to inferior
13712 pointer. Change return type to bool.
13713 * tracefile.h (tracefile_target::has_execution): Change parameter
13714 type to inferior pointer.
13715
74375d18
PA
137162020-01-10 Pedro Alves <palves@redhat.com>
13717
13718 * exceptions.c (print_flush): Remove current_top_target() check.
13719
acdf84a6
PA
137202020-01-10 Pedro Alves <palves@redhat.com>
13721
13722 * remote.c (show_remote_exec_file): Show the current inferior's
13723 exec-file instead of the command variable's value.
13724
ec506636
PA
137252020-01-10 Pedro Alves <palves@redhat.com>
13726
13727 * record-full.c (record_full_resume_ptid): New global.
13728 (record_full_target::resume): Set it.
13729 (record_full_wait_1): Use record_full_resume_ptid instead of
13730 inferior_ptid.
13731
873657b9
PA
137322020-01-10 Pedro Alves <palves@redhat.com>
13733
13734 * gdbthread.h (scoped_restore_current_thread)
13735 <dont_restore, restore, m_dont_restore>: Declare.
13736 * thread.c (thread_alive): Add assertion. Return bool.
13737 (switch_to_thread_if_alive): New.
13738 (prune_threads): Switch inferior/thread.
13739 (print_thread_info_1): Switch thread before calling target methods.
13740 (scoped_restore_current_thread::restore): New, factored out from
13741 ...
13742 (scoped_restore_current_thread::~scoped_restore_current_thread):
13743 ... this.
13744 (scoped_restore_current_thread::scoped_restore_current_thread):
13745 Add assertion.
13746 (thread_apply_all_command, thread_select): Use
13747 switch_to_thread_if_alive.
13748
7f0ae84c
GB
137492020-01-10 George Barrett <bob@bob131.so>
13750
13751 * stap-probe.c (stap_modify_semaphore): Don't check for null
13752 semaphores.
13753 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13754 for null semaphores.
13755
f5a7c406
AB
137562020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13757
13758 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13759 all source windows, and maintain horizontal scroll status while
13760 doing so.
13761
9ae6bf64
TT
137622020-01-09 Tom Tromey <tom@tromey.com>
13763
13764 PR tui/18932:
13765 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13766 update_source_window, not print_source_lines.
13767
b2efe70c
AB
137682020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 * tui/tui.c (tui_enable): Register tui hooks after calling
13771 tui_display_main.
13772
5f23a082
CB
137732020-01-09 Christian Biesinger <cbiesinger@google.com>
13774
13775 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13776
3061113b
SM
137772020-01-08 Simon Marchi <simon.marchi@efficios.com>
13778
13779 * thread.c (print_thread_info_1): Fix indentation.
13780
57d75002
CB
137812020-01-09 Christian Biesinger <cbiesinger@google.com>
13782
13783 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13784 unique_xmalloc_ptr outside the if to always free the demangled name.
13785
6a053cb1
TT
137862020-01-08 Tom Tromey <tromey@adacore.com>
13787
13788 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13789 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13790 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13791 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13792 Remove.
13793 (section_offsets): New typedef.
13794 * symtab.c (fixup_section, get_msymbol_address): Update.
13795 * symmisc.c (dump_msymbols): Update.
13796 * symfile.h (relative_addr_info_to_section_offsets)
13797 (symfile_map_offsets_to_segments): Update.
13798 * symfile.c (build_section_addr_info_from_objfile)
13799 (init_objfile_sect_indices): Update.
13800 (struct place_section_arg): Change type of "offsets".
13801 (place_section): Update.
13802 (relative_addr_info_to_section_offsets): Change type of
13803 "section_offsets". Remove "num_sections" parameter.
13804 (default_symfile_offsets, syms_from_objfile_1)
13805 (set_objfile_default_section_offset): Update.
13806 (reread_symbols): No need to preserve section offsets by hand.
13807 (symfile_map_offsets_to_segments): Change type of "offsets".
13808 * stap-probe.c (relocate_address): Update.
13809 * stabsread.h (process_one_symbol): Update.
13810 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13811 (solib_target_relocate_section_addresses): Update.
13812 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13813 Update.
13814 * solib-frv.c (frv_relocate_main_executable): Update.
13815 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13816 * solib-aix.c (solib_aix_get_section_offsets): Change return
13817 type.
13818 (solib_aix_solib_create_inferior_hook): Update.
13819 * remote.c (remote_target::get_offsets): Update.
13820 * psymtab.c (find_pc_sect_psymtab): Update.
13821 * psympriv.h (struct partial_symbol) <address, text_low,
13822 text_high>: Update.
13823 * objfiles.h (obj_section_offset): Update.
13824 (struct objfile) <section_offsets>: Change type.
13825 <num_sections>: Remove.
13826 (objfile_relocate): Update.
13827 * objfiles.c (entry_point_address_query): Update
13828 (relocate_one_symbol): Change type of "section_offsets".
13829 (objfile_relocate1, objfile_relocate1): Change type of
13830 "new_offsets".
13831 (objfile_rebase1): Update.
13832 * mipsread.c (mipscoff_symfile_read): Update.
13833 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13834 parameter.
13835 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13836 (parse_external, psymtab_to_symtab_1): Update.
13837 * machoread.c (macho_symfile_offsets): Update.
13838 * ia64-tdep.c (ia64_find_unwind_table): Update.
13839 * hppa-tdep.c (read_unwind_info): Update.
13840 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13841 * dwarf2read.c (create_addrmap_from_index)
13842 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13843 (process_psymtab_comp_unit_reader, add_partial_symbol)
13844 (add_partial_subprogram, process_full_comp_unit)
13845 (read_file_scope, read_func_scope, read_lexical_block_scope)
13846 (read_call_site_scope, dwarf2_rnglists_process)
13847 (dwarf2_ranges_process, dwarf2_ranges_read)
13848 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13849 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13850 Update.
13851 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13852 Update.
13853 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13854 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13855 (process_one_symbol): Change type of "section_offsets".
13856 * ctfread.c (get_objfile_text_range): Update.
13857 * coffread.c (coff_symtab_read, enter_linenos)
13858 (process_coff_symbol): Update.
13859 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13860 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13861
456e800a
TT
138622020-01-08 Tom Tromey <tromey@adacore.com>
13863
13864 * dwarf2read.c (parse_macro_definition): Use std::string.
13865 (parse_macro_definition): Likewise.
13866
6dfa2fc2
TT
138672020-01-08 Tom Tromey <tromey@adacore.com>
13868
13869 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13870 (ATTR_ALLOC_CHUNK): Remove.
13871
421d1616
TT
138722020-01-08 Tom Tromey <tromey@adacore.com>
13873
13874 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13875
43816ebc
TT
138762020-01-08 Tom Tromey <tromey@adacore.com>
13877
13878 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13879 (dwarf2_compute_name, open_dwo_file): Likewise.
13880 (process_enumeration_scope): Use std::vector.
13881 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13882 (partial_die_info::fixup, dwarf2_start_subfile)
13883 (guess_full_die_structure_name, dwarf2_name): Likewise.
13884 (determine_prefix): Update.
13885 (guess_full_die_structure_name): Make return type const.
13886 (partial_die_full_name): Return unique_xmalloc_ptr.
13887 (DW_FIELD_ALLOC_CHUNK): Remove.
13888
4212d509
TT
138892020-01-07 Tom Tromey <tromey@adacore.com>
13890
13891 PR build/24937:
13892 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13893
06a6207a
JT
138942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13895
13896 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13897
153d79c4
AB
138982020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13899
13900 * stack.c (print_frame_info): Move disassemble_next_line code
13901 inside source_print block.
13902
66182876
EZ
139032020-01-06 Eli Zaretskii <eliz@gnu.org>
13904
13905 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13906 gdb/signals.h, as we are now using native signal symbols.
13907
cbfa8581
SV
139082020-01-06 Shahab Vahedi <shahab@synopsys.com>
13909
13910 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13911 overflow by an early check of content vs threshold.
aac66a4c 13912 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13913 Likewise.
13914
3f602821
EZ
139152020-01-06 Eli Zaretskii <eliz@gnu.org>
13916
13917 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13918
a08c904d
JT
139192020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13920
13921 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13922 export table if no section contains it's RVA.
13923
89a65580
EZ
139242020-01-06 Eli Zaretskii <eliz@gnu.org>
13925
13926 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13927
8b7fcda2
HD
139282020-01-06 Hannes Domani <ssbssa@yahoo.de>
13929
13930 * source.c (print_source_lines_base): Set last_line_listed.
13931
a61b4f69
SV
139322020-01-06 Shahab Vahedi <shahab@synopsys.com>
13933
13934 * tui/tui-disasm.c: Remove trailing spaces.
13935
559e7e50
EZ
139362020-01-06 Eli Zaretskii <eliz@gnu.org>
13937 Pedro Alves <palves@redhat.com>
13938
13939 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13940 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13941 (windows_gdb_signal_to_target): New function, uses the above
13942 enumeration to convert GDB internal signal codes to equivalent
13943 Windows codes.
13944 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13945 * windows-nat.c: Include "gdb_wait.h".
13946 (get_windows_debug_event): Extract the fatal exception from the
13947 exit status and convert to the equivalent Posix signal number.
13948 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13949 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13950 * gdbsupport/gdb_wait.c: New file, implements
13951 windows_status_to_termsig.
13952 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13953 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13954
f2302a34
AB
139552020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13958 show_layout.
13959
6a5206eb
LM
139602020-01-05 Luis Machado <luis.machado@linaro.org>
13961
13962 * aarch64-linux-nat.c
13963 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13964 and bfd_mach_aarch64.
13965
6ec1d75e
PW
139662020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13967
13968 * ui-file.c (stdio_file::can_emit_style_escape)
13969 (tee_file::can_emit_style_escape): Ensure style is used also on
13970 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13971 to gdb_stdout.
13972 * main.c (set_gdb_data_directory): Use file style to output the
13973 warning that the given pathname is not a directory.
13974 * top.c (show_history_filename, gdb_safe_append_history)
13975 (show_gdb_datadir): Use file style.
13976
44f81a76
HD
139772020-01-03 Hannes Domani <ssbssa@yahoo.de>
13978
13979 * solib-target.c (struct lm_info_target):
13980 Change offsets to be a unique_xmalloc_ptr.
13981 (solib_target_relocate_section_addresses): Update.
13982
25057eb0
HD
139832020-01-03 Hannes Domani <ssbssa@yahoo.de>
13984
13985 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13986
6e2118f5
BE
139872020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13988
13989 * MAINTAINERS (Write After Approval): Add myself.
13990
8133c7dc
LM
139912020-01-02 Luis Machado <luis.machado@linaro.org>
13992
13993 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13994 Cell BE architecture.
13995 * target.h (struct target_ops) <thread_architecture>: Likewise.
13996
48189bec
HD
139972020-01-01 Hannes Domani <ssbssa@yahoo.de>
13998
13999 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14000
ead1063b
HD
140012020-01-01 Hannes Domani <ssbssa@yahoo.de>
14002
14003 * MAINTAINERS (Write After Approval): Add myself.
14004
e5d78223
JB
140052020-01-01 Joel Brobecker <brobecker@adacore.com>
14006
14007 * gdbarch.sh: Update copyright year range of generated files.
14008
b811d2c2
JB
140092020-01-01 Joel Brobecker <brobecker@adacore.com>
14010
14011 Update copyright year range in all GDB files.
14012
5f4def5c
JB
140132020-01-01 Joel Brobecker <brobecker@adacore.com>
14014
14015 * copyright.py: Convert to Python 3.
14016
51fd4002
JB
140172020-01-01 Joel Brobecker <brobecker@adacore.com>
14018
14019 * copyright.py: Adapt after move of gnulib directory from gdb
14020 directory to toplevel directory.
14021
5fb651f2
JB
140222020-01-01 Joel Brobecker <brobecker@adacore.com>
14023
14024 * copyright.py (main): Exit if run from the wrong directory.
14025
5dd8bf88
JB
140262020-01-01 Joel Brobecker <brobecker@adacore.com>
14027
14028 * top.c (print_gdb_version): Change copyright year to 2020.
14029
9f71dacb 140302020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14031
9f71dacb 14032 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14033
9f71dacb 14034For older changes see ChangeLog-2019.
c906108c
SS
14035\f
14036Local Variables:
14037mode: change-log
14038left-margin: 8
14039fill-column: 74
14040version-control: never
57da7796 14041coding: utf-8
c906108c 14042End: