gdb/fortran: Clean up array/string expression evaluation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c37706a
AB
12020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * eval.c (fortran_value_subarray): New function, content is taken
4 from...
5 (evaluate_subexp_standard): ...here, in two places. Now arrays
6 and strings both call the new function.
7 (calc_f77_array_dims): Add header comment, handle strings.
8
14f9473c
VC
92020-09-18 Victor Collod <vcollod@nvidia.com>
10
11 PR gdb/26635
12 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
13 (i386_analyze_prologue): Call i386_skip_endbr.
14
b60cea74
TT
152020-09-18 Tom Tromey <tromey@adacore.com>
16
17 * windows-nat.c (struct windows_nat_target) <wait>: Update.
18 (windows_nat_target::wait): Update.
19 * target/wait.h (enum target_wait_flag): New. Use
20 DEF_ENUM_FLAGS_TYPE.
21 * target/target.h (target_wait): Change type of options.
22 * target.h (target_options_to_string, default_target_wait):
23 Update.
24 (struct target_ops) <wait>: Change type of options.
25 * target.c (target_wait, default_target_wait, do_option): Change
26 type of "options".
27 (target_options_to_string): Likewise.
28 * target-delegates.c: Rebuild.
29 * target-debug.h (target_debug_print_target_wait_flags): Rename
30 from target_debug_print_options.
31 * sol-thread.c (class sol_thread_target) <wait>: Update.
32 (sol_thread_target::wait): Update.
33 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
34 (rs6000_nat_target::wait): Update.
35 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
36 Update.
37 (remote_target::wait_ns, remote_target::wait_as): Change type of
38 "options".
39 (remote_target::wait): Update.
40 * remote-sim.c (struct gdbsim_target) <wait>: Update.
41 (gdbsim_target::wait): Update.
42 * record-full.c (class record_full_base_target) <wait>: Update.
43 (record_full_wait_1): Change type of "options".
44 (record_full_base_target::wait): Update.
45 * record-btrace.c (class record_btrace_target) <wait>: Update.
46 (record_btrace_target::wait): Update.
47 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
48 Update.
49 (ravenscar_thread_target::wait): Update.
50 * procfs.c (class procfs_target) <wait>: Update.
51 (procfs_target::wait): Update.
52 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
53 * obsd-nat.c (obsd_nat_target::wait): Update.
54 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
55 (nto_procfs_target::wait): Update.
56 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
57 * nbsd-nat.c (nbsd_wait): Change type of "options".
58 (nbsd_nat_target::wait): Update.
59 * linux-thread-db.c (class thread_db_target) <wait>: Update.
60 (thread_db_target::wait): Update.
61 * linux-nat.h (class linux_nat_target) <wait>: Update.
62 * linux-nat.c (linux_nat_target::wait): Update.
63 (linux_nat_wait_1): Update.
64 * infrun.c (do_target_wait_1, do_target_wait): Change type of
65 "options".
66 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
67 * inf-ptrace.c (inf_ptrace_target::wait): Update.
68 * go32-nat.c (struct go32_nat_target) <wait>: Update.
69 (go32_nat_target::wait): Update.
70 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
71 * gnu-nat.c (gnu_nat_target::wait): Update.
72 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
73 * fbsd-nat.c (fbsd_nat_target::wait): Update.
74 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
75 * darwin-nat.c (darwin_nat_target::wait): Update.
76 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
77 (bsd_uthread_target::wait): Update.
78 * aix-thread.c (class aix_thread_target) <wait>: Update.
79 (aix_thread_target::wait): Update.
80
0295dde6
AB
812020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * compile/compile-object-run.c (create_copied_type_recursive): New
84 function.
85 (compile_object_run): Use new function.
86
d3483b43
JT
872020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
88
89 * NEWS: Mention x86_64 Cygwin core file support.
90
e7d612ad
JT
912020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
92
93 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
94 (core_process_module_section): Handle NOTE_INFO_MODULE64.
95
aff9d387
JT
962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
97
62a5151b
JT
98 * windows-tdep.h: Add prototypes.
99 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
100 (i386_windows_core_pid_to_str): Move and rename ...
101 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
102 (windows_core_pid_to_str): ... and here.
103 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
104
1052020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
106 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
107 (amd64_windows_init_abi_common): ... and register.
108
7d155da3
JT
1092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
110
111 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
112 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
113
e8ef12b9
PA
1142020-09-18 Pedro Alves <pedro@palves.net>
115
116 PR gdb/26631
117 * thread.c (thread_find_command): Switch inferior before calling
118 target methods.
119
c1e1314d
TT
1202020-09-17 Tom Tromey <tromey@adacore.com>
121
122 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
123 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
124 (tdesc_arch_data_up): New typedef.
125 (tdesc_use_registers, tdesc_data_alloc): Update.
126 (tdesc_data_cleanup): Don't declare.
127 * target-descriptions.c (tdesc_data_alloc): Return a
128 tdesc_arch_data_up.
129 (tdesc_arch_data_deleter::operator()): Rename from
130 tdesc_data_cleanup. Change argument type.
131 (tdesc_use_registers): Change early_data to an rvalue reference.
132 (tdesc_use_registers): Don't use delete.
133 * sparc-tdep.c (sparc32_gdbarch_init): Update.
134 * s390-tdep.c (s390_gdbarch_init): Update.
135 * rx-tdep.c (rx_gdbarch_init): Update.
136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
137 * riscv-tdep.c (riscv_gdbarch_init): Update.
138 * or1k-tdep.c (or1k_gdbarch_init): Update.
139 * nios2-tdep.c (nios2_gdbarch_init): Update.
140 * nds32-tdep.c (nds32_gdbarch_init): Update.
141 * mips-tdep.c (mips_gdbarch_init): Update.
142 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
143 * m68k-tdep.c (m68k_gdbarch_init): Update.
144 * i386-tdep.c (i386_gdbarch_init): Update.
145 * arm-tdep.c (arm_gdbarch_init): Update.
146 * arc-tdep.c (arc_tdesc_init): Update.
147 (arc_gdbarch_init): Update.
148 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
149
0363df3d
HD
1502020-09-17 Hannes Domani <ssbssa@yahoo.de>
151
152 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
153 for WOW64 processes.
154
280a9412
TT
1552020-09-17 Tom Tromey <tom@tromey.com>
156
157 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
158
6108fd18
TT
1592020-09-17 Tom Tromey <tom@tromey.com>
160
161 * value.c (preserve_values): Update.
162 * python/py-type.c (save_objfile_types): Update.
163 * guile/scm-type.c (save_objfile_types): Update.
164 * gdbtypes.h (create_copied_types_hash): Return htab_up.
165 * gdbtypes.c (create_copied_types_hash): Return htab_up.
166 * compile/compile-object-run.c (compile_object_run): Update.
167
fa9b1164
TT
1682020-09-17 Tom Tromey <tom@tromey.com>
169
170 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
171 Remove.
172 <m_table>: Now htab_up.
173 * typeprint.c (typedef_hash_table::recursively_update)
174 (typedef_hash_table::add_template_parameters)
175 (typedef_hash_table::typedef_hash_table): Update.
176 (typedef_hash_table::~typedef_hash_table): Remove.
177 (typedef_hash_table::typedef_hash_table)
178 (typedef_hash_table::find_global_typedef)
179 (typedef_hash_table::find_typedef): Update.
180
eb53f105
TT
1812020-09-17 Tom Tromey <tom@tromey.com>
182
183 * target-descriptions.c (tdesc_use_registers): Use htab_up.
184
7a8a5d47
TT
1852020-09-17 Tom Tromey <tom@tromey.com>
186
187 * linespec.c (class decode_compound_collector)
188 <~decode_compound_collector>: Remove.
189 <m_unique_syms>: Now htab_up.
190 (decode_compound_collector::operator ()): Update.
191 (class symtab_collector) <~symtab_collector>: Remove.
192 <m_symtab_table>: Now htab_up.
193 (symtab_collector::operator ()): Update.
194
99032cfc
TT
1952020-09-17 Tom Tromey <tom@tromey.com>
196
197 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
198 (filename_seen_cache::clear): Update.
199 (~filename_seen_cache): Remove.
200 (filename_seen_cache::seen): Update.
201 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
202 htab_up.
203 <~filename_seen_cache>: Remove.
204 <traverse>: Update.
205
32580f6d
TT
2062020-09-17 Tom Tromey <tom@tromey.com>
207
208 * completer.c (completion_tracker::discard_completions)
209 (completion_tracker::~completion_tracker)
210 (completion_tracker::maybe_add_completion)
211 (completion_tracker::remove_completion)
212 (completion_tracker::recompute_lowest_common_denominator)
213 (completion_tracker::build_completion_result): Update.
214 * completer.h (class completion_tracker) <have_completions>:
215 Update.
216 <m_entries_hash>: Now htab_up.
217
c1fb9836
TT
2182020-09-17 Tom Tromey <tom@tromey.com>
219
220 * breakpoint.c (ambiguous_names_p): Use htab_up.
221
88f07206
TT
2222020-09-17 Tom Tromey <tom@tromey.com>
223
224 * auto-load.c (struct auto_load_pspace_info)
225 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
226 <loaded_script_files, loaded_script_texts>: Change type to
227 htab_up.
228 (~auto_load_pspace_info) Remove.
229 (init_loaded_scripts_info, maybe_add_script_file)
230 (maybe_add_script_text, auto_load_info_scripts): Update.
231
9519b2ee
TT
2322020-09-17 Tom Tromey <tromey@adacore.com>
233
234 * c-exp.y (name_obstack): Now static.
235
d2cd4113
CC
2362020-09-17 Chungyi Chi <demonic@csie.io>
237
238 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
239
b650a282
SM
2402020-09-16 Simon Marchi <simon.marchi@efficios.com>
241
242 * breakpoint.h (init_catchpoint): Change int parameter to bool.
243 (add_solib_catchpoint): Likewise.
244 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
245 to bool.
246 (add_solib_catchpoint): Change int parameter/variable to bool.
247 (catch_load_or_unload): Likewise.
248 (init_catchpoint): Likewise.
249 (create_fork_vfork_event_catchpoint): Likewise.
250 (catch_fork_command_1): Likewise.
251 (catch_exec_command_1): Likewise.
252
4d0bcfcf
SM
2532020-09-16 Simon Marchi <simon.marchi@efficios.com>
254
255 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
256 Change instance_flags to m_instance_flags.
257
fe830662
TT
2582020-09-16 Tom Tromey <tromey@adacore.com>
259
260 PR gdb/26598:
261 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
262
fe5ddfc3
JB
2632020-09-16 John Baldwin <jhb@FreeBSD.org>
264
265 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
266 PL_FLAG_EXEC.
267 (fbsd_nat_target::insert_exec_catchpoint)
268 (fbsd_nat_target::remove_exec_catchpoint): Always define.
269 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
270 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
271
e911c666
JB
2722020-09-16 John Baldwin <jhb@FreeBSD.org>
273
274 * configure.ac: Remove check for kinfo_getvmmap().
275 * configure, config.in: Regenerate.
276 * fbsd-nat.c (fbsd_read_mapping): Remove
277 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
278 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
279 kinfo_get_vmmap() are always present.
280
1f17d372
JB
2812020-09-16 John Baldwin <jhb@FreeBSD.org>
282
283 * fbsd-nat.c: Always include support for
284 TARGET_OBJECT_SIGNAL_INFO.
285
bcb1da7f
JB
2862020-09-16 John Baldwin <jhb@FreeBSD.org>
287
288 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
289 sysctl and remove procfs fallback.
290
5515f729
JB
2912020-09-16 John Baldwin <jhb@FreeBSD.org>
292
293 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
294 * fbsd-nat.h: Likewise.
295
da1df1db
TBA
2962020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
297
298 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
299 argument.
300
0e25e767
AB
3012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * ada-lang.c (ada_language_data): Delete.
304 (ada_language): Remove references to ada_language_data.
305 * c-lang.c (c_language_data): Delete.
306 (c_language): Remove references to c_language_data.
307 (cplus_language_data): Delete.
308 (cplus_language): Remove references to cplus_language_data.
309 (asm_language_data): Delete.
310 (asm_language): Remove references to asm_language_data.
311 (minimal_language_data): Delete.
312 (minimal_language): Remove references to minimal_language_data.
313 * d-lang.c (d_language_data): Delete.
314 (d_language): Remove references to d_language_data.
315 * f-lang.c (f_language_data): Delete.
316 (f_language): Remove references to f_language_data.
317 * go-lang.c (go_language_data): Delete.
318 (go_language): Remove references to go_language_data.
319 * language.c (unknown_language_data): Delete.
320 (unknown_language): Remove references to unknown_language_data.
321 (auto_language_data): Delete.
322 (auto_language): Remove references to auto_language_data.
323 * language.h (language_data): Delete struct.
324 (language_defn): No longer inherit from language_data.
325 * m2-lang.c (m2_language_data): Delete.
326 (m2_language): Remove references to m2_language_data.
327 * objc-lang.c (objc_language_data): Delete.
328 (objc_language): Remove references to objc_language_data.
329 * opencl-lang.c (opencl_language_data): Delete.
330 (opencl_language): Remove references to opencl_language_data.
331 * p-lang.c (pascal_language_data): Delete.
332 (pascal_language): Remove references to pascal_language_data.
333 * rust-lang.c (rust_language_data): Delete.
334 (rust_language): Remove references to rust_language_data.
335
b7c6e27d
AB
3362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * ada-lang.c (ada_language_data): Remove la_op_print_tab
339 initializer.
340 (ada_language::opcode_print_table): New member function.
341 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
342 (c_language::opcode_print_table): New member function.
343 (cplus_language_data): Remove la_op_print_tab initializer.
344 (cplus_language::opcode_print_table): New member function.
345 (asm_language_data): Remove la_op_print_tab initializer.
346 (asm_language::opcode_print_table): New member function.
347 (minimal_language_data): Remove la_op_print_tab initializer.
348 (minimal_language::opcode_print_table): New member function.
349 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
350 (d_language::opcode_print_table): New member function.
351 * expprint.c (print_subexp_standard): Update call to
352 opcode_print_table.
353 (op_string): Likewise.
354 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
355 (f_language::opcode_print_table): New member function.
356 * go-lang.c (go_language_data): Remove la_op_print_tab
357 initializer.
358 (go_language::opcode_print_table): New member function.
359 * language.c (unknown_language_data): Remove la_op_print_tab
360 initializer.
361 (unknown_language::opcode_print_table): New member function.
362 (auto_language_data): Remove la_op_print_tab initializer.
363 (auto_language::opcode_print_table): New member function.
364 * language.h (language_data): Remove la_op_print_tab field.
365 (language_defn::opcode_print_table): Declare new member function.
366 * m2-lang.c (m2_language_data): Remove la_op_print_tab
367 initializer.
368 (m2_language::opcode_print_table): New member function.
369 * objc-lang.c (objc_language_data): Remove la_op_print_tab
370 initializer.
371 (objc_language::opcode_print_table): New member function.
372 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
373 initializer.
374 (opencl_language::opcode_print_table): New member function.
375 * p-lang.c (pascal_language_data): Remove la_op_print_tab
376 initializer.
377 (pascal_language::opcode_print_table): New member function.
378 * rust-lang.c (rust_language_data): Remove la_op_print_tab
379 initializer.
380 (rust_language::opcode_print_table): New member function.
381
5aba6ebe
AB
3822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
385 (ada_language::expression_ops): New member function.
386 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
387 (c_language::expression_ops): New member function.
388 (cplus_language_data): Remove la_exp_desc initializer.
389 (cplus_language::expression_ops): New member function.
390 (asm_language_data): Remove la_exp_desc initializer.
391 (asm_language::expression_ops): New member function.
392 (minimal_language_data): Remove la_exp_desc initializer.
393 (minimal_language::expression_ops): New member function.
394 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
395 (d_language::expression_ops): New member function.
396 * eval.c (evaluate_subexp): Update call to expression_ops.
397 * expprint.c (print_subexp): Likewise.
398 (op_name): Likewise.
399 (dump_subexp_body): Likewise.
400 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
401 (f_language::expression_ops): New member function.
402 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
403 (go_language::expression_ops): New member function.
404 * language.c (language_defn::expression_ops): New function.
405 (unknown_language_data): Remove la_exp_desc initializer.
406 (auto_language_data): Likewise.
407 * language.h (language_data): Remove la_exp_desc field.
408 (language_defn::expression_ops): Declare new member function.
409 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
410 (m2_language::expression_ops): New member function.
411 * objc-lang.c (objc_language_data): Remove la_exp_desc
412 initializer.
413 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
414 initializer.
415 (opencl_language::expression_ops): New member function.
416 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
417 * parse.c (operator_length): Update call to expression_ops.
418 (exp_iterate): Likewise.
419 * rust-lang.c (rust_language_data): Remove la_exp_desc
420 initializer.
421 (ruse_language::expression_ops): New member function.
422
b63a3f3f
AB
4232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * ada-lang.c (ada_language_data): Remove la_varobj_ops
426 initializer.
427 (ada_language::varobj_ops): New member function.
428 * c-lang.c (c_language_data): Remove la_varobj_ops
429 initializer.
430 (cplus_language_data): Likewise.
431 (cplus_language::varobj_ops): New member function.
432 (asm_language_data): Remove la_varobj_ops initializer.
433 (minimal_language_data): Likewise.
434 * d-lang.c (d_language_data): Likewise.
435 * f-lang.c (f_language_data): Likewise.
436 * go-lang.c (go_language_data): Likewise.
437 * language.c (language_defn::varobj_ops): New function.
438 (unknown_language_data): Remove la_varobj_ops
439 initializer.
440 (auto_language_data): Likewise.
441 * language.h (language_data): Remove la_varobj_ops field.
442 (language_defn::varobj_ops): Declare new member function.
443 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
444 * objc-lang.c (objc_language_data): Likewise.
445 * opencl-lang.c (opencl_language_data): Likewise.
446 * p-lang.c (pascal_language_data): Likewise.
447 * rust-lang.c (rust_language_data): Likewise.
448 * varobj.c (varobj_create): Update call to varobj_ops.
449 * varobj.h (default_varobj_ops): Delete define.
450
1ac14a04
AB
4512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * ada-lang.c (ada_language_data): Remove la_macro_expansion
454 initializer.
455 * c-lang.c (c_language_data): Likewise.
456 (c_language::macro_expansion): New member function.
457 (cplus_language_data): Likewise.
458 (cplus_language::macro_expansion): New member function.
459 (asm_language_data): Likewise.
460 (asm_language::macro_expansion): New member function.
461 (minimal_language_data): Likewise.
462 (minimal_language::macro_expansion): New member function.
463 * d-lang.c (d_language_data): Remove la_macro_expansion
464 initializer.
465 * f-lang.c (f_language_data): Likewise.
466 * go-lang.c (go_language_data): Likewise.
467 * language.c (unknown_language_data): Likewise.
468 (auto_language_data): Likewise.
469 * language.h (language_data): Remove la_macro_expansion field.
470 (language_defn::macro_expansion): New member function.
471 * m2-lang.c (m2_language_data): Remove la_macro_expansion
472 initializer.
473 * objc-lang.c (objc_language_data): Likewise.
474 (objc_language::macro_expansion): New member function.
475 * opencl-lang.c (opencl_language_data): Likewise.
476 (opencl_language::macro_expansion): New member function.
477 * p-lang.c (pascal_language_data): Remove la_macro_expansion
478 initializer.
479 * rust-lang.c (rust_language_data): Likewise.
480 * symtab.c (default_collect_symbol_completion_matches_break_on):
481 Update call to macro_expansion.
482
3a3440fb
AB
4832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * ada-lang.c (ada_language_data): Remove la_array_ordering
486 initializer.
487 * c-lang.c (c_language_data): Likewise.
488 (cplus_language_data): Likewise.
489 (asm_language_data): Likewise.
490 (minimal_language_data): Likewise.
491 * d-lang.c (d_language_data): Likewise.
492 * dwarf2/read.c (read_array_order): Update for call to
493 array_ordering.
494 * f-lang.c (f_language_data): Remove la_array_ordering
495 initializer.
496 (f_language::array_ordering): New member function.
497 * go-lang.c (go_language_data): Remove la_array_ordering
498 initializer.
499 * language.c (unknown_language_data): Likewise.
500 (auto_language_data): Likewise.
501 * language.h (language_data): Delete la_array_ordering field.
502 (language_defn::array_ordering): New member function.
503 * m2-lang.c (m2_language_data): Remove la_array_ordering
504 initializer.
505 * objc-lang.c (objc_language_data): Likewise.
506 * opencl-lang.c (opencl_language_data): Likewise.
507 * p-lang.c (pascal_language_data): Likewise.
508 * rust-lang.c (rust_language_data): Likewise.
509
0d201fa4
AB
5102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
513 initializer.
514 * c-lang.c (c_language_data): Likewise.
515 (cplus_language_data): Likewise.
516 (asm_language_data): Likewise.
517 (minimal_language_data): Likewise.
518 * d-lang.c (d_language_data): Likewise.
519 * f-lang.c (f_language_data): Likewise.
520 (f_language::case_sensitivity): New member function.
521 * go-lang.c (go_language_data): Remove la_case_sensitivity
522 initializer.
523 * language.c (enum case_mode): Moved here from language.h.
524 (case_mode): Make static.
525 (show_case_command): Update for case_sensitivity being a method.
526 (set_case_command): Likewise.
527 (set_range_case): Likewise.
528 (unknown_language_data): Remove la_case_sensitivity initializer.
529 (auto_language_data): Likewise.
530 * language.h (case_mode): Delete, move enum declaration to
531 language.c.
532 (language_data): Delete la_case_sensitivity field.
533 (language_defn::case_sensitivity): New member function.
534 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
535 initializer.
536 * objc-lang.c (objc_language_data): Likewise.
537 * opencl-lang.c (opencl_language_data): Likewise.
538 * p-lang.c (pascal_language_data): Likewise.
539 * rust-lang.c (rust_language_data): Likewise.
540
efdf6a73
AB
5412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * ada-lang.c (ada_language_data): Remove la_range_check
544 initializer.
545 * c-lang.c (c_language_data): Likewise.
546 (cplus_language_data): Likewise.
547 (asm_language_data): Likewise.
548 (minimal_language_data): Likewise.
549 * d-lang.c (d_language_data): Likewise.
550 * f-lang.c (f_language_data): Likewise.
551 (f_language::range_checking_on_by_default): New member function.
552 * go-lang.c (go_language_data): Remove la_range_check initializer.
553 * language.c (enum range_mode): Moved here from language.h.
554 (range_mode): Made static.
555 (show_range_command): Update to use
556 range_checking_on_by_default.
557 (set_range_command): Likewise.
558 (set_range_case): Likewise.
559 (unknown_language_data): Remove la_range_check initializer.
560 (auto_language_data): Likewise.
561 * language.h (range_mode): Delete. Enum definition moved to
562 language.c.
563 (language_data): Remove la_range_check field.
564 (language_defn::range_checking_on_by_default): New member
565 function.
566 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
567 (m2_language::range_checking_on_by_default): New member function.
568 * objc-lang.c (objc_language_data): Remove la_range_check
569 initializer.
570 * opencl-lang.c (opencl_language_data): Likewise.
571 * p-lang.c (pascal_language_data): Likewise.
572 (pascal_language::range_checking_on_by_default): New member
573 function.
574 * rust-lang.c (rust_language_data): Remove la_range_check
575 initializer.
576 (rust_language::range_checking_on_by_default): New member
577 function.
578
bf92aec5
AB
5792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
580
581 * dwarf2/read.c (dwarf2_physname): Remove special case for
582 language_go.
583 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
584 member function.
585
d3355e4d
AB
5862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * ada-lang.c (ada_language_data): Remove
589 la_store_sym_names_in_linkage_form_p initializer.
590 (ada_language::store_sym_names_in_linkage_form_p): New member
591 function.
592 * c-lang.c (c_language_data): Remove
593 la_store_sym_names_in_linkage_form_p initializer.
594 (c_language::store_sym_names_in_linkage_form_p): New member
595 function.
596 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
597 initializer.
598 (asm_language_data): Likewise.
599 (asm_language::store_sym_names_in_linkage_form_p): New member
600 function.
601 (minimal_language_data): Remove
602 la_store_sym_names_in_linkage_form_p initializer.
603 (minimal_language::store_sym_names_in_linkage_form_p): New member
604 function.
605 * d-lang.c (d_language_data): Remove
606 la_store_sym_names_in_linkage_form_p initializer.
607 * dwarf2/read.c (dwarf2_physname): Update call to
608 store_sym_names_in_linkage_form_p.
609 * f-lang.c (f_language_data): Remove
610 la_store_sym_names_in_linkage_form_p initializer.
611 * go-lang.c (go_language_data): Remove
612 la_store_sym_names_in_linkage_form_p initializer.
613 * language.c (unknown_language_data): Remove
614 la_store_sym_names_in_linkage_form_p initializer.
615 (unknown_language::store_sym_names_in_linkage_form_p): New member
616 function.
617 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
618 initializer.
619 (auto_language::store_sym_names_in_linkage_form_p): New member
620 function.
621 * language.h (language_data): Remove
622 la_store_sym_names_in_linkage_form_p member variable.
623 (language_defn::store_sym_names_in_linkage_form_p): New member
624 function.
625 * m2-lang.c (m2_language_data): Remove
626 la_store_sym_names_in_linkage_form_p initializer.
627 * objc-lang.c (objc_language_data): Likewise.
628 * opencl-lang.c (opencl_language_data): Likewise.
629 * p-lang.c (pascal_language_data): Likewise.
630 * rust-lang.c (rust_language_data): Likewise.
631
22c12a6c
AB
6322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * ada-lang.c (ada_language_data): Remove string_lower_bound
635 initializer.
636 * c-lang.c (c_language_data): Likewise.
637 (cplus_language_data): Likewise.
638 (asm_language_data): Likewise.
639 (minimal_language_data): Likewise.
640 * d-lang.c (d_language_data): Likewise.
641 * f-lang.c (f_language_data): Likewise.
642 * go-lang.c (go_language_data): Likewise.
643 * language.c (unknown_language_data): Likewise.
644 (auto_language_data): Likewise.
645 * language.h (language_data): Remove string_lower_bound field.
646 (language_defn::string_lower_bound): New member function.
647 * m2-lang.c (m2_language_data): Remove string_lower_bound
648 initializer.
649 (m2_language::string_lower_bound): New member function.
650 * objc-lang.c (objc_language_data): Remove string_lower_bound
651 initializer.
652 * opencl-lang.c (opencl_language_data): Likewise.
653 * p-lang.c (pascal_language_data): Likewise.
654 * rust-lang.c (rust_language_data): Likewise.
655 * valops.c (value_cstring): Update call to string_lower_bound.
656 (value_string): Likewise.
657 * value.c (allocate_repeated_value): Likewise.
658
1c236ddd
AB
6592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * valops.c (value_repeat): Fix incorrect argument name in comment.
662
67bd3fd5
AB
6632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * ada-lang.c (ada_language_data): Remove c_style_arrays
666 initializer.
667 (ada_language::c_style_arrays_p): New member fuction.
668 * c-lang.c (c_language_data): Remove c_style_arrays
669 initializer.
670 (cplus_language_data): Likewise.
671 (asm_language_data): Likewise.
672 (minimal_language_data): Likewise.
673 * d-lang.c (d_language_data): Likewise.
674 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
675 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
676 (f_language::c_style_arrays_p): New member function.
677 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
678 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
679 * language.c (unknown_language_data): Remove c_style_arrays
680 initializer.
681 (auto_language_data): Likewise.
682 * language.h (language_data): Remove c_style_arrays field.
683 (language_defn::c_style_arrays_p): New member function.
684 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
685 (m2_language::c_style_arrays_p): New member function.
686 * objc-lang.c (objc_language_data): Remove c_style_arrays
687 initializer.
688 * opencl-lang.c (opencl_language_data): Likewise.
689 * p-lang.c (pascal_language_data): Likewise.
690 * rust-lang.c (rust_language_data): Likewise.
691 * valarith.c (value_subscript): Update call to c_style_arrays_p,
692 and update local variable to a bool.
693 * valops.c (value_cast): Update call to c_style_arrays_p.
694 (value_array): Likewise.
695 * value.c (coerce_array): Likewise.
696
85967615
AB
6972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * ada-lang.c (ada_language_data): Remove la_language initializer.
700 * c-lang.c (c_language_data): Likewise.
701 (cplus_language_data): Likewise.
702 (asm_language_data): Likewise.
703 (minimal_language_data): Likewise.
704 * d-lang.c (d_language_data): Likewise.
705 * f-lang.c (f_language_data): Likewise.
706 * go-lang.c (go_language_data): Likewise.
707 * language.c (unknown_language_data): Likewise.
708 (auto_language_data): Likewise.
709 * language.h (language_data): Remove la_language field.
710 (language_defn::language_defn): Initialise la_language field.
711 (language_defn::la_language): New member variable.
712 * m2-lang.c (m2_language_data): Remove la_language field.
713 * objc-lang.c (objc_language_data): Likewise.
714 * opencl-lang.c (opencl_language_data): Likewise.
715 * p-lang.c (pascal_language_data): Likewise.
716 * rust-lang.c (rust_language_data): Likewise.
717
e171d6f1
AB
7182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
719
720 * ada-lang.c (ada_extensions): Delete, moved into
721 ada_language::filename_extensions.
722 (ada_language_data): Remove la_filename_extensions initializer.
723 (ada_language::filename_extensions): New member function.
724 * c-lang.c (c_extensions): Delete, moved into
725 c_language::filename_extensions.
726 (c_language_data): Remove la_filename_extensions initializer.
727 (c_language::filename_extensions): New member function.
728 (cplus_extensions): Delete, moved into
729 cplus_language::filename_extensions.
730 (cplus_language_data): Remove la_filename_extensions initializer.
731 (cplus_language::filename_extensions): New member function.
732 (asm_extensions): Delete, moved into
733 asm_language::filename_extensions.
734 (asm_language_data): Remove la_filename_extensions initializer.
735 (asm_language::filename_extensions): New member function.
736 (minimal_language_data): Remove la_filename_extensions
737 initializer.
738 * d-lang.c (d_extensions): Delete, moved into
739 d_language::filename_extensions.
740 (d_language_data): Remove la_filename_extensions initializer.
741 (d_language::filename_extensions): New member function.
742 * f-lang.c (f_extensions): Delete, moved into
743 f_language::filename_extensions.
744 (f_language_data): Remove la_filename_extensions initializer.
745 (f_language::filename_extensions): New member function.
746 * go-lang.c (go_language_data): Remove la_filename_extensions
747 initializer.
748 * language.c (add_set_language_command): Update now that
749 filename_extensions returns a vector.
750 (unknown_language_data): Remove la_filename_extensions
751 initializer.
752 (auto_language_data): Likewise.
753 * language.h (language_data): Remove la_filename_extensions field.
754 (language_defn::filename_extensions): New member function.
755 * m2-lang.c (m2_language_data): Remove la_filename_extensions
756 initializer.
757 * objc-lang.c (objc_extensions): Delete, moved into
758 objc_language::filename_extensions.
759 (objc_language_data): Remove la_filename_extensions initializer.
760 (objc_language::filename_extensions): New member function.
761 * opencl-lang.c (opencl_language_data): Remove
762 la_filename_extensions initializer.
763 * p-lang.c (pascal_extensions): Delete, moved into
764 pascal_language::filename_extensions.
765 (pascal_language_data): Remove la_filename_extensions initializer.
766 (pascal_language::filename_extensions): New member function.
767 * rust-lang.c (rust_extensions): Delete, moved into
768 rust_language::filename_extensions.
769 (rust_language_data): Remove la_filename_extensions initializer.
770 (rust_language::filename_extensions): New member function.
771 * symfile.c (add_filename_language): Add new assert.
772
6f7664a9
AB
7732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * ada-lang.c (ada_language_data): Remove la_name and
776 la_natural_name initializers.
777 (ada_language::name): New member function.
778 (ada_language::natural_name): New member function.
779 * c-lang.c (c_language_data): Remove la_name and
780 la_natural_name initializers.
781 (c_language::name): New member function.
782 (c_language::natural_name): New member function.
783 (cplus_language_data): Remove la_name and
784 la_natural_name initializers.
785 (cplus_language::name): New member function.
786 (cplus_language::natural_name): New member function.
787 (asm_language_data): Remove la_name and
788 la_natural_name initializers.
789 (asm_language::name): New member function.
790 (asm_language::natural_name): New member function.
791 (minimal_language_data): Remove la_name and
792 la_natural_name initializers.
793 (minimal_language::name): New member function.
794 (minimal_language::natural_name): New member function.
795 * compile/compile.c (compile_to_object): Update call to
796 lanugage_defn::name.
797 * d-lang.c (d_language_data): Remove la_name and
798 la_natural_name initializers.
799 (d_language::name): New member function.
800 (d_language::natural_name): New member function.
801 * expprint.c (print_subexp_standard): Update call to
802 language_defn::name.
803 (dump_raw_expression): Likewise
804 (dump_prefix_expression): Likewise.
805 * f-lang.c (f_language_data): Remove la_name and
806 la_natural_name initializers.
807 (f_language::name): New member function.
808 (f_language::natural_name): New member function.
809 * go-lang.c (go_language_data): Remove la_name and
810 la_natural_name initializers.
811 (go_language::name): New member function.
812 (go_language::natural_name): New member function.
813 * language.c (show_language_command): Update call to
814 language_defn::name.
815 (set_language_command): Likewise.
816 (language_enum): Likewise.
817 (language_str): Likewise.
818 (add_set_language_command): Likewise, use
819 language_defn::natural_name in the doc string.
820 (unknown_language_data): Remove la_name and
821 la_natural_name initializers.
822 (unknown_language::name): New member function.
823 (unknown_language::natural_name): New member function.
824 (auto_language_data): Remove la_name and
825 la_natural_name initializers.
826 (auto_language::name): New member function.
827 (auto_language::natural_name): New member function.
828 (language_lookup_primitive_type_as_symbol): Update call to
829 language_defn::name.
830 * language.h (language_data): Remove la_name and la_natural_name
831 member variables.
832 (language_defn::name): New member function.
833 (language_defn::natural_name): New member function.
834 * m2-lang.c (m2_language_data): Remove la_name and
835 la_natural_name initializers.
836 (m2_language::name): New member function.
837 (m2_language::natural_name): New member function.
838 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
839 language_defn::natural_name.
840 * objc-lang.c (objc_language_data): Remove la_name and
841 la_natural_name initializers.
842 (objc_language::name): New member function.
843 (objc_language::natural_name): New member function.
844 * opencl-lang.c (opencl_language_data): Remove la_name and
845 la_natural_name initializers.
846 (opencl_language::name): New member function.
847 (opencl_language::natural_name): New member function.
848 * p-lang.c (pascal_language_data): Remove la_name and
849 la_natural_name initializers.
850 (pascal_language::name): New member function.
851 (pascal_language::natural_name): New member function.
852 * rust-lang.c (rust_language_data): Remove la_name and
853 la_natural_name initializers.
854 (rust_language::name): New member function.
855 (rust_language::natural_name): New member function.
856 * symtab.c (lookup_language_this): Update call to
857 language_defn::name.
858
5bae7c4e
AB
8592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * ada-lang.c (ada_language_data): Remove la_name_of_this
862 initializer.
863 * ax-gdb.c (gen_expr): Update call to name_of_this.
864 * c-exp.y (classify_name): Likewise.
865 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
866 (cplus_language_data): Likewise.
867 (cplus_language::name_of_this): New member function.
868 (asm_language_data): Remove la_name_of_this initializer.
869 (minimal_language_data): Likewise.
870 * d-lang.c (d_language_data): Likewise.
871 (d_language::name_of_this): New member function.
872 * expprint.c (print_subexp_standard): Update call to name_of_this.
873 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
874 * go-lang.c (go_language_data): Likewise.
875 * language.c (unknown_language_data): Likewise.
876 (unknown_language::name_of_this): New member function.
877 (auto_language_data): Remove la_name_of_this initializer.
878 (auto_language::name_of_this): New member function.
879 * language.h (language_data): Delete la_name_of_this member
880 variable.
881 (language_defn::name_of_this): New member function.
882 * m2-lang.c (m2_language_data): Remove la_name_of_this
883 initializer.
884 * objc-lang.c (objc_language_data): Likewise.
885 (objc_language::name_of_this): New member function.
886 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
887 initializer.
888 * p-lang.c (pascal_language_data): Likewise.
889 (pascal_language::name_of_this): New member function.
890 * rust-lang.c (rust_language_data): Remove la_name_of_this
891 initializer.
892 * symtab.c (lookup_language_this): Update call to name_of_this.
893 (lookup_symbol_aux): Likewise.
894 * valops.c (value_of_this): Likewise.
895
22e3f3ed
AB
8962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * ada-lang.c (ada_language_data): Remove
899 la_struct_too_deep_ellipsis initializer.
900 (ada_language::struct_too_deep_ellipsis): New member function.
901 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
902 initializer.
903 (cplus_language_data): Likewise.
904 (asm_language_data): Likewise.
905 (minimal_language_data): Likewise.
906 * cp-valprint.c (cp_print_value): Update call to
907 struct_too_deep_ellipsis.
908 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
909 initializer.
910 * f-lang.c (f_language_data): Likewise.
911 (f_language::struct_too_deep_ellipsis): New member function.
912 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
913 initializer.
914 * language.c (unknown_language_data): Likewise.
915 (auto_language_data): Likewise.
916 * language.h (language_data): Delete la_struct_too_deep_ellipsis
917 member variable.
918 (language_defn::struct_too_deep_ellipsis): New member function.
919 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
920 initializer.Q
921 * objc-lang.c (objc_language_data): Likewise.
922 * opencl-lang.c (opencl_language_data): Likewise.
923 * p-lang.c (pascal_language_data): Likewise.
924 * rust-lang.c (rust_language_data): Likewise.
925 * valprint.c (val_print_check_max_depth): Update call to
926 struct_too_deep_ellipsis.
927
ed29e1c7
FW
9282020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
929
930 * MAINTAINERS (Write After Approval): Add myself.
931
12d8f940
TT
9322020-09-15 Tom Tromey <tom@tromey.com>
933
934 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
935 Remove.
936
6b5a7bc7
TT
9372020-09-15 Tom Tromey <tom@tromey.com>
938
939 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
940 and TYPE_CODE_METHODPTR cases.
941 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
942 (c_value_print_inner): Update.
943 * valprint.c (generic_value_print_memberptr): New function, from
944 c_value_print_memberptr.
945 (generic_value_print): Use it. Call cplus_print_method_ptr.
946
47f0e2ff
TT
9472020-09-15 Tom Tromey <tromey@adacore.com>
948
949 * python/python-internal.h (PyInt_FromLong): Remove define.
950 * python/py-value.c (convert_value_from_python): Use
951 gdb_py_object_from_longest.
952 * python/py-type.c (typy_get_code): Use
953 gdb_py_object_from_longest.
954 * python/py-symtab.c (salpy_get_line): Use
955 gdb_py_object_from_longest.
956 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
957 gdb_py_object_from_longest.
958 * python/py-record.c (recpy_gap_reason_code): Use
959 gdb_py_object_from_longest.
960 * python/py-record-btrace.c (recpy_bt_insn_size)
961 (recpy_bt_func_level, btpy_list_count): Use
962 gdb_py_object_from_longest.
963 * python/py-infthread.c (gdbpy_create_ptid_object): Use
964 gdb_py_object_from_longest. Fix error handling.
965 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
966 gdb_py_object_from_longest.
967 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
968 gdb_py_object_from_longest.
969 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
970 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
971 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
972
512116ce
TT
9732020-09-15 Tom Tromey <tromey@adacore.com>
974
975 * python/python.c (gdbpy_parameter_value): Use
976 gdb_py_object_from_ulongest.
977
4ab1029c
TT
9782020-09-15 Tom Tromey <tromey@adacore.com>
979
980 * python/py-infevents.c (create_register_changed_event_object):
981 Use gdb_py_object_from_longest.
982 * python/py-exitedevent.c (create_exited_event_object): Use
983 gdb_py_object_from_longest.
984
062534d4
TT
9852020-09-15 Tom Tromey <tromey@adacore.com>
986
987 * python/python.c (gdbpy_parameter_value): Use
988 gdb_py_object_from_longest.
989 * python/py-type.c (convert_field, typy_range): Use
990 gdb_py_object_from_longest.
991 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
992 gdb_py_object_from_longest.
993 * python/py-lazy-string.c (stpy_get_length): Use
994 gdb_py_object_from_longest.
995 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
996 gdb_py_object_from_longest.
997 * python/py-infevents.c (create_memory_changed_event_object): Use
998 gdb_py_object_from_longest.
999 * python/py-inferior.c (infpy_get_num): Use
1000 gdb_py_object_from_longest.
1001 (infpy_get_pid): Likewise.
1002
d1cab987
TT
10032020-09-15 Tom Tromey <tromey@adacore.com>
1004
1005 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1006 defines.
1007 * python/py-value.c (valpy_long): Use
1008 gdb_py_object_from_ulongest.
1009 * python/py-symtab.c (salpy_get_pc): Use
1010 gdb_py_object_from_ulongest.
1011 (salpy_get_last): Likewise.
1012 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1013 gdb_py_object_from_ulongest.
1014 * python/py-lazy-string.c (stpy_get_address): Use
1015 gdb_py_object_from_ulongest.
1016 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1017 * python/py-arch.c (archpy_disassemble): Use
1018 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1019 error handling.
1020
4bde49dc
TT
10212020-09-15 Tom Tromey <tromey@adacore.com>
1022
1023 * python/python-internal.h (gdb_py_long_from_longest): Remove
1024 defines.
1025 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1026 * python/py-type.c (convert_field, typy_get_sizeof): Use
1027 gdb_py_object_from_longest.
1028 * python/py-record-btrace.c (btpy_list_index): Use
1029 gdb_py_object_from_longest.
1030
37431074
TT
10312020-09-15 Tom Tromey <tromey@adacore.com>
1032
1033 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1034 * python/py-record.c (recpy_element_number): Use
1035 gdb_py_object_from_longest.
1036 (recpy_gap_number): Likewise.
1037
cbe25684
TT
10382020-09-15 Tom Tromey <tromey@adacore.com>
1039
1040 * top.c (ui::ui): Update.
1041 (highest_ui_num): Remove.
1042 * top.h (struct ui) <num>: Remove.
1043
db92ac45
TT
10442020-09-15 Tom Tromey <tromey@adacore.com>
1045
1046 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1047 * ui-style.c (ansi_regex_text): Now array.
1048 * rust-exp.y (number_regex_text): Now array.
1049 * linespec.c (linespec_quote_characters): Now array.
1050 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1051 Now arrays.
1052
d2b31b67
SM
10532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * debuginfod-support.c (debuginfod_client_deleter): New.
1056 (debuginfod_client_up): New.
1057 (debuginfod_init): Return debuginfod_client_up.
1058 (debuginfod_source_query): Adjust.
1059 (debuginfod_debuginfo_query): Adjust.
1060
3246bd8e
SM
10612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * debuginfod-support.c (debuginfod_source_query): Use
1064 make_unique_xstrdup.
1065
10242f36
SM
10662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1069 with `type::instance_flags`.
1070
e1044e6a
MM
10712020-09-14 Michael Mullin <masmullin@gmail.com>
1072
1073 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1074 Remove baton parameter.
1075
04902b09
PA
10762020-09-14 Pedro Alves <pedro@palves.net>
1077
1078 * Makefile.in (SELFTESTS_SRCS): Add
1079 unittests/enum-flags-selftests.c.
1080 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1081 btrace_function_flags instead of enum btrace_function_flag.
1082 * compile/compile-c-types.c (convert_qualified): Use
1083 enum_flags::raw.
1084 * compile/compile-cplus-symbols.c (convert_one_symbol)
1085 (convert_symbol_bmsym):
1086 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1087 (compile_cplus_convert_struct_or_union_methods)
1088 (compile_cplus_instance::convert_qualified_base):
1089 * go-exp.y (parse_string_or_char): Add cast to int.
1090 * unittests/enum-flags-selftests.c: New file.
1091 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1092 type to btrace_thread_flags from btrace_thread_flag.
1093 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1094 local's type to btrace_thread_flags from btrace_thread_flag. Add
1095 cast in DEBUG call.
1096
69896a2c
PA
10972020-09-14 Pedro Alves <pedro@palves.net>
1098
1099 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1100 * gdbtypes.c (address_space_name_to_int): Rename to ...
1101 (address_space_name_to_type_instance_flags): ... this.
1102 (address_space_int_to_name): Rename to ...
1103 (address_space_type_instance_flags_to_name): ... this.
1104 * gdbtypes.h (address_space_name_to_int): Rename to ...
1105 (address_space_name_to_type_instance_flags): ... this.
1106 (address_space_int_to_name): Rename to ...
1107 (address_space_type_instance_flags_to_name): ... this.
1108 * type-stack.c (type_stack::insert): Adjust to rename.
1109 * type-stack.h (type_stack::insert): Likewise.
1110
314ad88d
PA
11112020-09-14 Pedro Alves <pedro@palves.net>
1112 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * avr-tdep.c (avr_address_class_type_flags): Return
1115 type_instance_flags.
1116 (avr_address_class_type_flags_to_name): Take a
1117 type_instance_flags.
1118 (avr_address_class_name_to_type_flags): Return bool and take a
1119 type_instance_flags.
1120 * d-lang.c (build_d_types): Use type::set_instance_flags.
1121 * ft32-tdep.c (ft32_address_class_type_flags): Return
1122 type_instance_flags.
1123 (ft32_address_class_type_flags_to_name): Take a
1124 type_instance_flags.
1125 (ft32_address_class_name_to_type_flags): Return bool and take a
1126 type_instance_flags.
1127 (ft32_gdbarch_init): Use type::set_instance_flags.
1128 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1129 * gdbarch.h, gdbarch.c: Regenerate.
1130 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1131 (address_class_name_to_type_flags): Use type_instance_flags and
1132 bool.
1133 * gdbtypes.c (address_space_name_to_int)
1134 (address_space_int_to_name, make_qualified_type): Use
1135 type_instance_flags.
1136 (make_qualified_type): Use type_instance_flags and
1137 type::set_instance_flags.
1138 (make_type_with_address_space, make_cv_type, make_vector_type)
1139 (check_typedef): Use type_instance_flags.
1140 (recursive_dump_type): Cast type_instance_flags to unsigned for
1141 printing.
1142 (copy_type_recursive): Use type::set_instance_flags.
1143 (gdbtypes_post_init): Use type::set_instance_flags.
1144 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1145 <m_instance_flags>: ... this.
1146 <instance_flags, set_instance_flags>: New methods.
1147 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1148 (SET_TYPE_INSTANCE_FLAGS): New.
1149 (address_space_name_to_int, address_space_int_to_name)
1150 (make_type_with_address_space): Pass flags using
1151 type_instance_flags instead of int.
1152 * stabsread.c (cleanup_undefined_types_noname): Use
1153 type::set_instance_flags.
1154 * s390-tdep.c (s390_address_class_type_flags): Return
1155 type_instance_flags.
1156 (s390_address_class_type_flags_to_name): Take a
1157 type_instance_flags.
1158 (s390_address_class_name_to_type_flags): Return bool and take a
1159 type_instance_flags.
1160 * type-stack.c (type_stack::follow_types): Use
1161 type_instance_flags.
1162 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1163
27087b7f
TT
11642020-09-14 Tom Tromey <tromey@adacore.com>
1165
1166 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1167 * x86-tdep.c (x86_is_thunk_register_name)
1168 (x86_in_indirect_branch_thunk): Update.
1169 * sparc64-tdep.c (sparc64_fpu_register_names)
1170 (sparc64_cp0_register_names, sparc64_register_names)
1171 (sparc64_pseudo_register_names): Now const.
1172 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1173 cp0_registers_num>: Now const.
1174 * sparc-tdep.c (sparc_core_register_names)
1175 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1176 (sparc32_pseudo_register_names): Now const.
1177 (validate_tdesc_registers): Update.
1178 * rust-lang.c (rust_extensions): Now const.
1179 * p-lang.c (p_extensions): Now const.
1180 * objc-lang.c (objc_extensions): Now const.
1181 * nto-tdep.c (nto_thread_state_str): Now const.
1182 * moxie-tdep.c (moxie_register_names): Now const.
1183 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1184 Now const.
1185 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1186 (mips_linux_reg_names): Now const.
1187 (mips_gdbarch_init): Update.
1188 * microblaze-tdep.c (microblaze_register_names): Now const.
1189 * m68k-tdep.c (m68k_register_names): Now const.
1190 * m32r-tdep.c (m32r_register_names): Now const.
1191 * ia64-tdep.c (ia64_register_names): Now const.
1192 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1193 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1194 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1195 ymm_avx512_register_names, pkeys_register_names>: Now const.
1196 * i386-tdep.c (i386_register_names, i386_zmm_names)
1197 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1198 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1199 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1200 * f-lang.c (f_extensions): Now const.
1201 * d-lang.c (d_extensions): Now const.
1202 * csky-tdep.c (csky_register_names): Now const.
1203 * charset.c (default_charset_names, charset_enum): Now const.
1204 (_initialize_charset): Update.
1205 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1206 const.
1207 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1208 (bsd_uthread_solib_loaded): Update.
1209 (bsd_uthread_state): Now const.
1210 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1211 (amd64_ymm_avx512_names, amd64_ymmh_names)
1212 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1213 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1214 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1215 (amd64_dword_names): Now const.
1216 * agent.c (can_use_agent_enum): Now const.
1217 * ada-tasks.c (task_states, long_task_states): Now const.
1218 * ada-lang.c (known_runtime_file_name_patterns)
1219 (known_auxiliary_function_name_patterns, attribute_names)
1220 (standard_exc, ada_extensions): Now const.
1221
89806626
SM
12222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * bcache.h (struct bcache) <bcache>: Remove constructor.
1225 <m_hash_function, m_compare_function>: Remove.
1226 <~bcache>: Make virtual.
1227 <compare>: Remove static method, introduce virtual method.
1228 <default_hash>: Remove.
1229 <hash>: New virtual method.
1230 * bcache.c (bcache::expand_hash_table): Update.
1231 (bcache::insert): Update.
1232 (bcache::hash): New.
1233 (bcache::compare): Update comment and parameter names.
1234 * gdbtypes.c (types_deeply_equal): Update.
1235 * psymtab.h (struct psymbol_bcache): New struct.
1236 (class psymtab_storage) <psymtab_storage>: Make default.
1237 <psymbol_cache>: Change type to psymbol_bcache.
1238 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1239 (psymbol_hash): Change to...
1240 (psymbol_bcache::hash): ... this.
1241 (psymbol_compare): Change to...
1242 (psymbol_bcache::compare): ... this.
1243
677c92fe
SM
12442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1247 checking for initial lwp.
1248
3eba3a01
TT
12492020-09-14 Tom Tromey <tromey@adacore.com>
1250
1251 * m68k-tdep.c (m68k_extract_return_value): Use
1252 pointer_result_regnum.
1253 (m68k_store_return_value): Likewise.
1254 (m68k_reg_struct_return_p): Handle vectors and arrays.
1255 (m68k_return_value): Handle arrays.
1256 (m68k_svr4_return_value): Fix single-element aggregate handling.
1257 Handle long double. Adjust for embedded ABI.
1258 (m68k_svr4_init_abi): Set pointer_result_regnum.
1259 (m68k_embedded_init_abi): New function.
1260 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1261 (m68k_osabi_sniffer): New function.
1262 (_initialize_m68k_tdep): Register osabi sniffer.
1263 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1264 member.
1265
33f4dd48
SM
12662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1269 with gdb::unique_xmalloc_ptr<char>.
1270
8400a90d
SM
12712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1272
1273 * xml-support.h (xml_fetch_another): Change type to be a
1274 function_view.
1275 (xml_process_xincludes): Remove baton parameter.
1276 (xml_fetch_content_from_file): Change baton parameter to
1277 dirname.
1278 * xml-support.c (struct xinclude_parsing_data)
1279 <xinclude_parsing_data>: Remove baton parameter.
1280 <fetcher_baton>: Remove.
1281 (xinclude_start_include): Adjust.
1282 (xml_process_xincludes): Adjust.
1283 (xml_fetch_content_from_file): Replace baton parameter with
1284 dirname.
1285 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1286 (xml_init_syscalls_info): Use a lambda.
1287 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1288 (file_read_description_xml): Use a lambda.
1289 (fetch_available_features_from_target): Change baton parameter
1290 to target_ops.
1291 (target_read_description_xml): Use a lambda.
1292 (target_fetch_description_xml): Use a lambda.
1293 (string_read_description_xml): Update.
1294
04f5bab2
SM
12952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1298 uses with type::endianity_is_not_default.
1299
db558e34
SM
13002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * gdbtypes.h (struct type) <endianity_is_not_default,
1303 set_endianity_is_not_default>: New methods.
1304 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1305 type::endianity_is_not_default, change all write call sites to
1306 use type::set_endianity_is_not_default.
1307
22c4c60c
SM
13082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1309
1310 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1311 uses with type::is_fixed_instance.
1312
9cdd0d12
SM
13132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1314
1315 * gdbtypes.h (struct type) <is_fixed_instance,
1316 set_is_fixed_instance>: New methods.
1317 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1318 write call sites to use type::set_is_fixed_instance.
1319
0becda7a
SM
13202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1323 uses with type::is_gnu_ifunc.
1324
03cc7249
SM
13252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1326
1327 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1328 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1329 use type::set_is_gnu_ifunc.
1330
3f46044c
SM
13312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1332
1333 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1334 uses with type::stub_is_supported.
1335
9baccff6
SM
13362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1337
1338 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1339 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1340 use type::set_stub_is_supported.
1341
bd63c870
SM
13422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1345 uses with type::is_vector.
1346
2062087b
SM
13472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1350 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1351 use type::set_is_vector.
1352
a409645d
SM
13532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1354
1355 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1356 uses with type::has_varargs.
1357
1d6286ed
SM
13582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1361 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1362 use type::set_has_varargs.
1363
7f9f399b
SM
13642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1365
1366 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1367 uses with type::is_prototyped.
1368
27e69b7a
SM
13692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1372 New methods.
1373 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1374 call sites to use type::set_is_prototyped.
1375
d2183968
SM
13762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1377
1378 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1379 uses with type::target_is_stub.
1380
8f53807e
SM
13812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1382
1383 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1384 New methods.
1385 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1386 sites to use type::set_target_is_stub.
1387
e46d3488
SM
13882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * gdbtypes.h (TYPE_STUB): Remove, replace all
1391 uses with type::is_stub.
1392
b4b73759
SM
13932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1394
1395 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1396 (TYPE_STUB): Use type::is_stub, change all write call sites to
1397 use type::set_is_stub.
1398
20ce4123
SM
13992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1402 type::has_no_signedness.
1403
15152a54
SM
14042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1405
1406 * gdbtypes.h (struct type) <has_no_signedness,
1407 set_has_no_signedness>: New methods.
1408 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1409 call sites to use type::set_has_no_signedness.
1410
c6d940a9
SM
14112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1414 type::is_unsigned.
1415
653223d3
SM
14162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1419 methods.
1420 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1421 sites to use type::set_is_unsigned.
1422
55ea94da
FH
14232020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1424 Adam Renquinha <arenquinha@cimeq.qc.ca>
1425
1426 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1427 pointer and stack frame offset when unwinding.
1428
6791b117
PA
14292020-09-13 Pedro Alves <pedro@palves.net>
1430
1431 * NEWS: Document "-break-insert --qualified".
1432 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1433
77f2120b
PA
14342020-09-13 Pedro Alves <pedro@palves.net>
1435
1436 * linespec.c (classify_mtype, compare_msyms): Delete.
1437 (search_minsyms_for_name): Remove classification logic. Instead
1438 filter out trampoline symbols if we also found an external
1439 function of the same name.
1440
ed6a896c
JB
14412020-09-13 Joel Brobecker <brobecker@adacore.com>
1442
1443 * NEWS: Create a new section for the next release branch.
1444 Rename the section of the current branch, now that it has
1445 been cut.
1446
32aea73e
JB
14472020-09-13 Joel Brobecker <brobecker@adacore.com>
1448
1449 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1450 * version.in: Bump version to 11.0.50.DATE-git.
1451
8087c3fa
JB
14522020-09-12 Joel Brobecker <brobecker@adacore.com>
1453
1454 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1455
2a67f09d
FW
14562020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1457 Felix Willgerodt <Felix.Willgerodt@intel.com>
1458
1459 * gdbarch.sh: Added bfloat16 type.
1460 * gdbarch.c: Regenerated.
1461 * gdbarch.h: Regenerated.
1462 * gdbtypes.c (floatformats_bfloat16): New struct.
1463 (gdbtypes_post_init): Add builtin_bfloat16.
1464 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1465 (floatformats_bfloat16): New struct.
1466 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1467 (i386_ymm_type): Add field "v16_bfloat16"
1468 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1469 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1470 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1471 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1472 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1473 * features/i386/64bit-avx512.c: Regenerated.
1474 * features/i386/64bit-sse.xml: Add bfloat16 type.
1475 * features/i386/64bit-sse.c: Regenerated.
1476
1347d111
FW
14772020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1478
1479 * i386-tdep.c (i386_zmm_type): Fix field names.
1480 (i386_ymm_type): Fix field names.
1481
7a4e8e7d
TBA
14822020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1483
1484 * breakpoint.c: Fix typo in the help message of the
1485 "set breakpoint condition-evaluation" command.
1486
cf4ac4be
KR
14872020-09-10 Kamil Rytarowski <n54@gmx.com>
1488
1489 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1490 * (nbsd_nat_target::pid_to_exec_file)
1491 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1492 (nbsd_nat_target::post_startup_inferior)
1493 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1494 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1495 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1496 * (nbsd_thread_lister): Remove.
1497
f404573e
KR
14982020-09-10 Kamil Rytarowski <n54@gmx.com>
1499
1500 * fork-inferior.c (startup_inferior): Avoid double free.
1501
1ccb2c17
KR
15022020-09-10 Kamil Rytarowski <n54@gmx.com>
1503
1504 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1505 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1506
feedfcc7
KR
15072020-09-10 Kamil Rytarowski <n54@gmx.com>
1508
1509 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1510 * netbsd-nat.c: Include <sys/ptrace.h>.
1511 * (netbsd_nat::enable_proc_events): Add.
1512
c489f8c6
KR
15132020-09-10 Kamil Rytarowski <n54@gmx.com>
1514
1515 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1516 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1517 (netbsd_nat::for_each_thread): Add.
1518 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1519 "gdbsupport/common-debug.h".
1520 * (netbsd_nat::netbsd_thread_lister)
1521 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1522 (netbsd_nat::for_each_thread): Add.
1523
330662f6
KR
15242020-09-10 Kamil Rytarowski <n54@gmx.com>
1525
1526 * netbsd-nat.h: Include <unistd.h>.
1527 * (netbsd_nat::pid_to_exec_file): Add.
1528 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1529 * (netbsd_nat::pid_to_exec_file) Add.
1530
70b67307
KR
15312020-09-10 Kamil Rytarowski <n54@gmx.com>
1532
1533 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1534
99cf6da6
KR
15352020-09-10 Kamil Rytarowski <n54@gmx.com>
1536
1537 * netbsd-nat.h: New file.
1538 * netbsd-nat.c: Likewise.
1539
1b788fb6
TT
15402020-09-09 Tom Tromey <tromey@adacore.com>
1541
1542 * ada-lang.c (remove_extra_symbols): Do not increment when
1543 removing an element
1544
03b0a45f
TT
15452020-09-08 Tom Tromey <tromey@adacore.com>
1546
1547 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1548
3cae4447
TT
15492020-09-08 Tom Tromey <tromey@adacore.com>
1550
1551 PR win32/25302:
1552 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1553 (gdb_bfd_init_data): New function.
1554 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1555
7f08fd51
TBA
15562020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1557
1558 * infrun.c (fetch_inferior_event): Use
1559 `switch_to_target_no_thread` to switch the target.
1560
3e6ff933
TT
15612020-09-06 Tom Tromey <tom@tromey.com>
1562
1563 * symfile.h (dwarf2_free_objfile): Don't declare.
1564
e56798df
AKS
15652020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1566
1567 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1568 to match 16 byte real/complex type generated by Flang compiler.
1569
8f5c6526
TV
15702020-09-03 Tom de Vries <tdevries@suse.de>
1571
1572 PR breakpoint/26546
1573 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1574 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1575
c5065df0
SM
15762020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1577
1578 * maint.c (index_digits): New function.
1579 (struct maint_print_section_data): Remove.
1580 (print_bfd_section_info): Remove print_data parameter, add arg
1581 and index_digits.
1582 (print_objfile_section_info): Likewise.
1583 (print_bfd_section_info_maybe_relocated): Likewise (plus
1584 objfile).
1585 (maintenance_info_sections): Adjust calls.
1586
02c6f3f1
TT
15872020-09-02 Tom Tromey <tromey@adacore.com>
1588
1589 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1590 for null pointers.
1591 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1592
ef5e5b0b
SM
15932020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1594
1595 * bcache.h (struct bcache) <insert>: Change type of `added` to
1596 pointer to bool.
1597 * bcache.c (bcache::insert): Likewise.
1598 * gdbtypes.c (check_types_worklist): Adjust.
1599 * psymtab.c (add_psymbol_to_bcache): Adjust.
1600
973695d6
KB
16012020-08-31 Kevin Buettner <kevinb@redhat.com>
1602
1603 * corelow.c (unordered_set): Include.
1604 (class core_target): Add field 'm_core_unavailable_mappings'.
1605 (core_target::build_file_mappings): Print only one warning
1606 per inaccessible file. Add unavailable/broken mappings
1607 to m_core_unavailable_mappings.
1608 (core_target::xfer_partial): Call...
1609 (core_target::xfer_memory_via_mappings): New method.
1610
264fc0e2
SM
16112020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1614 type to bool.
1615
2de01bdb
SM
16162020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * dwarf2/read.c (struct field_info): Fix indentation.
1619
f3bd50f1
SM
16202020-08-31 Simon Marchi <simon.marchi@efficios.com>
1621
1622 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1623 ordering in comment.
1624 * frame.c (frame_id_eq): Fix indentation.
1625
22b9b4b0
SL
16262020-08-31 Scott Linder <scott@scottlinder.com>
1627 Simon Marchi <simon.marchi@efficios.com>
1628
1629 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1630 inline frame ids in outer frame.
1631
84154d16
SM
16322020-08-31 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1635 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1636 (outer_frame_id): Use FID_STACK_OUTER instead of
1637 FID_STACK_INVALID.
1638 (frame_id_p): Don't check for outer_frame_id.
1639
8efaf6b3
SM
16402020-08-31 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1643 regnum/frame in value. Call allocate_value_lazy.
1644 * frame.c (frame_unwind_register_value): Use
1645 val_print_not_saved.
1646
fe1fe7ea
SM
16472020-08-31 Simon Marchi <simon.marchi@efficios.com>
1648
1649 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1650
f7c7700d
PA
16512020-08-29 Pedro Alves <pedro@palves.net>
1652
1653 * progspace.c (print_program_space): Use all_inferiors. Switch to
1654 the inferior before calling target_pid_to_str.
1655
e0814aae
TT
16562020-08-28 Tom Tromey <tom@tromey.com>
1657
1658 * xcoffread.c (xcoff_end_psymtab): Update comment.
1659 * dbxread.c (dbx_end_psymtab): Update comment.
1660
626d2320
TV
16612020-08-28 Tom de Vries <tdevries@suse.de>
1662
1663 PR breakpoint/26544
1664 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1665 event_location.
1666 (create_breakpoint): Same.
1667 (base_breakpoint_decode_location): Same.
1668 (bkpt_create_sals_from_location): Same.
1669 (bkpt_decode_location): Same.
1670 (bkpt_probe_create_sals_from_location): Same.
1671 (bkpt_probe_decode_location): Same.
1672 (tracepoint_create_sals_from_location): Same.
1673 (tracepoint_decode_location): Same.
1674 (tracepoint_probe_decode_location): Same.
1675 (strace_marker_create_sals_from_location): Same.
1676 (strace_marker_decode_location): Same.
1677 (create_sals_from_location_default): Same.
1678 (decode_location_default): Same.
1679 * breakpoint.h (struct breakpoint_ops): Same.
1680 (create_breakpoint): Same.
1681 * linespec.h (decode_line_full): Same.
1682 * linespec.c (decode_line_full): Same. Throw error if
1683 result.size () == 0.
1684
df631783
PA
16852020-08-27 Pedro Alves <pedro@palves.net>
1686
1687 PR gdb/26524
1688 * breakpoint.c (until_break_fsm) <location_breakpoint,
1689 caller_breakpoint>: Delete fields.
1690 <breakpoints>: New field.
1691 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1692 two individual breakpoints.
1693 (until_break_fsm::should_stop): Loop over breakpoints in the
1694 breakpoint vector.
1695 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1696 vector.
1697 (until_break_command): Handle location expanding into multiple
1698 sals.
1699
b2b38aa4
PA
17002020-08-27 Pedro Alves <pedro@palves.net>
1701
1702 PR gdb/26523
1703 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1704 bp_until breakpoints user-specified locations. Update intro
1705 comment.
1706
b886559f
SM
17072020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1710 gdb_bfd_sections): New.
1711 * maint.c (print_bfd_section_info): Change param type to
1712 maint_print_section_data.
1713 (print_objfile_section_info): Likewise.
1714 (print_bfd_section_info_maybe_relocated): Likewise.
1715 (maintenance_info_sections): Use gdb_bfd_sections.
1716
4c6e63bf
SV
17172020-08-25 Shahab Vahedi <shahab@synopsys.com>
1718
1719 * MAINTAINERS: Add ARC target and maintainer.
1720
8d7f0635
AK
17212020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1722
1723 * configure.tgt: ARC support for GNU/Linux.
1724 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1725 * arc-linux-tdep.c: New file.
1726 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1727 * arc-tdep.c (arc_write_pc): Use it.
1728
fdd8731b
SV
17292020-08-25 Shahab Vahedi <shahab@synopsys.com>
1730
1731 * arc-tdep.c (arc_check_for_hardware_loop): New.
1732 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1733
22459524
SV
17342020-08-25 Shahab Vahedi <shahab@synopsys.com>
1735
1736 * arc-tdep.h: Include "gdbarch.h".
1737
995d3a19
SV
17382020-08-25 Shahab Vahedi <shahab@synopsys.com>
1739
1740 * arch/arc.h
1741 (arc_gdbarch_features): New class to stir the selection of target XML.
1742 (arc_create_target_description): Use FEATURES to choose XML target.
1743 (arc_lookup_target_description): Use arc_create_target_description
1744 to create _new_ target descriptions or return the already created
1745 ones if the FEATURES is the same.
1746 * arch/arc.c: Implementation of prototypes described above.
1747 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1748 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1749 * arc-tdep.c (*_feature_name): Make feature names consistent.
1750 (arc_register_feature): A new struct to hold information about
1751 registers of a particular target/feature.
1752 (arc_check_tdesc_feature): Check if XML provides registers in
1753 compliance with ARC_REGISTER_FEATURE structs.
1754 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1755 (determine_*_reg_feature_set): Which feature name to look for.
1756 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1757 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1758 to expected ISA enums to be used in arc_gdbarch_features structs.
1759 * features/Makefile (FEATURE_XMLFILES): Add new files.
1760 * gdb/features/arc/v1-aux.c: New file.
1761 * gdb/features/arc/v1-aux.xml: Likewise.
1762 * gdb/features/arc/v1-core.c: Likewise.
1763 * gdb/features/arc/v1-core.xml: Likewise.
1764 * gdb/features/arc/v2-aux.c: Likewise.
1765 * gdb/features/arc/v2-aux.xml: Likewise.
1766 * gdb/features/arc/v2-core.c: Likewise.
1767 * gdb/features/arc/v2-core.xml: Likewise.
1768 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1769
3945d2d7
GM
17702020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1771 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 PR m2/26372
fc5d6901 1774 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1775 an assert. Remove single element array indexing pattern as the
1776 MULTI_SUBSCRIPT support will handle this case too.
1777
2677f2d3
SM
17782020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1779
1780 * value.h (valprint_check_validity): Move declaration from
1781 here...
1782 * valprint.h (valprint_check_validity): ... to here.
1783
c426fddb
SM
17842020-08-24 Simon Marchi <simon.marchi@efficios.com>
1785
1786 * debug.h: New file.
1787 * debug.c (debug_prefixed_vprintf): New function.
1788 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1789 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1790
1eb8556f
SM
17912020-08-24 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * infrun.h (infrun_debug_printf_1): New function declaration.
1794 (infrun_debug_printf): New macro.
1795 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1796 throughout.
1797 (infrun_debug_printf): New function.
1798 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1799 (handle_jit_event): Likewise.
1800
b8fff44e
MW
18012020-08-21 Mark Wielaard <mark@klomp.org>
1802
1803 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1804
d19c3068
SM
18052020-08-22 Simon Marchi <simon.marchi@efficios.com>
1806
1807 * frame.c (enum class frame_id_status): New.
1808 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1809 (fprintf_frame): Update.
1810 (compute_frame_id): Set frame id status to "computing" on entry.
1811 Set it back to "not_computed" on failure and to "computed" on
1812 success.
1813 (get_frame_id): Assert the frame id is not being computed.
1814 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1815 (create_new_frame): Likewise.
1816 (frame_cleanup_after_sniffer): Update assert.
1817
b70e516e
SM
18182020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * regcache.c (pid_ptid_regcache_map): New type.
1821 (target_ptid_regcache_map): Remove.
1822 (target_pid_ptid_regcache_map): New type.
1823 (regcaches): Change type to target_pid_ptid_regcache_map.
1824 (get_thread_arch_aspace_regcache): Update.
1825 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1826 case.
1827 (regcaches_size): Update.
1828 (regcache_count): Update.
1829 (registers_changed_ptid_target_pid_test): New.
1830 (_initialize_regcache): Register new test.
1831
cdd9148a
SM
18322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1833
1834 * regcache.c (regcache_count): New.
1835 (struct regcache_test_data): New.
1836 (regcache_test_data_up): New.
1837 (populate_regcaches_for_test): New.
1838 (regcaches_test): Remove.
1839 (get_thread_arch_aspace_regcache_test): New.
1840 (registers_changed_ptid_all_test): New.
1841 (registers_changed_ptid_target_test): New.
1842 (registers_changed_ptid_target_ptid_test): New.
1843 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1844 (_initialize_regcache): Register new tests.
1845
dd125343
SM
18462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1849 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1850 gdbarch and aspace parameter. Use current inferior's aspace.
1851 Validate regcache's arch value.
1852 (regcaches_test): Update.
1853
3ee93972
SM
18542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * regcache.c (regcaches_test): Call registers_changed.
1857
33bf4c5c
TBA
18582020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1859
1860 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1861
c2fd7fae
AKS
18622020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1863
1864 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1865 to find the end of prologue for flang compiled binaries.
1866 * arm-tdep.c (arm_skip_prologue): Likewise.
1867 * i386-tdep.c (i386_skip_prologue): Likewise.
1868 * producer.c (producer_is_llvm): New function.
1869 (producer_parsing_tests): Added new tests for clang/flang.
1870 * producer.h (producer_is_llvm): New declaration.
1871
9327494e
SM
18722020-08-18 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * linux-nat.c (linux_nat_debug_printf): New function.
1875 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1876
d138725a
AM
18772020-08-18 Aaron Merey <amerey@redhat.com>
1878
1879 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1880 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1881 (CLIBS): Add DEBUGINFOD_LIBS.
1882
f9b11e6b
ST
18832020-08-17 Sergei Trofimovich <siarheit@google.com>
1884
1885 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1886 'gdbarch_num_regs'.
1887
3ae7ab99
TT
18882020-08-17 Tom Tromey <tromey@adacore.com>
1889
1890 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1891 ada_get_decoded_value returns NULL.
1892
b017825f
TT
18932020-08-17 Tom Tromey <tromey@adacore.com>
1894
1895 * python/py-inferior.c (infpy_search_memory): Use
1896 gdb_py_object_from_ulongest.
1897 * python/py-infevents.c (create_inferior_call_event_object)
1898 (create_memory_changed_event_object): Use
1899 gdb_py_object_from_ulongest.
1900 * python/py-linetable.c (ltpy_entry_get_pc): Use
1901 gdb_py_object_from_ulongest.
1902
7635cf79
SM
19032020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1904
1905 * loc.c (class symbol_needs_eval_context): Fix indentation.
1906
f54be24b
SM
19072020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1910 bool.
1911
53d5a2a5
TV
19122020-08-17 Tom de Vries <tdevries@suse.de>
1913
1914 PR gdb/26393
1915 * gdbtypes.c (dump_dynamic_prop): New function.
1916 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1917
547ce8f0
TV
19182020-08-15 Tom de Vries <tdevries@suse.de>
1919
1920 PR backtrace/26390
1921 * stack.c (print_frame_args): Temporarily set the selected
1922 frame to FRAME while printing the frame's arguments.
1923
6ea815e7
PFC
19242020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1925
1926 PR breakpoints/26385
1927 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1928 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1929
6e562fa3
PFC
19302020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1931
1932 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1933 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1934 and >= to check return value instead of == -1 and != -1.
1935
d369b608
SM
19362020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * utils.h (class gdb_argv) <as_array_view>: New method.
1939 * utils.c (gdb_argv_as_array_view_test): New.
1940 (_initialize_utils): Register selftest.
1941 * maint.c (maintenance_selftest): Use the new method.
1942
b31488a3
KR
19432020-08-13 Kamil Rytarowski <n54@gmx.com>
1944
1945 * target.h (supports_dumpcore, dumpcore): New
1946 function declarations.
1947 * target.c (supports_dumpcore, dumpcore): New
1948 functions.
1949 * target-delegates.c: Rebuild.
1950 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1951 and target_dumpcore ().
1952
002a3166
AM
19532020-08-13 Aaron Merey <amerey@redhat.com>
1954
1955 * debuginfod-support.c: Replace global variables with user_data.
1956
ece5bc8a
SM
19572020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1958
1959 * maint.c (maintenance_selftest): Split args and pass array_view
1960 to run_tests.
1961
6d8a0a5e
LM
19622020-08-12 Luis Machado <luis.machado@linaro.org>
1963
1964 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1965 type's length.
1966 Use %s and pulongest to print the length.
1967
7cf663a9
PA
19682020-08-12 Pedro Alves <palves@redhat.com>
1969
1970 * NEWS: Move "Multi-target debugging support" item to the
1971 "Changes since GDB 9" section.
1972
27c7b875
PA
19732020-08-12 Pedro Alves <palves@redhat.com>
1974
1975 PR gdb/26336
1976 * progspace.c (program_space::remove_objfile): Invalidate the
1977 frame cache.
1978
1796a2a1
TV
19792020-08-11 Tom de Vries <tdevries@suse.de>
1980
1981 * MAINTAINERS: Mark ms1 as deleted.
1982
f8e3fe0d
LM
19832020-08-10 Luis Machado <luis.machado@linaro.org>
1984
1985 PR gdb/26310
1986
1987 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1988 act accordingly.
1989 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1990 movz/str/stur/stp skipping behavior.
1991
cc308722
LM
19922020-08-10 Luis Machado <luis.machado@linaro.org>
1993
1994 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1995 struct user_sve_header instead of struct sve_context.
1996
041d9819
SM
19972020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * read.h (dwarf2_fetch_die_loc_sect_off,
2000 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2001 `void *` parameter with function_view.
2002 * read.c (dwarf2_fetch_die_loc_sect_off,
2003 dwarf2_fetch_die_loc_cu_off): Likewise.
2004 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2005 (per_cu_dwarf_call): Adjust.
2006 (get_frame_address_in_block_wrapper): Remove.
2007 (indirect_synthetic_pointer): Adjust.
2008 (get_ax_pc): Remove.
2009 (dwarf2_compile_expr_to_ax): Adjust.
2010
38f8aa06
TV
20112020-08-08 Tom de Vries <tdevries@suse.de>
2012
2013 PR build/26344
2014 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2015 constructor.
2016 * regcache.c (get_thread_arch_aspace_regcache): Same.
2017
a52b3ae2
TT
20182020-08-07 Tom Tromey <tromey@adacore.com>
2019
2020 * ravenscar-thread.c
2021 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2022 New method.
2023 (ravenscar_thread_target::wait): Check
2024 runtime_initialized.
2025 (ravenscar_thread_target::prepare_to_store)
2026 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2027 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2028 (ravenscar_thread_target::stopped_by_watchpoint)
2029 (ravenscar_thread_target::stopped_data_address)
2030 (ravenscar_thread_target::core_of_thread): Use
2031 scoped_restore_current_thread and
2032 set_base_thread_from_ravenscar_task.
2033
0e29517d
TT
20342020-08-07 Tom Tromey <tromey@adacore.com>
2035
2036 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2037
592f9bd7
TT
20382020-08-07 Tom Tromey <tromey@adacore.com>
2039
2040 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2041 update_inferior_ptid before update_thread_list.
2042 (temporarily_change_regcache_ptid): New class.
2043 (ravenscar_thread_target::fetch_registers)
2044 (ravenscar_thread_target::store_registers)
2045 (ravenscar_thread_target::prepare_to_store): Use base thread when
2046 forwarding operation.
2047
39e2018a
TT
20482020-08-07 Tom Tromey <tromey@adacore.com>
2049
2050 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2051 "is_pid" case.
2052
2080266b
TT
20532020-08-07 Tom Tromey <tromey@adacore.com>
2054
2055 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2056 New methods.
2057 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2058 first.
2059 (ravenscar_thread_target::add_thread): Rename from
2060 ravenscar_add_thread.
2061 (ravenscar_thread_target::update_thread_list): Use a lambda.
2062 (ravenscar_thread_target::xfer_partial): New method.
2063
78c02f21
TT
20642020-08-07 Tom Tromey <tromey@adacore.com>
2065
2066 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2067 gdb::function_view.
2068 (iterate_over_live_ada_tasks): Change type of argument.
2069 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2070 of argument.
2071
d5d833af
TT
20722020-08-07 Tom Tromey <tromey@adacore.com>
2073
2074 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2075 Remove.
2076 (ravenscar_thread_target::extra_thread_info): Remove.
2077 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2078 defer to target beneath for non-Ravenscar threads.
2079
a8ac85bb
TT
20802020-08-07 Tom Tromey <tromey@adacore.com>
2081
2082 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2083 get_base_thread_from_ravenscar_task>: Now methods.
2084 <m_cpu_map>: New member.
2085 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2086 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2087 (ravenscar_thread_target::task_is_currently_active): Update.
2088 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2089 Now a method.
2090 (ravenscar_thread_target::add_active_thread): Put initial thread
2091 into the m_cpu_map.
2092
550ab58d
TT
20932020-08-07 Tom Tromey <tromey@adacore.com>
2094
2095 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2096 event_ptid.
2097
e9546579
TT
20982020-08-07 Tom Tromey <tromey@adacore.com>
2099
2100 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2101 runtime_initialized.
2102
3d4470e5
TT
21032020-08-07 Tom Tromey <tromey@adacore.com>
2104
2105 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2106 add_active_thread.
2107 (ravenscar_thread_target::add_active_thread): Now public.
2108 (ravenscar_inferior_created): Call add_active_thread after pushing
2109 the target.
2110
888bdb2b
SM
21112020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * regcache.c (ptid_regcache_map): New type.
2114 (target_ptid_regcache_map): New type.
2115 (regcaches): Change type to target_ptid_regcache_map.
2116 (get_thread_arch_aspace_regcache): Update to regcaches' new
2117 type.
2118 (regcache_thread_ptid_changed): Likewise.
2119 (registers_changed_ptid): Likewise.
2120 (regcaches_size): Likewise.
2121 (regcaches_test): Update.
2122 (regcache_thread_ptid_changed): Update.
2123 * regcache.h (regcache_up): New type.
2124 * gdbsupport/ptid.h (hash_ptid): New struct.
2125
b161a60d
SM
21262020-08-07 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * observable.h (thread_ptid_changed): Add parameter
2129 `process_stratum_target *`.
2130 * infrun.c (infrun_thread_ptid_changed): Add parameter
2131 `process_stratum_target *` and use it.
2132 (selftests): New namespace.
2133 (infrun_thread_ptid_changed): New function.
2134 (_initialize_infrun): Register selftest.
2135 * regcache.c (regcache_thread_ptid_changed): Add parameter
2136 `process_stratum_target *` and use it.
2137 (regcache_thread_ptid_changed): New function.
2138 (_initialize_regcache): Register selftest.
2139 * thread.c (thread_change_ptid): Pass target to
2140 thread_ptid_changed observable.
2141
d2854d8d
CT
21422020-08-06 Caroline Tice <cmtice@google.com>
2143
fe4c3d43
SM
2144 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2145 (struct dwp_sections): Update field comments. Add loclists and
2146 rnglists fields.
2147 (struct virtual_v2_dwo_sections): Rename struct to
2148 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2149 size & offset fields for loclists and rnglists.
2150 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2151 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2152 skipping dummy type units.
2153 (create_dwp_hash_table): Update the large comment above the function to
2154 discuss Version 5 DWP files as well, with references. Update all the
2155 version checks in the function to check for version 5 as well. Add new
2156 section at the end to create dwp hash table for version 5.
2157 (create_dwp_v2_section): Rename function to
2158 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2159 Add V5 to error message text.
2160 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2161 into calls to create_dwp_v2_or_v5_section.
2162 (create_dwo_unit_in_dwp_v5): New function.
2163 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2164 check for version2; add else clause to handle version 5.
2165 (open_and_init_dwo_file): Add code to check dwarf version & only call
2166 create_debug_types_hash_table (with sections.types) if version is not 5;
2167 else call create_debug_type_hash_table, with sections.info.
2168 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2169 version 5.
2170 (dwarf2_locate_v5_dwp_sections): New function.
2171 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2172 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2173
159ed7d9
SM
21742020-08-06 Simon Marchi <simon.marchi@efficios.com>
2175
2176 * regcache.h (class regcache): Remove friend
2177 registers_changed_ptid.
2178 <regcache_thread_ptid_changed>: Remove.
2179 <regcaches>: Remove.
2180 * regcache.c (regcache::regcaches): Rename to...
2181 (regcaches): ... this. Make static.
2182 (get_thread_arch_aspace_regcache): Update.
2183 (regcache::regcache_thread_ptid_changed): Rename to...
2184 (regcache_thread_ptid_changed): ... this. Update.
2185 (class regcache_access): Remove.
2186 (regcaches_test): Update.
2187 (_initialize_regcache): Update.
2188 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2189 <forward_list>.
2190
174981ae
SM
21912020-08-06 Simon Marchi <simon.marchi@efficios.com>
2192
2193 * regcache.h (class regcache) <current_regcache>: Rename to...
2194 <regcaches>: ... this. Move doc here.
2195 * regcache.c (regcache::current_regcache) Rename to...
2196 (regcache::regcaches): ... this. Move doc to header.
2197 (get_thread_arch_aspace_regcache): Update.
2198 (regcache::regcache_thread_ptid_changed): Update.
2199 (registers_changed_ptid): Update.
2200 (class regcache_access) <current_regcache_size>: Rename to...
2201 <regcaches_size>: ... this.
2202 (current_regcache_test): Rename to...
2203 (regcaches_test): ... this.
2204 (_initialize_regcache): Update.
2205
ed908db6
VC
22062020-08-06 Victor Collod <vcollod@nvidia.com>
2207
2208 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2209
b5582ab7
KB
22102020-08-05 Kevin Buettner <kevinb@redhat.com>
2211
2212 * corelow.c (core_target::build_file_mappings): Don't output
2213 null pathname in warning.
2214
ea946b86
SM
22152020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2218 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2219 gdb.dwarf2/dw2-single-line-discriminators.exp,
2220 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2221
57d02173
TT
22222020-08-05 Tom Tromey <tromey@adacore.com>
2223
2224 PR rust/26197:
2225 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2226 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2227 Fix off-by-one and type size errors in ordinary case.
2228
5555c86d
TV
22292020-08-05 Tom de Vries <tdevries@suse.de>
2230
2231 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2232 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2233
97916bfe
SM
22342020-08-04 Simon Marchi <simon.marchi@efficios.com>
2235
2236 * frame.h (frame_id_p): Return bool.
2237 (frame_id_artificial_p): Return bool.
2238 (frame_id_eq): Return bool.
2239 (has_stack_frames): Return bool.
2240 (get_selected_frame): Fix typo in comment.
2241 (get_frame_pc_if_available): Return bool.
2242 (get_frame_address_in_block_if_available): Return bool.
2243 (get_frame_func_if_available): Return bool.
2244 (read_frame_register_unsigned): Return bool.
2245 (get_frame_register_bytes): Return bool.
2246 (safe_frame_unwind_memory): Return bool.
2247 (deprecated_frame_register_read): Return bool.
2248 (frame_unwinder_is): Return bool.
2249 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2250 bool.
2251 <this_id::p>: Likewise.
2252 <prev_p>: Likewise.
2253 (frame_stash_add): Return bool.
2254 (get_frame_id): Use bool.
2255 (frame_id_build_special) Use bool.
2256 (frame_id_build_unavailable_stack): Use bool.
2257 (frame_id_build): Use bool.
2258 (frame_id_p): Return bool, use true/false instead of 1/0.
2259 (frame_id_artificial_p): Likewise.
2260 (frame_id_eq): Likewise.
2261 (frame_id_inner): Likewise.
2262 (get_frame_func_if_available): Likewise.
2263 (read_frame_register_unsigned): Likewise.
2264 (deprecated_frame_register_read): Likewise.
2265 (get_frame_register_bytes): Likewise.
2266 (has_stack_frames): Likewise.
2267 (inside_main_func): Likewise.
2268 (inside_entry_func): Likewise.
2269 (get_frame_pc_if_available): Likewise.
2270 (get_frame_address_in_block_if_available): Likewise.
2271 (frame_unwinder_is): Likewise.
2272 (safe_frame_unwind_memory): Likewise.
2273 (frame_unwind_arch): Likewise.
2274
fedfee88
SM
22752020-08-04 Simon Marchi <simon.marchi@efficios.com>
2276
2277 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2278 type to cached_copy_status.
2279 (fprintf_frame): Adjust.
2280 (get_frame_func_if_available): Adjust.
2281 (frame_cleanup_after_sniffer): Adjust.
2282
6cfa9b59
MW
22832020-08-04 Mark Wielaard <mark@klomp.org>
2284
2285 * MAINTAINERS (Write After Approval): Update email address.
2286
66d6346b
SM
22872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2290 dynamic_prop::const_val.
2291
8a6d5e35
SM
22922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2293
2294 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2295 dynamic_prop::kind.
2296
51d6067d
SM
22972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2298
2299 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2300
b26e2ae7
JM
23012020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2302
2303 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2304
39791af2
JM
23052020-08-04 Weimin Pan <weimin.pan@oracle.com>
2306 Jose E. Marchesi <jose.marchesi@oracle.com>
2307
2308 * configure.tgt: Add entry for bpf-*-*.
2309 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2310 (ALLDEPFILES): Add bpf-tdep.c.
2311 * bpf-tdep.c: New file.
2312 * MAINTAINERS: Add bpf target and maintainer.
2313 * NEWS: Mention the support for the new target.
2314
521894aa
TV
23152020-08-04 Tom de Vries <tdevries@suse.de>
2316
2317 PR symtab/23270
2318 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2319 Error.
2320
5d6356e9
JB
23212020-08-03 John Baldwin <jhb@FreeBSD.org>
2322
2323 * syscalls/freebsd.xml: Regenerate.
2324
0cf82b81
JB
23252020-08-03 John Baldwin <jhb@FreeBSD.org>
2326
2327 * syscalls/update-freebsd.sh: Fix usage and year range.
2328
8f34b746
TV
23292020-08-03 Tom de Vries <tdevries@suse.de>
2330
2331 PR symtab/26333
2332 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2333 DW_LNE_lo_user/DW_LNE_hi_user range.
2334
5e500d33
SM
23352020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 PR ada/26318
2338 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2339 kind.
2340
78319c15
TBA
23412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2342
2343 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2344
4c55e970
TBA
23452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2346
2347 * breakpoint.c (set_breakpoint_condition): Update the condition
2348 expressions after checking that the input condition string parses
2349 successfully and does not contain junk at the end.
2350
1e620590
TBA
23512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2352
2353 * breakpoint.c (set_breakpoint_condition): Update the
2354 condition string after parsing the new condition successfully.
2355
c8693053
RO
23562020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2357
2358 * proc-api.c (_STRUCTURED_PROC): Don't define.
2359 * proc-events.c: Likewise.
2360 * proc-flags.c: Likewise.
2361 * proc-why.c: Likewise.
2362 * procfs.c: Likewise.
2363
2364 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2365 * configure, config.in: Regenerate.
2366
5a99adb8
TV
23672020-07-30 Tom de Vries <tdevries@suse.de>
2368
2369 PR build/26320
2370 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2371 m_red/m_green/m_blue in a union.
2372
8ba83e91
TV
23732020-07-29 Tom de Vries <tdevries@suse.de>
2374
2375 PR tdep/26280
2376 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2377
f75a0693
AB
23782020-07-28 Tom Tromey <tromey@adacore.com>
2379
2380 PR symtab/26270:
2381 * symtab.h (find_pc_partial_function_sym): Declare.
2382 * cli/cli-cmds.c (disassemble_command): Use
2383 find_pc_partial_function_sym. Check asm_demangle.
2384 * blockframe.c (cache_pc_function_sym): New global.
2385 (cache_pc_function_name): Remove.
2386 (clear_pc_function_cache): Update.
2387 (find_pc_partial_function_sym): New function, from
2388 find_pc_partial_function.
2389 (find_pc_partial_function): Rewrite using
2390 find_pc_partial_function_sym.
2391
16f3242c
TT
23922020-07-28 Tom Tromey <tromey@adacore.com>
2393
2394 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2395 help. Add usage.
2396
4888741a
TT
23972020-07-28 Tom Tromey <tromey@adacore.com>
2398
2399 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2400 <DW_OP_GNU_variable_value>: Cast to address type.
2401
4d46f402
KR
24022020-07-28 Kamil Rytarowski <n54@gmx.com>
2403
2404 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2405 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2406 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2407 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2408 (nbsd_get_siginfo_type): New.
2409 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2410 (_initialize_nbsd_tdep): New.
2411
d70f978b
L
24122020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2413
2414 PR binutils/26301
2415 * configure: Regenerated.
2416
377170fa
L
24172020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2418
2419 PR binutils/26301
2420 * configure: Regenerated.
2421
43d5901d
AB
24222020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * python/py-frame.c: Remove 'user-regs.h' include.
2425 (frapy_read_register): Rewrite to make use of
2426 gdbpy_parse_register_id.
2427 * python/py-registers.c (gdbpy_parse_register_id): New function,
2428 moved here from python/py-unwind.c. Updated the return type, and
2429 also accepts register descriptor objects.
2430 * python/py-unwind.c: Remove 'user-regs.h' include.
2431 (pyuw_parse_register_id): Moved to python/py-registers.c.
2432 (unwind_infopy_add_saved_register): Update to use
2433 gdbpy_parse_register_id.
2434 (pending_framepy_read_register): Likewise.
2435 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2436
14fa8fb3
AB
24372020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * python/py-registers.c: Add 'user-regs.h' include.
2440 (register_descriptor_iter_find): New function.
2441 (register_descriptor_iterator_object_methods): New static global
2442 methods array.
2443 (register_descriptor_iterator_object_type): Add pointer to methods
2444 array.
2445
ddce1758
JB
24462020-07-27 John Baldwin <jhb@FreeBSD.org>
2447
2448 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2449 for all architectures on FreeBSD 11.3 and later.
2450
a4089f52
TT
24512020-07-27 Tom Tromey <tromey@adacore.com>
2452
2453 * gcore.h (load_corefile): Don't declare.
2454
95420d30
TV
24552020-07-27 Tom de Vries <tdevries@suse.de>
2456
2457 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2458 * config.in: Regenerate.
2459 * configure: Regenerate.
2460
05a6b8c2
EZ
24612020-07-26 Eli Zaretskii <eliz@gnu.org>
2462
2463 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2464 ws2tcpip.h. When checking whether socklen_t type is defined, use
2465 ws2tcpip.h if it is available and sys/socket.h isn't.
2466 * configure: Regenerate.
2467 * config.in: Regenerate.
2468
e79eb02f
AB
24692020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 PR fortran/23051
2472 PR fortran/26139
2473 * valops.c (value_ind): Pass address to
2474 readjust_indirect_value_type.
2475 * value.c (readjust_indirect_value_type): Make parameter
2476 non-const, and add extra address parameter. Resolve original type
2477 before using it.
2478 * value.h (readjust_indirect_value_type): Update function
2479 signature and comment.
2480
876518dd
TV
24812020-07-25 Tom de Vries <tdevries@suse.de>
2482
2483 PR symtab/26243
2484 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2485 entries.
2486
f6720b1c
AM
24872020-07-24 Aaron Merey <amerey@redhat.com>
2488
2489 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2490 * configure: Rebuild.
2491
513487e1
KB
24922020-07-23 Kevin Buettner <kevinb@redhat.com>
2493
2494 PR corefiles/26294
2495 * corelow.c (_initialize_corelow): Add period to help text
2496 for "maintenance print core-file-backed-mappings".
2497
e7bc9db8
PA
24982020-07-23 Pedro Alves <pedro@palves.net>
2499
2500 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2501 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2502 meanwhile.
2503 * frame.c (frame_cache_generation, get_frame_cache_generation):
2504 New.
2505 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2506 (get_prev_frame_if_no_cycle): On exception, don't touch
2507 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2508 * frame.h (get_frame_cache_generation): Declare.
2509
90fcc466
TV
25102020-07-23 Tom de Vries <tdevries@suse.de>
2511
2512 PR tui/26282
2513 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2514 New default constructor.
2515
78344df7
AB
25162020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2519 exclude non-statement entries.
2520
b089853a
KB
25212020-07-22 Kevin Buettner <kevinb@redhat.com>
2522
2523 * NEWS (New commands): Mention new command
2524 "maintenance print core-file-backed-mappings".
2525
09c2f5d4
KB
25262020-07-22 Kevin Buettner <kevinb@redhat.com>
2527
2528 * corelow.c (gdbcmd.h): Include.
2529 (core_target::info_proc_mappings): New method.
2530 (get_current_core_target): New function.
2531 (maintenance_print_core_file_backed_mappings): New function.
2532 (_initialize_corelow): Add core-file-backed-mappings to
2533 "maint print" commands.
2534
9c5ec5c2 25352020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2536
9c5ec5c2
KB
2537 * linux-tdep.c (dump_note_entry_p): New function.
2538 (linux_dump_mapping_p_ftype): New typedef.
2539 (linux_find_memory_regions_full): Add new parameter,
2540 should_dump_mapping_p.
2541 (linux_find_memory_regions): Adjust call to
2542 linux_find_memory_regions_full.
2543 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2544 call to linux_find_memory_regions_full.
2545
db082f59
KB
25462020-07-22 Kevin Buettner <kevinb@redhat.com>
2547
2548 * corelow.c (solist.h, unordered_map): Include.
2549 (class core_target): Add field m_core_file_mappings and
2550 method build_file_mappings.
2551 (core_target::core_target): Call build_file_mappings.
2552 (core_target::~core_target): Free memory associated with
2553 m_core_file_mappings.
2554 (core_target::build_file_mappings): New method.
2555 (core_target::xfer_partial): Use m_core_file_mappings
2556 for memory transfers.
2557 * linux-tdep.c (linux_read_core_file_mappings): New
2558 function.
2559 (linux_core_info_proc_mappings): Rewrite to use
2560 linux_read_core_file_mappings.
2561 (linux_init_abi): Register linux_read_core_file_mappings.
2562
7e183d27
KB
25632020-07-22 Kevin Buettner <kevinb@redhat.com>
2564
2565 * arch-utils.c (default_read_core_file_mappings): New function.
2566 * arch-utils.c (default_read_core_file_mappings): Declare.
2567 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2568 * gdbarch.h, gdbarch.c: Regenerate.
2569
2735d421
KB
25702020-07-22 Kevin Buettner <kevinb@redhat.com>
2571
2572 PR corefiles/25631
2573 * corelow.c (core_target:xfer_partial): Revise
2574 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2575 case after first checking the stratum beneath the core
2576 target.
2577 (has_all_memory): Return true.
2578 * target.c (raw_memory_xfer_partial): Revise comment
2579 regarding use of has_all_memory.
2580
e56cb451
KB
25812020-07-22 Kevin Buettner <kevinb@redhat.com>
2582
2583 * exec.h (section_table_xfer_memory): Revise declaration,
2584 replacing section name parameter with an optional callback
2585 predicate.
2586 * exec.c (section_table_xfer_memory): Likewise.
2587 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2588 of section_table_xfer_memory.
2589
32fa152e
TT
25902020-07-22 Tom Tromey <tromey@adacore.com>
2591
2592 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2593 lookup_symbol_search_name.
2594
a67a1c41
AB
25952020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2598 redundant local variable.
2599 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2600 reference, not pointer, update code accordingly.
2601
a7b4ff4f
SM
26022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2603 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2604
2605 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2606 * jit.c (jit_breakpoint_re_set_internal): Use the
2607 `skip_jit_symbol_lookup` field.
2608
2340e834
SM
26092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2610 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2611
2612 * jit.c (jit_read_descriptor): Define the descriptor address once,
2613 use twice.
2614 (jit_breakpoint_deleted): Move the declaration of the loop variable
2615 `iter` into the loop header.
2616 (jit_breakpoint_re_set_internal): Move the declaration of the local
2617 variable `objf_data` to the first point of definition.
2618 (jit_event_handler): Move the declaration of local variables
2619 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2620 Rename `objf` to `jited`.
2621
c1072906
SM
26222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2625 Remove.
2626 * jit.c (get_jiter_objfile_data): Update.
2627
c8474dc3
TBA
26282020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2629 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * jit.c (struct jit_program_space_data): Remove.
2632 (jit_program_space_key): Remove.
2633 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2634 stuff.
2635 (get_jit_program_space_data): Remove.
2636 (jit_breakpoint_deleted): Iterate on all of the program space's
2637 objfiles.
2638 (jit_inferior_init): Likewise.
2639 (jit_breakpoint_re_set_internal): Likewise. Also change return
2640 type to void.
2641 (jit_breakpoint_re_set): Pass current_program_space to
2642 jit_breakpoint_re_set_internal.
2643
77208eb7
SM
26442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * jit.h (struct jiter_objfile_data) <cached_code_address,
2647 jit_breakpoint>: Move to here from ...
2648 * jit.c (jit_program_space_data): ... here.
2649 (jiter_objfile_data::~jiter_objfile_data): Update.
2650 (jit_breakpoint_deleted): Update.
2651 (jit_breakpoint_re_set_internal): Update.
2652
8c1c720f
SM
26532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2656 checks.
2657 (jit_read_descriptor): Remove NULL check.
2658 (jit_event_handler): Add an assertion.
2659
0e74a041
SM
26602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * jit.h (struct jit_objfile_data): Split into...
2663 (struct jiter_objfile_data): ... this ...
2664 (struct jited_objfile_data): ... and this.
2665 * objfiles.h (struct objfile) <jit_data>: Remove.
2666 <jiter_data, jited_data>: New fields.
2667 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2668 (jiter_objfile_data::~jiter_objfile_data): ... this.
2669 (get_jit_objfile_data): Rename to ...
2670 (get_jiter_objfile_data): ... this.
2671 (add_objfile_entry): Update.
2672 (jit_read_descriptor): Use get_jiter_objfile_data.
2673 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2674 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2675 (jit_inferior_exit_hook): Use objfile's jited_data field.
2676
238b5c9f
SM
26772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * jit.h: Forward-declare `struct minimal_symbol`.
2680 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2681 constructor, destructor, and an objfile* field.
2682 * jit.c (jit_objfile_data): Remove.
2683 (struct jit_objfile_data): Migrate from here to jit.h.
2684 (jit_objfile_data::~jit_objfile_data): New destructor
2685 implementation with code moved from free_objfile_data.
2686 (free_objfile_data): Delete.
2687 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2688 (jit_find_objf_with_entry_addr): Ditto.
2689 (jit_inferior_exit_hook): Ditto.
2690 (_initialize_jit): Remove the call to
2691 register_objfile_data_with_cleanup.
2692 * objfiles.h (struct objfile) <jit_data>: New field.
2693
fe053b9e
TBA
26942020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2695
2696 * jit.h: Forward-declare `struct objfile`.
2697 (jit_event_handler): Add a second parameter, the JITer objfile.
2698 * jit.c (jit_read_descriptor): Change the signature to take the
2699 JITer objfile as an argument instead of the jit_program_space_data.
2700 (jit_inferior_init): Update the call to jit_read_descriptor.
2701 (jit_event_handler): Use the new JITer objfile argument when calling
2702 jit_read_descriptor.
2703 * breakpoint.c (handle_jit_event): Update the call to
2704 jit_event_handler to pass the JITer objfile.
2705
4cec0c66
JB
27062020-07-21 John Baldwin <jhb@FreeBSD.org>
2707
2708 * gdbarch.c: Regenerate.
2709 * gdbarch.h: Regenerate.
2710 * gdbarch.sh (handle_segmentation_fault): Remove method.
2711 * infrun.c (handle_segmentation_fault): Remove.
2712 (print_signal_received_reason): Remove call to
2713 handle_segmentation_fault.
2714
0e42f66a
JB
27152020-07-21 John Baldwin <jhb@FreeBSD.org>
2716
2717 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2718 Rename to sparc64_linux_report_signal_info and add siggnal
2719 argument.
2720 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2721 instead of sparc64_linux_handle_segmentation_fault.
2722
77bdfeb2
JB
27232020-07-21 John Baldwin <jhb@FreeBSD.org>
2724
2725 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2726 i386_linux_report_signal_info instead of
2727 i386_linux_handle_segmentation_fault.
2728 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2729 to i386_linux_report_signal_info and add siggnal argument.
2730 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2731 of i386_linux_handle_segmentation_fault.
2732 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2733 to i386_linux_report_signal_info and add siggnal argument.
2734
ad97bfc5
JB
27352020-07-21 John Baldwin <jhb@FreeBSD.org>
2736
2737 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2738 hook if present.
2739
272bb05c
JB
27402020-07-21 John Baldwin <jhb@FreeBSD.org>
2741
2742 * gdbarch.c: Regenerate.
2743 * gdbarch.h: Regenerate.
2744 * gdbarch.sh (report_signal_info): New method.
2745 * infrun.c (print_signal_received_reason): Invoke gdbarch
2746 report_signal_info hook if present.
2747
baf8791e
AB
27482020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2749
2750 * python/py-registers.c : Add 'unordered_map' include.
2751 (gdbpy_new_reggroup): Renamed to...
2752 (gdbpy_get_reggroup): ...this. Update to only create register
2753 group descriptors when needed.
2754 (gdbpy_reggroup_iter_next): Update.
2755
f7306dac
AB
27562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * python/py-registers.c (gdbpy_register_object_data): New static
2759 global.
2760 (gdbpy_register_object_data_init): New function.
2761 (gdbpy_new_register_descriptor): Renamed to...
2762 (gdbpy_get_register_descriptor): ...this, and update to reuse
2763 existing register descriptors where possible.
2764 (gdbpy_register_descriptor_iter_next): Update.
2765 (gdbpy_initialize_registers): Register new gdbarch data.
2766
05c309a8
SM
27672020-07-21 Simon Marchi <simon.marchi@efficios.com>
2768
2769 * linux-nat.c (stopped_pids): Make static.
2770
d1fd641e
SM
27712020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 PR ada/26235
2774 * gdbtypes.c (ada_discrete_type_low_bound,
2775 ada_discrete_type_high_bound): Handle undefined bounds.
2776
1de14d77
KR
27772020-07-21 Kamil Rytarowski <n54@gmx.com>
2778
2779 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2780 declaration.
2781 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2782 function.
2783
ed810cc7
JB
27842020-07-20 John Baldwin <jhb@FreeBSD.org>
2785
2786 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2787 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2788 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2789 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2790 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2791 method.
2792
ae5369e7
LC
27932020-07-20 Ludovic Courtès <ludo@gnu.org>
2794
2795 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2796 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2797 which are deprecated in Guile 3.0.
2798 * configure.ac (try_guile_versions): Add "guile-3.0".
2799 * configure (try_guile_versions): Regenerate.
2800 * NEWS: Update entry.
2801
68cf161c
LC
28022020-07-20 Ludovic Courtès <ludo@gnu.org>
2803 Doug Evans <dje@google.com>
2804
2805 PR gdb/21104
2806 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2807 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2808 USING_GUILE_BEFORE_2_2.
2809 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2810 Change type to 'scm_t_port_type *'.
2811 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2812 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2813 parameter and honor it. Update callers.
2814 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2815 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2816 functions.
2817 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2818 USING_GUILE_BEFORE_2_2.
2819 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2820 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2821 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2822 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2823 and 'SCM_PORT_TYPE'.
2824 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2825 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2826 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2827 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2828 [!USING_GUILE_BEFORE_2_2]: New functions.
2829 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2830 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2831 'gdbscm_memory_port_read'.
2832 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2833 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2834 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2835 function.
2836 (ioscm_init_memory_port): Remove.
2837 (ioscm_init_memory_port_stream): New function
2838 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2839 function.
2840 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2841 Return scm_from_uint (0).
2842 (gdbscm_set_memory_port_read_buffer_size_x)
2843 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2844 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2845 Return scm_from_uint (0).
2846 (gdbscm_set_memory_port_write_buffer_size_x)
2847 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2848 * configure.ac (try_guile_versions): Add "guile-2.2".
2849 * configure: Regenerate.
2850 * NEWS: Add entry.
2851
aee91db3
TT
28522020-07-18 Tom Tromey <tom@tromey.com>
2853
2854 * linux-nat.c (linux_multi_process): Remove.
2855 (linux_nat_target::supports_multi_process): Return true.
2856
0e267416
AB
28572020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2860 (riscv_lookup_target_description): Return pointer out of
2861 unique_ptr.
2862 * target-descriptions.c (allocate_target_description): Add
2863 comment.
2864 (target_desc_deleter::operator()): Likewise.
2865 * target-descriptions.h (struct target_desc_deleter): Moved to
2866 gdbsupport/tdesc.h.
2867 (target_desc_up): Likewise.
2868
f80c8ec4
TT
28692020-07-17 Tom Tromey <tromey@adacore.com>
2870
2871 * linux-nat.c (linux_nat_target::supports_non_stop)
2872 (linux_nat_target::always_non_stop_p): Use "true".
2873 (linux_nat_target::supports_disable_randomization): Use "true" and
2874 "false".
2875
d0ce17d8
CT
28762020-07-16 Caroline Tice <cmtice@google.com>
2877
2878 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2879 (RNGLIST_HEADER_SIZE64): New constant definition.
2880 (struct dwop_section_names): Add rnglists_dwo.
2881 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2882 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2883 (struct dwo_sections): Add rnglists field.
2884 (read_attribut_reprocess): Add tag parameter.
2885 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2886 (cu_debug_rnglists_section): New function (decl & definition).
2887 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2888 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2889 die whose range is being checked; get rnglist section from
2890 cu_debug_rnglists_section, to get from either objfile or dwo file as
2891 appropriate. Add cases for DW_RLE_base_addressx,
2892 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2893 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2894 test inside if-condition and updating complaint message.
2895 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2896 dwarf2_rnglists_process.
2897 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2898 dwarf2_ranges_process.
2899 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2900 need_ranges_base and update comment appropriately. Also pass die tag
2901 to dwarf2_ranges_read.
2902 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2903 need_ranges_base and update comment appropriately. Also pass die tag
2904 to dwarf2_ranges_process.
2905 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2906 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2907 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2908 need_ranges_base and update comment appropriately. Also pass die tag
2909 to read_attribute_reprocess and dwarf2_ranges_read.
2910 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2911 and update function comment appropriately.
2912 (read_loclist_index): Call read_loclists_rnglists_header instead of
2913 read_loclist_header.
2914 (read_rnglist_index): New function.
2915 (read_attribute_reprocess): Add tag parameter. Add code for
2916 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2917 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2918
3dcc261c
AB
29192020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2922 being resolved.
2923
ccb9eba6
AB
29242020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2925
2926 * arch-utils.c (show_architecture): Update formatting of messages.
2927
cf88be68
SM
29282020-07-12 Simon Marchi <simon.marchi@efficios.com>
2929
2930 * gdbtypes.h (struct type) <bounds>: Handle array and string
2931 types.
2932 * ada-lang.c (assign_aggregate): Use type::bounds on
2933 array/string type.
2934 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2935 * c-varobj.c (c_number_of_children): Likewise.
2936 (c_describe_child): Likewise.
2937 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2938 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2939 (f_type_print_base): Likewise.
2940 * f-valprint.c (f77_array_offset_tbl): Likewise.
2941 (f77_get_upperbound): Likewise.
2942 (f77_print_array_1): Likewise.
2943 * guile/scm-type.c (gdbscm_type_range): Likewise.
2944 * m2-typeprint.c (m2_array): Likewise.
2945 (m2_is_long_set_of_type): Likewise.
2946 * m2-valprint.c (get_long_set_bounds): Likewise.
2947 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2948 * python/py-type.c (typy_range): Likewise.
2949 * rust-lang.c (rust_internal_print_type): Likewise.
2950 * type-stack.c (type_stack::follow_types): Likewise.
2951 * valarith.c (value_subscripted_rvalue): Likewise.
2952 * valops.c (value_cast): Likewise.
2953
509971ae
SM
29542020-07-12 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2957 callers to use the equivalent accessor methods.
2958
107406b7
SM
29592020-07-12 Simon Marchi <simon.marchi@efficios.com>
2960
2961 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2962 (struct type) <bit_stride>: New method.
2963 (TYPE_BIT_STRIDE): Remove.
2964 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2965
bb789949
SM
29662020-07-12 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2969 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2970 callers to use the equivalent accessor methods instead.
2971
39498edb
SM
29722020-07-12 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2975 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2976 callers to use the equivalent accessor methods instead.
2977
3b606f38
SM
29782020-07-12 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2981 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2982 to use dynamic_prop::kind.
2983
064d9cb9
SM
29842020-07-12 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2987 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2988 to get the bound property's kind and check against
2989 PROP_UNDEFINED.
2990
5537ddd0
SM
29912020-07-12 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2994 all callers to use type::range_bounds followed by
2995 dynamic_prop::{low,high}.
2996
8c2e4e06
SM
29972020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3000 const_val, set_const_val, baton, set_locexpr, set_loclist,
3001 set_addr_offset, variant_parts, set_variant_parts,
3002 original_type, set_original_type>: New methods.
3003 <kind>: Rename to...
3004 <m_kind>: ... this. Update all users to use the new methods
3005 instead.
3006 <data>: Rename to...
3007 <m_data>: ... this. Update all users to use the new methods
3008 instead.
3009
7c6f2712
SM
30102020-07-12 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * gdbtypes.c (get_discrete_bounds): Return failure if
3013 the range type's bounds are not both defined and constant
3014 values.
3015 (get_array_bounds): Update comment. Remove undefined bound check.
3016
599088e3
SM
30172020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3020 the type::bounds method directly.
3021
c4dfcb36
SM
30222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3025 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3026 are used to set the range type's bounds to use set_bounds.
3027
0a278aa7
PW
30282020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3029
3030 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3031
cce20f10
PA
30322020-07-10 Pedro Alves <pedro@palves.net>
3033
3034 * gdbthread.h (inferior_ref): Define.
3035 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3036 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3037 * thread.c
3038 (scoped_restore_current_thread::restore):
3039 Adjust to gdb::ref_ptr.
3040 (scoped_restore_current_thread::~scoped_restore_current_thread):
3041 Remove manual decref handling.
3042 (scoped_restore_current_thread::scoped_restore_current_thread):
3043 Adjust to use
3044 inferior_ref::new_reference/thread_info_ref::new_reference.
3045 Incref the thread before calling get_frame_id instead of after.
3046 Let TARGET_CLOSE_ERROR propagate.
3047
6d7aa592
PA
30482020-07-10 Pedro Alves <pedro@palves.net>
3049
3050 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3051 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3052 NOT_AVAILABLE_ERROR.
3053 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3054 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3055
b3e3a4c1
SM
30562020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3057 Pedro Alves <pedro@palves.net>
3058
3059 PR gdb/26199
3060 * infrun.c (threads_are_resumed_pending_p): Delete.
3061 (do_target_wait): Remove threads_are_executing and
3062 threads_are_resumed_pending_p checks from the inferior_matches
3063 lambda. Update comments.
3064
d6cc5d98
PA
30652020-07-10 Pedro Alves <pedro@palves.net>
3066
3067 PR gdb/26199
3068 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3069 executing threads.
3070
7d3badc6
PA
30712020-07-10 Pedro Alves <pedro@palves.net>
3072
3073 PR gdb/26199
3074 * infrun.c (handle_no_resumed): Handle multiple targets.
3075
42bd97a6
PA
30762020-07-10 Pedro Alves <pedro@palves.net>
3077
3078 PR gdb/26199
3079 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3080 target_is_async_p.
3081
43667cc6
PA
30822020-07-10 Pedro Alves <pedro@palves.net>
3083
3084 PR gdb/26199
3085 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3086 threads, not all threads.
3087
96118d11
PA
30882020-07-10 Pedro Alves <pedro@palves.net>
3089
3090 PR gdb/26199
3091 * remote.c (remote_target::open_1): Pass remote target pointer as
3092 data to create_async_event_handler.
3093 (remote_async_inferior_event_handler): Mark async event handler
3094 before returning if the remote target still has either pending
3095 events or unacknowledged notifications.
3096
54904d81
JB
30972020-07-10 John Baldwin <jhb@FreeBSD.org>
3098
3099 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3100 declaration.
3101 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3102 function.
3103
f37e5866
JB
31042020-07-09 John Baldwin <jhb@FreeBSD.org>
3105
3106 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3107 inferior_ptid.
3108
fc238d4a
JB
31092020-07-09 John Baldwin <jhb@FreeBSD.org>
3110
3111 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3112 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3113 AT_FREEBSD_PS_STRINGS.
3114
6e2469ff
HD
31152020-07-08 Hannes Domani <ssbssa@yahoo.de>
3116
3117 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3118 of debugfile path on Windows.
3119
d1076c41
JB
31202020-07-08 John Baldwin <jhb@FreeBSD.org>
3121
3122 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3123 argument to 'data'.
3124
15f3b077
TT
31252020-07-08 Tom Tromey <tromey@adacore.com>
3126
3127 * ada-lang.c (ada_exception_message_1): Use read_memory.
3128
9fc501fd
AB
31292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3130
3131 PR python/22748
3132 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3133 special handling for inline frames.
3134 * findvar.c (value_of_register_lazy): Skip inline frames when
3135 creating lazy register values.
3136 * frame.c (frame_id_computed_p): Delete definition.
3137 * frame.h (frame_id_computed_p): Delete declaration.
3138
64cb3757
AB
31392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * NEWS: Mention additions to Python API.
3142 * python/py-arch.c (archpy_register_groups): New function.
3143 (arch_object_methods): Add 'register_groups' method.
3144 * python/py-registers.c (reggroup_iterator_object): New struct.
3145 (reggroup_object): New struct.
3146 (gdbpy_new_reggroup): New function.
3147 (gdbpy_reggroup_to_string): New function.
3148 (gdbpy_reggroup_name): New function.
3149 (gdbpy_reggroup_iter): New function.
3150 (gdbpy_reggroup_iter_next): New function.
3151 (gdbpy_new_reggroup_iterator): New function
3152 (gdbpy_initialize_registers): Register new types.
3153 (reggroup_iterator_object_type): Define new Python type.
3154 (gdbpy_reggroup_getset): New static global.
3155 (reggroup_object_type): Define new Python type.
3156 * python/python-internal.h
3157
0f767f94
AB
31582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3161 * python/py-arch.c (archpy_registers): New function.
3162 (arch_object_methods): Add 'registers' method.
3163 * python/py-registers.c: New file.
3164 * python/python-internal.h
3165 (gdbpy_new_register_descriptor_iterator): Declare.
3166 (gdbpy_initialize_registers): Declare.
3167 * python/python.c (do_start_initialization): Call
3168 gdbpy_initialize_registers.
3169 * NEWS: Mention additions to the Python API.
3170
87dbc774
AB
31712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * NEWS: Mention new Python API method.
3174 * python/py-unwind.c (pending_framepy_architecture): New function.
3175 (pending_frame_object_methods): Add architecture method.
3176
3bc98c0c
AB
31772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3178
3179 * gdbarch.c: Regenerate.
3180 * gdbarch.h: Regenerate.
3181 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3182 (gdbarch_data): Use internal_error for the case where
3183 deprecated_set_gdbarch_data was originally needed.
3184 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3185 and use passed in obstack.
3186 (libunwind_frame_set_descr): Should no longer get back NULL from
3187 gdbarch_data.
3188 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3189 type.
3190 * user-regs.c (user_regs_init): Update parameters, and use passed
3191 in obstack.
3192 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3193 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3194
d8cc8af6
TV
31952020-07-06 Tom de Vries <tdevries@suse.de>
3196
3197 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3198 End-Of-Sequence in lte_is_less_than.
3199 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3200 "gdb: Don't reorder line table entries too much when sorting".
3201
947f7597
TV
32022020-07-06 Tom de Vries <tdevries@suse.de>
3203
3204 PR tui/26205
3205 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3206
1e7c1b22
TV
32072020-07-05 Tom de Vries <tdevries@suse.de>
3208
3209 PR build/26187
3210 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3211 std::uncaught_exceptions instead of deprecated
3212 std::uncaught_exception.
3213
a36158ec
SM
32142020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * macroexp.h (macro_stringify): Return
3217 gdb::unique_xmalloc_ptr<char>.
3218 * macroexp.c (macro_stringify): Likewise.
3219 * macrotab.c (fixup_definition): Update.
3220
14d960c8
SM
32212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3224 (lex_one_token): Update.
3225 * macroexp.c (struct macro_buffer) <release>: Return
3226 gdb::unique_xmalloc_ptr<char>.
3227 (macro_stringify): Update.
3228 (macro_expand): Update.
3229 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3230 * macroexp.h (macro_expand_next): Likewise.
3231
211d5b1c
SM
32322020-07-02 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * macroexp.h (macro_lookup_ftype): Remove.
3235 (macro_expand, macro_expand_once, macro_expand_next): Remove
3236 lookup function parameters, add scope parameter.
3237 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3238 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3239 * macroscope.h (standard_macro_lookup): Change parameter type
3240 to macro_scope.
3241 * macroscope.c (standard_macro_lookup): Likewise.
3242 * c-exp.y (lex_one_token): Update.
3243 * macrocmd.c (macro_expand_command): Likewise.
3244 (macro_expand_once_command): Likewise.
3245
b1a35af2
SM
32462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * inf-loop.c (inferior_event_handler): Remove client_data param.
3249 * inf-loop.h (inferior_event_handler): Likewise.
3250 * infcmd.c (step_1): Adjust.
3251 * infrun.c (proceed): Adjust.
3252 (fetch_inferior_event): Remove client_data param.
3253 (infrun_async_inferior_event_handler): Adjust.
3254 * infrun.h (fetch_inferior_event): Remove `void *` param.
3255 * linux-nat.c (handle_target_event): Adjust.
3256 * record-btrace.c (record_btrace_handle_async_inferior_event):
3257 Adjust.
3258 * record-full.c (record_full_async_inferior_event_handler):
3259 Adjust.
3260 * remote.c (remote_async_inferior_event_handler): Adjust.
3261
1cdf9e33
TT
32622020-07-01 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3265 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3266
32c1e210
TT
32672020-07-01 Tom Tromey <tom@tromey.com>
3268
3269 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3270 tui_gen_win_info.
3271 (tui_win_info::make_window): Merge with
3272 tui_gen_win_info::make_window.
3273 (tui_win_info::make_visible): Move from tui_gen_win_info.
3274 * tui/tui-win.c (tui_win_info::max_width): Move from
3275 tui_gen_win_info.
3276 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3277 type.
3278 <window_factory>: Likewise.
3279 * tui/tui-layout.c (tui_win_info::resize): Move from
3280 tui_gen_win_info.
3281 (make_standard_window): Change return type.
3282 (get_locator_window, tui_get_window_by_name): Likewise.
3283 (tui_layout_window::apply): Remove a cast.
3284 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3285 (struct tui_win_info): Merge with tui_gen_win_info.
3286 (struct tui_gen_win_info): Remove.
3287
a30cb6da
TT
32882020-07-01 Tom Tromey <tom@tromey.com>
3289
3290 * tui/tui-stack.h (struct tui_locator_window): Derive from
3291 tui_win_info.
3292 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3293 <can_box>: New method.
3294
1eb2161f
TT
32952020-07-01 Tom Tromey <tom@tromey.com>
3296
3297 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3298
7134f2eb
TT
32992020-07-01 Tom Tromey <tom@tromey.com>
3300
3301 * tui/tui-regs.c (tui_data_window::display_registers_from)
3302 (tui_data_window::display_registers_from)
3303 (tui_data_window::first_data_item_displayed)
3304 (tui_data_window::delete_data_content_windows): Update.
3305 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3306 Remove.
3307 (tui_data_window::check_register_values): Update.
3308 (tui_data_item_window::rerender): Add parameters. Update.
3309 (tui_data_item_window::refresh_window): Remove.
3310 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3311 virtual.
3312 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3313 tui_gen_win_info.
3314 <refresh_window, max_height, min_height>: Remove.
3315 <rerender>: Add parameters.
3316 <x, y, visible>: New members.
3317 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3318 <m_item_width>: New member.
3319
22b7b041
TT
33202020-07-01 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-regs.c (tui_data_window::show_register_group)
3323 (tui_data_window::check_register_values): Update.
3324 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3325 from item_no.
3326
c9753adb
TT
33272020-07-01 Tom Tromey <tom@tromey.com>
3328
3329 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3330 useless "if".
3331
9ab26b4a
TT
33322020-07-01 Tom Tromey <tom@tromey.com>
3333
3334 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3335 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3336
e555083f
TT
33372020-07-01 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3340 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3341 (struct tui_line_or_address): Move from tui-data.h.
3342 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3343 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3344 (tui_cmd_window, tui_source_window_base, tui_source_window)
3345 (tui_disasm_window): Don't declare.
3346 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3347 to tui-winsource.h.
3348 (SINGLE_KEY): Move to tui-stack.c.
3349
7a02bab7
TT
33502020-07-01 Tom Tromey <tom@tromey.com>
3351
3352 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3353 std::string.
3354 * tui/tui-regs.c (class tab_expansion_file): New.
3355 (tab_expansion_file::write): New method.
3356 (tui_register_format): Change return type. Use
3357 tab_expansion_file.
3358 (tui_get_register, tui_data_window::display_registers_from)
3359 (tui_data_item_window::rerender): Update.
3360 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3361 * tui/tui-io.c (tui_expand_tabs): Remove.
3362
ea68593b
TT
33632020-07-01 Tom Tromey <tom@tromey.com>
3364
3365 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3366
a8caed5d
FS
33672020-07-01 Fangrui Song <maskray@google.com>
3368
3369 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3370
9cdf9820
AKS
33712020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3372
3373 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3374 forms for DW_AT_associated and DW_AT_allocated attributes,
3375 which is already checked in function attr_to_dynamic_prop.
3376
a1520ad8
TT
33772020-06-30 Tom Tromey <tromey@adacore.com>
3378
3379 * dwarf2/read.c (quirk_rust_enum): Correctly call
3380 alloc_rust_variant for default-less enum.
3381
5ac58899
TT
33822020-06-30 Tom Tromey <tromey@adacore.com>
3383
3384 PR build/26183:
3385 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3386 gdb::to_string.
3387
19b187a9
SM
33882020-06-29 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3391 * gdbarch.h: Re-generate.
3392
cd4c4c07
TT
33932020-06-28 Tom Tromey <tom@tromey.com>
3394
3395 * command.h (cmd_types): Remove.
3396 (cmd_type): Don't declare.
3397 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3398 typedef.
3399 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3400 * cli/cli-decode.c (cmd_type): Remove.
3401
05779d57
PA
34022020-06-27 Pedro Alves <palves@redhat.com>
3403
3404 * fork-child.c (prefork_hook): Adjust.
3405 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3406 Delete.
3407 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3408 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3409 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3410 Remove declarations.
3411 (struct inferior) <set_tty, tty>: New methods.
3412 (struct inferior) <terminal>: Rename to ...
3413 (struct inferior) <m_terminal>: ... this and make private.
3414 * main.c (captured_main_1): Adjust.
3415 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3416 (mi_cmd_inferior_tty_show): Adjust.
3417 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3418 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3419
1776e3e5
NA
34202020-06-26 Nick Alcock <nick.alcock@oracle.com>
3421
3422 * configure.ac: Add --enable-libctf: handle --disable-static
3423 properly.
3424 * acinclude.m4: sinclude ../config/enable.m4.
3425 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3426 (LIBCTF): Substitute in.
3427 (CTF_DEPS): New, likewise.
3428 (CLIBS): libctf needs symbols from libbfd: move earlier.
3429 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3430 flags.
3431 * ctfread.c: Surround in ENABLE_LIBCTF.
3432 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3433 * configure: Regenerate.
3434 * config.in: Likewise.
3435
58373b80
SM
34362020-06-25 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3439
277474ee
SM
34402020-06-25 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * inferior.h (struct inferior) <terminal>: Change type to
3443 gdb::unique_xmalloc_ptr<char>.
3444 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3445 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3446 field, adjust to unique pointer.
3447 (get_inferior_io_terminal): Adjust to unique pointer.
3448
6d74da72
AB
34492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3452 registers, not just the known core set of registers.
3453
2e52d038
AB
34542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3457 fflags, frm, and fcsr registers.
3458 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3459 restore groups.
3460 (riscv_tdesc_unknown_reg): New function.
3461 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3462 tdesc_use_registers.
3463 * riscv-tdep.h (struct gdbarch_tdep): Add
3464 unknown_csrs_first_regnum, unknown_csrs_count,
3465 duplicate_fflags_regnum, duplicate_frm_regnum, and
3466 duplicate_fcsr_regnum fields.
3467
be64fd07
AB
34682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3471 callback, use the callback (when not null) to help number unknown
3472 registers.
3473 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3474 (tdesc_use_registers): Add extra parameter to declaration.
3475
3b9fce96
AB
34762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3479 in the file.
3480 (class riscv_pending_register_alias): Likewise.
3481 (riscv_register_feature::register_info): Change 'required_p' field
3482 to 'required', and change its type. Add 'check' member function.
3483 (riscv_register_feature::register_info::check): Define new member
3484 function.
3485 (riscv_xreg_feature): Change initialisation of 'required' field.
3486 (riscv_freg_feature): Likewise.
3487 (riscv_virtual_feature): Likewise.
3488 (riscv_csr_feature): Likewise.
3489 (riscv_check_tdesc_feature): Take extra parameter, the csr
3490 tdesc_feature, rewrite the function to use the new
3491 riscv_register_feature::register_info::check function.
3492 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3493
865bad26
AB
34942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3495
3496 * features/Makefile: Remove all references to the deleted files
3497 below.
3498 * features/riscv/32bit-csr.c: Deleted.
3499 * features/riscv/32bit-csr.xml: Deleted.
3500 * features/riscv/64bit-csr.c: Deleted.
3501 * features/riscv/64bit-csr.xml: Deleted.
3502 * features/riscv/rebuild-csr-xml.sh: Deleted.
3503
ed69cbc8
AB
35042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3507 whitespace error for declaration of names member variable.
3508 (struct riscv_register_feature): Add new prefer_first_name member
3509 variable, and fix whitespace error in declaration of registers.
3510 (riscv_xreg_feature): Initialize prefer_first_name field.
3511 (riscv_freg_feature): Likewise.
3512 (riscv_virtual_feature): Likewise.
3513 (riscv_csr_feature): Likewise.
3514 (riscv_register_name): Expand on comments. Remove register name
3515 modifications for CSR and virtual registers.
3516
4445e8f5
AB
35172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3520 errors.
3521
767a879e
AB
35222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3525 riscv-opc.h.
3526 (class riscv_pending_register_alias): New class.
3527 (riscv_check_tdesc_feature): Take vector of pending aliases and
3528 populate it as appropriate.
3529 (riscv_setup_register_aliases): Delete.
3530 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3531 to riscv_check_tdesc_feature in all cases. Use the vector to
3532 create the register aliases.
3533
bb6e55f3
RO
35342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3535
3536 * sol2-tdep.c (sol2_static_transform_name): Remove.
3537 (sol2_init_abi): Don't register it.
3538 * gdbarch.sh (static_transform_name): Remove.
3539 * gdbarch.c, gdbarch.h: Regenerate.
3540
3541 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3542 gdbarch_static_transform_name.
3543 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3544 * stabsread.c (define_symbol) <'X'>: Remove.
3545 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3546 handling.
3547 <'V'>: Likewise.
3548 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3549 <'S'>: Remove call to gdbarch_static_transform_name.
3550
c6d36836
RO
35512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3552
3553 * procfs.c (procfs_pre_trace): New function.
3554 (procfs_target::create_inferior): Pass it to fork_inferior.
3555
a7e6196b
RO
35562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3557
3558 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3559 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3560 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3561 sol2-tdep.o, sparc-sol2-tdep.o.
3562 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3563 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3564 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3565 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3566
d412e696
RO
35672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3568
3569 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3570 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3571 Call sol2_init_abi.
3572 Remove calls to set_gdbarch_skip_solib_resolver,
3573 set_gdbarch_core_pid_to_str.
3574 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3575 (i386_sol2_static_transform_name): Remove.
3576 (i386_sol2_init_abi): Call sol2_init_abi.
3577 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3578 set_gdbarch_static_transform_name,
3579 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3580 Use sol2_sigtramp_p.
3581 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3582 (sol2_sigtramp_p): New function.
3583 (sol2_static_transform_name): New function.
3584 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3585 (sol2_init_abi): New function.
3586 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3587 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3588 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3589 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3590 (sparc_sol2_static_transform_name): Remove.
3591 (sparc32_sol2_init_abi): Call sol2_init_abi.
3592 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3593 set_gdbarch_static_transform_name,
3594 set_gdbarch_skip_solib_resolver,
3595 set_gdbarch_core_pid_to_str.
3596 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3597 (sparc_sol2_static_transform_name): Remove
3598 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3599 call sol2_sigtramp_p.
3600 (sparc64_sol2_init_abi): Call sol2_init_abi.
3601 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3602 set_gdbarch_static_transform_name,
3603 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3604
a8654e7d
PW
36052020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3606
3607 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3608 * exec.c (validate_exec_file): If from_tty, set both
3609 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3610 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3611 and from_tty, unconditionally ask a confirmation.
3612
caa7fd04
AB
36132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * target-descriptions.c (tdesc_architecture_name): Protect against
3616 NULL pointer dereference.
3617 (maint_print_xml_tdesc_cmd): New function.
3618 (_initialize_target_descriptions): Register new 'maint print
3619 xml-tdesc' command and give it the filename completer.
3620 * NEWS: Mention new 'maint print xml-tdesc' command.
3621
fbf42f4e
AB
36222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * target-descriptions.c (class tdesc_compatible_info): New class.
3625 (struct target_desc): Change type of compatible vector.
3626 (tdesc_compatible_p): Update for change in type of
3627 target_desc::compatible.
3628 (tdesc_compatible_info_list): New function.
3629 (tdesc_compatible_info_arch_name): New function.
3630 (tdesc_add_compatible): Update for change in type of
3631 target_desc::compatible.
3632 (print_c_tdesc::visit_pre): Likewise.
3633
20821f4e
AB
36342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3635
3636 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3637 whitespace to underscore.
3638 (maint_print_c_tdesc_cmd): Use fake filename for target
3639 descriptions that came from the target.
3640 (_initialize_target_descriptions): Add filename command completion
3641 for 'maint print c-tdesc'.
3642
1fb5ee62
SM
36432020-06-23 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3646 lines.
3647
fc3ecb3e
SM
36482020-06-23 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3651 lines.
3652 (dwarf2_find_location_expression): Likewise.
3653 (call_site_parameter_matches): Likewise.
3654 (dwarf2_compile_expr_to_ax): Likewise.
3655 (disassemble_dwarf_expression): Likewise.
3656 (loclist_describe_location): Likewise.
3657
236ef034
PA
36582020-06-23 Pedro Alves <palves@redhat.com>
3659
3660 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3661 progspace-and-thread.h. Include scoped-mock-context.h instead.
3662 (register_to_value_test): Use scoped_mock_context.
3663 * regcache.c: Include "scoped-mock-context.h".
3664 (cooked_read_test): Don't error out if a target is already pushed.
3665 Use scoped_mock_context. Adjust.
3666 * scoped-mock-context.h: New file.
3667
39e7ecca
AB
36682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3671 initializer.
3672 (ada_language::is_string_type_p): New member function.
3673 * c-lang.c (c_language_data): Delete la_is_string_type_p
3674 initializer.
3675 (cplus_language_data): Likewise.
3676 (asm_language_data): Likewise.
3677 (minimal_language_data): Likewise.
3678 * d-lang.c (d_language_data): Likewise.
3679 * f-lang.c (f_is_string_type_p): Delete function, implementation
3680 moved to f_language::is_string_type_p.
3681 (f_language_data): Delete la_is_string_type_p initializer.
3682 (f_language::is_string_type_p): New member function,
3683 implementation from f_is_string_type_p.
3684 * go-lang.c (go_is_string_type_p): Delete function, implementation
3685 moved to go_language::is_string_type_p.
3686 (go_language_data): Delete la_is_string_type_p initializer.
3687 (go_language::is_string_type_p): New member function,
3688 implementation from go_is_string_type_p.
3689 * language.c (language_defn::is_string_type_p): Define new member
3690 function.
3691 (default_is_string_type_p): Make static, add comment copied from
3692 header file.
3693 (unknown_language_data): Delete la_is_string_type_p initializer.
3694 (unknown_language::is_string_type_p): New member function.
3695 (auto_language_data): Delete la_is_string_type_p initializer.
3696 (auto_language::is_string_type_p): New member function.
3697 * language.h (language_data): Delete la_is_string_type_p field.
3698 (language_defn::is_string_type_p): Declare new function.
3699 (default_is_string_type_p): Delete desclaration, move comment to
3700 definition.
3701 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3702 moved to m2_language::is_string_type_p.
3703 (m2_language_data): Delete la_is_string_type_p initializer.
3704 (m2_language::is_string_type_p): New member function,
3705 implementation from m2_is_string_type_p.
3706 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3707 initializer.
3708 * opencl-lang.c (opencl_language_data): Likewise.
3709 * p-lang.c (pascal_is_string_type_p): Delete function,
3710 implementation moved to pascal_language::is_string_type_p.
3711 (pascal_language_data): Delete la_is_string_type_p initializer.
3712 (pascal_language::is_string_type_p): New member function,
3713 implementation from pascal_is_string_type_p.
3714 * rust-lang.c (rust_is_string_type_p): Delete function,
3715 implementation moved to rust_language::is_string_type_p.
3716 (rust_language_data): Delete la_is_string_type_p initializer.
3717 (rust_language::is_string_type_p): New member function,
3718 implementation from rust_is_string_type_p.
3719 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3720 is_string_type_p.
3721
4ffc13fb
AB
37222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3723
3724 * ada-lang.c (ada_language_data): Delete la_print_typedef
3725 initializer.
3726 (ada_language::print_typedef): New member function.
3727 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3728 (cplus_language_data): Likewise.
3729 (asm_language_data): Likewise.
3730 (minimal_language_data): Likewise.
3731 * d-lang.c (d_language_data): Likewise.
3732 * f-lang.c (f_language_data): Likewise.
3733 (f_language::print_typedef): New member function.
3734 * go-lang.c (go_language_data): Delete la_print_typedef
3735 initializer.
3736 * language.c (language_defn::print_typedef): Define member
3737 function.
3738 (unknown_language_data): Delete la_print_typedef initializer.
3739 (unknown_language::print_typedef): New member function.
3740 (auto_language_data): Delete la_print_typedef initializer.
3741 (auto_language::print_typedef): New member function.
3742 * language.h (language_data): Delete la_print_typedef field.
3743 (language_defn::print_typedef): Declare new member function.
3744 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3745 (default_print_typedef): Delete declaration.
3746 * m2-lang.c (m2_language_data): Delete la_print_typedef
3747 initializer.
3748 (m2_language::print_typedef): New member function.
3749 * objc-lang.c (objc_language_data): Delete la_print_typedef
3750 initializer.
3751 * opencl-lang.c (opencl_language_data): Likewise.
3752 * p-lang.c (pascal_language_data): Likewise.
3753 (pascal_language::print_typedef): New member function.
3754 * rust-lang.c (rust_print_typedef): Delete function,
3755 implementation moved to rust_language::print_typedef.
3756 (rust_language): Delete la_print_typedef initializer.
3757 (rust_language::print_typedef): New member function,
3758 implementation from rust_print_typedef.
3759 * typeprint.c (default_print_typedef): Delete.
3760
d711ee67
AB
37612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3764 (ada_language::printstr): New member function.
3765 * c-lang.c (c_language_data): Delete la_printstr initializer.
3766 (cplus_language_data): Likewise.
3767 (asm_language_data): Likewise.
3768 (minimal_language_data): Likewise.
3769 * d-lang.c (d_language_data): Likewise.
3770 * f-lang.c (f_printstr): Rename to f_language::printstr.
3771 (f_language_data): Delete la_printstr initializer.
3772 (f_language::printstr): New member function, implementation from
3773 f_printstr.
3774 * go-lang.c (go_language_data): Delete la_printstr initializer.
3775 * language.c (language_defn::printstr): Define new member
3776 function.
3777 (unk_lang_printstr): Delete.
3778 (unknown_language_data): Delete la_printstr initializer.
3779 (unknown_language::printstr): New member function.
3780 (auto_language_data): Delete la_printstr initializer.
3781 (auto_language::printstr): New member function.
3782 * language.h (language_data): Delete la_printstr field.
3783 (language_defn::printstr): Declare new member function.
3784 (LA_PRINT_STRING): Update call to printstr.
3785 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3786 (m2_language_data): Delete la_printstr initializer.
3787 (m2_language::printstr): New member function, implementation from
3788 m2_printstr.
3789 * objc-lang.c (objc_language_data): Delete la_printstr
3790 initializer.
3791 * opencl-lang.c (opencl_language_data): Likewise.
3792 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3793 (pascal_language_data): Delete la_printstr initializer.
3794 (pascal_language::printstr): New member function, implementation
3795 from pascal_printstr.
3796 * p-lang.h (pascal_printstr): Delete declaration.
3797 * rust-lang.c (rust_printstr): Update header comment.
3798 (rust_language_data): Delete la_printstr initializer.
3799 (rust_language::printstr): New member function.
3800
52b50f2c
AB
38012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3802
3803 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3804 (ada_language::printchar): New member function.
3805 * c-lang.c (c_language_data): Delete la_printchar initializer.
3806 (cplus_language_data): Likewise.
3807 (asm_language_data): Likewise.
3808 (minimal_language_data): Likewise.
3809 * d-lang.c (d_language_data): Likewise.
3810 * f-lang.c (f_printchar): Rename to f_language::printchar.
3811 (f_language_data): Delete la_printchar initializer.
3812 (f_language::printchar): New member function, implementation from
3813 f_printchar.
3814 * go-lang.c (go_language_data): Delete la_printchar initializer.
3815 * language.c (unk_lang_printchar): Delete.
3816 (language_defn::printchar): Define new member function.
3817 (unknown_language_data): Delete la_printchar initializer.
3818 (unknown_language::printchar): New member function.
3819 (auto_language_data): Delete la_printchar initializer.
3820 (auto_language::printchar): New member function.
3821 * language.h (language_data): Delete la_printchar field.
3822 (language_defn::printchar): Declare new member function.
3823 (LA_PRINT_CHAR): Update call to printchar.
3824 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3825 (m2_language::printchar): New member function.
3826 * objc-lang.c (objc_language_data): Delete la_printchar
3827 initializer.
3828 * opencl-lang.c (opencl_language_data): Likewise.
3829 * p-lang.c (pascal_language_data): Delete la_printchar
3830 initializer.
3831 (pascal_language::printchar): New member function.
3832 * rust-lang.c (rust_printchar): Rename to
3833 rust_language::printchar.
3834 (rust_language_data): Delete la_printchar initializer.
3835 (rust_language::printchar): New member function, implementation
3836 from rust_printchar.
3837
ec8cec5b
AB
38382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3839
3840 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3841 (ada_language_data): Delete la_emitchar initializer.
3842 (ada_language::emitchar): New member function, implementation from
3843 emit_char.
3844 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3845 (cplus_language_data): Likewise.
3846 (asm_language_data): Likewise.
3847 (minimal_language_data): Likewise.
3848 * d-lang.c (d_language_data): Likewise.
3849 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3850 (f_language_data): Delete la_emitchar initializer.
3851 (f_language::emitchar): New member function, implementation from
3852 f_emit_char.
3853 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3854 * language.c (unk_lang_emit_char): Delete.
3855 (language_defn::emitchar): New member function definition.
3856 (unknown_language_data): Delete la_emitchar initializer.
3857 (unknown_language::emitchar): New member function.
3858 (auto_language_data): Delete la_emitchar initializer.
3859 (auto_language::emitchar): New member function.
3860 * language.h (language_data): Delete la_emitchar field.
3861 (language_defn::emitchar): New member field declaration.
3862 (LA_EMIT_CHAR): Update call to emitchar.
3863 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3864 (m2_language_data): Delete la_emitchar initializer.
3865 (m2_language::emitchar): New member function, implementation from
3866 m2_emit_char.
3867 * objc-lang.c (objc_language_data): Delete la_emitchar
3868 initializer.
3869 * opencl-lang.c (opencl_language_data): Likewise.
3870 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3871 (pascal_language_data): Delete la_emitchar initializer.
3872 (pascal_language::emitchar): New member function, implementation
3873 from pascal_emit_char.
3874 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3875 (rust_language_data): Delete la_emitchar initializer.
3876 (rust_language::emitchar): New member function, implementation
3877 from rust_emitchar.
3878
1bf9c363
AB
38792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3880
3881 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3882 (ada_language_data): Delete la_post_parser initializer.
3883 (ada_language::post_parser): New member function.
3884 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3885 (cplus_language_data): Likewise.
3886 (asm_language_data): Likewise.
3887 (minimal_language_data): Likewise.
3888 * d-lang.c (d_language_data): Likewise.
3889 * f-lang.c (f_language_data): Likewise.
3890 * go-lang.c (go_language_data): Likewise.
3891 * language.c (unknown_language_data): Likewise.
3892 (auto_language_data): Likewise.
3893 * language.h (language_data): Delete la_post_parser field.
3894 (language_defn::post_parser): New member function.
3895 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3896 * objc-lang.c (objc_language_data): Likewise.
3897 * opencl-lang.c (opencl_language_data): Likewise.
3898 * p-lang.c (pascal_language_data): Likewise.
3899 * parse.c (parse_exp_in_context): Update call to post_parser.
3900 (null_post_parser): Delete definition.
3901 * parser-defs.h (null_post_parser): Delete declaration.
3902 * rust-lang.c (rust_language_data): Delete la_post_parser
3903 initializer.
3904
87afa652
AB
39052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * ada-lang.c (parse): Rename to ada_language::parser.
3908 (ada_language_data): Delete la_parser initializer.
3909 (ada_language::parser): New member function, implementation from
3910 parse.
3911 * c-lang.c (c_language_data): Delete la_parser initializer.
3912 (cplus_language_data): Likewise.
3913 (asm_language_data): Likewise.
3914 (minimal_language_data): Likewise.
3915 * d-lang.c (d_language_data): Likewise.
3916 (d_language::parser): New member function.
3917 * f-lang.c (f_language_data): Delete la_parser initializer.
3918 (f_language::parser): New member function.
3919 * go-lang.c (go_language_data): Delete la_parser initializer.
3920 (go_language::parser): New member function.
3921 * language.c (unk_lang_parser): Delete.
3922 (language_defn::parser): Define new member function.
3923 (unknown_language_data): Delete la_parser initializer.
3924 (unknown_language::parser): New member function.
3925 (auto_language_data): Delete la_parser initializer.
3926 (auto_language::parser): New member function.
3927 * language.h (language_data): Delete la_parser field.
3928 (language_defn::parser): Declare new member function.
3929 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3930 (m2_language::parser): New member function.
3931 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3932 * opencl-lang.c (opencl_language_data): Likewise.
3933 * p-lang.c (pascal_language_data): Likewise.
3934 (pascal_language::parser): New member function.
3935 * parse.c (parse_exp_in_context): Update call to parser.
3936 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3937 (rust_language::parser): New member function.
3938
37825800
AB
39392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * top.c (print_gdb_configuration): Print --with-python-libdir
3942 configuration value.
3943
5b860c93
PW
39442020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3945
3946 * NEWS: Mention change to the alias command.
3947
cf00cd6f
PW
39482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3949
3950 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3951 (alias_command_completer)
3952 (make_alias_options_def_group): New functions.
3953 (alias_opts, alias_option_defs): New struct and array.
3954 (alias_usage_error): Update usage.
3955 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3956 Use option framework.
3957 (_initialize_cli_cmds): Update alias command help.
3958 Update aliases command help.
3959 (show_user):
3960 Add NULL for new default_args lookup_cmd argument.
3961 (valid_command_p): Rename to validate_aliased_command.
3962 Add NULL for new default_args lookup_cmd argument. Verify that the
3963 aliased_command has no default args.
3964 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3965 (lookup_cmd_1, lookup_cmd): New argument default_args.
3966 (add_alias_cmd):
3967 Add NULL for new default_args lookup_cmd argument.
3968 (print_help_for_command): Show default args under the layout
3969 alias some_alias = some_aliased_cmd some_alias_default_arg.
3970 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3971 xfree default_args in destructor.
3972 * cli/cli-script.c (process_next_line, do_define_command):
3973 Add NULL for new default_args lookup_cmd argument.
3974 * command.h: Declare new default_args argument in lookup_cmd
3975 and lookup_cmd_1.
3976 * completer.c (complete_line_internal_1):
3977 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3978 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3979 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3980 Likewise.
3981 * infcmd.c (_initialize_infcmd): Likewise.
3982 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3983 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3984 * python/py-param.c (add_setshow_generic): Likewise.
3985 * remote.c (_initialize_remote): Likewise.
3986 * top.c (execute_command): Prepend default_args if command has some.
3987 (set_verbose):
3988 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3989 * tracepoint.c (validate_actionline, encode_actions_1):
3990 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3991
bd920864
TBA
39922020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3993
3994 * jit.c (jit_read_descriptor): Use bool as the return type.
3995 (jit_breakpoint_re_set_internal): Use bool as the return type.
3996 Invert the return value logic; return true if the jit breakpoint
3997 has been successfully initialized.
3998 (jit_inferior_init): Update the call to
3999 jit_breakpoint_re_set_internal.
4000
f8098322
PA
40012020-06-22 Pedro Alves <palves@redhat.com>
4002
4003 PR gdb/25939
4004 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4005 Use the current inferior instead. Don't return
4006 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4007 wait again.
4008 * sol-thread.c (sol_thread_target::wait): Don't reference
4009 inferior_ptid.
4010 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4011 (sol_update_thread_list_callback): Use the current inferior's pid
4012 instead of inferior_ptid.
4013
196535a6
RO
40142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4015
4016 * procfs.c: Cleanup many comments.
4017
4018 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4019 (AFTER_WATCHFLAG): Replace by value.
4020
4021 (MAIN_PROC_NAME_FORMAT): Inline ...
4022 (create_procinfo): ... here.
4023
4024 (procfs_debug_inferior): Remove SYS_exec handling.
4025 (syscall_is_exec): Likewise.
4026 (procfs_set_exec_trap): Likewise.
4027
4028 (syscall_is_lwp_exit): Inline in callers.
4029 (syscall_is_exit): Likewise.
4030 (syscall_is_exec): Likewise.
4031 (syscall_is_lwp_create): Likewise.
4032
4033 (invalidate_cache): Remove #if 0 code.
4034
4035 (make_signal_thread_runnable): Remove.
4036 (procfs_target::resume): Remove #if 0 code.
4037
cf6f3e86
RO
40382020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4039
4040 PR gdb/25939
4041 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4042 call ...
4043 (procfs_target::create_inferior): ... here.
4044
48e9cc84
PW
40452020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4046
4047 * exec.c (validate_exec_file): Ensure the build-id is up to
4048 date by calling reopen_exec_file (that checks file timestamp
4049 to decide to re-read the file).
4050
3922b302
PA
40512020-06-18 Pedro Alves <palves@redhat.com>
4052
4053 PR gdb/25412
4054 * gdbthread.h (delete_thread, delete_thread_silent)
4055 (find_thread_ptid): Update comments.
4056 * thread.c (current_thread_): New global.
4057 (is_current_thread): Move higher, and reimplement.
4058 (inferior_thread): Reimplement.
4059 (set_thread_exited): Use bool. Add assertions.
4060 (add_thread_silent): Simplify thread-reuse handling by always
4061 calling delete_thread.
4062 (delete_thread): Remove intro comment.
4063 (find_thread_ptid): Skip exited threads.
4064 (switch_to_thread_no_regs): Write to current_thread_.
4065 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4066 INFERIOR_PTID. Clear current_thread_.
4067
6dbdab44
PA
40682020-06-18 Pedro Alves <palves@redhat.com>
4069
4070 * aix-thread.c (pd_update): Use switch_to_thread.
4071
2da4b788
PA
40722020-06-18 Pedro Alves <palves@redhat.com>
4073
4074 * ravenscar-thread.c (ravenscar_thread_target): Update.
4075 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4076 (ravenscar_thread_target::add_active_thread): ... this. Don't
4077 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4078 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4079
50838d1b
PA
40802020-06-18 Pedro Alves <palves@redhat.com>
4081
4082 * nat/windows-nat.c (current_windows_thread): Remove.
4083 * nat/windows-nat.h (current_windows_thread): Remove.
4084 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4085 Adjust.
4086 (display_selectors): Adjust to fetch the current
4087 windows_thread_info based on inferior_ptid.
4088 (fake_create_process): No longer write to current_windows_thread.
4089 (windows_nat_target::get_windows_debug_event):
4090 Don't set inferior_ptid or current_windows_thread.
4091 (windows_nat_target::wait): Adjust to not rely on
4092 current_windows_thread.
4093 (do_initial_windows_stuff): Now a method of windows_nat_target.
4094 Switch to the last_ptid thread.
4095 (windows_nat_target::attach): Adjust.
4096 (windows_nat_target::detach): Use switch_to_no_thread instead of
4097 writing to inferior_ptid directly.
4098 (windows_nat_target::create_inferior): Adjust.
4099
31ce04e9
PA
41002020-06-18 Pedro Alves <palves@redhat.com>
4101
4102 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4103
1ee1a363
PA
41042020-06-18 Pedro Alves <palves@redhat.com>
4105
4106 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4107 after creating it, instead of writing to inferior_ptid. Don't
4108 write to inferior_ptid.
4109
6d350754
PA
41102020-06-18 Pedro Alves <palves@redhat.com>
4111
4112 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4113
5d971d48
PA
41142020-06-18 Pedro Alves <palves@redhat.com>
4115
4116 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4117 it, instead of writing to inferior_ptid.
4118
86e57d1b
PA
41192020-06-18 Pedro Alves <palves@redhat.com>
4120
4121 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4122 to inferior_ptid.
4123
f2e1c129
PA
41242020-06-18 Pedro Alves <palves@redhat.com>
4125
4126 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4127 instead of writing to inferior_ptid directly.
4128
60db1b85
PA
41292020-06-18 Pedro Alves <palves@redhat.com>
4130
4131 * corelow.c (core_target::close): Use switch_to_no_thread instead
4132 of writing to inferior_ptid directly.
4133 (add_to_thread_list, core_target_open): Use switch_to_thread
4134 instead of writing to inferior_ptid directly.
4135
fe7d6a8d
PA
41362020-06-18 Pedro Alves <palves@redhat.com>
4137
4138 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4139 inferior_ptid.
4140 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4141 inferior_ptid.
4142 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4143 inferior_ptid directly.
4144 (darwin_nat_target::init_thread_list): Switch to thread, instead
4145 of writing to inferior_ptid.
4146 (darwin_nat_target::attach): Don't write to inferior_ptid.
4147 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4148
975f8708
PA
41492020-06-18 Pedro Alves <palves@redhat.com>
4150
4151 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4152 thread.
4153 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4154 Instead use switch_to_thread.
4155 (gnu_nat_target::detach): Use switch_to_no_thread
4156 instead of writing to inferior_ptid directly. Used passed-in
4157 inferior instead of looking up the inferior by pid.
4158
1a204730
PA
41592020-06-18 Pedro Alves <palves@redhat.com>
4160
4161 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4162 inferior_ptid.
4163
ebe84f23
PA
41642020-06-18 Pedro Alves <palves@redhat.com>
4165
4166 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4167 inferior_ptid.
4168 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4169 thread.
4170 (nto_procfs_target::detach): Avoid referencing
4171 inferior_ptid. Use switch_to_no_thread instead of writing to
4172 inferior_ptid directly.
4173 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4174 instead of writing to inferior_ptid directly.
4175 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4176 to thread.
4177
191f02e5
PA
41782020-06-18 Pedro Alves <palves@redhat.com>
4179
4180 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4181 after creating it, instead of writing to inferior_ptid.
4182 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4183 to inferior_ptid directly.
4184 (gdbsim_target::wait): Don't write to inferior_ptid.
4185
0ac55310
PA
41862020-06-18 Pedro Alves <palves@redhat.com>
4187
4188 * remote.c (remote_target::remote_notice_new_inferior): Use
4189 switch_to_thread instead of writing to inferior_ptid directly.
4190 (remote_target::add_current_inferior_and_thread): Use
4191 switch_to_no_thread instead of writing to inferior_ptid directly.
4192 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4193 and switch_to_thread instead of using set_current_inferior or
4194 writing to inferior_ptid directly.
4195
5233f39b
PA
41962020-06-18 Pedro Alves <palves@redhat.com>
4197
4198 * tracectf.c (ctf_target_open): Switch to added thread instead of
4199 writing to inferior_ptid directly.
4200 (ctf_target::close): Use switch_to_no_thread instead of writing to
4201 inferior_ptid directly.
4202
087e161b
PA
42032020-06-18 Pedro Alves <palves@redhat.com>
4204
4205 * tracefile-tfile.c (tfile_target_open): Don't write to
4206 inferior_ptid directly, instead switch to added thread.
4207 (tfile_target::close): Use switch_to_no_thread instead of writing
4208 to inferior_ptid directly.
4209
7fb43e53
PA
42102020-06-18 Pedro Alves <palves@redhat.com>
4211
4212 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4213 (procfs_target::detach): Use switch_to_no_thread
4214 instead of writing to inferior_ptid directly.
4215 (do_attach): Change return type to void. Switch to the added
4216 thread.
4217 (procfs_target::create_inferior): Switch to the added thread.
4218 (procfs_do_thread_registers): Don't write to inferior_ptid.
4219
18493a00
PA
42202020-06-18 Pedro Alves <palves@redhat.com>
4221
4222 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4223 of writing to inferior_ptid.
4224 (scoped_restore_exited_inferior): Delete.
4225 (handle_vfork_child_exec_or_exit): Simplify using
4226 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4227 instead of writing to inferior_ptid.
4228 (THREAD_STOPPED_BY): Delete.
4229 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4230 (thread_stopped_by_hw_breakpoint): Delete.
4231 (save_waitstatus): Use
4232 scoped_restore_current_thread+switch_to_thread, and call
4233 target_stopped_by_watchpoint instead of
4234 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4235 instead of thread_stopped_by_sw_breakpoint, and
4236 target_stopped_by_hw_breakpoint instead of
4237 thread_stopped_by_hw_breakpoint.
4238 (handle_inferior_event)
4239 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4240 inferior_ptid directly, nor
4241 set_current_inferior/set_current_program_space. Use
4242 switch_to_thread / switch_to_inferior_no_thread instead.
4243
a0776b13
PA
42442020-06-18 Pedro Alves <palves@redhat.com>
4245
4246 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4247 instead of writing to inferior_ptid.
4248
6155c136
PA
42492020-06-18 Pedro Alves <palves@redhat.com>
4250
4251 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4252 added thread.
4253 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4254 to the added thread.
4255 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4256 instead of writing to inferior_ptid.
4257
c5316fc6
PA
42582020-06-18 Pedro Alves <palves@redhat.com>
4259
4260 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4261 (register_to_value_test): Mock a program_space too. Heap-allocate
4262 the address space. Don't write to inferior_ptid. Use
4263 switch_to_thread instead.
4264
8df01799
PA
42652020-06-18 Pedro Alves <palves@redhat.com>
4266
4267 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4268 Delete.
4269 (find_signalled_thread()): New, factored out from
4270 linux_make_corefile_notes and adjusted to handle exited threads.
4271 (linux_make_corefile_notes): Adjust to use the new
4272 find_signalled_thread.
4273
41792d68
PA
42742020-06-18 Pedro Alves <palves@redhat.com>
4275
4276 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4277 of saving/restoring inferior_ptid.
4278
612f258a
TT
42792020-06-17 Tom Tromey <tom@tromey.com>
4280
4281 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4282 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4283 declare.
4284 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4285
efb763a5
SM
42862020-06-15 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4289 of partial symtabs.
4290
2951f6c0
SM
42912020-06-17 Simon Marchi <simon.marchi@efficios.com>
4292
4293 * regformats/reg-arm.dat: Remove.
4294 * regformats/reg-bfin.dat: Remove.
4295 * regformats/reg-cris.dat: Remove.
4296 * regformats/reg-crisv32.dat: Remove.
4297 * regformats/reg-m32r.dat: Remove.
4298 * regformats/reg-tilegx.dat: Remove.
4299 * regformats/reg-tilegx32.dat: Remove.
4300
7d458ea5
SM
43012020-06-17 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * features/Makefile (WHICH): Remove arm files.
4304 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4305 * regformats/arm/arm-with-neon.dat: Remove.
4306 * regformats/arm/arm-with-vfpv2.dat: Remove.
4307 * regformats/arm/arm-with-vfpv3.dat: Remove.
4308
3af96c0d
SM
43092020-06-17 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * features/Makefile (XMLTOC): Remove rx.xml.
4312
b25e22fd
PA
43132020-06-17 Pedro Alves <palves@redhat.com>
4314
4315 * gdbthread.h (thread_control_state) <trap_expected> Update
4316 comments.
4317
a78a19b1
AB
43182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4319
4320 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4321 ada_language::lookup_symbol_nonlocal.
4322 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4323 (ada_language::lookup_symbol_nonlocal): New member function,
4324 implementation from ada_lookup_symbol_nonlocal.
4325 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4326 initializer.
4327 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4328 initializer.
4329 (cplus_language::lookup_symbol_nonlocal): New member function.
4330 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4331 (minimal_language_data) Likewise.
4332 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4333 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4334 initializer.
4335 (d_language::lookup_symbol_nonlocal): New member function.
4336 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4337 initializer.
4338 (f_language::lookup_symbol_nonlocal): New member function.
4339 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4340 initializer.
4341 * language.c (unknown_language_data): Likewise.
4342 (auto_language_data): Likewise.
4343 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4344 field.
4345 (language_defn::lookup_symbol_nonlocal): New member function.
4346 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4347 initializer.
4348 * objc-lang.c (objc_language_data): Likewise.
4349 * opencl-lang.c (opencl_language_data): Likewise.
4350 * p-lang.c (pascal_language_data): Likewise.
4351 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4352 rust_language::lookup_symbol_nonlocal.
4353 (rust_language_data): Delete la_lookup_symbol_nonlocal
4354 initializer.
4355 (rust_language::lookup_symbol_nonlocal): New member function,
4356 implementation from rust_lookup_symbol_nonlocal.
4357 * symtab.c (lookup_symbol_aux): Update call to
4358 lookup_symbol_nonlocal.
4359 (basic_lookup_symbol_nonlocal): Rename to...
4360 (language_defn::lookup_symbol_nonlocal): ...this, and update
4361 header comment. Remove language_defn parameter, and replace with
4362 uses of `this'.
4363 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4364
ebe2334e
AB
43652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4368 initializer.
4369 (ada_language::value_print_inner): New member function.
4370 * c-lang.c (c_language_data): Delete la_value_print_inner
4371 initializer.
4372 (cplus_language_data): Likewise.
4373 (asm_language_data): Likewise.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 (d_language::value_print_inner): New member function.
4377 * f-lang.c (f_language_data): Delete la_value_print_inner
4378 initializer.
4379 (f_language::value_print_inner): New member function.
4380 * f-lang.h (f_value_print_innner): Rename to...
4381 (f_value_print_inner): ...this (note spelling of 'inner').
4382 * f-valprint.c (f_value_print_innner): Rename to...
4383 (f_value_print_inner): ...this (note spelling of 'inner').
4384 * go-lang.c (go_language_data): Delete la_value_print_inner
4385 initializer.
4386 (go_language::value_print_inner): New member function.
4387 * language.c (language_defn::value_print_inner): Define new member
4388 function.
4389 (unk_lang_value_print_inner): Delete.
4390 (unknown_language_data): Delete la_value_print_inner initializer.
4391 (unknown_language::value_print_inner): New member function.
4392 (auto_language_data): Delete la_value_print_inner initializer.
4393 (auto_language::value_print_inner): New member function.
4394 * language.h (language_data): Delete la_value_print_inner field.
4395 (language_defn::value_print_inner): Delcare new member function.
4396 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4397 initializer.
4398 (m2_language::value_print_inner): New member function.
4399 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4400 initializer.
4401 * opencl-lang.c (opencl_language_data): Likewise.
4402 * p-lang.c (pascal_language_data): Likewise.
4403 (pascal_language::value_print_inner): New member function.
4404 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4405 initializer.
4406 (rust_language::value_print_inner): New member function.
4407 * valprint.c (do_val_print): Update call to value_print_inner.
4408
a1d1fa3e
AB
44092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * ada-lang.c (ada_language_data): Delete la_value_print
4412 initializer.
4413 (ada_language::value_print): New member function.
4414 * c-lang.c (c_language_data): Delete la_value_print initializer.
4415 (cplus_language_data): Likewise.
4416 (asm_language_data): Likewise.
4417 (minimal_language_data): Likewise.
4418 * d-lang.c (d_language_data): Likewise.
4419 * f-lang.c (f_language_data): Likewise.
4420 * go-lang.c (go_language_data): Likewise.
4421 * language.c (unk_lang_value_print): Delete.
4422 (language_defn::value_print): Define new member function.
4423 (unknown_language_data): Delete la_value_print initializer.
4424 (unknown_language::value_print): New member function.
4425 (auto_language_data): Delete la_value_print initializer.
4426 (auto_language::value_print): New member function.
4427 * language.h (language_data): Delete la_value_print field.
4428 (language_defn::value_print): Declare new member function.
4429 (LA_VALUE_PRINT): Update call to value_print.
4430 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4431 * objc-lang.c (objc_language_data): Likewise.
4432 * opencl-lang.c (opencl_language_data): Likewise.
4433 * p-lang.c (pascal_language_data): Likewise.
4434 (pascal_language::value_print): New member function.
4435 * rust-lang.c (rust_language_data): Delete la_value_print
4436 initializer.
4437
f16a9f57
AB
44382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * ada-lang.c (ada_watch_location_expression): Rename to
4441 ada_language::watch_location_expression.
4442 (ada_language_data): Delete la_watch_location_expression
4443 initializer.
4444 (ada_language::watch_location_expression): New member function,
4445 implementation from ada_watch_location_expression.
4446 * breakpoint.c (watch_command_1): Update call to
4447 watch_location_expression.
4448 * c-lang.c (c_watch_location_expression): Rename to
4449 language_defn::watch_location_expression.
4450 (c_language_data): Delete la_watch_location_expression
4451 initializer.
4452 (cplus_language_data): Likewise.
4453 (asm_language_data): Likewise.
4454 (minimal_language_data): Likewise.
4455 * c-lang.h (c_watch_location_expression): Delete declaration.
4456 * d-lang.c (d_language_data): Delete la_watch_location_expression
4457 initializer.
4458 * f-lang.c (f_language_data): Likewise.
4459 * go-lang.c (go_language_data): Likewise.
4460 * language.c (language_defn::watch_location_expression): Member
4461 function implementation from c_watch_location_expression.
4462 (unknown_language_data): Delete la_watch_location_expression
4463 initializer.
4464 (auto_language_data): Likewise.
4465 * language.h (language_data): Delete la_watch_location_expression
4466 field.
4467 (language_defn::watch_location_expression): Declare new member
4468 function.
4469 * m2-lang.c (m2_language_data): Delete
4470 la_watch_location_expression initializer.
4471 * objc-lang.c (objc_language_data): Likewise.
4472 * opencl-lang.c (opencl_language_data): Likewise.
4473 * p-lang.c (pascal_language_data): Likewise.
4474 * rust-lang.c (rust_watch_location_expression): Rename to
4475 rust_language::watch_location_expression.
4476 (rust_language_data): Delete la_watch_location_expression
4477 initializer.
4478 (rust_language::watch_location_expression): New member function,
4479 implementation from rust_watch_location_expression.
4480
7e56227d
AB
44812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4484 ada_language::collect_symbol_completion_matches.
4485 (ada_language_data): Delete la_collect_symbol_completion_matches
4486 initializer.
4487 (ada_language::collect_symbol_completion_matches): New member
4488 function, implementation from
4489 ada_collect_symbol_completion_matches.
4490 * c-lang.c (c_language_data): Delete
4491 la_collect_symbol_completion_matches initializer.
4492 (cplus_language_data): Likewise.
4493 (asm_language_data): Likewise.
4494 (minimal_language_data): Likewise.
4495 * d-lang.c (d_language_data): Likewise.
4496 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4497 f_language::collect_symbol_completion_matches.
4498 (f_language_data): Delete la_collect_symbol_completion_matches
4499 initializer.
4500 (f_language::collect_symbol_completion_matches) New member
4501 function, implementation from f_collect_symbol_completion_matches.
4502 * go-lang.c (go_language_data): Delete
4503 la_collect_symbol_completion_matches initializer.
4504 * language.c (unknown_language_data): Likewise.
4505 (auto_language_data): Likewise.
4506 * language.h (language_data): Delete
4507 la_collect_symbol_completion_matches field.
4508 (language_defn::collect_symbol_completion_matches): New member
4509 function.
4510 * m2-lang.c (m2_language_data): Delete
4511 la_collect_symbol_completion_matches initializer.
4512 * objc-lang.c (objc_language_data): Likewise.
4513 * opencl-lang.c (opencl_language_data): Likewise.
4514 * p-lang.c (pascal_language_data): Likewise.
4515 * rust-lang.c (rust_language_data): Likewise.
4516 * symtab.c (default_collect_symbol_completion_matches): Delete.
4517 (collect_symbol_completion_matches): Update call to
4518 collect_symbol_completion_matches.
4519 (collect_symbol_completion_matches_type): Likewise.
4520 * symtab.h (default_collect_symbol_completion_matches): Delete
4521 declaration.
4522
53fc67f8
AB
45232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4526 (ada_language_data): Delete la_word_break_characters initializer.
4527 (ada_language::word_break_characters): New member function.
4528 * c-lang.c (c_language_data): Delete la_word_break_characters
4529 initializer.
4530 (cplus_language_data): Likewise.
4531 (asm_language_data): Likewise.
4532 (minimal_language_data): Likewise.
4533 * completer.c: Update global comment.
4534 (advance_to_expression_complete_word_point): Update call to
4535 word_break_characters.
4536 (complete_files_symbols): Likewise.
4537 (complete_line_internal_1): Likewise.
4538 (default_completer_handle_brkchars): Likewise.
4539 (skip_quoted_chars): Likewise.
4540 * d-lang.c (d_language_data): Delete la_word_break_characters
4541 initializer.
4542 * f-lang.c (f_word_break_characters): Delete.
4543 (f_language_data): Delete la_word_break_characters initializer.
4544 (f_language::word_break_characters): New member function.
4545 * go-lang.c (go_language_data): Delete la_word_break_characters
4546 initializer.
4547 * language.c (unknown_language_data): Likewise.
4548 (auto_language_data): Likewise.
4549 * language.h (default_word_break_characters): Move declaration to
4550 earlier in the file.
4551 (language_data): Delete la_word_break_characters field.
4552 (language_defn::word_break_characters): New member function.
4553 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4554 initializer.
4555 * objc-lang.c (objc_language_data): Likewise.
4556 * opencl-lang.c (opencl_language_data): Likewise.
4557 * p-lang.c (pascal_language_data): Likewise.
4558 * rust-lang.c (rust_language_data): Likewise.
4559
c9debfb9
AB
45602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4563 (ada_language_data): Delete la_get_symbol_name_matcher
4564 initializer.
4565 (language_defn::get_symbol_name_matcher_inner): New member
4566 function.
4567 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4568 initializer.
4569 (cplus_language_data): Likewise.
4570 (cplus_language::get_symbol_name_matcher_inner): New member
4571 function.
4572 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4573 (minimal_language_data): Likewise.
4574 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4575 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4576 initializer.
4577 * dictionary.c (iter_match_first_hashed): Update call to
4578 get_symbol_name_matcher.
4579 (iter_match_next_hashed): Likewise.
4580 (iter_match_next_linear): Likewise.
4581 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4582 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4583 initializer.
4584 (f_language::get_symbol_name_matcher_inner): New member function.
4585 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4586 initializer.
4587 * language.c (default_symbol_name_matcher): Update header comment,
4588 make static.
4589 (language_defn::get_symbol_name_matcher): New definition.
4590 (language_defn::get_symbol_name_matcher_inner): Likewise.
4591 (get_symbol_name_matcher): Delete.
4592 (unknown_language_data): Delete la_get_symbol_name_matcher
4593 initializer.
4594 (auto_language_data): Likewise.
4595 * language.h (language_data): Delete la_get_symbol_name_matcher
4596 field.
4597 (language_defn::get_symbol_name_matcher): New member function.
4598 (language_defn::get_symbol_name_matcher_inner): Likewise.
4599 (default_symbol_name_matcher): Delete declaration.
4600 * linespec.c (find_methods): Update call to
4601 get_symbol_name_matcher.
4602 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4603 initializer.
4604 * minsyms.c (lookup_minimal_symbol): Update call to
4605 get_symbol_name_matcher.
4606 (iterate_over_minimal_symbols): Likewise.
4607 * objc-lang.c (objc_language_data): Delete
4608 la_get_symbol_name_matcher initializer.
4609 * opencl-lang.c (opencl_language_data): Likewise.
4610 * p-lang.c (pascal_language_data): Likewise.
4611 * psymtab.c (psymbol_name_matches): Update call to
4612 get_symbol_name_matcher.
4613 * rust-lang.c (rust_language_data): Delete
4614 la_get_symbol_name_matcher initializer.
4615 * symtab.c (symbol_matches_search_name): Update call to
4616 get_symbol_name_matcher.
4617 (compare_symbol_name): Likewise.
4618
9a49ad8c
AB
46192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4620
4621 * ada-lang.c (ada_language_data): Delete la_compute_program
4622 initializer.
4623 * c-lang.c (c_language_data): Likewise.
4624 (c_language::compute_program): New member function.
4625 (cplus_language_data): Delete la_compute_program initializer.
4626 (cplus_language::compute_program): New member function.
4627 (asm_language_data): Delete la_compute_program initializer.
4628 (minimal_language_data): Likewise.
4629 * c-lang.h (c_compute_program): Update comment.
4630 (cplus_compute_program): Likewise.
4631 * compile/compile-c-support.c (c_compute_program): Likewise.
4632 (cplus_compute_program): Likewise.
4633 * compile/compile.c (compile_to_object): Update call to
4634 la_compute_program.
4635 * d-lang.c (d_language_data): Delete la_compute_program
4636 initializer.
4637 * f-lang.c (f_language_data): Likewise.
4638 * go-lang.c (go_language_data): Likewise.
4639 * language.c (unknown_language_data): Likewise.
4640 (auto_language_data): Likewise.
4641 * language.h (language_data): Delete la_compute_program field.
4642 (language_defn::compute_program): New member function.
4643 * m2-lang.c (m2_language_data): Delete la_compute_program
4644 initializer.
4645 * objc-lang.c (objc_language_data): Likewise.
4646 * opencl-lang.c (opencl_language_data): Likewise.
4647 * p-lang.c (pascal_language_data): Likewise.
4648 * rust-lang.c (rust_language_data): Likewise.
4649
eff93b4d
AB
46502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * ada-lang.c (ada_language_data) Delete
4653 la_class_name_from_physname initializer.
4654 * c-lang.c (c_language_data): Likewise.
4655 (cplus_language_data): Likewise.
4656 (cplus_language::class_name_from_physname): New member function.
4657 (asm_language_data): Delete la_class_name_from_physname
4658 initializer.
4659 (minimal_language_data): Likewise.
4660 * d-lang.c (d_language_data): Likewise.
4661 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4662 method on language_defn class.
4663 (guess_full_die_structure_name): Likewise.
4664 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4665 initializer.
4666 * go-lang.c (go_language_data): Likewise.
4667 * language.c (language_class_name_from_physname): Delete.
4668 (unk_lang_class_name): Delete.
4669 (unknown_language_data): Delete la_class_name_from_physname
4670 initializer.
4671 (auto_language_data): Likewise.
4672 * language.h (language_data): Delete la_class_name_from_physname
4673 field.
4674 (language_defn::class_name_from_physname): New function.
4675 (language_class_name_from_physname): Delete declaration.
4676 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4677 initializer.
4678 * objc-lang.c (objc_language_data): Likewise.
4679 * opencl-lang.c (opencl_language_data): Likewise.
4680 * p-lang.c (pascal_language_data): Likewise.
4681 * rust-lang.c (rust_language_data): Likewise.
4682
de543742
TT
46832020-06-16 Tom Tromey <tom@tromey.com>
4684
4685 * tui/tui-data.h (STATUS_NAME): New macro.
4686 * tui/tui-layout.c (tui_remove_some_windows)
4687 (initialize_known_windows, tui_register_window)
4688 (tui_layout_split::remove_windows, initialize_layouts)
4689 (tui_new_layout_command): Don't use hard-coded window names.
4690
a350efd4
TT
46912020-06-16 Tom Tromey <tom@tromey.com>
4692
4693 PR tui/25348:
4694 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4695 tui_initialize_readline. Only run once. Call rl_initialize.
4696 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4697 tui_initialize_readline.
4698 * tui/tui-io.c (tui_setup_io): Call
4699 tui_ensure_readline_initialized.
4700 * tui/tui-interp.c (tui_interp::init): Update.
4701
39ec0490
TT
47022020-06-16 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4705 Also preserve the status window.
4706
d2d1ea20
TT
47072020-06-16 Tom Tromey <tom@tromey.com>
4708
4709 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4710 where m_window==nullptr.
4711
66920317
TT
47122020-06-15 Tom Tromey <tromey@adacore.com>
4713
4714 * windows-nat.c (windows_nat::handle_output_debug_string):
4715 Update.
4716 (windows_nat::handle_ms_vc_exception): Update.
4717 * target.h (target_read_string): Change API.
4718 * target.c (target_read_string): Change API.
4719 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4720 Update.
4721 * solib-frv.c (frv_current_sos): Update.
4722 * solib-dsbt.c (dsbt_current_sos): Update.
4723 * solib-darwin.c (darwin_current_sos): Update.
4724 * linux-thread-db.c (inferior_has_bug): Update.
4725 * expprint.c (print_subexp_standard): Update.
4726 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4727 (ada_exception_message_1): Update.
4728
a5d871dd
TT
47292020-06-15 Tom Tromey <tromey@adacore.com>
4730
4731 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4732
670e35fa
TT
47332020-06-15 Tom Tromey <tromey@adacore.com>
4734
4735 * valprint.c (read_string): Update comment.
4736 * target.c (MIN): Remove.
4737 (target_read_string): Rewrite.
4738
f5272a3b
TT
47392020-06-15 Tom Tromey <tromey@adacore.com>
4740
4741 * corefile.c (read_memory_string): Remove.
4742 * ada-valprint.c (ada_value_print_ptr): Update.
4743 * ada-lang.h (ada_tag_name): Change return type.
4744 * ada-lang.c (type_from_tag): Update.
4745 (ada_tag_name_from_tsd): Change return type. Use
4746 target_read_string.
4747 (ada_tag_name): Likewise.
4748 * gdbcore.h (read_memory_string): Don't declare.
4749
2c074f49
HD
47502020-06-14 Hannes Domani <ssbssa@yahoo.de>
4751
4752 * symtab.c (rbreak_command): Ignore Windows drive colon.
4753
6a17d503
SM
47542020-06-12 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * NEWS: Mention removed GDBserver host support.
4757
453c733f
NC
47582020-06-12 Nelson Chu <nelson.chu@sifive.com>
4759
4760 * features/riscv/rebuild-csr-xml.sh: Updated.
4761
2b4e6a3f
TT
47622020-06-11 Tom Tromey <tom@tromey.com>
4763
4764 PR gdb/18318:
4765 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4766
4412332f
JG
47672020-06-09 Jonny Grant <jg@jguk.org>
47682020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4769
4770 * main.c (captured_main_1): Don't print new line after help.
4771 (print_gdb_help): add mailing list and IRC channel information
4772 to --help. Add new lines between items in the footer. Remove
4773 quotes around bug url.
4774
2f33032a
KS
47752020-06-11 Keith Seitz <keiths@redhat.com>
4776
4777 PR gdb/21356
4778 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4779 Resolve typedefs for type length calculations.
4780
7ab96794
TV
47812020-06-10 Tom de Vries <tdevries@suse.de>
4782
4783 PR ada/24713
4784 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4785 (write_psymbols): Enable .gdb_index for ada.
4786 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4787 ada.
4788
e5f3ece2
TV
47892020-06-10 Tom de Vries <tdevries@suse.de>
4790
4791 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4792 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4793 namei" instead of "const char *name" argument.
4794 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4795 dw2_symtab_iter_init.
4796
940da03e
SM
47972020-06-08 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4800 to use type::field and field::type instead.
4801
b6cdac4b
SM
48022020-06-08 Simon Marchi <simon.marchi@efficios.com>
4803
4804 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4805 to use field::type instead.
4806
5d14b6e5
SM
48072020-06-08 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * gdbtypes.h (struct field) <type, set_type>: New methods.
4810 Rename `type` field to...
4811 <m_type>: ... this. Change references throughout to use type or
4812 set_type methods.
4813 (FIELD_TYPE): Use field::type. Change call sites that modify
4814 the field's type to use field::set_type instead.
4815
3d967001
SM
48162020-06-08 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4819 to use type::index_type instead.
4820
262abc0d
SM
48212020-06-08 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4824 methods.
4825 (TYPE_INDEX_TYPE): Use type::index_type.
4826 * gdbtypes.c (create_array_type_with_stride): Likewise.
4827
82836c92
TT
48282020-06-07 Tom Tromey <tom@tromey.com>
4829
4830 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4831 parameter.
4832 (generic_value_print): Update.
4833
940dace9
AB
48342020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4835
4836 Revert commit 982a38f60b0.
4837 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4838
982a38f6
AB
48392020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4842 avoid use after free.
4843
82f06518
TV
48442020-06-05 Tom de Vries <tdevries@suse.de>
4845
4846 * NEWS: Fix typos.
4847
f8c41851
SM
48482020-06-04 Simon Marchi <simon.marchi@efficios.com>
4849
4850 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4851 the per_bfd object.
4852 (dwarf2_read_debug_names): Likewise.
4853 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4854 object when re-using a per_bfd object with an index.
4855
f9b5d5ea
TV
48562020-06-03 Tom de Vries <tdevries@suse.de>
4857
4858 PR symtab/26046
4859 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4860 children for C++.
4861 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4862 DW_TAG_subprogram.
4863
f6eee2d0
AB
48642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * ada-lang.c (ada_language_data): Delete skip_trampoline
4867 initializer.
4868 * c-lang.c (c_language_data): Likewise.
4869 (cplus_language_data): Likewise.
4870 (cplus_language::skip_trampoline): New member function.
4871 (asm_language_data): Delete skip_trampoline initializer.
4872 (minimal_language_data): Likewise.
4873 * d-lang.c (d_language_data): Likewise.
4874 * f-lang.c (f_language_data): Likewise.
4875 * go-lang.c (go_language_data): Likewise.
4876 * language.c (unk_lang_trampoline): Delete function.
4877 (skip_language_trampoline): Update.
4878 (unknown_language_data): Delete skip_trampoline initializer.
4879 (auto_language_data): Likewise.
4880 * language.h (language_data): Delete skip_trampoline field.
4881 (language_defn::skip_trampoline): New function.
4882 * m2-lang.c (m2_language_data): Delete skip_trampoline
4883 initializer.
4884 * objc-lang.c (objc_skip_trampoline): Delete function, move
4885 implementation to objc_language::skip_trampoline.
4886 (objc_language_data): Delete skip_trampoline initializer.
4887 (objc_language::skip_trampoline): New member function with
4888 implementation from objc_skip_trampoline.
4889 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4890 initializer.
4891 * p-lang.c (pascal_language_data): Likewise.
4892 * rust-lang.c (rust_language_data): Likewise.
4893
0a50df5d
AB
48942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4895
4896 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4897 (ada_language::demangle): New member function.
4898 * c-lang.c (c_language_data): Delete la_demangle initializer.
4899 (cplus_language_data): Delete la_demangle initializer.
4900 (cplus_language::demangle): New member function.
4901 (asm_language_data): Delete la_demangle initializer.
4902 (minimal_language_data): Delete la_demangle initializer.
4903 * d-lang.c (d_language_data): Delete la_demangle initializer.
4904 (d_language::demangle): New member function.
4905 * f-lang.c (f_language_data): Delete la_demangle initializer.
4906 (f_language::demangle): New member function.
4907 * go-lang.c (go_language_data): Delete la_demangle initializer.
4908 (go_language::demangle): New member function.
4909 * language.c (language_demangle): Update.
4910 (unk_lang_demangle): Delete.
4911 (unknown_language_data): Delete la_demangle initializer.
4912 (unknown_language::demangle): New member function.
4913 (auto_language_data): Delete la_demangle initializer.
4914 (auto_language::demangle): New member function.
4915 * language.h (language_data): Delete la_demangle field.
4916 (language_defn::demangle): New function.
4917 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4918 * objc-lang.c (objc_language_data): Delete la_demangle
4919 initializer.
4920 (objc_language::demangle): New member function.
4921 * opencl-lang.c (opencl_language_data): Delete la_demangle
4922 initializer.
4923 * p-lang.c (pascal_language_data): Likewise.
4924 * rust-lang.c (rust_language_data): Likewise.
4925 (rust_language::demangle): New member function.
4926
fbfb0a46
AB
49272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * ada-lang.c (ada_language_data): Delete la_print_type
4930 initializer.
4931 (ada_language::print_type): New member function.
4932 * c-lang.c (c_language_data): Delete la_print_type initializer.
4933 (c_language::print_type): New member function.
4934 (cplus_language_data): Delete la_print_type initializer.
4935 (cplus_language::print_type): New member function.
4936 (asm_language_data): Delete la_print_type initializer.
4937 (asm_language::print_type): New member function.
4938 (minimal_language_data): Delete la_print_type initializer.
4939 (minimal_language::print_type): New member function.
4940 * d-lang.c (d_language_data): Delete la_print_type initializer.
4941 (d_language::print_type): New member function.
4942 * f-lang.c (f_language_data): Delete la_print_type initializer.
4943 (f_language::print_type): New member function.
4944 * go-lang.c (go_language_data): Delete la_print_type initializer.
4945 (go_language::print_type): New member function.
4946 * language.c (unk_lang_print_type): Delete.
4947 (unknown_language_data): Delete la_print_type initializer.
4948 (unknown_language::print_type): New member function.
4949 (auto_language_data): Delete la_print_type initializer.
4950 (auto_language::print_type): New member function.
4951 * language.h (language_data): Delete la_print_type field.
4952 (language_defn::print_type): New function.
4953 (LA_PRINT_TYPE): Update.
4954 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4955 (m2_language::print_type): New member function.
4956 * objc-lang.c (objc_language_data): Delete la_print_type
4957 initializer.
4958 (objc_language::print_type): New member function.
4959 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4960 to opencl_language::print_type.
4961 (opencl_language_data): Delete la_print_type initializer.
4962 (opencl_language::print_type): New member function, implementation
4963 from opencl_print_type.
4964 * p-lang.c (pascal_language_data): Delete la_print_type
4965 initializer.
4966 (pascal_language::print_type): New member function.
4967 * rust-lang.c (rust_print_type): Delete, implementation moved to
4968 rust_language::print_type.
4969 (rust_language_data): Delete la_print_type initializer.
4970 (rust_language::print_type): New member function, implementation
4971 from rust_print_type.
4972
6f827019
AB
49732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4974
4975 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4976 implementation moves to...
4977 (ada_language::sniff_from_mangled_name): ...here. Update return
4978 type.
4979 (ada_language_data): Delete la_sniff_from_mangled_name
4980 initializer.
4981 * c-lang.c (c_language_data): Likewise.
4982 (cplus_language_data): Likewise.
4983 (cplus_language::sniff_from_mangled_name): New member function,
4984 implementation taken from gdb_sniff_from_mangled_name.
4985 (asm_language_data): Delete la_sniff_from_mangled_name
4986 initializer.
4987 (minimal_language_data): Likewise.
4988 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4989 implementation moves to cplus_language::sniff_from_mangled_name.
4990 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4991 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4992 moves to...
4993 (d_language::sniff_from_mangled_name): ...here.
4994 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4995 * f-lang.c (f_language_data): Likewise.
4996 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4997 moves to...
4998 (go_language::sniff_from_mangled_name): ...here.
4999 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5000 * language.c (language_sniff_from_mangled_name): Delete.
5001 (unknown_language_data): Delete la_sniff_from_mangled_name
5002 initializer.
5003 (auto_language_data): Likewise.
5004 * language.h (language_data): Delete la_sniff_from_mangled_name
5005 field.
5006 (language_defn::sniff_from_mangled_name): New function.
5007 (language_sniff_from_mangled_name): Delete declaration.
5008 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5009 field.
5010 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5011 implementation moves to...
5012 (objc_language::sniff_from_mangled_name): ...here.
5013 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5014 * opencl-lang.c (opencl_language_data): Likewise.
5015 * p-lang.c (pascal_language_data): Likewise.
5016 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5017 implementation moves to...
5018 (rust_language::sniff_from_mangled_name): ...here.
5019 (rust_language_data): Delete la_sniff_from_mangled_name
5020 initializer.
5021 * symtab.c (symbol_find_demangled_name): Call
5022 sniff_from_mangled_name member function.
5023
fb8006fd
AB
50242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5025
5026 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5027 initializer.
5028 * c-lang.c (c_language_data): Likewise.
5029 (cplus_language_data): Likewise.
5030 (cplus_language::search_name_hash): New member function.
5031 (asm_language_data): Delete la_search_name_hash initializer.
5032 (minimal_language_data): Likewise.
5033 * d-lang.c (d_language_data): Likewise.
5034 * dictionary.c (default_search_name_hash): Rename to...
5035 (language_defn::search_name_hash): ...this.
5036 * f-lang.c (f_language_data): Likewise.
5037 (f_language::search_name_hash): New member function.
5038 * go-lang.c (go_language_data): Delete la_search_name_hash
5039 initializer.
5040 * language.c (unknown_language_data): Likewise.
5041 (auto_language_data): Likewise.
5042 * language.h (struct language_data): Delete la_search_name_hash
5043 field.
5044 (language_defn::search_name_hash): Declare new member function.
5045 (default_search_name_hash): Delete declaration.
5046 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5047 initializer.
5048 * objc-lang.c (objc_language_data): Likewise.
5049 * opencl-lang.c (opencl_language_data): Likewise.
5050 * p-lang.c (pascal_language_data): Likewise.
5051 * rust-lang.c (rust_language_data): Likewise.
5052 * symtab.c (search_name_hash): Update call.
5053
8e25bafe
AB
50542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5055
5056 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5057 initializer.
5058 * c-lang.c (class compile_instance): Declare.
5059 (c_language_data): Delete la_get_compile_instance initializer.
5060 (c_language::get_compile_instance): New member function.
5061 (cplus_language_data): Delete la_get_compile_instance initializer.
5062 (cplus_language::get_compile_instance): New member function.
5063 (asm_language_data): Delete la_get_compile_instance initializer.
5064 (minimal_language_data): Likewise.
5065 * c-lang.h (c_get_compile_context): Update comment.
5066 (cplus_get_compile_context): Update comment.
5067 * compile/compile.c (compile_to_object): Update calls, don't rely
5068 on function pointer being NULL.
5069 * d-lang.c (d_language_data): Delete la_get_compile_instance
5070 initializer.
5071 * f-lang.c (f_language_data): Likewise.
5072 * go-lang.c (go_language_data): Likewise.
5073 * language.c (unknown_language_data): Likewise.
5074 (auto_language_data): Likewise.
5075 * language.h (language_data): Delete la_get_compile_instance field.
5076 (language_defn::get_compile_instance): New member function.
5077 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5078 initializer.
5079 * objc-lang.c (objc_language_data): Likewise.
5080 * opencl-lang.c (opencl_language_data): Likewise.
5081 * p-lang.c (pascal_language_data): Likewise.
5082 * rust-lang.c (rust_language_data): Likewise.
5083
4009ee92
AB
50842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5085
5086 * ada-lang.c (ada_add_all_symbols): Update comment.
5087 (ada_iterate_over_symbols): Delete, move implementation to...
5088 (ada_language::iterate_over_symbols): ...here, a new member
5089 function, rewrite to use range based for loop.
5090 (ada_language_data): Delete la_iterate_over_symbols initializer.
5091 * c-lang.c (c_language_data): Likewise.
5092 (cplus_language_data): Likewise.
5093 (asm_language_data): Likewise.
5094 (minimal_language_data): Likewise.
5095 * d-lang.c (d_language_data): Likewise.
5096 * f-lang.c (f_language_data): Likewise.
5097 * go-lang.c (go_language_data): Likewise.
5098 * language.c (unknown_language_data): Likewise.
5099 (auto_language_data): Likewise.
5100 * language.h (language_data): Delete la_iterate_over_symbols field.
5101 (language_defn::iterate_over_symbols): New member function.
5102 (LA_ITERATE_OVER_SYMBOLS): Update.
5103 * linespec.c (iterate_over_all_matching_symtabs): Update.
5104 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5105 initializer.
5106 * objc-lang.c (objc_language_data): Likewise.
5107 * opencl-lang.c (opencl_language_data): Likewise.
5108 * p-lang.c (pascal_language_data): Likewise.
5109 * rust-lang.c (rust_language_data): Likewise.
5110
54f4ca46
AB
51112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * ada-lang.c (ada_language_data): Delete
5114 la_lookup_transparent_type initializer.
5115 * c-lang.c (c_language_data): Likewise.
5116 (cplus_language_data): Likewise.
5117 (cplus_language::lookup_transparent_type): New member function.
5118 (asm_language_data): Delete la_lookup_transparent_type
5119 initializer.
5120 (minimal_language_data): Likewise.
5121 * d-lang.c (d_language_data): Likewise.
5122 * f-lang.c (f_language_data): Likewise.
5123 * go-lang.c (go_language_data): Likewise.
5124 * language.c (unknown_language_data): Likewise.
5125 (auto_language_data): Likewise.
5126 * language.h (struct language_data): Delete
5127 la_lookup_transparent_type field.
5128 (language_defn::lookup_transparent_type): New member function.
5129 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5130 initializer.
5131 * objc-lang.c (objc_language_data): Likewise.
5132 * opencl-lang.c (opencl_language_data): Likewise.
5133 * p-lang.c (pascal_language_data): Likewise.
5134 * rust-lang.c (rust_language_data): Likewise.
5135 * symtab.c (symbol_matches_domain): Update call.
5136
1fb314aa
AB
51372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * ada-lang.c (ada_language_arch_info): Delete function, move
5140 implementation to...
5141 (ada_language::language_arch_info): ...here, a new member
5142 function.
5143 (ada_language_data): Delete la_language_arch_info.
5144 * c-lang.c (c_language_data): Likewise.
5145 (c_language::language_arch_info): New member function.
5146 (cplus_language_arch_info): Delete function, move
5147 implementation to...
5148 (cplus_language::language_arch_info): ...here, a new member
5149 function.
5150 (cplus_language_data): Delete la_language_arch_info.
5151 (asm_language_data): Likewise.
5152 (asm_language::language_arch_info): New member function.
5153 (minimal_language_data): Delete la_language_arch_info.
5154 (minimal_language::language_arch_info): New member function.
5155 * d-lang.c (d_language_arch_info): Delete function, move
5156 implementation to...
5157 (d_language::language_arch_info): ...here, a new member
5158 function.
5159 (d_language_data): Delete la_language_arch_info.
5160 * f-lang.c (f_language_arch_info): Delete function, move
5161 implementation to...
5162 (f_language::language_arch_info): ...here, a new member
5163 function.
5164 (f_language_data): Delete la_language_arch_info.
5165 * go-lang.c (go_language_arch_info): Delete function, move
5166 implementation to...
5167 (go_language::language_arch_info): ...here, a new member
5168 function.
5169 (go_language_data): Delete la_language_arch_info.
5170 * language.c (unknown_language_data): Likewise.
5171 (unknown_language::language_arch_info): New member function.
5172 (auto_language_data): Delete la_language_arch_info.
5173 (auto_language::language_arch_info): New member function.
5174 (language_gdbarch_post_init): Update call to
5175 la_language_arch_info.
5176 * language.h (language_data): Delete la_language_arch_info
5177 function pointer.
5178 (language_defn::language_arch_info): New function.
5179 * m2-lang.c (m2_language_arch_info): Delete function, move
5180 implementation to...
5181 (m2_language::language_arch_info): ...here, a new member
5182 function.
5183 (m2_language_data): Delete la_language_arch_info.
5184 * objc-lang.c (objc_language_arch_info): Delete function, move
5185 implementation to...
5186 (objc_language::language_arch_info): ...here, a new member
5187 function.
5188 (objc_language_data): Delete la_language_arch_info.
5189 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5190 implementation to...
5191 (opencl_language::language_arch_info): ...here, a new member
5192 function.
5193 (opencl_language_data): Delete la_language_arch_info.
5194 * p-lang.c (pascal_language_arch_info): Delete function, move
5195 implementation to...
5196 (pascal_language::language_arch_info): ...here, a new member
5197 function.
5198 (pascal_language_data): Delete la_language_arch_info.
5199 * rust-lang.c (rust_language_arch_info): Delete function, move
5200 implementation to...
5201 (rust_language::language_arch_info): ...here, a new member
5202 function.
5203 (rust_language_data): Delete la_language_arch_info.
5204
48448202
AB
52052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5208 initializer.
5209 * c-lang.c (c_language_data): Likewise.
5210 (cplus_language_data): Likewise.
5211 (cplus_language::pass_by_reference_info): New method.
5212 (asm_language_data): Delete la_pass_by_reference initializer.
5213 (minimal_language_data): Likewise.
5214 * cp-abi.c (cp_pass_by_reference): Remove use of
5215 default_pass_by_reference.
5216 * d-lang.c (d_language_data): Likewise.
5217 * f-lang.c (f_language_data): Likewise.
5218 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5219 default_pass_by_reference.
5220 * go-lang.c (go_language_data): Likewise.
5221 * language.c (language_pass_by_reference): Update.
5222 (default_pass_by_reference): Delete.
5223 (unknown_language_data): Delete la_pass_by_reference
5224 initializer.
5225 (auto_language_data): Likewise.
5226 * language.h (struct language_data): Delete la_pass_by_reference
5227 field.
5228 (language_defn::pass_by_reference_info): New member function.
5229 (default_pass_by_reference): Delete declaration.
5230 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5231 initializer.
5232 * objc-lang.c (objc_language_data): Likewise.
5233 * opencl-lang.c (opencl_language_data): Likewise.
5234 * p-lang.c (pascal_language_data): Likewise.
5235 * rust-lang.c (rust_language_data): Likewise.
5236
15e5fd35
AB
52372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5238
5239 * ada-lang.c (ada_read_var_value): Delete function, move
5240 implementation to...
5241 (ada_language::read_var_value): ...here.
5242 (ada_language_data): Delete la_read_var_value initializer.
5243 * c-lang.c (c_language_data): Likewise.
5244 (cplus_language_data): Likewise.
5245 (minimal_language_data): Likewise.
5246 * d-lang.c (d_language_data): Likewise.
5247 * f-lang.c (f_language_data): Likewise.
5248 * findvar.c (default_read_var_value): Rename to...
5249 (language_defn::read_var_value): ...this.
5250 * findvar.c (read_var_value): Update header comment, and change to
5251 call member function instead of function pointer.
5252 * go-lang.c (go_language_data): Likewise.
5253 * language.c (unknown_language_data): Delete la_read_var_value
5254 initializer.
5255 (auto_language_data): Likewise.
5256 * language.h (struct language_data): Delete la_read_var_value
5257 field.
5258 (language_defn::read_var_value): New member function.
5259 (default_read_var_value): Delete declaration.
5260 * m2-lang.c (m2_language_data): Delete la_read_var_value
5261 initializer.
5262 * objc-lang.c (objc_language_data): Likewise.
5263 * opencl-lang.c (opencl_language_data): Likewise.
5264 * p-lang.c (pascal_language_data): Likewise.
5265 * rust-lang.c (rust_language_data): Likewise.
5266 * value.h (default_read_var_value): Delete declaration.
5267
5bd40f2a
AB
52682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5269
5270 * ada-lang.c (ada_print_array_index): Delete function, move
5271 implementation to...
5272 (ada_language::print_array_index): ...here.
5273 (ada_language_data): Delete la_print_array_index initializer.
5274 * c-lang.c (c_language_data): Likewise.
5275 (cplus_language_data): Likewise.
5276 (minimal_language_data): Likewise.
5277 * d-lang.c (d_language_data): Likewise.
5278 * f-lang.c (f_language_data): Likewise.
5279 * go-lang.c (go_language_data): Likewise.
5280 * language.c (default_print_array_index): Delete function, move
5281 implementation to...
5282 (language_defn::print_array_index): ...here.
5283 (unknown_language_data): Delete la_print_array_index initializer.
5284 (auto_language_data): Likewise.
5285 * language.h (struct language_data): Delete la_print_array_index
5286 field.
5287 (language_defn::print_array_index): New member function.
5288 (LA_PRINT_ARRAY_INDEX): Update.
5289 (default_print_array_index): Delete declaration.
5290 * m2-lang.c (m2_language_data): Delete la_print_array_index
5291 initializer.
5292 * objc-lang.c (objc_language_data): Likewise.
5293 * opencl-lang.c (opencl_language_data): Likewise.
5294 * p-lang.c (pascal_language_data): Likewise.
5295 * rust-lang.c (rust_language_data): Likewise.
5296
0874fd07
AB
52972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * gdb/ada-lang.c (ada_language_defn): Convert to...
5300 (ada_language_data): ...this.
5301 (class ada_language): New class.
5302 (ada_language_defn): New static global.
5303 * gdb/c-lang.c (c_language_defn): Convert to...
5304 (c_language_data): ...this.
5305 (class c_language): New class.
5306 (c_language_defn): New static global.
5307 (cplus_language_defn): Convert to...
5308 (cplus_language_data): ...this.
5309 (class cplus_language): New class.
5310 (cplus_language_defn): New static global.
5311 (asm_language_defn): Convert to...
5312 (asm_language_data): ...this.
5313 (class asm_language): New class.
5314 (asm_language_defn): New static global.
5315 (minimal_language_defn): Convert to...
5316 (minimal_language_data): ...this.
5317 (class minimal_language): New class.
5318 (minimal_language_defn): New static global.
5319 * gdb/d-lang.c (d_language_defn): Convert to...
5320 (d_language_data): ...this.
5321 (class d_language): New class.
5322 (d_language_defn): New static global.
5323 * gdb/f-lang.c (f_language_defn): Convert to...
5324 (f_language_data): ...this.
5325 (class f_language): New class.
5326 (f_language_defn): New static global.
5327 * gdb/go-lang.c (go_language_defn): Convert to...
5328 (go_language_data): ...this.
5329 (class go_language): New class.
5330 (go_language_defn): New static global.
5331 * gdb/language.c (unknown_language_defn): Remove declaration.
5332 (current_language): Initialize to nullptr, real initialization is
5333 moved to _initialize_language.
5334 (languages): Delete global.
5335 (language_defn::languages): Define.
5336 (set_language_command): Use language_defn::languages.
5337 (set_language): Likewise.
5338 (range_error): Likewise.
5339 (language_enum): Likewise.
5340 (language_def): Likewise.
5341 (add_set_language_command): Use language_def::languages for the
5342 language list, and language_def to lookup language pointers.
5343 (skip_language_trampoline): Use language_defn::languages.
5344 (unknown_language_defn): Convert to...
5345 (unknown_language_data): ...this.
5346 (class unknown_language): New class.
5347 (unknown_language_defn): New static global.
5348 (auto_language_defn): Convert to...
5349 (auto_language_data): ...this.
5350 (class auto_language): New class.
5351 (auto_language_defn): New static global.
5352 (language_gdbarch_post_init): Use language_defn::languages.
5353 (_initialize_language): Initialize current_language.
5354 * gdb/language.h (struct language_defn): Rename to...
5355 (struct language_data): ...this.
5356 (struct language_defn): New.
5357 (auto_language_defn): Delete.
5358 (unknown_language_defn): Delete.
5359 (minimal_language_defn): Delete.
5360 (ada_language_defn): Delete.
5361 (asm_language_defn): Delete.
5362 (c_language_defn): Delete.
5363 (cplus_language_defn): Delete.
5364 (d_language_defn): Delete.
5365 (f_language_defn): Delete.
5366 (go_language_defn): Delete.
5367 (m2_language_defn): Delete.
5368 (objc_language_defn): Delete.
5369 (opencl_language_defn): Delete.
5370 (pascal_language_defn): Delete.
5371 (rust_language_defn): Delete.
5372 * gdb/m2-lang.c (m2_language_defn): Convert to...
5373 (m2_language_data): ...this.
5374 (class m2_language): New class.
5375 (m2_language_defn): New static global.
5376 * gdb/objc-lang.c (objc_language_defn): Convert to...
5377 (objc_language_data): ...this.
5378 (class objc_language): New class.
5379 (objc_language_defn): New static global.
5380 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5381 (opencl_language_data): ...this.
5382 (class opencl_language): New class.
5383 (opencl_language_defn): New static global.
5384 * gdb/p-lang.c (pascal_language_defn): Convert to...
5385 (pascal_language_data): ...this.
5386 (class pascal_language): New class.
5387 (pascal_language_defn): New static global.
5388 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5389 language pointer, update comment format.
5390 * gdb/rust-lang.c (rust_language_defn): Convert to...
5391 (rust_language_data): ...this.
5392 (class rust_language): New class.
5393 (rust_language_defn): New static global.
5394
1313c56e
AB
53952020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5396
5397 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5398 member variable.
5399 <m_stmt_at_address>: New member variable.
5400 (lnp_state_machine::record_line): Don't record some lines, update
5401 tracking of is_stmt at the same address.
5402 (lnp_state_machine::lnp_state_machine): Initialise new member
5403 variables.
5404
b7ed9f3d
ST
54052020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5406
5407 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5408 "-include gnu-nat-mig.h".
5409 * gnu-nat-mig.h: New file.
5410 * gnu-nat.c: Include "gnu-nat-mig.h".
5411 (exc_server, msg_reply_server, notify_server,
5412 process_reply_server): Remove declarations.
5413
14a8ad62
ST
54142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5415
5416 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5417 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5418 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5419 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5420 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5421 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5422 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5423 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5424 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5425 to gnu_nat_target class.
5426 * gnu-nat.c: Likewise.
5427 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5428 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5429 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5430 object.
5431 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5432 instead of `gnu_target'.
5433
0af5e106
ST
54342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5435
5436 * i386-gnu-tdep.c: Include "gdbcore.h"
5437 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5438 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5439 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5440 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5441 i386_gnu_sigcontext_addr): New functions
5442 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5443 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5444 tdep.
5445
078f2fc9
ST
54462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5447
5448 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5449 before fork_inferior call. Avoid calling it if target_is_pushed returns
5450 true.
5451
53dff92c
ST
54522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5453
5454 * gnu-nat.h (gnu_target): New variable declaration.
5455 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5456 gnu_target.
5457 * gnu-nat.c (gnu_target): New variable.
5458 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5459 add_thread_silent, and add_thread calls.
5460 (gnu_nat_target::create_inferior): Pass gnu_target to
5461 add_thread_silent, thread_change_ptid call.
5462 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5463 call.
5464
5a8b8627
ST
54652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5466
5467 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5468 (gnu_nat_target::find_memory_regions): Remove unused
5469 `old_address' variable.
5470
366f550a
ST
54712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5472
5473 * gnu-nat.c: Include "gdbarch.h".
5474
f14871bf
ST
54752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5476
5477 * reply_mig_hack.awk (Error return): Cast function through
5478 void *, to bypass compiler function call check.
5479
c6887cfb
ST
54802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5481
5482 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5483 $(srcdir)/reply_mig_hack.awk.
5484
6930bffe
ST
54852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5486
5487 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5488
112c22ed
JG
54892020-05-30 Jonny Grant <jg@jguk.org>
5490
5491 * configure.ac (ACX_BUGURL): change bug URL to https.
5492
f68f85b5
PA
54932020-05-30 Pedro Alves <palves@redhat.com>
5494
5495 * cp-support.c (replace_typedefs_template): New.
5496 (replace_typedefs_qualified_name): Handle
5497 DEMANGLE_COMPONENT_TEMPLATE.
5498
976ca316
SM
54992020-05-29 Simon Marchi <simon.marchi@efficios.com>
5500
5501 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5502 dwarf2/index-cache.h, dwarf2/index-write.c,
5503 dwarf2/index-write.h, dwarf2/line-header.c,
5504 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5505 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5506 variables and fields from `dwarf2_per_objfile` to just
5507 `per_objfile` throughout.
5508
989ade05
SM
55092020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5512 <push_dwarf_reg_entry_value>: Add comment.
5513
c47bae85
KB
55142020-05-28 Kevin Buettner <kevinb@redhat.com>
5515 Keith Seitz <keiths@redhat.com>
5516
5517 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5518 instead of PyEval_ReleaseLock.
5519 (class gdbpy_gil): Move to earlier in file.
5520 (finalize_python): Set gdb_python_initialized.
5521 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5522 when not initialized.
5523
44486dcf
SM
55242020-05-28 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5527 <push_dwarf_reg_entry_value>: Remove assert. Override
5528 per_objfile with caller_per_objfile.
5529
f030440d
TV
55302020-05-28 Tom de Vries <tdevries@suse.de>
5531
5532 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5533 PR gold/15646 workaround to symbol kind "type".
5534
f0fbb768
TT
55352020-05-27 Tom Tromey <tromey@adacore.com>
5536
5537 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5538
af0b2a3e
TT
55392020-05-27 Tom Tromey <tromey@adacore.com>
5540
5541 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5542 Use htab_find_with_hash.
5543 <add_abbrev>: Remove "abbrev_number" parameter.
5544 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5545 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5546 (hash_abbrev): Add comment.
5547 (abbrev_table::lookup_abbrev): Move to header file.
5548 (abbrev_table::read): Update.
5549
7d00ffec
TT
55502020-05-27 Tom Tromey <tromey@adacore.com>
5551
5552 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5553 method.
5554 <canonical_name>: New member.
5555 <raw_name>: Rename from "name".
5556 (partial_die_info): Initialize canonical_name.
5557 (scan_partial_symbols): Check raw_name.
5558 (partial_die_parent_scope, partial_die_full_name)
5559 (add_partial_symbol, add_partial_subprogram)
5560 (add_partial_enumeration, load_partial_dies): Use "name" method.
5561 (partial_die_info::name): New method.
5562 (partial_die_info::read, guess_partial_die_structure_name)
5563 (partial_die_info::fixup): Update.
5564
697bba18
TT
55652020-05-27 Tom Tromey <tromey@adacore.com>
5566
5567 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5568 <get_ref_die_offset>: Inline.
5569 <get_ref_die_offset_complaint>: New method.
5570 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5571 (attribute::get_ref_die_offset_complaint): Rename from
5572 get_ref_die_offset. Just issue complaint.
5573
c17ace43
HD
55742020-05-27 Hannes Domani <ssbssa@yahoo.de>
5575
5576 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5577
96445f0b
HD
55782020-05-27 Hannes Domani <ssbssa@yahoo.de>
5579
5580 * exec.c (exec_file_attach): Use errno value of first openp failure.
5581
ac637ec3
HD
55822020-05-27 Hannes Domani <ssbssa@yahoo.de>
5583
5584 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5585 Don't close thread handle.
5586
17ee85fc
TT
55872020-05-27 Tom Tromey <tom@tromey.com>
5588 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5591 shared_ptr.
5592 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5593 member.
5594 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5595 dwarf2_per_bfd_objfile_data_key>: New globals.
5596 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5597 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5598 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5599 shared.
5600 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5601 short-circuit when sharing.
5602 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5603 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5604
39b16f87
SM
56052020-05-27 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5608 to...
5609 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5610 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5611
fcf23d5b
SM
56122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5615 build_name_components, find_name_components_bounds>:
5616 Add per_objfile parameter.
5617 (struct mapped_index) <symbol_name_at>: Likewise.
5618 (struct mapped_debug_names): Remove constructor.
5619 <dwarf2_per_objfile>: Remove field.
5620 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5621 (mapped_index_base::find_name_components_bounds,
5622 mapped_index_base::build_name_components,
5623 dw2_expand_symtabs_matching_symbol): Likewise.
5624 (class mock_mapped_index) <symbol_name_at>: Likewise.
5625 (check_match): Likewise.
5626 (check_find_bounds_finds): Likewise.
5627 (test_mapped_index_find_name_component_bounds): Update.
5628 (CHECK_MATCH): Update.
5629 (dw2_expand_symtabs_matching): Update.
5630 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5631 per_objfile parameter.
5632 <find_vec_in_debug_names>: Likewise.
5633 <m_per_objfile>: New field.
5634 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5635 parameter.
5636 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5637 (dw2_debug_names_iterator::next): Update.
5638 (dw2_debug_names_lookup_symbol): Update.
5639 (dw2_debug_names_expand_symtabs_for_function): Update.
5640 (dw2_debug_names_map_matching_symbols): Update.
5641 (dw2_debug_names_expand_symtabs_matching): Update.
5642 (dwarf2_read_debug_names): Update.
5643
7188ed02
SM
56442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5647 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5648 move to dwarf2_per_objfile.
5649 <read_in_chain>: Remove.
5650 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5651 remove_all_cus, age_comp_units>: New methods.
5652 <m_dwarf2_cus>: New member.
5653 (struct dwarf2_per_cu_data) <cu>: Remove.
5654 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5655 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5656 moved to methods of dwarf2_per_objfile.
5657 (dwarf2_clear_marks): Remove.
5658 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5659 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5660 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5661 (dwarf2_per_objfile::remove_all_cus): New.
5662 (class free_cached_comp_units) <~free_cached_comp_units>:
5663 Update.
5664 (load_cu): Update.
5665 (dw2_do_instantiate_symtab): Adjust.
5666 (fill_in_sig_entry_from_dwo_entry): Adjust.
5667 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5668 (cutu_reader::cutu_reader): Likewise.
5669 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5670 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5671 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5672 and dwarf2_per_objfile::age_comp_units.
5673 (load_partial_comp_unit): Update.
5674 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5675 (process_queue): Likewise.
5676 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5677 backlink.
5678 (dwarf2_read_addr_index): Likewise.
5679 (follow_die_offset): Likewise.
5680 (dwarf2_fetch_die_loc_sect_off): Likewise.
5681 (dwarf2_fetch_constant_bytes): Likewise.
5682 (dwarf2_fetch_die_type_sect_off): Likewise.
5683 (follow_die_sig_1): Likewise.
5684 (load_full_type_unit): Likewise.
5685 (read_signatured_type): Likewise.
5686 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5687 (dwarf2_cu::~dwarf2_cu): Remove.
5688 (dwarf2_per_objfile::get_cu): New.
5689 (dwarf2_per_objfile::set_cu): New.
5690 (age_cached_comp_units): Rename to...
5691 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5692 to std::unordered_map.
5693 (free_one_cached_comp_unit): Rename to...
5694 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5695 to std::unordered_map.
5696 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5697 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5698 a dwarf2_per_objfile in data.
5699 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5700 (dwarf2_clear_marks): Remove.
5701
2e671100
SM
57022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5705 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5706 (init_tu_and_read_dwo_dies): Likewise.
5707 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5708 (cutu_reader::cutu_reader): Likewise.
5709 (load_partial_comp_unit): Likewise.
5710 (process_psymtab_comp_unit): Update.
5711 (build_type_psymtabs_1): Update.
5712 (process_skeletonless_type_unit): Update.
5713 (load_full_comp_unit): Update.
5714 (find_partial_die): Update.
5715 (dwarf2_read_addr_index): Update.
5716 (read_signatured_type): Update.
5717
2e6a9f79
SM
57182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5719
5720 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5721 m_header_read_in>: New fields.
5722 <get_header>: New method.
5723 * dwarf2/read.c (per_cu_header_read_in): Remove.
5724 (dwarf2_per_cu_data::get_header): New.
5725 (dwarf2_per_cu_data::addr_size): Update.
5726 (dwarf2_per_cu_data::offset_size): Update.
5727 (dwarf2_per_cu_data::ref_addr_size): Update.
5728
1b555f17
SM
57292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5732 (dw2_do_instantiate_symtab): Update.
5733 (queue_and_load_all_dwo_tus): Change parameter from
5734 dwarf2_per_cu_data to dwarf2_cu.
5735 (dwarf2_fetch_die_loc_sect_off): Update.
5736 (dwarf2_fetch_constant_bytes): Update.
5737 (dwarf2_fetch_die_type_sect_off): Update.
5738
8fc0b21d
SM
57392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5740
5741 * dwarf2/read.c (process_full_comp_unit,
5742 process_full_type_unit): Remove per_cu, per_objfile paramters.
5743 Add dwarf2_cu parameter.
5744 (process_queue): Update.
5745
168c9250
SM
57462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5747
5748 * dwarf2/read.c (create_cu_from_index_list): Replace
5749 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5750 (create_cus_from_index_list): Likewise.
5751 (create_cus_from_index): Likewise.
5752 (create_signatured_type_table_from_index): Likewise.
5753 (create_cus_from_debug_names_list): Likewise.
5754 (create_cus_from_debug_names): Likewise.
5755 (dwarf2_read_gdb_index): Update.
5756 (dwarf2_read_debug_names): Update.
5757
e286671b
TT
57582020-05-27 Tom Tromey <tom@tromey.com>
5759 Simon Marchi <simon.marchi@efficios.com>
5760
5761 * dwarf2/read.h (struct dwarf2_per_objfile)
5762 <get_type_for_signatured_type, set_type_for_signatured_type>:
5763 New methods.
5764 <m_type_map>: New member.
5765 (struct signatured_type) <type>: Remove.
5766 * dwarf2/read.c
5767 (dwarf2_per_objfile::get_type_for_signatured_type,
5768 dwarf2_per_objfile::set_type_for_signatured_type): New.
5769 (get_signatured_type): Use new methods.
5770
8adb8487
TT
57712020-05-27 Tom Tromey <tom@tromey.com>
5772 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5775 (struct dwarf2_per_objfile) <type_units>: New member.
5776 <get_type_unit_group_unshareable>: New method.
5777 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5778 num_symtabs, symtabs>: Remove; move to
5779 type_unit_group_unshareable.
5780 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5781 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5782 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5783
127bbf4b
SM
57842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * dwarf2/read.h (struct dwarf2_per_cu_data):
5787 <dwarf2_per_objfile>: Remove.
5788 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5789 dwarf2_per_objfile.
5790 (create_signatured_type_table_from_index): Likewise.
5791 (create_signatured_type_table_from_debug_names): Likewise.
5792 (create_debug_type_hash_table): Likewise.
5793 (fill_in_sig_entry_from_dwo_entry): Likewise.
5794 (create_type_unit_group): Likewise.
5795 (read_comp_units_from_section): Likewise.
5796 (create_cus_hash_table): Likewise.
5797
f6e649dd
SM
57982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5801 dwarf2_per_cu_data::dwarf2_per_objfile.
5802 (compute_compunit_symtab_includes): Likewise.
5803 (dwarf2_cu::start_symtab): Likewise.
5804
aa66c379
SM
58052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5808 parameter.
5809 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5810 (read_namespace_alias): Update.
5811 (lookup_die_type): Update.
5812 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5813 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5814 Update.
5815 (disassemble_dwarf_expression): Update.
5816
120ce1b5
SM
58172020-05-27 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * dwarf2/read.h (struct dwarf2_queue_item): Add
5820 dwarf2_per_objfile parameter, assign new parameter.
5821 <per_objfile>: New field.
5822 * dwarf2/read.c (free_one_cached_comp_unit): Add
5823 dwarf2_per_objfile parameter.
5824 (queue_comp_unit): Likewise.
5825 (dw2_do_instantiate_symtab): Update.
5826 (process_psymtab_comp_unit): Update.
5827 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5828 (process_imported_unit_die): Update.
5829 (queue_and_load_dwo_tu): Update.
5830 (follow_die_offset): Update.
5831 (follow_die_sig_1): Update.
5832
9f47c707
SM
58332020-05-27 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5836 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5837 (read_call_site_scope): Assign per_objfile.
5838 (dwarf2_per_cu_data::objfile): Remove.
5839 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5840 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5841 dwarf2_per_objfile parameter.
5842 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5843 dwarf2_per_objfile parameter.
5844 (dwarf_expr_reg_to_entry_parameter): Add output
5845 dwarf2_per_objfile parameter.
5846 (locexpr_get_frame_base): Update.
5847 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5848 <push_dwarf_reg_entry_value>: Update.
5849 <call_site_to_target_addr>: Update.
5850 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5851 parameter.
5852 (value_of_dwarf_reg_entry): Update.
5853 (rw_pieced_value): Update.
5854 (indirect_synthetic_pointer): Update.
5855 (dwarf2_evaluate_property): Update.
5856 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5857 parameter.
5858 (locexpr_read_variable): Update.
5859 (locexpr_get_symbol_read_needs): Update.
5860 (loclist_read_variable): Update.
5861
14095eb3
SM
58622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5865 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5866 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5867 parameter.
5868 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5869 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5870 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5871 parameter.
5872 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5873 sect_variable_value): Add dwarf2_per_objfile parameter.
5874 (class dwarf_evaluate_loc_desc) <dwarf_call,
5875 dwarf_variable_value>: Update.
5876 (fetch_const_value_from_synthetic_pointer): Add
5877 dwarf2_per_objfile parameter.
5878 (fetch_const_value_from_synthetic_pointer): Update.
5879 (coerced_pieced_ref): Update.
5880 (class symbol_needs_eval_context) <dwarf_call,
5881 dwarf_variable_value>: Update.
5882 (dwarf2_compile_expr_to_ax): Update.
5883
3c3cd3d4
SM
58842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5887 parameter.
5888 (dwarf2_evaluate_loc_desc_full): Update.
5889
82ca3f51
SM
58902020-05-27 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5893 parameter.
5894 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5895 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5896 dwarf2_per_objfile parameter.
5897 (decode_debug_loc_dwo_addresses): Likewise.
5898 (dwarf2_find_location_expression): Update.
5899 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5900 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5901 parameter.
5902 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5903 parameter.
5904 (locexpr_describe_location_1): Likewise.
5905 (locexpr_describe_location): Update.
5906
4b167ea1
SM
59072020-05-27 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5910 Remove.
5911 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5912 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5913 (dwarf2_compile_property_to_c): Update.
5914 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5915 use text offset from objfile.
5916 (locexpr_tracepoint_var_ref): Update.
5917 (locexpr_generate_c_location): Update.
5918 (loclist_describe_location): Update.
5919 (loclist_tracepoint_var_ref): Update.
5920 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5921 dwarf2_per_objfile parameter.
5922 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5923 use text offset from objfile.
5924 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5925
89b07335
SM
59262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * dwarf2/expr.h (struct dwarf_expr_context)
5929 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5930 <offset>: Remove.
5931 <per_objfile>: New member.
5932 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5933 dwarf2_per_objfile parameter. Don't set offset, set
5934 per_objfile.
5935 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5936 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5937 a dwarf2_per_objfile object instead of an offset.
5938 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5939 constructor.
5940 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5941 to dwarf2_expr_executor constructor. Don't set offset.
5942 (dwarf2_fetch_cfa_info): Update.
5943 (struct dwarf2_frame_cache) <text_offset>: Remove.
5944 <per_objfile>: New field.
5945 (dwarf2_frame_cache): Update.
5946 (dwarf2_frame_prev_register): Update.
5947 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5948 <dwarf_evaluate_loc_desc>: Add constructor.
5949 (dwarf2_evaluate_loc_desc_full): Update.
5950 (dwarf2_locexpr_baton_eval): Update.
5951 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5952 Add constructor.
5953 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5954
293e7e51
SM
59552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5956
5957 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5958 addr_sized_int_type>: Move to dwarf2_cu.
5959 <int_type>: Move to dwarf2_per_objfile.
5960 (struct dwarf2_per_objfile) <int_type>: Move here.
5961 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5962 addr_sized_int_type>: Move here.
5963 (read_func_scope): Update.
5964 (read_array_type): Update.
5965 (read_tag_string_type): Update.
5966 (attr_to_dynamic_prop): Update.
5967 (dwarf2_per_cu_data::int_type): Rename to...
5968 (dwarf2_per_objfile::int_type): ... this.
5969 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5970 (dwarf2_cu::addr_sized_int_type): ... this.
5971 (read_subrange_type): Update.
5972 (dwarf2_per_cu_data::addr_type): Rename to...
5973 (dwarf2_cu::addr_type): ... this.
5974 (set_die_type): Update.
5975
64874a40
SM
59762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5979 data through per_cu->cu.
5980
4ab09049
SM
59812020-05-27 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5984 dwarf2_per_cu_data parameter fo dwarf2_cu.
5985 (lookup_dwo_type_unit): Likewise.
5986 (read_cutu_die_from_dwo): Likewise.
5987 (lookup_dwo_unit): Likewise.
5988 (open_and_init_dwo_file): Likewise.
5989 (lookup_dwo_cutu): Likewise.
5990 (lookup_dwo_comp_unit): Likewise.
5991 (lookup_dwo_type_unit): Likewise.
5992 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5993 (cutu_reader::cutu_reader): Update.
5994
47b14e86
SM
59952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5998 parameter.
5999 (process_full_type_unit): Likewise.
6000 (process_queue): Update.
6001
43182c09
SM
60022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * dwarf2/read.c (recursively_compute_inclusions): Add
6005 dwarf2_per_objfile parameter.
6006 (compute_compunit_symtab_includes): Likewise.
6007 (process_cu_includes): Update.
6008
7aa104c4
SM
60092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6012 parameter.
6013 (create_type_unit_group): Update.
6014 (process_psymtab_comp_unit_reader): Update.
6015 (build_type_psymtabs_reader): Update.
6016
e3beb21d
SM
60172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6020 object through m_this_cu->cu.
6021
d460f660
SM
60222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6023
6024 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6025 the info parameter.
6026 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6027
ab432490
SM
60282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6029
6030 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6031 per_objfile parameter.
6032 (load_full_type_unit): Add per_objfile parameter.
6033 (read_signatured_type): Likewise.
6034 (load_full_comp_unit): Likewise.
6035 (load_cu): Likewise.
6036 (dw2_do_instantiate_symtab): Likewise.
6037 (dw2_get_file_names): Likewise.
6038 (dw2_map_symtabs_matching_filename): Update.
6039 (dw_expand_symtabs_matching_file_matcher): Update.
6040 (dw2_map_symbol_filenames): Update.
6041 (process_psymtab_comp_unit): Add per_objfile parameter.
6042 (build_type_psymtabs_1): Update.
6043 (process_skeletonless_type_unit): Update.
6044 (dwarf2_build_psymtabs_hard): Update.
6045 (load_partial_comp_unit): Add per_objfile parameter.
6046 (scan_partial_symbols): Update.
6047 (load_full_comp_unit): Add per_objfile parameter.
6048 (process_imported_unit_die): Update.
6049 (create_cus_hash_table): Update.
6050 (find_partial_die): Update.
6051 (dwarf2_read_addr_index): Update.
6052 (follow_die_offset): Update.
6053 (dwarf2_fetch_die_loc_sect_off): Update.
6054 (dwarf2_fetch_constant_bytes): Update.
6055 (dwarf2_fetch_die_type_sect_off): Update.
6056 (follow_die_sig_1): Update.
6057 (load_full_type_unit): Add per_objfile parameter.
6058 (read_signatured_type): Likewise.
6059
313bad1b
SM
60602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6063 of objfile_name.
6064
c3699833
SM
60652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6068 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6069 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6070 field.
6071 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6072 (create_cus_from_index): Update.
6073 (dwarf2_read_gdb_index): Update.
6074 (create_cus_from_debug_names): Update.
6075 (dwarf2_read_debug_names): Update.
6076 (get_abbrev_section_for_cu): Update.
6077 (create_all_comp_units): Update.
6078 (read_attribute_value): Update.
6079 (get_debug_line_section): Update.
6080 * dwarf2/index-cache.c (index_cache::store): Update.
6081 * dwarf2/index-write.c (save_gdb_index_command): Update.
6082 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6083
1859c670
SM
60842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6085
6086 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6087 member.
6088 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6089 dwarf2_per_cu_data::per_bfd.
6090 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6091 (create_type_unit_group): Likewise.
6092 (queue_comp_unit): Remove reference to
6093 per_cu->dwarf2_per_objfile.
6094 (maybe_queue_comp_unit): Likewise.
6095 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6096 (create_cus_hash_table): Assign new field.
6097
5e22e966
SM
60982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * dwarf2/read.c: Replace
6101 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6102 dwarf2_cu->per_objfile throughout.
6103
97a1449a
SM
61042020-05-27 Simon Marchi <simon.marchi@efficios.com>
6105
6106 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6107 parameter, don't use per_cu->dwarf2_per_objfile.
6108 (dw2_instantiate_symtab): Likewise.
6109 (dw2_find_last_source_symtab): Update.
6110 (dw2_map_expand_apply): Update.
6111 (dw2_lookup_symbol): Update.
6112 (dw2_expand_symtabs_for_function): Update.
6113 (dw2_expand_all_symtabs): Update.
6114 (dw2_expand_symtabs_with_fullname): Update.
6115 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6116 don't use per_cu->dwarf2_per_objfile.
6117 (dw2_expand_marked_cus): Update.
6118 (dw2_find_pc_sect_compunit_symtab): Update.
6119 (dw2_debug_names_lookup_symbol): Update.
6120 (dw2_debug_names_expand_symtabs_for_function): Update.
6121 (dw2_debug_names_map_matching_symbols): Update.
6122 (dwarf2_psymtab::expand_psymtab): Update.
6123
9e021579
SM
61242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6125
6126 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6127 <per_objfile>: New member.
6128 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6129 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6130 call to dwarf2_cu.
6131 (cutu_reader::cutu_reader): Update.
6132 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6133
ae090bdb
SM
61342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6137 struct dwarf2_per_objfile.
6138 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6139 dwarf2_per_bfd.
6140 * dwarf2/read.c (set_die_type): Update.
6141 (get_die_type_at_offset): Update.
6142
af758d11
SM
61432020-05-27 Tom Tromey <tom@tromey.com>
6144 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6147 method.
6148 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6149 get_symtab, set_symtab>: New methods.
6150 <m_symtabs>: New field.
6151 (struct dwarf2_psymtab): Derive from partial_symtab.
6152 <readin_p, get_compunit_symtab>: Declare methods.
6153 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6154 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6155 New methods.
6156 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6157 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6158 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6159 (dw2_symtab_iter_next, dw2_print_stats)
6160 (dw2_expand_symtabs_with_fullname)
6161 (dw2_expand_symtabs_matching_one)
6162 (dw_expand_symtabs_matching_file_matcher)
6163 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6164 (dw2_debug_names_iterator::next)
6165 (dw2_debug_names_map_matching_symbols)
6166 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6167 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6168 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6169 New methods.
6170 (get_compunit_symtab, process_full_comp_unit)
6171 (process_full_type_unit): Update.
6172 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6173
5989a64e
SM
61742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6177 then introduce a new dwarf2_per_objfile type.
6178 <read_line_string>: Move to the new dwarf2_per_objfile type.
6179 <objfile>: Likewise.
6180 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6181 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6182 dwarf2_per_objfile->per_bfd.
6183 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6184 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6185 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6186 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6187 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6188 (dwarf2_per_objfile::locate_sections): Rename to...
6189 (dwarf2_per_bfd::locate_sections): ... this.
6190 (dwarf2_per_objfile::get_cutu): Rename to...
6191 (dwarf2_per_bfd::get_cutu): ... this.
6192 (dwarf2_per_objfile::get_cu): Rename to...
6193 (dwarf2_per_bfd::get_cu): ... this.
6194 (dwarf2_per_objfile::get_tu): Rename to...
6195 (dwarf2_per_bfd::get_tu): ... this.
6196 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6197 (dwarf2_per_bfd::allocate_per_cu): ... this.
6198 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6199 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6200 (get_gdb_index_contents_ftype): Change parameter from
6201 dwarf2_per_objfile to dwarf2_per_bfd.
6202 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6203 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6204
a50264ba
TT
62052020-05-27 Tom Tromey <tom@tromey.com>
6206 Simon Marchi <simon.marchi@efficios.com>
6207
6208 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6209 (allocate_piece_closure): Set "per_objfile" member.
6210 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6211 (locexpr_describe_location, loclist_describe_location): Use new
6212 member.
6213 * dwarf2/read.c (read_call_site_scope)
6214 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6215 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6216 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6217 handle_data_member_location): Set per_objfile member.
6218 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6219 member.
6220 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6221
d3473f0c
TT
62222020-05-27 Tom Tromey <tom@tromey.com>
6223
6224 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6225 allocate_signatured_type>: Declare new methods.
6226 <m_num_psymtabs>: New member.
6227 (struct dwarf2_per_cu_data) <index>: New member.
6228 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6229 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6230 (create_cu_from_index_list): Use allocate_per_cu.
6231 (create_signatured_type_table_from_index)
6232 (create_signatured_type_table_from_debug_names)
6233 (create_debug_type_hash_table, add_type_unit)
6234 (read_comp_units_from_section): Use allocate_signatured_type.
6235
5717c425
TT
62362020-05-27 Tom Tromey <tom@tromey.com>
6237
6238 * psymtab.c (partial_map_expand_apply)
6239 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6240 (psym_lookup_global_symbol_language)
6241 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6242 (psym_print_stats, psym_expand_symtabs_for_function)
6243 (psym_map_symbol_filenames, psym_map_matching_symbols)
6244 (psym_expand_symtabs_matching)
6245 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6246 (maintenance_check_psymtabs): Update.
6247 * psympriv.h (struct partial_symtab) <readin_p,
6248 get_compunit_symtab>: Add objfile parameter.
6249 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6250 Likewise.
6251 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6252 get_compunit_symtab>: Likewise.
6253 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6254
45940949
TT
62552020-05-27 Tom Tromey <tom@tromey.com>
6256
6257 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6258 member.
6259 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6260 (create_cu_from_index_list)
6261 (create_signatured_type_table_from_index)
6262 (create_signatured_type_table_from_debug_names)
6263 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6264 (dwarf2_create_include_psymtab)
6265 (create_debug_type_hash_table, add_type_unit)
6266 (create_type_unit_group, read_comp_units_from_section)
6267 (dwarf2_compute_name, create_cus_hash_table)
6268 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6269 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6270 obstack.
6271 (dw2_get_real_path): Likewise. Change argument to
6272 dwarf2_per_objfile.
6273
f8c6d152
LM
62742020-05-27 Luis Machado <luis.machado@linaro.org>
6275
6276 PR tdep/26000
6277 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6278 for ldrd (immediate).
6279
e98d2e6d
PW
62802020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6281
6282 * command.h: Add comment giving the name of class_tui.
6283 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6284 create the fake command for the help for class_tui.
6285
53a47a3e
TT
62862020-05-26 Tom Tromey <tromey@adacore.com>
6287
6288 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6289 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6290 (val_atr): New function.
6291 (value_val_atr): Use it.
6292 * ada-valprint.c (print_optional_low_bound): Change low bound
6293 handling for enums.
6294 (val_print_packed_array_elements): Don't call discrete_position.
6295 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6296 discrete_position for enum types.
6297 * language.c (default_print_array_index): Change type.
6298 * language.h (struct language_defn) <la_print_array_index>: Add
6299 index_type parameter, change type of index_value.
6300 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6301 (default_print_array_index): Update.
6302 * valprint.c (maybe_print_array_index): Don't call
6303 value_from_longest. Update.
6304 (value_print_array_elements): Don't call discrete_position.
6305
0bc2354b
TT
63062020-05-26 Tom Tromey <tromey@adacore.com>
6307
6308 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6309 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6310
1218a4bf
CDA
63112020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6312
6313 PR gdb/13519
6314 * avr-tdep.c (avr_integer_to_address): Return data or code
6315 address accordingly to the second 'type' argument of the
6316 function.
6317
92651b1d
MW
63182020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6319
6320 * infcmd.c, inferior.h: (construct_inferior_arguments):
6321 Moved function from here to gdbsupport/common-inferior.{h,cc}
6322
0a4f5f8c
TT
63232020-05-23 Tom Tromey <tom@tromey.com>
6324
6325 Revert commit eca1f90c:
6326 * NEWS: Remove entry for completion styling.
6327 * completer.c (_rl_completion_prefix_display_length): Move
6328 declaration later.
6329 (gdb_fnprint): Revert.
6330 (gdb_display_match_list_1): Likewise.
6331 * cli/cli-style.c (completion_prefix_style)
6332 (completion_difference_style, completion_suffix_style): Remove.
6333 (_initialize_cli_style): Revert.
6334 * cli/cli-style.h (completion_prefix_style)
6335 (completion_difference_style, completion_suffix_style): Don't
6336 declare.
6337
e08bd6c5
PA
63382020-05-24 Pedro Alves <palves@redhat.com>
6339
6340 * symtab.c (completion_list_add_name): Return boolean indication
6341 of whether the symbol matched.
6342 (completion_list_add_symbol): Don't try to remove C++ aliases if
6343 the symbol didn't match in the first place.
6344 * symtab.h (completion_list_add_name): Return bool.
6345
ceacbf6e
SM
63462020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6347
6348 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6349 type::field.
6350
26f16254
JB
63512020-05-23 Joel Brobecker <brobecker@adacore.com>
6352
6353 GDB 9.2 released.
6354
eca1f90c
TT
63552020-05-23 Tom Tromey <tom@tromey.com>
6356
6357 * NEWS: Add entry for completion styling.
6358 * completer.c (_rl_completion_prefix_display_length): Move
6359 declaration earlier.
6360 (gdb_fnprint): Use completion_style.
6361 (gdb_display_match_list_1): Likewise.
6362 * cli/cli-style.c (completion_prefix_style)
6363 (completion_difference_style, completion_suffix_style): New
6364 globals.
6365 (_initialize_cli_style): Register new globals.
6366 * cli/cli-style.h (completion_prefix_style)
6367 (completion_difference_style, completion_suffix_style): Declare.
6368
51e2cfa2
PA
63692020-05-23 Pedro Alves <palves@redhat.com>
6370
6371 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6372 (parse_escape): Use ISDIGIT instead of isdigit.
6373 (puts_debug): Use gdb_isprint instead of isprint.
6374 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6375 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6376 ISSPACE instead of isspace.
6377 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6378 instead of isspace.
6379 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6380 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6381 instead of isxdigit and ISDIGIT instead of isdigit.
6382
80fc5e77
SM
63832020-05-22 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * gdbtypes.h (struct type) <field>: New method.
6386 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6387 or type::field.
6388
3cabb6b0
SM
63892020-05-22 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6392 (TYPE_FIELDS): Use type::fields. Change all call sites that
6393 modify the propery to use type::set_fields instead.
6394
1f704f76
SM
63952020-05-22 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6398 type::num_fields instead.
6399
5e33d5f4
SM
64002020-05-22 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6403 methods.
6404 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6405 that modify the number of fields to use type::set_num_fields
6406 instead.
6407
9392ebb3
TT
64082020-05-22 Tom Tromey <tromey@adacore.com>
6409
6410 * compile/compile-object-load.h (munmap_list_free): Don't
6411 declare.
6412
7c13f4e8
AB
64132020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * annotate.c (annotate_source_line): Update return type, add call
6416 to update current symtab and line.
6417 * annotate.h (annotate_source_line): Update return type, and
6418 extend header comment.
6419 * source.c (info_line_command): Check annotation_level before
6420 calling annotate_source_line.
6421 * stack.c (print_frame_info): If calling annotate_source_line
6422 returns true, then don't print any other source line information.
6423
aa370940
SM
64242020-05-21 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6427
84d53fa9
SM
64282020-05-21 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * coffread.c (patch_type): Remove NULL check before xfree.
6431 * corefile.c (set_gnutarget): Likewise.
6432 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6433 * exec.c (build_section_table): Likewise.
6434 * remote.c (remote_target::pass_signals): Likewise.
6435 * utils.c (n_spaces): Likewise.
6436 * cli/cli-script.c (document_command): Likewise.
6437 * i386-windows-tdep.c (core_process_module_section): Likewise.
6438 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6439
9d428aae
SM
64402020-05-20 Simon Marchi <simon.marchi@efficios.com>
6441
6442 * symfile.c (reread_symbols): Clear objfile's section_offsets
6443 vector and section indices, re-compute them by calling
6444 sym_offsets.
6445
250106a7
TT
64462020-05-20 Tom Tromey <tromey@adacore.com>
6447
6448 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6449 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6450
9a0bacfb
TV
64512020-05-20 Tom de Vries <tdevries@suse.de>
6452
6453 PR symtab/25833
6454 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6455
7b958a48
AM
64562020-05-20 Alan Modra <amodra@gmail.com>
6457
6458 PR 25993
6459 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6460 bfd_set_filename.
6461 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6462 passed to bfd_set_filename.
6463 * symfile-mem.c (add_vsyscall_page): Likewise for string
6464 passed to symbol_file_add_from_memory.
6465 (symbol_file_add_from_memory): Make name param a const char* and
6466 don't strdup.
6467
c7e97679
AM
64682020-05-20 Alan Modra <amodra@gmail.com>
6469
6470 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6471 rather than accessing bfd->filename directly.
6472 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6473 and use bfd_section_name.
6474 * dwarf2/frame.c (decode_frame_entry): Likewise.
6475 * exec.c (exec_set_section_address): Likewise.
6476 * solib-aix.c (solib_aix_bfd_open): Likewise.
6477 * stap-probe.c (get_stap_base_address): Likewise.
6478 * symfile.c (reread_symbols): Likewise.
6479
563c591b
TT
64802020-05-19 Tom Tromey <tromey@adacore.com>
6481
6482 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6483
f408d82c
SM
64842020-05-19 Simon Marchi <simon.marchi@efficios.com>
6485
6486 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6487
98c59b52
PA
64882020-05-19 Pedro Alves <palves@redhat.com>
6489
6490 * NEWS (set exec-file-mismatch): Adjust entry.
6491 * exec.c: Include "build-id.h".
6492 (validate_exec_file): Try to match build IDs instead of filenames.
6493 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6494 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6495 and pass down 'warn_if_slow'.
6496 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6497 gdb_bfd_open_closure to pass it down.
6498 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6499
4111f652
PA
65002020-05-19 Pedro Alves <palves@redhat.com>
6501
6502 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6503 * target.c (target_fileio_open_1): Rename to target_fileio_open
6504 and make extern. Use bool.
6505 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6506 (target_fileio_read_alloc_1): Adjust.
6507 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6508 (target_fileio_open_warn_if_slow): Delete declaration.
6509
ad80db5b
PA
65102020-05-19 Pedro Alves <palves@redhat.com>
6511
6512 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6513 Adjust all callers.
6514
1d6ce4d3
YS
65152020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6516
6517 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6518 whether disp is negative.
6519
9005fbbb
SM
65202020-05-19 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * symfile.h (struct symfile_segment_data)
6523 <~symfile_segment_data>: Remove.
6524 <segment_info>: Change to std::vector.
6525 * symfile.c (default_symfile_segments): Update.
6526 * elfread.c (elf_symfile_segments): Update.
6527
68b888ff
SM
65282020-05-19 Simon Marchi <simon.marchi@efficios.com>
6529
6530 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6531 <segments>: New.
6532 <segment_bases, segment_sizes>: Remove.
6533 * symfile.c (default_symfile_segments): Update.
6534 * elfread.c (elf_symfile_segments): Update.
6535 * remote.c (remote_target::get_offsets): Update.
6536 * solib-target.c (solib_target_relocate_section_addresses):
6537 Update.
6538
62982abd
SM
65392020-05-19 Simon Marchi <simon.marchi@efficios.com>
6540
6541 * symfile.h (struct symfile_segment_data): Initialize fields.
6542 <~symfile_segment_data>: Add.
6543 (symfile_segment_data_up): New.
6544 (struct sym_fns) <sym_segments>: Return a
6545 symfile_segment_data_up.
6546 (default_symfile_segments): Return a symfile_segment_data_up.
6547 (free_symfile_segment_data): Remove.
6548 (get_symfile_segment_data): Return a symfile_segment_data_up.
6549 * symfile.c (default_symfile_segments): Likewise.
6550 (get_symfile_segment_data): Likewise.
6551 (free_symfile_segment_data): Remove.
6552 (symfile_find_segment_sections): Update.
6553 * elfread.c (elf_symfile_segments): Return a
6554 symfile_segment_data_up.
6555 * remote.c (remote_target::get_offsets): Update.
6556 * solib-target.c (solib_target_relocate_section_addresses):
6557 Update.
6558 * symfile-debug.c (debug_sym_segments): Return a
6559 symfile_segment_data_up.
6560
7f204339
RO
65612020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6562
e52a0f1b
RO
6563 PR build/25981
6564 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6565 Hardcode register numbers.
6566
7f204339
RO
6567 PR build/25981
6568 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6569 procfs_find_LDT_entry): Remove.
6570 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6571 procfs_find_LDT_entry): Remove.
6572 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6573 Remove.
6574
7f32a4d5
PA
65752020-05-17 Pedro Alves <palves@redhat.com>
6576 Andrew Burgess <andrew.burgess@embecosm.com>
6577 Keno Fischer <keno@juliacomputing.com>
6578
6579 PR gdb/25741
6580 * breakpoint.c (build_target_condition_list): Update comments.
6581 (build_target_command_list): Update comments and skip matching
6582 locations.
6583 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6584 a separate function. Simplify "set breakpoint auto-hw off"
6585 handling.
6586 (insert_breakpoints): Update comment.
6587 (tracepoint_locations_match): New parameter. For breakpoints,
6588 compare location types too, if the caller wants to.
6589 (handle_automatic_hardware_breakpoints): New functions.
6590 (bp_location_is_less_than): Also sort by location type and
6591 hardware breakpoint length.
6592 (update_global_location_list): Handle "set breakpoint auto-hw on"
6593 here.
6594 (update_breakpoint_locations): Ask breakpoint_locations_match to
6595 ignore location types.
6596
7d93a1e0
SM
65972020-05-16 Simon Marchi <simon.marchi@efficios.com>
6598
6599 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6600 type::name instead.
6601
d0e39ea2
SM
66022020-05-16 Simon Marchi <simon.marchi@efficios.com>
6603
6604 * gdbtypes.h (struct type) <name, set_name>: New methods.
6605 (TYPE_CODE): Use type::name. Change all call sites used to set
6606 the name to use type::set_name instead.
6607
2dab0c7b
TT
66082020-05-16 Tom Tromey <tom@tromey.com>
6609
6610 * top.c (quit_force): Update.
6611 * infrun.c (handle_no_resumed): Update.
6612 * top.h (all_uis): New function.
6613 (ALL_UIS): Remove.
6614
59f7bd8d
SM
66152020-05-16 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6618
9bf058f0
PA
66192020-05-16 Pedro Alves <palves@redhat.com>
6620
6621 * ia64-linux-nat.c
6622 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6623 Declare method.
6624 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6625
8f86ae1a
SM
66262020-05-15 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6629 (sparc64_adi_info): Likewise.
6630
d6bc0792
TT
66312020-05-15 Tom Tromey <tom@tromey.com>
6632
6633 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6634 block_objfile.
6635 (lookup_objfile_from_block): Remove.
6636 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6637 (lookup_global_symbol): Use block_objfile.
6638 * symtab.h (lookup_objfile_from_block): Don't declare.
6639 * printcmd.c (clear_dangling_display_expressions): Use
6640 block_objfile.
6641 * parse.c (operator_check_standard): Use block_objfile.
6642
8c14c3a3
TT
66432020-05-15 Tom Tromey <tom@tromey.com>
6644
6645 * language.c (language_alloc_type_symbol): Set
6646 SYMBOL_SECTION.
6647 * symtab.c (initialize_objfile_symbol): Remove.
6648 (allocate_symbol): Remove.
6649 (allocate_template_symbol): Remove.
6650 * dwarf2/read.c (fixup_go_packaging): Use "new".
6651 (new_symbol): Use "new".
6652 (read_variable): Don't call initialize_objfile_symbol. Use
6653 "new".
6654 (read_func_scope): Use "new".
6655 * xcoffread.c (process_xcoff_symbol): Don't call
6656 initialize_objfile_symbol.
6657 (SYMBOL_DUP): Remove.
6658 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6659 "new".
6660 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6661 (allocate_template_symbol): Don't declare.
6662 (struct symbol): Add copy constructor. Change defaults.
6663 * jit.c (finalize_symtab): Use "new".
6664 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6665 Use "new".
6666 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6667 (common_block_end): Use "new".
6668 * mdebugread.c (parse_symbol): Use "new".
6669 (new_symbol): Likewise.
6670
5b4a1a8d
PW
66712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6672
6673 * NEWS: Mention changes to help and apropos.
6674
57b4f16e
PW
66752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6676
6677 * command.h (enum command_class): Improve comments, document
6678 that class_alias is for user-defined aliases, give the class
6679 name for each class, remove unused class_xdb.
6680 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6681 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6682 by a precise class.
6683 * infcmd.c (_initialize_infcmd): Likewise.
6684 * reverse.c (_initialize_reverse): Likewise.
6685 * stack.c (_initialize_stack): Likewise.
6686 * symfile.c (_initialize_symfile): Likewise.
6687 * tracepoint.c (_initialize_tracepoint): Likewise.
6688
7c05caf7
PW
66892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6690
6691 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6692 when their aliased command is traversed.
6693 (help_cmd): Add fput_command_names_styled call to
6694 output command name and aliases when command has an alias.
6695
3b3aaacb
PW
66962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6697
6698 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6699 * cli/cli-decode.c (help_cmd_list): Declare as static,
6700 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6701 a command together with the command.
6702 (fput_command_name_styled, fput_command_names_styled): New functions.
6703 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6704 fput_command_name_styled.
6705 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6706 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6707
7aa1b46f
PW
67082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6711 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6712 * command.h (cmd_show_list): Likewise.
6713 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6714 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6715
89bcba74
PW
67162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6717
6718 * unittests/command-def-selftests.c (traverse_command_structure):
6719 Verify all commands of a list have the same prefix command and
6720 that only the top cmdlist commands have a null prefix.
6721
3f4d92eb
PW
67222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6723
6724 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6725 as prefix, not one of its aliases.
6726 (set_cmd_prefix): Remove.
6727 (do_add_cmd): Centralize the setting of the prefix of a command, when
6728 command is defined after its full chain of prefix commands.
6729 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6730 (add_setshow_cmd_full): Likewise.
6731 (update_prefix_field_of_prefixed_commands): New function.
6732 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6733 update_prefix_field_of_prefixed_commands.
6734 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6735 addresses of remote_set_cmdlist and remote_show_cmdlist given
6736 as argument, not the address of an argument.
6737 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6738 * gdb/remote.c (_initialize_remote): Likewise.
6739
0605465f
PW
67402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6741
6742 * cli/cli-cmds.c (alias_command): Check for an existing alias
6743 using lookup_cmd_composition, as valid_command_p is too strict
6744 and forbids aliases that are the prefix of an existing alias
6745 or command.
6746 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6747 command is properly recognised as a valid command.
6748
58e6ac70
PW
67492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6750
6751 * unittests/help-doc-selftests.c: Rename to
6752 unittests/command-def-selftests.c
6753 * unittests/command-def-selftests.c (help_doc_tests): Update some
6754 comments.
6755 (command_structure_tests, traverse_command_structure): New namespace
6756 and function.
6757 (command_structure_invariants_tests): New function.
6758 (_initialize_command_def_selftests) Renamed from
6759 _initialize_help_doc_selftests, register command_structure_invariants
6760 selftest.
6761
a7b9ceb8
PW
67622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6763
6764 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6765 an alias of 'show'.
6766
b2188a06
JB
67672020-05-15 Joel Brobecker <brobecker@adacore.com>
6768
6769 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6770 ada_is_fixed_point_type. Update all callers.
6771 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6772 all callers.
6773 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6774 Update all callers.
6775 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6776 print_fixed_point_type. Update all callers.
6777 * ada-valprint.c (ada_value_print_num): Replace call to
6778 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6779
a51951c2
KB
67802020-05-14 Kevin Buettner <kevinb@redhat.com>
6781
6782 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6783 processors.
6784 (cpu_supports_bts): Add CV_AMD case.
6785
29d6859f
LM
67862020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6787 Simon Marchi <simon.marchi@efficios.com>
6788
6789 * infrun.c (stop_all_threads): Collect multiple wait events at
6790 each pass.
6791
78134374
SM
67922020-05-14 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6795 type::code instead.
6796
67607e24
SM
67972020-05-14 Simon Marchi <simon.marchi@efficios.com>
6798
6799 * gdbtypes.h (struct type) <code, set_code>: New methods.
6800 (TYPE_CODE): Use type::code. Change all call sites used to set
6801 the code to use type::set_code instead.
6802
a05575d3
TBA
68032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6804 Tom de Vries <tdevries@suse.de>
6805 Pedro Alves <palves@redhat.com>
6806
6807 PR threads/25478
6808 * infrun.c (stop_all_threads): Do NOT ignore
6809 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6810 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6811 received.
6812 (handle_no_resumed): Remove code handling a live inferior with no
6813 threads.
6814 * remote.c (has_single_non_exited_thread): New.
6815 (remote_target::update_thread_list): Do not delete a thread if is
6816 the last thread of the process.
6817 * thread.c (thread_select): Call delete_exited_threads instead of
6818 prune_threads.
6819
6ad82919
TBA
68202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6821
6822 * infrun.c (stop_all_threads): Enable/disable thread events of all
6823 targets. Move a debug message denoting the end of the function
6824 into the SCOPED_EXIT block.
6825
d890404b
TBA
68262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6827
6828 * process-stratum-target.h: Include <set>.
6829 (all_non_exited_process_targets, switch_to_target_no_thread): New
6830 function declarations.
6831 * process-stratum-target.c (all_non_exited_process_targets)
6832 (switch_to_target_no_thread): New function implementations.
6833
293b3ebc
TBA
68342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6835
6836 * infrun.c (handle_inferior_event): Extract out a piece of code
6837 into...
6838 (mark_non_executing_threads): ...this new function.
6839
7ca9b62a
TBA
68402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6841
6842 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6843 use.
6844
fc75c28b
TBA
68452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6846
6847 * regcache.c (regcache_read_pc_protected): New function
6848 implementation that returns 0 if the PC cannot read via
6849 'regcache_read_pc'.
6850 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6851 instead of 'regcache_read_pc'.
6852 (keep_going_pass_signal): Ditto.
6853
a89febbd
TT
68542020-05-13 Tom Tromey <tromey@adacore.com>
6855
6856 * ada-lang.c (align_value): Remove.
6857 (ada_template_to_fixed_record_type_1): Use align_up.
6858
f7e23710
TBA
68592020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6860
6861 * async-event.c: Update the copyright year.
6862 * async-event.h: Update the copyright year.
6863
02ff80c2
SM
68642020-05-12 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * objfiles.h (is_addr_in_objfile,
6867 shared_objfile_contains_address_p): Return bool.
6868 * objfile.c (is_addr_in_objfile,
6869 shared_objfile_contains_address_p): Return bool.
6870
4fd6c7e8
TT
68712020-05-11 Tom Tromey <tromey@adacore.com>
6872
6873 * cli/cli-cmds.c (info_command): Restore.
6874 (_initialize_cli_cmds): Use add_prefix_command for "info".
6875 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6876
5eb68a39
TT
68772020-05-11 Tom Tromey <tromey@adacore.com>
6878
6879 * ada-lang.c (ada_value_primitive_field): Now public.
6880 * ada-lang.h (ada_value_primitive_field): Declare.
6881 * ada-valprint.c (print_field_values): Use
6882 ada_value_primitive_field for wrapper fields.
6883
7666722f
TV
68842020-05-11 Tom de Vries <tdevries@suse.de>
6885
6886 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6887 MODULE_DOMAIN.
6888
3ee6bb11
TV
68892020-05-11 Tom de Vries <tdevries@suse.de>
6890
6891 PR symtab/25941
6892 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6893 with length 0, if not gdb-produced.
6894 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6895
43434996
TV
68962020-05-09 Tom de Vries <tdevries@suse.de>
6897
6898 PR gdb/25955
6899 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6900 calculation.
6901
2f78cffc
TT
69022020-05-09 Tom Tromey <tom@tromey.com>
6903
6904 * top.c (server_command): Now bool.
6905 * top.h (server_command): Now bool.
6906
4f7bc5ed
TT
69072020-05-08 Tom Tromey <tromey@adacore.com>
6908
6909 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6910 already being processed.
6911
8be4b118
TT
69122020-05-08 Tom Tromey <tom@tromey.com>
6913
6914 * printcmd.c (struct display) <next>: Remove.
6915 <display>: New constructor.
6916 <exp_string>: Now a std::string.
6917 <enabled_p>: Now a bool.
6918 (display_number): Move definition earlier.
6919 (displays): Rename from display_chain. Now a std::vector.
6920 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6921 (display_command): Update.
6922 (do_one_display, disable_display)
6923 (enable_disable_display_command, do_enable_disable_display):
6924 Update.
6925 (free_display): Remove.
6926 (clear_displays): Rewrite.
6927 (delete_display): Update.
6928 (map_display_numbers): Use function_view. Remove "data"
6929 parameter. Update.
6930 (do_delete_display): Remove.
6931 (undisplay_command): Update.
6932 (do_one_display, do_displays, disable_display)
6933 (info_display_command): Update.
6934 (do_enable_disable_display): Remove.
6935 (enable_disable_display_command)
6936 (clear_dangling_display_expressions): Update.
6937
94c93c35
TT
69382020-05-08 Tom Tromey <tom@tromey.com>
6939
6940 * symtab.c (set_symbol_cache_size)
6941 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6942 (maintenance_print_symbol_cache_statistics): Update.
6943 * symmisc.c (print_symbol_bcache_statistics)
6944 (print_objfile_statistics, maintenance_print_objfiles)
6945 (maintenance_info_symtabs, maintenance_check_symtabs)
6946 (maintenance_expand_symtabs, maintenance_info_line_tables):
6947 Update.
6948 * symfile-debug.c (set_debug_symfile): Update.
6949 * source.c (forget_cached_source_info): Update.
6950 * python/python.c (gdbpy_progspaces): Update.
6951 * psymtab.c (maintenance_info_psymtabs): Update.
6952 * probe.c (parse_probes): Update.
6953 * linespec.c (iterate_over_all_matching_symtabs)
6954 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6955 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6956 * exec.c (exec_target::close): Update.
6957 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6958 * breakpoint.c (print_one_breakpoint_location)
6959 (create_longjmp_master_breakpoint)
6960 (create_std_terminate_master_breakpoint): Update.
6961 * progspace.c (program_spaces): Now a std::vector.
6962 (maybe_new_address_space): Update.
6963 (add_program_space): Remove.
6964 (program_space::program_space): Update.
6965 (remove_program_space): Update.
6966 (number_of_program_spaces): Remove.
6967 (print_program_space, update_address_spaces): Update.
6968 * progspace.h (program_spaces): Change type.
6969 (ALL_PSPACES): Remove.
6970 (number_of_program_spaces): Don't declare.
6971 (struct program_space) <next>: Remove.
6972
a1fd1ac9
TT
69732020-05-08 Tom Tromey <tom@tromey.com>
6974
6975 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6976 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6977 (enable_break): Update.
6978 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6979 (frv_fdpic_find_canonical_descriptor): Update.
6980 (frv_fetch_objfile_link_map): Update.
6981 * progspace.c (program_space::free_all_objfiles): Update.
6982 (program_space::solibs): New method.
6983 * progspace.h (struct program_space) <solibs>: New method.
6984 * solist.h (master_so_list): Don't declare.
6985 (ALL_SO_LIBS): Remove.
6986 * solib.h (so_list_head): Remove.
6987 (update_solib_list): Update comment.
6988 * solib.c (master_so_list): Remove.
6989 (solib_used, update_solib_list, solib_add)
6990 (info_sharedlibrary_command, clear_solib)
6991 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6992
38eae084
TT
69932020-05-08 Tom Tromey <tom@tromey.com>
6994
6995 * extension.c (extension_languages): Now a std::array.
6996 (ALL_EXTENSION_LANGUAGES): Remove.
6997 (get_ext_lang_defn, get_ext_lang_of_file)
6998 (eval_ext_lang_from_control_command): Update.
6999 (finish_ext_lang_initialization)
7000 (auto_load_ext_lang_scripts_for_objfile)
7001 (ext_lang_type_printers::ext_lang_type_printers)
7002 (apply_ext_lang_type_printers)
7003 (ext_lang_type_printers::~ext_lang_type_printers)
7004 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7005 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7006 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7007 (get_matching_xmethod_workers, ext_lang_colorize)
7008 (ext_lang_before_prompt): Update.
7009 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7010
596dc4ad
TT
70112020-05-08 Tom Tromey <tom@tromey.com>
7012
7013 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7014 overload.
7015 <swap_string, m_string>: Remove.
7016 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7017 Update.
7018 * stabsread.c (define_symbol, read_type): Update.
7019 * linespec.c (find_linespec_symbols): Update.
7020 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7021 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7022 * dbxread.c (read_dbx_symtab): Update.
7023 * cp-support.h (cp_canonicalize_string_full)
7024 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7025 Return unique_xmalloc_ptr.
7026 * cp-support.c (inspect_type): Update.
7027 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7028 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7029 Likewise.
7030 * c-typeprint.c (print_name_maybe_canonical): Update.
7031 * break-catch-throw.c (check_status_exception_catchpoint):
7032 Update.
7033
bf4cb9be
TV
70342020-05-08 Tom de Vries <tdevries@suse.de>
7035
7036 * infrun.c (follow_fork): Copy current_line and current_symtab to
7037 child thread.
7038
a1b68f28
SM
70392020-05-07 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * async-event.c (struct async_signal_handler, struct
7042 async_event_handler): Reformat, remove typedef.
7043
98d48915
SM
70442020-05-07 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7047 access thistype->main_type->dyn_prop_list directly.
7048
7aa91313
SM
70492020-05-07 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7052 (remove_dyn_prop): Remove. Update all users to use
7053 type::remove_dyn_prop.
7054 * gdbtypes.c (remove_dyn_prop): Rename to...
7055 (type::remove_dyn_prop): ... this.
7056
5c54719c
SM
70572020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7058
7059 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7060 (add_dyn_prop): Remove. Update all users to use
7061 type::add_dyn_prop.
7062 * gdbtypes.c (add_dyn_prop): Rename to...
7063 (type::add_dyn_prop): ... this.
7064
24e99c6c
SM
70652020-05-07 Simon Marchi <simon.marchi@efficios.com>
7066
7067 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7068 (get_dyn_prop): Remove. Update all users to use
7069 type::dyn_prop.
7070 * gdbtypes.c (get_dyn_prop): Rename to...
7071 (type::dyn_prop): ... this.
7072
0d4bf016
SM
70732020-05-06 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7076
ac4a4f1c
SM
70772020-05-06 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7080 instruction, skip it if it's there.
7081
a3bbacc1
SM
70822020-05-05 Simon Marchi <simon.marchi@efficios.com>
7083
7084 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7085
c3236f84
SM
70862020-05-04 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7089 * gdbtypes.c (recursive_dump_type): Remove use of
7090 TYPE_INCOMPLETE.
7091
3b6acaee
TT
70922020-05-03 Tom Tromey <tom@tromey.com>
7093
7094 * breakpoint.c (catch_command, tcatch_command): Remove.
7095 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7096 add_show_prefix_cmd.
7097 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7098 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7099 Remove.
7100 (add_internal_problem_command): Use add_basic_prefix_cmd,
7101 add_show_prefix_cmd.
7102 * mips-tdep.c (set_mipsfpu_command): Remove.
7103 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7104 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7105 (_initialize_index_cache): Use add_basic_prefix_cmd.
7106 * memattr.c (dummy_cmd): Remove.
7107 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7108 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7109 (_initialize_tui_win): Use add_basic_prefix_cmd,
7110 add_show_prefix_cmd.
7111 * cli/cli-logging.c (set_logging_command): Remove.
7112 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7113 add_show_prefix_cmd.
7114 (show_logging_command): Remove.
7115 * target.c (target_command): Remove.
7116 (add_target): Use add_basic_prefix_cmd.
7117
a51119cd
HD
71182020-05-02 Hannes Domani <ssbssa@yahoo.de>
7119
7120 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7121
652fc23a 71222020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7123
652fc23a
PW
7124 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7125 info_command.
7126
117539e6
KR
71272020-04-30 Kamil Rytarowski <n54@gmx.com>
7128
7129 * nbsd-nat.c (nbsd_enable_proc_events)
7130 (nbsd_nat_target::post_startup_inferior): Add.
7131 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7132 (nbsd_nat_target::update_thread_list): Rewrite.
7133 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7134 "PTRACE_LWP_CREATE".
7135 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7136
102e38eb 71372020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7138
102e38eb
PW
7139 * stack.c (_initialize_stack): Remove duplicated creation
7140 of "frame" command and "f" alias.
7141
ee9d1e5f
HD
71422020-04-30 Hannes Domani <ssbssa@yahoo.de>
7143
7144 PR gdb/18706
7145 * gdbtypes.c (check_typedef): Calculate size of array of
7146 stubbed type.
7147
627c7fb8
HD
71482020-04-30 Hannes Domani <ssbssa@yahoo.de>
7149
7150 PR gdb/15559
7151 * i386-tdep.c (i386_push_dummy_call): Call
7152 i386_thiscall_push_dummy_call.
7153 (i386_thiscall_push_dummy_call): New function.
7154 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7155 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7156 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7157
ffc2844e
SM
71582020-04-29 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * gdbarch.sh (do_read): Add shellcheck disable directive for
7161 warning SC2162.
7162
1207375d
SM
71632020-04-29 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7166 "referenced but not assigned" warning.
7167
9fdb2916
SM
71682020-04-29 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * gdbarch.sh: Remove code that sets fallbackdefault.
7171
759cea5e
SM
71722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7173
7174 * gdbarch.sh: Use shell operators && and || instead of
7175 -a and -o.
7176
cb02ab24
SM
71772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * gdbarch.sh: Use $(...) instead of `...`.
7180
a6fc5ffc
SM
71812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7182
7183 * gdbarch.sh: Use double quotes around variables.
7184
8d113d13
SM
71852020-04-29 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * gdbarch.sh: Use %s with printf, instead of variables in the
7188 format string.
7189
ed6acedd
TT
71902020-04-29 Tom Tromey <tromey@adacore.com>
7191
7192 PR ada/25875:
7193 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7194 type fields here.
7195 (read_enumeration_type): Call
7196 update_enumeration_type_from_children later. Update comments.
7197 (process_enumeration_scope): Don't create type fields.
7198
b68b1b58
KR
71992020-04-29 Kamil Rytarowski <n54@gmx.com>
7200
7201 * nbsd-tdep.c: Include "xml-syscall.h".
7202 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7203
f94b2e03
KR
72042020-04-29 Kamil Rytarowski <n54@gmx.com>
7205
7206 * nbsd-nat.c: Include "sys/wait.h".
7207 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7208 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7209 (nbsd_nat_target::remove_exec_catchpoint)
7210 (nbsd_nat_target::set_syscall_catchpoint): Add.
7211 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7212 (nbsd_nat_target::insert_exec_catchpoint)
7213 (nbsd_nat_target::remove_exec_catchpoint)
7214 (nbsd_nat_target::set_syscall_catchpoint): Add.
7215 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7216 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7217 `nbsd_get_syscall_number'.
7218
fc49bc72
TT
72192020-04-29 Tom Tromey <tom@tromey.com>
7220
7221 * stack.c (print_block_frame_labels): Remove.
7222
d642b692
HD
72232020-04-29 Hannes Domani <ssbssa@yahoo.de>
7224
7225 PR gdb/17320
7226 * ada-valprint.c (val_print_packed_array_elements): Move array
7227 end bracket to new line.
7228 (ada_val_print_string): Remove extra spaces before first array
7229 element.
7230 * c-valprint.c (c_value_print_array): Likewise.
7231 * m2-valprint.c (m2_print_array_contents): Likewise.
7232 (m2_value_print_inner): Likewise.
7233 * p-valprint.c (pascal_value_print_inner): Likewise.
7234 * valprint.c (generic_val_print_array): Likewise.
7235 (value_print_array_elements): Move first array element and array
7236 end bracket to new line.
7237
ea90f227
TV
72382020-04-29 Tom de Vries <tdevries@suse.de>
7239
7240 PR symtab/25889
7241 * linespec.c (find_method): Fix ix calculation.
7242
4498ef4f
KR
72432020-04-28 Kamil Rytarowski <n54@gmx.com>
7244
7245 * syscalls/update-netbsd.sh: New file.
7246 * syscalls/netbsd.xml: Regenerate.
7247 * data-directory/Makefile.in: Register `netbsd.xml' in
7248 `SYSCALLS_FILES'.
7249
a55e30b5
SM
72502020-04-28 Simon Marchi <simon.marchi@efficios.com>
7251
7252 * syscalls/update-freebsd.sh: Add double quotes.
7253
2b2fbab8
TT
72542020-04-28 Tom Tromey <tom@tromey.com>
7255
7256 * NEWS: Update.
7257 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7258 (cmdpy_init): Allow class_tui.
7259
a65189c9
TV
72602020-04-28 Mark Williams <mark@myosotissp.com>
7261
7262 PR gdb/24480
7263 * dwarf2read.c: Add missing assingments to list_in_scope when
7264 start_symtab was already called.
7265
1b95cdb7
SM
72662020-04-28 Simon Marchi <simon.marchi@efficios.com>
7267
7268 PR gdb/25881
7269 * dwarf2/read.c (offset_map_type): Use
7270 gdb:hash_enum<sect_offset> as hash function.
7271
15cd93d0
TV
72722020-04-28 Tom de Vries <tdevries@suse.de>
7273
7274 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7275 with DW_AT_signature.
7276
1eb39914
SM
72772020-04-27 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * configure.ac: Remove check for fs_base/gs_base in
7280 user_regs_struct.
7281 * configure: Re-generate.
7282 * config.in: Re-generate.
7283 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7284 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7285 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7286
991a3e2e
LM
72872020-04-27 Luis Machado <luis.machado@linaro.org>
7288
7289 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7290 problematic inline frame unwinding situation.
7291 * frame.c (frame_id_computed_p): New function.
7292 * frame.h (frame_id_computed_p): New prototype.
7293
361ba0e8
TT
72942020-04-26 Tom Tromey <tom@tromey.com>
7295
7296 * command.h (enum command_class) <class_pseudo>: Remove.
7297
bc3609fd
PW
72982020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7299
7300 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7301 and whitespace.
7302
b9771db7
KR
73032020-04-25 Kamil Rytarowski <n54@gmx.com>
7304
ec16513e
SM
7305 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7306 `PT_GET_PROCESS_STATE' block.
b9771db7 7307
7151c1af
TT
73082020-04-24 Tom Tromey <tom@tromey.com>
7309
7310 * symtab.h (symbol_get_demangled_name): Don't declare.
7311 * symtab.c (symbol_get_demangled_name): Remove.
7312 (general_symbol_info::natural_name)
7313 (general_symbol_info::demangled_name): Update.
7314
906bb4c5
TT
73152020-04-24 Tom Tromey <tom@tromey.com>
7316
7317 PR rust/25025:
7318 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7319
bcfe6157
TT
73202020-04-24 Tom Tromey <tom@tromey.com>
7321
7322 PR symtab/12707:
7323 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7324 exists.
7325 (new_symbol): Likewise.
7326 * compile/compile-object-load.c (get_out_value_type): Use
7327 symbol_matches_search_name.
7328
f049a313
TT
73292020-04-24 Tom Tromey <tom@tromey.com>
7330
7331 * dwarf2/read.c (add_partial_symbol): Do not call
7332 compute_and_set_names.
7333
76e288d1
TT
73342020-04-24 Tom Tromey <tom@tromey.com>
7335
7336 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7337 overload.
7338
2467f4f6
TT
73392020-04-24 Tom Tromey <tom@tromey.com>
7340
7341 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7342 (add_psymbol_to_list): New overload. Make old overload call new
7343 one.
7344 * psympriv.h (add_psymbol_to_list): New overload.
7345
e61108c9
TT
73462020-04-24 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2/read.c (partial_die_info::read) <case
7349 DW_AT_linkage_name>: Use value_as_string.
7350 (dwarf2_string_attr): Use value_as_string.
7351 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7352 method.
7353 * dwarf2/attribute.c (attribute::value_as_string): New method.
7354
8c87a452
TT
73552020-04-24 Tom Tromey <tom@tromey.com>
7356
7357 * symtab.c (general_symbol_info::natural_name)
7358 (general_symbol_info::demangled_name): Check for language_rust.
7359
787de330
TT
73602020-04-24 Tom Tromey <tom@tromey.com>
7361
7362 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7363 (dwarf2_physname): ... from here.
7364 (partial_die_info::read): Add Rust "{" hack.
7365
ff985671
TT
73662020-04-24 Tom Tromey <tom@tromey.com>
7367
7368 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7369 method.
7370 (symbol_set_demangled_name): Don't declare.
7371 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7372 symbol_set_demangled_name.
7373 (general_symbol_info::set_language)
7374 (general_symbol_info::compute_and_set_names): Update.
7375 * minsyms.c (minimal_symbol_reader::install): Update.
7376 * dwarf2/read.c (new_symbol): Update.
7377
1acda803
TT
73782020-04-24 Tom Tromey <tromey@adacore.com>
7379
7380 PR python/23662:
7381 * python/py-type.c (convert_field): Handle
7382 FIELD_LOC_KIND_DWARF_BLOCK.
7383 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7384 (typy_get_dynamic): Nw function.
7385 (type_object_getset): Add "dynamic".
7386 * NEWS: Add entry.
7387
d656f129
TT
73882020-04-24 Tom Tromey <tromey@adacore.com>
7389
7390 * ada-typeprint.c (print_choices, print_variant_part)
7391 (print_record_field_types_dynamic): New functions.
7392 (print_record_field_types): Use print_record_field_types_dynamic.
7393
7d79de9a
TT
73942020-04-24 Tom Tromey <tromey@adacore.com>
7395
7396 * dwarf2/read.c (handle_data_member_location): New overload.
7397 (dwarf2_add_field): Use it.
7398 (decode_locdesc): Add "computed" parameter. Update comment.
7399 * gdbtypes.c (is_dynamic_type_internal): Also look for
7400 FIELD_LOC_KIND_DWARF_BLOCK.
7401 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7402 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7403 virtual base classes.
7404 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7405 FIELD_LOC_KIND_DWARF_BLOCK.
7406
f8e89861
TT
74072020-04-24 Tom Tromey <tromey@adacore.com>
7408
7409 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7410 * gdbtypes.c (is_dynamic_type_internal): Check
7411 TYPE_HAS_DYNAMIC_LENGTH.
7412 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7413 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7414 New macros.
7415 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7416 constant.
7417
9c6a1327
TT
74182020-04-24 Tom Tromey <tromey@adacore.com>
7419
7420 * dwarf2/read.c (struct variant_field): Rewrite.
7421 (struct variant_part_builder): New.
7422 (struct nextfield): Remove "variant" field. Add "offset".
7423 (struct field_info): Add "current_variant_part" and
7424 "variant_parts".
7425 (alloc_discriminant_info): Remove.
7426 (alloc_rust_variant): New function.
7427 (quirk_rust_enum): Update.
7428 (dwarf2_add_field): Set "offset" member. Don't handle
7429 DW_TAG_variant_part.
7430 (offset_map_type): New typedef.
7431 (convert_variant_range, create_one_variant)
7432 (create_one_variant_part, create_variant_parts)
7433 (add_variant_property): New functions.
7434 (dwarf2_attach_fields_to_type): Call add_variant_property.
7435 (read_structure_type): Don't handle DW_TAG_variant_part.
7436 (handle_variant_part, handle_variant): New functions.
7437 (handle_struct_member_die): Use them.
7438 (process_structure_scope): Don't handle variant parts.
7439 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7440 (struct discriminant_info): Remove.
7441 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7442 (struct main_type) <flag_discriminated_union>: Remove.
7443 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7444 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7445 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7446 Update.
7447 * valops.c (value_union_variant): Remove.
7448 * value.h (value_union_variant): Don't declare.
7449
b249d2c2
TT
74502020-04-24 Tom Tromey <tromey@adacore.com>
7451
7452 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7453 (ada_value_primitive_packed_val): Update.
7454 * ada-valprint.c (ada_value_print_1): Update.
7455 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7456 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7457 just an address. Use evaluate_for_locexpr_baton.
7458 (dwarf2_evaluate_property): Update.
7459 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7460 array_view.
7461 * findvar.c (default_read_var_value): Update.
7462 * gdbtypes.c (compute_variant_fields_inner)
7463 (resolve_dynamic_type_internal): Update.
7464 (resolve_dynamic_type): Change type of valaddr parameter.
7465 * gdbtypes.h (resolve_dynamic_type): Update.
7466 * valarith.c (value_subscripted_rvalue): Update.
7467 * value.c (value_from_contents_and_address): Update.
7468
61122aa9
TT
74692020-04-24 Tom Tromey <tromey@adacore.com>
7470
7471 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7472 "push_initial_value" parameter.
7473 (dwarf2_evaluate_property): Likewise.
7474 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7475
ef83a141
TT
74762020-04-24 Tom Tromey <tromey@adacore.com>
7477
7478 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7479 (variant::matches, compute_variant_fields_recurse)
7480 (compute_variant_fields_inner, compute_variant_fields): New
7481 functions.
7482 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7483 Use resolved_type after type is made.
7484 (operator==): Add new cases.
7485 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7486 (struct discriminant_range, struct variant, struct variant_part):
7487 New.
7488 (union dynamic_prop_data) <variant_parts, original_type>: New
7489 members.
7490 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7491 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7492 constants.
7493 * value.c (unpack_bits_as_long): Now public.
7494 * value.h (unpack_bits_as_long): Declare.
7495
675127ec
TT
74962020-04-24 Tom Tromey <tromey@adacore.com>
7497
7498 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7499 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7500
9852ceef
HD
75012020-04-24 Hannes Domani <ssbssa@yahoo.de>
7502
7503 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7504
7632c6ce
KR
75052020-04-24 Kamil Rytarowski <n54@gmx.com>
7506
7507 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7508 (remove_fork_catchpoint, post_startup_inferior)
7509 (post_attach): Move...
7510 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7511 (remove_fork_catchpoint, post_startup_inferior)
7512 (post_attach): ...here.
7513 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7514 (remove_fork_catchpoint, post_startup_inferior)
7515 (post_attach): Move...
7516 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7517 (remove_fork_catchpoint, post_startup_inferior)
7518 (post_attach): ...here.
7519
7be2bb4f
TT
75202020-04-24 Tom Tromey <tromey@adacore.com>
7521
7522 * nat/windows-nat.h (struct windows_thread_info)
7523 <pc_adjusted>: New member.
7524 * windows-nat.c (windows_fetch_one_register): Check
7525 pc_adjusted.
7526 (windows_nat_target::get_windows_debug_event)
7527 (windows_nat_target::wait): Set pc_adjusted.
7528
f80cb3b4
TV
75292020-04-24 Tom de Vries <tdevries@suse.de>
7530
7531 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7532 Run gdb-add-index inside temp dir.
7533
29514b87
TT
75342020-04-23 Tom Tromey <tromey@adacore.com>
7535
7536 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7537 in loop.
7538
5939967b
LM
75392020-04-23 Luis Machado <luis.machado@linaro.org>
7540
7541 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7542 get_frame_register instead of gdbarch_unwind_pc.
7543
70bc38f5
TV
75442020-04-23 Tom de Vries <tdevries@suse.de>
7545
7546 * symtab.c (lookup_global_symbol): Prefer def over decl.
7547
de82891c
TV
75482020-04-23 Tom de Vries <tdevries@suse.de>
7549
7550 PR symtab/25807
7551 * block.c (best_symbol, better_symbol): Promote to external.
7552 * block.h (best_symbol, better_symbol): Declare.
7553 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7554 decl.
7555
ecc6c606
TT
75562020-04-23 Tom Tromey <tromey@adacore.com>
7557
7558 PR ada/25837:
7559 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7560 "const char *", not a "const std::string &".
7561 <name_and_matcher::operator==>: Update.
7562 * unittests/lookup_name_info-selftests.c: Change type of
7563 "result".
7564
740480b8
TT
75652020-04-23 Tom Tromey <tom@tromey.com>
7566
7567 * inferior.h (iterate_over_inferiors): Don't declare.
7568 * inferior.c (iterate_over_inferiors): Remove.
7569 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7570 Remove.
7571 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7572 use iterate_over_inferiors.
7573 (darwin_resume_inferior_it)
7574 (struct resume_inferior_threads_param)
7575 (darwin_resume_inferior_threads_it): Remove.
7576 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7577
ae3ab1f0
TV
75782020-04-23 Tom de Vries <tdevries@suse.de>
7579
7580 * blockframe.c (find_pc_partial_function): Use
7581 find_pc_sect_compunit_symtab rather than
7582 objfile->sf->qf->find_pc_sect_compunit_symtab.
7583
317d2668
TV
75842020-04-22 Tom de Vries <tdevries@suse.de>
7585
7586 PR symtab/25764
7587 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7588 in psymtabs.
7589
eea9e357
TV
75902020-04-22 Tom de Vries <tdevries@suse.de>
7591
7592 PR symtab/25801
7593 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7594 symtabs.
7595
3d5afab3
TV
75962020-04-22 Tom de Vries <tdevries@suse.de>
7597
7598 PR symtab/25700
7599 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7600 CU if already created.
7601
d43b7a2d
TBA
76022020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7603
7604 * infrun.c (displaced_step_fixup): Switch to the event_thread
7605 before calling displaced_step_restore, not after.
7606
d89edf9b
MM
76072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7608
7609 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7610 its inferior is not recorded by us.
7611 (record_btrace_target_open): Replace call to
7612 all_non_exited_threads () with call to current_inferior
7613 ()->non_exited_threads ().
7614 (record_btrace_target::stop_recording): Likewise.
7615 (record_btrace_target::close): Likewise.
7616 (record_btrace_target::wait): Likewise.
7617 (record_btrace_target::record_stop_replaying): Likewise.
7618
5897fd49
MM
76192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7620
7621 * btrace.c (btrace_enable): Throw an error on double enables and
7622 when enabling recording fails.
7623 (btrace_disable): Throw an error if the thread is not recorded.
7624
1a476b6d
MM
76252020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7626
7627 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7628 request if we do not have a thread_info.
7629
4778a5f8
TV
76302020-04-21 Tom de Vries <tdevries@suse.de>
7631
7632 PR gdb/25471
7633 * thread.c
7634 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7635 exception in get_frame_id.
7636
0fa7617d
TT
76372020-04-20 Tom Tromey <tromey@adacore.com>
7638
7639 * python/python.c (struct gdbpy_event): Mark move constructor as
7640 noexcept.
7641 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7642 constructor as noexcept.
7643 * completer.h (struct completion_result): Mark move constructor as
7644 noexcept.
7645 * completer.c (completion_result::completion_result): Use
7646 initialization style. Don't call reset_match_list.
7647
ad23bda0
MS
76482020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7649
7650 * MAINTAINERS (Write After Approval): Add myself.
7651
45e1f031
TT
76522020-04-18 Tom Tromey <tom@tromey.com>
7653
7654 * windows-tdep.c (init_w32_command_list)
7655 (w32_prefix_command_valid): Restore.
7656 (_initialize_windows_tdep): Call init_w32_command_list.
7657
08feed99
TT
76582020-04-18 Tom Tromey <tom@tromey.com>
7659
7660 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7661 * value.c (value_fn_field): Update.
7662 * valops.c (find_function_in_inferior)
7663 (value_allocate_space_in_inferior): Update.
7664 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7665 Update.
7666 * tui/tui-source.c (tui_source_window::set_contents): Update.
7667 * symtab.c (lookup_global_or_static_symbol)
7668 (find_function_start_sal_1, skip_prologue_sal)
7669 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7670 * symmisc.c (dump_msymbols, dump_symtab_1)
7671 (maintenance_print_one_line_table): Update.
7672 * symfile.c (init_entry_point_info, section_is_mapped)
7673 (list_overlays_command, simple_read_overlay_table)
7674 (simple_overlay_update_1): Update.
7675 * stap-probe.c (handle_stap_probe): Update.
7676 * stabsread.c (dbx_init_float_type, define_symbol)
7677 (read_one_struct_field, read_enum_type, read_range_type): Update.
7678 * source.c (info_line_command): Update.
7679 * python/python.c (gdbpy_source_objfile_script)
7680 (gdbpy_execute_objfile_script): Update.
7681 * python/py-type.c (save_objfile_types): Update.
7682 * python/py-objfile.c (py_free_objfile): Update.
7683 * python/py-inferior.c (python_new_objfile): Update.
7684 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7685 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7686 (maintenance_check_psymtabs): Update.
7687 * printcmd.c (info_address_command): Update.
7688 * objfiles.h (struct objfile) <arch>: New method, from
7689 get_objfile_arch.
7690 (get_objfile_arch): Don't declare.
7691 * objfiles.c (get_objfile_arch): Remove.
7692 (filter_overlapping_sections): Update.
7693 * minsyms.c (msymbol_is_function): Update.
7694 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7695 (output_nondebug_symbol): Update.
7696 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7697 (mdebug_expand_psymtab): Update.
7698 * machoread.c (macho_add_oso_symfile): Update.
7699 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7700 Update.
7701 * linux-fork.c (checkpoint_command): Update.
7702 * linespec.c (convert_linespec_to_sals): Update.
7703 * jit.c (finalize_symtab): Update.
7704 * infrun.c (insert_exception_resume_from_probe): Update.
7705 * ia64-tdep.c (ia64_find_unwind_table): Update.
7706 * hppa-tdep.c (internalize_unwinds): Update.
7707 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7708 Update.
7709 * gcore.c (call_target_sbrk): Update.
7710 * elfread.c (record_minimal_symbol, elf_symtab_read)
7711 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7712 (elf_gnu_ifunc_resolve_by_got): Update.
7713 * dwarf2/read.c (create_addrmap_from_index)
7714 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7715 (read_debug_names_from_section)
7716 (process_psymtab_comp_unit_reader, add_partial_symbol)
7717 (add_partial_subprogram, process_full_comp_unit)
7718 (read_file_scope, read_func_scope, read_lexical_block_scope)
7719 (read_call_site_scope, dwarf2_ranges_read)
7720 (dwarf2_record_block_ranges, dwarf2_add_field)
7721 (mark_common_block_symbol_computed, read_tag_pointer_type)
7722 (read_tag_string_type, dwarf2_init_float_type)
7723 (dwarf2_init_complex_target_type, read_base_type)
7724 (partial_die_info::read, partial_die_info::read)
7725 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7726 (dwarf2_fetch_die_loc_sect_off): Update.
7727 * dwarf2/loc.c (dwarf2_find_location_expression)
7728 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7729 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7730 (dwarf2_loc_desc_get_symbol_read_needs)
7731 (locexpr_describe_location_piece, locexpr_describe_location_1)
7732 (loclist_describe_location): Update.
7733 * dwarf2/index-write.c (write_debug_names): Update.
7734 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7735 * dtrace-probe.c (dtrace_process_dof): Update.
7736 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7737 (process_one_symbol): Update.
7738 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7739 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7740 (coff_read_enum_type): Update.
7741 * cli/cli-cmds.c (edit_command, list_command): Update.
7742 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7743 * breakpoint.c (create_overlay_event_breakpoint)
7744 (create_longjmp_master_breakpoint)
7745 (create_std_terminate_master_breakpoint)
7746 (create_exception_master_breakpoint, get_sal_arch): Update.
7747 * block.c (block_gdbarch): Update.
7748 * annotate.c (annotate_source_line): Update.
7749
0743fc83
TT
77502020-04-17 Tom Tromey <tromey@adacore.com>
7751
7752 * auto-load.c (show_auto_load_cmd): Remove.
7753 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7754 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7755 (maintenance_print_arc_command): Remove.
7756 * tui/tui-win.c (tui_command): Remove.
7757 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7758 * tui/tui-layout.c (tui_layout_command): Remove.
7759 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7760 * python/python.c (user_set_python, user_show_python): Remove.
7761 (_initialize_python): Use add_basic_prefix_cmd,
7762 add_show_prefix_cmd.
7763 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7764 (install_gdb_commands): Use add_basic_prefix_cmd,
7765 add_show_prefix_cmd.
7766 (info_guile_command): Remove.
7767 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7768 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7769 add_show_prefix_cmd.
7770 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7771 Remove do_set and do_show parameters.
7772 * cli/cli-style.c (set_style, show_style): Remove.
7773 (_initialize_cli_style): Use add_basic_prefix_cmd,
7774 add_show_prefix_cmd.
7775 (cli_style_option::add_setshow_commands): Remove do_set and
7776 do_show parameters.
7777 (cli_style_option::add_setshow_commands): Use
7778 add_basic_prefix_cmd, add_show_prefix_cmd.
7779 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7780 (set_style_name): Remove.
7781 * cli/cli-dump.c (dump_command, append_command): Remove.
7782 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7783 (tekhex_dump_command, binary_dump_command)
7784 (binary_append_command): Remove.
7785 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7786 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7787 (init_w32_command_list): Remove; move into ...
7788 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7789 * valprint.c (set_print, show_print, set_print_raw)
7790 (show_print_raw): Remove.
7791 (_initialize_valprint): Use add_basic_prefix_cmd,
7792 add_show_prefix_cmd.
7793 * typeprint.c (set_print_type, show_print_type): Remove.
7794 (_initialize_typeprint): Use add_basic_prefix_cmd,
7795 add_show_prefix_cmd.
7796 * record.c (set_record_command, show_record_command): Remove.
7797 (_initialize_record): Use add_basic_prefix_cmd,
7798 add_show_prefix_cmd.
7799 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7800 add_show_prefix_cmd.
7801 (info_command, show_command, set_debug, show_debug): Remove.
7802 * top.h (set_history, show_history): Don't declare.
7803 * top.c (set_history, show_history): Remove.
7804 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7805 (unset_tdesc_cmd): Remove.
7806 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7807 add_show_prefix_cmd.
7808 * symtab.c (info_module_command): Remove.
7809 (_initialize_symtab): Use add_basic_prefix_cmd.
7810 * symfile.c (overlay_command): Remove.
7811 (_initialize_symfile): Use add_basic_prefix_cmd.
7812 * sparc64-tdep.c (info_adi_command): Remove.
7813 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7814 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7815 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7816 add_show_prefix_cmd.
7817 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7818 (_initialize_serial): Use add_basic_prefix_cmd,
7819 add_show_prefix_cmd.
7820 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7821 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7822 add_show_prefix_cmd.
7823 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7824 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7825 add_show_prefix_cmd.
7826 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7827 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7828 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7829 add_show_prefix_cmd.
7830 * remote.c (remote_command, set_remote_cmd): Remove.
7831 (_initialize_remote): Use add_basic_prefix_cmd.
7832 * record-full.c (set_record_full_command)
7833 (show_record_full_command): Remove.
7834 (_initialize_record_full): Use add_basic_prefix_cmd,
7835 add_show_prefix_cmd.
7836 * record-btrace.c (cmd_set_record_btrace)
7837 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7838 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7839 (cmd_show_record_btrace_pt): Remove.
7840 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7841 add_show_prefix_cmd.
7842 * ravenscar-thread.c (set_ravenscar_command)
7843 (show_ravenscar_command): Remove.
7844 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7845 add_show_prefix_cmd.
7846 * mips-tdep.c (show_mips_command, set_mips_command)
7847 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7848 add_show_prefix_cmd.
7849 * maint.c (maintenance_command, maintenance_info_command)
7850 (maintenance_check_command, maintenance_print_command)
7851 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7852 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7853 add_show_prefix_cmd.
7854 (show_per_command_cmd): Remove.
7855 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7856 Remove.
7857 (maintenance_show_test_settings_cmd): Remove.
7858 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7859 add_show_prefix_cmd.
7860 * maint-test-options.c (maintenance_test_options_command):
7861 Remove.
7862 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7863 * macrocmd.c (macro_command): Remove
7864 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7865 * language.c (set_check, show_check): Remove.
7866 (_initialize_language): Use add_basic_prefix_cmd,
7867 add_show_prefix_cmd.
7868 * infcmd.c (unset_command): Remove.
7869 (_initialize_infcmd): Use add_basic_prefix_cmd.
7870 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7871 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7872 add_show_prefix_cmd.
7873 * go32-nat.c (go32_info_dos_command): Remove.
7874 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7875 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7876 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7877 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7878 (_initialize_frame): Use add_basic_prefix_cmd,
7879 add_show_prefix_cmd.
7880 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7881 (_initialize_dcache): Use add_basic_prefix_cmd,
7882 add_show_prefix_cmd.
7883 * cp-support.c (maint_cplus_command): Remove.
7884 (_initialize_cp_support): Use add_basic_prefix_cmd.
7885 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7886 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7887 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7888 add_basic_prefix_cmd, add_show_prefix_cmd.
7889 * breakpoint.c (save_command): Remove.
7890 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7891 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7892 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7893 add_show_prefix_cmd.
7894 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7895 (set_ada_command, show_ada_command): Remove.
7896 (_initialize_ada_language): Use add_basic_prefix_cmd,
7897 add_show_prefix_cmd.
7898 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7899
3557f442
KR
79002020-04-16 Kamil Rytarowski <n54@gmx.com>
7901
7902 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7903 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7904
16197208
SM
79052020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7906
7907 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7908 warning messages.
7909
00ac85d3
SM
79102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7913 import table is not at beginning of .idata section.
7914
381ce63f
PA
79152020-04-16 Pedro Alves <palves@redhat.com>
7916
7917 * inferior.c (delete_inferior): Use delete operator directly
7918 instead of delete_program_space.
7919 * progspace.c (add_program_space): New, factored out from
7920 program_space::program_space.
7921 (remove_program_space): New, factored out from
7922 delete_program_space.
7923 (program_space::program_space): Remove intro comment. Rewrite.
7924 (program_space::~program_space): Remove intro comment. Call
7925 remove_program_space.
7926 (delete_program_space): Delete.
7927 * progspace.h (program_space::program_space): Make explicit. Move
7928 intro comment here, adjusted.
7929 (program_space::~program_space): Move intro comment here,
7930 adjusted.
7931 (delete_program_space): Remove.
7932
a010605f
TT
79332020-04-16 Tom Tromey <tromey@adacore.com>
7934
7935 * windows-nat.c (windows_nat::handle_access_violation): New
7936 function.
7937 * nat/windows-nat.h (handle_access_violation): Declare.
7938 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7939 windows-nat.c. Call handle_access_violation.
7940
efba5c23
TV
79412020-04-16 Tom de Vries <tdevries@suse.de>
7942
7943 PR symtab/25791
7944 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7945 CUs without psymtab.
7946
97ed802d
KB
79472020-04-16 Kevin Buettner <kevinb@redhat.com>
7948
7949 * python/python.c (do_start_initialization): Don't call
7950 PyEval_InitThreads for Python 3.9 and beyond.
7951
c7d64809
KR
79522020-04-15 Kamil Rytarowski <n54@gmx.com>
7953
7954 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7955 thread functions.
7956 (obsd_nat_target::wait): Likewise.
7957
ce127a96
TT
79582020-04-15 Tom Tromey <tromey@adacore.com>
7959
7960 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7961 (DEBUG_EXCEPT): Use debug_printf.
7962
99f1bc6a
AB
79632020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * completer.c (class completion_tracker::completion_hash_entry)
7966 <hash_name>: New member function.
7967 (completion_tracker::discard_completions): New callback to hash a
7968 completion_hash_entry, pass this to htab_create_alloc.
7969
a0e9b532
JT
79702016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7971
7972 * windows-nat.c (windows_make_so): Warn rather than stopping with
7973 an error if realpath() fails.
7974
06ca5dd4
KR
79752020-04-14 Kamil Rytarowski <n54@gmx.com>
7976
7977 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7978 (nbsd_nat_target::info_proc): Add do_status.
7979
194d088f
TV
79802020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7981 Tom de Vries <tdevries@suse.de>
7982
7983 PR symtab/25718
7984 * psympriv.h (struct partial_symtab::read_symtab)
7985 (struct partial_symtab::expand_psymtab)
7986 (struct partial_symtab::read_dependencies): Update comments.
7987 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7988 read_symtab for includer.
7989 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7990 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7991 (struct dwarf2_include_psymtab::m_readin): Remove.
7992 (struct dwarf2_include_psymtab::includer): New member function.
7993 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7994
c1a66c06
TV
79952020-04-14 Tom de Vries <tdevries@suse.de>
7996
7997 PR symtab/25720
7998 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7999 with NULL symbol_matcher and lookup_name.
8000 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8001 and lookup_name.
8002 * dwarf2/read.c (dw2_expand_symtabs_matching)
8003 (dw2_debug_names_expand_symtabs_matching): Same.
8004 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8005 Make lookup_name a pointer. Update comment.
8006 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8007 lookup_name being a pointer.
8008 * symfile.c (expand_symtabs_matching): Same.
8009 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8010 * linespec.c (iterate_over_all_matching_symtabs): Same.
8011
400b5eca
TT
80122020-04-13 Tom Tromey <tom@tromey.com>
8013
8014 * run-on-main-thread.c: Update include.
8015 * unittests/main-thread-selftests.c: Update include.
8016 * tui/tui-win.c: Update include.
8017 * tui/tui-io.c: Update include.
8018 * tui/tui-interp.c: Update include.
8019 * tui/tui-hooks.c: Update include.
8020 * top.h: Update include.
8021 * top.c: Update include.
8022 * ser-base.c: Update include.
8023 * remote.c: Update include.
8024 * remote-notif.c: Update include.
8025 * remote-fileio.c: Update include.
8026 * record-full.c: Update include.
8027 * record-btrace.c: Update include.
8028 * python/python.c: Update include.
8029 * posix-hdep.c: Update include.
8030 * mingw-hdep.c: Update include.
8031 * mi/mi-main.c: Update include.
8032 * mi/mi-interp.c: Update include.
8033 * main.c: Update include.
8034 * linux-nat.c: Update include.
8035 * interps.c: Update include.
8036 * infrun.c: Update include.
8037 * inf-loop.c: Update include.
8038 * event-top.c: Update include.
8039 * event-loop.c: Move to ../gdbsupport/.
8040 * event-loop.h: Move to ../gdbsupport/.
8041 * async-event.h: Update include.
8042 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8043
93b54c8e
TT
80442020-04-13 Tom Tromey <tom@tromey.com>
8045
8046 * tui/tui-win.c: Include async-event.h.
8047 * remote.c: Include async-event.h.
8048 * remote-notif.c: Include async-event.h.
8049 * record-full.c: Include async-event.h.
8050 * record-btrace.c: Include async-event.h.
8051 * infrun.c: Include async-event.h.
8052 * event-top.c: Include async-event.h.
8053 * event-loop.h: Move some declarations to async-event.h.
8054 * event-loop.c: Don't include ser-event.h or top.h. Move some
8055 code to async-event.c.
8056 * async-event.h: New file.
8057 * async-event.c: New file.
8058 * Makefile.in (COMMON_SFILES): Add async-event.c.
8059 (HFILES_NO_SRCDIR): Add async-event.h.
8060
c1cd3163
TT
80612020-04-13 Tom Tromey <tom@tromey.com>
8062
8063 * utils.c (flush_streams): New function.
8064 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8065
29f2bf4f
TT
80662020-04-13 Tom Tromey <tom@tromey.com>
8067
8068 * event-loop.c (handle_file_event): Use warning, not
8069 printf_unfiltered.
8070
98029d02
TT
80712020-04-13 Tom Tromey <tom@tromey.com>
8072
8073 * event-loop.c: Include <chrono>.
8074
06cc9596
TT
80752020-04-13 Tom Tromey <tom@tromey.com>
8076
8077 * gdb_select.h: Move to ../gdbsupport/.
8078 * event-loop.c: Update include path.
8079 * top.c: Update include path.
8080 * ser-base.c: Update include path.
8081 * ui-file.c: Update include path.
8082 * ser-tcp.c: Update include path.
8083 * guile/scm-ports.c: Update include path.
8084 * posix-hdep.c: Update include path.
8085 * ser-unix.c: Update include path.
8086 * gdb_usleep.c: Update include path.
8087 * mingw-hdep.c: Update include path.
8088 * inflow.c: Update include path.
8089 * infrun.c: Update include path.
8090 * event-top.c: Update include path.
8091
8ae8e197
TT
80922020-04-13 Tom Tromey <tom@tromey.com>
8093
8094 * configure: Rebuild.
8095 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8096
58cf28e8
TT
80972020-04-13 Tom Tromey <tom@tromey.com>
8098
8099 * event-loop.h (start_event_loop): Don't declare.
8100 * event-loop.c (start_event_loop): Move...
8101 * main.c (start_event_loop): ...here. Now static.
8102
b7f999ae
SDJ
81032020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8104
8105 * MAINTAINERS: Update my email address.
8106
1085dfd4
KR
81072020-04-12 Kamil Rytarowski <n54@gmx.com>
8108
8109 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8110 IP_ALL.
8111
49d1d1f5
KR
81122020-04-12 Kamil Rytarowski <n54@gmx.com>
8113
8114 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8115 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8116
b4848d2a
KR
81172020-04-12 Kamil Rytarowski <n54@gmx.com>
8118
8119 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8120 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8121
51c133d5
KR
81222020-04-12 Kamil Rytarowski <n54@gmx.com>
8123
8124 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8125
54b8cbd0
KR
81262020-04-11 Kamil Rytarowski <n54@gmx.com>
8127
8128 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8129 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8130 (nbsd_nat_target::info_proc): New functions.
8131 * nbsd-nat.c (kinfo_get_vmmap): New function.
8132 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8133 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8134 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8135 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8136 functions.
8137 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8138 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8139 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8140 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8141 (KINFO_VME_FLAG_GROWS_DOWN): New.
8142
cf83625d
AS
81432020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8144
8145 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8146 bit shift.
8147
0c4311ab
TT
81482020-04-10 Tom Tromey <tromey@adacore.com>
8149
8150 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8151
3e65b3e9
TT
81522020-04-10 Tom Tromey <tromey@adacore.com>
8153
8154 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8155 separate debug files.
8156
13302e95
HD
81572020-04-10 Hannes Domani <ssbssa@yahoo.de>
8158
8159 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8160 Move to...
8161 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8162 ... here.
8163 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8164 Check for STATUS_WX86_BREAKPOINT.
8165 (windows_nat_target::wait): Same.
8166
bdfc1e8a
TV
81672020-04-10 Tom de Vries <tdevries@suse.de>
8168
8169 PR cli/25808
8170 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8171
f4460aec
SM
81722020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8175 (Write After Approval): Remove Tom de Vries.
8176
a25198bb
BE
81772020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8178
8179 revert partially:
8180 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8181
aac66a4c
SM
8182 * buildsym.c (record_line): Fix undefined behavior and preserve
8183 lines at eof.
a25198bb 8184
206c98a6
KR
81852020-04-09 Kamil Rytarowski <n54@gmx.com>
8186
8187 * auxv.h (svr4_auxv_parse): New.
8188 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8189 and generic_auxv_parse.
8190 (svr4_auxv_parse): Add.
8191 * obsd-tdep.c: Include "auxv.h".
8192 (obsd_auxv_parse): Remove.
8193 (obsd_init_abi): Remove comment.
8194 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8195 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8196 * nbsd-tdep.c: Include "auxv.h".
8197 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8198
71fbdbaf
TT
81992020-04-08 Tom Tromey <tromey@adacore.com>
8200
8201 * nat/windows-nat.h (last_wait_event): Don't declare.
8202 (wait_for_debug_event): Update comment.
8203 * nat/windows-nat.c (last_wait_event): Now static.
8204
2c1d95e8
TT
82052020-04-08 Tom Tromey <tromey@adacore.com>
8206
8207 * windows-nat.c (wait_for_debug_event): Move to
8208 nat/windows-nat.c.
8209 * nat/windows-nat.h (wait_for_debug_event): Declare.
8210 * nat/windows-nat.c (wait_for_debug_event): Move from
8211 windows-nat.c. No longer static.
8212
d2977bc4
TT
82132020-04-08 Tom Tromey <tromey@adacore.com>
8214
8215 * windows-nat.c (get_windows_debug_event): Use
8216 fetch_pending_stop.
8217 * nat/windows-nat.h (fetch_pending_stop): Declare.
8218 * nat/windows-nat.c (fetch_pending_stop): New function.
8219
e758e19c
TT
82202020-04-08 Tom Tromey <tromey@adacore.com>
8221
8222 * windows-nat.c (windows_continue): Use matching_pending_stop and
8223 continue_last_debug_event.
8224 * nat/windows-nat.h (matching_pending_stop)
8225 (continue_last_debug_event): Declare.
8226 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8227 (matching_pending_stop, continue_last_debug_event): New
8228 functions.
8229
8d30e395
TT
82302020-04-08 Tom Tromey <tromey@adacore.com>
8231
8232 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8233 (handle_exception_result): Move to nat/windows-nat.h.
8234 (DEBUG_EXCEPTION_SIMPLE): Remove.
8235 (windows_nat::handle_ms_vc_exception): New function.
8236 (handle_exception): Move to nat/windows-nat.c.
8237 (get_windows_debug_event): Update.
8238 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8239 nat/windows-nat.c.
8240 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8241 (handle_exception_result): Move from windows-nat.c.
8242 (handle_exception): Declare.
8243 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8244 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8245 windows-nat.c.
8246
29de418d
TT
82472020-04-08 Tom Tromey <tromey@adacore.com>
8248
8249 * windows-nat.c (exception_count, event_count): Remove.
8250 (handle_exception, get_windows_debug_event)
8251 (do_initial_windows_stuff): Update.
8252
a816ba18
TT
82532020-04-08 Tom Tromey <tromey@adacore.com>
8254
8255 * windows-nat.c (windows_nat::handle_load_dll)
8256 (windows_nat::handle_unload_dll): Rename. No longer static.
8257 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8258 Declare.
8259
a00caa12
TT
82602020-04-08 Tom Tromey <tromey@adacore.com>
8261
8262 * complaints.h (stop_whining): Declare at top-level.
8263 (complaint): Don't declare stop_whining.
8264
d41b524f
TT
82652020-04-08 Tom Tromey <tromey@adacore.com>
8266
8267 * windows-nat.c (windows_nat::handle_output_debug_string):
8268 Rename. No longer static.
8269 * nat/windows-nat.h (handle_output_debug_string): Declare.
8270
3c76026d
TT
82712020-04-08 Tom Tromey <tromey@adacore.com>
8272
8273 * windows-nat.c (current_process_handle, current_process_id)
8274 (main_thread_id, last_sig, current_event, last_wait_event)
8275 (current_windows_thread, desired_stop_thread_id, pending_stops)
8276 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8277 (display_selectors, fake_create_process)
8278 (get_windows_debug_event): Update.
8279 * nat/windows-nat.h (current_process_handle, current_process_id)
8280 (main_thread_id, last_sig, current_event, last_wait_event)
8281 (current_windows_thread, desired_stop_thread_id, pending_stops)
8282 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8283 * nat/windows-nat.c (current_process_handle, current_process_id)
8284 (main_thread_id, last_sig, current_event, last_wait_event)
8285 (current_windows_thread, desired_stop_thread_id, pending_stops)
8286 (siginfo_er): New globals. Move from windows-nat.c.
8287
9d8679cc
TT
82882020-04-08 Tom Tromey <tromey@adacore.com>
8289
8290 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8291 (handle_load_dll): Update.
8292 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8293
28688adf
TT
82942020-04-08 Tom Tromey <tromey@adacore.com>
8295
8296 * windows-nat.c (enum thread_disposition_type): Move to
8297 nat/windows-nat.h.
8298 (windows_nat::thread_rec): Rename from thread_rec. No longer
8299 static.
8300 (windows_add_thread, windows_nat_target::fetch_registers)
8301 (windows_nat_target::store_registers, handle_exception)
8302 (windows_nat_target::resume, get_windows_debug_event)
8303 (windows_nat_target::get_tib_address)
8304 (windows_nat_target::thread_name)
8305 (windows_nat_target::thread_alive): Update.
8306 * nat/windows-nat.h (enum thread_disposition_type): Move from
8307 windows-nat.c.
8308 (thread_rec): Declare.
8309
4834dad0
TT
83102020-04-08 Tom Tromey <tromey@adacore.com>
8311
8312 * windows-nat.c: Add "using namespace".
8313 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8314 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8315
65bafd5b
TT
83162020-04-08 Tom Tromey <tromey@adacore.com>
8317
8318 * nat/windows-nat.h (struct windows_thread_info): Declare
8319 destructor.
8320 * nat/windows-nat.c (~windows_thread_info): New.
8321
0a4afda3
TT
83222020-04-08 Tom Tromey <tromey@adacore.com>
8323
8324 PR gdb/22992
8325 * windows-nat.c (current_event): Update comment.
8326 (last_wait_event, desired_stop_thread_id): New globals.
8327 (struct pending_stop): New.
8328 (pending_stops): New global.
8329 (windows_nat_target) <stopped_by_sw_breakpoint>
8330 <supports_stopped_by_sw_breakpoint>: New methods.
8331 (windows_fetch_one_register): Add assertions. Adjust PC.
8332 (windows_continue): Handle pending stops. Suspend other threads
8333 when stepping. Use last_wait_event
8334 (wait_for_debug_event): New function.
8335 (get_windows_debug_event): Use wait_for_debug_event. Handle
8336 pending stops. Queue spurious stops.
8337 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8338 (windows_nat_target::kill): Use wait_for_debug_event.
8339 * nat/windows-nat.h (struct windows_thread_info)
8340 <stopped_at_software_breakpoint>: New field.
8341 * nat/windows-nat.c (windows_thread_info::resume): Clear
8342 stopped_at_software_breakpoint.
8343
8e61ebec
TT
83442020-04-08 Tom Tromey <tromey@adacore.com>
8345
8346 * windows-nat.c (enum thread_disposition_type): New.
8347 (thread_rec): Replace "get_context" parameter with "disposition";
8348 change type.
8349 (windows_add_thread, windows_nat_target::fetch_registers)
8350 (windows_nat_target::store_registers, handle_exception)
8351 (windows_nat_target::resume, get_windows_debug_event)
8352 (windows_nat_target::get_tib_address)
8353 (windows_nat_target::thread_name)
8354 (windows_nat_target::thread_alive): Update.
8355
98a03287
TT
83562020-04-08 Tom Tromey <tromey@adacore.com>
8357
8358 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8359 (windows_continue): Use windows_continue::resume.
8360 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8361 resume>: Declare new methods.
8362 * nat/windows-nat.c: New file.
8363 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8364
7c7411bc
TT
83652020-04-08 Tom Tromey <tromey@adacore.com>
8366
8367 * windows-nat.c (windows_add_thread, windows_delete_thread)
8368 (windows_nat_target::fetch_registers)
8369 (windows_nat_target::store_registers, fake_create_process)
8370 (windows_nat_target::resume, windows_nat_target::resume)
8371 (get_windows_debug_event, windows_nat_target::wait)
8372 (windows_nat_target::pid_to_str)
8373 (windows_nat_target::get_tib_address)
8374 (windows_nat_target::get_ada_task_ptid)
8375 (windows_nat_target::thread_name)
8376 (windows_nat_target::thread_alive): Use lwp, not tid.
8377
2950fdf7
TT
83782020-04-08 Tom Tromey <tromey@adacore.com>
8379
8380 * windows-nat.c (handle_exception)
8381 (windows_nat_target::thread_name): Update.
8382 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8383 <name>: Now unique_xmalloc_ptr.
8384
62fe396b
TT
83852020-04-08 Tom Tromey <tromey@adacore.com>
8386
8387 * windows-nat.c (thread_rec)
8388 (windows_nat_target::fetch_registers): Update.
8389 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8390 Update comment.
8391 <debug_registers_changed, reload_context>: Now bool.
8392
e9534bd2
TT
83932020-04-08 Tom Tromey <tromey@adacore.com>
8394
8395 * windows-nat.c (windows_add_thread): Use new.
8396 (windows_init_thread_list, windows_delete_thread): Use delete.
8397 (get_windows_debug_event): Update.
8398 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8399 destructor, and initializers.
8400
ae1f8880
TT
84012020-04-08 Tom Tromey <tromey@adacore.com>
8402
8403 * windows-nat.c (struct windows_thread_info): Remove.
8404 * nat/windows-nat.h: New file.
8405
55a1e039
TT
84062020-04-08 Tom Tromey <tromey@adacore.com>
8407
8408 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8409 (thread_rec, windows_add_thread, windows_delete_thread)
8410 (windows_continue): Update.
8411
93366324
TT
84122020-04-08 Tom Tromey <tromey@adacore.com>
8413
8414 * windows-nat.c (struct windows_thread_info): Remove typedef.
8415 (thread_head): Remove.
8416 (thread_list): New global.
8417 (thread_rec, windows_add_thread, windows_init_thread_list)
8418 (windows_delete_thread, windows_continue): Update.
8419
0f2265e2
SM
84202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8421
8422 * windows-tdep.h (windows_init_abi): Add comment.
8423 (cygwin_init_abi): New declaration.
8424 * windows-tdep.c: Split signal enumeration in two, one for
8425 Windows and one for Cygwin.
8426 (windows_gdb_signal_to_target): Only deal with signal of the
8427 Windows OS ABI.
8428 (cygwin_gdb_signal_to_target): New function.
8429 (windows_init_abi): Rename to windows_init_abi_common, don't set
8430 gdb_signal_to_target gdbarch method. Add new new function with
8431 this name.
8432 (cygwin_init_abi): New function.
8433 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8434 comment. Don't call windows_init_abi.
8435 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8436 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8437 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8438 i386_windows_init_abi_common, don't call windows_init_abi. Add
8439 a new function of this name.
8440 (i386_cygwin_init_abi): New function.
8441 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8442 OS ABI Cygwin.
8443
3810f182
SM
84442020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8445
8446 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8447 parameter.c.
8448 (dwarf2_read_gdb_index): Update.
8449
063f8e80
KR
84502020-04-07 Kamil Rytarowski <n54@gmx.com>
8451
8452 * nbsd-tdep.c: Include "objfiles.h".
8453 (nbsd_skip_solib_resolver): New.
8454 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8455
85a9510c 84562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8457
8458 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8459 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8460 with DW_LLE_base_addressx are being emitted in DWARFv5.
8461 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8462 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8463 unsigned integer.
8464
9fc3eaae 84652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8466
8467 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8468 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8469 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8470 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8471 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8472 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8473 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8474
8475
41144253 84762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8477
8478 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8479 (read_loclist_index): New function definition.
8480 (lookup_loclist_base): New function definition.
8481 (read_loclist_header): New function definition.
8482 (dwarf2_cu): Add loclist_base and loclist_header field.
8483 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8484 (read_full_die_1): Read the value of DW_AT_loclists_base.
8485 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8486 (read_attribute_value): Handle DW_FORM_loclistx.
8487 (skip_one_die): Handle DW_FORM_loclistx.
8488 (loclist_header): New structure declaration.
8489 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8490
9f4e76a4
SM
84912020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8492
8493 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8494 constructor. Remove `addr` parameter from other constructor and
8495 add `per_cu` parameter.
8496 * dwarf2/read.c (create_partial_symtab): Update.
8497
25c11aca
TV
84982020-04-07 Tom de Vries <tdevries@suse.de>
8499
8500 PR symtab/25796
8501 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8502 (partial_die_info::fixup): Inherit has_const_value.
8503
5707e24b
TV
85042020-04-07 Tom de Vries <tdevries@suse.de>
8505
8506 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8507 symbols without address.
8508
05f00e22
KR
85092020-04-06 Kamil Rytarowski <n54@gmx.com>
8510
8511 * nbsd-nat.h (struct thread_info): Add forward declaration.
8512 (nbsd_nat_target::thread_alive): Add.
8513 (nbsd_nat_target::thread_name): Likewise.
8514 (nbsd_nat_target::update_thread_list): Likewise.
8515 (update_thread_list::post_attach): Likewise.
8516 (post_attach::pid_to_str): Likewise.
8517 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8518 (nbsd_thread_lister): Add.
8519 (nbsd_nat_target::thread_alive): Likewise.
8520 (nbsd_nat_target::thread_name): Likewise.
8521 (nbsd_add_threads): Likewise.
8522 (update_thread_list::post_attach): Likewise.
8523 (nbsd_nat_target::update_thread_list): Likewise.
8524 (post_attach::pid_to_str): Likewise.
8525
6ee448cc
TT
85262020-04-06 Tom Tromey <tromey@adacore.com>
8527
8528 * ada-valprint.c (print_variant_part): Extract the variant field.
8529 (print_field_values): Use the field as the outer value when
8530 recursing.
8531
dea34e8c
TT
85322020-04-06 Tom Tromey <tromey@adacore.com>
8533
8534 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8535 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8536 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8537 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8538 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8539
93689ce9
TT
85402020-04-06 Tom Tromey <tromey@adacore.com>
8541
8542 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8543 TYPE_CODE_ERROR.
8544
79743962
KR
85452020-04-06 Kamil Rytarowski <n54@gmx.com>
8546
8547 * nbsd-tdep.c: Include "gdbarch.h".
8548 Define enum with NetBSD signal numbers.
8549 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8550 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8551 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8552 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8553 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8554 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8555 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8556 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8557 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8558 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8559 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8560 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8561
9e7c9a03
HD
85622020-04-03 Hannes Domani <ssbssa@yahoo.de>
8563
8564 PR gdb/25325
8565 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8566
d9e49b61
TT
85672020-04-03 Tom Tromey <tromey@adacore.com>
8568
8569 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8570 Read constant block.
8571
e0fc5c3f
SM
85722020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8573
8574 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8575 (gdb_bfd_get_full_section_contents): New declaration.
8576 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8577 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8578 gdb_bfd_get_full_section_contents.
8579
e2ff18a0
SM
85802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8581
8582 * exec.c (build_section_table): Replace internal_error with
8583 gdb_assert.
8584 (section_table_xfer_memory_partial): Likewise.
8585 * mdebugread.c (parse_partial_symbols): Likewise.
8586 * psymtab.c (lookup_partial_symbol): Likewise.
8587 * utils.c (wrap_here): Likewise.
8588
0830d301
TT
85892020-04-02 Tom Tromey <tromey@adacore.com>
8590
8591 * f-lang.c (build_fortran_types): Use arch_type to initialize
8592 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8593
e7da7f8f
TT
85942020-04-02 Tom Tromey <tromey@adacore.com>
8595
8596 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8597 of attributes.
8598
c90d28ac
AB
85992020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8600 Bernd Edlinger <bernd.edlinger@hotmail.de>
8601 Tom Tromey <tromey@adacore.com>
8602
8603 * buildsym.c (buildsym_compunit::record_line): Remove
8604 deduplication code.
8605
1aa98955
TV
86062020-04-02 Tom de Vries <tdevries@suse.de>
8607
8608 PR ada/24671
8609 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8610
d3214198
TV
86112020-04-02 Tom de Vries <tdevries@suse.de>
8612
8613 * dwarf2/read.c (dwarf2_gdb_index_functions,
8614 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8615 NULL.
8616 * psymtab.c (psym_lookup_global_symbol_language): New function.
8617 (psym_functions): Init psym_lookup_global_symbol_language with
8618 psym_lookup_global_symbol_language.
8619 * symfile-debug.c (debug_sym_quick_functions): Init
8620 lookup_global_symbol_language with NULL.
8621 * symfile.c (set_initial_language): Remove fixme comment.
8622 * symfile.h (struct quick_symbol_functions): Add
8623 lookup_global_symbol_language.
8624 * symtab.c (find_quick_global_symbol_language): New function.
8625 (find_main_name): Use find_quick_global_symbol_language.
8626
2836752f
SM
86272020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8630
64dc2d4b
BE
86312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8632
8633 * buildsym.c (record_line): Fix undefined behavior and preserve
8634 lines at eof.
8635
bbe3dc41
BE
86362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8637
8638 * buildsym.c (record_line): Fix the resizing condition.
8639
6b4a335b
TT
86402020-04-01 Tom Tromey <tom@tromey.com>
8641
8642 * value.h (value_literal_complex): Add comment.
8643 * valops.c (value_literal_complex): Refer to value.h.
8644
3638a098
TT
86452020-04-01 Tom Tromey <tom@tromey.com>
8646
8647 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8648 (scalar_type): New rule, from typebase.
8649 (typebase): Use scalar_type. Recognize complex types.
8650 (field_name): Handle FLOAT_KEYWORD.
8651 (ident_tokens): Add _Complex and __complex__.
8652
c34e8714
TT
86532020-04-01 Tom Tromey <tom@tromey.com>
8654
8655 PR exp/25299:
8656 * valarith.c (promotion_type, complex_binop): New functions.
8657 (scalar_binop): Handle complex numbers. Use promotion_type.
8658 (value_pos, value_neg, value_complement): Handle complex numbers.
8659
fa649bb7
TT
86602020-04-01 Tom Tromey <tom@tromey.com>
8661
8662 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8663 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8664 (parse_number): Handle complex numbers.
8665
981c08ce
TT
86662020-04-01 Tom Tromey <tom@tromey.com>
8667
8668 * c-valprint.c (c_decorations): Change complex suffix to "i".
8669
4c99290d
TT
86702020-04-01 Tom Tromey <tom@tromey.com>
8671
8672 * valprint.c (generic_value_print_complex): Use accessors.
8673 * value.h (value_real_part, value_imaginary_part): Declare.
8674 * valops.c (value_real_part, value_imaginary_part): New
8675 functions.
8676 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8677
5b930b45
TT
86782020-04-01 Tom Tromey <tom@tromey.com>
8679
8680 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8681 (read_range_type): Update.
8682 * mdebugread.c (basic_type): Update.
8683 * go-lang.c (build_go_types): Use init_complex_type.
8684 * gdbtypes.h (struct main_type) <complex_type>: New member.
8685 (init_complex_type): Update.
8686 (arch_complex_type): Don't declare.
8687 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8688 Make name if none given. Use alloc_type_copy. Look for cached
8689 complex type.
8690 (arch_complex_type): Remove.
8691 (gdbtypes_post_init): Use init_complex_type.
8692 * f-lang.c (build_fortran_types): Use init_complex_type.
8693 * dwarf2/read.c (read_base_type): Update.
8694 * d-lang.c (build_d_types): Use init_complex_type.
8695 * ctfread.c (read_base_type): Update.
8696
53cccef1
TBA
86972020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8698
8699 * infrun.c (stop_all_threads): Update assertion, plus when
8700 stopping threads, take into account that we might be trying
8701 to stop an all-stop target.
8702 (stop_waiting): Call 'stop_all_threads' if there exists a
8703 non-stop target.
8704
a0714d30
TBA
87052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8706
8707 * target.h (exists_non_stop_target): New function declaration.
8708 * target.c (exists_non_stop_target): New function.
8709
60e22c1e
HD
87102020-04-01 Hannes Domani <ssbssa@yahoo.de>
8711
8712 PR gdb/24789
8713 * eval.c (is_integral_or_integral_reference): New function.
8714 (evaluate_subexp_standard): Allow integer references in
8715 pointer arithmetic.
8716
e139a727
TBA
87172020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8718
8719 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8720 check for no ptid in the stop reply when the target is non-stop.
8721
e0802d59
TT
87222020-04-01 Tom Tromey <tromey@adacore.com>
8723
8724 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8725 "name" parameter to rvalue reference. Initialize m_name_holder.
8726 <lookup_name_info>: New overloads.
8727 <name>: Return gdb::string_view.
8728 <c_str>: New method.
8729 <make_ignore_params>: Update.
8730 <search_name_hash>: Update.
8731 <language_lookup_name>: Return const char *.
8732 <m_name>: Change type.
8733 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8734 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8735 (lookup_name_info::match_any): Update.
8736 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8737 Update.
8738 * minsyms.c (linkage_name_str): Update.
8739 * language.c (default_symbol_name_matcher): Update.
8740 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8741 Update.
8742 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8743 (ada_lookup_name_info::ada_lookup_name_info): Update.
8744 (literal_symbol_name_matcher): Update.
8745
8c072cb6
TT
87462020-04-01 Tom Tromey <tromey@adacore.com>
8747
8748 * psymtab.c (psymtab_search_name): Remove function.
8749 (psym_lookup_symbol): Create search name and lookup name here.
8750 (lookup_partial_symbol): Remove "name" parameter; add
8751 lookup_name.
8752 (psym_expand_symtabs_for_function): Update.
8753
6f29a534
TT
87542020-03-31 Joel Jones <joelkevinjones@gmail.com>
8755
8756 PR tui/25597:
8757 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8758
af62665e
TT
87592020-03-31 Tom Tromey <tromey@adacore.com>
8760
8761 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8762 memcpy.
8763
d1a89da5
NC
87642020-03-30 Nelson Chu <nelson.chu@sifive.com>
8765
8766 * features/riscv/32bit-csr.xml: Regenerated.
8767 * features/riscv/64bit-csr.xml: Regenerated.
8768
d8af9068
TT
87692020-03-30 Tom Tromey <tromey@adacore.com>
8770
8771 * ada-valprint.c (print_variant_part): Update.
8772 * ada-lang.h (ada_which_variant_applies): Update.
8773 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8774 outer_valaddr parameters; replace with "outer" value parameter.
8775 (to_fixed_variant_branch_type): Update.
8776
227c0bf4
PFC
87772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8778
8779 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8780 <list>. Remove inclusion of observable.h.
8781 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8782 (struct arch_lwp_info): New struct.
8783 (class ppc_linux_dreg_interface): New class.
8784 (struct ppc_linux_process_info): New struct.
8785 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8786 <low_new_clone, low_forget_process, low_prepare_to_resume>
8787 <copy_thread_dreg_state, mark_thread_stale>
8788 <mark_debug_registers_changed, register_hw_breakpoint>
8789 <clear_hw_breakpoint, register_wp, clear_wp>
8790 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8791 <num_memory_accesses, get_trigger_type>
8792 <create_watchpoint_request, hwdebug_point_cmp>
8793 <init_arch_lwp_info, get_arch_lwp_info>
8794 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8795 methods.
8796 <struct ptid_hash>: New inner struct.
8797 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8798 members.
8799 (saved_dabr_value, hwdebug_info, max_slots_number)
8800 (struct hw_break_tuple, struct thread_points, ppc_threads)
8801 (have_ptrace_hwdebug_interface)
8802 (hwdebug_find_thread_points_by_tid)
8803 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8804 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8805 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8806 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8807 use m_dreg_interface.
8808 (hwdebug_point_cmp): Change to...
8809 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8810 reference arguments instead of pointers.
8811 (ppc_linux_nat_target::ranged_break_num_registers): Use
8812 m_dreg_interface.
8813 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8814 m_dreg_interface. Call register_hw_breakpoint.
8815 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8816 m_dreg_interface. Call clear_hw_breakpoint.
8817 (get_trigger_type): Change to...
8818 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8819 comment.
8820 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8821 use m_dreg_interface. Call register_hw_breakpoint.
8822 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8823 use m_dreg_interface. Call clear_hw_breakpoint.
8824 (can_use_watchpoint_cond_accel): Change to...
8825 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8826 method. Update comment, use m_dreg_interface and
8827 m_process_info.
8828 (calculate_dvc): Change to...
8829 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8830 m_dreg_interface.
8831 (num_memory_accesses): Change to...
8832 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8833 (check_condition): Change to...
8834 (ppc_linux_nat_target::check_condition): ...this method.
8835 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8836 comment, use m_dreg_interface.
8837 (create_watchpoint_request): Change to...
8838 (ppc_linux_nat_target::create_watchpoint_request): ...this
8839 method. Use m_dreg_interface.
8840 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8841 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8842 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8843 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8844 (ppc_linux_nat_target::low_forget_process)
8845 (ppc_linux_nat_target::low_new_fork)
8846 (ppc_linux_nat_target::low_new_clone)
8847 (ppc_linux_nat_target::low_delete_thread)
8848 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8849 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8850 only call mark_thread_stale.
8851 (ppc_linux_thread_exit): Remove.
8852 (ppc_linux_nat_target::stopped_data_address): Change to...
8853 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8854 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8855 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8856 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8857 comment. Call low_stopped_data_address.
8858 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8859 m_dreg_interface.
8860 (ppc_linux_nat_target::masked_watch_num_registers): Use
8861 m_dreg_interface.
8862 (ppc_linux_nat_target::copy_thread_dreg_state)
8863 (ppc_linux_nat_target::mark_thread_stale)
8864 (ppc_linux_nat_target::mark_debug_registers_changed)
8865 (ppc_linux_nat_target::register_hw_breakpoint)
8866 (ppc_linux_nat_target::clear_hw_breakpoint)
8867 (ppc_linux_nat_target::register_wp)
8868 (ppc_linux_nat_target::clear_wp)
8869 (ppc_linux_nat_target::init_arch_lwp_info)
8870 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8871 (_initialize_ppc_linux_nat): Remove observer callback.
8872
4db10d8f
PFC
88732020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8874
8875 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8876 (ppc_linux_nat_target::auxv_parse)
8877 (ppc_linux_nat_target::read_description)
8878 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8879 Move up.
8880
1310c1b0
PFC
88812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8882
8883 * linux-nat.h (low_new_clone): New method.
8884 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8885
69b037c3
SM
88862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8887
8888 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8889 (dbx_expand_psymtab): ... this.
8890 (start_psymtab): Update.
8891 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8892 (mdebug_expand_psymtab): ... this.
8893 (parse_partial_symbols): Update.
8894 (new_psymtab): Update.
8895 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8896 (xcoff_expand_psymtab): ... this.
8897 (xcoff_start_psymtab): Update.
8898
48993951
SM
88992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8902 <expand_dependencies>: ... this.
8903 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8904 (partial_symtab::expand_dependencies): ... this.
8905 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8906 Update.
8907 (dwarf2_psymtab::expand_psymtab): Update.
8908 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8909 * mdebugread.c (psymtab_to_symtab_1): Update.
8910 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8911
3ad83046
SM
89122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8913
8914 * psympriv.h (discard_psymtab): Remove.
8915 * dbxread.c (dbx_end_psymtab): Update.
8916 * xcoffread.c (xcoff_end_psymtab): Update.
8917
4d1b9ab6
TT
89182020-03-28 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8921 comment.
8922
f1749218
TT
89232020-03-28 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8926
ebea7626
HD
89272020-03-27 Hannes Domani <ssbssa@yahoo.de>
8928
8929 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8930
a879b4d5
JB
89312020-03-26 John Baldwin <jhb@FreeBSD.org>
8932
8933 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8934
0826b30a
TT
89352020-03-26 Tom Tromey <tom@tromey.com>
8936
8937 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8938 (mark_common_block_symbol_computed, read_tag_string_type)
8939 (attr_to_dynamic_prop, read_subrange_type): Update.
8940 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8941 to be methods on struct attribute.
8942 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8943 (read_call_site_scope, partial_die_info::read)
8944 (partial_die_info::read, lookup_die_type, follow_die_ref):
8945 Update.
8946 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8947 from dwarf2_get_ref_die_offset.
8948 (attribute::constant_value): New method, from
8949 dwarf2_get_attr_constant_value.
8950 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8951 Declare method.
8952 <constant_value>: New method.
8953
2b2558bf
TT
89542020-03-26 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8957 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8958 (dwarf_type_encoding_name): Move to stringify.c.
8959 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8960 * dwarf2/stringify.c: New file.
8961 * dwarf2/stringify.h: New file.
8962
eeb64781
TT
89632020-03-26 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8966 Rewrite.
8967
a39fdb41
TT
89682020-03-26 Tom Tromey <tom@tromey.com>
8969
8970 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8971 methods.
8972 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8973 (lookup_ranges_base): Likewise.
8974 (read_cutu_die_from_dwo, read_full_die_1): Update.
8975
436c571c
TT
89762020-03-26 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/read.c (read_import_statement, read_file_scope)
8979 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8980 (read_lexical_block_scope, read_call_site_scope)
8981 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8982 (handle_struct_member_die, process_structure_scope)
8983 (update_enumeration_type_from_children)
8984 (process_enumeration_scope, read_array_type, read_common_block)
8985 (read_namespace, read_module, read_subroutine_type): Update.
8986 (sibling_die): Remove.
8987
052c8bb8
TT
89882020-03-26 Tom Tromey <tom@tromey.com>
8989
8990 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8991 (build_type_psymtabs_reader, read_structure_type)
8992 (read_enumeration_type, read_full_die_1): Update.
8993 (dwarf2_attr_no_follow): Move to die.h.
8994 * dwarf2/die.h (struct die_info) <attr>: New method.
8995
2b24b6e4
TT
89962020-03-26 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8999 <base_address>: Now an optional.
9000 (dwarf2_find_base_address, dwarf2_rnglists_process)
9001 (dwarf2_ranges_process, fill_in_loclist_baton)
9002 (dwarf2_symbol_mark_computed): Update.
9003
c2d50fd0
TT
90042020-03-26 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/read.c (struct die_info): Move to die.h.
9007 * dwarf2/die.h: New file.
9008
0df7ad3a
TT
90092020-03-26 Tom Tromey <tom@tromey.com>
9010
9011 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9012 * dwarf2/read.c
9013 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9014 Move to line-header.c.
9015 (read_checked_initial_length_and_offset, read_formatted_entries):
9016 Likewise.
9017 (dwarf_decode_line_header): Split into two.
9018 * dwarf2/line-header.c
9019 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9020 Move from read.c.
9021 (read_checked_initial_length_and_offset, read_formatted_entries):
9022 Likewise.
9023 (dwarf_decode_line_header): New function, split from read.c.
9024
86c0bb4c
TT
90252020-03-26 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9028 Declare method.
9029 * dwarf2/read.c (read_attribute_value): Update.
9030 (dwarf2_per_objfile::read_line_string): Rename from
9031 read_indirect_line_string.
9032 (read_formatted_entries): Update.
9033
2ef46c2f
TT
90342020-03-26 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9037 variable.
9038
4f9c1eda
TT
90392020-03-26 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9042 const.
9043 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9044 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9045 parameter const.
9046
5a0e026f
TT
90472020-03-26 Tom Tromey <tom@tromey.com>
9048
9049 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9050 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9051 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9052 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9053
8844c11b
TT
90542020-03-26 Tom Tromey <tom@tromey.com>
9055
9056 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9057 file_names_size, file_full_name, file_file_name>: Use const.
9058 <file_name_at, file_names>: Add const overload.
9059 * dwarf2/line-header.c (line_header::file_file_name)
9060 (line_header::file_full_name): Update.
9061
c90ec28a
TT
90622020-03-26 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9065 (macro_start_file, consume_improper_spaces)
9066 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9067 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9068 (dwarf_decode_macros): Move to macro.c.
9069 * dwarf2/macro.c: New file.
9070 * dwarf2/macro.h: New file.
9071 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9072
4f44ae6c
TT
90732020-03-26 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9076 method.
9077 * dwarf2/section.c: New method. From
9078 read_indirect_string_at_offset_from.
9079 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9080 (read_indirect_string_at_offset_from): Move to section.c.
9081 (read_indirect_string_at_offset): Rewrite.
9082 (read_indirect_line_string_at_offset): Remove.
9083 (read_indirect_string, read_indirect_line_string)
9084 (dwarf_decode_macro_bytes): Update.
9085
a0194fa8
TT
90862020-03-26 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/section.h (struct dwarf2_section_info)
9089 <overload_complaint>: Declare.
9090 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9091 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9092 Rename from dwarf2_section_buffer_overflow_complaint.
9093 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9094 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9095
3d27bbdb
TT
90962020-03-26 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9099 Declare.
9100 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9101 Move from read.c.
9102 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9103 to section.c.
9104
9eac9650
TT
91052020-03-26 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9108
bf80d710
TT
91092020-03-26 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9112 "builder".
9113 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9114 parameter.
9115 (dwarf_decode_macros): Update.
9116
0314b390
TT
91172020-03-26 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/read.c (read_attribute_value): Update.
9120 (read_indirect_string_from_dwz): Move to dwz.c; change into
9121 method.
9122 (dwarf_decode_macro_bytes): Update.
9123 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9124 * dwarf2/dwz.c: New file.
9125 * Makefile.in (COMMON_SFILES): Add dwz.c.
9126
9fda78b6
TT
91272020-03-26 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9130 * dwarf2/read.c: Add include.
9131 * dwarf2/index-write.c: Add include.
9132 * dwarf2/index-cache.c: Add include.
9133 * dwarf2/dwz.h: New file.
9134
33aa3c10
TT
91352020-03-25 Tom Tromey <tom@tromey.com>
9136
9137 * compile/compile-object-load.c (get_out_value_type): Mention
9138 correct symbol name in error message.
9139
d503b685
HD
91402020-03-25 Hannes Domani <ssbssa@yahoo.de>
9141
9142 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9143
7b1eff95
TV
91442020-03-25 Tom de Vries <tdevries@suse.de>
9145
9146 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9147 * symmisc.c (dump_symtab_1): Print user and includes fields.
9148 (maintenance_info_symtabs): Same.
9149
dd895392
AB
91502020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 PR gdb/25534
9153 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9154 (riscv_regcache_cooked_write): New function.
9155 (riscv_push_dummy_call): Use new function.
9156 (riscv_return_value): Likewise.
9157
5ab2fbf1
SM
91582020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9159
9160 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9161 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9162 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9163 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9164 * infrun.c (follow_fork): Likewise.
9165 (follow_fork_inferior): Likewise.
9166 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9167 * linux-nat.h (class linux_nat_target): Likewise.
9168 * remote.c (class remote_target) <follow_fork>: Likewise.
9169 (remote_target::follow_fork): Likewise.
9170 * target-delegates.c: Re-generate.
9171 * target.c (default_follow_fork): Likewise.
9172 (target_follow_fork): Likewise.
9173 * target.h (struct target_ops) <follow_fork>: Likewise.
9174 (target_follow_fork): Likewise.
9175
a64fafb5
TV
91762020-03-24 Tom de Vries <tdevries@suse.de>
9177
9178 * psymtab.c (maintenance_info_psymtabs): Print user field.
9179
fe26d3a3
TT
91802020-03-20 Tom Tromey <tromey@adacore.com>
9181
9182 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9183 const.
9184 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9185 const.
9186
c884cc46
SM
91872020-03-20 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * ptrace.m4: Don't check for ptrace declaration.
9190 * config.in: Re-generate.
9191 * configure: Re-generate.
9192 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9193 not defined.
9194
1ff700c2
KR
91952020-03-20 Kamil Rytarowski <n54@gmx.com>
9196
9197 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9198 `PTRACE_TYPE_RET'.
9199 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9200 * sparc-nat.c (gdb_ptrace): Likewise.
9201 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9202
f7d4f0b1
TT
92032020-03-20 Tom Tromey <tromey@adacore.com>
9204
9205 * c-exp.y (lex_one_token): Fix assert.
9206
f67210ff
TT
92072020-03-20 Tom Tromey <tromey@adacore.com>
9208
9209 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9210 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9211 strncpy call.
9212
1773be9e
TT
92132020-03-20 Tom Tromey <tromey@adacore.com>
9214
9215 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9216
70304be9
TT
92172020-03-20 Tom Tromey <tromey@adacore.com>
9218
9219 * ada-valprint.c (print_variant_part): Remove parameters; switch
9220 to value-based API.
9221 (print_field_values): Likewise.
9222 (ada_val_print_struct_union): Likewise.
9223 (ada_value_print_1): Update.
9224
9faa006d
KR
92252020-03-20 Kamil Rytarowski <n54@gmx.com>
9226
9227 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9228 nbsd_nat_target instead of inf_ptrace_target.
9229 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9230 nbsd_nat_target.
9231
4a90f062
KR
92322020-03-20 Kamil Rytarowski <n54@gmx.com>
9233
9234 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9235 it to the ptrace call.
9236 * (store_registers): Likewise.
9237
92382020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9239
9240 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9241 it to the ptrace call.
9242 * (store_registers): Likewise.
9243
2d07da27
LM
92442020-03-19 Luis Machado <luis.machado@linaro.org>
9245
9246 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9247 valid, fetch vg value from ptrace.
9248
f09db380
KR
92492020-03-19 Kamil Rytarowski <n54@gmx.com>
9250 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9251 * inf-ptrace.c: Likewise.
9252 * (gdb_ptrace): Add.
9253 * (inf_ptrace_target::resume): Update.
9254 * (inf_ptrace_target::xfer_partial): Likewise.
9255 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9256 * (inf_ptrace_peek_poke): Update.
9257
fcc7376e
KR
92582020-03-19 Kamil Rytarowski <n54@gmx.com>
9259
9260 * x86-bsd-nat.c (gdb_ptrace): New.
9261 * (x86bsd_dr_set): Add new argument `ptid'.
9262 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9263 x86bsd_dr_set_addr): Update.
9264
cada5fc9
AB
92652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9266
9267 * remote.c (remote_target::process_stop_reply): Handle events for
9268 all threads differently.
9269
19a2740f
AB
92702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9271
9272 * completer.c (completion_tracker::remove_completion): Define new
9273 function.
9274 * completer.h (completion_tracker::remove_completion): Declare new
9275 function.
9276 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9277 when adding a C++ function symbol.
9278
724fd9ba
AB
92792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9280
9281 * completer.c (completion_tracker::completion_hash_entry): Define
9282 new class.
9283 (advance_to_filename_complete_word_point): Call
9284 recompute_lowest_common_denominator.
9285 (completion_tracker::completion_tracker): Call discard_completions
9286 to setup the hash table.
9287 (completion_tracker::discard_completions): Allow for being called
9288 from the constructor, pass new equal function, and element deleter
9289 when constructing the hash table. Initialise new class member
9290 variables.
9291 (completion_tracker::maybe_add_completion): Remove use of
9292 m_entries_vec, and store more information into m_entries_hash.
9293 (completion_tracker::recompute_lcd_visitor): New function, most
9294 content taken from...
9295 (completion_tracker::recompute_lowest_common_denominator):
9296 ...here, this now just visits each item in the hash calling the
9297 above visitor.
9298 (completion_tracker::build_completion_result): Remove use of
9299 m_entries_vec, call recompute_lowest_common_denominator.
9300 * completer.h (completion_tracker::have_completions): Remove use
9301 of m_entries_vec.
9302 (completion_tracker::completion_hash_entry): Declare new class.
9303 (completion_tracker::recompute_lowest_common_denominator): Change
9304 function signature.
9305 (completion_tracker::recompute_lcd_visitor): Declare new function.
9306 (completion_tracker::m_entries_vec): Delete.
9307 (completion_tracker::m_entries_hash): Initialize to NULL.
9308 (completion_tracker::m_lowest_common_denominator_valid): New
9309 member variable.
9310 (completion_tracker::m_lowest_common_denominator_max_length): New
9311 member variable.
9312
5a82b8a1
KR
93132020-03-17 Kamil Rytarowski <n54@gmx.com>
9314
9315 * regformats/regdef.h: Put reg in gdb namespace.
9316
fb516a69
KR
93172020-03-17 Kamil Rytarowski <n54@gmx.com>
9318
9319 * i386-bsd-nat.c (gdb_ptrace): New.
9320 * (i386bsd_fetch_inferior_registers,
9321 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9322 * (i386bsd_fetch_inferior_registers,
9323 i386bsd_store_inferior_registers) Use gdb_ptrace.
9324
1c0aa1fb
KR
93252020-03-17 Kamil Rytarowski <n54@gmx.com>
9326
9327 * amd64-bsd-nat.c (gdb_ptrace): New.
9328 * (amd64bsd_fetch_inferior_registers,
9329 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9330 * (amd64bsd_fetch_inferior_registers,
9331 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9332
5ccd2fb7
KR
93332020-03-17 Kamil Rytarowski <n54@gmx.com>
9334
9335 * user-regs.c (user_reg::read): Rename to...
9336 (user_reg::xread): ...this.
9337 * (append_user_reg): Rename argument `read' to `xread'.
9338 * (user_reg_add_builtin): Likewise.
9339 * (user_reg_add): Likewise.
9340 * (value_of_user_reg): Likewise.
9341
2108a63a
KR
93422020-03-17 Kamil Rytarowski <n54@gmx.com>
9343
9344 * sparc-nat.c (gdb_ptrace): New.
9345 * sparc-nat.c (sparc_fetch_inferior_registers)
9346 (sparc_store_inferior_registers) Remove obsolete comment.
9347 * sparc-nat.c (sparc_fetch_inferior_registers)
9348 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9349 * sparc-nat.c (sparc_fetch_inferior_registers)
9350 (sparc_store_inferior_registers) Use gdb_ptrace.
9351
a225c9a8
KR
93522020-03-17 Kamil Rytarowski <n54@gmx.com>
9353
9354 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9355 it to the ptrace call.
9356 * sh-nbsd-nat.c (store_registers): Likewise.
9357
98097623
KR
93582020-03-17 Kamil Rytarowski <n54@gmx.com>
9359
9360 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9361 nbsd_nat_target instead of inf_ptrace_target.
9362 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9363 nbsd_nat_target.
9364
9e38d619
KR
93652020-03-17 Kamil Rytarowski <n54@gmx.com>
9366
9367 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9368
a2ecbe9f
KR
93692020-03-17 Kamil Rytarowski <n54@gmx.com>
9370
9371 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9372 <sys/sysctl.h>.
9373 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9374
58990295
TV
93752020-03-17 Tom de Vries <tdevries@suse.de>
9376
9377 PR gdb/23710
9378 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9379 fields.
9380 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9381 fields.
9382 (process_imported_unit_die): Skip import of c++ CUs.
9383
771dd3a8
TT
93842020-03-16 Tom Tromey <tom@tromey.com>
9385
9386 * p-valprint.c (pascal_object_print_value): Initialize
9387 base_value.
9388
817a7585
AK
93892020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9390 Shahab Vahedi <shahab@synopsys.com>
9391
9392 * Makefile.in: Add arch/arc.o
9393 * configure.tgt: Likewise.
9394 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9395 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9396 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9397 * arc-tdep.h (arc_read_description): Add proto type.
9398 * arch/arc.c: New file.
9399 * arch/arc.h: Likewise.
9400 * features/Makefile: Replace old target descriptions with new.
9401 * features/arc-arcompact.c: Remove.
9402 * features/arc-arcompact.xml: Likewise.
9403 * features/arc-v2.c: Likewise
9404 * features/arc-v2.xml: Likewise
9405 * features/arc/aux-arcompact.xml: New file.
9406 * features/arc/aux-v2.xml: Likewise.
9407 * features/arc/core-arcompact.xml: Likewise.
9408 * features/arc/core-v2.xml: Likewise.
9409 * features/arc/aux-arcompact.c: Generate.
9410 * features/arc/aux-v2.c: Likewise.
9411 * features/arc/core-arcompact.c: Likewise.
9412 * features/arc/core-v2.c: Likewise.
9413 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9414
67430cd0
TT
94152020-03-16 Tom Tromey <tromey@adacore.com>
9416
9417 PR gdb/25663:
9418 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9419 putting value into bcache.
9420
30efb6c7
SM
94212020-03-16 Simon Marchi <simon.marchi@efficios.com>
9422
9423 PR gdb/21500
9424 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9425 to...
9426 (amd64_windows_init_abi_common): ... this. Don't set size of
9427 long type.
9428 (amd64_windows_init_abi): New function.
9429 (amd64_cygwin_init_abi): New function.
9430 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9431 the Cygwin OS ABI.
9432 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9433 comment.
9434
8db52437
SM
94352020-03-16 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9438 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9439 (pe_import_directory_entry): New struct type.
9440 (is_linked_with_cygwin_dll): New function.
9441 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9442 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9443 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9444
5982a56a
SM
94452020-03-16 Simon Marchi <simon.marchi@efficios.com>
9446
9447 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9448 i386_cygwin_core_osabi_sniffer.
9449
7a1998df
SM
94502020-03-16 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * i386-cygwin-tdep.c: Rename to...
9453 * i386-windows-tdep.c: ... this.
9454 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9455 i386-windows-tdep.c.
9456 * configure.tgt: Likewise.
9457
053205cc
SM
94582020-03-16 Simon Marchi <simon.marchi@efficios.com>
9459
9460 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9461 * osabi.c (gdb_osabi_names): Add "Windows".
9462 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9463 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9464 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9465 i386_cygwin_osabi_sniffer.
9466 (_initialize_i386_cygwin_tdep): Register OS ABI
9467 GDB_OSABI_WINDOWS for i386.
9468 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9469 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9470 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9471 for x86-64.
9472 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9473 when the target matches '*-*-mingw*'.
9474
fe4b2ee6
SM
94752020-03-16 Simon Marchi <simon.marchi@efficios.com>
9476
9477 * defs.h (enum gdb_osabi): Move to...
9478 * osabi.h (enum gdb_osabi): ... here.
9479 * gdbarch.sh: Include osabi.h in gdbarch.h.
9480 * gdbarch.h: Re-generate.
9481
cb9b645d
SM
94822020-03-16 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9485 function.
9486 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9487
3293bbaf
TT
94882020-03-14 Tom Tromey <tom@tromey.com>
9489
9490 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9491 for C++.
9492 (c_type_print_modifier): Likewise. Add "language" parameter.
9493 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9494 (c_type_print_base_1): Update.
9495 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9496 constants.
9497 * type-stack.c (type_stack::insert): Handle tp_atomic and
9498 tp_restrict.
9499 (type_stack::follow_type_instance_flags): Likewise.
9500 (type_stack::follow_types): Likewise. Merge type-following code.
9501 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9502 (space_identifier, cv_with_space_id)
9503 (const_or_volatile_or_space_identifier_noopt)
9504 (const_or_volatile_or_space_identifier): Remove.
9505 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9506 rules.
9507 (ptr_operator, typebase): Update.
9508 (enum token_flag) <FLAG_C>: New constant.
9509 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9510 "_Atomic".
9511 (lex_one_token): Handle FLAG_C.
9512
154151a6
KR
95132020-03-14 Kamil Rytarowski <n54@gmx.com>
9514
9515 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9516 it to the ptrace call.
9517 * m68k-bsd-nat.c (store_registers): Likewise.
9518
bc107784
KR
95192020-03-14 Kamil Rytarowski <n54@gmx.com>
9520
9521 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9522 gdb_byte *.
9523 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9524 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9525 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9526
01a80117
KR
95272020-03-14 Kamil Rytarowski <n54@gmx.com>
9528
9529 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9530 nbsd_nat_target instead of inf_ptrace_target.
9531 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9532 nbsd_nat_target.
9533
f90280ca
KR
95342020-03-14 Kamil Rytarowski <n54@gmx.com>
9535
9536 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9537 register_t.
9538
6def66f1
KR
95392020-03-14 Kamil Rytarowski <n54@gmx.com>
9540
9541 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9542 it to the ptrace call.
9543 * alpha-bsd-nat.c (store_registers): Likewise.
9544
66eaca97
KR
95452020-03-14 Kamil Rytarowski <n54@gmx.com>
9546
9547 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9548 includes.
9549 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9550 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9551 fill_fpregset): Likewise.
9552
4fed520b
KR
95532020-03-14 Kamil Rytarowski <n54@gmx.com>
9554
9555 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9556 nbsd_nat_target instead of inf_ptrace_target.
9557 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9558 nbsd_nat_target.
9559
2190cf06
KR
95602020-03-14 Kamil Rytarowski <n54@gmx.com>
9561
9562 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9563 register_t.
9564
75c56d3d
KR
95652020-03-14 Kamil Rytarowski <n54@gmx.com>
9566
9567 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9568 it to the ptrace call.
9569 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9570 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9571 * arm-nbsd-nat.c (store_register): Likewise.
9572 * arm-nbsd-nat.c (store_regs): Likewise.
9573 * arm-nbsd-nat.c (store_fp_register): Likewise.
9574 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9575
6018d381
KR
95762020-03-14 Kamil Rytarowski <n54@gmx.com>
9577
9578 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9579 nbsd_nat_target instead of inf_ptrace_target.
9580 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9581 nbsd_nat_target.
9582
013f99f0
KR
95832020-03-14 Kamil Rytarowski <n54@gmx.com>
9584
9585 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9586 it to the ptrace call.
9587 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9588
12753073
KR
95892020-03-14 Kamil Rytarowski <n54@gmx.com>
9590
6227b330
KR
9591 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9592 it to the ptrace call.
9593 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9594
95952020-03-14 Kamil Rytarowski <n54@gmx.com>
9596
9597 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9598 gdb_byte *.
12753073
KR
9599 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9600
d5be5fa4
KR
96012020-03-14 Kamil Rytarowski <n54@gmx.com>
9602
9603 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9604 instead of inf_ptrace_target.
9605 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9606 nbsd_nat_target.
9607
8110f842
KR
96082020-03-14 Kamil Rytarowski <n54@gmx.com>
9609
9610 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9611 register_t.
9612
52feded7
KR
96132020-03-14 Kamil Rytarowski <n54@gmx.com>
9614
9615 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9616 register_t.
9617
25567eee
KR
96182020-03-14 Kamil Rytarowski <n54@gmx.com>
9619
9620 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9621 register_t.
9622
426a9c18
TT
96232020-03-13 Tom Tromey <tom@tromey.com>
9624
9625 * value.h (val_print): Don't declare.
9626 * valprint.h (val_print_array_elements)
9627 (val_print_scalar_formatted, generic_val_print): Don't declare.
9628 * valprint.c (generic_val_print_array): Take a struct value.
9629 (generic_val_print_ptr, generic_val_print_memberptr)
9630 (generic_val_print_bool, generic_val_print_int)
9631 (generic_val_print_char, generic_val_print_complex)
9632 (generic_val_print): Remove.
9633 (generic_value_print): Update.
9634 (do_val_print): Remove unused parameters. Don't call
9635 la_val_print.
9636 (val_print): Remove.
9637 (common_val_print): Update. Don't call value_check_printable.
9638 (val_print_scalar_formatted, val_print_array_elements): Remove.
9639 * rust-lang.c (rust_val_print): Remove.
9640 (rust_language_defn): Update.
9641 * p-valprint.c (pascal_val_print): Remove.
9642 (pascal_value_print_inner): Update.
9643 (pascal_object_print_val_fields, pascal_object_print_val):
9644 Remove.
9645 (pascal_object_print_static_field): Update.
9646 * p-lang.h (pascal_val_print): Don't declare.
9647 * p-lang.c (pascal_language_defn): Update.
9648 * opencl-lang.c (opencl_language_defn): Update.
9649 * objc-lang.c (objc_language_defn): Update.
9650 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9651 * m2-lang.h (m2_val_print): Don't declare.
9652 * m2-lang.c (m2_language_defn): Update.
9653 * language.h (struct language_defn) <la_val_print>: Remove.
9654 * language.c (unk_lang_value_print_inner): Rename. Change
9655 argument types.
9656 (unknown_language_defn, auto_language_defn): Update.
9657 * go-valprint.c (go_val_print): Remove.
9658 * go-lang.h (go_val_print): Don't declare.
9659 * go-lang.c (go_language_defn): Update.
9660 * f-valprint.c (f_val_print): Remove.
9661 * f-lang.h (f_value_print): Don't declare.
9662 * f-lang.c (f_language_defn): Update.
9663 * d-valprint.c (d_val_print): Remove.
9664 * d-lang.h (d_value_print): Don't declare.
9665 * d-lang.c (d_language_defn): Update.
9666 * cp-valprint.c (cp_print_value_fields)
9667 (cp_print_value_fields_rtti, cp_print_value): Remove.
9668 (cp_print_static_field): Update.
9669 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9670 (c_val_print_struct, c_val_print_union, c_val_print_int)
9671 (c_val_print_memberptr, c_val_print): Remove.
9672 * c-lang.h (c_val_print_array, cp_print_value_fields)
9673 (cp_print_value_fields_rtti): Don't declare.
9674 * c-lang.c (c_language_defn, cplus_language_defn)
9675 (asm_language_defn, minimal_language_defn): Update.
9676 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9677 (ada_val_print_enum): Take a struct value.
9678 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9679 (ada_val_print): Remove.
9680 (ada_value_print_1): Update.
9681 (printable_val_type): Remove.
9682 * ada-lang.h (ada_val_print): Don't declare.
9683 * ada-lang.c (ada_language_defn): Update.
9684
42331a1e
TT
96852020-03-13 Tom Tromey <tom@tromey.com>
9686
9687 * valprint.c (do_val_print): Update.
9688 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9689 a struct value.
9690 (value_to_value_object_no_release): Declare.
9691 * python/py-value.c (value_to_value_object_no_release): New
9692 function.
9693 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9694 struct value.
9695 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9696 function.
9697 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9698 a struct value.
9699 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9700 Declare.
9701 (gdbscm_apply_val_pretty_printer): Take a struct value.
9702 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9703 value.
9704 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9705 value.
9706 * extension-priv.h (struct extension_language_ops)
9707 <apply_val_pretty_printer>: Take a struct value.
9708 * cp-valprint.c (cp_print_value): Create a struct value.
9709 (cp_print_value): Update.
9710
3a916a97
TT
97112020-03-13 Tom Tromey <tom@tromey.com>
9712
9713 * ada-valprint.c (print_field_values): Call common_val_print.
9714
b59eac37
TT
97152020-03-13 Tom Tromey <tom@tromey.com>
9716
9717 * ada-valprint.c (val_print_packed_array_elements): Remove
9718 bitoffset and val parameters. Call common_val_print.
9719 (ada_val_print_string): Remove offset, address, and original_value
9720 parameters.
9721 (ada_val_print_array): Update.
9722 (ada_value_print_array): New function.
9723 (ada_value_print_1): Call it.
9724
03371129
TT
97252020-03-13 Tom Tromey <tom@tromey.com>
9726
9727 * ada-valprint.c (ada_value_print): Use common_val_print.
9728
2e088f8b
TT
97292020-03-13 Tom Tromey <tom@tromey.com>
9730
9731 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9732
39ef85a8
TT
97332020-03-13 Tom Tromey <tom@tromey.com>
9734
9735 * ada-valprint.c (ada_value_print_num): New function.
9736 (ada_value_print_1): Use it.
9737
b9fa6e07
TT
97382020-03-13 Tom Tromey <tom@tromey.com>
9739
9740 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9741
416595d6
TT
97422020-03-13 Tom Tromey <tom@tromey.com>
9743
9744 * ada-valprint.c (ada_value_print_ptr): New function.
9745 (ada_value_print_1): Use it.
9746
5b5e15ec
TT
97472020-03-13 Tom Tromey <tom@tromey.com>
9748
9749 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9750 call common_val_print.
9751 (ada_val_print_1): Update.
9752 (ada_value_print_1): New function.
9753 (ada_value_print_inner): Rewrite.
9754
fbf54e75
TT
97552020-03-13 Tom Tromey <tom@tromey.com>
9756
9757 * cp-valprint.c (cp_print_value_fields): Update.
9758 (cp_print_value): New function.
9759
64b653ca
TT
97602020-03-13 Tom Tromey <tom@tromey.com>
9761
9762 * m2-valprint.c (m2_value_print_inner): Use
9763 cp_print_value_fields.
9764 * cp-valprint.c (cp_print_value_fields): New function.
9765 * c-valprint.c (c_value_print_struct): New function.
9766 (c_value_print_inner): Use c_value_print_struct.
9767 * c-lang.h (cp_print_value_fields): Declare.
9768
6999f067
TT
97692020-03-13 Tom Tromey <tom@tromey.com>
9770
9771 * c-valprint.c (c_value_print_array): New function.
9772 (c_value_print_inner): Use it.
9773
ce80b8bd
TT
97742020-03-13 Tom Tromey <tom@tromey.com>
9775
9776 * c-valprint.c (c_value_print_memberptr): New function.
9777 (c_value_print_inner): Use it.
9778
2faac269
TT
97792020-03-13 Tom Tromey <tom@tromey.com>
9780
9781 * c-valprint.c (c_value_print_int): New function.
9782 (c_value_print_inner): Use it.
9783
da3e2c29
TT
97842020-03-13 Tom Tromey <tom@tromey.com>
9785
9786 * c-valprint.c (c_value_print_ptr): New function.
9787 (c_value_print_inner): Use it.
9788
50836231
TT
97892020-03-13 Tom Tromey <tom@tromey.com>
9790
9791 * c-valprint.c (c_value_print_inner): Rewrite.
9792
4f412b6e
TT
97932020-03-13 Tom Tromey <tom@tromey.com>
9794
9795 * valprint.c (generic_value_print_complex): New function.
9796 (generic_value_print): Use it.
9797
f5354008
TT
97982020-03-13 Tom Tromey <tom@tromey.com>
9799
9800 * valprint.c (generic_val_print_float): Don't call
9801 val_print_scalar_formatted.
9802 (generic_val_print, generic_value_print): Update.
9803
3eec3b05
TT
98042020-03-13 Tom Tromey <tom@tromey.com>
9805
9806 * valprint.c (generic_value_print_char): New function
9807 (generic_value_print): Use it.
9808
fdddfccb
TT
98092020-03-13 Tom Tromey <tom@tromey.com>
9810
9811 * valprint.c (generic_value_print_int): New function.
9812 (generic_value_print): Use it.
9813
6dde7521
TT
98142020-03-13 Tom Tromey <tom@tromey.com>
9815
9816 * valprint.c (generic_value_print_bool): New function.
9817 (generic_value_print): Use it.
9818
4112d2e6
TT
98192020-03-13 Tom Tromey <tom@tromey.com>
9820
9821 * valprint.c (generic_val_print_func): Simplify.
9822 (generic_val_print, generic_value_print): Update.
9823
65786af6
TT
98242020-03-13 Tom Tromey <tom@tromey.com>
9825
9826 * valprint.c (generic_val_print_flags): Remove.
9827 (generic_val_print, generic_value_print): Update.
9828 (val_print_type_code_flags): Add original_value parameter.
9829
40f3ce18
TT
98302020-03-13 Tom Tromey <tom@tromey.com>
9831
9832 * valprint.c (generic_val_print): Update.
9833 (generic_value_print): Update.
9834 * valprint.c (generic_val_print_enum): Don't call
9835 val_print_scalar_formatted.
9836
2a5b130b
TT
98372020-03-13 Tom Tromey <tom@tromey.com>
9838
9839 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9840 * valprint.c (generic_value_print_ptr): New function.
9841
abc66ce9
TT
98422020-03-13 Tom Tromey <tom@tromey.com>
9843
9844 * valprint.c (generic_value_print): Rewrite.
9845
07a32858
TT
98462020-03-13 Tom Tromey <tom@tromey.com>
9847
9848 * p-valprint.c (pascal_object_print_value_fields)
9849 (pascal_object_print_value): New functions.
9850
64d64d3a
TT
98512020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * p-valprint.c (pascal_value_print_inner): Rewrite.
9854
6a95a1f5
TT
98552020-03-13 Tom Tromey <tom@tromey.com>
9856
9857 * f-valprint.c (f_value_print_innner): Rewrite.
9858
59fcdac6
TT
98592020-03-13 Tom Tromey <tom@tromey.com>
9860
9861 * m2-valprint.c (m2_print_unbounded_array): New overload.
9862 (m2_print_unbounded_array): Update.
9863 (m2_print_array_contents): Take a struct value.
9864 (m2_value_print_inner): Rewrite.
9865
d133c3e1
TT
98662020-03-13 Tom Tromey <tom@tromey.com>
9867
9868 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9869 (d_value_print_inner): New function.
9870 * d-lang.h (d_value_print_inner): Declare.
9871 * d-lang.c (d_language_defn): Use d_value_print_inner.
9872
23b0f06b
TT
98732020-03-13 Tom Tromey <tom@tromey.com>
9874
9875 * go-valprint.c (go_value_print_inner): New function.
9876 * go-lang.h (go_value_print_inner): Declare.
9877 * go-lang.c (go_language_defn): Use go_value_print_inner.
9878
5f56f7cb
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9882 API.
9883 (rust_val_print): Rewrite.
9884 (rust_value_print_inner): New function, from rust_val_print.
9885 (rust_language_defn): Use rust_value_print_inner.
9886
26792ee0
TT
98872020-03-13 Tom Tromey <tom@tromey.com>
9888
9889 * ada-valprint.c (ada_value_print_inner): New function.
9890 * ada-lang.h (ada_value_print_inner): Declare.
9891 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9892
24051bbe
TT
98932020-03-13 Tom Tromey <tom@tromey.com>
9894
9895 * f-valprint.c (f_value_print_innner): New function.
9896 * f-lang.h (f_value_print_innner): Declare.
9897 * f-lang.c (f_language_defn): Use f_value_print_innner.
9898
c0941be6
TT
98992020-03-13 Tom Tromey <tom@tromey.com>
9900
9901 * p-valprint.c (pascal_value_print_inner): New function.
9902 * p-lang.h (pascal_value_print_inner): Declare.
9903 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9904
62c4663d
TT
99052020-03-13 Tom Tromey <tom@tromey.com>
9906
9907 * m2-valprint.c (m2_value_print_inner): New function.
9908 * m2-lang.h (m2_value_print_inner): Declare.
9909 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9910
62182190
TT
99112020-03-13 Tom Tromey <tom@tromey.com>
9912
9913 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9914 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9915 * c-valprint.c (c_value_print_inner): New function.
9916 * c-lang.h (c_value_print_inner): Declare.
9917 * c-lang.c (c_language_defn, cplus_language_defn)
9918 (asm_language_defn, minimal_language_defn): Use
9919 c_value_print_inner.
9920
1e592a8a
TT
99212020-03-13 Tom Tromey <tom@tromey.com>
9922
9923 * p-valprint.c (pascal_object_print_value_fields): Now static.
9924 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9925
7fe471e9
TT
99262020-03-13 Tom Tromey <tom@tromey.com>
9927
9928 * c-valprint.c (c_val_print_array): Simplify.
9929
d121c6ce
TT
99302020-03-13 Tom Tromey <tom@tromey.com>
9931
9932 * valprint.c (value_print_array_elements): New function.
9933 * valprint.h (value_print_array_elements): Declare.
9934
4dba70ee
TT
99352020-03-13 Tom Tromey <tom@tromey.com>
9936
9937 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9938 * mips-tdep.c (mips_print_register): Use
9939 value_print_scalar_formatted.
9940
4f9ae810
TT
99412020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * valprint.h (value_print_scalar_formatted): Declare.
9944 * valprint.c (value_print_scalar_formatted): New function.
9945
156bfec9
TT
99462020-03-13 Tom Tromey <tom@tromey.com>
9947
9948 * valprint.h (generic_value_print): Declare.
9949 * valprint.c (generic_value_print): New function.
9950
2b4e573d
TT
99512020-03-13 Tom Tromey <tom@tromey.com>
9952
9953 * valprint.c (do_val_print): Call la_value_print_inner, if
9954 available.
9955 * rust-lang.c (rust_language_defn): Update.
9956 * p-lang.c (pascal_language_defn): Update.
9957 * opencl-lang.c (opencl_language_defn): Update.
9958 * objc-lang.c (objc_language_defn): Update.
9959 * m2-lang.c (m2_language_defn): Update.
9960 * language.h (struct language_defn) <la_value_print_inner>: New
9961 member.
9962 * language.c (unknown_language_defn, auto_language_defn): Update.
9963 * go-lang.c (go_language_defn): Update.
9964 * f-lang.c (f_language_defn): Update.
9965 * d-lang.c (d_language_defn): Update.
9966 * c-lang.c (c_language_defn, cplus_language_defn)
9967 (asm_language_defn, minimal_language_defn): Update.
9968 * ada-lang.c (ada_language_defn): Update.
9969
a1f6a07c
TT
99702020-03-13 Tom Tromey <tom@tromey.com>
9971
9972 * c-valprint.c (c_value_print): Use common_val_print.
9973
410cf315
TT
99742020-03-13 Tom Tromey <tom@tromey.com>
9975
9976 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9977
72a45c93
TT
99782020-03-13 Tom Tromey <tom@tromey.com>
9979
9980 * f-valprint.c (f77_print_array_1, f_val_print): Use
9981 common_val_print.
9982
040f66bd
TT
99832020-03-13 Tom Tromey <tom@tromey.com>
9984
9985 * riscv-tdep.c (riscv_print_one_register_info): Use
9986 common_val_print.
9987
a6e05a6c
TT
99882020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * mi/mi-main.c (output_register): Use common_val_print.
9991
3444c526
TT
99922020-03-13 Tom Tromey <tom@tromey.com>
9993
9994 * infcmd.c (default_print_one_register_info): Use
9995 common_val_print.
9996
c2a44efe
TT
99972020-03-13 Tom Tromey <tom@tromey.com>
9998
9999 * valprint.h (common_val_print_checked): Declare.
10000 * valprint.c (common_val_print_checked): New function.
10001 * stack.c (print_frame_arg): Use common_val_print_checked.
10002
b0c26e99
TT
100032020-03-13 Tom Tromey <tom@tromey.com>
10004
10005 * valprint.c (do_val_print): New function, from val_print.
10006 (val_print): Use do_val_print.
10007 (common_val_print): Use do_val_print.
10008
ce3acbe9
TT
100092020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * valprint.c (value_print): Use scoped_value_mark.
10012
96c7f873
TV
100132020-03-13 Tom de Vries <tdevries@suse.de>
10014
10015 PR symtab/25646
10016 * psymtab.c (partial_symtab::partial_symtab): Don't set
10017 globals_offset and statics_offset. Push element onto
10018 current_global_psymbols and current_static_psymbols stacks.
10019 (concat): New function.
10020 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10021 element from current_global_psymbols and current_static_psymbols
10022 stacks. Concat popped elements to global_psymbols and
10023 static_symbols.
10024 (add_psymbol_to_list): Use current_global_psymbols and
10025 current_static_psymbols stacks.
10026 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10027 current_static_psymbols fields.
10028
6ba0a321
CB
100292020-03-12 Christian Biesinger <cbiesinger@google.com>
10030
10031 * corelow.c (sniff_core_bfd): Remove.
10032 (class core_target) <m_core_vec>: Remove.
10033 (core_target::core_target): Update.
10034 (core_file_fns): Remove.
10035 (deprecated_add_core_fns): Remove.
10036 (default_core_sniffer): Remove.
10037 (sniff_core_bfd): Remove.
10038 (default_check_format): Remove.
10039 (gdb_check_format): Remove.
10040 (core_target_open): Update.
10041 (core_target::get_core_register_section): Update.
10042 (get_core_registers_cb): Update.
10043 (core_target::fetch_registers): Update.
10044 * gdbcore.h (struct core_fns): Remove.
10045 (deprecated_add_core_fns): Remove.
10046 (default_core_sniffer): Remove.
10047 (default_check_format): Remove.
10048
227031b2
TT
100492020-03-12 Tom Tromey <tom@tromey.com>
10050
10051 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10052 CORE_ADDR.
10053 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10054
53807e9f
TT
100552020-03-12 Tom Tromey <tom@tromey.com>
10056
10057 * remote.c (remote_target::download_tracepoint)
10058 (remote_target::enable_tracepoint)
10059 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10060 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10061 sprintf_vma.
10062
64f25102
TT
100632020-03-12 Tom Tromey <tom@tromey.com>
10064
10065 * symfile-mem.c: Update CORE_ADDR size assert.
10066
272cd5a3
SM
100672020-03-12 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * selftest.m4: Move to gdbsupport/.
10070 * acinclude.m4: Update path to selftest.m4.
10071
74cd3f9d
SM
100722020-03-12 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10075 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10076 gdbarch-selfselftests.c and selftest-arch.c.
10077 (SUBDIR_UNITTESTS_OBS): Rename to...
10078 (SELFTESTS_OBS): ... this.
10079 (COMMON_SFILES): Remove disasm-selftests.c and
10080 gdbarch-selftests.c.
10081 * configure.ac: Don't add selftest-arch.{c,o} to
10082 CONFIG_{SRCS,OBS}.
10083 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10084 preprocessor conditions.
10085
db6878ac
SM
100862020-03-12 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * configure.ac: Don't source bfd/development.sh.
10089 * selftest.m4: Modify comment.
10090 * configure: Re-generate.
10091
4d696a5c
SM
100922020-03-12 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10095 not "true" or "false".
10096 * configure: Re-generate.
10097
8dd8e1c7
CB
100982020-03-12 Christian Biesinger <cbiesinger@google.com>
10099
10100 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10101 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10102 renamed to arm_nbsd_supply_gregset.
10103 (fetch_register): Update to call arm_nbsd_supply_gregset.
10104 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10105 (arm_netbsd_nat_target::fetch_registers): Update.
10106 (fetch_elfcore_registers): Removed.
10107 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10108 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10109 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10110 not require NetBSD system headers.
10111 (arm_nbsd_regset): New struct.
10112 (arm_nbsd_iterate_over_regset_sections): New function.
10113 (arm_netbsd_init_abi_common): Updated to call
10114 set_gdbarch_iterate_over_regset_sections.
10115 * arm-nbsd-tdep.h: New file.
10116
dd69bf7a
KB
101172020-03-11 Kevin Buettner <kevinb@redhat.com>
10118
10119 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10120 recursion.
10121
a0761e34
SM
101222020-03-11 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * configure: Re-generate.
10125
e7a82140
TT
101262020-03-11 Tom Tromey <tromey@adacore.com>
10127
10128 * ada-typeprint.c (print_choices): Fix comment.
10129
dcc050c8
AB
101302020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10133 previous item in the list, when the list has no items.
10134
1c33af77
TV
101352020-03-11 Tom de Vries <tdevries@suse.de>
10136
10137 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10138 PROP_LOCLIST handling code.
10139
8c95582d
AB
101402020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10141
10142 * buildsym-legacy.c (record_line): Pass extra parameter to
10143 record_line.
10144 * buildsym.c (buildsym_compunit::record_line): Take an extra
10145 parameter, reduce duplication in the line table, and record the
10146 is_stmt flag in the line table.
10147 * buildsym.h (buildsym_compunit::record_line): Add extra
10148 parameter.
10149 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10150 non-statement lines.
10151 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10152 this to the symtab builder.
10153 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10154 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10155 through to dwarf_record_line_1.
10156 * infrun.c (process_event_stop_test): When stepping, don't stop at
10157 a non-statement instruction, and only refresh the step info when
10158 we land in the middle of a line's range. Also add an extra
10159 comment.
10160 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10161 field.
10162 * record-btrace.c (btrace_find_line_range): Only record lines
10163 marked as is-statement.
10164 * stack.c (frame_show_address): Show the frame address if we are
10165 in a non-statement sal.
10166 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10167 (maintenance_print_one_line_table): Print a header for the is_stmt
10168 column, and include is_stmt information in the output.
10169 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10170 preference to non-statements.
10171 (find_pcs_for_symtab_line): Prefer is-statement entries.
10172 (find_line_common): Likewise.
10173 * symtab.h (struct linetable_entry): Add is_stmt field.
10174 (struct symtab_and_line): Likewise.
10175 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10176 arranging the line table.
10177
e4003a34
TV
101782020-03-07 Tom de Vries <tdevries@suse.de>
10179
10180 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10181 DIE.
10182
e8932576
TT
101832020-03-07 Tom Tromey <tom@tromey.com>
10184
10185 * valops.c (value_literal_complex): Remove obsolete comment.
10186 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10187 comment.
10188
29734269
SM
101892020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 * infrun.h: Forward-declare thread_info.
10192 (set_step_info): Add thread_info parameter, add doc.
10193 * infrun.c (set_step_info): Add thread_info parameter, move doc
10194 to header.
10195 * infrun.c (process_event_stop_test): Pass thread to
10196 set_step_info call.
10197 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10198 set_step_info.
10199 (prepare_one_step): Add thread_info parameter, pass it to
10200 set_step_frame and prepare_one_step (recursive) call.
10201 (step_1): Pass thread to prepare_one_step call.
10202 (step_command_fsm::should_stop): Pass thread to
10203 prepare_one_step.
10204 (until_next_fsm): Pass thread to set_step_frame call.
10205 (finish_command): Pass thread to set_step_info call.
10206
b7d64b29
HD
102072020-03-06 Hannes Domani <ssbssa@yahoo.de>
10208
10209 * windows-tdep.c (windows_solib_create_inferior_hook):
10210 Check if inferior is running.
10211
09f2921c
TV
102122020-03-06 Tom de Vries <tdevries@suse.de>
10213
10214 * NEWS: Fix "the the".
10215 * ctfread.c: Same.
10216
fd760e79
TV
102172020-03-06 Tom de Vries <tdevries@suse.de>
10218
10219 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10220
20ea4a60
AB
102212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * .dir-locals.el: Add a comment referencing the other copies of
10224 this file.
10225
0afbabf0
JB
102262020-03-05 John Baldwin <jhb@FreeBSD.org>
10227
10228 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10229 psargs.
10230
842806cb
TBA
102312020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10232
10233 * .gitattributes: New file.
10234
be1e3d3e
TT
102352020-03-04 Tom Tromey <tom@tromey.com>
10236
10237 * symmisc.c (print_symbol_bcache_statistics)
10238 (print_objfile_statistics): Update.
10239 * symfile.c (allocate_symtab): Use intern.
10240 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10241 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10242 macro_cache>: Remove.
10243 <string_cache>: New member.
10244 (struct objfile) <intern>: New methods.
10245 * elfread.c (elf_symtab_read): Use intern.
10246 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10247 (dwarf2_compute_name, dwarf2_physname)
10248 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10249 names.
10250 (guess_partial_die_structure_name): Update.
10251 (partial_die_info::fixup): Intern name.
10252 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10253 name.
10254 (dwarf2_name): Intern name. Update.
10255 * buildsym.c (buildsym_compunit::get_macro_table): Use
10256 string_cache.
10257
4e7625fd
TT
102582020-03-04 Tom Tromey <tom@tromey.com>
10259
10260 * jit.c (bfd_open_from_target_memory): Make "target" const.
10261 * corefile.c (gnutarget): Now const.
10262 * gdbcore.h (gnutarget): Now const.
10263
46f9f931
HD
102642020-03-04 Hannes Domani <ssbssa@yahoo.de>
10265
10266 * NEWS: Mention support for WOW64 processes.
10267 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10268 (amd64_windows_segment_register_p): Remove static.
10269 (_initialize_amd64_windows_nat): Update.
10270 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10271 * i386-windows-nat.c (context_offset): Update.
10272 (i386_mappings): Rename and remove static.
10273 (i386_windows_segment_register_p): Remove static.
10274 (_initialize_i386_windows_nat): Update.
10275 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10276 (STATUS_WX86_SINGLE_STEP): New macro.
10277 (EnumProcessModulesEx): New macro.
10278 (Wow64SuspendThread): New macro.
10279 (Wow64GetThreadContext): New macro.
10280 (Wow64SetThreadContext): New macro.
10281 (Wow64GetThreadSelectorEntry): New macro.
10282 (windows_set_context_register_offsets): Add static.
10283 (windows_set_segment_register_p): Likewise.
10284 (windows_add_thread): Adapt for WOW64 processes.
10285 (windows_fetch_one_register): Likewise.
10286 (windows_nat_target::fetch_registers): Likewise.
10287 (windows_store_one_register): Likewise.
10288 (display_selector): Likewise.
10289 (display_selectors): Likewise.
10290 (handle_exception): Likewise.
10291 (windows_continue): Likewise.
10292 (windows_nat_target::resume): Likewise.
10293 (windows_add_all_dlls): Likewise.
10294 (do_initial_windows_stuff): Likewise.
10295 (windows_nat_target::attach): Likewise.
10296 (windows_get_exec_module_filename): Likewise.
10297 (windows_nat_target::create_inferior): Likewise.
10298 (windows_xfer_siginfo): Likewise.
10299 (_initialize_loadable): Initialize Wow64SuspendThread,
10300 Wow64GetThreadContext, Wow64SetThreadContext,
10301 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10302 * windows-nat.h (windows_set_context_register_offsets):
10303 Remove declaration.
10304 (windows_set_segment_register_p): Likewise.
10305 (i386_windows_segment_register_p): Add declaration.
10306 (amd64_windows_segment_register_p): Likewise.
10307
440cf44e
LM
103082020-03-04 Luis Machado <luis.machado@linaro.org>
10309
10310 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10311 in "info registers" for AArch64/ARM.
10312
10313 The change caused "info registers" to not print GPR's.
10314
10315 gdb/ChangeLog:
10316
10317 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10318
10319 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10320 when reg->group is empty and reggroup is not.
10321
1009d92f
TT
103222020-03-03 Tom Tromey <tromey@adacore.com>
10323
10324 * dwarf2/frame.c (struct dwarf2_frame_cache)
10325 <checked_tailcall_bottom, entry_cfa_sp_offset,
10326 entry_cfa_sp_offset_p>: Remove members.
10327 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10328 (dwarf2_frame_prev_register): Don't call
10329 dwarf2_tailcall_sniffer_first.
10330 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10331 * frame-unwind.c (add_unwinder): New fuction.
10332 (frame_unwind_init): Use it. Add tailcall unwinder.
10333
5e5d66b6
AB
103342020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10335 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10336
10337 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10338 value should be printed as true.
10339
584cf46d
HD
103402020-03-03 Hannes Domani <ssbssa@yahoo.de>
10341
10342 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10343 (windows_init_abi): Set and use windows_so_ops.
10344
7b973adc
SDJ
103452020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10346
10347 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10348 when verifying if dealing with a convenience variable.
10349
bb7b70ab
LM
103502020-03-03 Luis Machado <luis.machado@linaro.org>
10351
10352 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10353
9822cb57
SM
103542020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10355
10356 * infrun.c (gdbarch_supports_displaced_stepping): New.
10357 (use_displaced_stepping): Break up conditions in smaller pieces.
10358 Use gdbarch_supports_displaced_stepping.
10359 (displaced_step_prepare_throw): Use
10360 gdbarch_supports_displaced_stepping.
10361
63e163f2
AB
103622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * NEWS: Mention new behaviour of the history filename.
10365 * top.c (write_history_p): Add comment.
10366 (show_write_history_p): Add header comment, give a different
10367 message when history writing is on, but the history filename is
10368 empty.
10369 (history_filename): Add comment.
10370 (history_filename_empty): New function.
10371 (show_history_filename): Add header comment, give a different
10372 message when the filename is empty.
10373 (init_history): Compare history_filename against nullptr, and only
10374 read history if the filename is not empty.
10375 (set_history_filename): Add header comment, and only make
10376 non-empty filenames absolute.
10377 (init_main): Make the filename argument to 'set history filename'
10378 optional.
10379
81b86b97
CB
103802020-03-02 Christian Biesinger <cbiesinger@google.com>
10381
10382 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10383 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10384 (fetch_fp_register): Update.
10385 (fetch_fp_regs): Update.
10386 (store_fp_register): Update.
10387 (store_fp_regs): Update.
10388 (arm_netbsd_nat_target::read_description): New function.
10389 (fetch_elfcore_registers): Update.
10390
24ed6739
AB
103912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10392
10393 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10394 general_thread if the stop reply is missing a thread-id.
10395 (remote_target::process_stop_reply): Use the first non-exited
10396 thread if the target didn't pass a thread-id.
10397 * infrun.c (do_target_wait): Move call to
10398 switch_to_inferior_no_thread to ....
10399 (do_target_wait_1): ... here.
10400
a84bb2a0
JT
104012020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10402
10403 * debuginfod-support.c: Include defs.h first.
10404
658dadf0
TV
104052020-02-28 Tom de Vries <tdevries@suse.de>
10406
10407 * symfile.c (set_initial_language): Use default language for lookup.
10408
4ebe4877
SM
104092020-02-28 Simon Marchi <simon.marchi@efficios.com>
10410
10411 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10412 reader variable, pass `this` to read_cutu_die_from_dwo.
10413
e5da1139
AM
104142020-02-27 Aaron Merey <amerey@redhat.com>
10415
10416 * source.c (open_source_file): Check for nullptr when computing
10417 srcpath.
10418
317f7127
TT
104192020-02-27 Tom Tromey <tromey@adacore.com>
10420
10421 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10422 member.
10423 (dwarf2_add_field): Don't update nfields.
10424 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10425
3104d9ee
AB
104262020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10427
10428 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10429 abs.
10430
b83470bf
TT
104312020-02-26 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10434 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10435 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10436 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10437 per_cu_data.
10438
edfe0a0c
TT
104392020-02-26 Tom Tromey <tom@tromey.com>
10440
10441 * dwarf2/index-write.c (psym_index_map): Change type.
10442 (add_address_entry_worker, write_one_signatured_type)
10443 (recursively_count_psymbols, recursively_write_psymbols)
10444 (class debug_names, psyms_seen_size, write_gdbindex)
10445 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10446
0d79cdc4
AM
104472020-02-26 Aaron Merey <amerey@redhat.com>
10448
10449 * Makefile.in: Handle optional debuginfod support.
10450 * NEWS: Update.
10451 * README: Add --with-debuginfod summary.
10452 * config.in: Regenerate.
10453 * configure: Regenerate.
10454 * configure.ac: Handle optional debuginfod support.
10455 * debuginfod-support.c: debuginfod helper functions.
10456 * debuginfod-support.h: Ditto.
10457 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10458 summary.
10459 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10460 when a dwz file cannot be found.
10461 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10462 debuginfo file cannot be found.
10463 * source.c (open_source_file): Query debuginfod servers when a
10464 source file cannot be found.
10465 * top.c (print_gdb_configuration): Include
10466 --{with,without}-debuginfod in the output.
10467
b65ce565
JG
104682020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10469
10470 * thread.c (thr_try_catch_cmd): Print thread name.
10471
d4c9a4f8
SM
104722020-02-26 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10475 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10476 dwarf2_fetch_die_type_sect_off): Move to...
10477 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10478 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10479 dwarf2_fetch_die_type_sect_off): ... here.
10480 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10481 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10482 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10483
0dce4280
TV
104842020-02-26 Tom de Vries <tdevries@suse.de>
10485
10486 PR gdb/25603
10487 * symfile.c (set_initial_language): Exit-early if
10488 language_mode == language_mode_manual.
10489
450a1bfc
SM
104902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10491
10492 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10493 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10494 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10495
9e80cfa1
AB
104962020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10497
10498 * gdbtypes.c (create_array_type_with_stride): Handle negative
10499 array strides.
10500 * valarith.c (value_subscripted_rvalue): Likewise.
10501
09624f1f
LM
105022020-02-25 Luis Machado <luis.machado@linaro.org>
10503
10504 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10505
8cb5117c
SM
105062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10507
10508 * loc.h (dwarf2_get_die_type): Move to...
10509 * read.h (dwarf2_get_die_type): ... here.
10510 * read.c (dwarf2_get_die_type): Move doc to header.
10511
c325c44e
JB
105122020-02-25 Joel Brobecker <brobecker@adacore.com>
10513
10514 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10515 'gnulib/Makefile.in' to the list.
10516
4ac93832
TT
105172020-02-24 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10520 Remove.
10521 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10522 XOBNEWVEC.
10523
197400e8
TT
105242020-02-24 Tom Tromey <tom@tromey.com>
10525
10526 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10527 New method.
10528 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10529 (dw2_do_instantiate_symtab, dw2_get_file_names)
10530 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10531
76935768
TT
105322020-02-24 Tom Tromey <tom@tromey.com>
10533
10534 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10535 make_scoped_restore.
10536 (dwarf2_psymtab::read_symtab): Don't clear
10537 reading_partial_symbols.
10538
a88ef40d
TV
105392020-02-24 Tom de Vries <tdevries@suse.de>
10540
10541 PR gdb/25592
10542 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10543
c9af6521
TV
105442020-02-24 Tom de Vries <tdevries@suse.de>
10545
10546 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10547 commands layout next/prev/regs.
10548
5707a07a
TT
105492020-02-22 Tom Tromey <tom@tromey.com>
10550
10551 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10552 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10553
3b0fb49e
TT
105542020-02-22 Tom Tromey <tom@tromey.com>
10555
10556 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10557
283be8bf
TT
105582020-02-22 Tom Tromey <tom@tromey.com>
10559
10560 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10561 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10562 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10563 * tui/tui.c (_initialize_tui): Add usage text.
10564
ca793b96
TT
105652020-02-22 Tom Tromey <tom@tromey.com>
10566
10567 * tui/tui-win.c (tui_set_focus_command)
10568 (tui_set_win_height_command): Use error_no_arg.
10569 (_initialize_tui_win): Update help text.
10570 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10571
432b5c40
TT
105722020-02-22 Tom Tromey <tom@tromey.com>
10573
10574 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10575 * tui/tui-disasm.h (struct tui_disasm_window)
10576 <display_start_addr>: Declare.
10577 * tui/tui-source.h (struct tui_source_window)
10578 <display_start_addr>: Declare.
10579 * tui/tui-winsource.h (struct tui_source_window_base)
10580 <show_source_line, display_start_addr>: New methods.
10581 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10582 Rename and move to protected section.
10583 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10584 (tui_source_window_base::do_erase_source_content): Update.
10585 (tui_source_window_base::show_source_line): Now a method.
10586 (tui_source_window_base::show_source_content)
10587 (tui_source_window_base::tui_source_window_base)
10588 (tui_source_window_base::rerender)
10589 (tui_source_window_base::refill)
10590 (tui_source_window_base::do_scroll_horizontal)
10591 (tui_source_window_base::set_is_exec_point_at)
10592 (tui_source_window_base::update_breakpoint_info)
10593 (tui_source_window_base::update_exec_info): Update.
10594 * tui/tui-source.c (tui_source_window::set_contents)
10595 (tui_source_window::showing_source_p)
10596 (tui_source_window::do_scroll_vertical)
10597 (tui_source_window::location_matches_p)
10598 (tui_source_window::line_is_displayed): Update.
10599 (tui_source_window::display_start_addr): New method.
10600 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10601 (tui_disasm_window::do_scroll_vertical)
10602 (tui_disasm_window::location_matches_p): Update.
10603 (tui_disasm_window::display_start_addr): New method.
10604
01b1af32
TT
106052020-02-22 Tom Tromey <tom@tromey.com>
10606
10607 * NEWS: Add entry for gdb.register_window_type.
10608 * tui/tui-layout.h (window_factory): New typedef.
10609 (tui_register_window): Declare.
10610 * tui/tui-layout.c (saved_tui_windows): New global.
10611 (tui_apply_current_layout): Use it.
10612 (tui_register_window): New function.
10613 * python/python.c (do_start_initialization): Call
10614 gdbpy_initialize_tui.
10615 (python_GdbMethods): Add "register_window_type" function.
10616 * python/python-internal.h (gdbpy_register_tui_window)
10617 (gdbpy_initialize_tui): Declare.
10618 * python/py-tui.c: New file.
10619 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10620
fc96d20b
TT
106212020-02-22 Tom Tromey <tom@tromey.com>
10622
10623 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10624
935c78c0
TT
106252020-02-22 Tom Tromey <tom@tromey.com>
10626
10627 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10628 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10629 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10630 (tui_set_win_focus_to): Move from tui-win.c.
10631
0240c8f1
TT
106322020-02-22 Tom Tromey <tom@tromey.com>
10633
10634 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10635 functions.
10636 (known_window_types): New global.
10637 (tui_get_window_by_name): Reimplement.
10638 (initialize_known_windows): New function.
10639 (validate_window_name): Rewrite.
10640 (_initialize_tui_layout): Call initialize_known_windows.
10641
fdb01f0c
TT
106422020-02-22 Tom Tromey <tom@tromey.com>
10643
10644 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10645 Remove constants.
10646 * tui/tui-winsource.h (struct tui_source_window_base)
10647 <tui_source_window_base>: Remove parameter.
10648 * tui/tui-winsource.c
10649 (tui_source_window_base::tui_source_window_base): Remove
10650 parameter.
10651 (tui_source_window_base::refill): Update.
10652 * tui/tui-stack.h (struct tui_locator_window)
10653 <tui_locator_window>: Update.
10654 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10655 Default the constructor.
10656 * tui/tui-regs.h (struct tui_data_item_window)
10657 <tui_data_item_window>: Default the constructor.
10658 (struct tui_data_window) <tui_data_window>: Likewise.
10659 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10660 Default the constructor.
10661 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10662 Default the constructor.
10663 <type>: Remove.
10664 (struct tui_win_info) <tui_win_info>: Default the constructor.
10665 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10666 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10667 Default the constructor.
10668
865a5aec
TT
106692020-02-22 Tom Tromey <tom@tromey.com>
10670
10671 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10672 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10673 * tui/tui-win.c (tui_resize_all): Don't call
10674 tui_delete_invisible_windows.
10675 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10676 done.
10677 (tui_set_layout): Update.
10678 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10679 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10680 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10681
e098d18c
TT
106822020-02-22 Tom Tromey <tom@tromey.com>
10683
10684 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10685 correctly.
10686
eb9c8874
TT
106872020-02-22 Tom Tromey <tom@tromey.com>
10688
10689 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10690
7eed1a8e
TT
106912020-02-22 Tom Tromey <tom@tromey.com>
10692
10693 * tui/tui-winsource.h (struct tui_source_window_iterator)
10694 <inner_iterator>: New etytypedef.
10695 <tui_source_window_iterator>: Take "end" parameter.
10696 <tui_source_window_iterator>: Take iterator.
10697 <operator*, advance>: Update.
10698 <m_iter>: Change type.
10699 <m_end>: New field.
10700 (struct tui_source_windows) <begin, end>: Update.
10701 * tui/tui-layout.c (tui_windows): New global.
10702 (tui_apply_current_layout): Clear tui_windows.
10703 (tui_layout_window::apply): Update tui_windows.
10704 * tui/tui-data.h (tui_windows): Declare.
10705 (all_tui_windows): Now inline function.
10706 (class tui_window_iterator, struct all_tui_windows): Remove.
10707
7c043ba6
TT
107082020-02-22 Tom Tromey <tom@tromey.com>
10709
10710 PR tui/17850:
10711 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10712 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10713 "height" argument.
10714 (class tui_layout_window) <get_sizes>: Likewise.
10715 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10716 argument.
10717 <get_sizes>: Add "height" argument.
10718 <m_vertical>: New field.
10719 * tui/tui-layout.c (tui_layout_split::clone): Update.
10720 (tui_layout_split::get_sizes): Add "height" argument.
10721 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10722 (tui_new_layout_command): Parse "-horizontal".
10723 (_initialize_tui_layout): Update help string.
10724 (tui_layout_split::specification): Add "-horizontal" when needed.
10725 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10726 argument.
10727 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10728 New methods.
10729
6bc56648
TT
107302020-02-22 Tom Tromey <tom@tromey.com>
10731
10732 * tui/tui-layout.h (enum tui_adjust_result): New.
10733 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10734 (class tui_layout_window) <adjust_size>: Return
10735 tui_adjust_result. Rewrite.
10736 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10737 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10738
c22fef7e
TT
107392020-02-22 Tom Tromey <tom@tromey.com>
10740
10741 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10742 parameter and return types.
10743 (class tui_layout_base) <specification>: Add "depth".
10744 (class tui_layout_window) <specification>: Add "depth".
10745 (class tui_layout_split) <specification>: Add "depth".
10746 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10747 and return types.
10748 (tui_new_layout_command): Parse sub-layouts.
10749 (_initialize_tui_layout): Update help string.
10750 (tui_layout_window::specification): Add "depth".
10751 (add_layout_command): Update.
10752
ee325b61
TT
107532020-02-22 Tom Tromey <tom@tromey.com>
10754
10755 * NEWS: Add "tui new-layout" item.
10756 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10757 Add new-layout command to help text.
10758 (validate_window_name): New function.
10759 (tui_new_layout_command): New function.
10760 (_initialize_tui_layout): Register "new-layout".
10761 (tui_layout_window::specification): New method.
10762 (tui_layout_window::specification): New method.
10763 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10764 method.
10765 (class tui_layout_window) <specification>: New method.
10766 (class tui_layout_split) <specification>: New method.
10767
416eb92d
TT
107682020-02-22 Tom Tromey <tom@tromey.com>
10769
10770 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10771 * tui/tui-win.c (window_name_completer): Update comment.
10772 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10773 Declare method.
10774 (class tui_layout_window) <replace_window>: Likewise.
10775 (class tui_layout_split) <replace_window>: Likewise.
10776 (tui_set_layout): Don't declare.
10777 (tui_set_initial_layout): Declare function.
10778 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10779 (asm_regs_layout): New globals.
10780 (tui_current_layout, show_layout): Remove.
10781 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10782 (find_layout, tui_apply_layout): New function.
10783 (layout_completer): Remove.
10784 (tui_next_layout): Reimplement.
10785 (tui_next_layout_command): New function.
10786 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10787 (tui_regs_layout): Reimplement.
10788 (tui_regs_layout_command): New function.
10789 (extract_display_start_addr): Rewrite.
10790 (next_layout, prev_layout): Remove.
10791 (tui_layout_window::replace_window): New method.
10792 (tui_layout_split::replace_window): New method.
10793 (destroy_layout): New function.
10794 (layout_list): New global.
10795 (add_layout_command): New function.
10796 (initialize_layouts): Update.
10797 (tui_layout_command): New function.
10798 (_initialize_tui_layout): Install "layout" commands.
10799 * tui/tui-data.h (enum tui_layout_type): Remove.
10800 (tui_current_layout): Don't declare.
10801
0dbc2fc7
TT
108022020-02-22 Tom Tromey <tom@tromey.com>
10803
10804 * tui/tui-regs.c (tui_reg_layout): Remove.
10805 (tui_reg_command): Use tui_regs_layout.
10806 * tui/tui-layout.h (tui_reg_command): Declare.
10807 * tui/tui-layout.c (tui_reg_command): New function.
10808
5afe342e
TT
108092020-02-22 Tom Tromey <tom@tromey.com>
10810
10811 * tui/tui.c (tui_rl_delete_other_windows): Call
10812 tui_remove_some_windows.
10813 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10814 Declare method.
10815 (class tui_layout_window) <remove_windows>: New method.
10816 (class tui_layout_split) <remove_windows>: Declare.
10817 (tui_remove_some_windows): Declare.
10818 * tui/tui-layout.c (tui_remove_some_windows): New function.
10819 (tui_layout_split::remove_windows): New method.
10820
427326a8
TT
108212020-02-22 Tom Tromey <tom@tromey.com>
10822
10823 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10824 * tui/tui-layout.h (tui_next_layout): Declare.
10825 * tui/tui-layout.c (tui_next_layout): New function.
10826
3fe12b6d
TT
108272020-02-22 Tom Tromey <tom@tromey.com>
10828
10829 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10830 correct coordinates.
10831
59b8b5d2
TT
108322020-02-22 Tom Tromey <tom@tromey.com>
10833
10834 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10835 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10836 DATA_WIN case.
10837
2a3d458b
TT
108382020-02-22 Tom Tromey <tom@tromey.com>
10839
10840 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10841 TUI_DISASM_WIN, not tui_win_list.
10842
3f0cbb04
TT
108432020-02-22 Tom Tromey <tom@tromey.com>
10844
10845 * valprint.c (generic_val_print_enum_1)
10846 (val_print_type_code_flags): Style member names.
10847 * rust-lang.c (val_print_struct, rust_print_enum)
10848 (rust_print_struct_def, rust_internal_print_type): Style member
10849 names.
10850 * p-valprint.c (pascal_object_print_value_fields): Style member
10851 names. Only call fprintf_symbol_filtered for static members.
10852 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10853 * f-valprint.c (f_val_print): Style member names.
10854 * f-typeprint.c (f_type_print_base): Style member names.
10855 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10856 call fprintf_symbol_filtered for static members.
10857 (cp_print_class_member): Style member names.
10858 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10859 member names.
10860 * ada-valprint.c (ada_print_scalar): Style enum names.
10861 (ada_val_print_enum): Likewise.
10862 * ada-typeprint.c (print_enum_type): Style enum names.
10863
d4d947ae
TT
108642020-02-21 Tom Tromey <tom@tromey.com>
10865
10866 * psympriv.h (struct partial_symtab): Update comment.
10867
e94e944b
TT
108682020-02-21 Tom Tromey <tromey@adacore.com>
10869
10870 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10871 type is CORE_ADDR.
10872
1eb73179
TV
108732020-02-21 Tom de Vries <tdevries@suse.de>
10874
10875 PR gdb/25534
10876 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10877 if dependencies[i]->user != NULL.
10878
4f180d53
AT
108792020-02-21 Ali Tamur <tamur@google.com>
10880
10881 * dwarf2/read.c (dwarf2_name): Add null check.
10882
22b6cd70
TT
108832020-02-20 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10886 ">=", in binary search.
10887 (dwarf2_find_containing_comp_unit): New overload.
10888 (run_test): New self-test.
10889 (_initialize_dwarf2_read): Register new test.
10890
bd0cf5a6
NC
108912020-02-20 Nelson Chu <nelson.chu@sifive.com>
10892
10893 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10894 * riscv-tdep.h: Likewise.
10895 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10896 rv32-only CSR.
10897 * features/riscv/64bit-csr.xml: Regenerated.
10898
3f702acd
SDJ
108992020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10900 Tom Tromey <tom@tromey.com>
10901
10902 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10903 of 'fputc_unfiltered'.
10904 (putchar_unfiltered): Call 'fputc_unfiltered'.
10905 (fputc_unfiltered): Call 'fputs_unfiltered'.
10906
d13c7322
AB
109072020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10908
10909 * config.in: Regenerate.
10910 * configure: Regenerate.
10911 * configure.ac: Add --with-python-libdir option.
10912 * main.c: Use WITH_PYTHON_LIBDIR.
10913
869d8950
TT
109142020-02-19 Tom Tromey <tom@tromey.com>
10915
10916 * symtab.c (general_symbol_info::compute_and_set_names): Use
10917 obstack_strndup. Simplify call to symbol_set_demangled_name.
10918
298e9637
SM
109192020-02-19 Simon Marchi <simon.marchi@efficios.com>
10920
10921 * dwarf2/read.c (allocate_signatured_type_table,
10922 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10923 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10924 Remove objfile parameter, update all callers.
10925
08410482
DE
109262020-02-19 Doug Evans <dje@google.com>
10927
10928 PR rust/25535
10929 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10930 rust_enum_variant calculation.
10931
dfdeeca1
TT
109322020-02-19 Tom Tromey <tromey@adacore.com>
10933
10934 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10935
2ef5453b
TT
109362020-02-19 Tom Tromey <tromey@adacore.com>
10937
10938 * ada-lang.c (cache_symbol): Use obstack_strdup.
10939
9f1528a1
AB
109402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * configure: Regenerate.
10943
d3c22fa8
TT
109442020-02-19 Tom Tromey <tromey@adacore.com>
10945
10946 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10947 NULL check.
10948
bf84f706
MR
109492020-02-19 Maciej W. Rozycki <macro@wdc.com>
10950
10951 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10952
d1c9b20f
AB
109532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10954
10955 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10956 if GDBSERVER is not defined.
10957 (riscv_tdesc_cache): Likewise, also store const target_desc.
10958 (STATIC_IN_GDB): Define.
10959 (riscv_create_target_description): Update declaration with
10960 STATIC_IN_GDB.
10961 (riscv_lookup_target_description): New function, only define if
10962 GDBSERVER is not defined.
10963 * arch/riscv.h (riscv_create_target_description): Declare only
10964 when GDBSERVER is defined.
10965 (riscv_lookup_target_description): New declaration when GDBSERVER
10966 is not defined.
10967 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10968 (riscv_linux_read_features): ...this, and return
10969 riscv_gdbarch_features instead of target_desc.
10970 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10971 (riscv_linux_read_description): Rename to...
10972 (riscv_linux_read_features): ...this.
10973 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10974 Update to use riscv_gdbarch_features and
10975 riscv_lookup_target_description.
10976 * riscv-tdep.c (riscv_find_default_target_description): Use
10977 riscv_lookup_target_description instead of
10978 riscv_create_target_description.
10979
373d7ac0
SM
109802020-02-18 Simon Marchi <simon.marchi@efficios.com>
10981
10982 * valprint.c (generic_val_print_enum_1): When printing a flag
10983 enum with value 0 and there is no enumerator with value 0, print
10984 just "0" instead of "(unknown: 0x0)".
10985
b29a2df0
SM
109862020-02-18 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * valprint.c (generic_val_print_enum_1): Print unknown part of
10989 flag enum in hex.
10990
6740f0cc
SM
109912020-02-18 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10994 flag enums to contain duplicate enumerators.
10995 * valprint.c (generic_val_print_enum_1): Update comment.
10996
edd45eb0
SM
109972020-02-18 Simon Marchi <simon.marchi@efficios.com>
10998
10999 * dwarf2/read.c: Include "count-one-bits.h".
11000 (update_enumeration_type_from_children): If an enumerator has
11001 multiple bits set, don't treat the enumeration as a "flag enum".
11002 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11003 of flag enums have 0 or 1 bit set.
11004
6d0cf446
BE
110052020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11006
11007 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11008 conversion.
11009 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11010 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11011 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11012 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11013 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11014
7001c1b7
SM
110152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11018
fdb61c6c
SM
110192020-02-14 Simon Marchi <simon.marchi@efficios.com>
11020
11021 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11022 displaced_step_closure_up.
11023 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11024 (struct displaced_step_closure_up):
11025 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11026 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11027 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11028 Likewise.
11029 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11030 * gdbarch.c, gdbarch.h: Re-generate.
11031 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11032 displaced_step_closure_up.
11033 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11034 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11035 * infrun.h (displaced_step_closure_up): New type alias.
11036 (struct displaced_step_inferior_state) <step_closure>: Change
11037 type to displaced_step_closure_up.
11038 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11039 displaced_step_closure_up.
11040 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11041
a4a38eb4
TT
110422020-02-14 Tom Tromey <tom@tromey.com>
11043
11044 * minidebug.c (gnu_debug_key): New global.
11045 (find_separate_debug_file_in_section): Use it.
11046
e8217e61
SM
110472020-02-14 Simon Marchi <simon.marchi@efficios.com>
11048
11049 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11050 std::unique_ptr.
11051 * gdbarch.c: Re-generate.
11052 * gdbarch.h: Re-generate.
11053 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11054 change.
11055 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11056 type to std::unique_ptr.
11057 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11058 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11059 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11060 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11061 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11062 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11063 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11064 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11065 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11066
d8d83535
SM
110672020-02-14 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11070 std::unique_ptr.
11071 (displaced_step_clear): Rename to...
11072 (displaced_step_reset): ... this. Just call displaced->reset ().
11073 (displaced_step_clear_cleanup): Rename to...
11074 (displaced_step_reset_cleanup): ... this.
11075 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11076 (displaced_step_fixup): Likewise.
11077 (resume_1): Likewise.
11078 (handle_inferior_event): Restore child's memory before calling
11079 displaced_step_fixup on the parent.
11080 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11081 to std::unique_ptr.
11082 <step_closure>: Change type to std::unique_ptr.
11083
5f661e03
SM
110842020-02-14 Simon Marchi <simon.marchi@efficios.com>
11085
11086 * arm-tdep.c: Include count-one-bits.h.
11087 (cleanup_block_store_pc): Use count_one_bits.
11088 (cleanup_block_load_pc): Use count_one_bits.
11089 (arm_copy_block_xfer): Use count_one_bits.
11090 (thumb2_copy_block_xfer): Use count_one_bits.
11091 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11092 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11093 (thumb_get_next_pcs_raw): Use count_one_bits.
11094 (arm_get_next_pcs_raw): Use count_one_bits_l.
11095 * arch/arm.c (bitcount): Remove.
11096 * arch/arm.h (bitcount): Remove.
11097
8084e579
TT
110982020-02-14 Tom Tromey <tromey@adacore.com>
11099
11100 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11101 Update.
11102 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11103 * dwarf2/loc.c (call_site_find_chain_1): Return
11104 unique_xmalloc_ptr.
11105 (call_site_find_chain): Likewise.
11106
258bf0ee
RB
111072020-02-14 Richard Biener <rguenther@suse.de>
11108
11109 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11110 on expression with division operators.
11111
f98a8458
AKS
111122020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11113
11114 * MAINTAINERS (Write After Approval): Adding myself.
11115
d1437c0e
TT
111162020-02-12 Tom Tromey <tom@tromey.com>
11117
11118 * event-loop.c (event_data, gdb_event, event_handler_func):
11119 Remove.
11120
3d4560f7
TT
111212020-02-12 Tom Tromey <tom@tromey.com>
11122
11123 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11124 (dwarf2_frame_objfile_data): Add comment.
11125 (find_comp_unit, set_comp_unit): New functions.
11126 (dwarf2_frame_find_fde): Use find_comp_unit.
11127 (dwarf2_build_frame_info): Use set_comp_unit.
11128
21982304
TT
111292020-02-12 Tom Tromey <tom@tromey.com>
11130
11131 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11132 (comp_unit): Don't initialize objfile.
11133 (execute_cfa_program): Add text_offset parameter.
11134 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11135 (dwarf2_frame_cache): Update.
11136 (dwarf2_build_frame_info): Don't set "objfile" member.
11137
4debb237
TT
111382020-02-12 Tom Tromey <tom@tromey.com>
11139
11140 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11141 (decode_frame_entry): Likewise.
11142 (dwarf2_build_frame_info): Update.
11143
0d404d44
TT
111442020-02-12 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11147 (decode_frame_entry_1): Use the comp_unit obstack.
11148
a7a3ae5c
TT
111492020-02-12 Tom Tromey <tom@tromey.com>
11150
11151 * dwarf2/frame.c (struct comp_unit): Add initializers and
11152 constructor.
11153 (dwarf2_frame_objfile_data): Store a comp_unit.
11154 (dwarf2_frame_find_fde): Update.
11155 (dwarf2_build_frame_info): Use "new".
11156
a9d65418
TT
111572020-02-12 Tom Tromey <tom@tromey.com>
11158
11159 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11160 (dwarf2_fde_table): Typedef for std::vector.
11161 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11162 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11163 (decode_frame_entry): Update.
11164 (dwarf2_build_frame_info): Use "new".
11165
7559c217
CB
111662020-02-12 Christian Biesinger <cbiesinger@google.com>
11167
11168 * arm-tdep.c (arm_gdbarch_init): Update.
11169 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11170 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11171 have_neon, is_m>: Change to bool.
11172
aeefc73c
CB
111732020-02-12 Christian Biesinger <cbiesinger@google.com>
11174
11175 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11176
d27b8e5f
TT
111772020-02-12 Tom Tromey <tom@tromey.com>
11178
11179 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11180
cd5900f3
HD
111812020-02-12 Hannes Domani <ssbssa@yahoo.de>
11182
11183 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11184 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11185
f056b22b
TT
111862020-02-11 Tom Tromey <tom@tromey.com>
11187
11188 * psymtab.h: Update comment.
11189
f92ff6b5
TT
111902020-02-11 Tom Tromey <tom@tromey.com>
11191
11192 * gdb_obstack.h (struct auto_obstack): Use
11193 DISABLE_COPY_AND_ASSIGN.
11194
3fd6912b
TT
111952020-02-11 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2/frame.h (struct objfile): Don't forward declare.
11198
69ed9b74
CB
111992020-02-11 Christian Biesinger <cbiesinger@google.com>
11200
11201 * cris-tdep.c (cris_supply_gregset): Change signature to match
11202 what struct regset expects.
11203 (cris_regset): New struct.
11204 (fetch_core_registers): Remove.
11205 (cris_iterate_over_regset_sections): New function.
11206 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11207 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11208
bda874f6
CB
112092020-02-11 Christian Biesinger <cbiesinger@google.com>
11210
11211 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11212 registers.
11213
754e1564
CB
112142020-02-11 Christian Biesinger <cbiesinger@google.com>
11215
11216 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11217
8ddd8e0e
SM
112182020-02-11 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * configure: Re-generate.
11221
898e7f60
SM
112222020-02-11 Simon Marchi <simon.marchi@efficios.com>
11223
11224 * configure: Re-generate.
11225
58df732b
SM
112262020-02-11 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * acinclude: Update warning.m4 path.
11229 * warning.m4: Move to gdbsupport.
11230
da5bd37e
TT
112312020-02-11 Tom Tromey <tromey@adacore.com>
11232
11233 * remote.c (remote_console_output): Update.
11234 * printcmd.c (printf_command): Update.
11235 * event-loop.c (gdb_wait_for_event): Update.
11236 * linux-nat.c (sigchld_handler): Update.
11237 * remote-sim.c (gdb_os_write_stdout): Update.
11238 (gdb_os_flush_stdout): Update.
11239 (gdb_os_flush_stderr): Update.
11240 (gdb_os_write_stderr): Update.
11241 * exceptions.c (print_exception): Update.
11242 * remote-fileio.c (remote_fileio_func_read): Update.
11243 (remote_fileio_func_write): Update.
11244 * tui/tui.c (tui_enable): Update.
11245 * tui/tui-interp.c (tui_interp::init): Update.
11246 * utils.c (init_page_info): Update.
11247 (putchar_unfiltered, fputc_unfiltered): Update.
11248 (gdb_flush): Update.
11249 (emit_style_escape): Update.
11250 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11251 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11252 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11253 (stderr_file::write): Update.
11254 (stderr_file::puts): Update.
11255 * ui-file.h (ui_file_isatty, ui_file_write)
11256 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11257 (ui_file_puts): Don't declare.
11258
85f0dd3c
TV
112592020-02-10 Tom de Vries <tdevries@suse.de>
11260
11261 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11262 sentinel to char *.
11263
2e927613
TV
112642020-02-09 Tom de Vries <tdevries@suse.de>
11265
11266 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11267 filename if it matches "<artificial>".
11268
6bafc845
HD
112692020-02-09 Hannes Domani <ssbssa@yahoo.de>
11270
11271 * windows-tdep.c (struct enum_value_name): New struct.
11272 (create_enum): New function.
11273 (windows_get_siginfo_type): Create and use enum types.
11274
7928d571
HD
112752020-02-09 Hannes Domani <ssbssa@yahoo.de>
11276
11277 * NEWS: Mention $_siginfo support for Windows.
11278 * windows-nat.c (handle_exception): Set siginfo_er.
11279 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11280 (windows_xfer_siginfo): New function.
11281 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11282 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11283 (init_windows_gdbarch_data): New function.
11284 (get_windows_gdbarch_data): New function.
11285 (windows_get_siginfo_type): New function.
11286 (windows_init_abi): Register windows_get_siginfo_type.
11287 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11288
6751ebae
TT
112892020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11292 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11293 <keep>: Declare method.
11294 <m_keep>: Remove member.
11295 <~cutu_reader>: Remove.
11296 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11297 (cutu_reader::cutu_reader): Update.
11298 (cutu_reader::keep): Rename from ~cutu_reader.
11299 (process_psymtab_comp_unit, build_type_psymtabs_1)
11300 (process_skeletonless_type_unit, load_partial_comp_unit)
11301 (load_full_comp_unit, dwarf2_read_addr_index)
11302 (read_signatured_type): Update.
11303
135f5437
TT
113042020-02-08 Tom Tromey <tom@tromey.com>
11305
11306 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11307 "want_partial_unit" parameter.
11308 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11309 Inline check for DW_TAG_partial_unit.
11310 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11311
9f66ff1c
TT
113122020-02-08 Tom Tromey <tom@tromey.com>
11313
11314 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11315 read.c.
11316 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11317 read.c.
11318
c8a7a66f
TT
113192020-02-08 Tom Tromey <tom@tromey.com>
11320
11321 * dwarf2/read.c (read_address): Move to comp-unit.c.
11322 (dwarf2_rnglists_process, dwarf2_ranges_process)
11323 (read_attribute_value, dwarf_decode_lines_1)
11324 (var_decode_location, decode_locdesc): Update.
11325 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11326 read.c. Remove "cu" parameter.
11327 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11328 method.
11329
8266302d
TT
113302020-02-08 Tom Tromey <tom@tromey.com>
11331
11332 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11333 (read_indirect_line_string): Update.
11334 * dwarf2/comp-unit.c (read_offset): Remove.
11335 (read_comp_unit_head): Update.
11336 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11337 method.
11338 (read_offset): Don't declare.
11339
4057dfde
TT
113402020-02-08 Tom Tromey <tom@tromey.com>
11341
11342 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11343 * dwarf2/read.c (struct comp_unit_head): Move to
11344 dwarf2/comp-unit.h.
11345 (enum class rcuh_kind): Move to comp-unit.h.
11346 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11347 (read_comp_unit_head, error_check_comp_unit_head)
11348 (read_and_check_comp_unit_head): Move to comp-unit.c.
11349 (read_offset, dwarf_unit_type_name): Likewise.
11350 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11351 (cutu_reader::cutu_reader, read_call_site_scope)
11352 (find_partial_die, follow_die_offset): Update.
11353 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11354
24aa364d
TT
113552020-02-08 Tom Tromey <tom@tromey.com>
11356
11357 * dwarf2/read.c (read_offset_1): Move to leb.c.
11358 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11359 (dwarf_decode_macro_bytes): Update.
11360 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11361 * dwarf2/leb.h (read_offset): Declare.
11362
2c7d5afc
TT
113632020-02-08 Tom Tromey <tom@tromey.com>
11364
11365 * dwarf2/read.c (dwarf2_section_size): Remove.
11366 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11367 Update.
11368 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11369
4075cb26
TT
113702020-02-08 Tom Tromey <tom@tromey.com>
11371
11372 * dwarf2/read.c (read_initial_length): Move to leb.c.
11373 * dwarf2/leb.h (read_initial_length): Declare.
11374 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11375 handle_nonstd parameter.
11376 * dwarf2/frame.c (read_initial_length): Remove.
11377 (decode_frame_entry_1): Update.
11378
09ba997f
TT
113792020-02-08 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2/loc.c (dwarf2_find_location_expression)
11382 (dwarf_evaluate_loc_desc::get_tls_address)
11383 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11384 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11385 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11386 (dwarf2_compile_property_to_c)
11387 (dwarf2_loc_desc_get_symbol_read_needs)
11388 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11389 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11390 (loclist_describe_location, loclist_tracepoint_var_ref)
11391 (loclist_generate_c_location): Update.
11392 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11393 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11394 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11395 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11396 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11397 (dwarf2_per_cu_data::addr_size)
11398 (dwarf2_per_cu_data::ref_addr_size)
11399 (dwarf2_per_cu_data::text_offset)
11400 (dwarf2_per_cu_data::addr_type): Now methods.
11401 (per_cu_header_read_in): Make per_cu "const".
11402 (dwarf2_version): Remove.
11403 (dwarf2_per_cu_data::int_type): Now a method.
11404 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11405 (set_die_type, read_array_type, read_subrange_index_type)
11406 (read_tag_string_type, read_subrange_type): Update.
11407 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11408 offset_size, ref_addr_size, text_offset, addr_type, version,
11409 objfile, int_type, addr_sized_int_type>: Declare methods.
11410
96c738c0
TT
114112020-02-08 Tom Tromey <tom@tromey.com>
11412
11413 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11414 Move earlier.
11415
8fdd972c
TT
114162020-02-08 Tom Tromey <tom@tromey.com>
11417
11418 * dwarf2/read.h (dwarf_line_debug): Declare.
11419 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11420 * dwarf2/read.c: Move line_header code to new files.
11421 (dwarf_line_debug): No longer static.
11422 * dwarf2/line-header.c: New file.
11423 * dwarf2/line-header.h: New file.
11424
03075812
TT
114252020-02-08 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2/read.c (struct line_header) <file_full_name,
11428 file_file_name>: Return unique_xmalloc_ptr.
11429 (line_header::file_file_name): Update.
11430 (line_header::file_full_name): Update.
11431 (dw2_get_file_names_reader): Update.
11432 (macro_start_file): Update.
11433
bb822404
TT
114342020-02-08 Tom Tromey <tom@tromey.com>
11435
11436 * dwarf2/read.c (struct line_header) <file_full_name,
11437 file_file_name>: Declare methods.
11438 (dw2_get_file_names_reader): Update.
11439 (file_file_name): Now a method.
11440 (file_full_name): Likewise.
11441 (macro_start_file): Update.
11442
009b64fc
TT
114432020-02-08 Tom Tromey <tom@tromey.com>
11444
11445 * dwarf2/read.c (dwarf_always_disassemble)
11446 (show_dwarf_always_disassemble): Move to loc.c.
11447 (_initialize_dwarf2_read): Move "always-disassemble" registration
11448 to loc.c.
11449 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11450 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11451 static.
11452 (show_dwarf_always_disassemble): Move from read.c.
11453 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11454
5895093f
TT
114552020-02-08 Tom Tromey <tom@tromey.com>
11456
11457 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11458 (create_quick_file_names_table): Return htab_up.
11459 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11460 Update.
11461 * dwarf2/read.h (struct dwarf2_per_objfile)
11462 <quick_file_names_table>: Now htab_up.
11463
b3b32279
TT
114642020-02-08 Tom Tromey <tom@tromey.com>
11465
11466 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11467
1d33d811
TT
114682020-02-08 Tom Tromey <tom@tromey.com>
11469
11470 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11471 Rewrite.
11472 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11473 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11474 (abbrev_table::abbrev_table): No longer inline.
11475 (ABBREV_HASH_SIZE): Remove.
11476 (abbrev_table::m_abbrevs): Now an htab_up.
11477
86de1d91
TT
114782020-02-08 Tom Tromey <tom@tromey.com>
11479
11480 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11481 (cutu_reader): Update.
11482 (build_type_psymtabs_1): Update.
11483 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11484 (abbrev_table::alloc_abbrev): Update.
11485 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11486 (abbrev_table::read): New static method, renamed from
11487 abbrev_table_read_table.
11488 (abbrev_table::alloc_abbrev)
11489 (abbrev_table::add_abbrev): Now private.
11490 (abbrev_table::abbrev_table): Now private.
11491 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11492
0335378b
TT
114932020-02-08 Tom Tromey <tom@tromey.com>
11494
11495 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11496 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11497 htab_up.
11498
48b490f2
TT
114992020-02-08 Tom Tromey <tom@tromey.com>
11500
11501 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11502 htab_up.
11503 (lookup_dwo_unit_in_dwp): Update.
11504 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11505 on obstack.
11506
bc68fb19
TT
115072020-02-08 Tom Tromey <tom@tromey.com>
11508
11509 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11510 obstack.
11511
d15acc42
TT
115122020-02-08 Tom Tromey <tom@tromey.com>
11513
11514 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11515 line_header_hash.
11516 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11517 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11518 Change type to htab_up.
11519
eaa5fa8b
TT
115202020-02-08 Tom Tromey <tom@tromey.com>
11521
11522 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11523 htab_up. Don't allocate on obstack.
11524 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11525 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11526 Change type to htab_up.
11527
b0b6a987
TT
115282020-02-08 Tom Tromey <tom@tromey.com>
11529
11530 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11531 Change type to htab_up.
11532 * dwarf2/read.c (create_signatured_type_table_from_index)
11533 (create_signatured_type_table_from_debug_names)
11534 (create_all_type_units, add_type_unit)
11535 (lookup_dwo_signatured_type, lookup_signatured_type)
11536 (process_skeletonless_type_unit): Update.
11537 (create_debug_type_hash_table, create_debug_types_hash_table):
11538 Change type of types_htab.
11539 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11540 htab_up. Don't allocate on obstack.
11541 (create_cus_hash_table): Change type of cus_htab parameter.
11542 (struct dwo_file) <cus, tus>: Now htab_up.
11543 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11544 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11545 (queue_and_load_all_dwo_tus): Update.
11546 * dwarf2/index-write.c (write_gdbindex): Update.
11547 (write_debug_names): Update.
11548
39856def
TT
115492020-02-08 Tom Tromey <tom@tromey.com>
11550
11551 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11552 dwarf2/read.c. Remove "next" member. Add constructor ntad
11553 destructor.
11554 (struct dwarf2_per_objfile) <queue>: New member.
11555 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11556 dwarf2/read.h.
11557 (dwarf2_queue, dwarf2_queue_tail): Remove.
11558 (class dwarf2_queue_guard): Add parameter to constructor. Use
11559 DISABLE_COPY_AND_ASSIGN.
11560 <m_per_objfile>: New member.
11561 <~dwarf2_queue_guard>: Rewrite.
11562 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11563 Update.
11564 (~dwarf2_queue_item): New.
11565
3e225074
TT
115662020-02-08 Tom Tromey <tom@tromey.com>
11567
11568 * dwarf2/read.c (struct die_info) <has_children>: New member.
11569 (dw2_get_file_names_reader): Remove has_children.
11570 (dw2_get_file_names): Update.
11571 (read_cutu_die_from_dwo): Remove has_children.
11572 (cutu_reader::init_tu_and_read_dwo_dies)
11573 (cutu_reader::cutu_reader): Update.
11574 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11575 Remove has_children.
11576 (build_type_psymtabs_1, process_skeletonless_type_unit)
11577 (load_partial_comp_unit, load_full_comp_unit): Update.
11578 (create_dwo_cu_reader): Remove has_children.
11579 (create_cus_hash_table, read_die_and_children): Update.
11580 (read_full_die_1,read_full_die): Remove has_children.
11581 (read_signatured_type): Update.
11582 (class cutu_reader) <has_children>: Remove.
11583
82ca8957
TT
115842020-02-08 Tom Tromey <tom@tromey.com>
11585
11586 * dwarf2/expr.c: Rename from dwarf2expr.c.
11587 * dwarf2/expr.h: Rename from dwarf2expr.h.
11588 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11589 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11590 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11591 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11592 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11593 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11594 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11595 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11596 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11597 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11598 * dwarf2/loc.c: Rename from dwarf2loc.c.
11599 * dwarf2/loc.h: Rename from dwarf2loc.h.
11600 * dwarf2/read.c: Rename from dwarf2read.c.
11601 * dwarf2/read.h: Rename from dwarf2read.h.
11602 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11603 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11604 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11605 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11606 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11607 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11608 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11609 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11610 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11611 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11612 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11613 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11614 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11615 Update.
11616 * Makefile.in (COMMON_SFILES): Update.
11617 (HFILES_NO_SRCDIR): Update.
11618
9e35d499
TT
116192020-02-08 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11622 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11623
1eba2311
TT
116242020-02-08 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2read.h (struct die_info): Don't declare.
11627
e41c2da2
TT
116282020-02-08 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2read.h (die_info_ptr): Remove typedef.
11631
4fc6c0d5
TT
116322020-02-08 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2read.c (read_call_site_scope)
11635 (handle_data_member_location, dwarf2_add_member_fn)
11636 (mark_common_block_symbol_computed, read_common_block)
11637 (attr_to_dynamic_prop, partial_die_info::read)
11638 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11639 (dwarf2_symbol_mark_computed, set_die_type): Update.
11640 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11641 method.
11642 (attr_form_is_block): Don't declare.
11643 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11644
cd6c91b4
TT
116452020-02-08 Tom Tromey <tom@tromey.com>
11646
11647 * dwarf2read.c (dwarf2_find_base_address, )
11648 (read_call_site_scope, rust_containing_type)
11649 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11650 (handle_data_member_location, dwarf2_add_member_fn)
11651 (get_alignment, read_structure_type, process_structure_scope)
11652 (mark_common_block_symbol_computed, read_common_block)
11653 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11654 (partial_die_info::read, read_attribute_value, new_symbol)
11655 (lookup_die_type, dwarf2_get_ref_die_offset)
11656 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11657 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11658 (dwarf2_symbol_mark_computed): Update.
11659 * dwarf2/attribute.h (struct attribute) <value_as_address,
11660 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11661 methods.
11662 (value_as_address, attr_form_is_section_offset)
11663 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11664 * dwarf2/attribute.c (attribute::value_as_address)
11665 (attribute::form_is_section_offset, attribute::form_is_constant)
11666 (attribute::form_is_ref): Now methods.
11667
162dce55
TT
116682020-02-08 Tom Tromey <tom@tromey.com>
11669
11670 * dwarf2read.c (struct attribute, DW_STRING)
11671 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11672 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11673 (attr_form_is_block, attr_form_is_section_offset)
11674 (attr_form_is_constant, attr_form_is_ref): Move.
11675 * dwarf2/attribute.h: New file.
11676 * dwarf2/attribute.c: New file, from dwarf2read.c.
11677 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11678
3054dd54
TT
116792020-02-08 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11682 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11683 Move.
11684 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11685 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11686 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11687 abbrev.c.
11688 * dwarf2/abbrev.h: New file.
11689 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11690 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11691
96b79293
TT
116922020-02-08 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11695 (dwarf2_section_size, dwarf2_get_section_info)
11696 (create_signatured_type_table_from_debug_names)
11697 (create_addrmap_from_aranges, read_debug_names_from_section)
11698 (get_gdb_index_contents_from_section, read_comp_unit_head)
11699 (error_check_comp_unit_head, read_abbrev_offset)
11700 (create_debug_type_hash_table, init_cu_die_reader)
11701 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11702 (read_comp_units_from_section, create_cus_hash_table)
11703 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11704 (create_dwp_v2_section, dwarf2_rnglists_process)
11705 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11706 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11707 (read_indirect_string_from_dwz, read_addr_index_1)
11708 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11709 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11710 (fill_in_loclist_baton): Update.
11711 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11712 get_containing_section, get_bfd_owner, get_bfd_section,
11713 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11714 (dwarf2_read_section, get_section_name, get_section_file_name)
11715 (get_containing_section, get_section_bfd_owner)
11716 (get_section_bfd_section, get_section_name, get_section_file_name)
11717 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11718 declare.
11719 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11720 (dwarf2_section_info::get_bfd_owner)
11721 (dwarf2_section_info::get_bfd_section)
11722 (dwarf2_section_info::get_name)
11723 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11724 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11725 (dwarf2_section_info::read): Now methods.
11726 * dwarf-index-write.c (class debug_names): Update.
11727
2c86cff9
TT
117282020-02-08 Tom Tromey <tom@tromey.com>
11729
11730 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11731 Move to dwarf2/section.h.
11732 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11733 (get_section_bfd_section, get_section_name)
11734 (get_section_file_name, get_section_id, get_section_flags)
11735 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11736 dwarf2/section.c.
11737 * dwarf2/section.h: New file.
11738 * dwarf2/section.c: New file, from dwarf2read.c.
11739 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11740
f4382c45
TT
117412020-02-08 Tom Tromey <tom@tromey.com>
11742
11743 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11744 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11745 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11746 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11747 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11748 * dwarf2/leb.h: New file, from dwarf2read.c.
11749 * dwarf2/leb.c: New file, from dwarf2read.c.
11750 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11751 Remove.
11752 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11753 (COMMON_SFILES): Add dwarf2/leb.c.
11754
01840b7a
JB
117552020-02-08 Joel Brobecker <brobecker@adacore.com>
11756
11757 GDB 9.1 released.
11758
dfcb27e4
IB
117592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11760
11761 PR gdb/25190:
aac66a4c
SM
11762 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11763 * gdb/remote.c (remote_console_output): Update.
11764 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11765 (ui_file_puts): ...this.
11766 * gdb/ui-file.h (ui_file_puts): Add declaration.
11767 * gdb/utils.c (emit_style_escape): Update.
11768 (flush_wrap_buffer): Update.
11769 (fputs_maybe_filtered): Update.
11770 (fputs_unfiltered): Add function.
dfcb27e4 11771
faa17681
IB
117722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11773
aac66a4c
SM
11774 * gdb/event-loop.c (gdb_wait_for_event): Update.
11775 * gdb/printcmd.c (printf_command): Update.
11776 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11777 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11778 (gdb_os_flush_stderr): Update.
11779 * gdb/remote.c (remote_console_output): Update.
11780 * gdb/ui-file.c (gdb_flush): Rename to...
11781 (ui_file_flush): ...this.
11782 (stderr_file::write): Update.
11783 (stderr_file::puts): Update.
11784 * gdb/ui-file.h (gdb_flush): Rename to...
11785 (ui_file_flush): ...this.
11786 * gdb/utils.c (gdb_flush): Add function.
11787 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11788
5abbbe1d
TT
117892020-02-07 Tom Tromey <tromey@adacore.com>
11790
11791 PR breakpoints/24915:
11792 * source.c (find_and_open_source): Do not check basenames_may_differ.
11793
919adfe8
TT
117942020-02-07 Tom Tromey <tom@tromey.com>
11795
11796 * README: Update gdbserver documentation.
11797 * gdbserver: Move to top level.
11798 * configure.tgt (build_gdbserver): Remove.
11799 * configure.ac: Remove --enable-gdbserver.
11800 * configure: Rebuild.
11801 * Makefile.in (distclean): Don't mention gdbserver.
11802
1d5d29e7
SV
118032020-02-06 Shahab Vahedi <shahab@synopsys.com>
11804
11805 * source-cache.c (source_cache::ensure): Surround
11806 get_plain_source_lines with a try/catch.
11807 (source_cache::get_line_charpos): Get rid of try/catch
11808 and only check for the return value of "ensure".
11809 * tui/tui-source.c (tui_source_window::set_contents):
11810 Simplify "nlines" calculation.
11811
6eb1129c
SV
118122020-02-06 Shahab Vahedi <shahab@synopsys.com>
11813
11814 * MAINTAINERS (Write After Approval): Add myself.
11815
c6a42d11
CB
118162020-02-05 Christian Biesinger <cbiesinger@google.com>
11817
11818 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11819 function call.
11820
c8ecdda6
CB
118212020-02-05 Christian Biesinger <cbiesinger@google.com>
11822
11823 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11824
f6480e70
MR
118252020-02-05 Maciej W. Rozycki <macro@wdc.com>
11826
11827 * nat/riscv-linux-tdesc.h: New file.
11828 * nat/riscv-linux-tdesc.c: New file, taking code from...
11829 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11830 ... here.
11831 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11832 NATDEPFILES.
11833
dcc9fbc6
AB
118342020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11835
11836 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11837 we don't set the fake simulator ptid to the null_ptid.
11838
719546c4
SM
118392020-02-03 Simon Marchi <simon.marchi@efficios.com>
11840
11841 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11842 * gdbthread.h (class thread_info) <resumed>: Likewise.
11843 * infrun.c (resume_1): Likewise.
11844 (proceed): Likewise.
11845 (infrun_thread_stop_requested): Likewise.
11846 (stop_all_threads): Likewise.
11847 (handle_inferior_event): Likewise.
11848 (restart_threads): Likewise.
11849 (finish_step_over): Likewise.
11850 (keep_going_stepped_thread): Likewise.
11851 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11852 (linux_handle_extended_wait): Likewise.
11853 * record-btrace.c (get_thread_current_frame_id): Likewise.
11854 * record-full.c (record_full_wait_1): Likewise.
11855 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11856 * target.c (target_resume): Likewise.
11857 * thread.c (set_running_thread): Likewise.
11858
e409c542
AKS
118592020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11860
11861 * f-valprint.c (f77_print_array_1): Changed datatype of index
11862 variable to LONGEST from int to enable it to contain bound
11863 values correctly.
11864
ee98c0da
MR
118652020-02-03 Maciej W. Rozycki <macro@wdc.com>
11866
11867 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11868 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11869 offsets according to FLEN determined.
11870 (riscv_linux_nat_target::read_description): Determine FLEN
11871 dynamically.
11872 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11873 according to FLEN determined.
11874 (riscv_linux_nat_target::store_registers): Likewise.
11875
aa66aac4
SV
118762020-02-01 Shahab Vahedi <shahab@synopsys.com>
11877
11878 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11879 when reg->group is empty and reggroup is not.
11880
fd9faca8
TT
118812020-01-31 Tom Tromey <tromey@adacore.com>
11882
11883 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11884 Call beneath target's mourn_inferior after unpushing.
11885
42330a68
AB
118862020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11887
11888 PR tui/9765
11889 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11890 have enough lines to fill the screen, still return the lowest
11891 address we found.
11892
7a27a45b
AB
118932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11894
11895 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11896 '-', '<', and '>' commands.
11897
c47f70e2
PA
118982020-01-29 Pedro Alves <palves@redhat.com>
11899 Sergio Durigan Junior <sergiodj@redhat.com>
11900
11901 * infcmd.c (construct_inferior_arguments): Assert that
11902 'argc' is greater than 0.
11903
5133a315
LM
119042020-01-29 Luis Machado <luis.machado@linaro.org>
11905
11906 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11907 (BRK_INSN_MASK): Define to 0xd4200000.
11908 (aarch64_program_breakpoint_here_p): New function.
11909 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11910 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11911 breakpoint.c.
11912 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11913 breakpoint.h
11914 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11915 call gdbarch_program_breakpoint_here_p.
11916 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11917 default_program_breakpoint_here_p, changed return type to bool and
11918 simplified.
11919 * breakpoint.h (program_breakpoint_here): Moved prototype to
11920 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11921 return type to bool.
11922 * gdbarch.c: Regenerate.
11923 * gdbarch.h: Regenerate.
11924 * gdbarch.sh (program_breakpoint_here_p): New method.
11925 * infrun.c (handle_signal_stop): Call
11926 gdbarch_program_breakpoint_here_p.
11927
168f8c6b
TT
119282020-01-26 Tom Tromey <tom@tromey.com>
11929
11930 * ctfread.c (struct ctf_fp_info): Reindent.
11931 (_initialize_ctfread): Remove.
11932
128a391f
TT
119332020-01-26 Tom Tromey <tom@tromey.com>
11934
11935 * psymtab.c (partial_map_expand_apply)
11936 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11937 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11938 (psym_print_stats, psym_expand_symtabs_for_function)
11939 (psym_map_symbol_filenames, psym_map_matching_symbols)
11940 (psym_expand_symtabs_matching)
11941 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11942 (maintenance_check_psymtabs): Use new methods.
11943 * psympriv.h (struct partial_symtab) <readin_p,
11944 get_compunit_symtab>: New methods.
11945 <readin, compunit_symtab>: Remove members.
11946 (struct standard_psymtab): New.
11947 (struct legacy_psymtab): Derive from standard_psymtab.
11948 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11949 standard_psymtab.
11950 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11951
0494dbec
TT
119522020-01-26 Tom Tromey <tom@tromey.com>
11953
11954 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11955 read_dependencies. Add assert.
11956 * psymtab.c (partial_symtab::read_dependencies): New method.
11957 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11958 method.
11959 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11960 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11961 read_dependencies.
11962 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11963 Add assert.
11964
8566b89b
TT
119652020-01-26 Tom Tromey <tom@tromey.com>
11966
11967 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11968 Call expand_psymtab.
11969 (xcoff_read_symtab): Call expand_psymtab.
11970 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11971 legacy_expand_psymtab.
11972 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11973 method.
11974 (struct legacy_psymtab) <expand_psymtab>: Implement.
11975 <legacy_expand_psymtab>: New member.
11976 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11977 (parse_partial_symbols): Set legacy_expand_psymtab.
11978 (psymtab_to_symtab_1): Change argument order. Call
11979 expand_psymtab.
11980 (new_psymtab): Set legacy_expand_psymtab.
11981 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11982 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11983 expand_psymtab.
11984 (dwarf2_psymtab::expand_psymtab): Rename from
11985 psymtab_to_symtab_1. Call expand_psymtab.
11986 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11987 (dbx_end_psymtab): Likewise.
11988 (dbx_psymtab_to_symtab_1): Change argument order. Call
11989 expand_psymtab.
11990 (dbx_read_symtab): Call expand_psymtab.
11991 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11992 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11993 (ctf_psymtab::read_symtab): Call expand_psymtab.
11994
077cbab2
TT
119952020-01-26 Tom Tromey <tom@tromey.com>
11996
11997 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11998 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11999 messages.
12000 * mdebugread.c (mdebug_read_symtab): Remove prints.
12001 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12002 assert.
12003 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12004
891813be
TT
120052020-01-26 Tom Tromey <tom@tromey.com>
12006
12007 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12008 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12009 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12010 legacy_symtab.
12011 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12012 * psymtab.c (psymtab_to_symtab): Call method.
12013 (dump_psymtab): Update.
12014 * psympriv.h (struct partial_symtab): Add virtual destructor.
12015 <read_symtab>: New method.
12016 (struct legacy_symtab): New.
12017 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12018 (struct pst_map) <pst>: Now a legacy_psymtab.
12019 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12020 (new_psymtab): Use legacy_psymtab.
12021 * dwarf2read.h (struct dwarf2_psymtab): New.
12022 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12023 * dwarf2read.c (dwarf2_create_include_psymtab)
12024 (dwarf2_build_include_psymtabs, create_type_unit_group)
12025 (create_partial_symtab, process_psymtab_comp_unit_reader)
12026 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12027 (set_partial_user): Use dwarf2_psymtab.
12028 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12029 (psymtab_to_symtab_1, process_full_comp_unit)
12030 (process_full_type_unit, dwarf2_ranges_read)
12031 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12032 (dwarf_decode_lines): Use dwarf2_psymtab.
12033 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12034 (add_address_entry_worker, write_one_signatured_type)
12035 (recursively_count_psymbols, recursively_write_psymbols)
12036 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12037 (write_debug_names): Likewise.
12038 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12039 <pst>: Now a legacy_psymtab.
12040 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12041 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12042 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12043 * ctfread.c (struct ctf_psymtab): New.
12044 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12045 ctf_psymtab.
12046 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12047 (create_partial_symtab): Return a ctf_psymtab.
12048 (scan_partial_symbols): Update.
12049
c3693a1d
TT
120502020-01-26 Tom Tromey <tom@tromey.com>
12051
12052 * xcoffread.c (xcoff_start_psymtab): Use new.
12053 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12054 renamed from start_psymtab_common.
12055 * psympriv.h (struct partial_symtab): Add new constructor.
12056 (start_psymtab_common): Don't declare.
12057 * mdebugread.c (parse_partial_symbols): Use new.
12058 * dwarf2read.c (create_partial_symtab): Use new.
12059 * dbxread.c (start_psymtab): Use new.
12060 * ctfread.c (create_partial_symtab): Use new.
12061
32caafd0
TT
120622020-01-26 Tom Tromey <tom@tromey.com>
12063
12064 * xcoffread.c (xcoff_end_psymtab): Use new.
12065 * psymtab.c (start_psymtab_common): Use new.
12066 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12067 Update.
12068 * psympriv.h (struct partial_symtab): Add parameters to
12069 constructor. Don't inline.
12070 (allocate_psymtab): Don't declare.
12071 * mdebugread.c (new_psymtab): Use new.
12072 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12073 * dbxread.c (dbx_end_psymtab): Use new.
12074
abaa2f23
TT
120752020-01-26 Tom Tromey <tom@tromey.com>
12076
12077 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12078 allocate_psymtab. Update documentation.
12079 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12080 allocate_psymtab. Do not use new.
12081 (allocate_psymtab): Use new. Update.
12082
6d94535f
TT
120832020-01-26 Tom Tromey <tom@tromey.com>
12084
12085 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12086 * psymtab.c (psym_print_stats): Update.
12087 * psympriv.h (struct partial_symtab) <readin,
12088 psymtabs_addrmap_supported, anonymous>: Now bool.
12089 * mdebugread.c (psymtab_to_symtab_1): Update.
12090 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12091 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12092 (process_full_comp_unit, process_full_type_unit): Update.
12093 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12094 * ctfread.c (psymtab_to_symtab): Update.
12095
6f17252b
TT
120962020-01-26 Tom Tromey <tom@tromey.com>
12097
12098 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12099 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12100 * psymtab.c (psymtab_storage): Delete psymtabs.
12101 (psymtab_storage::allocate_psymtab): Use new.
12102 (psymtab_storage::discard_psymtab): Use delete.
12103 * psympriv.h (struct partial_symtab): Add constructor and
12104 initializers.
12105
f6f1cebc
TT
121062020-01-26 Tom Tromey <tom@tromey.com>
12107
12108 * machoread.c: Do not include psympriv.h.
12109
e47e48f6
PW
121102020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12111
12112 * NEWS: Mention the new option and the set/show commands.
12113
a2fedca9
PW
121142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12115
12116 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12117 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12118 (validate_exec_file): New variables, enums, functions.
12119 (exec_file_locate_attach, print_section_info): Style the filenames.
12120 (_initialize_exec): Install show_exec_file_mismatch_command and
12121 set_exec_file_mismatch_command.
12122 * gdbcore.h (validate_exec_file): Declare.
12123 * infcmd.c (attach_command): Call validate_exec_file.
12124 * remote.c ( remote_target::remote_add_inferior): Likewise.
12125
7ffa82e1
AB
121262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12127
12128 * frame.c (find_frame_sal): Move call to get_next_frame into more
12129 inner scope.
12130 * inline-frame.c (inilne_state) <inline_state>: Update argument
12131 types.
12132 (inilne_state) <skipped_symbol>: Rename to...
12133 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12134 (skip_inline_frames): Build vector of skipped symbols and use this
12135 to reate the inline_state.
12136 (inline_skipped_symbol): Add a comment and some assertions, fetch
12137 skipped symbol from the list.
12138
3d92a3e3
AB
121392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12140
12141 * buildsym.c (lte_is_less_than): Delete.
12142 (buildsym_compunit::end_symtab_with_blockvector): Create local
12143 lambda function to sort line table entries, and use
12144 std::stable_sort instead of std::sort.
12145 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12146 markers when looking for a previous line.
12147
94a72be7
AB
121482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12149
12150 * dwarf2read.c (lnp_state_machine::record_line): Include
12151 end_sequence parameter in debug print out. Record the line if we
12152 are at an end_sequence marker even if it's not the start of a
12153 statement.
12154 * symmisc.c (maintenance_print_one_line_table): Print end of
12155 sequence markers with 'END' not '0'.
12156
53af73bf
PA
121572020-01-24 Pedro Alves <palves@redhat.com>
12158
12159 PR gdb/25410
12160 * thread.c (scoped_restore_current_thread::restore): Use
12161 switch_to_inferior_no_thread.
12162 * exec.c: Include "progspace-and-thread.h".
12163 (add_target_sections, remove_target_sections):
12164 scoped_restore_current_pspace_and_thread instead of
12165 scoped_restore_current_thread.
12166 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12167 and aspace to the inferior before calling clone_program_space.
12168 Remove stale comment.
12169
3050c6f4
CB
121702020-01-24 Christian Biesinger <cbiesinger@google.com>
12171
12172 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12173 (arm_netbsd_nat_target::fetch_registers): ...this.
12174 (arm_nbsd_nat_target::store_registers): Rename to...
12175 (arm_netbsd_nat_target::store_registers): ...this.
12176
73685c7e
CB
121772020-01-24 Christian Biesinger <cbiesinger@google.com>
12178
12179 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12180 register_t.
12181
89203d40
CB
121822020-01-24 Christian Biesinger <cbiesinger@google.com>
12183
12184 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12185 Update comment.
12186 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12187 Likewise.
12188 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12189 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12190 the correct replacement (iterate_over_regset_sections).
12191 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12192 Update comment.
12193
1ba1ac88
AB
121942020-01-24 Graham Markall <graham.markall@embecosm.com>
12195
12196 PR gdb/23718
12197 * gdb/python/python.c (execute_gdb_command): Call
12198 async_enable_stdin in catch block.
12199
f3364a6d
AB
122002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12201
12202 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12203 SWITCH_THRU_ALL_UIS.
12204
733d0a67
AB
122052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12206
12207 PR tui/9765
12208 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12209 comment, add extra parameter, and update to store previous symbol
12210 when appropriate.
12211 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12212 add extra parameter.
12213 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12214 remove unneeded parameter, add try/catch around gdb_print_insn,
12215 rewrite to add items to asm_lines vector.
12216 (tui_find_backward_disassembly_start_address): New function.
12217 (tui_find_disassembly_address): Updated throughout.
12218 (tui_disasm_window::set_contents): Update for changes to
12219 tui_disassemble.
12220 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12221 number of lines to scroll.
12222
b3b3bada
SM
122232020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12224
12225 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12226 (SECT_OFF_DATA): Likewise.
12227 (SECT_OFF_RODATA): Likewise.
12228 (SECT_OFF_TEXT): Likewise.
12229 (SECT_OFF_BSS): Likewise.
12230 (struct objfile) <text_section_offset, data_section_offset>: New
12231 methods.
12232 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12233 objfile::text_section_offset.
12234 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12235 * coffread.c (coff_symtab_read): Likewise.
12236 (enter_linenos): Likewise.
12237 (process_coff_symbol): Likewise.
12238 * ctfread.c (get_objfile_text_range): Likewise.
12239 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12240 Use objfile::data_section_offset.
12241 * dwarf2-frame.c (execute_cfa_program): Use
12242 objfile::text_section_offset.
12243 (dwarf2_frame_find_fde): Likewise.
12244 * dwarf2read.c (create_addrmap_from_index): Likewise.
12245 (create_addrmap_from_aranges): Likewise.
12246 (dw2_find_pc_sect_compunit_symtab): Likewise.
12247 (process_psymtab_comp_unit_reader): Likewise.
12248 (add_partial_symbol): Likewise.
12249 (add_partial_subprogram): Likewise.
12250 (process_full_comp_unit): Likewise.
12251 (read_file_scope): Likewise.
12252 (read_func_scope): Likewise.
12253 (read_lexical_block_scope): Likewise.
12254 (read_call_site_scope): Likewise.
12255 (dwarf2_rnglists_process): Likewise.
12256 (dwarf2_ranges_process): Likewise.
12257 (dwarf2_ranges_read): Likewise.
12258 (dwarf_decode_lines_1): Likewise.
12259 (new_symbol): Likewise.
12260 (dwarf2_fetch_die_loc_sect_off): Likewise.
12261 (dwarf2_per_cu_text_offset): Likewise.
12262 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12263 * hppa-tdep.c (read_unwind_info): Likewise.
12264 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12265 * psympriv.h (struct partial_symtab): Likewise.
12266 * psymtab.c (find_pc_sect_psymtab): Likewise.
12267 * solib-svr4.c (enable_break): Likewise.
12268 * stap-probe.c (relocate_address): Use
12269 objfile::data_section_offset.
12270 * xcoffread.c (enter_line_range): Use
12271 objfile::text_section_offset.
12272 (read_xcoff_symtab): Likewise.
12273
ab53f382
SM
122742020-01-23 Simon Marchi <simon.marchi@efficios.com>
12275
12276 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12277 declaration to narrower scopes.
12278
e7eee665
SM
122792020-01-23 Simon Marchi <simon.marchi@efficios.com>
12280
12281 * darwin-nat.h (struct darwin_exception_msg, enum
12282 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12283 Move up.
12284 (class darwin_nat_target) <wait_1, check_new_threads,
12285 decode_exception_message, decode_message, stop_inferior,
12286 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12287 * darwin-nat.c (darwin_check_new_threads): Rename to...
12288 (darwin_nat_target::check_new_threads): ... this.
12289 (darwin_suspend_inferior_it): Remove.
12290 (darwin_decode_exception_message): Rename to...
12291 (darwin_nat_target::decode_exception_message): ... this.
12292 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12293 (darwin_decode_message): Rename to...
12294 (darwin_nat_target::decode_message): ... this.
12295 (cancel_breakpoint): Rename to...
12296 (darwin_nat_target::cancel_breakpoint): ... this.
12297 (darwin_wait): Rename to...
12298 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12299 instead of iterate_over_inferiors.
12300 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12301 (darwin_stop_inferior): Rename to...
12302 (darwin_nat_target::stop_inferior): ... this.
12303 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12304 (darwin_init_thread_list): Rename to...
12305 (darwin_nat_target::init_thread_list): ... this.
12306 (darwin_ptrace_him): Rename to...
12307 (darwin_nat_target::ptrace_him): ... this.
12308 (darwin_nat_target::create_inferior): Pass lambda function to
12309 fork_inferior.
12310 (darwin_nat_target::detach): Call stop_inferior instead of
12311 darwin_stop_inferior.
12312 * fork-inferior.h (fork_inferior): Change init_trace_fun
12313 parameter to gdb::function_view.
12314 * fork-inferior.c (fork_inferior): Likewise.
12315
c162ed3e
HD
123162020-01-23 Hannes Domani <ssbssa@yahoo.de>
12317
12318 * i386-cygwin-tdep.c (core_process_module_section): Update.
12319 * windows-nat.c (struct lm_info_windows): Add text_offset.
12320 (windows_xfer_shared_libraries): Update.
12321 * windows-tdep.c (windows_xfer_shared_library):
12322 Add text_offset_cached argument.
12323 * windows-tdep.h (windows_xfer_shared_library): Update.
12324
a1237872
SM
123252020-01-21 Simon Marchi <simon.marchi@efficios.com>
12326
12327 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12328
b3ee6dd9
SM
123292020-01-21 Simon Marchi <simon.marchi@efficios.com>
12330
12331 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12332 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12333 replace with range-based for.
12334 (gdbsim_interrupt_inferior): Remove.
12335 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12336 with a range-based for. Inline code from
12337 gdbsim_interrupt_inferior.
12338
f9fac3c8
SM
123392020-01-21 Simon Marchi <simon.marchi@efficios.com>
12340
12341 * infrun.c (proceed): Fix indentation.
12342
f6474de9
TT
123432020-01-21 Tom Tromey <tromey@adacore.com>
12344
12345 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12346 * python/python.c (python_extension_ops): Update.
12347 (gdbpy_colorize): New function.
12348 * python/lib/gdb/__init__.py (colorize): New function.
12349 * extension.h (ext_lang_colorize): Declare.
12350 * extension.c (ext_lang_colorize): New function.
12351 * extension-priv.h (struct extension_language_ops) <colorize>: New
12352 member.
12353 * cli/cli-style.c (_initialize_cli_style): Update help text.
12354
f0c702d4
LM
123552020-01-21 Luis Machado <luis.machado@linaro.org>
12356
12357 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12358 <cond>: Change type to bool.
12359 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12360 (aarch64_displaced_step_cb): Likewise.
12361 (aarch64_displaced_step_tb): Likewise.
12362
1ab139e5
LM
123632020-01-21 Luis Machado <luis.machado@linaro.org>
12364
12365 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12366 output.
12367
0c271889
LM
123682020-01-21 Luis Machado <luis.machado@linaro.org>
12369
12370 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12371 <pc_adjust>: Adjust the documentation.
12372 (aarch64_displaced_step_fixup): Check if PC really moved before
12373 adjusting it.
12374
4d89c1c7
TT
123752020-01-19 Tom Tromey <tom@tromey.com>
12376
12377 * disasm.c (~gdb_disassembler): New destructor.
12378 (gdb_buffered_insn_length): Call disassemble_free_target.
12379 * disasm.h (class gdb_disassembler): Declare destructor. Use
12380 DISABLE_COPY_AND_ASSIGN.
12381
c0ab21c2
TT
123822020-01-19 Tom Tromey <tom@tromey.com>
12383
12384 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12385 (die_reader_func_ftype): Remove.
12386 (cutu_reader): New class.
12387 (dw2_get_file_names_reader): Remove "data" parameter.
12388 (dw2_get_file_names): Use cutu_reader.
12389 (create_debug_type_hash_table): Update.
12390 (read_cutu_die_from_dwo): Update comment.
12391 (lookup_dwo_unit): Add dwo_name parameter.
12392 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12393 die_reader_func_ftype and data parameters.
12394 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12395 Remove die_reader_func_ftype and data parameters.
12396 (~cutu_reader): New; from init_cutu_and_read_dies.
12397 (cutu_reader::cutu_reader): Rename from
12398 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12399 and data parameters.
12400 (init_cutu_and_read_dies_simple): Remove.
12401 (struct process_psymtab_comp_unit_data): Remove.
12402 (process_psymtab_comp_unit_reader): Remove data parameter; add
12403 want_partial_unit and pretend_language parameters.
12404 (process_psymtab_comp_unit): Use cutu_reader.
12405 (build_type_psymtabs_reader): Remove data parameter.
12406 (build_type_psymtabs_1): Use cutu_reader.
12407 (process_skeletonless_type_unit): Likewise.
12408 (load_partial_comp_unit_reader): Remove.
12409 (load_partial_comp_unit): Use cutu_reader.
12410 (load_full_comp_unit_reader): Remove.
12411 (load_full_comp_unit): Use cutu_reader.
12412 (struct create_dwo_cu_data): Remove.
12413 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12414 dwo_unit parameters.
12415 (create_cus_hash_table): Use cutu_reader.
12416 (struct dwarf2_read_addr_index_data): Remove.
12417 (dwarf2_read_addr_index_reader): Remove.
12418 (dwarf2_read_addr_index): Use cutu_reader.
12419 (read_signatured_type_reader): Remove.
12420 (read_signatured_type): Use cutu_reader.
12421
45bbae5c
TT
124222020-01-19 Tom Tromey <tom@tromey.com>
12423
12424 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12425 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12426 (tui_wrefresh): Declare.
12427 * tui/tui-wingeneral.c (suppress_output): New global.
12428 (tui_suppress_output, ~tui_suppress_output): New constructor and
12429 destructor.
12430 (tui_wrefresh): New function.
12431 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12432 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12433 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12434 method.
12435 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12436 tui_wrefresh.
12437 (tui_data_window::no_refresh): New method.
12438 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12439 (tui_reg_command): Use tui_suppress_output
12440 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12441 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12442 method.
12443 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12444
4f13c1c0
TT
124452020-01-19 Tom Tromey <tom@tromey.com>
12446
12447 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12448 Handle case where symtab is null.
12449
fa47e446
SM
124502020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12451
12452 * linux-fork.c (one_fork_p): Simplify.
12453
26f42329
SM
124542020-01-17 Simon Marchi <simon.marchi@efficios.com>
12455
12456 * top.c (struct qt_args): Remove.
12457 (kill_or_detach): Change return type to void, replace `void *`
12458 parameter with a proper one.
12459 (print_inferior_quit_action): Likewise.
12460 (quit_confirm): Use range-based for loop to iterate over inferiors.
12461 (quit_force): Likewise.
12462
a9ac81b1
SM
124632020-01-17 Simon Marchi <simon.marchi@efficios.com>
12464
12465 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12466 `void *` parameter with proper parameters.
12467 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12468 (print_one_inferior): Change return type to void, replace `void *`
12469 parameter with proper parameters.
12470 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12471 inferiors.
12472 (get_other_inferior): Remove.
12473 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12474 inferiors.
12475
788eca49
SM
124762020-01-17 Simon Marchi <simon.marchi@efficios.com>
12477
12478 * mi/mi-interp.c (report_initial_inferior): Remove.
12479 (mi_interp::init): Use range-based for to iterate over inferiors.
12480
d9bc85b6
SM
124812020-01-17 Simon Marchi <simon.marchi@efficios.com>
12482
12483 * python/py-inferior.c (build_inferior_list): Remove.
12484 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12485
40c94099
CB
124862020-01-16 Christian Biesinger <cbiesinger@google.com>
12487
12488 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12489 (btrace_stitch_trace): Likewise.
12490 * charset.c (intermediate_encoding): Likewise (vaild).
12491 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12492 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12493 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12494
e0cdfe3c
HD
124952020-01-16 Hannes Domani <ssbssa@yahoo.de>
12496
12497 * windows-tdep.c (windows_get_tlb_type):
12498 Add rtl_user_process_parameters type.
12499
790f1718 125002020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12501 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12502
12503 PR build/24805
12504 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12505 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12506 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12507 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12508 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12509 (ps_plog): Redeclare exported functions with default visibility.
12510
3112ed97
NA
125112020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12512
12513 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12514 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12515
8dc3273e
SM
125162020-01-15 Simon Marchi <simon.marchi@efficios.com>
12517
12518 * infcmd.c (post_create_inferior): Use get_thread_regcache
12519 instead of get_current_regcache.
12520
ff47f4f0
TT
125212020-01-14 Tom Tromey <tom@tromey.com>
12522
12523 PR symtab/12535:
12524 * python/python.c (gdbpy_decode_line): Treat empty string the same
12525 as no argument.
12526
975f45b7
TT
125272020-01-14 Tom Tromey <tom@tromey.com>
12528
12529 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12530
25e57356
TT
125312020-01-14 Tom Tromey <tom@tromey.com>
12532
12533 * nat/linux-btrace.c: Don't include <config.h>.
12534 * nat/linux-ptrace.c: Don't include <config.h>.
12535 * nat/x86-linux-dregs.c: Don't include <config.h>.
12536
05ea2a05
TT
125372020-01-14 Tom Tromey <tom@tromey.com>
12538
12539 * configure: Rebuild.
12540 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12541
01027315
TT
125422020-01-14 Tom Tromey <tom@tromey.com>
12543
12544 * nat/x86-linux-dregs.c: Include configh.h.
12545 * nat/linux-ptrace.c: Include configh.h.
12546 * nat/linux-btrace.c: Include configh.h.
12547 * defs.h: Include config.h, bfd.h.
12548 * configure.ac: Don't source common.host.
12549 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12550 * configure: Rebuild.
12551 * acinclude.m4: Update path.
12552 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12553 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12554 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12555 (CLIBS): Add LIBSUPPORT.
12556 (CDEPS): Likewise.
12557 (COMMON_SFILES): Remove gdbsupport files.
12558 (HFILES_NO_SRCDIR): Likewise.
12559 (stamp-version): Update path to create-version.sh.
12560 (ALLDEPFILES): Remove gdbsupport files.
12561
b2ceabe8
TT
125622020-01-14 Tom Tromey <tom@tromey.com>
12563
12564 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12565 USE_WIN32API when needed.
12566 * configure.ac (USE_WIN32API): Don't define.
12567 (WIN32LIBS): Use WIN32APILIBS.
12568 * configure: Rebuild.
12569
25c51f71
TT
125702020-01-14 Tom Tromey <tom@tromey.com>
12571
12572 * configure: Rebuild.
12573 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12574
717c684d
BE
125752020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12576
12577 * skip.c (skip_function_command): Make skip w/o arguments use the
12578 name of the inlined function if pc is inside any inlined function.
12579
7da6a5b9
LM
125802020-01-14 Luis Machado <luis.machado@linaro.org>
12581
12582 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12583 * infrun.c (resume_1): Likewise.
12584 (handle_inferior_event): Remove stale comment.
12585 * linux-nat.c (linux_nat_target::resume): Update comments.
12586 (save_stop_reason): Likewise.
12587 (linux_nat_filter_event): Likewise.
12588 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12589
44e4c775
AB
125902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12591
12592 * elfread.c (record_minimal_symbol): Set section index to 0 for
12593 non-allocatable sections.
12594
18a8505e
AT
12595
125962020-01-13 Ali Tamur <tamur@google.com>
12597
12598 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12599 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12600 to gdb::optional. Update comments.
12601 (dwo_file): Update comments.
12602 (read_attribute): Update API to take an additional out parameter,
12603 need_reprocess. This is used to mark attributes that need other
12604 attributes (e.g. str_offsets_base) for correct computation which may not
12605 have been read yet.
12606 (read_attribute_reprocess): New function declaration.
12607 (read_addr_index): Likewise.
12608 (read_dwo_str_index): Likewise.
12609 (read_stub_str_index): Likewise.
12610 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12611 (lookup_addr_base): New function definition.
12612 (lookup_ranges_base): Likewise.
12613 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12614 lookup_ranges_base.
12615 (init_cutu_and_read_dies): Update comments.
12616 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12617 unit. This is used to inherit parent's str_offsets_base and addr_base.
12618 Update comments.
12619 (init_cutu_and_read_dies_simple): Reflect API changes.
12620 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12621 (create_cus_hash_table): Change API to take parent compile unit.
12622 Reflect API changes.
12623 (open_and_init_dwo_file): Reflect API changes.
12624 (dwarf2_get_pc_bounds): Update comments.
12625 (dwarf2_record_block_ranges): Likewise.
12626 (read_full_die_1): Change implementation to reprocess attributes that
12627 need str_offsets_base and addr_base.
12628 (partial_die_info::read): Likewise.
12629 (read_attribute_reprocess): New function definition.
12630 (read_attribute_value): Change API to take an additional out parameter,
12631 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12632 when a non-dwo compile unit has index based attributes.
12633 (read_attribute): Reflect API changes.
12634 (read_addr_index_1): Reflect API changes. Update comments.
12635 (dwarf2_read_addr_index_data): Reflect API changes.
12636 (dwarf2_read_addr_index): Likewise.
12637 (read_str_index): Change API and implementation. This becomes a helper
12638 to be used by the new string index related methods. Update error
12639 message and comments.
12640 (read_dwo_str_index): New function definition.
12641 (read_stub_str_index): Likewise.
12642 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12643 * symfile.h (dwarf2_debug_sections): Likewise.
12644 * xcoffread.c (dwarf2_debug_sections): Likewise.
12645
0cac9354
SM
126462020-01-13 Simon Marchi <simon.marchi@efficios.com>
12647
12648 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12649 core_reg_sect type to gdb_byte *.
12650 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12651 * cris-tdep.c (fetch_core_registers): Likewise.
12652 * corelow.c (core_target::get_core_register_section): Change
12653 type of `contents` to gdb::byte_vector.
12654
9a6d629c
AB
126552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12656
12657 * tui/tui-wingeneral.c (box_win): Position the title in the center
12658 of the border.
12659
d8b2f9e3
SM
126602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12661
12662 * corelow.c (core_target::get_core_register_section): Use
12663 std::vector instead of alloca.
12664
bb564c58
SM
126652020-01-13 Simon Marchi <simon.marchi@efficios.com>
12666
12667 * warning.m4: Add -Wmissing-declarations to build_warnings.
12668 * configure: Re-generate.
12669
6b366111
SM
126702020-01-13 Simon Marchi <simon.marchi@efficios.com>
12671
12672 * python/python.c (init__gdb_module): Add declaration.
12673
6c265988
SM
126742020-01-13 Simon Marchi <simon.marchi@efficios.com>
12675
12676 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12677 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12678 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12679 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12680 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12681 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12682 * ada-exp.y (_initialize_ada_exp): Add declaration.
12683 * ada-lang.c (_initialize_ada_language): Add declaration.
12684 * ada-tasks.c (_initialize_tasks): Add declaration.
12685 * agent.c (_initialize_agent): Add declaration.
12686 * aix-thread.c (_initialize_aix_thread): Add declaration.
12687 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12688 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12689 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12690 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12691 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12692 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12693 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12694 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12695 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12696 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12697 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12698 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12699 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12700 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12701 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12702 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12703 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12704 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12705 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12706 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12707 * annotate.c (_initialize_annotate): Add declaration.
12708 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12709 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12710 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12711 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12712 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12713 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12714 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12715 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12716 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12717 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12718 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12719 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12720 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12721 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12722 * auto-load.c (_initialize_auto_load): Add declaration.
12723 * auxv.c (_initialize_auxv): Add declaration.
12724 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12725 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12726 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12727 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12728 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12729 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12730 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12731 * breakpoint.c (_initialize_breakpoint): Add declaration.
12732 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12733 * btrace.c (_initialize_btrace): Add declaration.
12734 * charset.c (_initialize_charset): Add declaration.
12735 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12736 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12737 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12738 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12739 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12740 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12741 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12742 * coffread.c (_initialize_coffread): Add declaration.
12743 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12744 * compile/compile.c (_initialize_compile): Add declaration.
12745 * complaints.c (_initialize_complaints): Add declaration.
12746 * completer.c (_initialize_completer): Add declaration.
12747 * copying.c (_initialize_copying): Add declaration.
12748 * corefile.c (_initialize_core): Add declaration.
12749 * corelow.c (_initialize_corelow): Add declaration.
12750 * cp-abi.c (_initialize_cp_abi): Add declaration.
12751 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12752 * cp-support.c (_initialize_cp_support): Add declaration.
12753 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12754 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12755 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12756 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12757 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12758 * ctfread.c (_initialize_ctfread): Add declaration.
12759 * d-lang.c (_initialize_d_language): Add declaration.
12760 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12761 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12762 * dbxread.c (_initialize_dbxread): Add declaration.
12763 * dcache.c (_initialize_dcache): Add declaration.
12764 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12765 * disasm.c (_initialize_disasm): Add declaration.
12766 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12767 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12768 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12769 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12770 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12771 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12772 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12773 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12774 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12775 * elfread.c (_initialize_elfread): Add declaration.
12776 * exec.c (_initialize_exec): Add declaration.
12777 * extension.c (_initialize_extension): Add declaration.
12778 * f-lang.c (_initialize_f_language): Add declaration.
12779 * f-valprint.c (_initialize_f_valprint): Add declaration.
12780 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12781 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12782 * filesystem.c (_initialize_filesystem): Add declaration.
12783 * findcmd.c (_initialize_mem_search): Add declaration.
12784 * findvar.c (_initialize_findvar): Add declaration.
12785 * fork-child.c (_initialize_fork_child): Add declaration.
12786 * frame-base.c (_initialize_frame_base): Add declaration.
12787 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12788 * frame.c (_initialize_frame): Add declaration.
12789 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12790 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12791 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12792 * gcore.c (_initialize_gcore): Add declaration.
12793 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12794 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12795 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12796 * gdbarch.c (_initialize_gdbarch): Add declaration.
12797 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12798 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12799 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12800 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12801 * go-lang.c (_initialize_go_language): Add declaration.
12802 * go32-nat.c (_initialize_go32_nat): Add declaration.
12803 * guile/guile.c (_initialize_guile): Add declaration.
12804 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12805 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12806 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12807 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12808 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12809 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12810 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12811 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12812 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12813 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12814 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12815 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12816 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12817 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12818 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12819 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12820 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12821 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12822 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12823 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12824 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12825 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12826 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12827 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12828 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12829 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12830 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12831 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12832 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12833 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12834 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12835 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12836 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12837 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12838 * infcall.c (_initialize_infcall): Add declaration.
12839 * infcmd.c (_initialize_infcmd): Add declaration.
12840 * inflow.c (_initialize_inflow): Add declaration.
12841 * infrun.c (_initialize_infrun): Add declaration.
12842 * interps.c (_initialize_interpreter): Add declaration.
12843 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12844 * jit.c (_initialize_jit): Add declaration.
12845 * language.c (_initialize_language): Add declaration.
12846 * linux-fork.c (_initialize_linux_fork): Add declaration.
12847 * linux-nat.c (_initialize_linux_nat): Add declaration.
12848 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12849 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12850 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12851 * m2-lang.c (_initialize_m2_language): Add declaration.
12852 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12853 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12854 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12855 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12856 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12857 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12858 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12859 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12860 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12861 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12862 * machoread.c (_initialize_machoread): Add declaration.
12863 * macrocmd.c (_initialize_macrocmd): Add declaration.
12864 * macroscope.c (_initialize_macroscope): Add declaration.
12865 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12866 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12867 * maint.c (_initialize_maint_cmds): Add declaration.
12868 * mdebugread.c (_initialize_mdebugread): Add declaration.
12869 * memattr.c (_initialize_mem): Add declaration.
12870 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12871 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12872 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12873 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12874 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12875 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12876 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12877 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12878 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12879 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12880 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12881 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12882 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12883 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12884 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12885 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12886 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12887 * mipsread.c (_initialize_mipsread): Add declaration.
12888 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12889 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12890 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12891 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12892 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12893 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12894 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12895 * nto-procfs.c (_initialize_procfs): Add declaration.
12896 * objc-lang.c (_initialize_objc_language): Add declaration.
12897 * observable.c (_initialize_observer): Add declaration.
12898 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12899 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12900 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12901 * osabi.c (_initialize_gdb_osabi): Add declaration.
12902 * osdata.c (_initialize_osdata): Add declaration.
12903 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12904 * parse.c (_initialize_parse): Add declaration.
12905 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12906 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12907 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12908 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12909 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12910 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12911 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12912 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12913 * printcmd.c (_initialize_printcmd): Add declaration.
12914 * probe.c (_initialize_probe): Add declaration.
12915 * proc-api.c (_initialize_proc_api): Add declaration.
12916 * proc-events.c (_initialize_proc_events): Add declaration.
12917 * proc-service.c (_initialize_proc_service): Add declaration.
12918 * procfs.c (_initialize_procfs): Add declaration.
12919 * producer.c (_initialize_producer): Add declaration.
12920 * psymtab.c (_initialize_psymtab): Add declaration.
12921 * python/python.c (_initialize_python): Add declaration.
12922 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12923 * record-btrace.c (_initialize_record_btrace): Add declaration.
12924 * record-full.c (_initialize_record_full): Add declaration.
12925 * record.c (_initialize_record): Add declaration.
12926 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12927 * regcache.c (_initialize_regcache): Add declaration.
12928 * reggroups.c (_initialize_reggroup): Add declaration.
12929 * remote-notif.c (_initialize_notif): Add declaration.
12930 * remote-sim.c (_initialize_remote_sim): Add declaration.
12931 * remote.c (_initialize_remote): Add declaration.
12932 * reverse.c (_initialize_reverse): Add declaration.
12933 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12934 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12935 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12936 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12937 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12938 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12939 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12940 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12941 Add declaration.
12942 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12943 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12944 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12945 * rust-exp.y (_initialize_rust_exp): Add declaration.
12946 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12947 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12948 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12949 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12950 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12951 * score-tdep.c (_initialize_score_tdep): Add declaration.
12952 * ser-go32.c (_initialize_ser_dos): Add declaration.
12953 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12954 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12955 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12956 * ser-uds.c (_initialize_ser_socket): Add declaration.
12957 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12958 * serial.c (_initialize_serial): Add declaration.
12959 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12960 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12961 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12962 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12963 * skip.c (_initialize_step_skip): Add declaration.
12964 * sol-thread.c (_initialize_sol_thread): Add declaration.
12965 * solib-aix.c (_initialize_solib_aix): Add declaration.
12966 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12967 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12968 * solib-frv.c (_initialize_frv_solib): Add declaration.
12969 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12970 * solib-target.c (_initialize_solib_target): Add declaration.
12971 * solib.c (_initialize_solib): Add declaration.
12972 * source-cache.c (_initialize_source_cache): Add declaration.
12973 * source.c (_initialize_source): Add declaration.
12974 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12975 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12976 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12977 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12978 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12979 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12980 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12981 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12982 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12983 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12984 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12985 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12986 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12987 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12988 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12989 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12990 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12991 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12992 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12993 * stabsread.c (_initialize_stabsread): Add declaration.
12994 * stack.c (_initialize_stack): Add declaration.
12995 * stap-probe.c (_initialize_stap_probe): Add declaration.
12996 * std-regs.c (_initialize_frame_reg): Add declaration.
12997 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12998 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12999 * symfile.c (_initialize_symfile): Add declaration.
13000 * symmisc.c (_initialize_symmisc): Add declaration.
13001 * symtab.c (_initialize_symtab): Add declaration.
13002 * target.c (_initialize_target): Add declaration.
13003 * target-connection.c (_initialize_target_connection): Add
13004 declaration.
13005 * target-dcache.c (_initialize_target_dcache): Add declaration.
13006 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13007 * thread.c (_initialize_thread): Add declaration.
13008 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13009 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13010 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13011 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13012 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13013 * tracectf.c (_initialize_ctf): Add declaration.
13014 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13015 * tracefile.c (_initialize_tracefile): Add declaration.
13016 * tracepoint.c (_initialize_tracepoint): Add declaration.
13017 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13018 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13019 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13020 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13021 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13022 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13023 * tui/tui.c (_initialize_tui): Add declaration.
13024 * typeprint.c (_initialize_typeprint): Add declaration.
13025 * ui-style.c (_initialize_ui_style): Add declaration.
13026 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13027 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13028 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13029 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13030 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13031 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13032 * unittests/filtered_iterator-selftests.c
13033 (_initialize_filtered_iterator_selftests): Add declaration.
13034 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13035 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13036 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13037 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13038 * unittests/main-thread-selftests.c
13039 (_initialize_main_thread_selftests): Add declaration.
13040 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13041 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13042 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13043 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13044 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13045 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13046 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13047 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13048 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13049 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13050 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13051 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13052 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13053 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13054 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13055 declaration.
13056 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13057 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13058 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13059 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13060 * user-regs.c (_initialize_user_regs): Add declaration.
13061 * utils.c (_initialize_utils): Add declaration.
13062 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13063 * valops.c (_initialize_valops): Add declaration.
13064 * valprint.c (_initialize_valprint): Add declaration.
13065 * value.c (_initialize_values): Add declaration.
13066 * varobj.c (_initialize_varobj): Add declaration.
13067 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13068 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13069 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13070 * windows-nat.c (_initialize_windows_nat): Add declaration.
13071 (_initialize_check_for_gdb_ini): Add declaration.
13072 (_initialize_loadable): Add declaration.
13073 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13074 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13075 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13076 * xcoffread.c (_initialize_xcoffread): Add declaration.
13077 * xml-support.c (_initialize_xml_support): Add declaration.
13078 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13079 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13080 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13081 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13082
e2de1eec
SM
130832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13084
13085 * regformats/regdat.sh: Generate declaration for init function.
13086
e0037b4c
SM
130872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13088
13089 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13090 up.
13091 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13092 close_one_inferior>: New methods.
13093 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13094 pass down target to find_inferior_pid.
13095 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13096 Pass down target to find_inferior_ptid.
13097 (gdbsim_target::create_inferior): Pass down target to
13098 add_thread_silent.
13099 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13100 target down to find_inferior_ptid and switch_to_thread.
13101 (gdbsim_target::close): Update to call close_one_inferior.
13102 (struct resume_data): Remove.
13103 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13104 directly, rather than through a void pointer.
13105 (gdbsim_target::resume): Update to call resume_one_inferior.
13106
58920b5b
SM
131072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13108
13109 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13110
4ec89149
PA
131112020-01-12 Pedro Alves <palves@redhat.com>
13112
13113 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13114 directly for the current inferior instead of
13115 discard_all_inferiors.
13116 (discard_all_inferiors): Delete.
13117
7c392d1d
TT
131182020-01-11 Tom Tromey <tom@tromey.com>
13119
13120 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13121 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13122 deprecated_safe_get_selected_frame.
13123
d9ebdab7
TBA
131242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13125
13126 * inferior.c (print_inferior): Switch inferior before printing it.
13127
f3c469b9
PA
131282020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13129 Pedro Alves <palves@redhat.com>
13130
13131 * progspace-and-thread.c (switch_to_program_space_and_thread):
13132 Assert there's an inferior for PSPACE. Use
13133 switch_to_inferior_no_thread to switch the inferior too.
13134 * progspace.c (program_space::~program_space): Call
13135 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13136 (program_space::free_all_objfiles): Don't call clear_symtab_users
13137 here.
13138 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13139
65c574f6
PA
131402020-01-10 Pedro Alves <palves@redhat.com>
13141
13142 * NEWS: Mention multi-target debugging, "info connections", and
13143 "add-inferior -no-connection".
13144
2f4fcf00
PA
131452020-01-10 Pedro Alves <palves@redhat.com>
13146
13147 * infrun.c: Include "target-connection.h".
13148 (check_multi_target_resumption): New.
13149 (proceed): Call it.
13150 * target-connection.c (make_target_connection_string): Make
13151 extern.
13152 * target-connection.h (make_target_connection_string): Declare.
13153
121b3efd
PA
131542020-01-10 Pedro Alves <palves@redhat.com>
13155
13156 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13157 * inferior.c (uiout_field_connection): New function.
13158 (print_inferior): Add new "connection-id" column.
13159 (add_inferior_command): Show connection number/string of added
13160 inferior.
13161 * process-stratum-target.h
13162 (process_stratum_target::connection_string): New virtual method.
13163 (process_stratum_target::connection_number): New field.
13164 * remote.c (remote_target::connection_string): New override.
13165 * target-connection.c: New file.
13166 * target-connection.h: New file.
13167 * target.c (decref_target): Remove process_stratum targets from
13168 the connection list.
13169 (target_stack::push): Add process_stratum targets to the
13170 connection list.
13171
4f837581
PA
131722020-01-10 Pedro Alves <palves@redhat.com>
13173
13174 Revert:
13175 2016-04-12 Pedro Alves <palves@redhat.com>
13176 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13177 Remove references to name.
13178 * serial.h (struct serial) <name>: Delete.
13179
f4ec508e
PA
131802020-01-10 Pedro Alves <palves@redhat.com>
13181
13182 * gdbarch-selftests.c (register_to_value_test): Remove "target
13183 already pushed" check.
13184
5b6d1e4f
PA
131852020-01-10 Pedro Alves <palves@redhat.com>
13186 John Baldwin <jhb@FreeBSD.org>
13187
13188 * aarch64-linux-nat.c
13189 (aarch64_linux_nat_target::thread_architecture): Adjust.
13190 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13191 (task_command_1): Likewise.
13192 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13193 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13194 (aix_thread_target::store_registers)
13195 (aix_thread_target::thread_alive): Adjust.
13196 * amd64-fbsd-tdep.c: Include "inferior.h".
13197 (amd64fbsd_get_thread_local_address): Pass down target.
13198 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13199 thread's gdbarch instead of target_gdbarch.
13200 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13201 get_last_target_status.
13202 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13203 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13204 inferiors.
13205 (update_inserted_breakpoint_locations): Skip if inferiors with no
13206 execution.
13207 (update_global_location_list): When handling moribund locations,
13208 find representative inferior for location's pspace, and use thread
13209 count of its process_stratum target.
13210 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13211 * bsd-uthread.c (bsd_uthread_target::wait): Use
13212 as_process_stratum_target and adjust thread_change_ptid and
13213 add_thread calls.
13214 (bsd_uthread_target::update_thread_list): Use
13215 as_process_stratum_target and adjust find_thread_ptid,
13216 thread_change_ptid and add_thread calls.
13217 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13218 find_thread_ptid call.
13219 * corelow.c (add_to_thread_list): Adjust add_thread call.
13220 (core_target_open): Adjust add_thread_silent and thread_count
13221 calls.
13222 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13223 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13224 * event-top.c (async_disconnect): Pop targets from all inferiors.
13225 * exec.c (add_target_sections): Push exec target on all inferiors
13226 sharing the program space.
13227 (remove_target_sections): Remove the exec target from all
13228 inferiors sharing the program space.
13229 (exec_on_vfork): New.
13230 * exec.h (exec_on_vfork): Declare.
13231 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13232 Pass it down.
13233 (fbsd_nat_target::update_thread_list): Adjust.
13234 (fbsd_nat_target::resume): Adjust.
13235 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13236 down.
13237 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13238 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13239 get_thread_arch_regcache call.
13240 * fork-child.c (gdb_startup_inferior): Pass target down to
13241 startup_inferior and set_executing.
13242 * gdbthread.h (struct process_stratum_target): Forward declare.
13243 (add_thread, add_thread_silent, add_thread_with_info)
13244 (in_thread_list): Add process_stratum_target parameter.
13245 (find_thread_ptid(inferior*, ptid_t)): New overload.
13246 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13247 parameter.
13248 (all_threads()): Delete overload.
13249 (all_threads, all_non_exited_threads): Add process_stratum_target
13250 parameter.
13251 (all_threads_safe): Use brace initialization.
13252 (thread_count): Add process_stratum_target parameter.
13253 (set_resumed, set_running, set_stop_requested, set_executing)
13254 (threads_are_executing, finish_thread_state): Add
13255 process_stratum_target parameter.
13256 (switch_to_thread): Use is_current_thread.
13257 * i386-fbsd-tdep.c: Include "inferior.h".
13258 (i386fbsd_get_thread_local_address): Pass down target.
13259 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13260 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13261 have_inferiors check.
13262 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13263 (inf_ptrace_target::attach): Adjust.
13264 * infcall.c (run_inferior_call): Adjust.
13265 * infcmd.c (run_command_1): Pass target to
13266 scoped_finish_thread_state.
13267 (proceed_thread_callback): Skip inferiors with no execution.
13268 (continue_command): Rename 'all_threads' local to avoid hiding
13269 'all_threads' function. Adjust get_last_target_status call.
13270 (prepare_one_step): Adjust set_running call.
13271 (signal_command): Use user_visible_resume_target. Compare thread
13272 pointers instead of inferior_ptid.
13273 (info_program_command): Adjust to pass down target.
13274 (attach_command): Mark target's 'thread_executing' flag.
13275 (stop_current_target_threads_ns): New, factored out from ...
13276 (interrupt_target_1): ... this. Switch inferior before making
13277 target calls.
13278 * inferior-iter.h
13279 (struct all_inferiors_iterator, struct all_inferiors_range)
13280 (struct all_inferiors_safe_range)
13281 (struct all_non_exited_inferiors_range): Filter on
13282 process_stratum_target too. Remove explicit.
13283 * inferior.c (inferior::inferior): Push dummy target on target
13284 stack.
13285 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13286 Add process_stratum_target parameter, and pass it down.
13287 (have_live_inferiors): Adjust.
13288 (switch_to_inferior_and_push_target): New.
13289 (add_inferior_command, clone_inferior_command): Handle
13290 "-no-connection" parameter. Use
13291 switch_to_inferior_and_push_target.
13292 (_initialize_inferior): Mention "-no-connection" option in
13293 the help of "add-inferior" and "clone-inferior" commands.
13294 * inferior.h: Include "process-stratum-target.h".
13295 (interrupt_target_1): Use bool.
13296 (struct inferior) <push_target, unpush_target, target_is_pushed,
13297 find_target_beneath, top_target, process_target, target_at,
13298 m_stack>: New.
13299 (discard_all_inferiors): Delete.
13300 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13301 (all_inferiors, all_non_exited_inferiors): Add
13302 process_stratum_target parameter.
13303 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13304 (target_last_proc_target): New global.
13305 (follow_fork_inferior): Push target on new inferior. Pass target
13306 to add_thread_silent. Call exec_on_vfork. Handle target's
13307 reference count.
13308 (follow_fork): Adjust get_last_target_status call. Also consider
13309 target.
13310 (follow_exec): Push target on new inferior.
13311 (struct execution_control_state) <target>: New field.
13312 (user_visible_resume_target): New.
13313 (do_target_resume): Call target_async.
13314 (resume_1): Set target's threads_executing flag. Consider resume
13315 target.
13316 (commit_resume_all_targets): New.
13317 (proceed): Also consider resume target. Skip threads of inferiors
13318 with no execution. Commit resumtion in all targets.
13319 (start_remote): Pass current inferior to wait_for_inferior.
13320 (infrun_thread_stop_requested): Consider target as well. Pass
13321 thread_info pointer to clear_inline_frame_state instead of ptid.
13322 (infrun_thread_thread_exit): Consider target as well.
13323 (random_pending_event_thread): New inferior parameter. Use it.
13324 (do_target_wait): Rename to ...
13325 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13326 down.
13327 (threads_are_resumed_pending_p, do_target_wait): New.
13328 (prepare_for_detach): Adjust calls.
13329 (wait_for_inferior): New inferior parameter. Handle it. Use
13330 do_target_wait_1 instead of do_target_wait.
13331 (fetch_inferior_event): Adjust. Switch to representative
13332 inferior. Pass target down.
13333 (set_last_target_status): Add process_stratum_target parameter.
13334 Save target in global.
13335 (get_last_target_status): Add process_stratum_target parameter and
13336 handle it.
13337 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13338 (context_switch): Check inferior_ptid == null_ptid before calling
13339 inferior_thread().
13340 (get_inferior_stop_soon): Pass down target.
13341 (wait_one): Rename to ...
13342 (poll_one_curr_target): ... this.
13343 (struct wait_one_event): New.
13344 (wait_one): New.
13345 (stop_all_threads): Adjust.
13346 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13347 event's target.
13348 (switch_back_to_stepped_thread): Also consider target.
13349 (print_stop_event): Update.
13350 (normal_stop): Update. Also consider the resume target.
13351 * infrun.h (wait_for_inferior): Remove declaration.
13352 (user_visible_resume_target): New declaration.
13353 (get_last_target_status, set_last_target_status): New
13354 process_stratum_target parameter.
13355 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13356 process_stratum_target parameter, and use it.
13357 (clear_inline_frame_state (thread_info*)): New.
13358 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13359 process_stratum_target parameter.
13360 (clear_inline_frame_state (thread_info*)): Declare.
13361 * linux-fork.c (delete_checkpoint_command): Pass target down to
13362 find_thread_ptid.
13363 (checkpoint_command): Adjust.
13364 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13365 instead of just tweaking inferior_ptid.
13366 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13367 (exit_lwp): Pass target down to find_thread_ptid.
13368 (attach_proc_task_lwp_callback): Pass target down to
13369 add_thread/set_running/set_executing.
13370 (linux_nat_target::attach): Pass target down to
13371 thread_change_ptid.
13372 (get_detach_signal): Pass target down to find_thread_ptid.
13373 Consider last target status's target.
13374 (linux_resume_one_lwp_throw, resume_lwp)
13375 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13376 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13377 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13378 (linux_nat_target::async_wait_fd): New.
13379 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13380 target down.
13381 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13382 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13383 * linux-thread-db.c (struct thread_db_info::process_target): New
13384 field.
13385 (add_thread_db_info): Save target.
13386 (get_thread_db_info): New process_stratum_target parameter. Also
13387 match target.
13388 (delete_thread_db_info): New process_stratum_target parameter.
13389 Also match target.
13390 (thread_from_lwp): Adjust to pass down target.
13391 (thread_db_notice_clone): Pass down target.
13392 (check_thread_db_callback): Pass down target.
13393 (try_thread_db_load_1): Always push the thread_db target.
13394 (try_thread_db_load, record_thread): Pass target down.
13395 (thread_db_target::detach): Pass target down. Always unpush the
13396 thread_db target.
13397 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13398 target down. Always unpush the thread_db target.
13399 (find_new_threads_callback, thread_db_find_new_threads_2)
13400 (thread_db_target::update_thread_list): Pass target down.
13401 (thread_db_target::pid_to_str): Pass current inferior down.
13402 (thread_db_target::get_thread_local_address): Pass target down.
13403 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13404 target down.
13405 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13406 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13407 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13408 (procfs_init_inferior): Rename to ...
13409 (procfs_target::procfs_init_inferior): ... this and adjust.
13410 (procfs_target::create_inferior, procfs_notice_thread)
13411 (procfs_do_thread_registers): Adjust.
13412 * ppc-fbsd-tdep.c: Include "inferior.h".
13413 (ppcfbsd_get_thread_local_address): Pass down target.
13414 * proc-service.c (ps_xfer_memory): Switch current inferior and
13415 program space as well.
13416 (get_ps_regcache): Pass target down.
13417 * process-stratum-target.c
13418 (process_stratum_target::thread_address_space)
13419 (process_stratum_target::thread_architecture): Pass target down.
13420 * process-stratum-target.h
13421 (process_stratum_target::threads_executing): New field.
13422 (as_process_stratum_target): New.
13423 * ravenscar-thread.c
13424 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13425 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13426 down.
13427 * record-btrace.c (record_btrace_target::info_record): Adjust.
13428 (record_btrace_target::record_method)
13429 (record_btrace_target::record_is_replaying)
13430 (record_btrace_target::fetch_registers)
13431 (get_thread_current_frame_id, record_btrace_target::resume)
13432 (record_btrace_target::wait, record_btrace_target::stop): Pass
13433 target down.
13434 * record-full.c (record_full_wait_1): Switch to event thread.
13435 Pass target down.
13436 * regcache.c (regcache::regcache)
13437 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13438 process_stratum_target parameter and handle it.
13439 (current_thread_target): New global.
13440 (get_thread_regcache): Add process_stratum_target parameter and
13441 handle it. Switch inferior before calling target method.
13442 (get_thread_regcache): Pass target down.
13443 (get_thread_regcache_for_ptid): Pass target down.
13444 (registers_changed_ptid): Add process_stratum_target parameter and
13445 handle it.
13446 (registers_changed_thread, registers_changed): Pass target down.
13447 (test_get_thread_arch_aspace_regcache): New.
13448 (current_regcache_test): Define a couple local test_target_ops
13449 instances and use them for testing.
13450 (readwrite_regcache): Pass process_stratum_target parameter.
13451 (cooked_read_test, cooked_write_test): Pass mock_target down.
13452 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13453 (get_thread_arch_aspace_regcache): Add process_stratum_target
13454 parameter.
13455 (regcache::target): New method.
13456 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13457 (regcache::registers_changed_ptid): Add process_stratum_target
13458 parameter.
13459 (regcache::m_target): New field.
13460 (registers_changed_ptid): Add process_stratum_target parameter.
13461 * remote.c (remote_state::supports_vCont_probed): New field.
13462 (remote_target::async_wait_fd): New method.
13463 (remote_unpush_and_throw): Add remote_target parameter.
13464 (get_current_remote_target): Adjust.
13465 (remote_target::remote_add_inferior): Push target.
13466 (remote_target::remote_add_thread)
13467 (remote_target::remote_notice_new_inferior)
13468 (get_remote_thread_info): Pass target down.
13469 (remote_target::update_thread_list): Skip threads of inferiors
13470 bound to other targets. (remote_target::close): Don't discard
13471 inferiors. (remote_target::add_current_inferior_and_thread)
13472 (remote_target::process_initial_stop_replies)
13473 (remote_target::start_remote)
13474 (remote_target::remote_serial_quit_handler): Pass down target.
13475 (remote_target::remote_unpush_target): New remote_target
13476 parameter. Unpush the target from all inferiors.
13477 (remote_target::remote_unpush_and_throw): New remote_target
13478 parameter. Pass it down.
13479 (remote_target::open_1): Check whether the current inferior has
13480 execution instead of checking whether any inferior is live. Pass
13481 target down.
13482 (remote_target::remote_detach_1): Pass down target. Use
13483 remote_unpush_target.
13484 (extended_remote_target::attach): Pass down target.
13485 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13486 (remote_target::append_resumption): Pass down target.
13487 (remote_target::append_pending_thread_resumptions)
13488 (remote_target::remote_resume_with_hc, remote_target::resume)
13489 (remote_target::commit_resume): Pass down target.
13490 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13491 (remote_target::interrupt_query)
13492 (remote_target::remove_new_fork_children)
13493 (remote_target::check_pending_events_prevent_wildcard_vcont)
13494 (remote_target::remote_parse_stop_reply)
13495 (remote_target::process_stop_reply): Pass down target.
13496 (first_remote_resumed_thread): New remote_target parameter. Pass
13497 it down.
13498 (remote_target::wait_as): Pass down target.
13499 (unpush_and_perror): New remote_target parameter. Pass it down.
13500 (remote_target::readchar, remote_target::remote_serial_write)
13501 (remote_target::getpkt_or_notif_sane_1)
13502 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13503 down target.
13504 (remote_target::mourn_inferior): Pass down target. Use
13505 remote_unpush_target.
13506 (remote_target::core_of_thread)
13507 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13508 (remote_target::pid_to_exec_file)
13509 (remote_target::thread_handle_to_thread_info): Pass down target.
13510 (remote_target::async_wait_fd): New.
13511 * riscv-fbsd-tdep.c: Include "inferior.h".
13512 (riscv_fbsd_get_thread_local_address): Pass down target.
13513 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13514 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13515 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13516 Adjust.
13517 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13518 * solib-svr4.c (enable_break): Pass down target.
13519 * spu-multiarch.c (parse_spufs_run): Pass down target.
13520 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13521 * target-delegates.c: Regenerate.
13522 * target.c (g_target_stack): Delete.
13523 (current_top_target): Return the current inferior's top target.
13524 (target_has_execution_1): Refer to the passed-in inferior's top
13525 target.
13526 (target_supports_terminal_ours): Check whether the initial
13527 inferior was already created.
13528 (decref_target): New.
13529 (target_stack::push): Incref/decref the target.
13530 (push_target, push_target, unpush_target): Adjust.
13531 (target_stack::unpush): Defref target.
13532 (target_is_pushed): Return bool. Adjust to refer to the current
13533 inferior's target stack.
13534 (dispose_inferior): Delete, and inline parts ...
13535 (target_preopen): ... here. Only dispose of the current inferior.
13536 (target_detach): Hold strong target reference while detaching.
13537 Pass target down.
13538 (target_thread_name): Add assertion.
13539 (target_resume): Pass down target.
13540 (target_ops::beneath, find_target_at): Adjust to refer to the
13541 current inferior's target stack.
13542 (get_dummy_target): New.
13543 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13544 has a thread running.
13545 (initialize_targets): Rename to ...
13546 (_initialize_target): ... this.
13547 * target.h: Include "gdbsupport/refcounted-object.h".
13548 (struct target_ops): Inherit refcounted_object.
13549 (target_ops::shortname, target_ops::longname): Make const.
13550 (target_ops::async_wait_fd): New method.
13551 (decref_target): Declare.
13552 (struct target_ops_ref_policy): New.
13553 (target_ops_ref): New typedef.
13554 (get_dummy_target): Declare function.
13555 (target_is_pushed): Return bool.
13556 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13557 (all_matching_threads_iterator::all_matching_threads_iterator):
13558 Handle filter target.
13559 * thread-iter.h (struct all_matching_threads_iterator, struct
13560 all_matching_threads_range, class all_non_exited_threads_range):
13561 Filter by target too. Remove explicit.
13562 * thread.c (threads_executing): Delete.
13563 (inferior_thread): Pass down current inferior.
13564 (clear_thread_inferior_resources): Pass down thread pointer
13565 instead of ptid_t.
13566 (add_thread_silent, add_thread_with_info, add_thread): Add
13567 process_stratum_target parameter. Use it for thread and inferior
13568 searches.
13569 (is_current_thread): New.
13570 (thread_info::deletable): Use it.
13571 (find_thread_ptid, thread_count, in_thread_list)
13572 (thread_change_ptid, set_resumed, set_running): New
13573 process_stratum_target parameter. Pass it down.
13574 (set_executing): New process_stratum_target parameter. Pass it
13575 down. Adjust reference to 'threads_executing'.
13576 (threads_are_executing): New process_stratum_target parameter.
13577 Adjust reference to 'threads_executing'.
13578 (set_stop_requested, finish_thread_state): New
13579 process_stratum_target parameter. Pass it down.
13580 (switch_to_thread): Also match inferior.
13581 (switch_to_thread): New process_stratum_target parameter. Pass it
13582 down.
13583 (update_threads_executing): Reimplement.
13584 * top.c (quit_force): Pop targets from all inferior.
13585 (gdb_init): Don't call initialize_targets.
13586 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13587 Declare.
13588 (windows_add_thread, windows_delete_thread): Adjust.
13589 (get_windows_debug_event): Rename to ...
13590 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13591 * tracefile-tfile.c (tfile_target_open): Pass down target.
13592 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13593 Forward declare.
13594 (switch_to_thread): Add process_stratum_target parameter.
13595 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13596 parameter. Use it.
13597 (mi_on_resume): Pass target down.
13598 * nat/fork-inferior.c (startup_inferior): Add
13599 process_stratum_target parameter. Pass it down.
13600 * nat/fork-inferior.h (startup_inferior): Add
13601 process_stratum_target parameter.
13602 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13603
75c6c844
PA
136042020-01-10 Pedro Alves <palves@redhat.com>
13605
13606 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13607 directly. Instead find the first thread in the thread list and
13608 use switch_to_thread.
13609
78f2c40a
PA
136102020-01-10 Pedro Alves <palves@redhat.com>
13611
13612 * remote.c (remote_target::remote_add_inferior): Don't bind a
13613 process to the current inferior if the current inferior is already
13614 bound to a process.
13615
e7af6c70
TBA
136162020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13617 Pedro Alves <palves@redhat.com>
13618
13619 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13620 If no process is specified, return null_ptid instead of
13621 inferior_ptid.
13622 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13623 TARGET_WAITKIND_SIGNALLED with no pid.
13624
31ba933e
PA
136252020-01-10 Pedro Alves <palves@redhat.com>
13626
13627 * remote.c (first_remote_resumed_thread): New.
13628 (remote_target::wait_as): Use it as default event_ptid instead of
13629 inferior_ptid.
13630
735fc2ca
PA
136312020-01-10 Pedro Alves <palves@redhat.com>
13632
13633 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13634
c17e02e1
PA
136352020-01-10 Pedro Alves <palves@redhat.com>
13636
13637 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13638 not -1.
13639
ab1ddbcf
PA
136402020-01-10 Pedro Alves <palves@redhat.com>
13641
13642 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13643 ptid to get_last_target_status.
13644 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13645 ptid to get_last_target_status.
13646 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13647 get_last_target_status.
13648 (info_program_command): Don't pass a target_waitstatus to
13649 get_last_target_status.
13650 * infrun.c (init_wait_for_inferior): Use
13651 nullify_last_target_wait_ptid.
13652 (get_last_target_status): Handle nullptr arguments.
13653 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13654 (print_stop_event): Don't pass a ptid to get_last_target_status.
13655 (normal_stop): Don't pass a ptid to get_last_target_status.
13656 * infrun.h (get_last_target_status, set_last_target_status): Move
13657 comments here and update.
13658 (nullify_last_target_wait_ptid): Declare.
13659 * linux-fork.c (fork_load_infrun_state): Remove local extern
13660 declaration of nullify_last_target_wait_ptid.
13661 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13662 to get_last_target_status.
13663
f3f8ece4
PA
136642020-01-10 Pedro Alves <palves@redhat.com>
13665
13666 * gdbthread.h (scoped_restore_current_thread)
13667 <dont_restore, restore, m_dont_restore>: Declare.
13668 * thread.c (thread_alive): Add assertion. Return bool.
13669 (switch_to_thread_if_alive): New.
13670 (prune_threads): Switch inferior/thread.
13671 (print_thread_info_1): Switch thread before calling target methods.
13672 (scoped_restore_current_thread::restore): New, factored out from
13673 ...
13674 (scoped_restore_current_thread::~scoped_restore_current_thread):
13675 ... this.
13676 (scoped_restore_current_thread::scoped_restore_current_thread):
13677 Add assertion.
13678 (thread_apply_all_command, thread_select): Use
13679 switch_to_thread_if_alive.
13680 * infrun.c (proceed, restart_threads, handle_signal_stop)
13681 (switch_back_to_stepped_thread): Switch current thread before
13682 calling target methods.
13683
db2d40f7
PA
136842020-01-10 Pedro Alves <palves@redhat.com>
13685
13686 * inferior.c (switch_to_inferior_no_thread): New function,
13687 factored out from ...
13688 (inferior_command): ... here.
13689 * inferior.h (switch_to_inferior_no_thread): Declare.
13690 * mi/mi-main.c (run_one_inferior): Use
13691 switch_to_inferior_no_thread.
13692
bd420a2d
PA
136932020-01-10 Pedro Alves <palves@redhat.com>
13694
13695 * infcmd.c (kill_command): Remove dead code.
13696
ddf5db90
PA
136972020-01-10 Pedro Alves <palves@redhat.com>
13698
13699 * remote.c (remote_target::mourn_inferior): No longer check
13700 whether the target is running.
13701
5018ce90
PA
137022020-01-10 Pedro Alves <palves@redhat.com>
13703
13704 * corelow.c (core_target::has_execution): Change parameter type to
13705 inferior pointer.
13706 * inferior.c (number_of_live_inferiors): Use
13707 inferior::has_execution instead of target_has_execution_1.
13708 * inferior.h (inferior::has_execution): New.
13709 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13710 inferior::has_execution instead of target_has_execution_1.
13711 * process-stratum-target.c
13712 (process_stratum_target::has_execution): Change parameter type to
13713 inferior pointer. Check the inferior's PID instead of
13714 inferior_ptid.
13715 * process-stratum-target.h
13716 (process_stratum_target::has_execution): Change parameter type to
13717 inferior pointer.
13718 * record-full.c (record_full_core_target::has_execution): Change
13719 parameter type to inferior pointer.
13720 * target.c (target_has_execution_1): Change parameter type to
13721 inferior pointer.
13722 (target_has_execution_current): Adjust.
13723 * target.h (target_ops::has_execution): Change parameter type to
13724 inferior pointer.
13725 (target_has_execution_1): Change parameter type to inferior
13726 pointer. Change return type to bool.
13727 * tracefile.h (tracefile_target::has_execution): Change parameter
13728 type to inferior pointer.
13729
74375d18
PA
137302020-01-10 Pedro Alves <palves@redhat.com>
13731
13732 * exceptions.c (print_flush): Remove current_top_target() check.
13733
acdf84a6
PA
137342020-01-10 Pedro Alves <palves@redhat.com>
13735
13736 * remote.c (show_remote_exec_file): Show the current inferior's
13737 exec-file instead of the command variable's value.
13738
ec506636
PA
137392020-01-10 Pedro Alves <palves@redhat.com>
13740
13741 * record-full.c (record_full_resume_ptid): New global.
13742 (record_full_target::resume): Set it.
13743 (record_full_wait_1): Use record_full_resume_ptid instead of
13744 inferior_ptid.
13745
873657b9
PA
137462020-01-10 Pedro Alves <palves@redhat.com>
13747
13748 * gdbthread.h (scoped_restore_current_thread)
13749 <dont_restore, restore, m_dont_restore>: Declare.
13750 * thread.c (thread_alive): Add assertion. Return bool.
13751 (switch_to_thread_if_alive): New.
13752 (prune_threads): Switch inferior/thread.
13753 (print_thread_info_1): Switch thread before calling target methods.
13754 (scoped_restore_current_thread::restore): New, factored out from
13755 ...
13756 (scoped_restore_current_thread::~scoped_restore_current_thread):
13757 ... this.
13758 (scoped_restore_current_thread::scoped_restore_current_thread):
13759 Add assertion.
13760 (thread_apply_all_command, thread_select): Use
13761 switch_to_thread_if_alive.
13762
7f0ae84c
GB
137632020-01-10 George Barrett <bob@bob131.so>
13764
13765 * stap-probe.c (stap_modify_semaphore): Don't check for null
13766 semaphores.
13767 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13768 for null semaphores.
13769
f5a7c406
AB
137702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13771
13772 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13773 all source windows, and maintain horizontal scroll status while
13774 doing so.
13775
9ae6bf64
TT
137762020-01-09 Tom Tromey <tom@tromey.com>
13777
13778 PR tui/18932:
13779 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13780 update_source_window, not print_source_lines.
13781
b2efe70c
AB
137822020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13783
13784 * tui/tui.c (tui_enable): Register tui hooks after calling
13785 tui_display_main.
13786
5f23a082
CB
137872020-01-09 Christian Biesinger <cbiesinger@google.com>
13788
13789 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13790
3061113b
SM
137912020-01-08 Simon Marchi <simon.marchi@efficios.com>
13792
13793 * thread.c (print_thread_info_1): Fix indentation.
13794
57d75002
CB
137952020-01-09 Christian Biesinger <cbiesinger@google.com>
13796
13797 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13798 unique_xmalloc_ptr outside the if to always free the demangled name.
13799
6a053cb1
TT
138002020-01-08 Tom Tromey <tromey@adacore.com>
13801
13802 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13803 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13804 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13805 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13806 Remove.
13807 (section_offsets): New typedef.
13808 * symtab.c (fixup_section, get_msymbol_address): Update.
13809 * symmisc.c (dump_msymbols): Update.
13810 * symfile.h (relative_addr_info_to_section_offsets)
13811 (symfile_map_offsets_to_segments): Update.
13812 * symfile.c (build_section_addr_info_from_objfile)
13813 (init_objfile_sect_indices): Update.
13814 (struct place_section_arg): Change type of "offsets".
13815 (place_section): Update.
13816 (relative_addr_info_to_section_offsets): Change type of
13817 "section_offsets". Remove "num_sections" parameter.
13818 (default_symfile_offsets, syms_from_objfile_1)
13819 (set_objfile_default_section_offset): Update.
13820 (reread_symbols): No need to preserve section offsets by hand.
13821 (symfile_map_offsets_to_segments): Change type of "offsets".
13822 * stap-probe.c (relocate_address): Update.
13823 * stabsread.h (process_one_symbol): Update.
13824 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13825 (solib_target_relocate_section_addresses): Update.
13826 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13827 Update.
13828 * solib-frv.c (frv_relocate_main_executable): Update.
13829 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13830 * solib-aix.c (solib_aix_get_section_offsets): Change return
13831 type.
13832 (solib_aix_solib_create_inferior_hook): Update.
13833 * remote.c (remote_target::get_offsets): Update.
13834 * psymtab.c (find_pc_sect_psymtab): Update.
13835 * psympriv.h (struct partial_symbol) <address, text_low,
13836 text_high>: Update.
13837 * objfiles.h (obj_section_offset): Update.
13838 (struct objfile) <section_offsets>: Change type.
13839 <num_sections>: Remove.
13840 (objfile_relocate): Update.
13841 * objfiles.c (entry_point_address_query): Update
13842 (relocate_one_symbol): Change type of "section_offsets".
13843 (objfile_relocate1, objfile_relocate1): Change type of
13844 "new_offsets".
13845 (objfile_rebase1): Update.
13846 * mipsread.c (mipscoff_symfile_read): Update.
13847 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13848 parameter.
13849 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13850 (parse_external, psymtab_to_symtab_1): Update.
13851 * machoread.c (macho_symfile_offsets): Update.
13852 * ia64-tdep.c (ia64_find_unwind_table): Update.
13853 * hppa-tdep.c (read_unwind_info): Update.
13854 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13855 * dwarf2read.c (create_addrmap_from_index)
13856 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13857 (process_psymtab_comp_unit_reader, add_partial_symbol)
13858 (add_partial_subprogram, process_full_comp_unit)
13859 (read_file_scope, read_func_scope, read_lexical_block_scope)
13860 (read_call_site_scope, dwarf2_rnglists_process)
13861 (dwarf2_ranges_process, dwarf2_ranges_read)
13862 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13863 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13864 Update.
13865 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13866 Update.
13867 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13868 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13869 (process_one_symbol): Change type of "section_offsets".
13870 * ctfread.c (get_objfile_text_range): Update.
13871 * coffread.c (coff_symtab_read, enter_linenos)
13872 (process_coff_symbol): Update.
13873 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13874 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13875
456e800a
TT
138762020-01-08 Tom Tromey <tromey@adacore.com>
13877
13878 * dwarf2read.c (parse_macro_definition): Use std::string.
13879 (parse_macro_definition): Likewise.
13880
6dfa2fc2
TT
138812020-01-08 Tom Tromey <tromey@adacore.com>
13882
13883 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13884 (ATTR_ALLOC_CHUNK): Remove.
13885
421d1616
TT
138862020-01-08 Tom Tromey <tromey@adacore.com>
13887
13888 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13889
43816ebc
TT
138902020-01-08 Tom Tromey <tromey@adacore.com>
13891
13892 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13893 (dwarf2_compute_name, open_dwo_file): Likewise.
13894 (process_enumeration_scope): Use std::vector.
13895 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13896 (partial_die_info::fixup, dwarf2_start_subfile)
13897 (guess_full_die_structure_name, dwarf2_name): Likewise.
13898 (determine_prefix): Update.
13899 (guess_full_die_structure_name): Make return type const.
13900 (partial_die_full_name): Return unique_xmalloc_ptr.
13901 (DW_FIELD_ALLOC_CHUNK): Remove.
13902
4212d509
TT
139032020-01-07 Tom Tromey <tromey@adacore.com>
13904
13905 PR build/24937:
13906 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13907
06a6207a
JT
139082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13909
13910 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13911
153d79c4
AB
139122020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * stack.c (print_frame_info): Move disassemble_next_line code
13915 inside source_print block.
13916
66182876
EZ
139172020-01-06 Eli Zaretskii <eliz@gnu.org>
13918
13919 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13920 gdb/signals.h, as we are now using native signal symbols.
13921
cbfa8581
SV
139222020-01-06 Shahab Vahedi <shahab@synopsys.com>
13923
13924 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13925 overflow by an early check of content vs threshold.
aac66a4c 13926 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13927 Likewise.
13928
3f602821
EZ
139292020-01-06 Eli Zaretskii <eliz@gnu.org>
13930
13931 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13932
a08c904d
JT
139332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13934
13935 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13936 export table if no section contains it's RVA.
13937
89a65580
EZ
139382020-01-06 Eli Zaretskii <eliz@gnu.org>
13939
13940 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13941
8b7fcda2
HD
139422020-01-06 Hannes Domani <ssbssa@yahoo.de>
13943
13944 * source.c (print_source_lines_base): Set last_line_listed.
13945
a61b4f69
SV
139462020-01-06 Shahab Vahedi <shahab@synopsys.com>
13947
13948 * tui/tui-disasm.c: Remove trailing spaces.
13949
559e7e50
EZ
139502020-01-06 Eli Zaretskii <eliz@gnu.org>
13951 Pedro Alves <palves@redhat.com>
13952
13953 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13954 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13955 (windows_gdb_signal_to_target): New function, uses the above
13956 enumeration to convert GDB internal signal codes to equivalent
13957 Windows codes.
13958 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13959 * windows-nat.c: Include "gdb_wait.h".
13960 (get_windows_debug_event): Extract the fatal exception from the
13961 exit status and convert to the equivalent Posix signal number.
13962 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13963 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13964 * gdbsupport/gdb_wait.c: New file, implements
13965 windows_status_to_termsig.
13966 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13967 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13968
f2302a34
AB
139692020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13970
13971 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13972 show_layout.
13973
6a5206eb
LM
139742020-01-05 Luis Machado <luis.machado@linaro.org>
13975
13976 * aarch64-linux-nat.c
13977 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13978 and bfd_mach_aarch64.
13979
6ec1d75e
PW
139802020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13981
13982 * ui-file.c (stdio_file::can_emit_style_escape)
13983 (tee_file::can_emit_style_escape): Ensure style is used also on
13984 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13985 to gdb_stdout.
13986 * main.c (set_gdb_data_directory): Use file style to output the
13987 warning that the given pathname is not a directory.
13988 * top.c (show_history_filename, gdb_safe_append_history)
13989 (show_gdb_datadir): Use file style.
13990
44f81a76
HD
139912020-01-03 Hannes Domani <ssbssa@yahoo.de>
13992
13993 * solib-target.c (struct lm_info_target):
13994 Change offsets to be a unique_xmalloc_ptr.
13995 (solib_target_relocate_section_addresses): Update.
13996
25057eb0
HD
139972020-01-03 Hannes Domani <ssbssa@yahoo.de>
13998
13999 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14000
6e2118f5
BE
140012020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14002
14003 * MAINTAINERS (Write After Approval): Add myself.
14004
8133c7dc
LM
140052020-01-02 Luis Machado <luis.machado@linaro.org>
14006
14007 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14008 Cell BE architecture.
14009 * target.h (struct target_ops) <thread_architecture>: Likewise.
14010
48189bec
HD
140112020-01-01 Hannes Domani <ssbssa@yahoo.de>
14012
14013 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14014
ead1063b
HD
140152020-01-01 Hannes Domani <ssbssa@yahoo.de>
14016
14017 * MAINTAINERS (Write After Approval): Add myself.
14018
e5d78223
JB
140192020-01-01 Joel Brobecker <brobecker@adacore.com>
14020
14021 * gdbarch.sh: Update copyright year range of generated files.
14022
b811d2c2
JB
140232020-01-01 Joel Brobecker <brobecker@adacore.com>
14024
14025 Update copyright year range in all GDB files.
14026
5f4def5c
JB
140272020-01-01 Joel Brobecker <brobecker@adacore.com>
14028
14029 * copyright.py: Convert to Python 3.
14030
51fd4002
JB
140312020-01-01 Joel Brobecker <brobecker@adacore.com>
14032
14033 * copyright.py: Adapt after move of gnulib directory from gdb
14034 directory to toplevel directory.
14035
5fb651f2
JB
140362020-01-01 Joel Brobecker <brobecker@adacore.com>
14037
14038 * copyright.py (main): Exit if run from the wrong directory.
14039
5dd8bf88
JB
140402020-01-01 Joel Brobecker <brobecker@adacore.com>
14041
14042 * top.c (print_gdb_version): Change copyright year to 2020.
14043
9f71dacb 140442020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14045
9f71dacb 14046 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14047
9f71dacb 14048For older changes see ChangeLog-2019.
c906108c
SS
14049\f
14050Local Variables:
14051mode: change-log
14052left-margin: 8
14053fill-column: 74
14054version-control: never
57da7796 14055coding: utf-8
c906108c 14056End:
This page took 3.14496 seconds and 4 git commands to generate.