Mention x86_64 Cygwin core file support in NEWS.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d3483b43
JT
12020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2
3 * NEWS: Mention x86_64 Cygwin core file support.
4
e7d612ad
JT
52020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
6
7 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
8 (core_process_module_section): Handle NOTE_INFO_MODULE64.
9
aff9d387
JT
102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
11
62a5151b
JT
12 * windows-tdep.h: Add prototypes.
13 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
14 (i386_windows_core_pid_to_str): Move and rename ...
15 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
16 (windows_core_pid_to_str): ... and here.
17 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
18
192020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
20 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
21 (amd64_windows_init_abi_common): ... and register.
22
7d155da3
JT
232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
24
25 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
26 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
27
e8ef12b9
PA
282020-09-18 Pedro Alves <pedro@palves.net>
29
30 PR gdb/26631
31 * thread.c (thread_find_command): Switch inferior before calling
32 target methods.
33
c1e1314d
TT
342020-09-17 Tom Tromey <tromey@adacore.com>
35
36 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
37 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
38 (tdesc_arch_data_up): New typedef.
39 (tdesc_use_registers, tdesc_data_alloc): Update.
40 (tdesc_data_cleanup): Don't declare.
41 * target-descriptions.c (tdesc_data_alloc): Return a
42 tdesc_arch_data_up.
43 (tdesc_arch_data_deleter::operator()): Rename from
44 tdesc_data_cleanup. Change argument type.
45 (tdesc_use_registers): Change early_data to an rvalue reference.
46 (tdesc_use_registers): Don't use delete.
47 * sparc-tdep.c (sparc32_gdbarch_init): Update.
48 * s390-tdep.c (s390_gdbarch_init): Update.
49 * rx-tdep.c (rx_gdbarch_init): Update.
50 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
51 * riscv-tdep.c (riscv_gdbarch_init): Update.
52 * or1k-tdep.c (or1k_gdbarch_init): Update.
53 * nios2-tdep.c (nios2_gdbarch_init): Update.
54 * nds32-tdep.c (nds32_gdbarch_init): Update.
55 * mips-tdep.c (mips_gdbarch_init): Update.
56 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
57 * m68k-tdep.c (m68k_gdbarch_init): Update.
58 * i386-tdep.c (i386_gdbarch_init): Update.
59 * arm-tdep.c (arm_gdbarch_init): Update.
60 * arc-tdep.c (arc_tdesc_init): Update.
61 (arc_gdbarch_init): Update.
62 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
63
0363df3d
HD
642020-09-17 Hannes Domani <ssbssa@yahoo.de>
65
66 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
67 for WOW64 processes.
68
280a9412
TT
692020-09-17 Tom Tromey <tom@tromey.com>
70
71 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
72
6108fd18
TT
732020-09-17 Tom Tromey <tom@tromey.com>
74
75 * value.c (preserve_values): Update.
76 * python/py-type.c (save_objfile_types): Update.
77 * guile/scm-type.c (save_objfile_types): Update.
78 * gdbtypes.h (create_copied_types_hash): Return htab_up.
79 * gdbtypes.c (create_copied_types_hash): Return htab_up.
80 * compile/compile-object-run.c (compile_object_run): Update.
81
fa9b1164
TT
822020-09-17 Tom Tromey <tom@tromey.com>
83
84 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
85 Remove.
86 <m_table>: Now htab_up.
87 * typeprint.c (typedef_hash_table::recursively_update)
88 (typedef_hash_table::add_template_parameters)
89 (typedef_hash_table::typedef_hash_table): Update.
90 (typedef_hash_table::~typedef_hash_table): Remove.
91 (typedef_hash_table::typedef_hash_table)
92 (typedef_hash_table::find_global_typedef)
93 (typedef_hash_table::find_typedef): Update.
94
eb53f105
TT
952020-09-17 Tom Tromey <tom@tromey.com>
96
97 * target-descriptions.c (tdesc_use_registers): Use htab_up.
98
7a8a5d47
TT
992020-09-17 Tom Tromey <tom@tromey.com>
100
101 * linespec.c (class decode_compound_collector)
102 <~decode_compound_collector>: Remove.
103 <m_unique_syms>: Now htab_up.
104 (decode_compound_collector::operator ()): Update.
105 (class symtab_collector) <~symtab_collector>: Remove.
106 <m_symtab_table>: Now htab_up.
107 (symtab_collector::operator ()): Update.
108
99032cfc
TT
1092020-09-17 Tom Tromey <tom@tromey.com>
110
111 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
112 (filename_seen_cache::clear): Update.
113 (~filename_seen_cache): Remove.
114 (filename_seen_cache::seen): Update.
115 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
116 htab_up.
117 <~filename_seen_cache>: Remove.
118 <traverse>: Update.
119
32580f6d
TT
1202020-09-17 Tom Tromey <tom@tromey.com>
121
122 * completer.c (completion_tracker::discard_completions)
123 (completion_tracker::~completion_tracker)
124 (completion_tracker::maybe_add_completion)
125 (completion_tracker::remove_completion)
126 (completion_tracker::recompute_lowest_common_denominator)
127 (completion_tracker::build_completion_result): Update.
128 * completer.h (class completion_tracker) <have_completions>:
129 Update.
130 <m_entries_hash>: Now htab_up.
131
c1fb9836
TT
1322020-09-17 Tom Tromey <tom@tromey.com>
133
134 * breakpoint.c (ambiguous_names_p): Use htab_up.
135
88f07206
TT
1362020-09-17 Tom Tromey <tom@tromey.com>
137
138 * auto-load.c (struct auto_load_pspace_info)
139 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
140 <loaded_script_files, loaded_script_texts>: Change type to
141 htab_up.
142 (~auto_load_pspace_info) Remove.
143 (init_loaded_scripts_info, maybe_add_script_file)
144 (maybe_add_script_text, auto_load_info_scripts): Update.
145
9519b2ee
TT
1462020-09-17 Tom Tromey <tromey@adacore.com>
147
148 * c-exp.y (name_obstack): Now static.
149
d2cd4113
CC
1502020-09-17 Chungyi Chi <demonic@csie.io>
151
152 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
153
b650a282
SM
1542020-09-16 Simon Marchi <simon.marchi@efficios.com>
155
156 * breakpoint.h (init_catchpoint): Change int parameter to bool.
157 (add_solib_catchpoint): Likewise.
158 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
159 to bool.
160 (add_solib_catchpoint): Change int parameter/variable to bool.
161 (catch_load_or_unload): Likewise.
162 (init_catchpoint): Likewise.
163 (create_fork_vfork_event_catchpoint): Likewise.
164 (catch_fork_command_1): Likewise.
165 (catch_exec_command_1): Likewise.
166
4d0bcfcf
SM
1672020-09-16 Simon Marchi <simon.marchi@efficios.com>
168
169 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
170 Change instance_flags to m_instance_flags.
171
fe830662
TT
1722020-09-16 Tom Tromey <tromey@adacore.com>
173
174 PR gdb/26598:
175 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
176
fe5ddfc3
JB
1772020-09-16 John Baldwin <jhb@FreeBSD.org>
178
179 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
180 PL_FLAG_EXEC.
181 (fbsd_nat_target::insert_exec_catchpoint)
182 (fbsd_nat_target::remove_exec_catchpoint): Always define.
183 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
184 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
185
e911c666
JB
1862020-09-16 John Baldwin <jhb@FreeBSD.org>
187
188 * configure.ac: Remove check for kinfo_getvmmap().
189 * configure, config.in: Regenerate.
190 * fbsd-nat.c (fbsd_read_mapping): Remove
191 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
192 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
193 kinfo_get_vmmap() are always present.
194
1f17d372
JB
1952020-09-16 John Baldwin <jhb@FreeBSD.org>
196
197 * fbsd-nat.c: Always include support for
198 TARGET_OBJECT_SIGNAL_INFO.
199
bcb1da7f
JB
2002020-09-16 John Baldwin <jhb@FreeBSD.org>
201
202 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
203 sysctl and remove procfs fallback.
204
5515f729
JB
2052020-09-16 John Baldwin <jhb@FreeBSD.org>
206
207 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
208 * fbsd-nat.h: Likewise.
209
da1df1db
TBA
2102020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
211
212 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
213 argument.
214
0e25e767
AB
2152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * ada-lang.c (ada_language_data): Delete.
218 (ada_language): Remove references to ada_language_data.
219 * c-lang.c (c_language_data): Delete.
220 (c_language): Remove references to c_language_data.
221 (cplus_language_data): Delete.
222 (cplus_language): Remove references to cplus_language_data.
223 (asm_language_data): Delete.
224 (asm_language): Remove references to asm_language_data.
225 (minimal_language_data): Delete.
226 (minimal_language): Remove references to minimal_language_data.
227 * d-lang.c (d_language_data): Delete.
228 (d_language): Remove references to d_language_data.
229 * f-lang.c (f_language_data): Delete.
230 (f_language): Remove references to f_language_data.
231 * go-lang.c (go_language_data): Delete.
232 (go_language): Remove references to go_language_data.
233 * language.c (unknown_language_data): Delete.
234 (unknown_language): Remove references to unknown_language_data.
235 (auto_language_data): Delete.
236 (auto_language): Remove references to auto_language_data.
237 * language.h (language_data): Delete struct.
238 (language_defn): No longer inherit from language_data.
239 * m2-lang.c (m2_language_data): Delete.
240 (m2_language): Remove references to m2_language_data.
241 * objc-lang.c (objc_language_data): Delete.
242 (objc_language): Remove references to objc_language_data.
243 * opencl-lang.c (opencl_language_data): Delete.
244 (opencl_language): Remove references to opencl_language_data.
245 * p-lang.c (pascal_language_data): Delete.
246 (pascal_language): Remove references to pascal_language_data.
247 * rust-lang.c (rust_language_data): Delete.
248 (rust_language): Remove references to rust_language_data.
249
b7c6e27d
AB
2502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * ada-lang.c (ada_language_data): Remove la_op_print_tab
253 initializer.
254 (ada_language::opcode_print_table): New member function.
255 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
256 (c_language::opcode_print_table): New member function.
257 (cplus_language_data): Remove la_op_print_tab initializer.
258 (cplus_language::opcode_print_table): New member function.
259 (asm_language_data): Remove la_op_print_tab initializer.
260 (asm_language::opcode_print_table): New member function.
261 (minimal_language_data): Remove la_op_print_tab initializer.
262 (minimal_language::opcode_print_table): New member function.
263 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
264 (d_language::opcode_print_table): New member function.
265 * expprint.c (print_subexp_standard): Update call to
266 opcode_print_table.
267 (op_string): Likewise.
268 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
269 (f_language::opcode_print_table): New member function.
270 * go-lang.c (go_language_data): Remove la_op_print_tab
271 initializer.
272 (go_language::opcode_print_table): New member function.
273 * language.c (unknown_language_data): Remove la_op_print_tab
274 initializer.
275 (unknown_language::opcode_print_table): New member function.
276 (auto_language_data): Remove la_op_print_tab initializer.
277 (auto_language::opcode_print_table): New member function.
278 * language.h (language_data): Remove la_op_print_tab field.
279 (language_defn::opcode_print_table): Declare new member function.
280 * m2-lang.c (m2_language_data): Remove la_op_print_tab
281 initializer.
282 (m2_language::opcode_print_table): New member function.
283 * objc-lang.c (objc_language_data): Remove la_op_print_tab
284 initializer.
285 (objc_language::opcode_print_table): New member function.
286 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
287 initializer.
288 (opencl_language::opcode_print_table): New member function.
289 * p-lang.c (pascal_language_data): Remove la_op_print_tab
290 initializer.
291 (pascal_language::opcode_print_table): New member function.
292 * rust-lang.c (rust_language_data): Remove la_op_print_tab
293 initializer.
294 (rust_language::opcode_print_table): New member function.
295
5aba6ebe
AB
2962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
299 (ada_language::expression_ops): New member function.
300 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
301 (c_language::expression_ops): New member function.
302 (cplus_language_data): Remove la_exp_desc initializer.
303 (cplus_language::expression_ops): New member function.
304 (asm_language_data): Remove la_exp_desc initializer.
305 (asm_language::expression_ops): New member function.
306 (minimal_language_data): Remove la_exp_desc initializer.
307 (minimal_language::expression_ops): New member function.
308 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
309 (d_language::expression_ops): New member function.
310 * eval.c (evaluate_subexp): Update call to expression_ops.
311 * expprint.c (print_subexp): Likewise.
312 (op_name): Likewise.
313 (dump_subexp_body): Likewise.
314 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
315 (f_language::expression_ops): New member function.
316 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
317 (go_language::expression_ops): New member function.
318 * language.c (language_defn::expression_ops): New function.
319 (unknown_language_data): Remove la_exp_desc initializer.
320 (auto_language_data): Likewise.
321 * language.h (language_data): Remove la_exp_desc field.
322 (language_defn::expression_ops): Declare new member function.
323 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
324 (m2_language::expression_ops): New member function.
325 * objc-lang.c (objc_language_data): Remove la_exp_desc
326 initializer.
327 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
328 initializer.
329 (opencl_language::expression_ops): New member function.
330 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
331 * parse.c (operator_length): Update call to expression_ops.
332 (exp_iterate): Likewise.
333 * rust-lang.c (rust_language_data): Remove la_exp_desc
334 initializer.
335 (ruse_language::expression_ops): New member function.
336
b63a3f3f
AB
3372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * ada-lang.c (ada_language_data): Remove la_varobj_ops
340 initializer.
341 (ada_language::varobj_ops): New member function.
342 * c-lang.c (c_language_data): Remove la_varobj_ops
343 initializer.
344 (cplus_language_data): Likewise.
345 (cplus_language::varobj_ops): New member function.
346 (asm_language_data): Remove la_varobj_ops initializer.
347 (minimal_language_data): Likewise.
348 * d-lang.c (d_language_data): Likewise.
349 * f-lang.c (f_language_data): Likewise.
350 * go-lang.c (go_language_data): Likewise.
351 * language.c (language_defn::varobj_ops): New function.
352 (unknown_language_data): Remove la_varobj_ops
353 initializer.
354 (auto_language_data): Likewise.
355 * language.h (language_data): Remove la_varobj_ops field.
356 (language_defn::varobj_ops): Declare new member function.
357 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
358 * objc-lang.c (objc_language_data): Likewise.
359 * opencl-lang.c (opencl_language_data): Likewise.
360 * p-lang.c (pascal_language_data): Likewise.
361 * rust-lang.c (rust_language_data): Likewise.
362 * varobj.c (varobj_create): Update call to varobj_ops.
363 * varobj.h (default_varobj_ops): Delete define.
364
1ac14a04
AB
3652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * ada-lang.c (ada_language_data): Remove la_macro_expansion
368 initializer.
369 * c-lang.c (c_language_data): Likewise.
370 (c_language::macro_expansion): New member function.
371 (cplus_language_data): Likewise.
372 (cplus_language::macro_expansion): New member function.
373 (asm_language_data): Likewise.
374 (asm_language::macro_expansion): New member function.
375 (minimal_language_data): Likewise.
376 (minimal_language::macro_expansion): New member function.
377 * d-lang.c (d_language_data): Remove la_macro_expansion
378 initializer.
379 * f-lang.c (f_language_data): Likewise.
380 * go-lang.c (go_language_data): Likewise.
381 * language.c (unknown_language_data): Likewise.
382 (auto_language_data): Likewise.
383 * language.h (language_data): Remove la_macro_expansion field.
384 (language_defn::macro_expansion): New member function.
385 * m2-lang.c (m2_language_data): Remove la_macro_expansion
386 initializer.
387 * objc-lang.c (objc_language_data): Likewise.
388 (objc_language::macro_expansion): New member function.
389 * opencl-lang.c (opencl_language_data): Likewise.
390 (opencl_language::macro_expansion): New member function.
391 * p-lang.c (pascal_language_data): Remove la_macro_expansion
392 initializer.
393 * rust-lang.c (rust_language_data): Likewise.
394 * symtab.c (default_collect_symbol_completion_matches_break_on):
395 Update call to macro_expansion.
396
3a3440fb
AB
3972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * ada-lang.c (ada_language_data): Remove la_array_ordering
400 initializer.
401 * c-lang.c (c_language_data): Likewise.
402 (cplus_language_data): Likewise.
403 (asm_language_data): Likewise.
404 (minimal_language_data): Likewise.
405 * d-lang.c (d_language_data): Likewise.
406 * dwarf2/read.c (read_array_order): Update for call to
407 array_ordering.
408 * f-lang.c (f_language_data): Remove la_array_ordering
409 initializer.
410 (f_language::array_ordering): New member function.
411 * go-lang.c (go_language_data): Remove la_array_ordering
412 initializer.
413 * language.c (unknown_language_data): Likewise.
414 (auto_language_data): Likewise.
415 * language.h (language_data): Delete la_array_ordering field.
416 (language_defn::array_ordering): New member function.
417 * m2-lang.c (m2_language_data): Remove la_array_ordering
418 initializer.
419 * objc-lang.c (objc_language_data): Likewise.
420 * opencl-lang.c (opencl_language_data): Likewise.
421 * p-lang.c (pascal_language_data): Likewise.
422 * rust-lang.c (rust_language_data): Likewise.
423
0d201fa4
AB
4242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
427 initializer.
428 * c-lang.c (c_language_data): Likewise.
429 (cplus_language_data): Likewise.
430 (asm_language_data): Likewise.
431 (minimal_language_data): Likewise.
432 * d-lang.c (d_language_data): Likewise.
433 * f-lang.c (f_language_data): Likewise.
434 (f_language::case_sensitivity): New member function.
435 * go-lang.c (go_language_data): Remove la_case_sensitivity
436 initializer.
437 * language.c (enum case_mode): Moved here from language.h.
438 (case_mode): Make static.
439 (show_case_command): Update for case_sensitivity being a method.
440 (set_case_command): Likewise.
441 (set_range_case): Likewise.
442 (unknown_language_data): Remove la_case_sensitivity initializer.
443 (auto_language_data): Likewise.
444 * language.h (case_mode): Delete, move enum declaration to
445 language.c.
446 (language_data): Delete la_case_sensitivity field.
447 (language_defn::case_sensitivity): New member function.
448 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
449 initializer.
450 * objc-lang.c (objc_language_data): Likewise.
451 * opencl-lang.c (opencl_language_data): Likewise.
452 * p-lang.c (pascal_language_data): Likewise.
453 * rust-lang.c (rust_language_data): Likewise.
454
efdf6a73
AB
4552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * ada-lang.c (ada_language_data): Remove la_range_check
458 initializer.
459 * c-lang.c (c_language_data): Likewise.
460 (cplus_language_data): Likewise.
461 (asm_language_data): Likewise.
462 (minimal_language_data): Likewise.
463 * d-lang.c (d_language_data): Likewise.
464 * f-lang.c (f_language_data): Likewise.
465 (f_language::range_checking_on_by_default): New member function.
466 * go-lang.c (go_language_data): Remove la_range_check initializer.
467 * language.c (enum range_mode): Moved here from language.h.
468 (range_mode): Made static.
469 (show_range_command): Update to use
470 range_checking_on_by_default.
471 (set_range_command): Likewise.
472 (set_range_case): Likewise.
473 (unknown_language_data): Remove la_range_check initializer.
474 (auto_language_data): Likewise.
475 * language.h (range_mode): Delete. Enum definition moved to
476 language.c.
477 (language_data): Remove la_range_check field.
478 (language_defn::range_checking_on_by_default): New member
479 function.
480 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
481 (m2_language::range_checking_on_by_default): New member function.
482 * objc-lang.c (objc_language_data): Remove la_range_check
483 initializer.
484 * opencl-lang.c (opencl_language_data): Likewise.
485 * p-lang.c (pascal_language_data): Likewise.
486 (pascal_language::range_checking_on_by_default): New member
487 function.
488 * rust-lang.c (rust_language_data): Remove la_range_check
489 initializer.
490 (rust_language::range_checking_on_by_default): New member
491 function.
492
bf92aec5
AB
4932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * dwarf2/read.c (dwarf2_physname): Remove special case for
496 language_go.
497 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
498 member function.
499
d3355e4d
AB
5002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * ada-lang.c (ada_language_data): Remove
503 la_store_sym_names_in_linkage_form_p initializer.
504 (ada_language::store_sym_names_in_linkage_form_p): New member
505 function.
506 * c-lang.c (c_language_data): Remove
507 la_store_sym_names_in_linkage_form_p initializer.
508 (c_language::store_sym_names_in_linkage_form_p): New member
509 function.
510 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
511 initializer.
512 (asm_language_data): Likewise.
513 (asm_language::store_sym_names_in_linkage_form_p): New member
514 function.
515 (minimal_language_data): Remove
516 la_store_sym_names_in_linkage_form_p initializer.
517 (minimal_language::store_sym_names_in_linkage_form_p): New member
518 function.
519 * d-lang.c (d_language_data): Remove
520 la_store_sym_names_in_linkage_form_p initializer.
521 * dwarf2/read.c (dwarf2_physname): Update call to
522 store_sym_names_in_linkage_form_p.
523 * f-lang.c (f_language_data): Remove
524 la_store_sym_names_in_linkage_form_p initializer.
525 * go-lang.c (go_language_data): Remove
526 la_store_sym_names_in_linkage_form_p initializer.
527 * language.c (unknown_language_data): Remove
528 la_store_sym_names_in_linkage_form_p initializer.
529 (unknown_language::store_sym_names_in_linkage_form_p): New member
530 function.
531 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
532 initializer.
533 (auto_language::store_sym_names_in_linkage_form_p): New member
534 function.
535 * language.h (language_data): Remove
536 la_store_sym_names_in_linkage_form_p member variable.
537 (language_defn::store_sym_names_in_linkage_form_p): New member
538 function.
539 * m2-lang.c (m2_language_data): Remove
540 la_store_sym_names_in_linkage_form_p initializer.
541 * objc-lang.c (objc_language_data): Likewise.
542 * opencl-lang.c (opencl_language_data): Likewise.
543 * p-lang.c (pascal_language_data): Likewise.
544 * rust-lang.c (rust_language_data): Likewise.
545
22c12a6c
AB
5462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * ada-lang.c (ada_language_data): Remove string_lower_bound
549 initializer.
550 * c-lang.c (c_language_data): Likewise.
551 (cplus_language_data): Likewise.
552 (asm_language_data): Likewise.
553 (minimal_language_data): Likewise.
554 * d-lang.c (d_language_data): Likewise.
555 * f-lang.c (f_language_data): Likewise.
556 * go-lang.c (go_language_data): Likewise.
557 * language.c (unknown_language_data): Likewise.
558 (auto_language_data): Likewise.
559 * language.h (language_data): Remove string_lower_bound field.
560 (language_defn::string_lower_bound): New member function.
561 * m2-lang.c (m2_language_data): Remove string_lower_bound
562 initializer.
563 (m2_language::string_lower_bound): New member function.
564 * objc-lang.c (objc_language_data): Remove string_lower_bound
565 initializer.
566 * opencl-lang.c (opencl_language_data): Likewise.
567 * p-lang.c (pascal_language_data): Likewise.
568 * rust-lang.c (rust_language_data): Likewise.
569 * valops.c (value_cstring): Update call to string_lower_bound.
570 (value_string): Likewise.
571 * value.c (allocate_repeated_value): Likewise.
572
1c236ddd
AB
5732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * valops.c (value_repeat): Fix incorrect argument name in comment.
576
67bd3fd5
AB
5772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * ada-lang.c (ada_language_data): Remove c_style_arrays
580 initializer.
581 (ada_language::c_style_arrays_p): New member fuction.
582 * c-lang.c (c_language_data): Remove c_style_arrays
583 initializer.
584 (cplus_language_data): Likewise.
585 (asm_language_data): Likewise.
586 (minimal_language_data): Likewise.
587 * d-lang.c (d_language_data): Likewise.
588 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
589 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
590 (f_language::c_style_arrays_p): New member function.
591 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
592 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
593 * language.c (unknown_language_data): Remove c_style_arrays
594 initializer.
595 (auto_language_data): Likewise.
596 * language.h (language_data): Remove c_style_arrays field.
597 (language_defn::c_style_arrays_p): New member function.
598 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
599 (m2_language::c_style_arrays_p): New member function.
600 * objc-lang.c (objc_language_data): Remove c_style_arrays
601 initializer.
602 * opencl-lang.c (opencl_language_data): Likewise.
603 * p-lang.c (pascal_language_data): Likewise.
604 * rust-lang.c (rust_language_data): Likewise.
605 * valarith.c (value_subscript): Update call to c_style_arrays_p,
606 and update local variable to a bool.
607 * valops.c (value_cast): Update call to c_style_arrays_p.
608 (value_array): Likewise.
609 * value.c (coerce_array): Likewise.
610
85967615
AB
6112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * ada-lang.c (ada_language_data): Remove la_language initializer.
614 * c-lang.c (c_language_data): Likewise.
615 (cplus_language_data): Likewise.
616 (asm_language_data): Likewise.
617 (minimal_language_data): Likewise.
618 * d-lang.c (d_language_data): Likewise.
619 * f-lang.c (f_language_data): Likewise.
620 * go-lang.c (go_language_data): Likewise.
621 * language.c (unknown_language_data): Likewise.
622 (auto_language_data): Likewise.
623 * language.h (language_data): Remove la_language field.
624 (language_defn::language_defn): Initialise la_language field.
625 (language_defn::la_language): New member variable.
626 * m2-lang.c (m2_language_data): Remove la_language field.
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
e171d6f1
AB
6322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * ada-lang.c (ada_extensions): Delete, moved into
635 ada_language::filename_extensions.
636 (ada_language_data): Remove la_filename_extensions initializer.
637 (ada_language::filename_extensions): New member function.
638 * c-lang.c (c_extensions): Delete, moved into
639 c_language::filename_extensions.
640 (c_language_data): Remove la_filename_extensions initializer.
641 (c_language::filename_extensions): New member function.
642 (cplus_extensions): Delete, moved into
643 cplus_language::filename_extensions.
644 (cplus_language_data): Remove la_filename_extensions initializer.
645 (cplus_language::filename_extensions): New member function.
646 (asm_extensions): Delete, moved into
647 asm_language::filename_extensions.
648 (asm_language_data): Remove la_filename_extensions initializer.
649 (asm_language::filename_extensions): New member function.
650 (minimal_language_data): Remove la_filename_extensions
651 initializer.
652 * d-lang.c (d_extensions): Delete, moved into
653 d_language::filename_extensions.
654 (d_language_data): Remove la_filename_extensions initializer.
655 (d_language::filename_extensions): New member function.
656 * f-lang.c (f_extensions): Delete, moved into
657 f_language::filename_extensions.
658 (f_language_data): Remove la_filename_extensions initializer.
659 (f_language::filename_extensions): New member function.
660 * go-lang.c (go_language_data): Remove la_filename_extensions
661 initializer.
662 * language.c (add_set_language_command): Update now that
663 filename_extensions returns a vector.
664 (unknown_language_data): Remove la_filename_extensions
665 initializer.
666 (auto_language_data): Likewise.
667 * language.h (language_data): Remove la_filename_extensions field.
668 (language_defn::filename_extensions): New member function.
669 * m2-lang.c (m2_language_data): Remove la_filename_extensions
670 initializer.
671 * objc-lang.c (objc_extensions): Delete, moved into
672 objc_language::filename_extensions.
673 (objc_language_data): Remove la_filename_extensions initializer.
674 (objc_language::filename_extensions): New member function.
675 * opencl-lang.c (opencl_language_data): Remove
676 la_filename_extensions initializer.
677 * p-lang.c (pascal_extensions): Delete, moved into
678 pascal_language::filename_extensions.
679 (pascal_language_data): Remove la_filename_extensions initializer.
680 (pascal_language::filename_extensions): New member function.
681 * rust-lang.c (rust_extensions): Delete, moved into
682 rust_language::filename_extensions.
683 (rust_language_data): Remove la_filename_extensions initializer.
684 (rust_language::filename_extensions): New member function.
685 * symfile.c (add_filename_language): Add new assert.
686
6f7664a9
AB
6872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * ada-lang.c (ada_language_data): Remove la_name and
690 la_natural_name initializers.
691 (ada_language::name): New member function.
692 (ada_language::natural_name): New member function.
693 * c-lang.c (c_language_data): Remove la_name and
694 la_natural_name initializers.
695 (c_language::name): New member function.
696 (c_language::natural_name): New member function.
697 (cplus_language_data): Remove la_name and
698 la_natural_name initializers.
699 (cplus_language::name): New member function.
700 (cplus_language::natural_name): New member function.
701 (asm_language_data): Remove la_name and
702 la_natural_name initializers.
703 (asm_language::name): New member function.
704 (asm_language::natural_name): New member function.
705 (minimal_language_data): Remove la_name and
706 la_natural_name initializers.
707 (minimal_language::name): New member function.
708 (minimal_language::natural_name): New member function.
709 * compile/compile.c (compile_to_object): Update call to
710 lanugage_defn::name.
711 * d-lang.c (d_language_data): Remove la_name and
712 la_natural_name initializers.
713 (d_language::name): New member function.
714 (d_language::natural_name): New member function.
715 * expprint.c (print_subexp_standard): Update call to
716 language_defn::name.
717 (dump_raw_expression): Likewise
718 (dump_prefix_expression): Likewise.
719 * f-lang.c (f_language_data): Remove la_name and
720 la_natural_name initializers.
721 (f_language::name): New member function.
722 (f_language::natural_name): New member function.
723 * go-lang.c (go_language_data): Remove la_name and
724 la_natural_name initializers.
725 (go_language::name): New member function.
726 (go_language::natural_name): New member function.
727 * language.c (show_language_command): Update call to
728 language_defn::name.
729 (set_language_command): Likewise.
730 (language_enum): Likewise.
731 (language_str): Likewise.
732 (add_set_language_command): Likewise, use
733 language_defn::natural_name in the doc string.
734 (unknown_language_data): Remove la_name and
735 la_natural_name initializers.
736 (unknown_language::name): New member function.
737 (unknown_language::natural_name): New member function.
738 (auto_language_data): Remove la_name and
739 la_natural_name initializers.
740 (auto_language::name): New member function.
741 (auto_language::natural_name): New member function.
742 (language_lookup_primitive_type_as_symbol): Update call to
743 language_defn::name.
744 * language.h (language_data): Remove la_name and la_natural_name
745 member variables.
746 (language_defn::name): New member function.
747 (language_defn::natural_name): New member function.
748 * m2-lang.c (m2_language_data): Remove la_name and
749 la_natural_name initializers.
750 (m2_language::name): New member function.
751 (m2_language::natural_name): New member function.
752 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
753 language_defn::natural_name.
754 * objc-lang.c (objc_language_data): Remove la_name and
755 la_natural_name initializers.
756 (objc_language::name): New member function.
757 (objc_language::natural_name): New member function.
758 * opencl-lang.c (opencl_language_data): Remove la_name and
759 la_natural_name initializers.
760 (opencl_language::name): New member function.
761 (opencl_language::natural_name): New member function.
762 * p-lang.c (pascal_language_data): Remove la_name and
763 la_natural_name initializers.
764 (pascal_language::name): New member function.
765 (pascal_language::natural_name): New member function.
766 * rust-lang.c (rust_language_data): Remove la_name and
767 la_natural_name initializers.
768 (rust_language::name): New member function.
769 (rust_language::natural_name): New member function.
770 * symtab.c (lookup_language_this): Update call to
771 language_defn::name.
772
5bae7c4e
AB
7732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * ada-lang.c (ada_language_data): Remove la_name_of_this
776 initializer.
777 * ax-gdb.c (gen_expr): Update call to name_of_this.
778 * c-exp.y (classify_name): Likewise.
779 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
780 (cplus_language_data): Likewise.
781 (cplus_language::name_of_this): New member function.
782 (asm_language_data): Remove la_name_of_this initializer.
783 (minimal_language_data): Likewise.
784 * d-lang.c (d_language_data): Likewise.
785 (d_language::name_of_this): New member function.
786 * expprint.c (print_subexp_standard): Update call to name_of_this.
787 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
788 * go-lang.c (go_language_data): Likewise.
789 * language.c (unknown_language_data): Likewise.
790 (unknown_language::name_of_this): New member function.
791 (auto_language_data): Remove la_name_of_this initializer.
792 (auto_language::name_of_this): New member function.
793 * language.h (language_data): Delete la_name_of_this member
794 variable.
795 (language_defn::name_of_this): New member function.
796 * m2-lang.c (m2_language_data): Remove la_name_of_this
797 initializer.
798 * objc-lang.c (objc_language_data): Likewise.
799 (objc_language::name_of_this): New member function.
800 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
801 initializer.
802 * p-lang.c (pascal_language_data): Likewise.
803 (pascal_language::name_of_this): New member function.
804 * rust-lang.c (rust_language_data): Remove la_name_of_this
805 initializer.
806 * symtab.c (lookup_language_this): Update call to name_of_this.
807 (lookup_symbol_aux): Likewise.
808 * valops.c (value_of_this): Likewise.
809
22e3f3ed
AB
8102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * ada-lang.c (ada_language_data): Remove
813 la_struct_too_deep_ellipsis initializer.
814 (ada_language::struct_too_deep_ellipsis): New member function.
815 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
816 initializer.
817 (cplus_language_data): Likewise.
818 (asm_language_data): Likewise.
819 (minimal_language_data): Likewise.
820 * cp-valprint.c (cp_print_value): Update call to
821 struct_too_deep_ellipsis.
822 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
823 initializer.
824 * f-lang.c (f_language_data): Likewise.
825 (f_language::struct_too_deep_ellipsis): New member function.
826 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
827 initializer.
828 * language.c (unknown_language_data): Likewise.
829 (auto_language_data): Likewise.
830 * language.h (language_data): Delete la_struct_too_deep_ellipsis
831 member variable.
832 (language_defn::struct_too_deep_ellipsis): New member function.
833 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
834 initializer.Q
835 * objc-lang.c (objc_language_data): Likewise.
836 * opencl-lang.c (opencl_language_data): Likewise.
837 * p-lang.c (pascal_language_data): Likewise.
838 * rust-lang.c (rust_language_data): Likewise.
839 * valprint.c (val_print_check_max_depth): Update call to
840 struct_too_deep_ellipsis.
841
ed29e1c7
FW
8422020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
843
844 * MAINTAINERS (Write After Approval): Add myself.
845
12d8f940
TT
8462020-09-15 Tom Tromey <tom@tromey.com>
847
848 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
849 Remove.
850
6b5a7bc7
TT
8512020-09-15 Tom Tromey <tom@tromey.com>
852
853 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
854 and TYPE_CODE_METHODPTR cases.
855 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
856 (c_value_print_inner): Update.
857 * valprint.c (generic_value_print_memberptr): New function, from
858 c_value_print_memberptr.
859 (generic_value_print): Use it. Call cplus_print_method_ptr.
860
47f0e2ff
TT
8612020-09-15 Tom Tromey <tromey@adacore.com>
862
863 * python/python-internal.h (PyInt_FromLong): Remove define.
864 * python/py-value.c (convert_value_from_python): Use
865 gdb_py_object_from_longest.
866 * python/py-type.c (typy_get_code): Use
867 gdb_py_object_from_longest.
868 * python/py-symtab.c (salpy_get_line): Use
869 gdb_py_object_from_longest.
870 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
871 gdb_py_object_from_longest.
872 * python/py-record.c (recpy_gap_reason_code): Use
873 gdb_py_object_from_longest.
874 * python/py-record-btrace.c (recpy_bt_insn_size)
875 (recpy_bt_func_level, btpy_list_count): Use
876 gdb_py_object_from_longest.
877 * python/py-infthread.c (gdbpy_create_ptid_object): Use
878 gdb_py_object_from_longest. Fix error handling.
879 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
880 gdb_py_object_from_longest.
881 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
882 gdb_py_object_from_longest.
883 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
884 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
885 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
886
512116ce
TT
8872020-09-15 Tom Tromey <tromey@adacore.com>
888
889 * python/python.c (gdbpy_parameter_value): Use
890 gdb_py_object_from_ulongest.
891
4ab1029c
TT
8922020-09-15 Tom Tromey <tromey@adacore.com>
893
894 * python/py-infevents.c (create_register_changed_event_object):
895 Use gdb_py_object_from_longest.
896 * python/py-exitedevent.c (create_exited_event_object): Use
897 gdb_py_object_from_longest.
898
062534d4
TT
8992020-09-15 Tom Tromey <tromey@adacore.com>
900
901 * python/python.c (gdbpy_parameter_value): Use
902 gdb_py_object_from_longest.
903 * python/py-type.c (convert_field, typy_range): Use
904 gdb_py_object_from_longest.
905 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
906 gdb_py_object_from_longest.
907 * python/py-lazy-string.c (stpy_get_length): Use
908 gdb_py_object_from_longest.
909 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
910 gdb_py_object_from_longest.
911 * python/py-infevents.c (create_memory_changed_event_object): Use
912 gdb_py_object_from_longest.
913 * python/py-inferior.c (infpy_get_num): Use
914 gdb_py_object_from_longest.
915 (infpy_get_pid): Likewise.
916
d1cab987
TT
9172020-09-15 Tom Tromey <tromey@adacore.com>
918
919 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
920 defines.
921 * python/py-value.c (valpy_long): Use
922 gdb_py_object_from_ulongest.
923 * python/py-symtab.c (salpy_get_pc): Use
924 gdb_py_object_from_ulongest.
925 (salpy_get_last): Likewise.
926 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
927 gdb_py_object_from_ulongest.
928 * python/py-lazy-string.c (stpy_get_address): Use
929 gdb_py_object_from_ulongest.
930 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
931 * python/py-arch.c (archpy_disassemble): Use
932 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
933 error handling.
934
4bde49dc
TT
9352020-09-15 Tom Tromey <tromey@adacore.com>
936
937 * python/python-internal.h (gdb_py_long_from_longest): Remove
938 defines.
939 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
940 * python/py-type.c (convert_field, typy_get_sizeof): Use
941 gdb_py_object_from_longest.
942 * python/py-record-btrace.c (btpy_list_index): Use
943 gdb_py_object_from_longest.
944
37431074
TT
9452020-09-15 Tom Tromey <tromey@adacore.com>
946
947 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
948 * python/py-record.c (recpy_element_number): Use
949 gdb_py_object_from_longest.
950 (recpy_gap_number): Likewise.
951
cbe25684
TT
9522020-09-15 Tom Tromey <tromey@adacore.com>
953
954 * top.c (ui::ui): Update.
955 (highest_ui_num): Remove.
956 * top.h (struct ui) <num>: Remove.
957
db92ac45
TT
9582020-09-15 Tom Tromey <tromey@adacore.com>
959
960 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
961 * ui-style.c (ansi_regex_text): Now array.
962 * rust-exp.y (number_regex_text): Now array.
963 * linespec.c (linespec_quote_characters): Now array.
964 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
965 Now arrays.
966
d2b31b67
SM
9672020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * debuginfod-support.c (debuginfod_client_deleter): New.
970 (debuginfod_client_up): New.
971 (debuginfod_init): Return debuginfod_client_up.
972 (debuginfod_source_query): Adjust.
973 (debuginfod_debuginfo_query): Adjust.
974
3246bd8e
SM
9752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
976
977 * debuginfod-support.c (debuginfod_source_query): Use
978 make_unique_xstrdup.
979
10242f36
SM
9802020-09-14 Simon Marchi <simon.marchi@efficios.com>
981
982 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
983 with `type::instance_flags`.
984
e1044e6a
MM
9852020-09-14 Michael Mullin <masmullin@gmail.com>
986
987 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
988 Remove baton parameter.
989
04902b09
PA
9902020-09-14 Pedro Alves <pedro@palves.net>
991
992 * Makefile.in (SELFTESTS_SRCS): Add
993 unittests/enum-flags-selftests.c.
994 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
995 btrace_function_flags instead of enum btrace_function_flag.
996 * compile/compile-c-types.c (convert_qualified): Use
997 enum_flags::raw.
998 * compile/compile-cplus-symbols.c (convert_one_symbol)
999 (convert_symbol_bmsym):
1000 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1001 (compile_cplus_convert_struct_or_union_methods)
1002 (compile_cplus_instance::convert_qualified_base):
1003 * go-exp.y (parse_string_or_char): Add cast to int.
1004 * unittests/enum-flags-selftests.c: New file.
1005 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1006 type to btrace_thread_flags from btrace_thread_flag.
1007 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1008 local's type to btrace_thread_flags from btrace_thread_flag. Add
1009 cast in DEBUG call.
1010
69896a2c
PA
10112020-09-14 Pedro Alves <pedro@palves.net>
1012
1013 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1014 * gdbtypes.c (address_space_name_to_int): Rename to ...
1015 (address_space_name_to_type_instance_flags): ... this.
1016 (address_space_int_to_name): Rename to ...
1017 (address_space_type_instance_flags_to_name): ... this.
1018 * gdbtypes.h (address_space_name_to_int): Rename to ...
1019 (address_space_name_to_type_instance_flags): ... this.
1020 (address_space_int_to_name): Rename to ...
1021 (address_space_type_instance_flags_to_name): ... this.
1022 * type-stack.c (type_stack::insert): Adjust to rename.
1023 * type-stack.h (type_stack::insert): Likewise.
1024
314ad88d
PA
10252020-09-14 Pedro Alves <pedro@palves.net>
1026 Andrew Burgess <andrew.burgess@embecosm.com>
1027
1028 * avr-tdep.c (avr_address_class_type_flags): Return
1029 type_instance_flags.
1030 (avr_address_class_type_flags_to_name): Take a
1031 type_instance_flags.
1032 (avr_address_class_name_to_type_flags): Return bool and take a
1033 type_instance_flags.
1034 * d-lang.c (build_d_types): Use type::set_instance_flags.
1035 * ft32-tdep.c (ft32_address_class_type_flags): Return
1036 type_instance_flags.
1037 (ft32_address_class_type_flags_to_name): Take a
1038 type_instance_flags.
1039 (ft32_address_class_name_to_type_flags): Return bool and take a
1040 type_instance_flags.
1041 (ft32_gdbarch_init): Use type::set_instance_flags.
1042 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1043 * gdbarch.h, gdbarch.c: Regenerate.
1044 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1045 (address_class_name_to_type_flags): Use type_instance_flags and
1046 bool.
1047 * gdbtypes.c (address_space_name_to_int)
1048 (address_space_int_to_name, make_qualified_type): Use
1049 type_instance_flags.
1050 (make_qualified_type): Use type_instance_flags and
1051 type::set_instance_flags.
1052 (make_type_with_address_space, make_cv_type, make_vector_type)
1053 (check_typedef): Use type_instance_flags.
1054 (recursive_dump_type): Cast type_instance_flags to unsigned for
1055 printing.
1056 (copy_type_recursive): Use type::set_instance_flags.
1057 (gdbtypes_post_init): Use type::set_instance_flags.
1058 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1059 <m_instance_flags>: ... this.
1060 <instance_flags, set_instance_flags>: New methods.
1061 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1062 (SET_TYPE_INSTANCE_FLAGS): New.
1063 (address_space_name_to_int, address_space_int_to_name)
1064 (make_type_with_address_space): Pass flags using
1065 type_instance_flags instead of int.
1066 * stabsread.c (cleanup_undefined_types_noname): Use
1067 type::set_instance_flags.
1068 * s390-tdep.c (s390_address_class_type_flags): Return
1069 type_instance_flags.
1070 (s390_address_class_type_flags_to_name): Take a
1071 type_instance_flags.
1072 (s390_address_class_name_to_type_flags): Return bool and take a
1073 type_instance_flags.
1074 * type-stack.c (type_stack::follow_types): Use
1075 type_instance_flags.
1076 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1077
27087b7f
TT
10782020-09-14 Tom Tromey <tromey@adacore.com>
1079
1080 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1081 * x86-tdep.c (x86_is_thunk_register_name)
1082 (x86_in_indirect_branch_thunk): Update.
1083 * sparc64-tdep.c (sparc64_fpu_register_names)
1084 (sparc64_cp0_register_names, sparc64_register_names)
1085 (sparc64_pseudo_register_names): Now const.
1086 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1087 cp0_registers_num>: Now const.
1088 * sparc-tdep.c (sparc_core_register_names)
1089 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1090 (sparc32_pseudo_register_names): Now const.
1091 (validate_tdesc_registers): Update.
1092 * rust-lang.c (rust_extensions): Now const.
1093 * p-lang.c (p_extensions): Now const.
1094 * objc-lang.c (objc_extensions): Now const.
1095 * nto-tdep.c (nto_thread_state_str): Now const.
1096 * moxie-tdep.c (moxie_register_names): Now const.
1097 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1098 Now const.
1099 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1100 (mips_linux_reg_names): Now const.
1101 (mips_gdbarch_init): Update.
1102 * microblaze-tdep.c (microblaze_register_names): Now const.
1103 * m68k-tdep.c (m68k_register_names): Now const.
1104 * m32r-tdep.c (m32r_register_names): Now const.
1105 * ia64-tdep.c (ia64_register_names): Now const.
1106 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1107 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1108 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1109 ymm_avx512_register_names, pkeys_register_names>: Now const.
1110 * i386-tdep.c (i386_register_names, i386_zmm_names)
1111 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1112 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1113 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1114 * f-lang.c (f_extensions): Now const.
1115 * d-lang.c (d_extensions): Now const.
1116 * csky-tdep.c (csky_register_names): Now const.
1117 * charset.c (default_charset_names, charset_enum): Now const.
1118 (_initialize_charset): Update.
1119 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1120 const.
1121 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1122 (bsd_uthread_solib_loaded): Update.
1123 (bsd_uthread_state): Now const.
1124 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1125 (amd64_ymm_avx512_names, amd64_ymmh_names)
1126 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1127 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1128 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1129 (amd64_dword_names): Now const.
1130 * agent.c (can_use_agent_enum): Now const.
1131 * ada-tasks.c (task_states, long_task_states): Now const.
1132 * ada-lang.c (known_runtime_file_name_patterns)
1133 (known_auxiliary_function_name_patterns, attribute_names)
1134 (standard_exc, ada_extensions): Now const.
1135
89806626
SM
11362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1137
1138 * bcache.h (struct bcache) <bcache>: Remove constructor.
1139 <m_hash_function, m_compare_function>: Remove.
1140 <~bcache>: Make virtual.
1141 <compare>: Remove static method, introduce virtual method.
1142 <default_hash>: Remove.
1143 <hash>: New virtual method.
1144 * bcache.c (bcache::expand_hash_table): Update.
1145 (bcache::insert): Update.
1146 (bcache::hash): New.
1147 (bcache::compare): Update comment and parameter names.
1148 * gdbtypes.c (types_deeply_equal): Update.
1149 * psymtab.h (struct psymbol_bcache): New struct.
1150 (class psymtab_storage) <psymtab_storage>: Make default.
1151 <psymbol_cache>: Change type to psymbol_bcache.
1152 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1153 (psymbol_hash): Change to...
1154 (psymbol_bcache::hash): ... this.
1155 (psymbol_compare): Change to...
1156 (psymbol_bcache::compare): ... this.
1157
677c92fe
SM
11582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1161 checking for initial lwp.
1162
3eba3a01
TT
11632020-09-14 Tom Tromey <tromey@adacore.com>
1164
1165 * m68k-tdep.c (m68k_extract_return_value): Use
1166 pointer_result_regnum.
1167 (m68k_store_return_value): Likewise.
1168 (m68k_reg_struct_return_p): Handle vectors and arrays.
1169 (m68k_return_value): Handle arrays.
1170 (m68k_svr4_return_value): Fix single-element aggregate handling.
1171 Handle long double. Adjust for embedded ABI.
1172 (m68k_svr4_init_abi): Set pointer_result_regnum.
1173 (m68k_embedded_init_abi): New function.
1174 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1175 (m68k_osabi_sniffer): New function.
1176 (_initialize_m68k_tdep): Register osabi sniffer.
1177 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1178 member.
1179
33f4dd48
SM
11802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1183 with gdb::unique_xmalloc_ptr<char>.
1184
8400a90d
SM
11852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * xml-support.h (xml_fetch_another): Change type to be a
1188 function_view.
1189 (xml_process_xincludes): Remove baton parameter.
1190 (xml_fetch_content_from_file): Change baton parameter to
1191 dirname.
1192 * xml-support.c (struct xinclude_parsing_data)
1193 <xinclude_parsing_data>: Remove baton parameter.
1194 <fetcher_baton>: Remove.
1195 (xinclude_start_include): Adjust.
1196 (xml_process_xincludes): Adjust.
1197 (xml_fetch_content_from_file): Replace baton parameter with
1198 dirname.
1199 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1200 (xml_init_syscalls_info): Use a lambda.
1201 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1202 (file_read_description_xml): Use a lambda.
1203 (fetch_available_features_from_target): Change baton parameter
1204 to target_ops.
1205 (target_read_description_xml): Use a lambda.
1206 (target_fetch_description_xml): Use a lambda.
1207 (string_read_description_xml): Update.
1208
04f5bab2
SM
12092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1210
1211 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1212 uses with type::endianity_is_not_default.
1213
db558e34
SM
12142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * gdbtypes.h (struct type) <endianity_is_not_default,
1217 set_endianity_is_not_default>: New methods.
1218 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1219 type::endianity_is_not_default, change all write call sites to
1220 use type::set_endianity_is_not_default.
1221
22c4c60c
SM
12222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1225 uses with type::is_fixed_instance.
1226
9cdd0d12
SM
12272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * gdbtypes.h (struct type) <is_fixed_instance,
1230 set_is_fixed_instance>: New methods.
1231 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1232 write call sites to use type::set_is_fixed_instance.
1233
0becda7a
SM
12342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1237 uses with type::is_gnu_ifunc.
1238
03cc7249
SM
12392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1242 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1243 use type::set_is_gnu_ifunc.
1244
3f46044c
SM
12452020-09-14 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1248 uses with type::stub_is_supported.
1249
9baccff6
SM
12502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1253 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1254 use type::set_stub_is_supported.
1255
bd63c870
SM
12562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1259 uses with type::is_vector.
1260
2062087b
SM
12612020-09-14 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1264 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1265 use type::set_is_vector.
1266
a409645d
SM
12672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1270 uses with type::has_varargs.
1271
1d6286ed
SM
12722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1273
1274 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1275 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1276 use type::set_has_varargs.
1277
7f9f399b
SM
12782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1281 uses with type::is_prototyped.
1282
27e69b7a
SM
12832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1284
1285 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1286 New methods.
1287 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1288 call sites to use type::set_is_prototyped.
1289
d2183968
SM
12902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1291
1292 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1293 uses with type::target_is_stub.
1294
8f53807e
SM
12952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1296
1297 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1298 New methods.
1299 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1300 sites to use type::set_target_is_stub.
1301
e46d3488
SM
13022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1303
1304 * gdbtypes.h (TYPE_STUB): Remove, replace all
1305 uses with type::is_stub.
1306
b4b73759
SM
13072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1308
1309 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1310 (TYPE_STUB): Use type::is_stub, change all write call sites to
1311 use type::set_is_stub.
1312
20ce4123
SM
13132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1314
1315 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1316 type::has_no_signedness.
1317
15152a54
SM
13182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1319
1320 * gdbtypes.h (struct type) <has_no_signedness,
1321 set_has_no_signedness>: New methods.
1322 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1323 call sites to use type::set_has_no_signedness.
1324
c6d940a9
SM
13252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1326
1327 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1328 type::is_unsigned.
1329
653223d3
SM
13302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1331
1332 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1333 methods.
1334 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1335 sites to use type::set_is_unsigned.
1336
55ea94da
FH
13372020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1338 Adam Renquinha <arenquinha@cimeq.qc.ca>
1339
1340 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1341 pointer and stack frame offset when unwinding.
1342
6791b117
PA
13432020-09-13 Pedro Alves <pedro@palves.net>
1344
1345 * NEWS: Document "-break-insert --qualified".
1346 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1347
77f2120b
PA
13482020-09-13 Pedro Alves <pedro@palves.net>
1349
1350 * linespec.c (classify_mtype, compare_msyms): Delete.
1351 (search_minsyms_for_name): Remove classification logic. Instead
1352 filter out trampoline symbols if we also found an external
1353 function of the same name.
1354
ed6a896c
JB
13552020-09-13 Joel Brobecker <brobecker@adacore.com>
1356
1357 * NEWS: Create a new section for the next release branch.
1358 Rename the section of the current branch, now that it has
1359 been cut.
1360
32aea73e
JB
13612020-09-13 Joel Brobecker <brobecker@adacore.com>
1362
1363 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1364 * version.in: Bump version to 11.0.50.DATE-git.
1365
8087c3fa
JB
13662020-09-12 Joel Brobecker <brobecker@adacore.com>
1367
1368 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1369
2a67f09d
FW
13702020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1371 Felix Willgerodt <Felix.Willgerodt@intel.com>
1372
1373 * gdbarch.sh: Added bfloat16 type.
1374 * gdbarch.c: Regenerated.
1375 * gdbarch.h: Regenerated.
1376 * gdbtypes.c (floatformats_bfloat16): New struct.
1377 (gdbtypes_post_init): Add builtin_bfloat16.
1378 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1379 (floatformats_bfloat16): New struct.
1380 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1381 (i386_ymm_type): Add field "v16_bfloat16"
1382 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1383 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1384 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1385 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1386 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1387 * features/i386/64bit-avx512.c: Regenerated.
1388 * features/i386/64bit-sse.xml: Add bfloat16 type.
1389 * features/i386/64bit-sse.c: Regenerated.
1390
1347d111
FW
13912020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1392
1393 * i386-tdep.c (i386_zmm_type): Fix field names.
1394 (i386_ymm_type): Fix field names.
1395
7a4e8e7d
TBA
13962020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1397
1398 * breakpoint.c: Fix typo in the help message of the
1399 "set breakpoint condition-evaluation" command.
1400
cf4ac4be
KR
14012020-09-10 Kamil Rytarowski <n54@gmx.com>
1402
1403 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1404 * (nbsd_nat_target::pid_to_exec_file)
1405 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1406 (nbsd_nat_target::post_startup_inferior)
1407 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1408 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1409 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1410 * (nbsd_thread_lister): Remove.
1411
f404573e
KR
14122020-09-10 Kamil Rytarowski <n54@gmx.com>
1413
1414 * fork-inferior.c (startup_inferior): Avoid double free.
1415
1ccb2c17
KR
14162020-09-10 Kamil Rytarowski <n54@gmx.com>
1417
1418 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1419 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1420
feedfcc7
KR
14212020-09-10 Kamil Rytarowski <n54@gmx.com>
1422
1423 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1424 * netbsd-nat.c: Include <sys/ptrace.h>.
1425 * (netbsd_nat::enable_proc_events): Add.
1426
c489f8c6
KR
14272020-09-10 Kamil Rytarowski <n54@gmx.com>
1428
1429 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1430 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1431 (netbsd_nat::for_each_thread): Add.
1432 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1433 "gdbsupport/common-debug.h".
1434 * (netbsd_nat::netbsd_thread_lister)
1435 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1436 (netbsd_nat::for_each_thread): Add.
1437
330662f6
KR
14382020-09-10 Kamil Rytarowski <n54@gmx.com>
1439
1440 * netbsd-nat.h: Include <unistd.h>.
1441 * (netbsd_nat::pid_to_exec_file): Add.
1442 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1443 * (netbsd_nat::pid_to_exec_file) Add.
1444
70b67307
KR
14452020-09-10 Kamil Rytarowski <n54@gmx.com>
1446
1447 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1448
99cf6da6
KR
14492020-09-10 Kamil Rytarowski <n54@gmx.com>
1450
1451 * netbsd-nat.h: New file.
1452 * netbsd-nat.c: Likewise.
1453
1b788fb6
TT
14542020-09-09 Tom Tromey <tromey@adacore.com>
1455
1456 * ada-lang.c (remove_extra_symbols): Do not increment when
1457 removing an element
1458
03b0a45f
TT
14592020-09-08 Tom Tromey <tromey@adacore.com>
1460
1461 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1462
3cae4447
TT
14632020-09-08 Tom Tromey <tromey@adacore.com>
1464
1465 PR win32/25302:
1466 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1467 (gdb_bfd_init_data): New function.
1468 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1469
7f08fd51
TBA
14702020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1471
1472 * infrun.c (fetch_inferior_event): Use
1473 `switch_to_target_no_thread` to switch the target.
1474
3e6ff933
TT
14752020-09-06 Tom Tromey <tom@tromey.com>
1476
1477 * symfile.h (dwarf2_free_objfile): Don't declare.
1478
e56798df
AKS
14792020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1480
1481 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1482 to match 16 byte real/complex type generated by Flang compiler.
1483
8f5c6526
TV
14842020-09-03 Tom de Vries <tdevries@suse.de>
1485
1486 PR breakpoint/26546
1487 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1488 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1489
c5065df0
SM
14902020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1491
1492 * maint.c (index_digits): New function.
1493 (struct maint_print_section_data): Remove.
1494 (print_bfd_section_info): Remove print_data parameter, add arg
1495 and index_digits.
1496 (print_objfile_section_info): Likewise.
1497 (print_bfd_section_info_maybe_relocated): Likewise (plus
1498 objfile).
1499 (maintenance_info_sections): Adjust calls.
1500
02c6f3f1
TT
15012020-09-02 Tom Tromey <tromey@adacore.com>
1502
1503 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1504 for null pointers.
1505 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1506
ef5e5b0b
SM
15072020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * bcache.h (struct bcache) <insert>: Change type of `added` to
1510 pointer to bool.
1511 * bcache.c (bcache::insert): Likewise.
1512 * gdbtypes.c (check_types_worklist): Adjust.
1513 * psymtab.c (add_psymbol_to_bcache): Adjust.
1514
973695d6
KB
15152020-08-31 Kevin Buettner <kevinb@redhat.com>
1516
1517 * corelow.c (unordered_set): Include.
1518 (class core_target): Add field 'm_core_unavailable_mappings'.
1519 (core_target::build_file_mappings): Print only one warning
1520 per inaccessible file. Add unavailable/broken mappings
1521 to m_core_unavailable_mappings.
1522 (core_target::xfer_partial): Call...
1523 (core_target::xfer_memory_via_mappings): New method.
1524
264fc0e2
SM
15252020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1528 type to bool.
1529
2de01bdb
SM
15302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1531
1532 * dwarf2/read.c (struct field_info): Fix indentation.
1533
f3bd50f1
SM
15342020-08-31 Simon Marchi <simon.marchi@efficios.com>
1535
1536 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1537 ordering in comment.
1538 * frame.c (frame_id_eq): Fix indentation.
1539
22b9b4b0
SL
15402020-08-31 Scott Linder <scott@scottlinder.com>
1541 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1544 inline frame ids in outer frame.
1545
84154d16
SM
15462020-08-31 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1549 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1550 (outer_frame_id): Use FID_STACK_OUTER instead of
1551 FID_STACK_INVALID.
1552 (frame_id_p): Don't check for outer_frame_id.
1553
8efaf6b3
SM
15542020-08-31 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1557 regnum/frame in value. Call allocate_value_lazy.
1558 * frame.c (frame_unwind_register_value): Use
1559 val_print_not_saved.
1560
fe1fe7ea
SM
15612020-08-31 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1564
f7c7700d
PA
15652020-08-29 Pedro Alves <pedro@palves.net>
1566
1567 * progspace.c (print_program_space): Use all_inferiors. Switch to
1568 the inferior before calling target_pid_to_str.
1569
e0814aae
TT
15702020-08-28 Tom Tromey <tom@tromey.com>
1571
1572 * xcoffread.c (xcoff_end_psymtab): Update comment.
1573 * dbxread.c (dbx_end_psymtab): Update comment.
1574
626d2320
TV
15752020-08-28 Tom de Vries <tdevries@suse.de>
1576
1577 PR breakpoint/26544
1578 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1579 event_location.
1580 (create_breakpoint): Same.
1581 (base_breakpoint_decode_location): Same.
1582 (bkpt_create_sals_from_location): Same.
1583 (bkpt_decode_location): Same.
1584 (bkpt_probe_create_sals_from_location): Same.
1585 (bkpt_probe_decode_location): Same.
1586 (tracepoint_create_sals_from_location): Same.
1587 (tracepoint_decode_location): Same.
1588 (tracepoint_probe_decode_location): Same.
1589 (strace_marker_create_sals_from_location): Same.
1590 (strace_marker_decode_location): Same.
1591 (create_sals_from_location_default): Same.
1592 (decode_location_default): Same.
1593 * breakpoint.h (struct breakpoint_ops): Same.
1594 (create_breakpoint): Same.
1595 * linespec.h (decode_line_full): Same.
1596 * linespec.c (decode_line_full): Same. Throw error if
1597 result.size () == 0.
1598
df631783
PA
15992020-08-27 Pedro Alves <pedro@palves.net>
1600
1601 PR gdb/26524
1602 * breakpoint.c (until_break_fsm) <location_breakpoint,
1603 caller_breakpoint>: Delete fields.
1604 <breakpoints>: New field.
1605 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1606 two individual breakpoints.
1607 (until_break_fsm::should_stop): Loop over breakpoints in the
1608 breakpoint vector.
1609 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1610 vector.
1611 (until_break_command): Handle location expanding into multiple
1612 sals.
1613
b2b38aa4
PA
16142020-08-27 Pedro Alves <pedro@palves.net>
1615
1616 PR gdb/26523
1617 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1618 bp_until breakpoints user-specified locations. Update intro
1619 comment.
1620
b886559f
SM
16212020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1622
1623 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1624 gdb_bfd_sections): New.
1625 * maint.c (print_bfd_section_info): Change param type to
1626 maint_print_section_data.
1627 (print_objfile_section_info): Likewise.
1628 (print_bfd_section_info_maybe_relocated): Likewise.
1629 (maintenance_info_sections): Use gdb_bfd_sections.
1630
4c6e63bf
SV
16312020-08-25 Shahab Vahedi <shahab@synopsys.com>
1632
1633 * MAINTAINERS: Add ARC target and maintainer.
1634
8d7f0635
AK
16352020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1636
1637 * configure.tgt: ARC support for GNU/Linux.
1638 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1639 * arc-linux-tdep.c: New file.
1640 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1641 * arc-tdep.c (arc_write_pc): Use it.
1642
fdd8731b
SV
16432020-08-25 Shahab Vahedi <shahab@synopsys.com>
1644
1645 * arc-tdep.c (arc_check_for_hardware_loop): New.
1646 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1647
22459524
SV
16482020-08-25 Shahab Vahedi <shahab@synopsys.com>
1649
1650 * arc-tdep.h: Include "gdbarch.h".
1651
995d3a19
SV
16522020-08-25 Shahab Vahedi <shahab@synopsys.com>
1653
1654 * arch/arc.h
1655 (arc_gdbarch_features): New class to stir the selection of target XML.
1656 (arc_create_target_description): Use FEATURES to choose XML target.
1657 (arc_lookup_target_description): Use arc_create_target_description
1658 to create _new_ target descriptions or return the already created
1659 ones if the FEATURES is the same.
1660 * arch/arc.c: Implementation of prototypes described above.
1661 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1662 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1663 * arc-tdep.c (*_feature_name): Make feature names consistent.
1664 (arc_register_feature): A new struct to hold information about
1665 registers of a particular target/feature.
1666 (arc_check_tdesc_feature): Check if XML provides registers in
1667 compliance with ARC_REGISTER_FEATURE structs.
1668 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1669 (determine_*_reg_feature_set): Which feature name to look for.
1670 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1671 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1672 to expected ISA enums to be used in arc_gdbarch_features structs.
1673 * features/Makefile (FEATURE_XMLFILES): Add new files.
1674 * gdb/features/arc/v1-aux.c: New file.
1675 * gdb/features/arc/v1-aux.xml: Likewise.
1676 * gdb/features/arc/v1-core.c: Likewise.
1677 * gdb/features/arc/v1-core.xml: Likewise.
1678 * gdb/features/arc/v2-aux.c: Likewise.
1679 * gdb/features/arc/v2-aux.xml: Likewise.
1680 * gdb/features/arc/v2-core.c: Likewise.
1681 * gdb/features/arc/v2-core.xml: Likewise.
1682 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1683
3945d2d7
GM
16842020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1685 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 PR m2/26372
fc5d6901 1688 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1689 an assert. Remove single element array indexing pattern as the
1690 MULTI_SUBSCRIPT support will handle this case too.
1691
2677f2d3
SM
16922020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * value.h (valprint_check_validity): Move declaration from
1695 here...
1696 * valprint.h (valprint_check_validity): ... to here.
1697
c426fddb
SM
16982020-08-24 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * debug.h: New file.
1701 * debug.c (debug_prefixed_vprintf): New function.
1702 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1703 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1704
1eb8556f
SM
17052020-08-24 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * infrun.h (infrun_debug_printf_1): New function declaration.
1708 (infrun_debug_printf): New macro.
1709 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1710 throughout.
1711 (infrun_debug_printf): New function.
1712 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1713 (handle_jit_event): Likewise.
1714
b8fff44e
MW
17152020-08-21 Mark Wielaard <mark@klomp.org>
1716
1717 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1718
d19c3068
SM
17192020-08-22 Simon Marchi <simon.marchi@efficios.com>
1720
1721 * frame.c (enum class frame_id_status): New.
1722 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1723 (fprintf_frame): Update.
1724 (compute_frame_id): Set frame id status to "computing" on entry.
1725 Set it back to "not_computed" on failure and to "computed" on
1726 success.
1727 (get_frame_id): Assert the frame id is not being computed.
1728 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1729 (create_new_frame): Likewise.
1730 (frame_cleanup_after_sniffer): Update assert.
1731
b70e516e
SM
17322020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * regcache.c (pid_ptid_regcache_map): New type.
1735 (target_ptid_regcache_map): Remove.
1736 (target_pid_ptid_regcache_map): New type.
1737 (regcaches): Change type to target_pid_ptid_regcache_map.
1738 (get_thread_arch_aspace_regcache): Update.
1739 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1740 case.
1741 (regcaches_size): Update.
1742 (regcache_count): Update.
1743 (registers_changed_ptid_target_pid_test): New.
1744 (_initialize_regcache): Register new test.
1745
cdd9148a
SM
17462020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1747
1748 * regcache.c (regcache_count): New.
1749 (struct regcache_test_data): New.
1750 (regcache_test_data_up): New.
1751 (populate_regcaches_for_test): New.
1752 (regcaches_test): Remove.
1753 (get_thread_arch_aspace_regcache_test): New.
1754 (registers_changed_ptid_all_test): New.
1755 (registers_changed_ptid_target_test): New.
1756 (registers_changed_ptid_target_ptid_test): New.
1757 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1758 (_initialize_regcache): Register new tests.
1759
dd125343
SM
17602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1763 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1764 gdbarch and aspace parameter. Use current inferior's aspace.
1765 Validate regcache's arch value.
1766 (regcaches_test): Update.
1767
3ee93972
SM
17682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * regcache.c (regcaches_test): Call registers_changed.
1771
33bf4c5c
TBA
17722020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1773
1774 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1775
c2fd7fae
AKS
17762020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1777
1778 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1779 to find the end of prologue for flang compiled binaries.
1780 * arm-tdep.c (arm_skip_prologue): Likewise.
1781 * i386-tdep.c (i386_skip_prologue): Likewise.
1782 * producer.c (producer_is_llvm): New function.
1783 (producer_parsing_tests): Added new tests for clang/flang.
1784 * producer.h (producer_is_llvm): New declaration.
1785
9327494e
SM
17862020-08-18 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * linux-nat.c (linux_nat_debug_printf): New function.
1789 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1790
d138725a
AM
17912020-08-18 Aaron Merey <amerey@redhat.com>
1792
1793 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1794 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1795 (CLIBS): Add DEBUGINFOD_LIBS.
1796
f9b11e6b
ST
17972020-08-17 Sergei Trofimovich <siarheit@google.com>
1798
1799 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1800 'gdbarch_num_regs'.
1801
3ae7ab99
TT
18022020-08-17 Tom Tromey <tromey@adacore.com>
1803
1804 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1805 ada_get_decoded_value returns NULL.
1806
b017825f
TT
18072020-08-17 Tom Tromey <tromey@adacore.com>
1808
1809 * python/py-inferior.c (infpy_search_memory): Use
1810 gdb_py_object_from_ulongest.
1811 * python/py-infevents.c (create_inferior_call_event_object)
1812 (create_memory_changed_event_object): Use
1813 gdb_py_object_from_ulongest.
1814 * python/py-linetable.c (ltpy_entry_get_pc): Use
1815 gdb_py_object_from_ulongest.
1816
7635cf79
SM
18172020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * loc.c (class symbol_needs_eval_context): Fix indentation.
1820
f54be24b
SM
18212020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1824 bool.
1825
53d5a2a5
TV
18262020-08-17 Tom de Vries <tdevries@suse.de>
1827
1828 PR gdb/26393
1829 * gdbtypes.c (dump_dynamic_prop): New function.
1830 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1831
547ce8f0
TV
18322020-08-15 Tom de Vries <tdevries@suse.de>
1833
1834 PR backtrace/26390
1835 * stack.c (print_frame_args): Temporarily set the selected
1836 frame to FRAME while printing the frame's arguments.
1837
6ea815e7
PFC
18382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1839
1840 PR breakpoints/26385
1841 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1842 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1843
6e562fa3
PFC
18442020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1845
1846 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1847 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1848 and >= to check return value instead of == -1 and != -1.
1849
d369b608
SM
18502020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * utils.h (class gdb_argv) <as_array_view>: New method.
1853 * utils.c (gdb_argv_as_array_view_test): New.
1854 (_initialize_utils): Register selftest.
1855 * maint.c (maintenance_selftest): Use the new method.
1856
b31488a3
KR
18572020-08-13 Kamil Rytarowski <n54@gmx.com>
1858
1859 * target.h (supports_dumpcore, dumpcore): New
1860 function declarations.
1861 * target.c (supports_dumpcore, dumpcore): New
1862 functions.
1863 * target-delegates.c: Rebuild.
1864 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1865 and target_dumpcore ().
1866
002a3166
AM
18672020-08-13 Aaron Merey <amerey@redhat.com>
1868
1869 * debuginfod-support.c: Replace global variables with user_data.
1870
ece5bc8a
SM
18712020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1872
1873 * maint.c (maintenance_selftest): Split args and pass array_view
1874 to run_tests.
1875
6d8a0a5e
LM
18762020-08-12 Luis Machado <luis.machado@linaro.org>
1877
1878 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1879 type's length.
1880 Use %s and pulongest to print the length.
1881
7cf663a9
PA
18822020-08-12 Pedro Alves <palves@redhat.com>
1883
1884 * NEWS: Move "Multi-target debugging support" item to the
1885 "Changes since GDB 9" section.
1886
27c7b875
PA
18872020-08-12 Pedro Alves <palves@redhat.com>
1888
1889 PR gdb/26336
1890 * progspace.c (program_space::remove_objfile): Invalidate the
1891 frame cache.
1892
1796a2a1
TV
18932020-08-11 Tom de Vries <tdevries@suse.de>
1894
1895 * MAINTAINERS: Mark ms1 as deleted.
1896
f8e3fe0d
LM
18972020-08-10 Luis Machado <luis.machado@linaro.org>
1898
1899 PR gdb/26310
1900
1901 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1902 act accordingly.
1903 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1904 movz/str/stur/stp skipping behavior.
1905
cc308722
LM
19062020-08-10 Luis Machado <luis.machado@linaro.org>
1907
1908 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1909 struct user_sve_header instead of struct sve_context.
1910
041d9819
SM
19112020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * read.h (dwarf2_fetch_die_loc_sect_off,
1914 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1915 `void *` parameter with function_view.
1916 * read.c (dwarf2_fetch_die_loc_sect_off,
1917 dwarf2_fetch_die_loc_cu_off): Likewise.
1918 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1919 (per_cu_dwarf_call): Adjust.
1920 (get_frame_address_in_block_wrapper): Remove.
1921 (indirect_synthetic_pointer): Adjust.
1922 (get_ax_pc): Remove.
1923 (dwarf2_compile_expr_to_ax): Adjust.
1924
38f8aa06
TV
19252020-08-08 Tom de Vries <tdevries@suse.de>
1926
1927 PR build/26344
1928 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1929 constructor.
1930 * regcache.c (get_thread_arch_aspace_regcache): Same.
1931
a52b3ae2
TT
19322020-08-07 Tom Tromey <tromey@adacore.com>
1933
1934 * ravenscar-thread.c
1935 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1936 New method.
1937 (ravenscar_thread_target::wait): Check
1938 runtime_initialized.
1939 (ravenscar_thread_target::prepare_to_store)
1940 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1941 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1942 (ravenscar_thread_target::stopped_by_watchpoint)
1943 (ravenscar_thread_target::stopped_data_address)
1944 (ravenscar_thread_target::core_of_thread): Use
1945 scoped_restore_current_thread and
1946 set_base_thread_from_ravenscar_task.
1947
0e29517d
TT
19482020-08-07 Tom Tromey <tromey@adacore.com>
1949
1950 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1951
592f9bd7
TT
19522020-08-07 Tom Tromey <tromey@adacore.com>
1953
1954 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1955 update_inferior_ptid before update_thread_list.
1956 (temporarily_change_regcache_ptid): New class.
1957 (ravenscar_thread_target::fetch_registers)
1958 (ravenscar_thread_target::store_registers)
1959 (ravenscar_thread_target::prepare_to_store): Use base thread when
1960 forwarding operation.
1961
39e2018a
TT
19622020-08-07 Tom Tromey <tromey@adacore.com>
1963
1964 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1965 "is_pid" case.
1966
2080266b
TT
19672020-08-07 Tom Tromey <tromey@adacore.com>
1968
1969 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1970 New methods.
1971 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1972 first.
1973 (ravenscar_thread_target::add_thread): Rename from
1974 ravenscar_add_thread.
1975 (ravenscar_thread_target::update_thread_list): Use a lambda.
1976 (ravenscar_thread_target::xfer_partial): New method.
1977
78c02f21
TT
19782020-08-07 Tom Tromey <tromey@adacore.com>
1979
1980 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1981 gdb::function_view.
1982 (iterate_over_live_ada_tasks): Change type of argument.
1983 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1984 of argument.
1985
d5d833af
TT
19862020-08-07 Tom Tromey <tromey@adacore.com>
1987
1988 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1989 Remove.
1990 (ravenscar_thread_target::extra_thread_info): Remove.
1991 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1992 defer to target beneath for non-Ravenscar threads.
1993
a8ac85bb
TT
19942020-08-07 Tom Tromey <tromey@adacore.com>
1995
1996 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1997 get_base_thread_from_ravenscar_task>: Now methods.
1998 <m_cpu_map>: New member.
1999 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2000 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2001 (ravenscar_thread_target::task_is_currently_active): Update.
2002 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2003 Now a method.
2004 (ravenscar_thread_target::add_active_thread): Put initial thread
2005 into the m_cpu_map.
2006
550ab58d
TT
20072020-08-07 Tom Tromey <tromey@adacore.com>
2008
2009 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2010 event_ptid.
2011
e9546579
TT
20122020-08-07 Tom Tromey <tromey@adacore.com>
2013
2014 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2015 runtime_initialized.
2016
3d4470e5
TT
20172020-08-07 Tom Tromey <tromey@adacore.com>
2018
2019 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2020 add_active_thread.
2021 (ravenscar_thread_target::add_active_thread): Now public.
2022 (ravenscar_inferior_created): Call add_active_thread after pushing
2023 the target.
2024
888bdb2b
SM
20252020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * regcache.c (ptid_regcache_map): New type.
2028 (target_ptid_regcache_map): New type.
2029 (regcaches): Change type to target_ptid_regcache_map.
2030 (get_thread_arch_aspace_regcache): Update to regcaches' new
2031 type.
2032 (regcache_thread_ptid_changed): Likewise.
2033 (registers_changed_ptid): Likewise.
2034 (regcaches_size): Likewise.
2035 (regcaches_test): Update.
2036 (regcache_thread_ptid_changed): Update.
2037 * regcache.h (regcache_up): New type.
2038 * gdbsupport/ptid.h (hash_ptid): New struct.
2039
b161a60d
SM
20402020-08-07 Simon Marchi <simon.marchi@efficios.com>
2041
2042 * observable.h (thread_ptid_changed): Add parameter
2043 `process_stratum_target *`.
2044 * infrun.c (infrun_thread_ptid_changed): Add parameter
2045 `process_stratum_target *` and use it.
2046 (selftests): New namespace.
2047 (infrun_thread_ptid_changed): New function.
2048 (_initialize_infrun): Register selftest.
2049 * regcache.c (regcache_thread_ptid_changed): Add parameter
2050 `process_stratum_target *` and use it.
2051 (regcache_thread_ptid_changed): New function.
2052 (_initialize_regcache): Register selftest.
2053 * thread.c (thread_change_ptid): Pass target to
2054 thread_ptid_changed observable.
2055
d2854d8d
CT
20562020-08-06 Caroline Tice <cmtice@google.com>
2057
fe4c3d43
SM
2058 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2059 (struct dwp_sections): Update field comments. Add loclists and
2060 rnglists fields.
2061 (struct virtual_v2_dwo_sections): Rename struct to
2062 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2063 size & offset fields for loclists and rnglists.
2064 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2065 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2066 skipping dummy type units.
2067 (create_dwp_hash_table): Update the large comment above the function to
2068 discuss Version 5 DWP files as well, with references. Update all the
2069 version checks in the function to check for version 5 as well. Add new
2070 section at the end to create dwp hash table for version 5.
2071 (create_dwp_v2_section): Rename function to
2072 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2073 Add V5 to error message text.
2074 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2075 into calls to create_dwp_v2_or_v5_section.
2076 (create_dwo_unit_in_dwp_v5): New function.
2077 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2078 check for version2; add else clause to handle version 5.
2079 (open_and_init_dwo_file): Add code to check dwarf version & only call
2080 create_debug_types_hash_table (with sections.types) if version is not 5;
2081 else call create_debug_type_hash_table, with sections.info.
2082 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2083 version 5.
2084 (dwarf2_locate_v5_dwp_sections): New function.
2085 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2086 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2087
159ed7d9
SM
20882020-08-06 Simon Marchi <simon.marchi@efficios.com>
2089
2090 * regcache.h (class regcache): Remove friend
2091 registers_changed_ptid.
2092 <regcache_thread_ptid_changed>: Remove.
2093 <regcaches>: Remove.
2094 * regcache.c (regcache::regcaches): Rename to...
2095 (regcaches): ... this. Make static.
2096 (get_thread_arch_aspace_regcache): Update.
2097 (regcache::regcache_thread_ptid_changed): Rename to...
2098 (regcache_thread_ptid_changed): ... this. Update.
2099 (class regcache_access): Remove.
2100 (regcaches_test): Update.
2101 (_initialize_regcache): Update.
2102 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2103 <forward_list>.
2104
174981ae
SM
21052020-08-06 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * regcache.h (class regcache) <current_regcache>: Rename to...
2108 <regcaches>: ... this. Move doc here.
2109 * regcache.c (regcache::current_regcache) Rename to...
2110 (regcache::regcaches): ... this. Move doc to header.
2111 (get_thread_arch_aspace_regcache): Update.
2112 (regcache::regcache_thread_ptid_changed): Update.
2113 (registers_changed_ptid): Update.
2114 (class regcache_access) <current_regcache_size>: Rename to...
2115 <regcaches_size>: ... this.
2116 (current_regcache_test): Rename to...
2117 (regcaches_test): ... this.
2118 (_initialize_regcache): Update.
2119
ed908db6
VC
21202020-08-06 Victor Collod <vcollod@nvidia.com>
2121
2122 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2123
b5582ab7
KB
21242020-08-05 Kevin Buettner <kevinb@redhat.com>
2125
2126 * corelow.c (core_target::build_file_mappings): Don't output
2127 null pathname in warning.
2128
ea946b86
SM
21292020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2132 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2133 gdb.dwarf2/dw2-single-line-discriminators.exp,
2134 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2135
57d02173
TT
21362020-08-05 Tom Tromey <tromey@adacore.com>
2137
2138 PR rust/26197:
2139 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2140 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2141 Fix off-by-one and type size errors in ordinary case.
2142
5555c86d
TV
21432020-08-05 Tom de Vries <tdevries@suse.de>
2144
2145 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2146 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2147
97916bfe
SM
21482020-08-04 Simon Marchi <simon.marchi@efficios.com>
2149
2150 * frame.h (frame_id_p): Return bool.
2151 (frame_id_artificial_p): Return bool.
2152 (frame_id_eq): Return bool.
2153 (has_stack_frames): Return bool.
2154 (get_selected_frame): Fix typo in comment.
2155 (get_frame_pc_if_available): Return bool.
2156 (get_frame_address_in_block_if_available): Return bool.
2157 (get_frame_func_if_available): Return bool.
2158 (read_frame_register_unsigned): Return bool.
2159 (get_frame_register_bytes): Return bool.
2160 (safe_frame_unwind_memory): Return bool.
2161 (deprecated_frame_register_read): Return bool.
2162 (frame_unwinder_is): Return bool.
2163 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2164 bool.
2165 <this_id::p>: Likewise.
2166 <prev_p>: Likewise.
2167 (frame_stash_add): Return bool.
2168 (get_frame_id): Use bool.
2169 (frame_id_build_special) Use bool.
2170 (frame_id_build_unavailable_stack): Use bool.
2171 (frame_id_build): Use bool.
2172 (frame_id_p): Return bool, use true/false instead of 1/0.
2173 (frame_id_artificial_p): Likewise.
2174 (frame_id_eq): Likewise.
2175 (frame_id_inner): Likewise.
2176 (get_frame_func_if_available): Likewise.
2177 (read_frame_register_unsigned): Likewise.
2178 (deprecated_frame_register_read): Likewise.
2179 (get_frame_register_bytes): Likewise.
2180 (has_stack_frames): Likewise.
2181 (inside_main_func): Likewise.
2182 (inside_entry_func): Likewise.
2183 (get_frame_pc_if_available): Likewise.
2184 (get_frame_address_in_block_if_available): Likewise.
2185 (frame_unwinder_is): Likewise.
2186 (safe_frame_unwind_memory): Likewise.
2187 (frame_unwind_arch): Likewise.
2188
fedfee88
SM
21892020-08-04 Simon Marchi <simon.marchi@efficios.com>
2190
2191 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2192 type to cached_copy_status.
2193 (fprintf_frame): Adjust.
2194 (get_frame_func_if_available): Adjust.
2195 (frame_cleanup_after_sniffer): Adjust.
2196
6cfa9b59
MW
21972020-08-04 Mark Wielaard <mark@klomp.org>
2198
2199 * MAINTAINERS (Write After Approval): Update email address.
2200
66d6346b
SM
22012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2204 dynamic_prop::const_val.
2205
8a6d5e35
SM
22062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2207
2208 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2209 dynamic_prop::kind.
2210
51d6067d
SM
22112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2212
2213 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2214
b26e2ae7
JM
22152020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2216
2217 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2218
39791af2
JM
22192020-08-04 Weimin Pan <weimin.pan@oracle.com>
2220 Jose E. Marchesi <jose.marchesi@oracle.com>
2221
2222 * configure.tgt: Add entry for bpf-*-*.
2223 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2224 (ALLDEPFILES): Add bpf-tdep.c.
2225 * bpf-tdep.c: New file.
2226 * MAINTAINERS: Add bpf target and maintainer.
2227 * NEWS: Mention the support for the new target.
2228
521894aa
TV
22292020-08-04 Tom de Vries <tdevries@suse.de>
2230
2231 PR symtab/23270
2232 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2233 Error.
2234
5d6356e9
JB
22352020-08-03 John Baldwin <jhb@FreeBSD.org>
2236
2237 * syscalls/freebsd.xml: Regenerate.
2238
0cf82b81
JB
22392020-08-03 John Baldwin <jhb@FreeBSD.org>
2240
2241 * syscalls/update-freebsd.sh: Fix usage and year range.
2242
8f34b746
TV
22432020-08-03 Tom de Vries <tdevries@suse.de>
2244
2245 PR symtab/26333
2246 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2247 DW_LNE_lo_user/DW_LNE_hi_user range.
2248
5e500d33
SM
22492020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 PR ada/26318
2252 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2253 kind.
2254
78319c15
TBA
22552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2256
2257 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2258
4c55e970
TBA
22592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260
2261 * breakpoint.c (set_breakpoint_condition): Update the condition
2262 expressions after checking that the input condition string parses
2263 successfully and does not contain junk at the end.
2264
1e620590
TBA
22652020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2266
2267 * breakpoint.c (set_breakpoint_condition): Update the
2268 condition string after parsing the new condition successfully.
2269
c8693053
RO
22702020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2271
2272 * proc-api.c (_STRUCTURED_PROC): Don't define.
2273 * proc-events.c: Likewise.
2274 * proc-flags.c: Likewise.
2275 * proc-why.c: Likewise.
2276 * procfs.c: Likewise.
2277
2278 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2279 * configure, config.in: Regenerate.
2280
5a99adb8
TV
22812020-07-30 Tom de Vries <tdevries@suse.de>
2282
2283 PR build/26320
2284 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2285 m_red/m_green/m_blue in a union.
2286
8ba83e91
TV
22872020-07-29 Tom de Vries <tdevries@suse.de>
2288
2289 PR tdep/26280
2290 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2291
f75a0693
AB
22922020-07-28 Tom Tromey <tromey@adacore.com>
2293
2294 PR symtab/26270:
2295 * symtab.h (find_pc_partial_function_sym): Declare.
2296 * cli/cli-cmds.c (disassemble_command): Use
2297 find_pc_partial_function_sym. Check asm_demangle.
2298 * blockframe.c (cache_pc_function_sym): New global.
2299 (cache_pc_function_name): Remove.
2300 (clear_pc_function_cache): Update.
2301 (find_pc_partial_function_sym): New function, from
2302 find_pc_partial_function.
2303 (find_pc_partial_function): Rewrite using
2304 find_pc_partial_function_sym.
2305
16f3242c
TT
23062020-07-28 Tom Tromey <tromey@adacore.com>
2307
2308 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2309 help. Add usage.
2310
4888741a
TT
23112020-07-28 Tom Tromey <tromey@adacore.com>
2312
2313 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2314 <DW_OP_GNU_variable_value>: Cast to address type.
2315
4d46f402
KR
23162020-07-28 Kamil Rytarowski <n54@gmx.com>
2317
2318 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2319 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2320 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2321 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2322 (nbsd_get_siginfo_type): New.
2323 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2324 (_initialize_nbsd_tdep): New.
2325
d70f978b
L
23262020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2327
2328 PR binutils/26301
2329 * configure: Regenerated.
2330
377170fa
L
23312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2332
2333 PR binutils/26301
2334 * configure: Regenerated.
2335
43d5901d
AB
23362020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * python/py-frame.c: Remove 'user-regs.h' include.
2339 (frapy_read_register): Rewrite to make use of
2340 gdbpy_parse_register_id.
2341 * python/py-registers.c (gdbpy_parse_register_id): New function,
2342 moved here from python/py-unwind.c. Updated the return type, and
2343 also accepts register descriptor objects.
2344 * python/py-unwind.c: Remove 'user-regs.h' include.
2345 (pyuw_parse_register_id): Moved to python/py-registers.c.
2346 (unwind_infopy_add_saved_register): Update to use
2347 gdbpy_parse_register_id.
2348 (pending_framepy_read_register): Likewise.
2349 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2350
14fa8fb3
AB
23512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * python/py-registers.c: Add 'user-regs.h' include.
2354 (register_descriptor_iter_find): New function.
2355 (register_descriptor_iterator_object_methods): New static global
2356 methods array.
2357 (register_descriptor_iterator_object_type): Add pointer to methods
2358 array.
2359
ddce1758
JB
23602020-07-27 John Baldwin <jhb@FreeBSD.org>
2361
2362 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2363 for all architectures on FreeBSD 11.3 and later.
2364
a4089f52
TT
23652020-07-27 Tom Tromey <tromey@adacore.com>
2366
2367 * gcore.h (load_corefile): Don't declare.
2368
95420d30
TV
23692020-07-27 Tom de Vries <tdevries@suse.de>
2370
2371 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2372 * config.in: Regenerate.
2373 * configure: Regenerate.
2374
05a6b8c2
EZ
23752020-07-26 Eli Zaretskii <eliz@gnu.org>
2376
2377 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2378 ws2tcpip.h. When checking whether socklen_t type is defined, use
2379 ws2tcpip.h if it is available and sys/socket.h isn't.
2380 * configure: Regenerate.
2381 * config.in: Regenerate.
2382
e79eb02f
AB
23832020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 PR fortran/23051
2386 PR fortran/26139
2387 * valops.c (value_ind): Pass address to
2388 readjust_indirect_value_type.
2389 * value.c (readjust_indirect_value_type): Make parameter
2390 non-const, and add extra address parameter. Resolve original type
2391 before using it.
2392 * value.h (readjust_indirect_value_type): Update function
2393 signature and comment.
2394
876518dd
TV
23952020-07-25 Tom de Vries <tdevries@suse.de>
2396
2397 PR symtab/26243
2398 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2399 entries.
2400
f6720b1c
AM
24012020-07-24 Aaron Merey <amerey@redhat.com>
2402
2403 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2404 * configure: Rebuild.
2405
513487e1
KB
24062020-07-23 Kevin Buettner <kevinb@redhat.com>
2407
2408 PR corefiles/26294
2409 * corelow.c (_initialize_corelow): Add period to help text
2410 for "maintenance print core-file-backed-mappings".
2411
e7bc9db8
PA
24122020-07-23 Pedro Alves <pedro@palves.net>
2413
2414 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2415 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2416 meanwhile.
2417 * frame.c (frame_cache_generation, get_frame_cache_generation):
2418 New.
2419 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2420 (get_prev_frame_if_no_cycle): On exception, don't touch
2421 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2422 * frame.h (get_frame_cache_generation): Declare.
2423
90fcc466
TV
24242020-07-23 Tom de Vries <tdevries@suse.de>
2425
2426 PR tui/26282
2427 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2428 New default constructor.
2429
78344df7
AB
24302020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2433 exclude non-statement entries.
2434
b089853a
KB
24352020-07-22 Kevin Buettner <kevinb@redhat.com>
2436
2437 * NEWS (New commands): Mention new command
2438 "maintenance print core-file-backed-mappings".
2439
09c2f5d4
KB
24402020-07-22 Kevin Buettner <kevinb@redhat.com>
2441
2442 * corelow.c (gdbcmd.h): Include.
2443 (core_target::info_proc_mappings): New method.
2444 (get_current_core_target): New function.
2445 (maintenance_print_core_file_backed_mappings): New function.
2446 (_initialize_corelow): Add core-file-backed-mappings to
2447 "maint print" commands.
2448
9c5ec5c2 24492020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2450
9c5ec5c2
KB
2451 * linux-tdep.c (dump_note_entry_p): New function.
2452 (linux_dump_mapping_p_ftype): New typedef.
2453 (linux_find_memory_regions_full): Add new parameter,
2454 should_dump_mapping_p.
2455 (linux_find_memory_regions): Adjust call to
2456 linux_find_memory_regions_full.
2457 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2458 call to linux_find_memory_regions_full.
2459
db082f59
KB
24602020-07-22 Kevin Buettner <kevinb@redhat.com>
2461
2462 * corelow.c (solist.h, unordered_map): Include.
2463 (class core_target): Add field m_core_file_mappings and
2464 method build_file_mappings.
2465 (core_target::core_target): Call build_file_mappings.
2466 (core_target::~core_target): Free memory associated with
2467 m_core_file_mappings.
2468 (core_target::build_file_mappings): New method.
2469 (core_target::xfer_partial): Use m_core_file_mappings
2470 for memory transfers.
2471 * linux-tdep.c (linux_read_core_file_mappings): New
2472 function.
2473 (linux_core_info_proc_mappings): Rewrite to use
2474 linux_read_core_file_mappings.
2475 (linux_init_abi): Register linux_read_core_file_mappings.
2476
7e183d27
KB
24772020-07-22 Kevin Buettner <kevinb@redhat.com>
2478
2479 * arch-utils.c (default_read_core_file_mappings): New function.
2480 * arch-utils.c (default_read_core_file_mappings): Declare.
2481 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2482 * gdbarch.h, gdbarch.c: Regenerate.
2483
2735d421
KB
24842020-07-22 Kevin Buettner <kevinb@redhat.com>
2485
2486 PR corefiles/25631
2487 * corelow.c (core_target:xfer_partial): Revise
2488 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2489 case after first checking the stratum beneath the core
2490 target.
2491 (has_all_memory): Return true.
2492 * target.c (raw_memory_xfer_partial): Revise comment
2493 regarding use of has_all_memory.
2494
e56cb451
KB
24952020-07-22 Kevin Buettner <kevinb@redhat.com>
2496
2497 * exec.h (section_table_xfer_memory): Revise declaration,
2498 replacing section name parameter with an optional callback
2499 predicate.
2500 * exec.c (section_table_xfer_memory): Likewise.
2501 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2502 of section_table_xfer_memory.
2503
32fa152e
TT
25042020-07-22 Tom Tromey <tromey@adacore.com>
2505
2506 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2507 lookup_symbol_search_name.
2508
a67a1c41
AB
25092020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2512 redundant local variable.
2513 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2514 reference, not pointer, update code accordingly.
2515
a7b4ff4f
SM
25162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2517 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2518
2519 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2520 * jit.c (jit_breakpoint_re_set_internal): Use the
2521 `skip_jit_symbol_lookup` field.
2522
2340e834
SM
25232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2524 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2525
2526 * jit.c (jit_read_descriptor): Define the descriptor address once,
2527 use twice.
2528 (jit_breakpoint_deleted): Move the declaration of the loop variable
2529 `iter` into the loop header.
2530 (jit_breakpoint_re_set_internal): Move the declaration of the local
2531 variable `objf_data` to the first point of definition.
2532 (jit_event_handler): Move the declaration of local variables
2533 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2534 Rename `objf` to `jited`.
2535
c1072906
SM
25362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2539 Remove.
2540 * jit.c (get_jiter_objfile_data): Update.
2541
c8474dc3
TBA
25422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2543 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * jit.c (struct jit_program_space_data): Remove.
2546 (jit_program_space_key): Remove.
2547 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2548 stuff.
2549 (get_jit_program_space_data): Remove.
2550 (jit_breakpoint_deleted): Iterate on all of the program space's
2551 objfiles.
2552 (jit_inferior_init): Likewise.
2553 (jit_breakpoint_re_set_internal): Likewise. Also change return
2554 type to void.
2555 (jit_breakpoint_re_set): Pass current_program_space to
2556 jit_breakpoint_re_set_internal.
2557
77208eb7
SM
25582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * jit.h (struct jiter_objfile_data) <cached_code_address,
2561 jit_breakpoint>: Move to here from ...
2562 * jit.c (jit_program_space_data): ... here.
2563 (jiter_objfile_data::~jiter_objfile_data): Update.
2564 (jit_breakpoint_deleted): Update.
2565 (jit_breakpoint_re_set_internal): Update.
2566
8c1c720f
SM
25672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2570 checks.
2571 (jit_read_descriptor): Remove NULL check.
2572 (jit_event_handler): Add an assertion.
2573
0e74a041
SM
25742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * jit.h (struct jit_objfile_data): Split into...
2577 (struct jiter_objfile_data): ... this ...
2578 (struct jited_objfile_data): ... and this.
2579 * objfiles.h (struct objfile) <jit_data>: Remove.
2580 <jiter_data, jited_data>: New fields.
2581 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2582 (jiter_objfile_data::~jiter_objfile_data): ... this.
2583 (get_jit_objfile_data): Rename to ...
2584 (get_jiter_objfile_data): ... this.
2585 (add_objfile_entry): Update.
2586 (jit_read_descriptor): Use get_jiter_objfile_data.
2587 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2588 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2589 (jit_inferior_exit_hook): Use objfile's jited_data field.
2590
238b5c9f
SM
25912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * jit.h: Forward-declare `struct minimal_symbol`.
2594 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2595 constructor, destructor, and an objfile* field.
2596 * jit.c (jit_objfile_data): Remove.
2597 (struct jit_objfile_data): Migrate from here to jit.h.
2598 (jit_objfile_data::~jit_objfile_data): New destructor
2599 implementation with code moved from free_objfile_data.
2600 (free_objfile_data): Delete.
2601 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2602 (jit_find_objf_with_entry_addr): Ditto.
2603 (jit_inferior_exit_hook): Ditto.
2604 (_initialize_jit): Remove the call to
2605 register_objfile_data_with_cleanup.
2606 * objfiles.h (struct objfile) <jit_data>: New field.
2607
fe053b9e
TBA
26082020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2609
2610 * jit.h: Forward-declare `struct objfile`.
2611 (jit_event_handler): Add a second parameter, the JITer objfile.
2612 * jit.c (jit_read_descriptor): Change the signature to take the
2613 JITer objfile as an argument instead of the jit_program_space_data.
2614 (jit_inferior_init): Update the call to jit_read_descriptor.
2615 (jit_event_handler): Use the new JITer objfile argument when calling
2616 jit_read_descriptor.
2617 * breakpoint.c (handle_jit_event): Update the call to
2618 jit_event_handler to pass the JITer objfile.
2619
4cec0c66
JB
26202020-07-21 John Baldwin <jhb@FreeBSD.org>
2621
2622 * gdbarch.c: Regenerate.
2623 * gdbarch.h: Regenerate.
2624 * gdbarch.sh (handle_segmentation_fault): Remove method.
2625 * infrun.c (handle_segmentation_fault): Remove.
2626 (print_signal_received_reason): Remove call to
2627 handle_segmentation_fault.
2628
0e42f66a
JB
26292020-07-21 John Baldwin <jhb@FreeBSD.org>
2630
2631 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2632 Rename to sparc64_linux_report_signal_info and add siggnal
2633 argument.
2634 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2635 instead of sparc64_linux_handle_segmentation_fault.
2636
77bdfeb2
JB
26372020-07-21 John Baldwin <jhb@FreeBSD.org>
2638
2639 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2640 i386_linux_report_signal_info instead of
2641 i386_linux_handle_segmentation_fault.
2642 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2643 to i386_linux_report_signal_info and add siggnal argument.
2644 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2645 of i386_linux_handle_segmentation_fault.
2646 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2647 to i386_linux_report_signal_info and add siggnal argument.
2648
ad97bfc5
JB
26492020-07-21 John Baldwin <jhb@FreeBSD.org>
2650
2651 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2652 hook if present.
2653
272bb05c
JB
26542020-07-21 John Baldwin <jhb@FreeBSD.org>
2655
2656 * gdbarch.c: Regenerate.
2657 * gdbarch.h: Regenerate.
2658 * gdbarch.sh (report_signal_info): New method.
2659 * infrun.c (print_signal_received_reason): Invoke gdbarch
2660 report_signal_info hook if present.
2661
baf8791e
AB
26622020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * python/py-registers.c : Add 'unordered_map' include.
2665 (gdbpy_new_reggroup): Renamed to...
2666 (gdbpy_get_reggroup): ...this. Update to only create register
2667 group descriptors when needed.
2668 (gdbpy_reggroup_iter_next): Update.
2669
f7306dac
AB
26702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * python/py-registers.c (gdbpy_register_object_data): New static
2673 global.
2674 (gdbpy_register_object_data_init): New function.
2675 (gdbpy_new_register_descriptor): Renamed to...
2676 (gdbpy_get_register_descriptor): ...this, and update to reuse
2677 existing register descriptors where possible.
2678 (gdbpy_register_descriptor_iter_next): Update.
2679 (gdbpy_initialize_registers): Register new gdbarch data.
2680
05c309a8
SM
26812020-07-21 Simon Marchi <simon.marchi@efficios.com>
2682
2683 * linux-nat.c (stopped_pids): Make static.
2684
d1fd641e
SM
26852020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 PR ada/26235
2688 * gdbtypes.c (ada_discrete_type_low_bound,
2689 ada_discrete_type_high_bound): Handle undefined bounds.
2690
1de14d77
KR
26912020-07-21 Kamil Rytarowski <n54@gmx.com>
2692
2693 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2694 declaration.
2695 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2696 function.
2697
ed810cc7
JB
26982020-07-20 John Baldwin <jhb@FreeBSD.org>
2699
2700 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2701 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2702 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2703 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2704 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2705 method.
2706
ae5369e7
LC
27072020-07-20 Ludovic Courtès <ludo@gnu.org>
2708
2709 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2710 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2711 which are deprecated in Guile 3.0.
2712 * configure.ac (try_guile_versions): Add "guile-3.0".
2713 * configure (try_guile_versions): Regenerate.
2714 * NEWS: Update entry.
2715
68cf161c
LC
27162020-07-20 Ludovic Courtès <ludo@gnu.org>
2717 Doug Evans <dje@google.com>
2718
2719 PR gdb/21104
2720 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2721 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2722 USING_GUILE_BEFORE_2_2.
2723 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2724 Change type to 'scm_t_port_type *'.
2725 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2726 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2727 parameter and honor it. Update callers.
2728 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2729 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2730 functions.
2731 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2732 USING_GUILE_BEFORE_2_2.
2733 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2734 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2735 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2736 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2737 and 'SCM_PORT_TYPE'.
2738 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2739 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2740 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2741 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2742 [!USING_GUILE_BEFORE_2_2]: New functions.
2743 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2744 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2745 'gdbscm_memory_port_read'.
2746 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2747 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2748 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2749 function.
2750 (ioscm_init_memory_port): Remove.
2751 (ioscm_init_memory_port_stream): New function
2752 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2753 function.
2754 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2755 Return scm_from_uint (0).
2756 (gdbscm_set_memory_port_read_buffer_size_x)
2757 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2758 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2759 Return scm_from_uint (0).
2760 (gdbscm_set_memory_port_write_buffer_size_x)
2761 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2762 * configure.ac (try_guile_versions): Add "guile-2.2".
2763 * configure: Regenerate.
2764 * NEWS: Add entry.
2765
aee91db3
TT
27662020-07-18 Tom Tromey <tom@tromey.com>
2767
2768 * linux-nat.c (linux_multi_process): Remove.
2769 (linux_nat_target::supports_multi_process): Return true.
2770
0e267416
AB
27712020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2774 (riscv_lookup_target_description): Return pointer out of
2775 unique_ptr.
2776 * target-descriptions.c (allocate_target_description): Add
2777 comment.
2778 (target_desc_deleter::operator()): Likewise.
2779 * target-descriptions.h (struct target_desc_deleter): Moved to
2780 gdbsupport/tdesc.h.
2781 (target_desc_up): Likewise.
2782
f80c8ec4
TT
27832020-07-17 Tom Tromey <tromey@adacore.com>
2784
2785 * linux-nat.c (linux_nat_target::supports_non_stop)
2786 (linux_nat_target::always_non_stop_p): Use "true".
2787 (linux_nat_target::supports_disable_randomization): Use "true" and
2788 "false".
2789
d0ce17d8
CT
27902020-07-16 Caroline Tice <cmtice@google.com>
2791
2792 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2793 (RNGLIST_HEADER_SIZE64): New constant definition.
2794 (struct dwop_section_names): Add rnglists_dwo.
2795 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2796 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2797 (struct dwo_sections): Add rnglists field.
2798 (read_attribut_reprocess): Add tag parameter.
2799 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2800 (cu_debug_rnglists_section): New function (decl & definition).
2801 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2802 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2803 die whose range is being checked; get rnglist section from
2804 cu_debug_rnglists_section, to get from either objfile or dwo file as
2805 appropriate. Add cases for DW_RLE_base_addressx,
2806 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2807 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2808 test inside if-condition and updating complaint message.
2809 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2810 dwarf2_rnglists_process.
2811 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2812 dwarf2_ranges_process.
2813 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2814 need_ranges_base and update comment appropriately. Also pass die tag
2815 to dwarf2_ranges_read.
2816 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2817 need_ranges_base and update comment appropriately. Also pass die tag
2818 to dwarf2_ranges_process.
2819 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2820 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2821 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2822 need_ranges_base and update comment appropriately. Also pass die tag
2823 to read_attribute_reprocess and dwarf2_ranges_read.
2824 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2825 and update function comment appropriately.
2826 (read_loclist_index): Call read_loclists_rnglists_header instead of
2827 read_loclist_header.
2828 (read_rnglist_index): New function.
2829 (read_attribute_reprocess): Add tag parameter. Add code for
2830 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2831 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2832
3dcc261c
AB
28332020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2836 being resolved.
2837
ccb9eba6
AB
28382020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * arch-utils.c (show_architecture): Update formatting of messages.
2841
cf88be68
SM
28422020-07-12 Simon Marchi <simon.marchi@efficios.com>
2843
2844 * gdbtypes.h (struct type) <bounds>: Handle array and string
2845 types.
2846 * ada-lang.c (assign_aggregate): Use type::bounds on
2847 array/string type.
2848 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2849 * c-varobj.c (c_number_of_children): Likewise.
2850 (c_describe_child): Likewise.
2851 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2852 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2853 (f_type_print_base): Likewise.
2854 * f-valprint.c (f77_array_offset_tbl): Likewise.
2855 (f77_get_upperbound): Likewise.
2856 (f77_print_array_1): Likewise.
2857 * guile/scm-type.c (gdbscm_type_range): Likewise.
2858 * m2-typeprint.c (m2_array): Likewise.
2859 (m2_is_long_set_of_type): Likewise.
2860 * m2-valprint.c (get_long_set_bounds): Likewise.
2861 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2862 * python/py-type.c (typy_range): Likewise.
2863 * rust-lang.c (rust_internal_print_type): Likewise.
2864 * type-stack.c (type_stack::follow_types): Likewise.
2865 * valarith.c (value_subscripted_rvalue): Likewise.
2866 * valops.c (value_cast): Likewise.
2867
509971ae
SM
28682020-07-12 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2871 callers to use the equivalent accessor methods.
2872
107406b7
SM
28732020-07-12 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2876 (struct type) <bit_stride>: New method.
2877 (TYPE_BIT_STRIDE): Remove.
2878 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2879
bb789949
SM
28802020-07-12 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2883 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2884 callers to use the equivalent accessor methods instead.
2885
39498edb
SM
28862020-07-12 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2889 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2890 callers to use the equivalent accessor methods instead.
2891
3b606f38
SM
28922020-07-12 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2895 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2896 to use dynamic_prop::kind.
2897
064d9cb9
SM
28982020-07-12 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2901 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2902 to get the bound property's kind and check against
2903 PROP_UNDEFINED.
2904
5537ddd0
SM
29052020-07-12 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2908 all callers to use type::range_bounds followed by
2909 dynamic_prop::{low,high}.
2910
8c2e4e06
SM
29112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2912
2913 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2914 const_val, set_const_val, baton, set_locexpr, set_loclist,
2915 set_addr_offset, variant_parts, set_variant_parts,
2916 original_type, set_original_type>: New methods.
2917 <kind>: Rename to...
2918 <m_kind>: ... this. Update all users to use the new methods
2919 instead.
2920 <data>: Rename to...
2921 <m_data>: ... this. Update all users to use the new methods
2922 instead.
2923
7c6f2712
SM
29242020-07-12 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * gdbtypes.c (get_discrete_bounds): Return failure if
2927 the range type's bounds are not both defined and constant
2928 values.
2929 (get_array_bounds): Update comment. Remove undefined bound check.
2930
599088e3
SM
29312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2934 the type::bounds method directly.
2935
c4dfcb36
SM
29362020-07-12 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2939 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2940 are used to set the range type's bounds to use set_bounds.
2941
0a278aa7
PW
29422020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2943
2944 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2945
cce20f10
PA
29462020-07-10 Pedro Alves <pedro@palves.net>
2947
2948 * gdbthread.h (inferior_ref): Define.
2949 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2950 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2951 * thread.c
2952 (scoped_restore_current_thread::restore):
2953 Adjust to gdb::ref_ptr.
2954 (scoped_restore_current_thread::~scoped_restore_current_thread):
2955 Remove manual decref handling.
2956 (scoped_restore_current_thread::scoped_restore_current_thread):
2957 Adjust to use
2958 inferior_ref::new_reference/thread_info_ref::new_reference.
2959 Incref the thread before calling get_frame_id instead of after.
2960 Let TARGET_CLOSE_ERROR propagate.
2961
6d7aa592
PA
29622020-07-10 Pedro Alves <pedro@palves.net>
2963
2964 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2965 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2966 NOT_AVAILABLE_ERROR.
2967 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2968 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2969
b3e3a4c1
SM
29702020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2971 Pedro Alves <pedro@palves.net>
2972
2973 PR gdb/26199
2974 * infrun.c (threads_are_resumed_pending_p): Delete.
2975 (do_target_wait): Remove threads_are_executing and
2976 threads_are_resumed_pending_p checks from the inferior_matches
2977 lambda. Update comments.
2978
d6cc5d98
PA
29792020-07-10 Pedro Alves <pedro@palves.net>
2980
2981 PR gdb/26199
2982 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2983 executing threads.
2984
7d3badc6
PA
29852020-07-10 Pedro Alves <pedro@palves.net>
2986
2987 PR gdb/26199
2988 * infrun.c (handle_no_resumed): Handle multiple targets.
2989
42bd97a6
PA
29902020-07-10 Pedro Alves <pedro@palves.net>
2991
2992 PR gdb/26199
2993 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2994 target_is_async_p.
2995
43667cc6
PA
29962020-07-10 Pedro Alves <pedro@palves.net>
2997
2998 PR gdb/26199
2999 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3000 threads, not all threads.
3001
96118d11
PA
30022020-07-10 Pedro Alves <pedro@palves.net>
3003
3004 PR gdb/26199
3005 * remote.c (remote_target::open_1): Pass remote target pointer as
3006 data to create_async_event_handler.
3007 (remote_async_inferior_event_handler): Mark async event handler
3008 before returning if the remote target still has either pending
3009 events or unacknowledged notifications.
3010
54904d81
JB
30112020-07-10 John Baldwin <jhb@FreeBSD.org>
3012
3013 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3014 declaration.
3015 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3016 function.
3017
f37e5866
JB
30182020-07-09 John Baldwin <jhb@FreeBSD.org>
3019
3020 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3021 inferior_ptid.
3022
fc238d4a
JB
30232020-07-09 John Baldwin <jhb@FreeBSD.org>
3024
3025 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3026 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3027 AT_FREEBSD_PS_STRINGS.
3028
6e2469ff
HD
30292020-07-08 Hannes Domani <ssbssa@yahoo.de>
3030
3031 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3032 of debugfile path on Windows.
3033
d1076c41
JB
30342020-07-08 John Baldwin <jhb@FreeBSD.org>
3035
3036 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3037 argument to 'data'.
3038
15f3b077
TT
30392020-07-08 Tom Tromey <tromey@adacore.com>
3040
3041 * ada-lang.c (ada_exception_message_1): Use read_memory.
3042
9fc501fd
AB
30432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 PR python/22748
3046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3047 special handling for inline frames.
3048 * findvar.c (value_of_register_lazy): Skip inline frames when
3049 creating lazy register values.
3050 * frame.c (frame_id_computed_p): Delete definition.
3051 * frame.h (frame_id_computed_p): Delete declaration.
3052
64cb3757
AB
30532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * NEWS: Mention additions to Python API.
3056 * python/py-arch.c (archpy_register_groups): New function.
3057 (arch_object_methods): Add 'register_groups' method.
3058 * python/py-registers.c (reggroup_iterator_object): New struct.
3059 (reggroup_object): New struct.
3060 (gdbpy_new_reggroup): New function.
3061 (gdbpy_reggroup_to_string): New function.
3062 (gdbpy_reggroup_name): New function.
3063 (gdbpy_reggroup_iter): New function.
3064 (gdbpy_reggroup_iter_next): New function.
3065 (gdbpy_new_reggroup_iterator): New function
3066 (gdbpy_initialize_registers): Register new types.
3067 (reggroup_iterator_object_type): Define new Python type.
3068 (gdbpy_reggroup_getset): New static global.
3069 (reggroup_object_type): Define new Python type.
3070 * python/python-internal.h
3071
0f767f94
AB
30722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3075 * python/py-arch.c (archpy_registers): New function.
3076 (arch_object_methods): Add 'registers' method.
3077 * python/py-registers.c: New file.
3078 * python/python-internal.h
3079 (gdbpy_new_register_descriptor_iterator): Declare.
3080 (gdbpy_initialize_registers): Declare.
3081 * python/python.c (do_start_initialization): Call
3082 gdbpy_initialize_registers.
3083 * NEWS: Mention additions to the Python API.
3084
87dbc774
AB
30852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * NEWS: Mention new Python API method.
3088 * python/py-unwind.c (pending_framepy_architecture): New function.
3089 (pending_frame_object_methods): Add architecture method.
3090
3bc98c0c
AB
30912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * gdbarch.c: Regenerate.
3094 * gdbarch.h: Regenerate.
3095 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3096 (gdbarch_data): Use internal_error for the case where
3097 deprecated_set_gdbarch_data was originally needed.
3098 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3099 and use passed in obstack.
3100 (libunwind_frame_set_descr): Should no longer get back NULL from
3101 gdbarch_data.
3102 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3103 type.
3104 * user-regs.c (user_regs_init): Update parameters, and use passed
3105 in obstack.
3106 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3107 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3108
d8cc8af6
TV
31092020-07-06 Tom de Vries <tdevries@suse.de>
3110
3111 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3112 End-Of-Sequence in lte_is_less_than.
3113 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3114 "gdb: Don't reorder line table entries too much when sorting".
3115
947f7597
TV
31162020-07-06 Tom de Vries <tdevries@suse.de>
3117
3118 PR tui/26205
3119 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3120
1e7c1b22
TV
31212020-07-05 Tom de Vries <tdevries@suse.de>
3122
3123 PR build/26187
3124 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3125 std::uncaught_exceptions instead of deprecated
3126 std::uncaught_exception.
3127
a36158ec
SM
31282020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3129
3130 * macroexp.h (macro_stringify): Return
3131 gdb::unique_xmalloc_ptr<char>.
3132 * macroexp.c (macro_stringify): Likewise.
3133 * macrotab.c (fixup_definition): Update.
3134
14d960c8
SM
31352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3136
3137 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3138 (lex_one_token): Update.
3139 * macroexp.c (struct macro_buffer) <release>: Return
3140 gdb::unique_xmalloc_ptr<char>.
3141 (macro_stringify): Update.
3142 (macro_expand): Update.
3143 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3144 * macroexp.h (macro_expand_next): Likewise.
3145
211d5b1c
SM
31462020-07-02 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * macroexp.h (macro_lookup_ftype): Remove.
3149 (macro_expand, macro_expand_once, macro_expand_next): Remove
3150 lookup function parameters, add scope parameter.
3151 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3152 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3153 * macroscope.h (standard_macro_lookup): Change parameter type
3154 to macro_scope.
3155 * macroscope.c (standard_macro_lookup): Likewise.
3156 * c-exp.y (lex_one_token): Update.
3157 * macrocmd.c (macro_expand_command): Likewise.
3158 (macro_expand_once_command): Likewise.
3159
b1a35af2
SM
31602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * inf-loop.c (inferior_event_handler): Remove client_data param.
3163 * inf-loop.h (inferior_event_handler): Likewise.
3164 * infcmd.c (step_1): Adjust.
3165 * infrun.c (proceed): Adjust.
3166 (fetch_inferior_event): Remove client_data param.
3167 (infrun_async_inferior_event_handler): Adjust.
3168 * infrun.h (fetch_inferior_event): Remove `void *` param.
3169 * linux-nat.c (handle_target_event): Adjust.
3170 * record-btrace.c (record_btrace_handle_async_inferior_event):
3171 Adjust.
3172 * record-full.c (record_full_async_inferior_event_handler):
3173 Adjust.
3174 * remote.c (remote_async_inferior_event_handler): Adjust.
3175
1cdf9e33
TT
31762020-07-01 Tom Tromey <tom@tromey.com>
3177
3178 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3179 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3180
32c1e210
TT
31812020-07-01 Tom Tromey <tom@tromey.com>
3182
3183 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3184 tui_gen_win_info.
3185 (tui_win_info::make_window): Merge with
3186 tui_gen_win_info::make_window.
3187 (tui_win_info::make_visible): Move from tui_gen_win_info.
3188 * tui/tui-win.c (tui_win_info::max_width): Move from
3189 tui_gen_win_info.
3190 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3191 type.
3192 <window_factory>: Likewise.
3193 * tui/tui-layout.c (tui_win_info::resize): Move from
3194 tui_gen_win_info.
3195 (make_standard_window): Change return type.
3196 (get_locator_window, tui_get_window_by_name): Likewise.
3197 (tui_layout_window::apply): Remove a cast.
3198 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3199 (struct tui_win_info): Merge with tui_gen_win_info.
3200 (struct tui_gen_win_info): Remove.
3201
a30cb6da
TT
32022020-07-01 Tom Tromey <tom@tromey.com>
3203
3204 * tui/tui-stack.h (struct tui_locator_window): Derive from
3205 tui_win_info.
3206 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3207 <can_box>: New method.
3208
1eb2161f
TT
32092020-07-01 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3212
7134f2eb
TT
32132020-07-01 Tom Tromey <tom@tromey.com>
3214
3215 * tui/tui-regs.c (tui_data_window::display_registers_from)
3216 (tui_data_window::display_registers_from)
3217 (tui_data_window::first_data_item_displayed)
3218 (tui_data_window::delete_data_content_windows): Update.
3219 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3220 Remove.
3221 (tui_data_window::check_register_values): Update.
3222 (tui_data_item_window::rerender): Add parameters. Update.
3223 (tui_data_item_window::refresh_window): Remove.
3224 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3225 virtual.
3226 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3227 tui_gen_win_info.
3228 <refresh_window, max_height, min_height>: Remove.
3229 <rerender>: Add parameters.
3230 <x, y, visible>: New members.
3231 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3232 <m_item_width>: New member.
3233
22b7b041
TT
32342020-07-01 Tom Tromey <tom@tromey.com>
3235
3236 * tui/tui-regs.c (tui_data_window::show_register_group)
3237 (tui_data_window::check_register_values): Update.
3238 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3239 from item_no.
3240
c9753adb
TT
32412020-07-01 Tom Tromey <tom@tromey.com>
3242
3243 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3244 useless "if".
3245
9ab26b4a
TT
32462020-07-01 Tom Tromey <tom@tromey.com>
3247
3248 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3249 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3250
e555083f
TT
32512020-07-01 Tom Tromey <tom@tromey.com>
3252
3253 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3254 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3255 (struct tui_line_or_address): Move from tui-data.h.
3256 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3257 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3258 (tui_cmd_window, tui_source_window_base, tui_source_window)
3259 (tui_disasm_window): Don't declare.
3260 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3261 to tui-winsource.h.
3262 (SINGLE_KEY): Move to tui-stack.c.
3263
7a02bab7
TT
32642020-07-01 Tom Tromey <tom@tromey.com>
3265
3266 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3267 std::string.
3268 * tui/tui-regs.c (class tab_expansion_file): New.
3269 (tab_expansion_file::write): New method.
3270 (tui_register_format): Change return type. Use
3271 tab_expansion_file.
3272 (tui_get_register, tui_data_window::display_registers_from)
3273 (tui_data_item_window::rerender): Update.
3274 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3275 * tui/tui-io.c (tui_expand_tabs): Remove.
3276
ea68593b
TT
32772020-07-01 Tom Tromey <tom@tromey.com>
3278
3279 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3280
a8caed5d
FS
32812020-07-01 Fangrui Song <maskray@google.com>
3282
3283 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3284
9cdf9820
AKS
32852020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3286
3287 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3288 forms for DW_AT_associated and DW_AT_allocated attributes,
3289 which is already checked in function attr_to_dynamic_prop.
3290
a1520ad8
TT
32912020-06-30 Tom Tromey <tromey@adacore.com>
3292
3293 * dwarf2/read.c (quirk_rust_enum): Correctly call
3294 alloc_rust_variant for default-less enum.
3295
5ac58899
TT
32962020-06-30 Tom Tromey <tromey@adacore.com>
3297
3298 PR build/26183:
3299 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3300 gdb::to_string.
3301
19b187a9
SM
33022020-06-29 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3305 * gdbarch.h: Re-generate.
3306
cd4c4c07
TT
33072020-06-28 Tom Tromey <tom@tromey.com>
3308
3309 * command.h (cmd_types): Remove.
3310 (cmd_type): Don't declare.
3311 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3312 typedef.
3313 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3314 * cli/cli-decode.c (cmd_type): Remove.
3315
05779d57
PA
33162020-06-27 Pedro Alves <palves@redhat.com>
3317
3318 * fork-child.c (prefork_hook): Adjust.
3319 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3320 Delete.
3321 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3322 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3323 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3324 Remove declarations.
3325 (struct inferior) <set_tty, tty>: New methods.
3326 (struct inferior) <terminal>: Rename to ...
3327 (struct inferior) <m_terminal>: ... this and make private.
3328 * main.c (captured_main_1): Adjust.
3329 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3330 (mi_cmd_inferior_tty_show): Adjust.
3331 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3332 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3333
1776e3e5
NA
33342020-06-26 Nick Alcock <nick.alcock@oracle.com>
3335
3336 * configure.ac: Add --enable-libctf: handle --disable-static
3337 properly.
3338 * acinclude.m4: sinclude ../config/enable.m4.
3339 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3340 (LIBCTF): Substitute in.
3341 (CTF_DEPS): New, likewise.
3342 (CLIBS): libctf needs symbols from libbfd: move earlier.
3343 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3344 flags.
3345 * ctfread.c: Surround in ENABLE_LIBCTF.
3346 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3347 * configure: Regenerate.
3348 * config.in: Likewise.
3349
58373b80
SM
33502020-06-25 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3353
277474ee
SM
33542020-06-25 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * inferior.h (struct inferior) <terminal>: Change type to
3357 gdb::unique_xmalloc_ptr<char>.
3358 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3359 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3360 field, adjust to unique pointer.
3361 (get_inferior_io_terminal): Adjust to unique pointer.
3362
6d74da72
AB
33632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3366 registers, not just the known core set of registers.
3367
2e52d038
AB
33682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3371 fflags, frm, and fcsr registers.
3372 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3373 restore groups.
3374 (riscv_tdesc_unknown_reg): New function.
3375 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3376 tdesc_use_registers.
3377 * riscv-tdep.h (struct gdbarch_tdep): Add
3378 unknown_csrs_first_regnum, unknown_csrs_count,
3379 duplicate_fflags_regnum, duplicate_frm_regnum, and
3380 duplicate_fcsr_regnum fields.
3381
be64fd07
AB
33822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3385 callback, use the callback (when not null) to help number unknown
3386 registers.
3387 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3388 (tdesc_use_registers): Add extra parameter to declaration.
3389
3b9fce96
AB
33902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3391
3392 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3393 in the file.
3394 (class riscv_pending_register_alias): Likewise.
3395 (riscv_register_feature::register_info): Change 'required_p' field
3396 to 'required', and change its type. Add 'check' member function.
3397 (riscv_register_feature::register_info::check): Define new member
3398 function.
3399 (riscv_xreg_feature): Change initialisation of 'required' field.
3400 (riscv_freg_feature): Likewise.
3401 (riscv_virtual_feature): Likewise.
3402 (riscv_csr_feature): Likewise.
3403 (riscv_check_tdesc_feature): Take extra parameter, the csr
3404 tdesc_feature, rewrite the function to use the new
3405 riscv_register_feature::register_info::check function.
3406 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3407
865bad26
AB
34082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3409
3410 * features/Makefile: Remove all references to the deleted files
3411 below.
3412 * features/riscv/32bit-csr.c: Deleted.
3413 * features/riscv/32bit-csr.xml: Deleted.
3414 * features/riscv/64bit-csr.c: Deleted.
3415 * features/riscv/64bit-csr.xml: Deleted.
3416 * features/riscv/rebuild-csr-xml.sh: Deleted.
3417
ed69cbc8
AB
34182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3421 whitespace error for declaration of names member variable.
3422 (struct riscv_register_feature): Add new prefer_first_name member
3423 variable, and fix whitespace error in declaration of registers.
3424 (riscv_xreg_feature): Initialize prefer_first_name field.
3425 (riscv_freg_feature): Likewise.
3426 (riscv_virtual_feature): Likewise.
3427 (riscv_csr_feature): Likewise.
3428 (riscv_register_name): Expand on comments. Remove register name
3429 modifications for CSR and virtual registers.
3430
4445e8f5
AB
34312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3434 errors.
3435
767a879e
AB
34362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3439 riscv-opc.h.
3440 (class riscv_pending_register_alias): New class.
3441 (riscv_check_tdesc_feature): Take vector of pending aliases and
3442 populate it as appropriate.
3443 (riscv_setup_register_aliases): Delete.
3444 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3445 to riscv_check_tdesc_feature in all cases. Use the vector to
3446 create the register aliases.
3447
bb6e55f3
RO
34482020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3449
3450 * sol2-tdep.c (sol2_static_transform_name): Remove.
3451 (sol2_init_abi): Don't register it.
3452 * gdbarch.sh (static_transform_name): Remove.
3453 * gdbarch.c, gdbarch.h: Regenerate.
3454
3455 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3456 gdbarch_static_transform_name.
3457 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3458 * stabsread.c (define_symbol) <'X'>: Remove.
3459 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3460 handling.
3461 <'V'>: Likewise.
3462 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3463 <'S'>: Remove call to gdbarch_static_transform_name.
3464
c6d36836
RO
34652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3466
3467 * procfs.c (procfs_pre_trace): New function.
3468 (procfs_target::create_inferior): Pass it to fork_inferior.
3469
a7e6196b
RO
34702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3471
3472 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3473 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3474 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3475 sol2-tdep.o, sparc-sol2-tdep.o.
3476 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3477 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3478 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3479 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3480
d412e696
RO
34812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3482
3483 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3484 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3485 Call sol2_init_abi.
3486 Remove calls to set_gdbarch_skip_solib_resolver,
3487 set_gdbarch_core_pid_to_str.
3488 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3489 (i386_sol2_static_transform_name): Remove.
3490 (i386_sol2_init_abi): Call sol2_init_abi.
3491 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3492 set_gdbarch_static_transform_name,
3493 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3494 Use sol2_sigtramp_p.
3495 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3496 (sol2_sigtramp_p): New function.
3497 (sol2_static_transform_name): New function.
3498 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3499 (sol2_init_abi): New function.
3500 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3501 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3502 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3503 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3504 (sparc_sol2_static_transform_name): Remove.
3505 (sparc32_sol2_init_abi): Call sol2_init_abi.
3506 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3507 set_gdbarch_static_transform_name,
3508 set_gdbarch_skip_solib_resolver,
3509 set_gdbarch_core_pid_to_str.
3510 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3511 (sparc_sol2_static_transform_name): Remove
3512 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3513 call sol2_sigtramp_p.
3514 (sparc64_sol2_init_abi): Call sol2_init_abi.
3515 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3516 set_gdbarch_static_transform_name,
3517 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3518
a8654e7d
PW
35192020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3520
3521 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3522 * exec.c (validate_exec_file): If from_tty, set both
3523 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3524 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3525 and from_tty, unconditionally ask a confirmation.
3526
caa7fd04
AB
35272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * target-descriptions.c (tdesc_architecture_name): Protect against
3530 NULL pointer dereference.
3531 (maint_print_xml_tdesc_cmd): New function.
3532 (_initialize_target_descriptions): Register new 'maint print
3533 xml-tdesc' command and give it the filename completer.
3534 * NEWS: Mention new 'maint print xml-tdesc' command.
3535
fbf42f4e
AB
35362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * target-descriptions.c (class tdesc_compatible_info): New class.
3539 (struct target_desc): Change type of compatible vector.
3540 (tdesc_compatible_p): Update for change in type of
3541 target_desc::compatible.
3542 (tdesc_compatible_info_list): New function.
3543 (tdesc_compatible_info_arch_name): New function.
3544 (tdesc_add_compatible): Update for change in type of
3545 target_desc::compatible.
3546 (print_c_tdesc::visit_pre): Likewise.
3547
20821f4e
AB
35482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3551 whitespace to underscore.
3552 (maint_print_c_tdesc_cmd): Use fake filename for target
3553 descriptions that came from the target.
3554 (_initialize_target_descriptions): Add filename command completion
3555 for 'maint print c-tdesc'.
3556
1fb5ee62
SM
35572020-06-23 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3560 lines.
3561
fc3ecb3e
SM
35622020-06-23 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3565 lines.
3566 (dwarf2_find_location_expression): Likewise.
3567 (call_site_parameter_matches): Likewise.
3568 (dwarf2_compile_expr_to_ax): Likewise.
3569 (disassemble_dwarf_expression): Likewise.
3570 (loclist_describe_location): Likewise.
3571
236ef034
PA
35722020-06-23 Pedro Alves <palves@redhat.com>
3573
3574 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3575 progspace-and-thread.h. Include scoped-mock-context.h instead.
3576 (register_to_value_test): Use scoped_mock_context.
3577 * regcache.c: Include "scoped-mock-context.h".
3578 (cooked_read_test): Don't error out if a target is already pushed.
3579 Use scoped_mock_context. Adjust.
3580 * scoped-mock-context.h: New file.
3581
39e7ecca
AB
35822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3585 initializer.
3586 (ada_language::is_string_type_p): New member function.
3587 * c-lang.c (c_language_data): Delete la_is_string_type_p
3588 initializer.
3589 (cplus_language_data): Likewise.
3590 (asm_language_data): Likewise.
3591 (minimal_language_data): Likewise.
3592 * d-lang.c (d_language_data): Likewise.
3593 * f-lang.c (f_is_string_type_p): Delete function, implementation
3594 moved to f_language::is_string_type_p.
3595 (f_language_data): Delete la_is_string_type_p initializer.
3596 (f_language::is_string_type_p): New member function,
3597 implementation from f_is_string_type_p.
3598 * go-lang.c (go_is_string_type_p): Delete function, implementation
3599 moved to go_language::is_string_type_p.
3600 (go_language_data): Delete la_is_string_type_p initializer.
3601 (go_language::is_string_type_p): New member function,
3602 implementation from go_is_string_type_p.
3603 * language.c (language_defn::is_string_type_p): Define new member
3604 function.
3605 (default_is_string_type_p): Make static, add comment copied from
3606 header file.
3607 (unknown_language_data): Delete la_is_string_type_p initializer.
3608 (unknown_language::is_string_type_p): New member function.
3609 (auto_language_data): Delete la_is_string_type_p initializer.
3610 (auto_language::is_string_type_p): New member function.
3611 * language.h (language_data): Delete la_is_string_type_p field.
3612 (language_defn::is_string_type_p): Declare new function.
3613 (default_is_string_type_p): Delete desclaration, move comment to
3614 definition.
3615 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3616 moved to m2_language::is_string_type_p.
3617 (m2_language_data): Delete la_is_string_type_p initializer.
3618 (m2_language::is_string_type_p): New member function,
3619 implementation from m2_is_string_type_p.
3620 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3621 initializer.
3622 * opencl-lang.c (opencl_language_data): Likewise.
3623 * p-lang.c (pascal_is_string_type_p): Delete function,
3624 implementation moved to pascal_language::is_string_type_p.
3625 (pascal_language_data): Delete la_is_string_type_p initializer.
3626 (pascal_language::is_string_type_p): New member function,
3627 implementation from pascal_is_string_type_p.
3628 * rust-lang.c (rust_is_string_type_p): Delete function,
3629 implementation moved to rust_language::is_string_type_p.
3630 (rust_language_data): Delete la_is_string_type_p initializer.
3631 (rust_language::is_string_type_p): New member function,
3632 implementation from rust_is_string_type_p.
3633 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3634 is_string_type_p.
3635
4ffc13fb
AB
36362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * ada-lang.c (ada_language_data): Delete la_print_typedef
3639 initializer.
3640 (ada_language::print_typedef): New member function.
3641 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3642 (cplus_language_data): Likewise.
3643 (asm_language_data): Likewise.
3644 (minimal_language_data): Likewise.
3645 * d-lang.c (d_language_data): Likewise.
3646 * f-lang.c (f_language_data): Likewise.
3647 (f_language::print_typedef): New member function.
3648 * go-lang.c (go_language_data): Delete la_print_typedef
3649 initializer.
3650 * language.c (language_defn::print_typedef): Define member
3651 function.
3652 (unknown_language_data): Delete la_print_typedef initializer.
3653 (unknown_language::print_typedef): New member function.
3654 (auto_language_data): Delete la_print_typedef initializer.
3655 (auto_language::print_typedef): New member function.
3656 * language.h (language_data): Delete la_print_typedef field.
3657 (language_defn::print_typedef): Declare new member function.
3658 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3659 (default_print_typedef): Delete declaration.
3660 * m2-lang.c (m2_language_data): Delete la_print_typedef
3661 initializer.
3662 (m2_language::print_typedef): New member function.
3663 * objc-lang.c (objc_language_data): Delete la_print_typedef
3664 initializer.
3665 * opencl-lang.c (opencl_language_data): Likewise.
3666 * p-lang.c (pascal_language_data): Likewise.
3667 (pascal_language::print_typedef): New member function.
3668 * rust-lang.c (rust_print_typedef): Delete function,
3669 implementation moved to rust_language::print_typedef.
3670 (rust_language): Delete la_print_typedef initializer.
3671 (rust_language::print_typedef): New member function,
3672 implementation from rust_print_typedef.
3673 * typeprint.c (default_print_typedef): Delete.
3674
d711ee67
AB
36752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3678 (ada_language::printstr): New member function.
3679 * c-lang.c (c_language_data): Delete la_printstr initializer.
3680 (cplus_language_data): Likewise.
3681 (asm_language_data): Likewise.
3682 (minimal_language_data): Likewise.
3683 * d-lang.c (d_language_data): Likewise.
3684 * f-lang.c (f_printstr): Rename to f_language::printstr.
3685 (f_language_data): Delete la_printstr initializer.
3686 (f_language::printstr): New member function, implementation from
3687 f_printstr.
3688 * go-lang.c (go_language_data): Delete la_printstr initializer.
3689 * language.c (language_defn::printstr): Define new member
3690 function.
3691 (unk_lang_printstr): Delete.
3692 (unknown_language_data): Delete la_printstr initializer.
3693 (unknown_language::printstr): New member function.
3694 (auto_language_data): Delete la_printstr initializer.
3695 (auto_language::printstr): New member function.
3696 * language.h (language_data): Delete la_printstr field.
3697 (language_defn::printstr): Declare new member function.
3698 (LA_PRINT_STRING): Update call to printstr.
3699 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3700 (m2_language_data): Delete la_printstr initializer.
3701 (m2_language::printstr): New member function, implementation from
3702 m2_printstr.
3703 * objc-lang.c (objc_language_data): Delete la_printstr
3704 initializer.
3705 * opencl-lang.c (opencl_language_data): Likewise.
3706 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3707 (pascal_language_data): Delete la_printstr initializer.
3708 (pascal_language::printstr): New member function, implementation
3709 from pascal_printstr.
3710 * p-lang.h (pascal_printstr): Delete declaration.
3711 * rust-lang.c (rust_printstr): Update header comment.
3712 (rust_language_data): Delete la_printstr initializer.
3713 (rust_language::printstr): New member function.
3714
52b50f2c
AB
37152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3718 (ada_language::printchar): New member function.
3719 * c-lang.c (c_language_data): Delete la_printchar initializer.
3720 (cplus_language_data): Likewise.
3721 (asm_language_data): Likewise.
3722 (minimal_language_data): Likewise.
3723 * d-lang.c (d_language_data): Likewise.
3724 * f-lang.c (f_printchar): Rename to f_language::printchar.
3725 (f_language_data): Delete la_printchar initializer.
3726 (f_language::printchar): New member function, implementation from
3727 f_printchar.
3728 * go-lang.c (go_language_data): Delete la_printchar initializer.
3729 * language.c (unk_lang_printchar): Delete.
3730 (language_defn::printchar): Define new member function.
3731 (unknown_language_data): Delete la_printchar initializer.
3732 (unknown_language::printchar): New member function.
3733 (auto_language_data): Delete la_printchar initializer.
3734 (auto_language::printchar): New member function.
3735 * language.h (language_data): Delete la_printchar field.
3736 (language_defn::printchar): Declare new member function.
3737 (LA_PRINT_CHAR): Update call to printchar.
3738 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3739 (m2_language::printchar): New member function.
3740 * objc-lang.c (objc_language_data): Delete la_printchar
3741 initializer.
3742 * opencl-lang.c (opencl_language_data): Likewise.
3743 * p-lang.c (pascal_language_data): Delete la_printchar
3744 initializer.
3745 (pascal_language::printchar): New member function.
3746 * rust-lang.c (rust_printchar): Rename to
3747 rust_language::printchar.
3748 (rust_language_data): Delete la_printchar initializer.
3749 (rust_language::printchar): New member function, implementation
3750 from rust_printchar.
3751
ec8cec5b
AB
37522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3755 (ada_language_data): Delete la_emitchar initializer.
3756 (ada_language::emitchar): New member function, implementation from
3757 emit_char.
3758 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3759 (cplus_language_data): Likewise.
3760 (asm_language_data): Likewise.
3761 (minimal_language_data): Likewise.
3762 * d-lang.c (d_language_data): Likewise.
3763 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3764 (f_language_data): Delete la_emitchar initializer.
3765 (f_language::emitchar): New member function, implementation from
3766 f_emit_char.
3767 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3768 * language.c (unk_lang_emit_char): Delete.
3769 (language_defn::emitchar): New member function definition.
3770 (unknown_language_data): Delete la_emitchar initializer.
3771 (unknown_language::emitchar): New member function.
3772 (auto_language_data): Delete la_emitchar initializer.
3773 (auto_language::emitchar): New member function.
3774 * language.h (language_data): Delete la_emitchar field.
3775 (language_defn::emitchar): New member field declaration.
3776 (LA_EMIT_CHAR): Update call to emitchar.
3777 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3778 (m2_language_data): Delete la_emitchar initializer.
3779 (m2_language::emitchar): New member function, implementation from
3780 m2_emit_char.
3781 * objc-lang.c (objc_language_data): Delete la_emitchar
3782 initializer.
3783 * opencl-lang.c (opencl_language_data): Likewise.
3784 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3785 (pascal_language_data): Delete la_emitchar initializer.
3786 (pascal_language::emitchar): New member function, implementation
3787 from pascal_emit_char.
3788 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3789 (rust_language_data): Delete la_emitchar initializer.
3790 (rust_language::emitchar): New member function, implementation
3791 from rust_emitchar.
3792
1bf9c363
AB
37932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3796 (ada_language_data): Delete la_post_parser initializer.
3797 (ada_language::post_parser): New member function.
3798 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3799 (cplus_language_data): Likewise.
3800 (asm_language_data): Likewise.
3801 (minimal_language_data): Likewise.
3802 * d-lang.c (d_language_data): Likewise.
3803 * f-lang.c (f_language_data): Likewise.
3804 * go-lang.c (go_language_data): Likewise.
3805 * language.c (unknown_language_data): Likewise.
3806 (auto_language_data): Likewise.
3807 * language.h (language_data): Delete la_post_parser field.
3808 (language_defn::post_parser): New member function.
3809 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3810 * objc-lang.c (objc_language_data): Likewise.
3811 * opencl-lang.c (opencl_language_data): Likewise.
3812 * p-lang.c (pascal_language_data): Likewise.
3813 * parse.c (parse_exp_in_context): Update call to post_parser.
3814 (null_post_parser): Delete definition.
3815 * parser-defs.h (null_post_parser): Delete declaration.
3816 * rust-lang.c (rust_language_data): Delete la_post_parser
3817 initializer.
3818
87afa652
AB
38192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * ada-lang.c (parse): Rename to ada_language::parser.
3822 (ada_language_data): Delete la_parser initializer.
3823 (ada_language::parser): New member function, implementation from
3824 parse.
3825 * c-lang.c (c_language_data): Delete la_parser initializer.
3826 (cplus_language_data): Likewise.
3827 (asm_language_data): Likewise.
3828 (minimal_language_data): Likewise.
3829 * d-lang.c (d_language_data): Likewise.
3830 (d_language::parser): New member function.
3831 * f-lang.c (f_language_data): Delete la_parser initializer.
3832 (f_language::parser): New member function.
3833 * go-lang.c (go_language_data): Delete la_parser initializer.
3834 (go_language::parser): New member function.
3835 * language.c (unk_lang_parser): Delete.
3836 (language_defn::parser): Define new member function.
3837 (unknown_language_data): Delete la_parser initializer.
3838 (unknown_language::parser): New member function.
3839 (auto_language_data): Delete la_parser initializer.
3840 (auto_language::parser): New member function.
3841 * language.h (language_data): Delete la_parser field.
3842 (language_defn::parser): Declare new member function.
3843 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3844 (m2_language::parser): New member function.
3845 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3846 * opencl-lang.c (opencl_language_data): Likewise.
3847 * p-lang.c (pascal_language_data): Likewise.
3848 (pascal_language::parser): New member function.
3849 * parse.c (parse_exp_in_context): Update call to parser.
3850 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3851 (rust_language::parser): New member function.
3852
37825800
AB
38532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * top.c (print_gdb_configuration): Print --with-python-libdir
3856 configuration value.
3857
5b860c93
PW
38582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3859
3860 * NEWS: Mention change to the alias command.
3861
cf00cd6f
PW
38622020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3863
3864 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3865 (alias_command_completer)
3866 (make_alias_options_def_group): New functions.
3867 (alias_opts, alias_option_defs): New struct and array.
3868 (alias_usage_error): Update usage.
3869 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3870 Use option framework.
3871 (_initialize_cli_cmds): Update alias command help.
3872 Update aliases command help.
3873 (show_user):
3874 Add NULL for new default_args lookup_cmd argument.
3875 (valid_command_p): Rename to validate_aliased_command.
3876 Add NULL for new default_args lookup_cmd argument. Verify that the
3877 aliased_command has no default args.
3878 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3879 (lookup_cmd_1, lookup_cmd): New argument default_args.
3880 (add_alias_cmd):
3881 Add NULL for new default_args lookup_cmd argument.
3882 (print_help_for_command): Show default args under the layout
3883 alias some_alias = some_aliased_cmd some_alias_default_arg.
3884 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3885 xfree default_args in destructor.
3886 * cli/cli-script.c (process_next_line, do_define_command):
3887 Add NULL for new default_args lookup_cmd argument.
3888 * command.h: Declare new default_args argument in lookup_cmd
3889 and lookup_cmd_1.
3890 * completer.c (complete_line_internal_1):
3891 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3892 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3893 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3894 Likewise.
3895 * infcmd.c (_initialize_infcmd): Likewise.
3896 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3897 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3898 * python/py-param.c (add_setshow_generic): Likewise.
3899 * remote.c (_initialize_remote): Likewise.
3900 * top.c (execute_command): Prepend default_args if command has some.
3901 (set_verbose):
3902 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3903 * tracepoint.c (validate_actionline, encode_actions_1):
3904 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3905
bd920864
TBA
39062020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3907
3908 * jit.c (jit_read_descriptor): Use bool as the return type.
3909 (jit_breakpoint_re_set_internal): Use bool as the return type.
3910 Invert the return value logic; return true if the jit breakpoint
3911 has been successfully initialized.
3912 (jit_inferior_init): Update the call to
3913 jit_breakpoint_re_set_internal.
3914
f8098322
PA
39152020-06-22 Pedro Alves <palves@redhat.com>
3916
3917 PR gdb/25939
3918 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3919 Use the current inferior instead. Don't return
3920 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3921 wait again.
3922 * sol-thread.c (sol_thread_target::wait): Don't reference
3923 inferior_ptid.
3924 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3925 (sol_update_thread_list_callback): Use the current inferior's pid
3926 instead of inferior_ptid.
3927
196535a6
RO
39282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3929
3930 * procfs.c: Cleanup many comments.
3931
3932 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3933 (AFTER_WATCHFLAG): Replace by value.
3934
3935 (MAIN_PROC_NAME_FORMAT): Inline ...
3936 (create_procinfo): ... here.
3937
3938 (procfs_debug_inferior): Remove SYS_exec handling.
3939 (syscall_is_exec): Likewise.
3940 (procfs_set_exec_trap): Likewise.
3941
3942 (syscall_is_lwp_exit): Inline in callers.
3943 (syscall_is_exit): Likewise.
3944 (syscall_is_exec): Likewise.
3945 (syscall_is_lwp_create): Likewise.
3946
3947 (invalidate_cache): Remove #if 0 code.
3948
3949 (make_signal_thread_runnable): Remove.
3950 (procfs_target::resume): Remove #if 0 code.
3951
cf6f3e86
RO
39522020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3953
3954 PR gdb/25939
3955 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3956 call ...
3957 (procfs_target::create_inferior): ... here.
3958
48e9cc84
PW
39592020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3960
3961 * exec.c (validate_exec_file): Ensure the build-id is up to
3962 date by calling reopen_exec_file (that checks file timestamp
3963 to decide to re-read the file).
3964
3922b302
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 PR gdb/25412
3968 * gdbthread.h (delete_thread, delete_thread_silent)
3969 (find_thread_ptid): Update comments.
3970 * thread.c (current_thread_): New global.
3971 (is_current_thread): Move higher, and reimplement.
3972 (inferior_thread): Reimplement.
3973 (set_thread_exited): Use bool. Add assertions.
3974 (add_thread_silent): Simplify thread-reuse handling by always
3975 calling delete_thread.
3976 (delete_thread): Remove intro comment.
3977 (find_thread_ptid): Skip exited threads.
3978 (switch_to_thread_no_regs): Write to current_thread_.
3979 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3980 INFERIOR_PTID. Clear current_thread_.
3981
6dbdab44
PA
39822020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * aix-thread.c (pd_update): Use switch_to_thread.
3985
2da4b788
PA
39862020-06-18 Pedro Alves <palves@redhat.com>
3987
3988 * ravenscar-thread.c (ravenscar_thread_target): Update.
3989 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3990 (ravenscar_thread_target::add_active_thread): ... this. Don't
3991 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3992 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3993
50838d1b
PA
39942020-06-18 Pedro Alves <palves@redhat.com>
3995
3996 * nat/windows-nat.c (current_windows_thread): Remove.
3997 * nat/windows-nat.h (current_windows_thread): Remove.
3998 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3999 Adjust.
4000 (display_selectors): Adjust to fetch the current
4001 windows_thread_info based on inferior_ptid.
4002 (fake_create_process): No longer write to current_windows_thread.
4003 (windows_nat_target::get_windows_debug_event):
4004 Don't set inferior_ptid or current_windows_thread.
4005 (windows_nat_target::wait): Adjust to not rely on
4006 current_windows_thread.
4007 (do_initial_windows_stuff): Now a method of windows_nat_target.
4008 Switch to the last_ptid thread.
4009 (windows_nat_target::attach): Adjust.
4010 (windows_nat_target::detach): Use switch_to_no_thread instead of
4011 writing to inferior_ptid directly.
4012 (windows_nat_target::create_inferior): Adjust.
4013
31ce04e9
PA
40142020-06-18 Pedro Alves <palves@redhat.com>
4015
4016 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4017
1ee1a363
PA
40182020-06-18 Pedro Alves <palves@redhat.com>
4019
4020 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4021 after creating it, instead of writing to inferior_ptid. Don't
4022 write to inferior_ptid.
4023
6d350754
PA
40242020-06-18 Pedro Alves <palves@redhat.com>
4025
4026 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4027
5d971d48
PA
40282020-06-18 Pedro Alves <palves@redhat.com>
4029
4030 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4031 it, instead of writing to inferior_ptid.
4032
86e57d1b
PA
40332020-06-18 Pedro Alves <palves@redhat.com>
4034
4035 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4036 to inferior_ptid.
4037
f2e1c129
PA
40382020-06-18 Pedro Alves <palves@redhat.com>
4039
4040 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4041 instead of writing to inferior_ptid directly.
4042
60db1b85
PA
40432020-06-18 Pedro Alves <palves@redhat.com>
4044
4045 * corelow.c (core_target::close): Use switch_to_no_thread instead
4046 of writing to inferior_ptid directly.
4047 (add_to_thread_list, core_target_open): Use switch_to_thread
4048 instead of writing to inferior_ptid directly.
4049
fe7d6a8d
PA
40502020-06-18 Pedro Alves <palves@redhat.com>
4051
4052 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4053 inferior_ptid.
4054 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4055 inferior_ptid.
4056 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4057 inferior_ptid directly.
4058 (darwin_nat_target::init_thread_list): Switch to thread, instead
4059 of writing to inferior_ptid.
4060 (darwin_nat_target::attach): Don't write to inferior_ptid.
4061 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4062
975f8708
PA
40632020-06-18 Pedro Alves <palves@redhat.com>
4064
4065 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4066 thread.
4067 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4068 Instead use switch_to_thread.
4069 (gnu_nat_target::detach): Use switch_to_no_thread
4070 instead of writing to inferior_ptid directly. Used passed-in
4071 inferior instead of looking up the inferior by pid.
4072
1a204730
PA
40732020-06-18 Pedro Alves <palves@redhat.com>
4074
4075 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4076 inferior_ptid.
4077
ebe84f23
PA
40782020-06-18 Pedro Alves <palves@redhat.com>
4079
4080 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4081 inferior_ptid.
4082 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4083 thread.
4084 (nto_procfs_target::detach): Avoid referencing
4085 inferior_ptid. Use switch_to_no_thread instead of writing to
4086 inferior_ptid directly.
4087 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4088 instead of writing to inferior_ptid directly.
4089 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4090 to thread.
4091
191f02e5
PA
40922020-06-18 Pedro Alves <palves@redhat.com>
4093
4094 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4095 after creating it, instead of writing to inferior_ptid.
4096 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4097 to inferior_ptid directly.
4098 (gdbsim_target::wait): Don't write to inferior_ptid.
4099
0ac55310
PA
41002020-06-18 Pedro Alves <palves@redhat.com>
4101
4102 * remote.c (remote_target::remote_notice_new_inferior): Use
4103 switch_to_thread instead of writing to inferior_ptid directly.
4104 (remote_target::add_current_inferior_and_thread): Use
4105 switch_to_no_thread instead of writing to inferior_ptid directly.
4106 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4107 and switch_to_thread instead of using set_current_inferior or
4108 writing to inferior_ptid directly.
4109
5233f39b
PA
41102020-06-18 Pedro Alves <palves@redhat.com>
4111
4112 * tracectf.c (ctf_target_open): Switch to added thread instead of
4113 writing to inferior_ptid directly.
4114 (ctf_target::close): Use switch_to_no_thread instead of writing to
4115 inferior_ptid directly.
4116
087e161b
PA
41172020-06-18 Pedro Alves <palves@redhat.com>
4118
4119 * tracefile-tfile.c (tfile_target_open): Don't write to
4120 inferior_ptid directly, instead switch to added thread.
4121 (tfile_target::close): Use switch_to_no_thread instead of writing
4122 to inferior_ptid directly.
4123
7fb43e53
PA
41242020-06-18 Pedro Alves <palves@redhat.com>
4125
4126 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4127 (procfs_target::detach): Use switch_to_no_thread
4128 instead of writing to inferior_ptid directly.
4129 (do_attach): Change return type to void. Switch to the added
4130 thread.
4131 (procfs_target::create_inferior): Switch to the added thread.
4132 (procfs_do_thread_registers): Don't write to inferior_ptid.
4133
18493a00
PA
41342020-06-18 Pedro Alves <palves@redhat.com>
4135
4136 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4137 of writing to inferior_ptid.
4138 (scoped_restore_exited_inferior): Delete.
4139 (handle_vfork_child_exec_or_exit): Simplify using
4140 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4141 instead of writing to inferior_ptid.
4142 (THREAD_STOPPED_BY): Delete.
4143 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4144 (thread_stopped_by_hw_breakpoint): Delete.
4145 (save_waitstatus): Use
4146 scoped_restore_current_thread+switch_to_thread, and call
4147 target_stopped_by_watchpoint instead of
4148 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4149 instead of thread_stopped_by_sw_breakpoint, and
4150 target_stopped_by_hw_breakpoint instead of
4151 thread_stopped_by_hw_breakpoint.
4152 (handle_inferior_event)
4153 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4154 inferior_ptid directly, nor
4155 set_current_inferior/set_current_program_space. Use
4156 switch_to_thread / switch_to_inferior_no_thread instead.
4157
a0776b13
PA
41582020-06-18 Pedro Alves <palves@redhat.com>
4159
4160 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4161 instead of writing to inferior_ptid.
4162
6155c136
PA
41632020-06-18 Pedro Alves <palves@redhat.com>
4164
4165 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4166 added thread.
4167 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4168 to the added thread.
4169 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4170 instead of writing to inferior_ptid.
4171
c5316fc6
PA
41722020-06-18 Pedro Alves <palves@redhat.com>
4173
4174 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4175 (register_to_value_test): Mock a program_space too. Heap-allocate
4176 the address space. Don't write to inferior_ptid. Use
4177 switch_to_thread instead.
4178
8df01799
PA
41792020-06-18 Pedro Alves <palves@redhat.com>
4180
4181 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4182 Delete.
4183 (find_signalled_thread()): New, factored out from
4184 linux_make_corefile_notes and adjusted to handle exited threads.
4185 (linux_make_corefile_notes): Adjust to use the new
4186 find_signalled_thread.
4187
41792d68
PA
41882020-06-18 Pedro Alves <palves@redhat.com>
4189
4190 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4191 of saving/restoring inferior_ptid.
4192
612f258a
TT
41932020-06-17 Tom Tromey <tom@tromey.com>
4194
4195 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4196 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4197 declare.
4198 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4199
efb763a5
SM
42002020-06-15 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4203 of partial symtabs.
4204
2951f6c0
SM
42052020-06-17 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * regformats/reg-arm.dat: Remove.
4208 * regformats/reg-bfin.dat: Remove.
4209 * regformats/reg-cris.dat: Remove.
4210 * regformats/reg-crisv32.dat: Remove.
4211 * regformats/reg-m32r.dat: Remove.
4212 * regformats/reg-tilegx.dat: Remove.
4213 * regformats/reg-tilegx32.dat: Remove.
4214
7d458ea5
SM
42152020-06-17 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * features/Makefile (WHICH): Remove arm files.
4218 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4219 * regformats/arm/arm-with-neon.dat: Remove.
4220 * regformats/arm/arm-with-vfpv2.dat: Remove.
4221 * regformats/arm/arm-with-vfpv3.dat: Remove.
4222
3af96c0d
SM
42232020-06-17 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * features/Makefile (XMLTOC): Remove rx.xml.
4226
b25e22fd
PA
42272020-06-17 Pedro Alves <palves@redhat.com>
4228
4229 * gdbthread.h (thread_control_state) <trap_expected> Update
4230 comments.
4231
a78a19b1
AB
42322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4235 ada_language::lookup_symbol_nonlocal.
4236 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4237 (ada_language::lookup_symbol_nonlocal): New member function,
4238 implementation from ada_lookup_symbol_nonlocal.
4239 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4240 initializer.
4241 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4242 initializer.
4243 (cplus_language::lookup_symbol_nonlocal): New member function.
4244 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4245 (minimal_language_data) Likewise.
4246 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4247 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4248 initializer.
4249 (d_language::lookup_symbol_nonlocal): New member function.
4250 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4251 initializer.
4252 (f_language::lookup_symbol_nonlocal): New member function.
4253 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4254 initializer.
4255 * language.c (unknown_language_data): Likewise.
4256 (auto_language_data): Likewise.
4257 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4258 field.
4259 (language_defn::lookup_symbol_nonlocal): New member function.
4260 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4261 initializer.
4262 * objc-lang.c (objc_language_data): Likewise.
4263 * opencl-lang.c (opencl_language_data): Likewise.
4264 * p-lang.c (pascal_language_data): Likewise.
4265 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4266 rust_language::lookup_symbol_nonlocal.
4267 (rust_language_data): Delete la_lookup_symbol_nonlocal
4268 initializer.
4269 (rust_language::lookup_symbol_nonlocal): New member function,
4270 implementation from rust_lookup_symbol_nonlocal.
4271 * symtab.c (lookup_symbol_aux): Update call to
4272 lookup_symbol_nonlocal.
4273 (basic_lookup_symbol_nonlocal): Rename to...
4274 (language_defn::lookup_symbol_nonlocal): ...this, and update
4275 header comment. Remove language_defn parameter, and replace with
4276 uses of `this'.
4277 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4278
ebe2334e
AB
42792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4282 initializer.
4283 (ada_language::value_print_inner): New member function.
4284 * c-lang.c (c_language_data): Delete la_value_print_inner
4285 initializer.
4286 (cplus_language_data): Likewise.
4287 (asm_language_data): Likewise.
4288 (minimal_language_data): Likewise.
4289 * d-lang.c (d_language_data): Likewise.
4290 (d_language::value_print_inner): New member function.
4291 * f-lang.c (f_language_data): Delete la_value_print_inner
4292 initializer.
4293 (f_language::value_print_inner): New member function.
4294 * f-lang.h (f_value_print_innner): Rename to...
4295 (f_value_print_inner): ...this (note spelling of 'inner').
4296 * f-valprint.c (f_value_print_innner): Rename to...
4297 (f_value_print_inner): ...this (note spelling of 'inner').
4298 * go-lang.c (go_language_data): Delete la_value_print_inner
4299 initializer.
4300 (go_language::value_print_inner): New member function.
4301 * language.c (language_defn::value_print_inner): Define new member
4302 function.
4303 (unk_lang_value_print_inner): Delete.
4304 (unknown_language_data): Delete la_value_print_inner initializer.
4305 (unknown_language::value_print_inner): New member function.
4306 (auto_language_data): Delete la_value_print_inner initializer.
4307 (auto_language::value_print_inner): New member function.
4308 * language.h (language_data): Delete la_value_print_inner field.
4309 (language_defn::value_print_inner): Delcare new member function.
4310 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4311 initializer.
4312 (m2_language::value_print_inner): New member function.
4313 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4314 initializer.
4315 * opencl-lang.c (opencl_language_data): Likewise.
4316 * p-lang.c (pascal_language_data): Likewise.
4317 (pascal_language::value_print_inner): New member function.
4318 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4319 initializer.
4320 (rust_language::value_print_inner): New member function.
4321 * valprint.c (do_val_print): Update call to value_print_inner.
4322
a1d1fa3e
AB
43232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4324
4325 * ada-lang.c (ada_language_data): Delete la_value_print
4326 initializer.
4327 (ada_language::value_print): New member function.
4328 * c-lang.c (c_language_data): Delete la_value_print initializer.
4329 (cplus_language_data): Likewise.
4330 (asm_language_data): Likewise.
4331 (minimal_language_data): Likewise.
4332 * d-lang.c (d_language_data): Likewise.
4333 * f-lang.c (f_language_data): Likewise.
4334 * go-lang.c (go_language_data): Likewise.
4335 * language.c (unk_lang_value_print): Delete.
4336 (language_defn::value_print): Define new member function.
4337 (unknown_language_data): Delete la_value_print initializer.
4338 (unknown_language::value_print): New member function.
4339 (auto_language_data): Delete la_value_print initializer.
4340 (auto_language::value_print): New member function.
4341 * language.h (language_data): Delete la_value_print field.
4342 (language_defn::value_print): Declare new member function.
4343 (LA_VALUE_PRINT): Update call to value_print.
4344 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4345 * objc-lang.c (objc_language_data): Likewise.
4346 * opencl-lang.c (opencl_language_data): Likewise.
4347 * p-lang.c (pascal_language_data): Likewise.
4348 (pascal_language::value_print): New member function.
4349 * rust-lang.c (rust_language_data): Delete la_value_print
4350 initializer.
4351
f16a9f57
AB
43522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4353
4354 * ada-lang.c (ada_watch_location_expression): Rename to
4355 ada_language::watch_location_expression.
4356 (ada_language_data): Delete la_watch_location_expression
4357 initializer.
4358 (ada_language::watch_location_expression): New member function,
4359 implementation from ada_watch_location_expression.
4360 * breakpoint.c (watch_command_1): Update call to
4361 watch_location_expression.
4362 * c-lang.c (c_watch_location_expression): Rename to
4363 language_defn::watch_location_expression.
4364 (c_language_data): Delete la_watch_location_expression
4365 initializer.
4366 (cplus_language_data): Likewise.
4367 (asm_language_data): Likewise.
4368 (minimal_language_data): Likewise.
4369 * c-lang.h (c_watch_location_expression): Delete declaration.
4370 * d-lang.c (d_language_data): Delete la_watch_location_expression
4371 initializer.
4372 * f-lang.c (f_language_data): Likewise.
4373 * go-lang.c (go_language_data): Likewise.
4374 * language.c (language_defn::watch_location_expression): Member
4375 function implementation from c_watch_location_expression.
4376 (unknown_language_data): Delete la_watch_location_expression
4377 initializer.
4378 (auto_language_data): Likewise.
4379 * language.h (language_data): Delete la_watch_location_expression
4380 field.
4381 (language_defn::watch_location_expression): Declare new member
4382 function.
4383 * m2-lang.c (m2_language_data): Delete
4384 la_watch_location_expression initializer.
4385 * objc-lang.c (objc_language_data): Likewise.
4386 * opencl-lang.c (opencl_language_data): Likewise.
4387 * p-lang.c (pascal_language_data): Likewise.
4388 * rust-lang.c (rust_watch_location_expression): Rename to
4389 rust_language::watch_location_expression.
4390 (rust_language_data): Delete la_watch_location_expression
4391 initializer.
4392 (rust_language::watch_location_expression): New member function,
4393 implementation from rust_watch_location_expression.
4394
7e56227d
AB
43952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4398 ada_language::collect_symbol_completion_matches.
4399 (ada_language_data): Delete la_collect_symbol_completion_matches
4400 initializer.
4401 (ada_language::collect_symbol_completion_matches): New member
4402 function, implementation from
4403 ada_collect_symbol_completion_matches.
4404 * c-lang.c (c_language_data): Delete
4405 la_collect_symbol_completion_matches initializer.
4406 (cplus_language_data): Likewise.
4407 (asm_language_data): Likewise.
4408 (minimal_language_data): Likewise.
4409 * d-lang.c (d_language_data): Likewise.
4410 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4411 f_language::collect_symbol_completion_matches.
4412 (f_language_data): Delete la_collect_symbol_completion_matches
4413 initializer.
4414 (f_language::collect_symbol_completion_matches) New member
4415 function, implementation from f_collect_symbol_completion_matches.
4416 * go-lang.c (go_language_data): Delete
4417 la_collect_symbol_completion_matches initializer.
4418 * language.c (unknown_language_data): Likewise.
4419 (auto_language_data): Likewise.
4420 * language.h (language_data): Delete
4421 la_collect_symbol_completion_matches field.
4422 (language_defn::collect_symbol_completion_matches): New member
4423 function.
4424 * m2-lang.c (m2_language_data): Delete
4425 la_collect_symbol_completion_matches initializer.
4426 * objc-lang.c (objc_language_data): Likewise.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Likewise.
4429 * rust-lang.c (rust_language_data): Likewise.
4430 * symtab.c (default_collect_symbol_completion_matches): Delete.
4431 (collect_symbol_completion_matches): Update call to
4432 collect_symbol_completion_matches.
4433 (collect_symbol_completion_matches_type): Likewise.
4434 * symtab.h (default_collect_symbol_completion_matches): Delete
4435 declaration.
4436
53fc67f8
AB
44372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4438
4439 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4440 (ada_language_data): Delete la_word_break_characters initializer.
4441 (ada_language::word_break_characters): New member function.
4442 * c-lang.c (c_language_data): Delete la_word_break_characters
4443 initializer.
4444 (cplus_language_data): Likewise.
4445 (asm_language_data): Likewise.
4446 (minimal_language_data): Likewise.
4447 * completer.c: Update global comment.
4448 (advance_to_expression_complete_word_point): Update call to
4449 word_break_characters.
4450 (complete_files_symbols): Likewise.
4451 (complete_line_internal_1): Likewise.
4452 (default_completer_handle_brkchars): Likewise.
4453 (skip_quoted_chars): Likewise.
4454 * d-lang.c (d_language_data): Delete la_word_break_characters
4455 initializer.
4456 * f-lang.c (f_word_break_characters): Delete.
4457 (f_language_data): Delete la_word_break_characters initializer.
4458 (f_language::word_break_characters): New member function.
4459 * go-lang.c (go_language_data): Delete la_word_break_characters
4460 initializer.
4461 * language.c (unknown_language_data): Likewise.
4462 (auto_language_data): Likewise.
4463 * language.h (default_word_break_characters): Move declaration to
4464 earlier in the file.
4465 (language_data): Delete la_word_break_characters field.
4466 (language_defn::word_break_characters): New member function.
4467 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4468 initializer.
4469 * objc-lang.c (objc_language_data): Likewise.
4470 * opencl-lang.c (opencl_language_data): Likewise.
4471 * p-lang.c (pascal_language_data): Likewise.
4472 * rust-lang.c (rust_language_data): Likewise.
4473
c9debfb9
AB
44742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4475
4476 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4477 (ada_language_data): Delete la_get_symbol_name_matcher
4478 initializer.
4479 (language_defn::get_symbol_name_matcher_inner): New member
4480 function.
4481 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4482 initializer.
4483 (cplus_language_data): Likewise.
4484 (cplus_language::get_symbol_name_matcher_inner): New member
4485 function.
4486 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4487 (minimal_language_data): Likewise.
4488 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4489 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4490 initializer.
4491 * dictionary.c (iter_match_first_hashed): Update call to
4492 get_symbol_name_matcher.
4493 (iter_match_next_hashed): Likewise.
4494 (iter_match_next_linear): Likewise.
4495 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4496 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4497 initializer.
4498 (f_language::get_symbol_name_matcher_inner): New member function.
4499 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4500 initializer.
4501 * language.c (default_symbol_name_matcher): Update header comment,
4502 make static.
4503 (language_defn::get_symbol_name_matcher): New definition.
4504 (language_defn::get_symbol_name_matcher_inner): Likewise.
4505 (get_symbol_name_matcher): Delete.
4506 (unknown_language_data): Delete la_get_symbol_name_matcher
4507 initializer.
4508 (auto_language_data): Likewise.
4509 * language.h (language_data): Delete la_get_symbol_name_matcher
4510 field.
4511 (language_defn::get_symbol_name_matcher): New member function.
4512 (language_defn::get_symbol_name_matcher_inner): Likewise.
4513 (default_symbol_name_matcher): Delete declaration.
4514 * linespec.c (find_methods): Update call to
4515 get_symbol_name_matcher.
4516 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4517 initializer.
4518 * minsyms.c (lookup_minimal_symbol): Update call to
4519 get_symbol_name_matcher.
4520 (iterate_over_minimal_symbols): Likewise.
4521 * objc-lang.c (objc_language_data): Delete
4522 la_get_symbol_name_matcher initializer.
4523 * opencl-lang.c (opencl_language_data): Likewise.
4524 * p-lang.c (pascal_language_data): Likewise.
4525 * psymtab.c (psymbol_name_matches): Update call to
4526 get_symbol_name_matcher.
4527 * rust-lang.c (rust_language_data): Delete
4528 la_get_symbol_name_matcher initializer.
4529 * symtab.c (symbol_matches_search_name): Update call to
4530 get_symbol_name_matcher.
4531 (compare_symbol_name): Likewise.
4532
9a49ad8c
AB
45332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * ada-lang.c (ada_language_data): Delete la_compute_program
4536 initializer.
4537 * c-lang.c (c_language_data): Likewise.
4538 (c_language::compute_program): New member function.
4539 (cplus_language_data): Delete la_compute_program initializer.
4540 (cplus_language::compute_program): New member function.
4541 (asm_language_data): Delete la_compute_program initializer.
4542 (minimal_language_data): Likewise.
4543 * c-lang.h (c_compute_program): Update comment.
4544 (cplus_compute_program): Likewise.
4545 * compile/compile-c-support.c (c_compute_program): Likewise.
4546 (cplus_compute_program): Likewise.
4547 * compile/compile.c (compile_to_object): Update call to
4548 la_compute_program.
4549 * d-lang.c (d_language_data): Delete la_compute_program
4550 initializer.
4551 * f-lang.c (f_language_data): Likewise.
4552 * go-lang.c (go_language_data): Likewise.
4553 * language.c (unknown_language_data): Likewise.
4554 (auto_language_data): Likewise.
4555 * language.h (language_data): Delete la_compute_program field.
4556 (language_defn::compute_program): New member function.
4557 * m2-lang.c (m2_language_data): Delete la_compute_program
4558 initializer.
4559 * objc-lang.c (objc_language_data): Likewise.
4560 * opencl-lang.c (opencl_language_data): Likewise.
4561 * p-lang.c (pascal_language_data): Likewise.
4562 * rust-lang.c (rust_language_data): Likewise.
4563
eff93b4d
AB
45642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * ada-lang.c (ada_language_data) Delete
4567 la_class_name_from_physname initializer.
4568 * c-lang.c (c_language_data): Likewise.
4569 (cplus_language_data): Likewise.
4570 (cplus_language::class_name_from_physname): New member function.
4571 (asm_language_data): Delete la_class_name_from_physname
4572 initializer.
4573 (minimal_language_data): Likewise.
4574 * d-lang.c (d_language_data): Likewise.
4575 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4576 method on language_defn class.
4577 (guess_full_die_structure_name): Likewise.
4578 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4579 initializer.
4580 * go-lang.c (go_language_data): Likewise.
4581 * language.c (language_class_name_from_physname): Delete.
4582 (unk_lang_class_name): Delete.
4583 (unknown_language_data): Delete la_class_name_from_physname
4584 initializer.
4585 (auto_language_data): Likewise.
4586 * language.h (language_data): Delete la_class_name_from_physname
4587 field.
4588 (language_defn::class_name_from_physname): New function.
4589 (language_class_name_from_physname): Delete declaration.
4590 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4591 initializer.
4592 * objc-lang.c (objc_language_data): Likewise.
4593 * opencl-lang.c (opencl_language_data): Likewise.
4594 * p-lang.c (pascal_language_data): Likewise.
4595 * rust-lang.c (rust_language_data): Likewise.
4596
de543742
TT
45972020-06-16 Tom Tromey <tom@tromey.com>
4598
4599 * tui/tui-data.h (STATUS_NAME): New macro.
4600 * tui/tui-layout.c (tui_remove_some_windows)
4601 (initialize_known_windows, tui_register_window)
4602 (tui_layout_split::remove_windows, initialize_layouts)
4603 (tui_new_layout_command): Don't use hard-coded window names.
4604
a350efd4
TT
46052020-06-16 Tom Tromey <tom@tromey.com>
4606
4607 PR tui/25348:
4608 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4609 tui_initialize_readline. Only run once. Call rl_initialize.
4610 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4611 tui_initialize_readline.
4612 * tui/tui-io.c (tui_setup_io): Call
4613 tui_ensure_readline_initialized.
4614 * tui/tui-interp.c (tui_interp::init): Update.
4615
39ec0490
TT
46162020-06-16 Tom Tromey <tom@tromey.com>
4617
4618 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4619 Also preserve the status window.
4620
d2d1ea20
TT
46212020-06-16 Tom Tromey <tom@tromey.com>
4622
4623 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4624 where m_window==nullptr.
4625
66920317
TT
46262020-06-15 Tom Tromey <tromey@adacore.com>
4627
4628 * windows-nat.c (windows_nat::handle_output_debug_string):
4629 Update.
4630 (windows_nat::handle_ms_vc_exception): Update.
4631 * target.h (target_read_string): Change API.
4632 * target.c (target_read_string): Change API.
4633 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4634 Update.
4635 * solib-frv.c (frv_current_sos): Update.
4636 * solib-dsbt.c (dsbt_current_sos): Update.
4637 * solib-darwin.c (darwin_current_sos): Update.
4638 * linux-thread-db.c (inferior_has_bug): Update.
4639 * expprint.c (print_subexp_standard): Update.
4640 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4641 (ada_exception_message_1): Update.
4642
a5d871dd
TT
46432020-06-15 Tom Tromey <tromey@adacore.com>
4644
4645 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4646
670e35fa
TT
46472020-06-15 Tom Tromey <tromey@adacore.com>
4648
4649 * valprint.c (read_string): Update comment.
4650 * target.c (MIN): Remove.
4651 (target_read_string): Rewrite.
4652
f5272a3b
TT
46532020-06-15 Tom Tromey <tromey@adacore.com>
4654
4655 * corefile.c (read_memory_string): Remove.
4656 * ada-valprint.c (ada_value_print_ptr): Update.
4657 * ada-lang.h (ada_tag_name): Change return type.
4658 * ada-lang.c (type_from_tag): Update.
4659 (ada_tag_name_from_tsd): Change return type. Use
4660 target_read_string.
4661 (ada_tag_name): Likewise.
4662 * gdbcore.h (read_memory_string): Don't declare.
4663
2c074f49
HD
46642020-06-14 Hannes Domani <ssbssa@yahoo.de>
4665
4666 * symtab.c (rbreak_command): Ignore Windows drive colon.
4667
6a17d503
SM
46682020-06-12 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * NEWS: Mention removed GDBserver host support.
4671
453c733f
NC
46722020-06-12 Nelson Chu <nelson.chu@sifive.com>
4673
4674 * features/riscv/rebuild-csr-xml.sh: Updated.
4675
2b4e6a3f
TT
46762020-06-11 Tom Tromey <tom@tromey.com>
4677
4678 PR gdb/18318:
4679 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4680
4412332f
JG
46812020-06-09 Jonny Grant <jg@jguk.org>
46822020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * main.c (captured_main_1): Don't print new line after help.
4685 (print_gdb_help): add mailing list and IRC channel information
4686 to --help. Add new lines between items in the footer. Remove
4687 quotes around bug url.
4688
2f33032a
KS
46892020-06-11 Keith Seitz <keiths@redhat.com>
4690
4691 PR gdb/21356
4692 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4693 Resolve typedefs for type length calculations.
4694
7ab96794
TV
46952020-06-10 Tom de Vries <tdevries@suse.de>
4696
4697 PR ada/24713
4698 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4699 (write_psymbols): Enable .gdb_index for ada.
4700 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4701 ada.
4702
e5f3ece2
TV
47032020-06-10 Tom de Vries <tdevries@suse.de>
4704
4705 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4706 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4707 namei" instead of "const char *name" argument.
4708 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4709 dw2_symtab_iter_init.
4710
940da03e
SM
47112020-06-08 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4714 to use type::field and field::type instead.
4715
b6cdac4b
SM
47162020-06-08 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4719 to use field::type instead.
4720
5d14b6e5
SM
47212020-06-08 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (struct field) <type, set_type>: New methods.
4724 Rename `type` field to...
4725 <m_type>: ... this. Change references throughout to use type or
4726 set_type methods.
4727 (FIELD_TYPE): Use field::type. Change call sites that modify
4728 the field's type to use field::set_type instead.
4729
3d967001
SM
47302020-06-08 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4733 to use type::index_type instead.
4734
262abc0d
SM
47352020-06-08 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4738 methods.
4739 (TYPE_INDEX_TYPE): Use type::index_type.
4740 * gdbtypes.c (create_array_type_with_stride): Likewise.
4741
82836c92
TT
47422020-06-07 Tom Tromey <tom@tromey.com>
4743
4744 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4745 parameter.
4746 (generic_value_print): Update.
4747
940dace9
AB
47482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4749
4750 Revert commit 982a38f60b0.
4751 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4752
982a38f6
AB
47532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4754
4755 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4756 avoid use after free.
4757
82f06518
TV
47582020-06-05 Tom de Vries <tdevries@suse.de>
4759
4760 * NEWS: Fix typos.
4761
f8c41851
SM
47622020-06-04 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4765 the per_bfd object.
4766 (dwarf2_read_debug_names): Likewise.
4767 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4768 object when re-using a per_bfd object with an index.
4769
f9b5d5ea
TV
47702020-06-03 Tom de Vries <tdevries@suse.de>
4771
4772 PR symtab/26046
4773 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4774 children for C++.
4775 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4776 DW_TAG_subprogram.
4777
f6eee2d0
AB
47782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 * ada-lang.c (ada_language_data): Delete skip_trampoline
4781 initializer.
4782 * c-lang.c (c_language_data): Likewise.
4783 (cplus_language_data): Likewise.
4784 (cplus_language::skip_trampoline): New member function.
4785 (asm_language_data): Delete skip_trampoline initializer.
4786 (minimal_language_data): Likewise.
4787 * d-lang.c (d_language_data): Likewise.
4788 * f-lang.c (f_language_data): Likewise.
4789 * go-lang.c (go_language_data): Likewise.
4790 * language.c (unk_lang_trampoline): Delete function.
4791 (skip_language_trampoline): Update.
4792 (unknown_language_data): Delete skip_trampoline initializer.
4793 (auto_language_data): Likewise.
4794 * language.h (language_data): Delete skip_trampoline field.
4795 (language_defn::skip_trampoline): New function.
4796 * m2-lang.c (m2_language_data): Delete skip_trampoline
4797 initializer.
4798 * objc-lang.c (objc_skip_trampoline): Delete function, move
4799 implementation to objc_language::skip_trampoline.
4800 (objc_language_data): Delete skip_trampoline initializer.
4801 (objc_language::skip_trampoline): New member function with
4802 implementation from objc_skip_trampoline.
4803 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4804 initializer.
4805 * p-lang.c (pascal_language_data): Likewise.
4806 * rust-lang.c (rust_language_data): Likewise.
4807
0a50df5d
AB
48082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4811 (ada_language::demangle): New member function.
4812 * c-lang.c (c_language_data): Delete la_demangle initializer.
4813 (cplus_language_data): Delete la_demangle initializer.
4814 (cplus_language::demangle): New member function.
4815 (asm_language_data): Delete la_demangle initializer.
4816 (minimal_language_data): Delete la_demangle initializer.
4817 * d-lang.c (d_language_data): Delete la_demangle initializer.
4818 (d_language::demangle): New member function.
4819 * f-lang.c (f_language_data): Delete la_demangle initializer.
4820 (f_language::demangle): New member function.
4821 * go-lang.c (go_language_data): Delete la_demangle initializer.
4822 (go_language::demangle): New member function.
4823 * language.c (language_demangle): Update.
4824 (unk_lang_demangle): Delete.
4825 (unknown_language_data): Delete la_demangle initializer.
4826 (unknown_language::demangle): New member function.
4827 (auto_language_data): Delete la_demangle initializer.
4828 (auto_language::demangle): New member function.
4829 * language.h (language_data): Delete la_demangle field.
4830 (language_defn::demangle): New function.
4831 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4832 * objc-lang.c (objc_language_data): Delete la_demangle
4833 initializer.
4834 (objc_language::demangle): New member function.
4835 * opencl-lang.c (opencl_language_data): Delete la_demangle
4836 initializer.
4837 * p-lang.c (pascal_language_data): Likewise.
4838 * rust-lang.c (rust_language_data): Likewise.
4839 (rust_language::demangle): New member function.
4840
fbfb0a46
AB
48412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4842
4843 * ada-lang.c (ada_language_data): Delete la_print_type
4844 initializer.
4845 (ada_language::print_type): New member function.
4846 * c-lang.c (c_language_data): Delete la_print_type initializer.
4847 (c_language::print_type): New member function.
4848 (cplus_language_data): Delete la_print_type initializer.
4849 (cplus_language::print_type): New member function.
4850 (asm_language_data): Delete la_print_type initializer.
4851 (asm_language::print_type): New member function.
4852 (minimal_language_data): Delete la_print_type initializer.
4853 (minimal_language::print_type): New member function.
4854 * d-lang.c (d_language_data): Delete la_print_type initializer.
4855 (d_language::print_type): New member function.
4856 * f-lang.c (f_language_data): Delete la_print_type initializer.
4857 (f_language::print_type): New member function.
4858 * go-lang.c (go_language_data): Delete la_print_type initializer.
4859 (go_language::print_type): New member function.
4860 * language.c (unk_lang_print_type): Delete.
4861 (unknown_language_data): Delete la_print_type initializer.
4862 (unknown_language::print_type): New member function.
4863 (auto_language_data): Delete la_print_type initializer.
4864 (auto_language::print_type): New member function.
4865 * language.h (language_data): Delete la_print_type field.
4866 (language_defn::print_type): New function.
4867 (LA_PRINT_TYPE): Update.
4868 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4869 (m2_language::print_type): New member function.
4870 * objc-lang.c (objc_language_data): Delete la_print_type
4871 initializer.
4872 (objc_language::print_type): New member function.
4873 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4874 to opencl_language::print_type.
4875 (opencl_language_data): Delete la_print_type initializer.
4876 (opencl_language::print_type): New member function, implementation
4877 from opencl_print_type.
4878 * p-lang.c (pascal_language_data): Delete la_print_type
4879 initializer.
4880 (pascal_language::print_type): New member function.
4881 * rust-lang.c (rust_print_type): Delete, implementation moved to
4882 rust_language::print_type.
4883 (rust_language_data): Delete la_print_type initializer.
4884 (rust_language::print_type): New member function, implementation
4885 from rust_print_type.
4886
6f827019
AB
48872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4890 implementation moves to...
4891 (ada_language::sniff_from_mangled_name): ...here. Update return
4892 type.
4893 (ada_language_data): Delete la_sniff_from_mangled_name
4894 initializer.
4895 * c-lang.c (c_language_data): Likewise.
4896 (cplus_language_data): Likewise.
4897 (cplus_language::sniff_from_mangled_name): New member function,
4898 implementation taken from gdb_sniff_from_mangled_name.
4899 (asm_language_data): Delete la_sniff_from_mangled_name
4900 initializer.
4901 (minimal_language_data): Likewise.
4902 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4903 implementation moves to cplus_language::sniff_from_mangled_name.
4904 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4905 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4906 moves to...
4907 (d_language::sniff_from_mangled_name): ...here.
4908 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4909 * f-lang.c (f_language_data): Likewise.
4910 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4911 moves to...
4912 (go_language::sniff_from_mangled_name): ...here.
4913 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4914 * language.c (language_sniff_from_mangled_name): Delete.
4915 (unknown_language_data): Delete la_sniff_from_mangled_name
4916 initializer.
4917 (auto_language_data): Likewise.
4918 * language.h (language_data): Delete la_sniff_from_mangled_name
4919 field.
4920 (language_defn::sniff_from_mangled_name): New function.
4921 (language_sniff_from_mangled_name): Delete declaration.
4922 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4923 field.
4924 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4925 implementation moves to...
4926 (objc_language::sniff_from_mangled_name): ...here.
4927 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4928 * opencl-lang.c (opencl_language_data): Likewise.
4929 * p-lang.c (pascal_language_data): Likewise.
4930 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4931 implementation moves to...
4932 (rust_language::sniff_from_mangled_name): ...here.
4933 (rust_language_data): Delete la_sniff_from_mangled_name
4934 initializer.
4935 * symtab.c (symbol_find_demangled_name): Call
4936 sniff_from_mangled_name member function.
4937
fb8006fd
AB
49382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4939
4940 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4941 initializer.
4942 * c-lang.c (c_language_data): Likewise.
4943 (cplus_language_data): Likewise.
4944 (cplus_language::search_name_hash): New member function.
4945 (asm_language_data): Delete la_search_name_hash initializer.
4946 (minimal_language_data): Likewise.
4947 * d-lang.c (d_language_data): Likewise.
4948 * dictionary.c (default_search_name_hash): Rename to...
4949 (language_defn::search_name_hash): ...this.
4950 * f-lang.c (f_language_data): Likewise.
4951 (f_language::search_name_hash): New member function.
4952 * go-lang.c (go_language_data): Delete la_search_name_hash
4953 initializer.
4954 * language.c (unknown_language_data): Likewise.
4955 (auto_language_data): Likewise.
4956 * language.h (struct language_data): Delete la_search_name_hash
4957 field.
4958 (language_defn::search_name_hash): Declare new member function.
4959 (default_search_name_hash): Delete declaration.
4960 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4961 initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * rust-lang.c (rust_language_data): Likewise.
4966 * symtab.c (search_name_hash): Update call.
4967
8e25bafe
AB
49682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4971 initializer.
4972 * c-lang.c (class compile_instance): Declare.
4973 (c_language_data): Delete la_get_compile_instance initializer.
4974 (c_language::get_compile_instance): New member function.
4975 (cplus_language_data): Delete la_get_compile_instance initializer.
4976 (cplus_language::get_compile_instance): New member function.
4977 (asm_language_data): Delete la_get_compile_instance initializer.
4978 (minimal_language_data): Likewise.
4979 * c-lang.h (c_get_compile_context): Update comment.
4980 (cplus_get_compile_context): Update comment.
4981 * compile/compile.c (compile_to_object): Update calls, don't rely
4982 on function pointer being NULL.
4983 * d-lang.c (d_language_data): Delete la_get_compile_instance
4984 initializer.
4985 * f-lang.c (f_language_data): Likewise.
4986 * go-lang.c (go_language_data): Likewise.
4987 * language.c (unknown_language_data): Likewise.
4988 (auto_language_data): Likewise.
4989 * language.h (language_data): Delete la_get_compile_instance field.
4990 (language_defn::get_compile_instance): New member function.
4991 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4992 initializer.
4993 * objc-lang.c (objc_language_data): Likewise.
4994 * opencl-lang.c (opencl_language_data): Likewise.
4995 * p-lang.c (pascal_language_data): Likewise.
4996 * rust-lang.c (rust_language_data): Likewise.
4997
4009ee92
AB
49982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * ada-lang.c (ada_add_all_symbols): Update comment.
5001 (ada_iterate_over_symbols): Delete, move implementation to...
5002 (ada_language::iterate_over_symbols): ...here, a new member
5003 function, rewrite to use range based for loop.
5004 (ada_language_data): Delete la_iterate_over_symbols initializer.
5005 * c-lang.c (c_language_data): Likewise.
5006 (cplus_language_data): Likewise.
5007 (asm_language_data): Likewise.
5008 (minimal_language_data): Likewise.
5009 * d-lang.c (d_language_data): Likewise.
5010 * f-lang.c (f_language_data): Likewise.
5011 * go-lang.c (go_language_data): Likewise.
5012 * language.c (unknown_language_data): Likewise.
5013 (auto_language_data): Likewise.
5014 * language.h (language_data): Delete la_iterate_over_symbols field.
5015 (language_defn::iterate_over_symbols): New member function.
5016 (LA_ITERATE_OVER_SYMBOLS): Update.
5017 * linespec.c (iterate_over_all_matching_symtabs): Update.
5018 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5019 initializer.
5020 * objc-lang.c (objc_language_data): Likewise.
5021 * opencl-lang.c (opencl_language_data): Likewise.
5022 * p-lang.c (pascal_language_data): Likewise.
5023 * rust-lang.c (rust_language_data): Likewise.
5024
54f4ca46
AB
50252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5026
5027 * ada-lang.c (ada_language_data): Delete
5028 la_lookup_transparent_type initializer.
5029 * c-lang.c (c_language_data): Likewise.
5030 (cplus_language_data): Likewise.
5031 (cplus_language::lookup_transparent_type): New member function.
5032 (asm_language_data): Delete la_lookup_transparent_type
5033 initializer.
5034 (minimal_language_data): Likewise.
5035 * d-lang.c (d_language_data): Likewise.
5036 * f-lang.c (f_language_data): Likewise.
5037 * go-lang.c (go_language_data): Likewise.
5038 * language.c (unknown_language_data): Likewise.
5039 (auto_language_data): Likewise.
5040 * language.h (struct language_data): Delete
5041 la_lookup_transparent_type field.
5042 (language_defn::lookup_transparent_type): New member function.
5043 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5044 initializer.
5045 * objc-lang.c (objc_language_data): Likewise.
5046 * opencl-lang.c (opencl_language_data): Likewise.
5047 * p-lang.c (pascal_language_data): Likewise.
5048 * rust-lang.c (rust_language_data): Likewise.
5049 * symtab.c (symbol_matches_domain): Update call.
5050
1fb314aa
AB
50512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * ada-lang.c (ada_language_arch_info): Delete function, move
5054 implementation to...
5055 (ada_language::language_arch_info): ...here, a new member
5056 function.
5057 (ada_language_data): Delete la_language_arch_info.
5058 * c-lang.c (c_language_data): Likewise.
5059 (c_language::language_arch_info): New member function.
5060 (cplus_language_arch_info): Delete function, move
5061 implementation to...
5062 (cplus_language::language_arch_info): ...here, a new member
5063 function.
5064 (cplus_language_data): Delete la_language_arch_info.
5065 (asm_language_data): Likewise.
5066 (asm_language::language_arch_info): New member function.
5067 (minimal_language_data): Delete la_language_arch_info.
5068 (minimal_language::language_arch_info): New member function.
5069 * d-lang.c (d_language_arch_info): Delete function, move
5070 implementation to...
5071 (d_language::language_arch_info): ...here, a new member
5072 function.
5073 (d_language_data): Delete la_language_arch_info.
5074 * f-lang.c (f_language_arch_info): Delete function, move
5075 implementation to...
5076 (f_language::language_arch_info): ...here, a new member
5077 function.
5078 (f_language_data): Delete la_language_arch_info.
5079 * go-lang.c (go_language_arch_info): Delete function, move
5080 implementation to...
5081 (go_language::language_arch_info): ...here, a new member
5082 function.
5083 (go_language_data): Delete la_language_arch_info.
5084 * language.c (unknown_language_data): Likewise.
5085 (unknown_language::language_arch_info): New member function.
5086 (auto_language_data): Delete la_language_arch_info.
5087 (auto_language::language_arch_info): New member function.
5088 (language_gdbarch_post_init): Update call to
5089 la_language_arch_info.
5090 * language.h (language_data): Delete la_language_arch_info
5091 function pointer.
5092 (language_defn::language_arch_info): New function.
5093 * m2-lang.c (m2_language_arch_info): Delete function, move
5094 implementation to...
5095 (m2_language::language_arch_info): ...here, a new member
5096 function.
5097 (m2_language_data): Delete la_language_arch_info.
5098 * objc-lang.c (objc_language_arch_info): Delete function, move
5099 implementation to...
5100 (objc_language::language_arch_info): ...here, a new member
5101 function.
5102 (objc_language_data): Delete la_language_arch_info.
5103 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5104 implementation to...
5105 (opencl_language::language_arch_info): ...here, a new member
5106 function.
5107 (opencl_language_data): Delete la_language_arch_info.
5108 * p-lang.c (pascal_language_arch_info): Delete function, move
5109 implementation to...
5110 (pascal_language::language_arch_info): ...here, a new member
5111 function.
5112 (pascal_language_data): Delete la_language_arch_info.
5113 * rust-lang.c (rust_language_arch_info): Delete function, move
5114 implementation to...
5115 (rust_language::language_arch_info): ...here, a new member
5116 function.
5117 (rust_language_data): Delete la_language_arch_info.
5118
48448202
AB
51192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5120
5121 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5122 initializer.
5123 * c-lang.c (c_language_data): Likewise.
5124 (cplus_language_data): Likewise.
5125 (cplus_language::pass_by_reference_info): New method.
5126 (asm_language_data): Delete la_pass_by_reference initializer.
5127 (minimal_language_data): Likewise.
5128 * cp-abi.c (cp_pass_by_reference): Remove use of
5129 default_pass_by_reference.
5130 * d-lang.c (d_language_data): Likewise.
5131 * f-lang.c (f_language_data): Likewise.
5132 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5133 default_pass_by_reference.
5134 * go-lang.c (go_language_data): Likewise.
5135 * language.c (language_pass_by_reference): Update.
5136 (default_pass_by_reference): Delete.
5137 (unknown_language_data): Delete la_pass_by_reference
5138 initializer.
5139 (auto_language_data): Likewise.
5140 * language.h (struct language_data): Delete la_pass_by_reference
5141 field.
5142 (language_defn::pass_by_reference_info): New member function.
5143 (default_pass_by_reference): Delete declaration.
5144 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5145 initializer.
5146 * objc-lang.c (objc_language_data): Likewise.
5147 * opencl-lang.c (opencl_language_data): Likewise.
5148 * p-lang.c (pascal_language_data): Likewise.
5149 * rust-lang.c (rust_language_data): Likewise.
5150
15e5fd35
AB
51512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * ada-lang.c (ada_read_var_value): Delete function, move
5154 implementation to...
5155 (ada_language::read_var_value): ...here.
5156 (ada_language_data): Delete la_read_var_value initializer.
5157 * c-lang.c (c_language_data): Likewise.
5158 (cplus_language_data): Likewise.
5159 (minimal_language_data): Likewise.
5160 * d-lang.c (d_language_data): Likewise.
5161 * f-lang.c (f_language_data): Likewise.
5162 * findvar.c (default_read_var_value): Rename to...
5163 (language_defn::read_var_value): ...this.
5164 * findvar.c (read_var_value): Update header comment, and change to
5165 call member function instead of function pointer.
5166 * go-lang.c (go_language_data): Likewise.
5167 * language.c (unknown_language_data): Delete la_read_var_value
5168 initializer.
5169 (auto_language_data): Likewise.
5170 * language.h (struct language_data): Delete la_read_var_value
5171 field.
5172 (language_defn::read_var_value): New member function.
5173 (default_read_var_value): Delete declaration.
5174 * m2-lang.c (m2_language_data): Delete la_read_var_value
5175 initializer.
5176 * objc-lang.c (objc_language_data): Likewise.
5177 * opencl-lang.c (opencl_language_data): Likewise.
5178 * p-lang.c (pascal_language_data): Likewise.
5179 * rust-lang.c (rust_language_data): Likewise.
5180 * value.h (default_read_var_value): Delete declaration.
5181
5bd40f2a
AB
51822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5183
5184 * ada-lang.c (ada_print_array_index): Delete function, move
5185 implementation to...
5186 (ada_language::print_array_index): ...here.
5187 (ada_language_data): Delete la_print_array_index initializer.
5188 * c-lang.c (c_language_data): Likewise.
5189 (cplus_language_data): Likewise.
5190 (minimal_language_data): Likewise.
5191 * d-lang.c (d_language_data): Likewise.
5192 * f-lang.c (f_language_data): Likewise.
5193 * go-lang.c (go_language_data): Likewise.
5194 * language.c (default_print_array_index): Delete function, move
5195 implementation to...
5196 (language_defn::print_array_index): ...here.
5197 (unknown_language_data): Delete la_print_array_index initializer.
5198 (auto_language_data): Likewise.
5199 * language.h (struct language_data): Delete la_print_array_index
5200 field.
5201 (language_defn::print_array_index): New member function.
5202 (LA_PRINT_ARRAY_INDEX): Update.
5203 (default_print_array_index): Delete declaration.
5204 * m2-lang.c (m2_language_data): Delete la_print_array_index
5205 initializer.
5206 * objc-lang.c (objc_language_data): Likewise.
5207 * opencl-lang.c (opencl_language_data): Likewise.
5208 * p-lang.c (pascal_language_data): Likewise.
5209 * rust-lang.c (rust_language_data): Likewise.
5210
0874fd07
AB
52112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * gdb/ada-lang.c (ada_language_defn): Convert to...
5214 (ada_language_data): ...this.
5215 (class ada_language): New class.
5216 (ada_language_defn): New static global.
5217 * gdb/c-lang.c (c_language_defn): Convert to...
5218 (c_language_data): ...this.
5219 (class c_language): New class.
5220 (c_language_defn): New static global.
5221 (cplus_language_defn): Convert to...
5222 (cplus_language_data): ...this.
5223 (class cplus_language): New class.
5224 (cplus_language_defn): New static global.
5225 (asm_language_defn): Convert to...
5226 (asm_language_data): ...this.
5227 (class asm_language): New class.
5228 (asm_language_defn): New static global.
5229 (minimal_language_defn): Convert to...
5230 (minimal_language_data): ...this.
5231 (class minimal_language): New class.
5232 (minimal_language_defn): New static global.
5233 * gdb/d-lang.c (d_language_defn): Convert to...
5234 (d_language_data): ...this.
5235 (class d_language): New class.
5236 (d_language_defn): New static global.
5237 * gdb/f-lang.c (f_language_defn): Convert to...
5238 (f_language_data): ...this.
5239 (class f_language): New class.
5240 (f_language_defn): New static global.
5241 * gdb/go-lang.c (go_language_defn): Convert to...
5242 (go_language_data): ...this.
5243 (class go_language): New class.
5244 (go_language_defn): New static global.
5245 * gdb/language.c (unknown_language_defn): Remove declaration.
5246 (current_language): Initialize to nullptr, real initialization is
5247 moved to _initialize_language.
5248 (languages): Delete global.
5249 (language_defn::languages): Define.
5250 (set_language_command): Use language_defn::languages.
5251 (set_language): Likewise.
5252 (range_error): Likewise.
5253 (language_enum): Likewise.
5254 (language_def): Likewise.
5255 (add_set_language_command): Use language_def::languages for the
5256 language list, and language_def to lookup language pointers.
5257 (skip_language_trampoline): Use language_defn::languages.
5258 (unknown_language_defn): Convert to...
5259 (unknown_language_data): ...this.
5260 (class unknown_language): New class.
5261 (unknown_language_defn): New static global.
5262 (auto_language_defn): Convert to...
5263 (auto_language_data): ...this.
5264 (class auto_language): New class.
5265 (auto_language_defn): New static global.
5266 (language_gdbarch_post_init): Use language_defn::languages.
5267 (_initialize_language): Initialize current_language.
5268 * gdb/language.h (struct language_defn): Rename to...
5269 (struct language_data): ...this.
5270 (struct language_defn): New.
5271 (auto_language_defn): Delete.
5272 (unknown_language_defn): Delete.
5273 (minimal_language_defn): Delete.
5274 (ada_language_defn): Delete.
5275 (asm_language_defn): Delete.
5276 (c_language_defn): Delete.
5277 (cplus_language_defn): Delete.
5278 (d_language_defn): Delete.
5279 (f_language_defn): Delete.
5280 (go_language_defn): Delete.
5281 (m2_language_defn): Delete.
5282 (objc_language_defn): Delete.
5283 (opencl_language_defn): Delete.
5284 (pascal_language_defn): Delete.
5285 (rust_language_defn): Delete.
5286 * gdb/m2-lang.c (m2_language_defn): Convert to...
5287 (m2_language_data): ...this.
5288 (class m2_language): New class.
5289 (m2_language_defn): New static global.
5290 * gdb/objc-lang.c (objc_language_defn): Convert to...
5291 (objc_language_data): ...this.
5292 (class objc_language): New class.
5293 (objc_language_defn): New static global.
5294 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5295 (opencl_language_data): ...this.
5296 (class opencl_language): New class.
5297 (opencl_language_defn): New static global.
5298 * gdb/p-lang.c (pascal_language_defn): Convert to...
5299 (pascal_language_data): ...this.
5300 (class pascal_language): New class.
5301 (pascal_language_defn): New static global.
5302 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5303 language pointer, update comment format.
5304 * gdb/rust-lang.c (rust_language_defn): Convert to...
5305 (rust_language_data): ...this.
5306 (class rust_language): New class.
5307 (rust_language_defn): New static global.
5308
1313c56e
AB
53092020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5312 member variable.
5313 <m_stmt_at_address>: New member variable.
5314 (lnp_state_machine::record_line): Don't record some lines, update
5315 tracking of is_stmt at the same address.
5316 (lnp_state_machine::lnp_state_machine): Initialise new member
5317 variables.
5318
b7ed9f3d
ST
53192020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5320
5321 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5322 "-include gnu-nat-mig.h".
5323 * gnu-nat-mig.h: New file.
5324 * gnu-nat.c: Include "gnu-nat-mig.h".
5325 (exc_server, msg_reply_server, notify_server,
5326 process_reply_server): Remove declarations.
5327
14a8ad62
ST
53282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5329
5330 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5331 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5332 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5333 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5334 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5335 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5336 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5337 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5338 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5339 to gnu_nat_target class.
5340 * gnu-nat.c: Likewise.
5341 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5342 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5343 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5344 object.
5345 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5346 instead of `gnu_target'.
5347
0af5e106
ST
53482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5349
5350 * i386-gnu-tdep.c: Include "gdbcore.h"
5351 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5352 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5353 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5354 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5355 i386_gnu_sigcontext_addr): New functions
5356 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5357 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5358 tdep.
5359
078f2fc9
ST
53602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5361
5362 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5363 before fork_inferior call. Avoid calling it if target_is_pushed returns
5364 true.
5365
53dff92c
ST
53662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5367
5368 * gnu-nat.h (gnu_target): New variable declaration.
5369 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5370 gnu_target.
5371 * gnu-nat.c (gnu_target): New variable.
5372 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5373 add_thread_silent, and add_thread calls.
5374 (gnu_nat_target::create_inferior): Pass gnu_target to
5375 add_thread_silent, thread_change_ptid call.
5376 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5377 call.
5378
5a8b8627
ST
53792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5380
5381 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5382 (gnu_nat_target::find_memory_regions): Remove unused
5383 `old_address' variable.
5384
366f550a
ST
53852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5386
5387 * gnu-nat.c: Include "gdbarch.h".
5388
f14871bf
ST
53892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5390
5391 * reply_mig_hack.awk (Error return): Cast function through
5392 void *, to bypass compiler function call check.
5393
c6887cfb
ST
53942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5395
5396 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5397 $(srcdir)/reply_mig_hack.awk.
5398
6930bffe
ST
53992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5400
5401 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5402
112c22ed
JG
54032020-05-30 Jonny Grant <jg@jguk.org>
5404
5405 * configure.ac (ACX_BUGURL): change bug URL to https.
5406
f68f85b5
PA
54072020-05-30 Pedro Alves <palves@redhat.com>
5408
5409 * cp-support.c (replace_typedefs_template): New.
5410 (replace_typedefs_qualified_name): Handle
5411 DEMANGLE_COMPONENT_TEMPLATE.
5412
976ca316
SM
54132020-05-29 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5416 dwarf2/index-cache.h, dwarf2/index-write.c,
5417 dwarf2/index-write.h, dwarf2/line-header.c,
5418 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5419 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5420 variables and fields from `dwarf2_per_objfile` to just
5421 `per_objfile` throughout.
5422
989ade05
SM
54232020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5426 <push_dwarf_reg_entry_value>: Add comment.
5427
c47bae85
KB
54282020-05-28 Kevin Buettner <kevinb@redhat.com>
5429 Keith Seitz <keiths@redhat.com>
5430
5431 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5432 instead of PyEval_ReleaseLock.
5433 (class gdbpy_gil): Move to earlier in file.
5434 (finalize_python): Set gdb_python_initialized.
5435 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5436 when not initialized.
5437
44486dcf
SM
54382020-05-28 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5441 <push_dwarf_reg_entry_value>: Remove assert. Override
5442 per_objfile with caller_per_objfile.
5443
f030440d
TV
54442020-05-28 Tom de Vries <tdevries@suse.de>
5445
5446 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5447 PR gold/15646 workaround to symbol kind "type".
5448
f0fbb768
TT
54492020-05-27 Tom Tromey <tromey@adacore.com>
5450
5451 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5452
af0b2a3e
TT
54532020-05-27 Tom Tromey <tromey@adacore.com>
5454
5455 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5456 Use htab_find_with_hash.
5457 <add_abbrev>: Remove "abbrev_number" parameter.
5458 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5459 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5460 (hash_abbrev): Add comment.
5461 (abbrev_table::lookup_abbrev): Move to header file.
5462 (abbrev_table::read): Update.
5463
7d00ffec
TT
54642020-05-27 Tom Tromey <tromey@adacore.com>
5465
5466 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5467 method.
5468 <canonical_name>: New member.
5469 <raw_name>: Rename from "name".
5470 (partial_die_info): Initialize canonical_name.
5471 (scan_partial_symbols): Check raw_name.
5472 (partial_die_parent_scope, partial_die_full_name)
5473 (add_partial_symbol, add_partial_subprogram)
5474 (add_partial_enumeration, load_partial_dies): Use "name" method.
5475 (partial_die_info::name): New method.
5476 (partial_die_info::read, guess_partial_die_structure_name)
5477 (partial_die_info::fixup): Update.
5478
697bba18
TT
54792020-05-27 Tom Tromey <tromey@adacore.com>
5480
5481 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5482 <get_ref_die_offset>: Inline.
5483 <get_ref_die_offset_complaint>: New method.
5484 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5485 (attribute::get_ref_die_offset_complaint): Rename from
5486 get_ref_die_offset. Just issue complaint.
5487
c17ace43
HD
54882020-05-27 Hannes Domani <ssbssa@yahoo.de>
5489
5490 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5491
96445f0b
HD
54922020-05-27 Hannes Domani <ssbssa@yahoo.de>
5493
5494 * exec.c (exec_file_attach): Use errno value of first openp failure.
5495
ac637ec3
HD
54962020-05-27 Hannes Domani <ssbssa@yahoo.de>
5497
5498 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5499 Don't close thread handle.
5500
17ee85fc
TT
55012020-05-27 Tom Tromey <tom@tromey.com>
5502 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5505 shared_ptr.
5506 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5507 member.
5508 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5509 dwarf2_per_bfd_objfile_data_key>: New globals.
5510 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5511 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5512 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5513 shared.
5514 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5515 short-circuit when sharing.
5516 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5517 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5518
39b16f87
SM
55192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5522 to...
5523 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5524 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5525
fcf23d5b
SM
55262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5529 build_name_components, find_name_components_bounds>:
5530 Add per_objfile parameter.
5531 (struct mapped_index) <symbol_name_at>: Likewise.
5532 (struct mapped_debug_names): Remove constructor.
5533 <dwarf2_per_objfile>: Remove field.
5534 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5535 (mapped_index_base::find_name_components_bounds,
5536 mapped_index_base::build_name_components,
5537 dw2_expand_symtabs_matching_symbol): Likewise.
5538 (class mock_mapped_index) <symbol_name_at>: Likewise.
5539 (check_match): Likewise.
5540 (check_find_bounds_finds): Likewise.
5541 (test_mapped_index_find_name_component_bounds): Update.
5542 (CHECK_MATCH): Update.
5543 (dw2_expand_symtabs_matching): Update.
5544 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5545 per_objfile parameter.
5546 <find_vec_in_debug_names>: Likewise.
5547 <m_per_objfile>: New field.
5548 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5549 parameter.
5550 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5551 (dw2_debug_names_iterator::next): Update.
5552 (dw2_debug_names_lookup_symbol): Update.
5553 (dw2_debug_names_expand_symtabs_for_function): Update.
5554 (dw2_debug_names_map_matching_symbols): Update.
5555 (dw2_debug_names_expand_symtabs_matching): Update.
5556 (dwarf2_read_debug_names): Update.
5557
7188ed02
SM
55582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5559
5560 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5561 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5562 move to dwarf2_per_objfile.
5563 <read_in_chain>: Remove.
5564 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5565 remove_all_cus, age_comp_units>: New methods.
5566 <m_dwarf2_cus>: New member.
5567 (struct dwarf2_per_cu_data) <cu>: Remove.
5568 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5569 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5570 moved to methods of dwarf2_per_objfile.
5571 (dwarf2_clear_marks): Remove.
5572 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5573 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5574 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5575 (dwarf2_per_objfile::remove_all_cus): New.
5576 (class free_cached_comp_units) <~free_cached_comp_units>:
5577 Update.
5578 (load_cu): Update.
5579 (dw2_do_instantiate_symtab): Adjust.
5580 (fill_in_sig_entry_from_dwo_entry): Adjust.
5581 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5582 (cutu_reader::cutu_reader): Likewise.
5583 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5584 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5585 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5586 and dwarf2_per_objfile::age_comp_units.
5587 (load_partial_comp_unit): Update.
5588 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5589 (process_queue): Likewise.
5590 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5591 backlink.
5592 (dwarf2_read_addr_index): Likewise.
5593 (follow_die_offset): Likewise.
5594 (dwarf2_fetch_die_loc_sect_off): Likewise.
5595 (dwarf2_fetch_constant_bytes): Likewise.
5596 (dwarf2_fetch_die_type_sect_off): Likewise.
5597 (follow_die_sig_1): Likewise.
5598 (load_full_type_unit): Likewise.
5599 (read_signatured_type): Likewise.
5600 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5601 (dwarf2_cu::~dwarf2_cu): Remove.
5602 (dwarf2_per_objfile::get_cu): New.
5603 (dwarf2_per_objfile::set_cu): New.
5604 (age_cached_comp_units): Rename to...
5605 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5606 to std::unordered_map.
5607 (free_one_cached_comp_unit): Rename to...
5608 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5609 to std::unordered_map.
5610 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5611 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5612 a dwarf2_per_objfile in data.
5613 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5614 (dwarf2_clear_marks): Remove.
5615
2e671100
SM
56162020-05-27 Simon Marchi <simon.marchi@efficios.com>
5617
5618 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5619 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5620 (init_tu_and_read_dwo_dies): Likewise.
5621 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5622 (cutu_reader::cutu_reader): Likewise.
5623 (load_partial_comp_unit): Likewise.
5624 (process_psymtab_comp_unit): Update.
5625 (build_type_psymtabs_1): Update.
5626 (process_skeletonless_type_unit): Update.
5627 (load_full_comp_unit): Update.
5628 (find_partial_die): Update.
5629 (dwarf2_read_addr_index): Update.
5630 (read_signatured_type): Update.
5631
2e6a9f79
SM
56322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5635 m_header_read_in>: New fields.
5636 <get_header>: New method.
5637 * dwarf2/read.c (per_cu_header_read_in): Remove.
5638 (dwarf2_per_cu_data::get_header): New.
5639 (dwarf2_per_cu_data::addr_size): Update.
5640 (dwarf2_per_cu_data::offset_size): Update.
5641 (dwarf2_per_cu_data::ref_addr_size): Update.
5642
1b555f17
SM
56432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5646 (dw2_do_instantiate_symtab): Update.
5647 (queue_and_load_all_dwo_tus): Change parameter from
5648 dwarf2_per_cu_data to dwarf2_cu.
5649 (dwarf2_fetch_die_loc_sect_off): Update.
5650 (dwarf2_fetch_constant_bytes): Update.
5651 (dwarf2_fetch_die_type_sect_off): Update.
5652
8fc0b21d
SM
56532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * dwarf2/read.c (process_full_comp_unit,
5656 process_full_type_unit): Remove per_cu, per_objfile paramters.
5657 Add dwarf2_cu parameter.
5658 (process_queue): Update.
5659
168c9250
SM
56602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5661
5662 * dwarf2/read.c (create_cu_from_index_list): Replace
5663 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5664 (create_cus_from_index_list): Likewise.
5665 (create_cus_from_index): Likewise.
5666 (create_signatured_type_table_from_index): Likewise.
5667 (create_cus_from_debug_names_list): Likewise.
5668 (create_cus_from_debug_names): Likewise.
5669 (dwarf2_read_gdb_index): Update.
5670 (dwarf2_read_debug_names): Update.
5671
e286671b
TT
56722020-05-27 Tom Tromey <tom@tromey.com>
5673 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * dwarf2/read.h (struct dwarf2_per_objfile)
5676 <get_type_for_signatured_type, set_type_for_signatured_type>:
5677 New methods.
5678 <m_type_map>: New member.
5679 (struct signatured_type) <type>: Remove.
5680 * dwarf2/read.c
5681 (dwarf2_per_objfile::get_type_for_signatured_type,
5682 dwarf2_per_objfile::set_type_for_signatured_type): New.
5683 (get_signatured_type): Use new methods.
5684
8adb8487
TT
56852020-05-27 Tom Tromey <tom@tromey.com>
5686 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5689 (struct dwarf2_per_objfile) <type_units>: New member.
5690 <get_type_unit_group_unshareable>: New method.
5691 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5692 num_symtabs, symtabs>: Remove; move to
5693 type_unit_group_unshareable.
5694 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5695 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5696 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5697
127bbf4b
SM
56982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5699
5700 * dwarf2/read.h (struct dwarf2_per_cu_data):
5701 <dwarf2_per_objfile>: Remove.
5702 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5703 dwarf2_per_objfile.
5704 (create_signatured_type_table_from_index): Likewise.
5705 (create_signatured_type_table_from_debug_names): Likewise.
5706 (create_debug_type_hash_table): Likewise.
5707 (fill_in_sig_entry_from_dwo_entry): Likewise.
5708 (create_type_unit_group): Likewise.
5709 (read_comp_units_from_section): Likewise.
5710 (create_cus_hash_table): Likewise.
5711
f6e649dd
SM
57122020-05-27 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5715 dwarf2_per_cu_data::dwarf2_per_objfile.
5716 (compute_compunit_symtab_includes): Likewise.
5717 (dwarf2_cu::start_symtab): Likewise.
5718
aa66c379
SM
57192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5722 parameter.
5723 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5724 (read_namespace_alias): Update.
5725 (lookup_die_type): Update.
5726 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5727 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5728 Update.
5729 (disassemble_dwarf_expression): Update.
5730
120ce1b5
SM
57312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * dwarf2/read.h (struct dwarf2_queue_item): Add
5734 dwarf2_per_objfile parameter, assign new parameter.
5735 <per_objfile>: New field.
5736 * dwarf2/read.c (free_one_cached_comp_unit): Add
5737 dwarf2_per_objfile parameter.
5738 (queue_comp_unit): Likewise.
5739 (dw2_do_instantiate_symtab): Update.
5740 (process_psymtab_comp_unit): Update.
5741 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5742 (process_imported_unit_die): Update.
5743 (queue_and_load_dwo_tu): Update.
5744 (follow_die_offset): Update.
5745 (follow_die_sig_1): Update.
5746
9f47c707
SM
57472020-05-27 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5750 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5751 (read_call_site_scope): Assign per_objfile.
5752 (dwarf2_per_cu_data::objfile): Remove.
5753 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5754 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5755 dwarf2_per_objfile parameter.
5756 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5757 dwarf2_per_objfile parameter.
5758 (dwarf_expr_reg_to_entry_parameter): Add output
5759 dwarf2_per_objfile parameter.
5760 (locexpr_get_frame_base): Update.
5761 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5762 <push_dwarf_reg_entry_value>: Update.
5763 <call_site_to_target_addr>: Update.
5764 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5765 parameter.
5766 (value_of_dwarf_reg_entry): Update.
5767 (rw_pieced_value): Update.
5768 (indirect_synthetic_pointer): Update.
5769 (dwarf2_evaluate_property): Update.
5770 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5771 parameter.
5772 (locexpr_read_variable): Update.
5773 (locexpr_get_symbol_read_needs): Update.
5774 (loclist_read_variable): Update.
5775
14095eb3
SM
57762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5779 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5780 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5781 parameter.
5782 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5783 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5784 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5785 parameter.
5786 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5787 sect_variable_value): Add dwarf2_per_objfile parameter.
5788 (class dwarf_evaluate_loc_desc) <dwarf_call,
5789 dwarf_variable_value>: Update.
5790 (fetch_const_value_from_synthetic_pointer): Add
5791 dwarf2_per_objfile parameter.
5792 (fetch_const_value_from_synthetic_pointer): Update.
5793 (coerced_pieced_ref): Update.
5794 (class symbol_needs_eval_context) <dwarf_call,
5795 dwarf_variable_value>: Update.
5796 (dwarf2_compile_expr_to_ax): Update.
5797
3c3cd3d4
SM
57982020-05-27 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5801 parameter.
5802 (dwarf2_evaluate_loc_desc_full): Update.
5803
82ca3f51
SM
58042020-05-27 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5807 parameter.
5808 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5809 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5810 dwarf2_per_objfile parameter.
5811 (decode_debug_loc_dwo_addresses): Likewise.
5812 (dwarf2_find_location_expression): Update.
5813 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5814 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5815 parameter.
5816 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5817 parameter.
5818 (locexpr_describe_location_1): Likewise.
5819 (locexpr_describe_location): Update.
5820
4b167ea1
SM
58212020-05-27 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5824 Remove.
5825 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5826 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5827 (dwarf2_compile_property_to_c): Update.
5828 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5829 use text offset from objfile.
5830 (locexpr_tracepoint_var_ref): Update.
5831 (locexpr_generate_c_location): Update.
5832 (loclist_describe_location): Update.
5833 (loclist_tracepoint_var_ref): Update.
5834 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5835 dwarf2_per_objfile parameter.
5836 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5837 use text offset from objfile.
5838 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5839
89b07335
SM
58402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * dwarf2/expr.h (struct dwarf_expr_context)
5843 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5844 <offset>: Remove.
5845 <per_objfile>: New member.
5846 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5847 dwarf2_per_objfile parameter. Don't set offset, set
5848 per_objfile.
5849 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5850 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5851 a dwarf2_per_objfile object instead of an offset.
5852 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5853 constructor.
5854 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5855 to dwarf2_expr_executor constructor. Don't set offset.
5856 (dwarf2_fetch_cfa_info): Update.
5857 (struct dwarf2_frame_cache) <text_offset>: Remove.
5858 <per_objfile>: New field.
5859 (dwarf2_frame_cache): Update.
5860 (dwarf2_frame_prev_register): Update.
5861 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5862 <dwarf_evaluate_loc_desc>: Add constructor.
5863 (dwarf2_evaluate_loc_desc_full): Update.
5864 (dwarf2_locexpr_baton_eval): Update.
5865 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5866 Add constructor.
5867 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5868
293e7e51
SM
58692020-05-27 Simon Marchi <simon.marchi@efficios.com>
5870
5871 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5872 addr_sized_int_type>: Move to dwarf2_cu.
5873 <int_type>: Move to dwarf2_per_objfile.
5874 (struct dwarf2_per_objfile) <int_type>: Move here.
5875 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5876 addr_sized_int_type>: Move here.
5877 (read_func_scope): Update.
5878 (read_array_type): Update.
5879 (read_tag_string_type): Update.
5880 (attr_to_dynamic_prop): Update.
5881 (dwarf2_per_cu_data::int_type): Rename to...
5882 (dwarf2_per_objfile::int_type): ... this.
5883 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5884 (dwarf2_cu::addr_sized_int_type): ... this.
5885 (read_subrange_type): Update.
5886 (dwarf2_per_cu_data::addr_type): Rename to...
5887 (dwarf2_cu::addr_type): ... this.
5888 (set_die_type): Update.
5889
64874a40
SM
58902020-05-27 Simon Marchi <simon.marchi@efficios.com>
5891
5892 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5893 data through per_cu->cu.
5894
4ab09049
SM
58952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5898 dwarf2_per_cu_data parameter fo dwarf2_cu.
5899 (lookup_dwo_type_unit): Likewise.
5900 (read_cutu_die_from_dwo): Likewise.
5901 (lookup_dwo_unit): Likewise.
5902 (open_and_init_dwo_file): Likewise.
5903 (lookup_dwo_cutu): Likewise.
5904 (lookup_dwo_comp_unit): Likewise.
5905 (lookup_dwo_type_unit): Likewise.
5906 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5907 (cutu_reader::cutu_reader): Update.
5908
47b14e86
SM
59092020-05-27 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5912 parameter.
5913 (process_full_type_unit): Likewise.
5914 (process_queue): Update.
5915
43182c09
SM
59162020-05-27 Simon Marchi <simon.marchi@efficios.com>
5917
5918 * dwarf2/read.c (recursively_compute_inclusions): Add
5919 dwarf2_per_objfile parameter.
5920 (compute_compunit_symtab_includes): Likewise.
5921 (process_cu_includes): Update.
5922
7aa104c4
SM
59232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5926 parameter.
5927 (create_type_unit_group): Update.
5928 (process_psymtab_comp_unit_reader): Update.
5929 (build_type_psymtabs_reader): Update.
5930
e3beb21d
SM
59312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5934 object through m_this_cu->cu.
5935
d460f660
SM
59362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5939 the info parameter.
5940 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5941
ab432490
SM
59422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5945 per_objfile parameter.
5946 (load_full_type_unit): Add per_objfile parameter.
5947 (read_signatured_type): Likewise.
5948 (load_full_comp_unit): Likewise.
5949 (load_cu): Likewise.
5950 (dw2_do_instantiate_symtab): Likewise.
5951 (dw2_get_file_names): Likewise.
5952 (dw2_map_symtabs_matching_filename): Update.
5953 (dw_expand_symtabs_matching_file_matcher): Update.
5954 (dw2_map_symbol_filenames): Update.
5955 (process_psymtab_comp_unit): Add per_objfile parameter.
5956 (build_type_psymtabs_1): Update.
5957 (process_skeletonless_type_unit): Update.
5958 (dwarf2_build_psymtabs_hard): Update.
5959 (load_partial_comp_unit): Add per_objfile parameter.
5960 (scan_partial_symbols): Update.
5961 (load_full_comp_unit): Add per_objfile parameter.
5962 (process_imported_unit_die): Update.
5963 (create_cus_hash_table): Update.
5964 (find_partial_die): Update.
5965 (dwarf2_read_addr_index): Update.
5966 (follow_die_offset): Update.
5967 (dwarf2_fetch_die_loc_sect_off): Update.
5968 (dwarf2_fetch_constant_bytes): Update.
5969 (dwarf2_fetch_die_type_sect_off): Update.
5970 (follow_die_sig_1): Update.
5971 (load_full_type_unit): Add per_objfile parameter.
5972 (read_signatured_type): Likewise.
5973
313bad1b
SM
59742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5977 of objfile_name.
5978
c3699833
SM
59792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5982 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5983 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5984 field.
5985 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5986 (create_cus_from_index): Update.
5987 (dwarf2_read_gdb_index): Update.
5988 (create_cus_from_debug_names): Update.
5989 (dwarf2_read_debug_names): Update.
5990 (get_abbrev_section_for_cu): Update.
5991 (create_all_comp_units): Update.
5992 (read_attribute_value): Update.
5993 (get_debug_line_section): Update.
5994 * dwarf2/index-cache.c (index_cache::store): Update.
5995 * dwarf2/index-write.c (save_gdb_index_command): Update.
5996 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5997
1859c670
SM
59982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6001 member.
6002 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6003 dwarf2_per_cu_data::per_bfd.
6004 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6005 (create_type_unit_group): Likewise.
6006 (queue_comp_unit): Remove reference to
6007 per_cu->dwarf2_per_objfile.
6008 (maybe_queue_comp_unit): Likewise.
6009 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6010 (create_cus_hash_table): Assign new field.
6011
5e22e966
SM
60122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * dwarf2/read.c: Replace
6015 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6016 dwarf2_cu->per_objfile throughout.
6017
97a1449a
SM
60182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6021 parameter, don't use per_cu->dwarf2_per_objfile.
6022 (dw2_instantiate_symtab): Likewise.
6023 (dw2_find_last_source_symtab): Update.
6024 (dw2_map_expand_apply): Update.
6025 (dw2_lookup_symbol): Update.
6026 (dw2_expand_symtabs_for_function): Update.
6027 (dw2_expand_all_symtabs): Update.
6028 (dw2_expand_symtabs_with_fullname): Update.
6029 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6030 don't use per_cu->dwarf2_per_objfile.
6031 (dw2_expand_marked_cus): Update.
6032 (dw2_find_pc_sect_compunit_symtab): Update.
6033 (dw2_debug_names_lookup_symbol): Update.
6034 (dw2_debug_names_expand_symtabs_for_function): Update.
6035 (dw2_debug_names_map_matching_symbols): Update.
6036 (dwarf2_psymtab::expand_psymtab): Update.
6037
9e021579
SM
60382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6039
6040 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6041 <per_objfile>: New member.
6042 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6043 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6044 call to dwarf2_cu.
6045 (cutu_reader::cutu_reader): Update.
6046 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6047
ae090bdb
SM
60482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6051 struct dwarf2_per_objfile.
6052 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6053 dwarf2_per_bfd.
6054 * dwarf2/read.c (set_die_type): Update.
6055 (get_die_type_at_offset): Update.
6056
af758d11
SM
60572020-05-27 Tom Tromey <tom@tromey.com>
6058 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6061 method.
6062 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6063 get_symtab, set_symtab>: New methods.
6064 <m_symtabs>: New field.
6065 (struct dwarf2_psymtab): Derive from partial_symtab.
6066 <readin_p, get_compunit_symtab>: Declare methods.
6067 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6068 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6069 New methods.
6070 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6071 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6072 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6073 (dw2_symtab_iter_next, dw2_print_stats)
6074 (dw2_expand_symtabs_with_fullname)
6075 (dw2_expand_symtabs_matching_one)
6076 (dw_expand_symtabs_matching_file_matcher)
6077 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6078 (dw2_debug_names_iterator::next)
6079 (dw2_debug_names_map_matching_symbols)
6080 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6081 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6082 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6083 New methods.
6084 (get_compunit_symtab, process_full_comp_unit)
6085 (process_full_type_unit): Update.
6086 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6087
5989a64e
SM
60882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6091 then introduce a new dwarf2_per_objfile type.
6092 <read_line_string>: Move to the new dwarf2_per_objfile type.
6093 <objfile>: Likewise.
6094 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6095 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6096 dwarf2_per_objfile->per_bfd.
6097 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6098 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6099 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6100 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6101 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6102 (dwarf2_per_objfile::locate_sections): Rename to...
6103 (dwarf2_per_bfd::locate_sections): ... this.
6104 (dwarf2_per_objfile::get_cutu): Rename to...
6105 (dwarf2_per_bfd::get_cutu): ... this.
6106 (dwarf2_per_objfile::get_cu): Rename to...
6107 (dwarf2_per_bfd::get_cu): ... this.
6108 (dwarf2_per_objfile::get_tu): Rename to...
6109 (dwarf2_per_bfd::get_tu): ... this.
6110 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6111 (dwarf2_per_bfd::allocate_per_cu): ... this.
6112 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6113 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6114 (get_gdb_index_contents_ftype): Change parameter from
6115 dwarf2_per_objfile to dwarf2_per_bfd.
6116 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6117 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6118
a50264ba
TT
61192020-05-27 Tom Tromey <tom@tromey.com>
6120 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6123 (allocate_piece_closure): Set "per_objfile" member.
6124 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6125 (locexpr_describe_location, loclist_describe_location): Use new
6126 member.
6127 * dwarf2/read.c (read_call_site_scope)
6128 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6129 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6130 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6131 handle_data_member_location): Set per_objfile member.
6132 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6133 member.
6134 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6135
d3473f0c
TT
61362020-05-27 Tom Tromey <tom@tromey.com>
6137
6138 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6139 allocate_signatured_type>: Declare new methods.
6140 <m_num_psymtabs>: New member.
6141 (struct dwarf2_per_cu_data) <index>: New member.
6142 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6143 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6144 (create_cu_from_index_list): Use allocate_per_cu.
6145 (create_signatured_type_table_from_index)
6146 (create_signatured_type_table_from_debug_names)
6147 (create_debug_type_hash_table, add_type_unit)
6148 (read_comp_units_from_section): Use allocate_signatured_type.
6149
5717c425
TT
61502020-05-27 Tom Tromey <tom@tromey.com>
6151
6152 * psymtab.c (partial_map_expand_apply)
6153 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6154 (psym_lookup_global_symbol_language)
6155 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6156 (psym_print_stats, psym_expand_symtabs_for_function)
6157 (psym_map_symbol_filenames, psym_map_matching_symbols)
6158 (psym_expand_symtabs_matching)
6159 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6160 (maintenance_check_psymtabs): Update.
6161 * psympriv.h (struct partial_symtab) <readin_p,
6162 get_compunit_symtab>: Add objfile parameter.
6163 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6164 Likewise.
6165 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6166 get_compunit_symtab>: Likewise.
6167 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6168
45940949
TT
61692020-05-27 Tom Tromey <tom@tromey.com>
6170
6171 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6172 member.
6173 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6174 (create_cu_from_index_list)
6175 (create_signatured_type_table_from_index)
6176 (create_signatured_type_table_from_debug_names)
6177 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6178 (dwarf2_create_include_psymtab)
6179 (create_debug_type_hash_table, add_type_unit)
6180 (create_type_unit_group, read_comp_units_from_section)
6181 (dwarf2_compute_name, create_cus_hash_table)
6182 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6183 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6184 obstack.
6185 (dw2_get_real_path): Likewise. Change argument to
6186 dwarf2_per_objfile.
6187
f8c6d152
LM
61882020-05-27 Luis Machado <luis.machado@linaro.org>
6189
6190 PR tdep/26000
6191 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6192 for ldrd (immediate).
6193
e98d2e6d
PW
61942020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6195
6196 * command.h: Add comment giving the name of class_tui.
6197 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6198 create the fake command for the help for class_tui.
6199
53a47a3e
TT
62002020-05-26 Tom Tromey <tromey@adacore.com>
6201
6202 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6203 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6204 (val_atr): New function.
6205 (value_val_atr): Use it.
6206 * ada-valprint.c (print_optional_low_bound): Change low bound
6207 handling for enums.
6208 (val_print_packed_array_elements): Don't call discrete_position.
6209 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6210 discrete_position for enum types.
6211 * language.c (default_print_array_index): Change type.
6212 * language.h (struct language_defn) <la_print_array_index>: Add
6213 index_type parameter, change type of index_value.
6214 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6215 (default_print_array_index): Update.
6216 * valprint.c (maybe_print_array_index): Don't call
6217 value_from_longest. Update.
6218 (value_print_array_elements): Don't call discrete_position.
6219
0bc2354b
TT
62202020-05-26 Tom Tromey <tromey@adacore.com>
6221
6222 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6223 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6224
1218a4bf
CDA
62252020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6226
6227 PR gdb/13519
6228 * avr-tdep.c (avr_integer_to_address): Return data or code
6229 address accordingly to the second 'type' argument of the
6230 function.
6231
92651b1d
MW
62322020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6233
6234 * infcmd.c, inferior.h: (construct_inferior_arguments):
6235 Moved function from here to gdbsupport/common-inferior.{h,cc}
6236
0a4f5f8c
TT
62372020-05-23 Tom Tromey <tom@tromey.com>
6238
6239 Revert commit eca1f90c:
6240 * NEWS: Remove entry for completion styling.
6241 * completer.c (_rl_completion_prefix_display_length): Move
6242 declaration later.
6243 (gdb_fnprint): Revert.
6244 (gdb_display_match_list_1): Likewise.
6245 * cli/cli-style.c (completion_prefix_style)
6246 (completion_difference_style, completion_suffix_style): Remove.
6247 (_initialize_cli_style): Revert.
6248 * cli/cli-style.h (completion_prefix_style)
6249 (completion_difference_style, completion_suffix_style): Don't
6250 declare.
6251
e08bd6c5
PA
62522020-05-24 Pedro Alves <palves@redhat.com>
6253
6254 * symtab.c (completion_list_add_name): Return boolean indication
6255 of whether the symbol matched.
6256 (completion_list_add_symbol): Don't try to remove C++ aliases if
6257 the symbol didn't match in the first place.
6258 * symtab.h (completion_list_add_name): Return bool.
6259
ceacbf6e
SM
62602020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6263 type::field.
6264
26f16254
JB
62652020-05-23 Joel Brobecker <brobecker@adacore.com>
6266
6267 GDB 9.2 released.
6268
eca1f90c
TT
62692020-05-23 Tom Tromey <tom@tromey.com>
6270
6271 * NEWS: Add entry for completion styling.
6272 * completer.c (_rl_completion_prefix_display_length): Move
6273 declaration earlier.
6274 (gdb_fnprint): Use completion_style.
6275 (gdb_display_match_list_1): Likewise.
6276 * cli/cli-style.c (completion_prefix_style)
6277 (completion_difference_style, completion_suffix_style): New
6278 globals.
6279 (_initialize_cli_style): Register new globals.
6280 * cli/cli-style.h (completion_prefix_style)
6281 (completion_difference_style, completion_suffix_style): Declare.
6282
51e2cfa2
PA
62832020-05-23 Pedro Alves <palves@redhat.com>
6284
6285 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6286 (parse_escape): Use ISDIGIT instead of isdigit.
6287 (puts_debug): Use gdb_isprint instead of isprint.
6288 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6289 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6290 ISSPACE instead of isspace.
6291 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6292 instead of isspace.
6293 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6294 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6295 instead of isxdigit and ISDIGIT instead of isdigit.
6296
80fc5e77
SM
62972020-05-22 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * gdbtypes.h (struct type) <field>: New method.
6300 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6301 or type::field.
6302
3cabb6b0
SM
63032020-05-22 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6306 (TYPE_FIELDS): Use type::fields. Change all call sites that
6307 modify the propery to use type::set_fields instead.
6308
1f704f76
SM
63092020-05-22 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6312 type::num_fields instead.
6313
5e33d5f4
SM
63142020-05-22 Simon Marchi <simon.marchi@efficios.com>
6315
6316 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6317 methods.
6318 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6319 that modify the number of fields to use type::set_num_fields
6320 instead.
6321
9392ebb3
TT
63222020-05-22 Tom Tromey <tromey@adacore.com>
6323
6324 * compile/compile-object-load.h (munmap_list_free): Don't
6325 declare.
6326
7c13f4e8
AB
63272020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * annotate.c (annotate_source_line): Update return type, add call
6330 to update current symtab and line.
6331 * annotate.h (annotate_source_line): Update return type, and
6332 extend header comment.
6333 * source.c (info_line_command): Check annotation_level before
6334 calling annotate_source_line.
6335 * stack.c (print_frame_info): If calling annotate_source_line
6336 returns true, then don't print any other source line information.
6337
aa370940
SM
63382020-05-21 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6341
84d53fa9
SM
63422020-05-21 Simon Marchi <simon.marchi@efficios.com>
6343
6344 * coffread.c (patch_type): Remove NULL check before xfree.
6345 * corefile.c (set_gnutarget): Likewise.
6346 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6347 * exec.c (build_section_table): Likewise.
6348 * remote.c (remote_target::pass_signals): Likewise.
6349 * utils.c (n_spaces): Likewise.
6350 * cli/cli-script.c (document_command): Likewise.
6351 * i386-windows-tdep.c (core_process_module_section): Likewise.
6352 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6353
9d428aae
SM
63542020-05-20 Simon Marchi <simon.marchi@efficios.com>
6355
6356 * symfile.c (reread_symbols): Clear objfile's section_offsets
6357 vector and section indices, re-compute them by calling
6358 sym_offsets.
6359
250106a7
TT
63602020-05-20 Tom Tromey <tromey@adacore.com>
6361
6362 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6363 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6364
9a0bacfb
TV
63652020-05-20 Tom de Vries <tdevries@suse.de>
6366
6367 PR symtab/25833
6368 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6369
7b958a48
AM
63702020-05-20 Alan Modra <amodra@gmail.com>
6371
6372 PR 25993
6373 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6374 bfd_set_filename.
6375 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6376 passed to bfd_set_filename.
6377 * symfile-mem.c (add_vsyscall_page): Likewise for string
6378 passed to symbol_file_add_from_memory.
6379 (symbol_file_add_from_memory): Make name param a const char* and
6380 don't strdup.
6381
c7e97679
AM
63822020-05-20 Alan Modra <amodra@gmail.com>
6383
6384 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6385 rather than accessing bfd->filename directly.
6386 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6387 and use bfd_section_name.
6388 * dwarf2/frame.c (decode_frame_entry): Likewise.
6389 * exec.c (exec_set_section_address): Likewise.
6390 * solib-aix.c (solib_aix_bfd_open): Likewise.
6391 * stap-probe.c (get_stap_base_address): Likewise.
6392 * symfile.c (reread_symbols): Likewise.
6393
563c591b
TT
63942020-05-19 Tom Tromey <tromey@adacore.com>
6395
6396 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6397
f408d82c
SM
63982020-05-19 Simon Marchi <simon.marchi@efficios.com>
6399
6400 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6401
98c59b52
PA
64022020-05-19 Pedro Alves <palves@redhat.com>
6403
6404 * NEWS (set exec-file-mismatch): Adjust entry.
6405 * exec.c: Include "build-id.h".
6406 (validate_exec_file): Try to match build IDs instead of filenames.
6407 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6408 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6409 and pass down 'warn_if_slow'.
6410 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6411 gdb_bfd_open_closure to pass it down.
6412 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6413
4111f652
PA
64142020-05-19 Pedro Alves <palves@redhat.com>
6415
6416 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6417 * target.c (target_fileio_open_1): Rename to target_fileio_open
6418 and make extern. Use bool.
6419 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6420 (target_fileio_read_alloc_1): Adjust.
6421 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6422 (target_fileio_open_warn_if_slow): Delete declaration.
6423
ad80db5b
PA
64242020-05-19 Pedro Alves <palves@redhat.com>
6425
6426 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6427 Adjust all callers.
6428
1d6ce4d3
YS
64292020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6430
6431 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6432 whether disp is negative.
6433
9005fbbb
SM
64342020-05-19 Simon Marchi <simon.marchi@efficios.com>
6435
6436 * symfile.h (struct symfile_segment_data)
6437 <~symfile_segment_data>: Remove.
6438 <segment_info>: Change to std::vector.
6439 * symfile.c (default_symfile_segments): Update.
6440 * elfread.c (elf_symfile_segments): Update.
6441
68b888ff
SM
64422020-05-19 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6445 <segments>: New.
6446 <segment_bases, segment_sizes>: Remove.
6447 * symfile.c (default_symfile_segments): Update.
6448 * elfread.c (elf_symfile_segments): Update.
6449 * remote.c (remote_target::get_offsets): Update.
6450 * solib-target.c (solib_target_relocate_section_addresses):
6451 Update.
6452
62982abd
SM
64532020-05-19 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * symfile.h (struct symfile_segment_data): Initialize fields.
6456 <~symfile_segment_data>: Add.
6457 (symfile_segment_data_up): New.
6458 (struct sym_fns) <sym_segments>: Return a
6459 symfile_segment_data_up.
6460 (default_symfile_segments): Return a symfile_segment_data_up.
6461 (free_symfile_segment_data): Remove.
6462 (get_symfile_segment_data): Return a symfile_segment_data_up.
6463 * symfile.c (default_symfile_segments): Likewise.
6464 (get_symfile_segment_data): Likewise.
6465 (free_symfile_segment_data): Remove.
6466 (symfile_find_segment_sections): Update.
6467 * elfread.c (elf_symfile_segments): Return a
6468 symfile_segment_data_up.
6469 * remote.c (remote_target::get_offsets): Update.
6470 * solib-target.c (solib_target_relocate_section_addresses):
6471 Update.
6472 * symfile-debug.c (debug_sym_segments): Return a
6473 symfile_segment_data_up.
6474
7f204339
RO
64752020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6476
e52a0f1b
RO
6477 PR build/25981
6478 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6479 Hardcode register numbers.
6480
7f204339
RO
6481 PR build/25981
6482 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6483 procfs_find_LDT_entry): Remove.
6484 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6485 procfs_find_LDT_entry): Remove.
6486 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6487 Remove.
6488
7f32a4d5
PA
64892020-05-17 Pedro Alves <palves@redhat.com>
6490 Andrew Burgess <andrew.burgess@embecosm.com>
6491 Keno Fischer <keno@juliacomputing.com>
6492
6493 PR gdb/25741
6494 * breakpoint.c (build_target_condition_list): Update comments.
6495 (build_target_command_list): Update comments and skip matching
6496 locations.
6497 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6498 a separate function. Simplify "set breakpoint auto-hw off"
6499 handling.
6500 (insert_breakpoints): Update comment.
6501 (tracepoint_locations_match): New parameter. For breakpoints,
6502 compare location types too, if the caller wants to.
6503 (handle_automatic_hardware_breakpoints): New functions.
6504 (bp_location_is_less_than): Also sort by location type and
6505 hardware breakpoint length.
6506 (update_global_location_list): Handle "set breakpoint auto-hw on"
6507 here.
6508 (update_breakpoint_locations): Ask breakpoint_locations_match to
6509 ignore location types.
6510
7d93a1e0
SM
65112020-05-16 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6514 type::name instead.
6515
d0e39ea2
SM
65162020-05-16 Simon Marchi <simon.marchi@efficios.com>
6517
6518 * gdbtypes.h (struct type) <name, set_name>: New methods.
6519 (TYPE_CODE): Use type::name. Change all call sites used to set
6520 the name to use type::set_name instead.
6521
2dab0c7b
TT
65222020-05-16 Tom Tromey <tom@tromey.com>
6523
6524 * top.c (quit_force): Update.
6525 * infrun.c (handle_no_resumed): Update.
6526 * top.h (all_uis): New function.
6527 (ALL_UIS): Remove.
6528
59f7bd8d
SM
65292020-05-16 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6532
9bf058f0
PA
65332020-05-16 Pedro Alves <palves@redhat.com>
6534
6535 * ia64-linux-nat.c
6536 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6537 Declare method.
6538 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6539
8f86ae1a
SM
65402020-05-15 Simon Marchi <simon.marchi@efficios.com>
6541
6542 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6543 (sparc64_adi_info): Likewise.
6544
d6bc0792
TT
65452020-05-15 Tom Tromey <tom@tromey.com>
6546
6547 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6548 block_objfile.
6549 (lookup_objfile_from_block): Remove.
6550 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6551 (lookup_global_symbol): Use block_objfile.
6552 * symtab.h (lookup_objfile_from_block): Don't declare.
6553 * printcmd.c (clear_dangling_display_expressions): Use
6554 block_objfile.
6555 * parse.c (operator_check_standard): Use block_objfile.
6556
8c14c3a3
TT
65572020-05-15 Tom Tromey <tom@tromey.com>
6558
6559 * language.c (language_alloc_type_symbol): Set
6560 SYMBOL_SECTION.
6561 * symtab.c (initialize_objfile_symbol): Remove.
6562 (allocate_symbol): Remove.
6563 (allocate_template_symbol): Remove.
6564 * dwarf2/read.c (fixup_go_packaging): Use "new".
6565 (new_symbol): Use "new".
6566 (read_variable): Don't call initialize_objfile_symbol. Use
6567 "new".
6568 (read_func_scope): Use "new".
6569 * xcoffread.c (process_xcoff_symbol): Don't call
6570 initialize_objfile_symbol.
6571 (SYMBOL_DUP): Remove.
6572 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6573 "new".
6574 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6575 (allocate_template_symbol): Don't declare.
6576 (struct symbol): Add copy constructor. Change defaults.
6577 * jit.c (finalize_symtab): Use "new".
6578 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6579 Use "new".
6580 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6581 (common_block_end): Use "new".
6582 * mdebugread.c (parse_symbol): Use "new".
6583 (new_symbol): Likewise.
6584
5b4a1a8d
PW
65852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6586
6587 * NEWS: Mention changes to help and apropos.
6588
57b4f16e
PW
65892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6590
6591 * command.h (enum command_class): Improve comments, document
6592 that class_alias is for user-defined aliases, give the class
6593 name for each class, remove unused class_xdb.
6594 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6595 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6596 by a precise class.
6597 * infcmd.c (_initialize_infcmd): Likewise.
6598 * reverse.c (_initialize_reverse): Likewise.
6599 * stack.c (_initialize_stack): Likewise.
6600 * symfile.c (_initialize_symfile): Likewise.
6601 * tracepoint.c (_initialize_tracepoint): Likewise.
6602
7c05caf7
PW
66032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6604
6605 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6606 when their aliased command is traversed.
6607 (help_cmd): Add fput_command_names_styled call to
6608 output command name and aliases when command has an alias.
6609
3b3aaacb
PW
66102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6611
6612 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6613 * cli/cli-decode.c (help_cmd_list): Declare as static,
6614 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6615 a command together with the command.
6616 (fput_command_name_styled, fput_command_names_styled): New functions.
6617 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6618 fput_command_name_styled.
6619 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6620 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6621
7aa1b46f
PW
66222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6623
6624 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6625 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6626 * command.h (cmd_show_list): Likewise.
6627 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6628 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6629
89bcba74
PW
66302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6631
6632 * unittests/command-def-selftests.c (traverse_command_structure):
6633 Verify all commands of a list have the same prefix command and
6634 that only the top cmdlist commands have a null prefix.
6635
3f4d92eb
PW
66362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6637
6638 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6639 as prefix, not one of its aliases.
6640 (set_cmd_prefix): Remove.
6641 (do_add_cmd): Centralize the setting of the prefix of a command, when
6642 command is defined after its full chain of prefix commands.
6643 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6644 (add_setshow_cmd_full): Likewise.
6645 (update_prefix_field_of_prefixed_commands): New function.
6646 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6647 update_prefix_field_of_prefixed_commands.
6648 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6649 addresses of remote_set_cmdlist and remote_show_cmdlist given
6650 as argument, not the address of an argument.
6651 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6652 * gdb/remote.c (_initialize_remote): Likewise.
6653
0605465f
PW
66542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6655
6656 * cli/cli-cmds.c (alias_command): Check for an existing alias
6657 using lookup_cmd_composition, as valid_command_p is too strict
6658 and forbids aliases that are the prefix of an existing alias
6659 or command.
6660 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6661 command is properly recognised as a valid command.
6662
58e6ac70
PW
66632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6664
6665 * unittests/help-doc-selftests.c: Rename to
6666 unittests/command-def-selftests.c
6667 * unittests/command-def-selftests.c (help_doc_tests): Update some
6668 comments.
6669 (command_structure_tests, traverse_command_structure): New namespace
6670 and function.
6671 (command_structure_invariants_tests): New function.
6672 (_initialize_command_def_selftests) Renamed from
6673 _initialize_help_doc_selftests, register command_structure_invariants
6674 selftest.
6675
a7b9ceb8
PW
66762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6677
6678 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6679 an alias of 'show'.
6680
b2188a06
JB
66812020-05-15 Joel Brobecker <brobecker@adacore.com>
6682
6683 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6684 ada_is_fixed_point_type. Update all callers.
6685 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6686 all callers.
6687 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6688 Update all callers.
6689 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6690 print_fixed_point_type. Update all callers.
6691 * ada-valprint.c (ada_value_print_num): Replace call to
6692 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6693
a51951c2
KB
66942020-05-14 Kevin Buettner <kevinb@redhat.com>
6695
6696 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6697 processors.
6698 (cpu_supports_bts): Add CV_AMD case.
6699
29d6859f
LM
67002020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6701 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * infrun.c (stop_all_threads): Collect multiple wait events at
6704 each pass.
6705
78134374
SM
67062020-05-14 Simon Marchi <simon.marchi@efficios.com>
6707
6708 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6709 type::code instead.
6710
67607e24
SM
67112020-05-14 Simon Marchi <simon.marchi@efficios.com>
6712
6713 * gdbtypes.h (struct type) <code, set_code>: New methods.
6714 (TYPE_CODE): Use type::code. Change all call sites used to set
6715 the code to use type::set_code instead.
6716
a05575d3
TBA
67172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6718 Tom de Vries <tdevries@suse.de>
6719 Pedro Alves <palves@redhat.com>
6720
6721 PR threads/25478
6722 * infrun.c (stop_all_threads): Do NOT ignore
6723 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6724 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6725 received.
6726 (handle_no_resumed): Remove code handling a live inferior with no
6727 threads.
6728 * remote.c (has_single_non_exited_thread): New.
6729 (remote_target::update_thread_list): Do not delete a thread if is
6730 the last thread of the process.
6731 * thread.c (thread_select): Call delete_exited_threads instead of
6732 prune_threads.
6733
6ad82919
TBA
67342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6735
6736 * infrun.c (stop_all_threads): Enable/disable thread events of all
6737 targets. Move a debug message denoting the end of the function
6738 into the SCOPED_EXIT block.
6739
d890404b
TBA
67402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6741
6742 * process-stratum-target.h: Include <set>.
6743 (all_non_exited_process_targets, switch_to_target_no_thread): New
6744 function declarations.
6745 * process-stratum-target.c (all_non_exited_process_targets)
6746 (switch_to_target_no_thread): New function implementations.
6747
293b3ebc
TBA
67482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6749
6750 * infrun.c (handle_inferior_event): Extract out a piece of code
6751 into...
6752 (mark_non_executing_threads): ...this new function.
6753
7ca9b62a
TBA
67542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6755
6756 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6757 use.
6758
fc75c28b
TBA
67592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6760
6761 * regcache.c (regcache_read_pc_protected): New function
6762 implementation that returns 0 if the PC cannot read via
6763 'regcache_read_pc'.
6764 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6765 instead of 'regcache_read_pc'.
6766 (keep_going_pass_signal): Ditto.
6767
a89febbd
TT
67682020-05-13 Tom Tromey <tromey@adacore.com>
6769
6770 * ada-lang.c (align_value): Remove.
6771 (ada_template_to_fixed_record_type_1): Use align_up.
6772
f7e23710
TBA
67732020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6774
6775 * async-event.c: Update the copyright year.
6776 * async-event.h: Update the copyright year.
6777
02ff80c2
SM
67782020-05-12 Simon Marchi <simon.marchi@efficios.com>
6779
6780 * objfiles.h (is_addr_in_objfile,
6781 shared_objfile_contains_address_p): Return bool.
6782 * objfile.c (is_addr_in_objfile,
6783 shared_objfile_contains_address_p): Return bool.
6784
4fd6c7e8
TT
67852020-05-11 Tom Tromey <tromey@adacore.com>
6786
6787 * cli/cli-cmds.c (info_command): Restore.
6788 (_initialize_cli_cmds): Use add_prefix_command for "info".
6789 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6790
5eb68a39
TT
67912020-05-11 Tom Tromey <tromey@adacore.com>
6792
6793 * ada-lang.c (ada_value_primitive_field): Now public.
6794 * ada-lang.h (ada_value_primitive_field): Declare.
6795 * ada-valprint.c (print_field_values): Use
6796 ada_value_primitive_field for wrapper fields.
6797
7666722f
TV
67982020-05-11 Tom de Vries <tdevries@suse.de>
6799
6800 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6801 MODULE_DOMAIN.
6802
3ee6bb11
TV
68032020-05-11 Tom de Vries <tdevries@suse.de>
6804
6805 PR symtab/25941
6806 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6807 with length 0, if not gdb-produced.
6808 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6809
43434996
TV
68102020-05-09 Tom de Vries <tdevries@suse.de>
6811
6812 PR gdb/25955
6813 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6814 calculation.
6815
2f78cffc
TT
68162020-05-09 Tom Tromey <tom@tromey.com>
6817
6818 * top.c (server_command): Now bool.
6819 * top.h (server_command): Now bool.
6820
4f7bc5ed
TT
68212020-05-08 Tom Tromey <tromey@adacore.com>
6822
6823 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6824 already being processed.
6825
8be4b118
TT
68262020-05-08 Tom Tromey <tom@tromey.com>
6827
6828 * printcmd.c (struct display) <next>: Remove.
6829 <display>: New constructor.
6830 <exp_string>: Now a std::string.
6831 <enabled_p>: Now a bool.
6832 (display_number): Move definition earlier.
6833 (displays): Rename from display_chain. Now a std::vector.
6834 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6835 (display_command): Update.
6836 (do_one_display, disable_display)
6837 (enable_disable_display_command, do_enable_disable_display):
6838 Update.
6839 (free_display): Remove.
6840 (clear_displays): Rewrite.
6841 (delete_display): Update.
6842 (map_display_numbers): Use function_view. Remove "data"
6843 parameter. Update.
6844 (do_delete_display): Remove.
6845 (undisplay_command): Update.
6846 (do_one_display, do_displays, disable_display)
6847 (info_display_command): Update.
6848 (do_enable_disable_display): Remove.
6849 (enable_disable_display_command)
6850 (clear_dangling_display_expressions): Update.
6851
94c93c35
TT
68522020-05-08 Tom Tromey <tom@tromey.com>
6853
6854 * symtab.c (set_symbol_cache_size)
6855 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6856 (maintenance_print_symbol_cache_statistics): Update.
6857 * symmisc.c (print_symbol_bcache_statistics)
6858 (print_objfile_statistics, maintenance_print_objfiles)
6859 (maintenance_info_symtabs, maintenance_check_symtabs)
6860 (maintenance_expand_symtabs, maintenance_info_line_tables):
6861 Update.
6862 * symfile-debug.c (set_debug_symfile): Update.
6863 * source.c (forget_cached_source_info): Update.
6864 * python/python.c (gdbpy_progspaces): Update.
6865 * psymtab.c (maintenance_info_psymtabs): Update.
6866 * probe.c (parse_probes): Update.
6867 * linespec.c (iterate_over_all_matching_symtabs)
6868 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6869 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6870 * exec.c (exec_target::close): Update.
6871 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6872 * breakpoint.c (print_one_breakpoint_location)
6873 (create_longjmp_master_breakpoint)
6874 (create_std_terminate_master_breakpoint): Update.
6875 * progspace.c (program_spaces): Now a std::vector.
6876 (maybe_new_address_space): Update.
6877 (add_program_space): Remove.
6878 (program_space::program_space): Update.
6879 (remove_program_space): Update.
6880 (number_of_program_spaces): Remove.
6881 (print_program_space, update_address_spaces): Update.
6882 * progspace.h (program_spaces): Change type.
6883 (ALL_PSPACES): Remove.
6884 (number_of_program_spaces): Don't declare.
6885 (struct program_space) <next>: Remove.
6886
a1fd1ac9
TT
68872020-05-08 Tom Tromey <tom@tromey.com>
6888
6889 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6890 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6891 (enable_break): Update.
6892 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6893 (frv_fdpic_find_canonical_descriptor): Update.
6894 (frv_fetch_objfile_link_map): Update.
6895 * progspace.c (program_space::free_all_objfiles): Update.
6896 (program_space::solibs): New method.
6897 * progspace.h (struct program_space) <solibs>: New method.
6898 * solist.h (master_so_list): Don't declare.
6899 (ALL_SO_LIBS): Remove.
6900 * solib.h (so_list_head): Remove.
6901 (update_solib_list): Update comment.
6902 * solib.c (master_so_list): Remove.
6903 (solib_used, update_solib_list, solib_add)
6904 (info_sharedlibrary_command, clear_solib)
6905 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6906
38eae084
TT
69072020-05-08 Tom Tromey <tom@tromey.com>
6908
6909 * extension.c (extension_languages): Now a std::array.
6910 (ALL_EXTENSION_LANGUAGES): Remove.
6911 (get_ext_lang_defn, get_ext_lang_of_file)
6912 (eval_ext_lang_from_control_command): Update.
6913 (finish_ext_lang_initialization)
6914 (auto_load_ext_lang_scripts_for_objfile)
6915 (ext_lang_type_printers::ext_lang_type_printers)
6916 (apply_ext_lang_type_printers)
6917 (ext_lang_type_printers::~ext_lang_type_printers)
6918 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6919 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6920 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6921 (get_matching_xmethod_workers, ext_lang_colorize)
6922 (ext_lang_before_prompt): Update.
6923 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6924
596dc4ad
TT
69252020-05-08 Tom Tromey <tom@tromey.com>
6926
6927 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6928 overload.
6929 <swap_string, m_string>: Remove.
6930 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6931 Update.
6932 * stabsread.c (define_symbol, read_type): Update.
6933 * linespec.c (find_linespec_symbols): Update.
6934 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6935 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6936 * dbxread.c (read_dbx_symtab): Update.
6937 * cp-support.h (cp_canonicalize_string_full)
6938 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6939 Return unique_xmalloc_ptr.
6940 * cp-support.c (inspect_type): Update.
6941 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6942 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6943 Likewise.
6944 * c-typeprint.c (print_name_maybe_canonical): Update.
6945 * break-catch-throw.c (check_status_exception_catchpoint):
6946 Update.
6947
bf4cb9be
TV
69482020-05-08 Tom de Vries <tdevries@suse.de>
6949
6950 * infrun.c (follow_fork): Copy current_line and current_symtab to
6951 child thread.
6952
a1b68f28
SM
69532020-05-07 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * async-event.c (struct async_signal_handler, struct
6956 async_event_handler): Reformat, remove typedef.
6957
98d48915
SM
69582020-05-07 Simon Marchi <simon.marchi@efficios.com>
6959
6960 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6961 access thistype->main_type->dyn_prop_list directly.
6962
7aa91313
SM
69632020-05-07 Simon Marchi <simon.marchi@efficios.com>
6964
6965 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6966 (remove_dyn_prop): Remove. Update all users to use
6967 type::remove_dyn_prop.
6968 * gdbtypes.c (remove_dyn_prop): Rename to...
6969 (type::remove_dyn_prop): ... this.
6970
5c54719c
SM
69712020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6972
6973 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6974 (add_dyn_prop): Remove. Update all users to use
6975 type::add_dyn_prop.
6976 * gdbtypes.c (add_dyn_prop): Rename to...
6977 (type::add_dyn_prop): ... this.
6978
24e99c6c
SM
69792020-05-07 Simon Marchi <simon.marchi@efficios.com>
6980
6981 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6982 (get_dyn_prop): Remove. Update all users to use
6983 type::dyn_prop.
6984 * gdbtypes.c (get_dyn_prop): Rename to...
6985 (type::dyn_prop): ... this.
6986
0d4bf016
SM
69872020-05-06 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6990
ac4a4f1c
SM
69912020-05-06 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6994 instruction, skip it if it's there.
6995
a3bbacc1
SM
69962020-05-05 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6999
c3236f84
SM
70002020-05-04 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7003 * gdbtypes.c (recursive_dump_type): Remove use of
7004 TYPE_INCOMPLETE.
7005
3b6acaee
TT
70062020-05-03 Tom Tromey <tom@tromey.com>
7007
7008 * breakpoint.c (catch_command, tcatch_command): Remove.
7009 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7010 add_show_prefix_cmd.
7011 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7012 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7013 Remove.
7014 (add_internal_problem_command): Use add_basic_prefix_cmd,
7015 add_show_prefix_cmd.
7016 * mips-tdep.c (set_mipsfpu_command): Remove.
7017 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7018 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7019 (_initialize_index_cache): Use add_basic_prefix_cmd.
7020 * memattr.c (dummy_cmd): Remove.
7021 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7022 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7023 (_initialize_tui_win): Use add_basic_prefix_cmd,
7024 add_show_prefix_cmd.
7025 * cli/cli-logging.c (set_logging_command): Remove.
7026 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7027 add_show_prefix_cmd.
7028 (show_logging_command): Remove.
7029 * target.c (target_command): Remove.
7030 (add_target): Use add_basic_prefix_cmd.
7031
a51119cd
HD
70322020-05-02 Hannes Domani <ssbssa@yahoo.de>
7033
7034 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7035
652fc23a 70362020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7037
652fc23a
PW
7038 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7039 info_command.
7040
117539e6
KR
70412020-04-30 Kamil Rytarowski <n54@gmx.com>
7042
7043 * nbsd-nat.c (nbsd_enable_proc_events)
7044 (nbsd_nat_target::post_startup_inferior): Add.
7045 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7046 (nbsd_nat_target::update_thread_list): Rewrite.
7047 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7048 "PTRACE_LWP_CREATE".
7049 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7050
102e38eb 70512020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7052
102e38eb
PW
7053 * stack.c (_initialize_stack): Remove duplicated creation
7054 of "frame" command and "f" alias.
7055
ee9d1e5f
HD
70562020-04-30 Hannes Domani <ssbssa@yahoo.de>
7057
7058 PR gdb/18706
7059 * gdbtypes.c (check_typedef): Calculate size of array of
7060 stubbed type.
7061
627c7fb8
HD
70622020-04-30 Hannes Domani <ssbssa@yahoo.de>
7063
7064 PR gdb/15559
7065 * i386-tdep.c (i386_push_dummy_call): Call
7066 i386_thiscall_push_dummy_call.
7067 (i386_thiscall_push_dummy_call): New function.
7068 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7069 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7070 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7071
ffc2844e
SM
70722020-04-29 Simon Marchi <simon.marchi@efficios.com>
7073
7074 * gdbarch.sh (do_read): Add shellcheck disable directive for
7075 warning SC2162.
7076
1207375d
SM
70772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7080 "referenced but not assigned" warning.
7081
9fdb2916
SM
70822020-04-29 Simon Marchi <simon.marchi@efficios.com>
7083
7084 * gdbarch.sh: Remove code that sets fallbackdefault.
7085
759cea5e
SM
70862020-04-29 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * gdbarch.sh: Use shell operators && and || instead of
7089 -a and -o.
7090
cb02ab24
SM
70912020-04-29 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * gdbarch.sh: Use $(...) instead of `...`.
7094
a6fc5ffc
SM
70952020-04-29 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * gdbarch.sh: Use double quotes around variables.
7098
8d113d13
SM
70992020-04-29 Simon Marchi <simon.marchi@efficios.com>
7100
7101 * gdbarch.sh: Use %s with printf, instead of variables in the
7102 format string.
7103
ed6acedd
TT
71042020-04-29 Tom Tromey <tromey@adacore.com>
7105
7106 PR ada/25875:
7107 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7108 type fields here.
7109 (read_enumeration_type): Call
7110 update_enumeration_type_from_children later. Update comments.
7111 (process_enumeration_scope): Don't create type fields.
7112
b68b1b58
KR
71132020-04-29 Kamil Rytarowski <n54@gmx.com>
7114
7115 * nbsd-tdep.c: Include "xml-syscall.h".
7116 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7117
f94b2e03
KR
71182020-04-29 Kamil Rytarowski <n54@gmx.com>
7119
7120 * nbsd-nat.c: Include "sys/wait.h".
7121 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7122 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7123 (nbsd_nat_target::remove_exec_catchpoint)
7124 (nbsd_nat_target::set_syscall_catchpoint): Add.
7125 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7126 (nbsd_nat_target::insert_exec_catchpoint)
7127 (nbsd_nat_target::remove_exec_catchpoint)
7128 (nbsd_nat_target::set_syscall_catchpoint): Add.
7129 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7130 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7131 `nbsd_get_syscall_number'.
7132
fc49bc72
TT
71332020-04-29 Tom Tromey <tom@tromey.com>
7134
7135 * stack.c (print_block_frame_labels): Remove.
7136
d642b692
HD
71372020-04-29 Hannes Domani <ssbssa@yahoo.de>
7138
7139 PR gdb/17320
7140 * ada-valprint.c (val_print_packed_array_elements): Move array
7141 end bracket to new line.
7142 (ada_val_print_string): Remove extra spaces before first array
7143 element.
7144 * c-valprint.c (c_value_print_array): Likewise.
7145 * m2-valprint.c (m2_print_array_contents): Likewise.
7146 (m2_value_print_inner): Likewise.
7147 * p-valprint.c (pascal_value_print_inner): Likewise.
7148 * valprint.c (generic_val_print_array): Likewise.
7149 (value_print_array_elements): Move first array element and array
7150 end bracket to new line.
7151
ea90f227
TV
71522020-04-29 Tom de Vries <tdevries@suse.de>
7153
7154 PR symtab/25889
7155 * linespec.c (find_method): Fix ix calculation.
7156
4498ef4f
KR
71572020-04-28 Kamil Rytarowski <n54@gmx.com>
7158
7159 * syscalls/update-netbsd.sh: New file.
7160 * syscalls/netbsd.xml: Regenerate.
7161 * data-directory/Makefile.in: Register `netbsd.xml' in
7162 `SYSCALLS_FILES'.
7163
a55e30b5
SM
71642020-04-28 Simon Marchi <simon.marchi@efficios.com>
7165
7166 * syscalls/update-freebsd.sh: Add double quotes.
7167
2b2fbab8
TT
71682020-04-28 Tom Tromey <tom@tromey.com>
7169
7170 * NEWS: Update.
7171 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7172 (cmdpy_init): Allow class_tui.
7173
a65189c9
TV
71742020-04-28 Mark Williams <mark@myosotissp.com>
7175
7176 PR gdb/24480
7177 * dwarf2read.c: Add missing assingments to list_in_scope when
7178 start_symtab was already called.
7179
1b95cdb7
SM
71802020-04-28 Simon Marchi <simon.marchi@efficios.com>
7181
7182 PR gdb/25881
7183 * dwarf2/read.c (offset_map_type): Use
7184 gdb:hash_enum<sect_offset> as hash function.
7185
15cd93d0
TV
71862020-04-28 Tom de Vries <tdevries@suse.de>
7187
7188 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7189 with DW_AT_signature.
7190
1eb39914
SM
71912020-04-27 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * configure.ac: Remove check for fs_base/gs_base in
7194 user_regs_struct.
7195 * configure: Re-generate.
7196 * config.in: Re-generate.
7197 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7198 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7199 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7200
991a3e2e
LM
72012020-04-27 Luis Machado <luis.machado@linaro.org>
7202
7203 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7204 problematic inline frame unwinding situation.
7205 * frame.c (frame_id_computed_p): New function.
7206 * frame.h (frame_id_computed_p): New prototype.
7207
361ba0e8
TT
72082020-04-26 Tom Tromey <tom@tromey.com>
7209
7210 * command.h (enum command_class) <class_pseudo>: Remove.
7211
bc3609fd
PW
72122020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7213
7214 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7215 and whitespace.
7216
b9771db7
KR
72172020-04-25 Kamil Rytarowski <n54@gmx.com>
7218
ec16513e
SM
7219 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7220 `PT_GET_PROCESS_STATE' block.
b9771db7 7221
7151c1af
TT
72222020-04-24 Tom Tromey <tom@tromey.com>
7223
7224 * symtab.h (symbol_get_demangled_name): Don't declare.
7225 * symtab.c (symbol_get_demangled_name): Remove.
7226 (general_symbol_info::natural_name)
7227 (general_symbol_info::demangled_name): Update.
7228
906bb4c5
TT
72292020-04-24 Tom Tromey <tom@tromey.com>
7230
7231 PR rust/25025:
7232 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7233
bcfe6157
TT
72342020-04-24 Tom Tromey <tom@tromey.com>
7235
7236 PR symtab/12707:
7237 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7238 exists.
7239 (new_symbol): Likewise.
7240 * compile/compile-object-load.c (get_out_value_type): Use
7241 symbol_matches_search_name.
7242
f049a313
TT
72432020-04-24 Tom Tromey <tom@tromey.com>
7244
7245 * dwarf2/read.c (add_partial_symbol): Do not call
7246 compute_and_set_names.
7247
76e288d1
TT
72482020-04-24 Tom Tromey <tom@tromey.com>
7249
7250 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7251 overload.
7252
2467f4f6
TT
72532020-04-24 Tom Tromey <tom@tromey.com>
7254
7255 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7256 (add_psymbol_to_list): New overload. Make old overload call new
7257 one.
7258 * psympriv.h (add_psymbol_to_list): New overload.
7259
e61108c9
TT
72602020-04-24 Tom Tromey <tom@tromey.com>
7261
7262 * dwarf2/read.c (partial_die_info::read) <case
7263 DW_AT_linkage_name>: Use value_as_string.
7264 (dwarf2_string_attr): Use value_as_string.
7265 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7266 method.
7267 * dwarf2/attribute.c (attribute::value_as_string): New method.
7268
8c87a452
TT
72692020-04-24 Tom Tromey <tom@tromey.com>
7270
7271 * symtab.c (general_symbol_info::natural_name)
7272 (general_symbol_info::demangled_name): Check for language_rust.
7273
787de330
TT
72742020-04-24 Tom Tromey <tom@tromey.com>
7275
7276 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7277 (dwarf2_physname): ... from here.
7278 (partial_die_info::read): Add Rust "{" hack.
7279
ff985671
TT
72802020-04-24 Tom Tromey <tom@tromey.com>
7281
7282 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7283 method.
7284 (symbol_set_demangled_name): Don't declare.
7285 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7286 symbol_set_demangled_name.
7287 (general_symbol_info::set_language)
7288 (general_symbol_info::compute_and_set_names): Update.
7289 * minsyms.c (minimal_symbol_reader::install): Update.
7290 * dwarf2/read.c (new_symbol): Update.
7291
1acda803
TT
72922020-04-24 Tom Tromey <tromey@adacore.com>
7293
7294 PR python/23662:
7295 * python/py-type.c (convert_field): Handle
7296 FIELD_LOC_KIND_DWARF_BLOCK.
7297 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7298 (typy_get_dynamic): Nw function.
7299 (type_object_getset): Add "dynamic".
7300 * NEWS: Add entry.
7301
d656f129
TT
73022020-04-24 Tom Tromey <tromey@adacore.com>
7303
7304 * ada-typeprint.c (print_choices, print_variant_part)
7305 (print_record_field_types_dynamic): New functions.
7306 (print_record_field_types): Use print_record_field_types_dynamic.
7307
7d79de9a
TT
73082020-04-24 Tom Tromey <tromey@adacore.com>
7309
7310 * dwarf2/read.c (handle_data_member_location): New overload.
7311 (dwarf2_add_field): Use it.
7312 (decode_locdesc): Add "computed" parameter. Update comment.
7313 * gdbtypes.c (is_dynamic_type_internal): Also look for
7314 FIELD_LOC_KIND_DWARF_BLOCK.
7315 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7316 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7317 virtual base classes.
7318 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7319 FIELD_LOC_KIND_DWARF_BLOCK.
7320
f8e89861
TT
73212020-04-24 Tom Tromey <tromey@adacore.com>
7322
7323 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7324 * gdbtypes.c (is_dynamic_type_internal): Check
7325 TYPE_HAS_DYNAMIC_LENGTH.
7326 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7327 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7328 New macros.
7329 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7330 constant.
7331
9c6a1327
TT
73322020-04-24 Tom Tromey <tromey@adacore.com>
7333
7334 * dwarf2/read.c (struct variant_field): Rewrite.
7335 (struct variant_part_builder): New.
7336 (struct nextfield): Remove "variant" field. Add "offset".
7337 (struct field_info): Add "current_variant_part" and
7338 "variant_parts".
7339 (alloc_discriminant_info): Remove.
7340 (alloc_rust_variant): New function.
7341 (quirk_rust_enum): Update.
7342 (dwarf2_add_field): Set "offset" member. Don't handle
7343 DW_TAG_variant_part.
7344 (offset_map_type): New typedef.
7345 (convert_variant_range, create_one_variant)
7346 (create_one_variant_part, create_variant_parts)
7347 (add_variant_property): New functions.
7348 (dwarf2_attach_fields_to_type): Call add_variant_property.
7349 (read_structure_type): Don't handle DW_TAG_variant_part.
7350 (handle_variant_part, handle_variant): New functions.
7351 (handle_struct_member_die): Use them.
7352 (process_structure_scope): Don't handle variant parts.
7353 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7354 (struct discriminant_info): Remove.
7355 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7356 (struct main_type) <flag_discriminated_union>: Remove.
7357 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7358 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7359 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7360 Update.
7361 * valops.c (value_union_variant): Remove.
7362 * value.h (value_union_variant): Don't declare.
7363
b249d2c2
TT
73642020-04-24 Tom Tromey <tromey@adacore.com>
7365
7366 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7367 (ada_value_primitive_packed_val): Update.
7368 * ada-valprint.c (ada_value_print_1): Update.
7369 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7370 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7371 just an address. Use evaluate_for_locexpr_baton.
7372 (dwarf2_evaluate_property): Update.
7373 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7374 array_view.
7375 * findvar.c (default_read_var_value): Update.
7376 * gdbtypes.c (compute_variant_fields_inner)
7377 (resolve_dynamic_type_internal): Update.
7378 (resolve_dynamic_type): Change type of valaddr parameter.
7379 * gdbtypes.h (resolve_dynamic_type): Update.
7380 * valarith.c (value_subscripted_rvalue): Update.
7381 * value.c (value_from_contents_and_address): Update.
7382
61122aa9
TT
73832020-04-24 Tom Tromey <tromey@adacore.com>
7384
7385 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7386 "push_initial_value" parameter.
7387 (dwarf2_evaluate_property): Likewise.
7388 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7389
ef83a141
TT
73902020-04-24 Tom Tromey <tromey@adacore.com>
7391
7392 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7393 (variant::matches, compute_variant_fields_recurse)
7394 (compute_variant_fields_inner, compute_variant_fields): New
7395 functions.
7396 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7397 Use resolved_type after type is made.
7398 (operator==): Add new cases.
7399 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7400 (struct discriminant_range, struct variant, struct variant_part):
7401 New.
7402 (union dynamic_prop_data) <variant_parts, original_type>: New
7403 members.
7404 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7405 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7406 constants.
7407 * value.c (unpack_bits_as_long): Now public.
7408 * value.h (unpack_bits_as_long): Declare.
7409
675127ec
TT
74102020-04-24 Tom Tromey <tromey@adacore.com>
7411
7412 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7413 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7414
9852ceef
HD
74152020-04-24 Hannes Domani <ssbssa@yahoo.de>
7416
7417 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7418
7632c6ce
KR
74192020-04-24 Kamil Rytarowski <n54@gmx.com>
7420
7421 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7422 (remove_fork_catchpoint, post_startup_inferior)
7423 (post_attach): Move...
7424 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7425 (remove_fork_catchpoint, post_startup_inferior)
7426 (post_attach): ...here.
7427 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7428 (remove_fork_catchpoint, post_startup_inferior)
7429 (post_attach): Move...
7430 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7431 (remove_fork_catchpoint, post_startup_inferior)
7432 (post_attach): ...here.
7433
7be2bb4f
TT
74342020-04-24 Tom Tromey <tromey@adacore.com>
7435
7436 * nat/windows-nat.h (struct windows_thread_info)
7437 <pc_adjusted>: New member.
7438 * windows-nat.c (windows_fetch_one_register): Check
7439 pc_adjusted.
7440 (windows_nat_target::get_windows_debug_event)
7441 (windows_nat_target::wait): Set pc_adjusted.
7442
f80cb3b4
TV
74432020-04-24 Tom de Vries <tdevries@suse.de>
7444
7445 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7446 Run gdb-add-index inside temp dir.
7447
29514b87
TT
74482020-04-23 Tom Tromey <tromey@adacore.com>
7449
7450 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7451 in loop.
7452
5939967b
LM
74532020-04-23 Luis Machado <luis.machado@linaro.org>
7454
7455 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7456 get_frame_register instead of gdbarch_unwind_pc.
7457
70bc38f5
TV
74582020-04-23 Tom de Vries <tdevries@suse.de>
7459
7460 * symtab.c (lookup_global_symbol): Prefer def over decl.
7461
de82891c
TV
74622020-04-23 Tom de Vries <tdevries@suse.de>
7463
7464 PR symtab/25807
7465 * block.c (best_symbol, better_symbol): Promote to external.
7466 * block.h (best_symbol, better_symbol): Declare.
7467 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7468 decl.
7469
ecc6c606
TT
74702020-04-23 Tom Tromey <tromey@adacore.com>
7471
7472 PR ada/25837:
7473 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7474 "const char *", not a "const std::string &".
7475 <name_and_matcher::operator==>: Update.
7476 * unittests/lookup_name_info-selftests.c: Change type of
7477 "result".
7478
740480b8
TT
74792020-04-23 Tom Tromey <tom@tromey.com>
7480
7481 * inferior.h (iterate_over_inferiors): Don't declare.
7482 * inferior.c (iterate_over_inferiors): Remove.
7483 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7484 Remove.
7485 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7486 use iterate_over_inferiors.
7487 (darwin_resume_inferior_it)
7488 (struct resume_inferior_threads_param)
7489 (darwin_resume_inferior_threads_it): Remove.
7490 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7491
ae3ab1f0
TV
74922020-04-23 Tom de Vries <tdevries@suse.de>
7493
7494 * blockframe.c (find_pc_partial_function): Use
7495 find_pc_sect_compunit_symtab rather than
7496 objfile->sf->qf->find_pc_sect_compunit_symtab.
7497
317d2668
TV
74982020-04-22 Tom de Vries <tdevries@suse.de>
7499
7500 PR symtab/25764
7501 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7502 in psymtabs.
7503
eea9e357
TV
75042020-04-22 Tom de Vries <tdevries@suse.de>
7505
7506 PR symtab/25801
7507 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7508 symtabs.
7509
3d5afab3
TV
75102020-04-22 Tom de Vries <tdevries@suse.de>
7511
7512 PR symtab/25700
7513 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7514 CU if already created.
7515
d43b7a2d
TBA
75162020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7517
7518 * infrun.c (displaced_step_fixup): Switch to the event_thread
7519 before calling displaced_step_restore, not after.
7520
d89edf9b
MM
75212020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7522
7523 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7524 its inferior is not recorded by us.
7525 (record_btrace_target_open): Replace call to
7526 all_non_exited_threads () with call to current_inferior
7527 ()->non_exited_threads ().
7528 (record_btrace_target::stop_recording): Likewise.
7529 (record_btrace_target::close): Likewise.
7530 (record_btrace_target::wait): Likewise.
7531 (record_btrace_target::record_stop_replaying): Likewise.
7532
5897fd49
MM
75332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7534
7535 * btrace.c (btrace_enable): Throw an error on double enables and
7536 when enabling recording fails.
7537 (btrace_disable): Throw an error if the thread is not recorded.
7538
1a476b6d
MM
75392020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7540
7541 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7542 request if we do not have a thread_info.
7543
4778a5f8
TV
75442020-04-21 Tom de Vries <tdevries@suse.de>
7545
7546 PR gdb/25471
7547 * thread.c
7548 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7549 exception in get_frame_id.
7550
0fa7617d
TT
75512020-04-20 Tom Tromey <tromey@adacore.com>
7552
7553 * python/python.c (struct gdbpy_event): Mark move constructor as
7554 noexcept.
7555 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7556 constructor as noexcept.
7557 * completer.h (struct completion_result): Mark move constructor as
7558 noexcept.
7559 * completer.c (completion_result::completion_result): Use
7560 initialization style. Don't call reset_match_list.
7561
ad23bda0
MS
75622020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7563
7564 * MAINTAINERS (Write After Approval): Add myself.
7565
45e1f031
TT
75662020-04-18 Tom Tromey <tom@tromey.com>
7567
7568 * windows-tdep.c (init_w32_command_list)
7569 (w32_prefix_command_valid): Restore.
7570 (_initialize_windows_tdep): Call init_w32_command_list.
7571
08feed99
TT
75722020-04-18 Tom Tromey <tom@tromey.com>
7573
7574 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7575 * value.c (value_fn_field): Update.
7576 * valops.c (find_function_in_inferior)
7577 (value_allocate_space_in_inferior): Update.
7578 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7579 Update.
7580 * tui/tui-source.c (tui_source_window::set_contents): Update.
7581 * symtab.c (lookup_global_or_static_symbol)
7582 (find_function_start_sal_1, skip_prologue_sal)
7583 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7584 * symmisc.c (dump_msymbols, dump_symtab_1)
7585 (maintenance_print_one_line_table): Update.
7586 * symfile.c (init_entry_point_info, section_is_mapped)
7587 (list_overlays_command, simple_read_overlay_table)
7588 (simple_overlay_update_1): Update.
7589 * stap-probe.c (handle_stap_probe): Update.
7590 * stabsread.c (dbx_init_float_type, define_symbol)
7591 (read_one_struct_field, read_enum_type, read_range_type): Update.
7592 * source.c (info_line_command): Update.
7593 * python/python.c (gdbpy_source_objfile_script)
7594 (gdbpy_execute_objfile_script): Update.
7595 * python/py-type.c (save_objfile_types): Update.
7596 * python/py-objfile.c (py_free_objfile): Update.
7597 * python/py-inferior.c (python_new_objfile): Update.
7598 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7599 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7600 (maintenance_check_psymtabs): Update.
7601 * printcmd.c (info_address_command): Update.
7602 * objfiles.h (struct objfile) <arch>: New method, from
7603 get_objfile_arch.
7604 (get_objfile_arch): Don't declare.
7605 * objfiles.c (get_objfile_arch): Remove.
7606 (filter_overlapping_sections): Update.
7607 * minsyms.c (msymbol_is_function): Update.
7608 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7609 (output_nondebug_symbol): Update.
7610 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7611 (mdebug_expand_psymtab): Update.
7612 * machoread.c (macho_add_oso_symfile): Update.
7613 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7614 Update.
7615 * linux-fork.c (checkpoint_command): Update.
7616 * linespec.c (convert_linespec_to_sals): Update.
7617 * jit.c (finalize_symtab): Update.
7618 * infrun.c (insert_exception_resume_from_probe): Update.
7619 * ia64-tdep.c (ia64_find_unwind_table): Update.
7620 * hppa-tdep.c (internalize_unwinds): Update.
7621 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7622 Update.
7623 * gcore.c (call_target_sbrk): Update.
7624 * elfread.c (record_minimal_symbol, elf_symtab_read)
7625 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7626 (elf_gnu_ifunc_resolve_by_got): Update.
7627 * dwarf2/read.c (create_addrmap_from_index)
7628 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7629 (read_debug_names_from_section)
7630 (process_psymtab_comp_unit_reader, add_partial_symbol)
7631 (add_partial_subprogram, process_full_comp_unit)
7632 (read_file_scope, read_func_scope, read_lexical_block_scope)
7633 (read_call_site_scope, dwarf2_ranges_read)
7634 (dwarf2_record_block_ranges, dwarf2_add_field)
7635 (mark_common_block_symbol_computed, read_tag_pointer_type)
7636 (read_tag_string_type, dwarf2_init_float_type)
7637 (dwarf2_init_complex_target_type, read_base_type)
7638 (partial_die_info::read, partial_die_info::read)
7639 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7640 (dwarf2_fetch_die_loc_sect_off): Update.
7641 * dwarf2/loc.c (dwarf2_find_location_expression)
7642 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7643 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7644 (dwarf2_loc_desc_get_symbol_read_needs)
7645 (locexpr_describe_location_piece, locexpr_describe_location_1)
7646 (loclist_describe_location): Update.
7647 * dwarf2/index-write.c (write_debug_names): Update.
7648 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7649 * dtrace-probe.c (dtrace_process_dof): Update.
7650 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7651 (process_one_symbol): Update.
7652 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7653 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7654 (coff_read_enum_type): Update.
7655 * cli/cli-cmds.c (edit_command, list_command): Update.
7656 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7657 * breakpoint.c (create_overlay_event_breakpoint)
7658 (create_longjmp_master_breakpoint)
7659 (create_std_terminate_master_breakpoint)
7660 (create_exception_master_breakpoint, get_sal_arch): Update.
7661 * block.c (block_gdbarch): Update.
7662 * annotate.c (annotate_source_line): Update.
7663
0743fc83
TT
76642020-04-17 Tom Tromey <tromey@adacore.com>
7665
7666 * auto-load.c (show_auto_load_cmd): Remove.
7667 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7668 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7669 (maintenance_print_arc_command): Remove.
7670 * tui/tui-win.c (tui_command): Remove.
7671 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7672 * tui/tui-layout.c (tui_layout_command): Remove.
7673 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7674 * python/python.c (user_set_python, user_show_python): Remove.
7675 (_initialize_python): Use add_basic_prefix_cmd,
7676 add_show_prefix_cmd.
7677 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7678 (install_gdb_commands): Use add_basic_prefix_cmd,
7679 add_show_prefix_cmd.
7680 (info_guile_command): Remove.
7681 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7682 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7683 add_show_prefix_cmd.
7684 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7685 Remove do_set and do_show parameters.
7686 * cli/cli-style.c (set_style, show_style): Remove.
7687 (_initialize_cli_style): Use add_basic_prefix_cmd,
7688 add_show_prefix_cmd.
7689 (cli_style_option::add_setshow_commands): Remove do_set and
7690 do_show parameters.
7691 (cli_style_option::add_setshow_commands): Use
7692 add_basic_prefix_cmd, add_show_prefix_cmd.
7693 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7694 (set_style_name): Remove.
7695 * cli/cli-dump.c (dump_command, append_command): Remove.
7696 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7697 (tekhex_dump_command, binary_dump_command)
7698 (binary_append_command): Remove.
7699 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7700 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7701 (init_w32_command_list): Remove; move into ...
7702 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7703 * valprint.c (set_print, show_print, set_print_raw)
7704 (show_print_raw): Remove.
7705 (_initialize_valprint): Use add_basic_prefix_cmd,
7706 add_show_prefix_cmd.
7707 * typeprint.c (set_print_type, show_print_type): Remove.
7708 (_initialize_typeprint): Use add_basic_prefix_cmd,
7709 add_show_prefix_cmd.
7710 * record.c (set_record_command, show_record_command): Remove.
7711 (_initialize_record): Use add_basic_prefix_cmd,
7712 add_show_prefix_cmd.
7713 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7714 add_show_prefix_cmd.
7715 (info_command, show_command, set_debug, show_debug): Remove.
7716 * top.h (set_history, show_history): Don't declare.
7717 * top.c (set_history, show_history): Remove.
7718 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7719 (unset_tdesc_cmd): Remove.
7720 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7721 add_show_prefix_cmd.
7722 * symtab.c (info_module_command): Remove.
7723 (_initialize_symtab): Use add_basic_prefix_cmd.
7724 * symfile.c (overlay_command): Remove.
7725 (_initialize_symfile): Use add_basic_prefix_cmd.
7726 * sparc64-tdep.c (info_adi_command): Remove.
7727 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7728 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7729 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7730 add_show_prefix_cmd.
7731 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7732 (_initialize_serial): Use add_basic_prefix_cmd,
7733 add_show_prefix_cmd.
7734 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7735 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7736 add_show_prefix_cmd.
7737 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7738 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7739 add_show_prefix_cmd.
7740 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7741 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7742 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7743 add_show_prefix_cmd.
7744 * remote.c (remote_command, set_remote_cmd): Remove.
7745 (_initialize_remote): Use add_basic_prefix_cmd.
7746 * record-full.c (set_record_full_command)
7747 (show_record_full_command): Remove.
7748 (_initialize_record_full): Use add_basic_prefix_cmd,
7749 add_show_prefix_cmd.
7750 * record-btrace.c (cmd_set_record_btrace)
7751 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7752 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7753 (cmd_show_record_btrace_pt): Remove.
7754 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7755 add_show_prefix_cmd.
7756 * ravenscar-thread.c (set_ravenscar_command)
7757 (show_ravenscar_command): Remove.
7758 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7759 add_show_prefix_cmd.
7760 * mips-tdep.c (show_mips_command, set_mips_command)
7761 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7762 add_show_prefix_cmd.
7763 * maint.c (maintenance_command, maintenance_info_command)
7764 (maintenance_check_command, maintenance_print_command)
7765 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7766 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7767 add_show_prefix_cmd.
7768 (show_per_command_cmd): Remove.
7769 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7770 Remove.
7771 (maintenance_show_test_settings_cmd): Remove.
7772 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7773 add_show_prefix_cmd.
7774 * maint-test-options.c (maintenance_test_options_command):
7775 Remove.
7776 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7777 * macrocmd.c (macro_command): Remove
7778 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7779 * language.c (set_check, show_check): Remove.
7780 (_initialize_language): Use add_basic_prefix_cmd,
7781 add_show_prefix_cmd.
7782 * infcmd.c (unset_command): Remove.
7783 (_initialize_infcmd): Use add_basic_prefix_cmd.
7784 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7785 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7786 add_show_prefix_cmd.
7787 * go32-nat.c (go32_info_dos_command): Remove.
7788 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7789 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7790 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7791 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7792 (_initialize_frame): Use add_basic_prefix_cmd,
7793 add_show_prefix_cmd.
7794 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7795 (_initialize_dcache): Use add_basic_prefix_cmd,
7796 add_show_prefix_cmd.
7797 * cp-support.c (maint_cplus_command): Remove.
7798 (_initialize_cp_support): Use add_basic_prefix_cmd.
7799 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7800 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7801 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7802 add_basic_prefix_cmd, add_show_prefix_cmd.
7803 * breakpoint.c (save_command): Remove.
7804 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7805 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7806 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7807 add_show_prefix_cmd.
7808 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7809 (set_ada_command, show_ada_command): Remove.
7810 (_initialize_ada_language): Use add_basic_prefix_cmd,
7811 add_show_prefix_cmd.
7812 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7813
3557f442
KR
78142020-04-16 Kamil Rytarowski <n54@gmx.com>
7815
7816 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7817 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7818
16197208
SM
78192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7820
7821 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7822 warning messages.
7823
00ac85d3
SM
78242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7825
7826 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7827 import table is not at beginning of .idata section.
7828
381ce63f
PA
78292020-04-16 Pedro Alves <palves@redhat.com>
7830
7831 * inferior.c (delete_inferior): Use delete operator directly
7832 instead of delete_program_space.
7833 * progspace.c (add_program_space): New, factored out from
7834 program_space::program_space.
7835 (remove_program_space): New, factored out from
7836 delete_program_space.
7837 (program_space::program_space): Remove intro comment. Rewrite.
7838 (program_space::~program_space): Remove intro comment. Call
7839 remove_program_space.
7840 (delete_program_space): Delete.
7841 * progspace.h (program_space::program_space): Make explicit. Move
7842 intro comment here, adjusted.
7843 (program_space::~program_space): Move intro comment here,
7844 adjusted.
7845 (delete_program_space): Remove.
7846
a010605f
TT
78472020-04-16 Tom Tromey <tromey@adacore.com>
7848
7849 * windows-nat.c (windows_nat::handle_access_violation): New
7850 function.
7851 * nat/windows-nat.h (handle_access_violation): Declare.
7852 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7853 windows-nat.c. Call handle_access_violation.
7854
efba5c23
TV
78552020-04-16 Tom de Vries <tdevries@suse.de>
7856
7857 PR symtab/25791
7858 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7859 CUs without psymtab.
7860
97ed802d
KB
78612020-04-16 Kevin Buettner <kevinb@redhat.com>
7862
7863 * python/python.c (do_start_initialization): Don't call
7864 PyEval_InitThreads for Python 3.9 and beyond.
7865
c7d64809
KR
78662020-04-15 Kamil Rytarowski <n54@gmx.com>
7867
7868 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7869 thread functions.
7870 (obsd_nat_target::wait): Likewise.
7871
ce127a96
TT
78722020-04-15 Tom Tromey <tromey@adacore.com>
7873
7874 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7875 (DEBUG_EXCEPT): Use debug_printf.
7876
99f1bc6a
AB
78772020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7878
7879 * completer.c (class completion_tracker::completion_hash_entry)
7880 <hash_name>: New member function.
7881 (completion_tracker::discard_completions): New callback to hash a
7882 completion_hash_entry, pass this to htab_create_alloc.
7883
a0e9b532
JT
78842016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7885
7886 * windows-nat.c (windows_make_so): Warn rather than stopping with
7887 an error if realpath() fails.
7888
06ca5dd4
KR
78892020-04-14 Kamil Rytarowski <n54@gmx.com>
7890
7891 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7892 (nbsd_nat_target::info_proc): Add do_status.
7893
194d088f
TV
78942020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7895 Tom de Vries <tdevries@suse.de>
7896
7897 PR symtab/25718
7898 * psympriv.h (struct partial_symtab::read_symtab)
7899 (struct partial_symtab::expand_psymtab)
7900 (struct partial_symtab::read_dependencies): Update comments.
7901 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7902 read_symtab for includer.
7903 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7904 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7905 (struct dwarf2_include_psymtab::m_readin): Remove.
7906 (struct dwarf2_include_psymtab::includer): New member function.
7907 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7908
c1a66c06
TV
79092020-04-14 Tom de Vries <tdevries@suse.de>
7910
7911 PR symtab/25720
7912 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7913 with NULL symbol_matcher and lookup_name.
7914 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7915 and lookup_name.
7916 * dwarf2/read.c (dw2_expand_symtabs_matching)
7917 (dw2_debug_names_expand_symtabs_matching): Same.
7918 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7919 Make lookup_name a pointer. Update comment.
7920 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7921 lookup_name being a pointer.
7922 * symfile.c (expand_symtabs_matching): Same.
7923 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7924 * linespec.c (iterate_over_all_matching_symtabs): Same.
7925
400b5eca
TT
79262020-04-13 Tom Tromey <tom@tromey.com>
7927
7928 * run-on-main-thread.c: Update include.
7929 * unittests/main-thread-selftests.c: Update include.
7930 * tui/tui-win.c: Update include.
7931 * tui/tui-io.c: Update include.
7932 * tui/tui-interp.c: Update include.
7933 * tui/tui-hooks.c: Update include.
7934 * top.h: Update include.
7935 * top.c: Update include.
7936 * ser-base.c: Update include.
7937 * remote.c: Update include.
7938 * remote-notif.c: Update include.
7939 * remote-fileio.c: Update include.
7940 * record-full.c: Update include.
7941 * record-btrace.c: Update include.
7942 * python/python.c: Update include.
7943 * posix-hdep.c: Update include.
7944 * mingw-hdep.c: Update include.
7945 * mi/mi-main.c: Update include.
7946 * mi/mi-interp.c: Update include.
7947 * main.c: Update include.
7948 * linux-nat.c: Update include.
7949 * interps.c: Update include.
7950 * infrun.c: Update include.
7951 * inf-loop.c: Update include.
7952 * event-top.c: Update include.
7953 * event-loop.c: Move to ../gdbsupport/.
7954 * event-loop.h: Move to ../gdbsupport/.
7955 * async-event.h: Update include.
7956 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7957
93b54c8e
TT
79582020-04-13 Tom Tromey <tom@tromey.com>
7959
7960 * tui/tui-win.c: Include async-event.h.
7961 * remote.c: Include async-event.h.
7962 * remote-notif.c: Include async-event.h.
7963 * record-full.c: Include async-event.h.
7964 * record-btrace.c: Include async-event.h.
7965 * infrun.c: Include async-event.h.
7966 * event-top.c: Include async-event.h.
7967 * event-loop.h: Move some declarations to async-event.h.
7968 * event-loop.c: Don't include ser-event.h or top.h. Move some
7969 code to async-event.c.
7970 * async-event.h: New file.
7971 * async-event.c: New file.
7972 * Makefile.in (COMMON_SFILES): Add async-event.c.
7973 (HFILES_NO_SRCDIR): Add async-event.h.
7974
c1cd3163
TT
79752020-04-13 Tom Tromey <tom@tromey.com>
7976
7977 * utils.c (flush_streams): New function.
7978 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7979
29f2bf4f
TT
79802020-04-13 Tom Tromey <tom@tromey.com>
7981
7982 * event-loop.c (handle_file_event): Use warning, not
7983 printf_unfiltered.
7984
98029d02
TT
79852020-04-13 Tom Tromey <tom@tromey.com>
7986
7987 * event-loop.c: Include <chrono>.
7988
06cc9596
TT
79892020-04-13 Tom Tromey <tom@tromey.com>
7990
7991 * gdb_select.h: Move to ../gdbsupport/.
7992 * event-loop.c: Update include path.
7993 * top.c: Update include path.
7994 * ser-base.c: Update include path.
7995 * ui-file.c: Update include path.
7996 * ser-tcp.c: Update include path.
7997 * guile/scm-ports.c: Update include path.
7998 * posix-hdep.c: Update include path.
7999 * ser-unix.c: Update include path.
8000 * gdb_usleep.c: Update include path.
8001 * mingw-hdep.c: Update include path.
8002 * inflow.c: Update include path.
8003 * infrun.c: Update include path.
8004 * event-top.c: Update include path.
8005
8ae8e197
TT
80062020-04-13 Tom Tromey <tom@tromey.com>
8007
8008 * configure: Rebuild.
8009 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8010
58cf28e8
TT
80112020-04-13 Tom Tromey <tom@tromey.com>
8012
8013 * event-loop.h (start_event_loop): Don't declare.
8014 * event-loop.c (start_event_loop): Move...
8015 * main.c (start_event_loop): ...here. Now static.
8016
b7f999ae
SDJ
80172020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8018
8019 * MAINTAINERS: Update my email address.
8020
1085dfd4
KR
80212020-04-12 Kamil Rytarowski <n54@gmx.com>
8022
8023 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8024 IP_ALL.
8025
49d1d1f5
KR
80262020-04-12 Kamil Rytarowski <n54@gmx.com>
8027
8028 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8029 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8030
b4848d2a
KR
80312020-04-12 Kamil Rytarowski <n54@gmx.com>
8032
8033 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8034 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8035
51c133d5
KR
80362020-04-12 Kamil Rytarowski <n54@gmx.com>
8037
8038 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8039
54b8cbd0
KR
80402020-04-11 Kamil Rytarowski <n54@gmx.com>
8041
8042 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8043 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8044 (nbsd_nat_target::info_proc): New functions.
8045 * nbsd-nat.c (kinfo_get_vmmap): New function.
8046 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8047 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8048 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8049 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8050 functions.
8051 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8052 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8053 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8054 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8055 (KINFO_VME_FLAG_GROWS_DOWN): New.
8056
cf83625d
AS
80572020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8058
8059 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8060 bit shift.
8061
0c4311ab
TT
80622020-04-10 Tom Tromey <tromey@adacore.com>
8063
8064 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8065
3e65b3e9
TT
80662020-04-10 Tom Tromey <tromey@adacore.com>
8067
8068 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8069 separate debug files.
8070
13302e95
HD
80712020-04-10 Hannes Domani <ssbssa@yahoo.de>
8072
8073 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8074 Move to...
8075 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8076 ... here.
8077 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8078 Check for STATUS_WX86_BREAKPOINT.
8079 (windows_nat_target::wait): Same.
8080
bdfc1e8a
TV
80812020-04-10 Tom de Vries <tdevries@suse.de>
8082
8083 PR cli/25808
8084 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8085
f4460aec
SM
80862020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8087
8088 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8089 (Write After Approval): Remove Tom de Vries.
8090
a25198bb
BE
80912020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8092
8093 revert partially:
8094 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8095
aac66a4c
SM
8096 * buildsym.c (record_line): Fix undefined behavior and preserve
8097 lines at eof.
a25198bb 8098
206c98a6
KR
80992020-04-09 Kamil Rytarowski <n54@gmx.com>
8100
8101 * auxv.h (svr4_auxv_parse): New.
8102 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8103 and generic_auxv_parse.
8104 (svr4_auxv_parse): Add.
8105 * obsd-tdep.c: Include "auxv.h".
8106 (obsd_auxv_parse): Remove.
8107 (obsd_init_abi): Remove comment.
8108 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8109 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8110 * nbsd-tdep.c: Include "auxv.h".
8111 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8112
71fbdbaf
TT
81132020-04-08 Tom Tromey <tromey@adacore.com>
8114
8115 * nat/windows-nat.h (last_wait_event): Don't declare.
8116 (wait_for_debug_event): Update comment.
8117 * nat/windows-nat.c (last_wait_event): Now static.
8118
2c1d95e8
TT
81192020-04-08 Tom Tromey <tromey@adacore.com>
8120
8121 * windows-nat.c (wait_for_debug_event): Move to
8122 nat/windows-nat.c.
8123 * nat/windows-nat.h (wait_for_debug_event): Declare.
8124 * nat/windows-nat.c (wait_for_debug_event): Move from
8125 windows-nat.c. No longer static.
8126
d2977bc4
TT
81272020-04-08 Tom Tromey <tromey@adacore.com>
8128
8129 * windows-nat.c (get_windows_debug_event): Use
8130 fetch_pending_stop.
8131 * nat/windows-nat.h (fetch_pending_stop): Declare.
8132 * nat/windows-nat.c (fetch_pending_stop): New function.
8133
e758e19c
TT
81342020-04-08 Tom Tromey <tromey@adacore.com>
8135
8136 * windows-nat.c (windows_continue): Use matching_pending_stop and
8137 continue_last_debug_event.
8138 * nat/windows-nat.h (matching_pending_stop)
8139 (continue_last_debug_event): Declare.
8140 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8141 (matching_pending_stop, continue_last_debug_event): New
8142 functions.
8143
8d30e395
TT
81442020-04-08 Tom Tromey <tromey@adacore.com>
8145
8146 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8147 (handle_exception_result): Move to nat/windows-nat.h.
8148 (DEBUG_EXCEPTION_SIMPLE): Remove.
8149 (windows_nat::handle_ms_vc_exception): New function.
8150 (handle_exception): Move to nat/windows-nat.c.
8151 (get_windows_debug_event): Update.
8152 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8153 nat/windows-nat.c.
8154 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8155 (handle_exception_result): Move from windows-nat.c.
8156 (handle_exception): Declare.
8157 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8158 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8159 windows-nat.c.
8160
29de418d
TT
81612020-04-08 Tom Tromey <tromey@adacore.com>
8162
8163 * windows-nat.c (exception_count, event_count): Remove.
8164 (handle_exception, get_windows_debug_event)
8165 (do_initial_windows_stuff): Update.
8166
a816ba18
TT
81672020-04-08 Tom Tromey <tromey@adacore.com>
8168
8169 * windows-nat.c (windows_nat::handle_load_dll)
8170 (windows_nat::handle_unload_dll): Rename. No longer static.
8171 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8172 Declare.
8173
a00caa12
TT
81742020-04-08 Tom Tromey <tromey@adacore.com>
8175
8176 * complaints.h (stop_whining): Declare at top-level.
8177 (complaint): Don't declare stop_whining.
8178
d41b524f
TT
81792020-04-08 Tom Tromey <tromey@adacore.com>
8180
8181 * windows-nat.c (windows_nat::handle_output_debug_string):
8182 Rename. No longer static.
8183 * nat/windows-nat.h (handle_output_debug_string): Declare.
8184
3c76026d
TT
81852020-04-08 Tom Tromey <tromey@adacore.com>
8186
8187 * windows-nat.c (current_process_handle, current_process_id)
8188 (main_thread_id, last_sig, current_event, last_wait_event)
8189 (current_windows_thread, desired_stop_thread_id, pending_stops)
8190 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8191 (display_selectors, fake_create_process)
8192 (get_windows_debug_event): Update.
8193 * nat/windows-nat.h (current_process_handle, current_process_id)
8194 (main_thread_id, last_sig, current_event, last_wait_event)
8195 (current_windows_thread, desired_stop_thread_id, pending_stops)
8196 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8197 * nat/windows-nat.c (current_process_handle, current_process_id)
8198 (main_thread_id, last_sig, current_event, last_wait_event)
8199 (current_windows_thread, desired_stop_thread_id, pending_stops)
8200 (siginfo_er): New globals. Move from windows-nat.c.
8201
9d8679cc
TT
82022020-04-08 Tom Tromey <tromey@adacore.com>
8203
8204 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8205 (handle_load_dll): Update.
8206 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8207
28688adf
TT
82082020-04-08 Tom Tromey <tromey@adacore.com>
8209
8210 * windows-nat.c (enum thread_disposition_type): Move to
8211 nat/windows-nat.h.
8212 (windows_nat::thread_rec): Rename from thread_rec. No longer
8213 static.
8214 (windows_add_thread, windows_nat_target::fetch_registers)
8215 (windows_nat_target::store_registers, handle_exception)
8216 (windows_nat_target::resume, get_windows_debug_event)
8217 (windows_nat_target::get_tib_address)
8218 (windows_nat_target::thread_name)
8219 (windows_nat_target::thread_alive): Update.
8220 * nat/windows-nat.h (enum thread_disposition_type): Move from
8221 windows-nat.c.
8222 (thread_rec): Declare.
8223
4834dad0
TT
82242020-04-08 Tom Tromey <tromey@adacore.com>
8225
8226 * windows-nat.c: Add "using namespace".
8227 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8228 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8229
65bafd5b
TT
82302020-04-08 Tom Tromey <tromey@adacore.com>
8231
8232 * nat/windows-nat.h (struct windows_thread_info): Declare
8233 destructor.
8234 * nat/windows-nat.c (~windows_thread_info): New.
8235
0a4afda3
TT
82362020-04-08 Tom Tromey <tromey@adacore.com>
8237
8238 PR gdb/22992
8239 * windows-nat.c (current_event): Update comment.
8240 (last_wait_event, desired_stop_thread_id): New globals.
8241 (struct pending_stop): New.
8242 (pending_stops): New global.
8243 (windows_nat_target) <stopped_by_sw_breakpoint>
8244 <supports_stopped_by_sw_breakpoint>: New methods.
8245 (windows_fetch_one_register): Add assertions. Adjust PC.
8246 (windows_continue): Handle pending stops. Suspend other threads
8247 when stepping. Use last_wait_event
8248 (wait_for_debug_event): New function.
8249 (get_windows_debug_event): Use wait_for_debug_event. Handle
8250 pending stops. Queue spurious stops.
8251 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8252 (windows_nat_target::kill): Use wait_for_debug_event.
8253 * nat/windows-nat.h (struct windows_thread_info)
8254 <stopped_at_software_breakpoint>: New field.
8255 * nat/windows-nat.c (windows_thread_info::resume): Clear
8256 stopped_at_software_breakpoint.
8257
8e61ebec
TT
82582020-04-08 Tom Tromey <tromey@adacore.com>
8259
8260 * windows-nat.c (enum thread_disposition_type): New.
8261 (thread_rec): Replace "get_context" parameter with "disposition";
8262 change type.
8263 (windows_add_thread, windows_nat_target::fetch_registers)
8264 (windows_nat_target::store_registers, handle_exception)
8265 (windows_nat_target::resume, get_windows_debug_event)
8266 (windows_nat_target::get_tib_address)
8267 (windows_nat_target::thread_name)
8268 (windows_nat_target::thread_alive): Update.
8269
98a03287
TT
82702020-04-08 Tom Tromey <tromey@adacore.com>
8271
8272 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8273 (windows_continue): Use windows_continue::resume.
8274 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8275 resume>: Declare new methods.
8276 * nat/windows-nat.c: New file.
8277 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8278
7c7411bc
TT
82792020-04-08 Tom Tromey <tromey@adacore.com>
8280
8281 * windows-nat.c (windows_add_thread, windows_delete_thread)
8282 (windows_nat_target::fetch_registers)
8283 (windows_nat_target::store_registers, fake_create_process)
8284 (windows_nat_target::resume, windows_nat_target::resume)
8285 (get_windows_debug_event, windows_nat_target::wait)
8286 (windows_nat_target::pid_to_str)
8287 (windows_nat_target::get_tib_address)
8288 (windows_nat_target::get_ada_task_ptid)
8289 (windows_nat_target::thread_name)
8290 (windows_nat_target::thread_alive): Use lwp, not tid.
8291
2950fdf7
TT
82922020-04-08 Tom Tromey <tromey@adacore.com>
8293
8294 * windows-nat.c (handle_exception)
8295 (windows_nat_target::thread_name): Update.
8296 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8297 <name>: Now unique_xmalloc_ptr.
8298
62fe396b
TT
82992020-04-08 Tom Tromey <tromey@adacore.com>
8300
8301 * windows-nat.c (thread_rec)
8302 (windows_nat_target::fetch_registers): Update.
8303 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8304 Update comment.
8305 <debug_registers_changed, reload_context>: Now bool.
8306
e9534bd2
TT
83072020-04-08 Tom Tromey <tromey@adacore.com>
8308
8309 * windows-nat.c (windows_add_thread): Use new.
8310 (windows_init_thread_list, windows_delete_thread): Use delete.
8311 (get_windows_debug_event): Update.
8312 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8313 destructor, and initializers.
8314
ae1f8880
TT
83152020-04-08 Tom Tromey <tromey@adacore.com>
8316
8317 * windows-nat.c (struct windows_thread_info): Remove.
8318 * nat/windows-nat.h: New file.
8319
55a1e039
TT
83202020-04-08 Tom Tromey <tromey@adacore.com>
8321
8322 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8323 (thread_rec, windows_add_thread, windows_delete_thread)
8324 (windows_continue): Update.
8325
93366324
TT
83262020-04-08 Tom Tromey <tromey@adacore.com>
8327
8328 * windows-nat.c (struct windows_thread_info): Remove typedef.
8329 (thread_head): Remove.
8330 (thread_list): New global.
8331 (thread_rec, windows_add_thread, windows_init_thread_list)
8332 (windows_delete_thread, windows_continue): Update.
8333
0f2265e2
SM
83342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8335
8336 * windows-tdep.h (windows_init_abi): Add comment.
8337 (cygwin_init_abi): New declaration.
8338 * windows-tdep.c: Split signal enumeration in two, one for
8339 Windows and one for Cygwin.
8340 (windows_gdb_signal_to_target): Only deal with signal of the
8341 Windows OS ABI.
8342 (cygwin_gdb_signal_to_target): New function.
8343 (windows_init_abi): Rename to windows_init_abi_common, don't set
8344 gdb_signal_to_target gdbarch method. Add new new function with
8345 this name.
8346 (cygwin_init_abi): New function.
8347 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8348 comment. Don't call windows_init_abi.
8349 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8350 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8351 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8352 i386_windows_init_abi_common, don't call windows_init_abi. Add
8353 a new function of this name.
8354 (i386_cygwin_init_abi): New function.
8355 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8356 OS ABI Cygwin.
8357
3810f182
SM
83582020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8359
8360 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8361 parameter.c.
8362 (dwarf2_read_gdb_index): Update.
8363
063f8e80
KR
83642020-04-07 Kamil Rytarowski <n54@gmx.com>
8365
8366 * nbsd-tdep.c: Include "objfiles.h".
8367 (nbsd_skip_solib_resolver): New.
8368 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8369
85a9510c 83702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8371
8372 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8373 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8374 with DW_LLE_base_addressx are being emitted in DWARFv5.
8375 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8376 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8377 unsigned integer.
8378
9fc3eaae 83792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8380
8381 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8382 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8383 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8384 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8385 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8386 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8387 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8388
8389
41144253 83902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8391
8392 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8393 (read_loclist_index): New function definition.
8394 (lookup_loclist_base): New function definition.
8395 (read_loclist_header): New function definition.
8396 (dwarf2_cu): Add loclist_base and loclist_header field.
8397 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8398 (read_full_die_1): Read the value of DW_AT_loclists_base.
8399 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8400 (read_attribute_value): Handle DW_FORM_loclistx.
8401 (skip_one_die): Handle DW_FORM_loclistx.
8402 (loclist_header): New structure declaration.
8403 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8404
9f4e76a4
SM
84052020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8406
8407 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8408 constructor. Remove `addr` parameter from other constructor and
8409 add `per_cu` parameter.
8410 * dwarf2/read.c (create_partial_symtab): Update.
8411
25c11aca
TV
84122020-04-07 Tom de Vries <tdevries@suse.de>
8413
8414 PR symtab/25796
8415 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8416 (partial_die_info::fixup): Inherit has_const_value.
8417
5707e24b
TV
84182020-04-07 Tom de Vries <tdevries@suse.de>
8419
8420 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8421 symbols without address.
8422
05f00e22
KR
84232020-04-06 Kamil Rytarowski <n54@gmx.com>
8424
8425 * nbsd-nat.h (struct thread_info): Add forward declaration.
8426 (nbsd_nat_target::thread_alive): Add.
8427 (nbsd_nat_target::thread_name): Likewise.
8428 (nbsd_nat_target::update_thread_list): Likewise.
8429 (update_thread_list::post_attach): Likewise.
8430 (post_attach::pid_to_str): Likewise.
8431 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8432 (nbsd_thread_lister): Add.
8433 (nbsd_nat_target::thread_alive): Likewise.
8434 (nbsd_nat_target::thread_name): Likewise.
8435 (nbsd_add_threads): Likewise.
8436 (update_thread_list::post_attach): Likewise.
8437 (nbsd_nat_target::update_thread_list): Likewise.
8438 (post_attach::pid_to_str): Likewise.
8439
6ee448cc
TT
84402020-04-06 Tom Tromey <tromey@adacore.com>
8441
8442 * ada-valprint.c (print_variant_part): Extract the variant field.
8443 (print_field_values): Use the field as the outer value when
8444 recursing.
8445
dea34e8c
TT
84462020-04-06 Tom Tromey <tromey@adacore.com>
8447
8448 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8449 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8450 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8451 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8452 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8453
93689ce9
TT
84542020-04-06 Tom Tromey <tromey@adacore.com>
8455
8456 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8457 TYPE_CODE_ERROR.
8458
79743962
KR
84592020-04-06 Kamil Rytarowski <n54@gmx.com>
8460
8461 * nbsd-tdep.c: Include "gdbarch.h".
8462 Define enum with NetBSD signal numbers.
8463 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8464 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8465 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8466 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8467 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8468 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8469 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8470 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8471 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8472 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8473 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8474 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8475
9e7c9a03
HD
84762020-04-03 Hannes Domani <ssbssa@yahoo.de>
8477
8478 PR gdb/25325
8479 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8480
d9e49b61
TT
84812020-04-03 Tom Tromey <tromey@adacore.com>
8482
8483 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8484 Read constant block.
8485
e0fc5c3f
SM
84862020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8489 (gdb_bfd_get_full_section_contents): New declaration.
8490 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8491 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8492 gdb_bfd_get_full_section_contents.
8493
e2ff18a0
SM
84942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8495
8496 * exec.c (build_section_table): Replace internal_error with
8497 gdb_assert.
8498 (section_table_xfer_memory_partial): Likewise.
8499 * mdebugread.c (parse_partial_symbols): Likewise.
8500 * psymtab.c (lookup_partial_symbol): Likewise.
8501 * utils.c (wrap_here): Likewise.
8502
0830d301
TT
85032020-04-02 Tom Tromey <tromey@adacore.com>
8504
8505 * f-lang.c (build_fortran_types): Use arch_type to initialize
8506 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8507
e7da7f8f
TT
85082020-04-02 Tom Tromey <tromey@adacore.com>
8509
8510 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8511 of attributes.
8512
c90d28ac
AB
85132020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8514 Bernd Edlinger <bernd.edlinger@hotmail.de>
8515 Tom Tromey <tromey@adacore.com>
8516
8517 * buildsym.c (buildsym_compunit::record_line): Remove
8518 deduplication code.
8519
1aa98955
TV
85202020-04-02 Tom de Vries <tdevries@suse.de>
8521
8522 PR ada/24671
8523 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8524
d3214198
TV
85252020-04-02 Tom de Vries <tdevries@suse.de>
8526
8527 * dwarf2/read.c (dwarf2_gdb_index_functions,
8528 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8529 NULL.
8530 * psymtab.c (psym_lookup_global_symbol_language): New function.
8531 (psym_functions): Init psym_lookup_global_symbol_language with
8532 psym_lookup_global_symbol_language.
8533 * symfile-debug.c (debug_sym_quick_functions): Init
8534 lookup_global_symbol_language with NULL.
8535 * symfile.c (set_initial_language): Remove fixme comment.
8536 * symfile.h (struct quick_symbol_functions): Add
8537 lookup_global_symbol_language.
8538 * symtab.c (find_quick_global_symbol_language): New function.
8539 (find_main_name): Use find_quick_global_symbol_language.
8540
2836752f
SM
85412020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8542
8543 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8544
64dc2d4b
BE
85452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8546
8547 * buildsym.c (record_line): Fix undefined behavior and preserve
8548 lines at eof.
8549
bbe3dc41
BE
85502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8551
8552 * buildsym.c (record_line): Fix the resizing condition.
8553
6b4a335b
TT
85542020-04-01 Tom Tromey <tom@tromey.com>
8555
8556 * value.h (value_literal_complex): Add comment.
8557 * valops.c (value_literal_complex): Refer to value.h.
8558
3638a098
TT
85592020-04-01 Tom Tromey <tom@tromey.com>
8560
8561 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8562 (scalar_type): New rule, from typebase.
8563 (typebase): Use scalar_type. Recognize complex types.
8564 (field_name): Handle FLOAT_KEYWORD.
8565 (ident_tokens): Add _Complex and __complex__.
8566
c34e8714
TT
85672020-04-01 Tom Tromey <tom@tromey.com>
8568
8569 PR exp/25299:
8570 * valarith.c (promotion_type, complex_binop): New functions.
8571 (scalar_binop): Handle complex numbers. Use promotion_type.
8572 (value_pos, value_neg, value_complement): Handle complex numbers.
8573
fa649bb7
TT
85742020-04-01 Tom Tromey <tom@tromey.com>
8575
8576 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8577 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8578 (parse_number): Handle complex numbers.
8579
981c08ce
TT
85802020-04-01 Tom Tromey <tom@tromey.com>
8581
8582 * c-valprint.c (c_decorations): Change complex suffix to "i".
8583
4c99290d
TT
85842020-04-01 Tom Tromey <tom@tromey.com>
8585
8586 * valprint.c (generic_value_print_complex): Use accessors.
8587 * value.h (value_real_part, value_imaginary_part): Declare.
8588 * valops.c (value_real_part, value_imaginary_part): New
8589 functions.
8590 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8591
5b930b45
TT
85922020-04-01 Tom Tromey <tom@tromey.com>
8593
8594 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8595 (read_range_type): Update.
8596 * mdebugread.c (basic_type): Update.
8597 * go-lang.c (build_go_types): Use init_complex_type.
8598 * gdbtypes.h (struct main_type) <complex_type>: New member.
8599 (init_complex_type): Update.
8600 (arch_complex_type): Don't declare.
8601 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8602 Make name if none given. Use alloc_type_copy. Look for cached
8603 complex type.
8604 (arch_complex_type): Remove.
8605 (gdbtypes_post_init): Use init_complex_type.
8606 * f-lang.c (build_fortran_types): Use init_complex_type.
8607 * dwarf2/read.c (read_base_type): Update.
8608 * d-lang.c (build_d_types): Use init_complex_type.
8609 * ctfread.c (read_base_type): Update.
8610
53cccef1
TBA
86112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8612
8613 * infrun.c (stop_all_threads): Update assertion, plus when
8614 stopping threads, take into account that we might be trying
8615 to stop an all-stop target.
8616 (stop_waiting): Call 'stop_all_threads' if there exists a
8617 non-stop target.
8618
a0714d30
TBA
86192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8620
8621 * target.h (exists_non_stop_target): New function declaration.
8622 * target.c (exists_non_stop_target): New function.
8623
60e22c1e
HD
86242020-04-01 Hannes Domani <ssbssa@yahoo.de>
8625
8626 PR gdb/24789
8627 * eval.c (is_integral_or_integral_reference): New function.
8628 (evaluate_subexp_standard): Allow integer references in
8629 pointer arithmetic.
8630
e139a727
TBA
86312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8632
8633 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8634 check for no ptid in the stop reply when the target is non-stop.
8635
e0802d59
TT
86362020-04-01 Tom Tromey <tromey@adacore.com>
8637
8638 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8639 "name" parameter to rvalue reference. Initialize m_name_holder.
8640 <lookup_name_info>: New overloads.
8641 <name>: Return gdb::string_view.
8642 <c_str>: New method.
8643 <make_ignore_params>: Update.
8644 <search_name_hash>: Update.
8645 <language_lookup_name>: Return const char *.
8646 <m_name>: Change type.
8647 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8648 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8649 (lookup_name_info::match_any): Update.
8650 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8651 Update.
8652 * minsyms.c (linkage_name_str): Update.
8653 * language.c (default_symbol_name_matcher): Update.
8654 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8655 Update.
8656 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8657 (ada_lookup_name_info::ada_lookup_name_info): Update.
8658 (literal_symbol_name_matcher): Update.
8659
8c072cb6
TT
86602020-04-01 Tom Tromey <tromey@adacore.com>
8661
8662 * psymtab.c (psymtab_search_name): Remove function.
8663 (psym_lookup_symbol): Create search name and lookup name here.
8664 (lookup_partial_symbol): Remove "name" parameter; add
8665 lookup_name.
8666 (psym_expand_symtabs_for_function): Update.
8667
6f29a534
TT
86682020-03-31 Joel Jones <joelkevinjones@gmail.com>
8669
8670 PR tui/25597:
8671 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8672
af62665e
TT
86732020-03-31 Tom Tromey <tromey@adacore.com>
8674
8675 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8676 memcpy.
8677
d1a89da5
NC
86782020-03-30 Nelson Chu <nelson.chu@sifive.com>
8679
8680 * features/riscv/32bit-csr.xml: Regenerated.
8681 * features/riscv/64bit-csr.xml: Regenerated.
8682
d8af9068
TT
86832020-03-30 Tom Tromey <tromey@adacore.com>
8684
8685 * ada-valprint.c (print_variant_part): Update.
8686 * ada-lang.h (ada_which_variant_applies): Update.
8687 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8688 outer_valaddr parameters; replace with "outer" value parameter.
8689 (to_fixed_variant_branch_type): Update.
8690
227c0bf4
PFC
86912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8692
8693 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8694 <list>. Remove inclusion of observable.h.
8695 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8696 (struct arch_lwp_info): New struct.
8697 (class ppc_linux_dreg_interface): New class.
8698 (struct ppc_linux_process_info): New struct.
8699 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8700 <low_new_clone, low_forget_process, low_prepare_to_resume>
8701 <copy_thread_dreg_state, mark_thread_stale>
8702 <mark_debug_registers_changed, register_hw_breakpoint>
8703 <clear_hw_breakpoint, register_wp, clear_wp>
8704 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8705 <num_memory_accesses, get_trigger_type>
8706 <create_watchpoint_request, hwdebug_point_cmp>
8707 <init_arch_lwp_info, get_arch_lwp_info>
8708 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8709 methods.
8710 <struct ptid_hash>: New inner struct.
8711 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8712 members.
8713 (saved_dabr_value, hwdebug_info, max_slots_number)
8714 (struct hw_break_tuple, struct thread_points, ppc_threads)
8715 (have_ptrace_hwdebug_interface)
8716 (hwdebug_find_thread_points_by_tid)
8717 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8718 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8719 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8720 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8721 use m_dreg_interface.
8722 (hwdebug_point_cmp): Change to...
8723 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8724 reference arguments instead of pointers.
8725 (ppc_linux_nat_target::ranged_break_num_registers): Use
8726 m_dreg_interface.
8727 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8728 m_dreg_interface. Call register_hw_breakpoint.
8729 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8730 m_dreg_interface. Call clear_hw_breakpoint.
8731 (get_trigger_type): Change to...
8732 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8733 comment.
8734 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8735 use m_dreg_interface. Call register_hw_breakpoint.
8736 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8737 use m_dreg_interface. Call clear_hw_breakpoint.
8738 (can_use_watchpoint_cond_accel): Change to...
8739 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8740 method. Update comment, use m_dreg_interface and
8741 m_process_info.
8742 (calculate_dvc): Change to...
8743 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8744 m_dreg_interface.
8745 (num_memory_accesses): Change to...
8746 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8747 (check_condition): Change to...
8748 (ppc_linux_nat_target::check_condition): ...this method.
8749 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8750 comment, use m_dreg_interface.
8751 (create_watchpoint_request): Change to...
8752 (ppc_linux_nat_target::create_watchpoint_request): ...this
8753 method. Use m_dreg_interface.
8754 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8755 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8756 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8757 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8758 (ppc_linux_nat_target::low_forget_process)
8759 (ppc_linux_nat_target::low_new_fork)
8760 (ppc_linux_nat_target::low_new_clone)
8761 (ppc_linux_nat_target::low_delete_thread)
8762 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8763 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8764 only call mark_thread_stale.
8765 (ppc_linux_thread_exit): Remove.
8766 (ppc_linux_nat_target::stopped_data_address): Change to...
8767 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8768 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8769 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8770 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8771 comment. Call low_stopped_data_address.
8772 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8773 m_dreg_interface.
8774 (ppc_linux_nat_target::masked_watch_num_registers): Use
8775 m_dreg_interface.
8776 (ppc_linux_nat_target::copy_thread_dreg_state)
8777 (ppc_linux_nat_target::mark_thread_stale)
8778 (ppc_linux_nat_target::mark_debug_registers_changed)
8779 (ppc_linux_nat_target::register_hw_breakpoint)
8780 (ppc_linux_nat_target::clear_hw_breakpoint)
8781 (ppc_linux_nat_target::register_wp)
8782 (ppc_linux_nat_target::clear_wp)
8783 (ppc_linux_nat_target::init_arch_lwp_info)
8784 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8785 (_initialize_ppc_linux_nat): Remove observer callback.
8786
4db10d8f
PFC
87872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8788
8789 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8790 (ppc_linux_nat_target::auxv_parse)
8791 (ppc_linux_nat_target::read_description)
8792 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8793 Move up.
8794
1310c1b0
PFC
87952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8796
8797 * linux-nat.h (low_new_clone): New method.
8798 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8799
69b037c3
SM
88002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8801
8802 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8803 (dbx_expand_psymtab): ... this.
8804 (start_psymtab): Update.
8805 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8806 (mdebug_expand_psymtab): ... this.
8807 (parse_partial_symbols): Update.
8808 (new_psymtab): Update.
8809 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8810 (xcoff_expand_psymtab): ... this.
8811 (xcoff_start_psymtab): Update.
8812
48993951
SM
88132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8814
8815 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8816 <expand_dependencies>: ... this.
8817 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8818 (partial_symtab::expand_dependencies): ... this.
8819 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8820 Update.
8821 (dwarf2_psymtab::expand_psymtab): Update.
8822 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8823 * mdebugread.c (psymtab_to_symtab_1): Update.
8824 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8825
3ad83046
SM
88262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * psympriv.h (discard_psymtab): Remove.
8829 * dbxread.c (dbx_end_psymtab): Update.
8830 * xcoffread.c (xcoff_end_psymtab): Update.
8831
4d1b9ab6
TT
88322020-03-28 Tom Tromey <tom@tromey.com>
8833
8834 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8835 comment.
8836
f1749218
TT
88372020-03-28 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8840
ebea7626
HD
88412020-03-27 Hannes Domani <ssbssa@yahoo.de>
8842
8843 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8844
a879b4d5
JB
88452020-03-26 John Baldwin <jhb@FreeBSD.org>
8846
8847 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8848
0826b30a
TT
88492020-03-26 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8852 (mark_common_block_symbol_computed, read_tag_string_type)
8853 (attr_to_dynamic_prop, read_subrange_type): Update.
8854 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8855 to be methods on struct attribute.
8856 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8857 (read_call_site_scope, partial_die_info::read)
8858 (partial_die_info::read, lookup_die_type, follow_die_ref):
8859 Update.
8860 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8861 from dwarf2_get_ref_die_offset.
8862 (attribute::constant_value): New method, from
8863 dwarf2_get_attr_constant_value.
8864 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8865 Declare method.
8866 <constant_value>: New method.
8867
2b2558bf
TT
88682020-03-26 Tom Tromey <tom@tromey.com>
8869
8870 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8871 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8872 (dwarf_type_encoding_name): Move to stringify.c.
8873 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8874 * dwarf2/stringify.c: New file.
8875 * dwarf2/stringify.h: New file.
8876
eeb64781
TT
88772020-03-26 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8880 Rewrite.
8881
a39fdb41
TT
88822020-03-26 Tom Tromey <tom@tromey.com>
8883
8884 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8885 methods.
8886 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8887 (lookup_ranges_base): Likewise.
8888 (read_cutu_die_from_dwo, read_full_die_1): Update.
8889
436c571c
TT
88902020-03-26 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2/read.c (read_import_statement, read_file_scope)
8893 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8894 (read_lexical_block_scope, read_call_site_scope)
8895 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8896 (handle_struct_member_die, process_structure_scope)
8897 (update_enumeration_type_from_children)
8898 (process_enumeration_scope, read_array_type, read_common_block)
8899 (read_namespace, read_module, read_subroutine_type): Update.
8900 (sibling_die): Remove.
8901
052c8bb8
TT
89022020-03-26 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8905 (build_type_psymtabs_reader, read_structure_type)
8906 (read_enumeration_type, read_full_die_1): Update.
8907 (dwarf2_attr_no_follow): Move to die.h.
8908 * dwarf2/die.h (struct die_info) <attr>: New method.
8909
2b24b6e4
TT
89102020-03-26 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8913 <base_address>: Now an optional.
8914 (dwarf2_find_base_address, dwarf2_rnglists_process)
8915 (dwarf2_ranges_process, fill_in_loclist_baton)
8916 (dwarf2_symbol_mark_computed): Update.
8917
c2d50fd0
TT
89182020-03-26 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (struct die_info): Move to die.h.
8921 * dwarf2/die.h: New file.
8922
0df7ad3a
TT
89232020-03-26 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8926 * dwarf2/read.c
8927 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8928 Move to line-header.c.
8929 (read_checked_initial_length_and_offset, read_formatted_entries):
8930 Likewise.
8931 (dwarf_decode_line_header): Split into two.
8932 * dwarf2/line-header.c
8933 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8934 Move from read.c.
8935 (read_checked_initial_length_and_offset, read_formatted_entries):
8936 Likewise.
8937 (dwarf_decode_line_header): New function, split from read.c.
8938
86c0bb4c
TT
89392020-03-26 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8942 Declare method.
8943 * dwarf2/read.c (read_attribute_value): Update.
8944 (dwarf2_per_objfile::read_line_string): Rename from
8945 read_indirect_line_string.
8946 (read_formatted_entries): Update.
8947
2ef46c2f
TT
89482020-03-26 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8951 variable.
8952
4f9c1eda
TT
89532020-03-26 Tom Tromey <tom@tromey.com>
8954
8955 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8956 const.
8957 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8958 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8959 parameter const.
8960
5a0e026f
TT
89612020-03-26 Tom Tromey <tom@tromey.com>
8962
8963 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8964 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8965 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8966 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8967
8844c11b
TT
89682020-03-26 Tom Tromey <tom@tromey.com>
8969
8970 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8971 file_names_size, file_full_name, file_file_name>: Use const.
8972 <file_name_at, file_names>: Add const overload.
8973 * dwarf2/line-header.c (line_header::file_file_name)
8974 (line_header::file_full_name): Update.
8975
c90ec28a
TT
89762020-03-26 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8979 (macro_start_file, consume_improper_spaces)
8980 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8981 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8982 (dwarf_decode_macros): Move to macro.c.
8983 * dwarf2/macro.c: New file.
8984 * dwarf2/macro.h: New file.
8985 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8986
4f44ae6c
TT
89872020-03-26 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8990 method.
8991 * dwarf2/section.c: New method. From
8992 read_indirect_string_at_offset_from.
8993 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8994 (read_indirect_string_at_offset_from): Move to section.c.
8995 (read_indirect_string_at_offset): Rewrite.
8996 (read_indirect_line_string_at_offset): Remove.
8997 (read_indirect_string, read_indirect_line_string)
8998 (dwarf_decode_macro_bytes): Update.
8999
a0194fa8
TT
90002020-03-26 Tom Tromey <tom@tromey.com>
9001
9002 * dwarf2/section.h (struct dwarf2_section_info)
9003 <overload_complaint>: Declare.
9004 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9005 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9006 Rename from dwarf2_section_buffer_overflow_complaint.
9007 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9008 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9009
3d27bbdb
TT
90102020-03-26 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9013 Declare.
9014 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9015 Move from read.c.
9016 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9017 to section.c.
9018
9eac9650
TT
90192020-03-26 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9022
bf80d710
TT
90232020-03-26 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9026 "builder".
9027 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9028 parameter.
9029 (dwarf_decode_macros): Update.
9030
0314b390
TT
90312020-03-26 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/read.c (read_attribute_value): Update.
9034 (read_indirect_string_from_dwz): Move to dwz.c; change into
9035 method.
9036 (dwarf_decode_macro_bytes): Update.
9037 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9038 * dwarf2/dwz.c: New file.
9039 * Makefile.in (COMMON_SFILES): Add dwz.c.
9040
9fda78b6
TT
90412020-03-26 Tom Tromey <tom@tromey.com>
9042
9043 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9044 * dwarf2/read.c: Add include.
9045 * dwarf2/index-write.c: Add include.
9046 * dwarf2/index-cache.c: Add include.
9047 * dwarf2/dwz.h: New file.
9048
33aa3c10
TT
90492020-03-25 Tom Tromey <tom@tromey.com>
9050
9051 * compile/compile-object-load.c (get_out_value_type): Mention
9052 correct symbol name in error message.
9053
d503b685
HD
90542020-03-25 Hannes Domani <ssbssa@yahoo.de>
9055
9056 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9057
7b1eff95
TV
90582020-03-25 Tom de Vries <tdevries@suse.de>
9059
9060 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9061 * symmisc.c (dump_symtab_1): Print user and includes fields.
9062 (maintenance_info_symtabs): Same.
9063
dd895392
AB
90642020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 PR gdb/25534
9067 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9068 (riscv_regcache_cooked_write): New function.
9069 (riscv_push_dummy_call): Use new function.
9070 (riscv_return_value): Likewise.
9071
5ab2fbf1
SM
90722020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9073
9074 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9075 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9076 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9077 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9078 * infrun.c (follow_fork): Likewise.
9079 (follow_fork_inferior): Likewise.
9080 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9081 * linux-nat.h (class linux_nat_target): Likewise.
9082 * remote.c (class remote_target) <follow_fork>: Likewise.
9083 (remote_target::follow_fork): Likewise.
9084 * target-delegates.c: Re-generate.
9085 * target.c (default_follow_fork): Likewise.
9086 (target_follow_fork): Likewise.
9087 * target.h (struct target_ops) <follow_fork>: Likewise.
9088 (target_follow_fork): Likewise.
9089
a64fafb5
TV
90902020-03-24 Tom de Vries <tdevries@suse.de>
9091
9092 * psymtab.c (maintenance_info_psymtabs): Print user field.
9093
fe26d3a3
TT
90942020-03-20 Tom Tromey <tromey@adacore.com>
9095
9096 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9097 const.
9098 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9099 const.
9100
c884cc46
SM
91012020-03-20 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * ptrace.m4: Don't check for ptrace declaration.
9104 * config.in: Re-generate.
9105 * configure: Re-generate.
9106 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9107 not defined.
9108
1ff700c2
KR
91092020-03-20 Kamil Rytarowski <n54@gmx.com>
9110
9111 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9112 `PTRACE_TYPE_RET'.
9113 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9114 * sparc-nat.c (gdb_ptrace): Likewise.
9115 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9116
f7d4f0b1
TT
91172020-03-20 Tom Tromey <tromey@adacore.com>
9118
9119 * c-exp.y (lex_one_token): Fix assert.
9120
f67210ff
TT
91212020-03-20 Tom Tromey <tromey@adacore.com>
9122
9123 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9124 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9125 strncpy call.
9126
1773be9e
TT
91272020-03-20 Tom Tromey <tromey@adacore.com>
9128
9129 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9130
70304be9
TT
91312020-03-20 Tom Tromey <tromey@adacore.com>
9132
9133 * ada-valprint.c (print_variant_part): Remove parameters; switch
9134 to value-based API.
9135 (print_field_values): Likewise.
9136 (ada_val_print_struct_union): Likewise.
9137 (ada_value_print_1): Update.
9138
9faa006d
KR
91392020-03-20 Kamil Rytarowski <n54@gmx.com>
9140
9141 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9142 nbsd_nat_target instead of inf_ptrace_target.
9143 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9144 nbsd_nat_target.
9145
4a90f062
KR
91462020-03-20 Kamil Rytarowski <n54@gmx.com>
9147
9148 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9149 it to the ptrace call.
9150 * (store_registers): Likewise.
9151
91522020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9153
9154 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9155 it to the ptrace call.
9156 * (store_registers): Likewise.
9157
2d07da27
LM
91582020-03-19 Luis Machado <luis.machado@linaro.org>
9159
9160 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9161 valid, fetch vg value from ptrace.
9162
f09db380
KR
91632020-03-19 Kamil Rytarowski <n54@gmx.com>
9164 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9165 * inf-ptrace.c: Likewise.
9166 * (gdb_ptrace): Add.
9167 * (inf_ptrace_target::resume): Update.
9168 * (inf_ptrace_target::xfer_partial): Likewise.
9169 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9170 * (inf_ptrace_peek_poke): Update.
9171
fcc7376e
KR
91722020-03-19 Kamil Rytarowski <n54@gmx.com>
9173
9174 * x86-bsd-nat.c (gdb_ptrace): New.
9175 * (x86bsd_dr_set): Add new argument `ptid'.
9176 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9177 x86bsd_dr_set_addr): Update.
9178
cada5fc9
AB
91792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9180
9181 * remote.c (remote_target::process_stop_reply): Handle events for
9182 all threads differently.
9183
19a2740f
AB
91842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * completer.c (completion_tracker::remove_completion): Define new
9187 function.
9188 * completer.h (completion_tracker::remove_completion): Declare new
9189 function.
9190 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9191 when adding a C++ function symbol.
9192
724fd9ba
AB
91932020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9194
9195 * completer.c (completion_tracker::completion_hash_entry): Define
9196 new class.
9197 (advance_to_filename_complete_word_point): Call
9198 recompute_lowest_common_denominator.
9199 (completion_tracker::completion_tracker): Call discard_completions
9200 to setup the hash table.
9201 (completion_tracker::discard_completions): Allow for being called
9202 from the constructor, pass new equal function, and element deleter
9203 when constructing the hash table. Initialise new class member
9204 variables.
9205 (completion_tracker::maybe_add_completion): Remove use of
9206 m_entries_vec, and store more information into m_entries_hash.
9207 (completion_tracker::recompute_lcd_visitor): New function, most
9208 content taken from...
9209 (completion_tracker::recompute_lowest_common_denominator):
9210 ...here, this now just visits each item in the hash calling the
9211 above visitor.
9212 (completion_tracker::build_completion_result): Remove use of
9213 m_entries_vec, call recompute_lowest_common_denominator.
9214 * completer.h (completion_tracker::have_completions): Remove use
9215 of m_entries_vec.
9216 (completion_tracker::completion_hash_entry): Declare new class.
9217 (completion_tracker::recompute_lowest_common_denominator): Change
9218 function signature.
9219 (completion_tracker::recompute_lcd_visitor): Declare new function.
9220 (completion_tracker::m_entries_vec): Delete.
9221 (completion_tracker::m_entries_hash): Initialize to NULL.
9222 (completion_tracker::m_lowest_common_denominator_valid): New
9223 member variable.
9224 (completion_tracker::m_lowest_common_denominator_max_length): New
9225 member variable.
9226
5a82b8a1
KR
92272020-03-17 Kamil Rytarowski <n54@gmx.com>
9228
9229 * regformats/regdef.h: Put reg in gdb namespace.
9230
fb516a69
KR
92312020-03-17 Kamil Rytarowski <n54@gmx.com>
9232
9233 * i386-bsd-nat.c (gdb_ptrace): New.
9234 * (i386bsd_fetch_inferior_registers,
9235 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9236 * (i386bsd_fetch_inferior_registers,
9237 i386bsd_store_inferior_registers) Use gdb_ptrace.
9238
1c0aa1fb
KR
92392020-03-17 Kamil Rytarowski <n54@gmx.com>
9240
9241 * amd64-bsd-nat.c (gdb_ptrace): New.
9242 * (amd64bsd_fetch_inferior_registers,
9243 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9244 * (amd64bsd_fetch_inferior_registers,
9245 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9246
5ccd2fb7
KR
92472020-03-17 Kamil Rytarowski <n54@gmx.com>
9248
9249 * user-regs.c (user_reg::read): Rename to...
9250 (user_reg::xread): ...this.
9251 * (append_user_reg): Rename argument `read' to `xread'.
9252 * (user_reg_add_builtin): Likewise.
9253 * (user_reg_add): Likewise.
9254 * (value_of_user_reg): Likewise.
9255
2108a63a
KR
92562020-03-17 Kamil Rytarowski <n54@gmx.com>
9257
9258 * sparc-nat.c (gdb_ptrace): New.
9259 * sparc-nat.c (sparc_fetch_inferior_registers)
9260 (sparc_store_inferior_registers) Remove obsolete comment.
9261 * sparc-nat.c (sparc_fetch_inferior_registers)
9262 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9263 * sparc-nat.c (sparc_fetch_inferior_registers)
9264 (sparc_store_inferior_registers) Use gdb_ptrace.
9265
a225c9a8
KR
92662020-03-17 Kamil Rytarowski <n54@gmx.com>
9267
9268 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9269 it to the ptrace call.
9270 * sh-nbsd-nat.c (store_registers): Likewise.
9271
98097623
KR
92722020-03-17 Kamil Rytarowski <n54@gmx.com>
9273
9274 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9275 nbsd_nat_target instead of inf_ptrace_target.
9276 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9277 nbsd_nat_target.
9278
9e38d619
KR
92792020-03-17 Kamil Rytarowski <n54@gmx.com>
9280
9281 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9282
a2ecbe9f
KR
92832020-03-17 Kamil Rytarowski <n54@gmx.com>
9284
9285 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9286 <sys/sysctl.h>.
9287 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9288
58990295
TV
92892020-03-17 Tom de Vries <tdevries@suse.de>
9290
9291 PR gdb/23710
9292 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9293 fields.
9294 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9295 fields.
9296 (process_imported_unit_die): Skip import of c++ CUs.
9297
771dd3a8
TT
92982020-03-16 Tom Tromey <tom@tromey.com>
9299
9300 * p-valprint.c (pascal_object_print_value): Initialize
9301 base_value.
9302
817a7585
AK
93032020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9304 Shahab Vahedi <shahab@synopsys.com>
9305
9306 * Makefile.in: Add arch/arc.o
9307 * configure.tgt: Likewise.
9308 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9309 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9310 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9311 * arc-tdep.h (arc_read_description): Add proto type.
9312 * arch/arc.c: New file.
9313 * arch/arc.h: Likewise.
9314 * features/Makefile: Replace old target descriptions with new.
9315 * features/arc-arcompact.c: Remove.
9316 * features/arc-arcompact.xml: Likewise.
9317 * features/arc-v2.c: Likewise
9318 * features/arc-v2.xml: Likewise
9319 * features/arc/aux-arcompact.xml: New file.
9320 * features/arc/aux-v2.xml: Likewise.
9321 * features/arc/core-arcompact.xml: Likewise.
9322 * features/arc/core-v2.xml: Likewise.
9323 * features/arc/aux-arcompact.c: Generate.
9324 * features/arc/aux-v2.c: Likewise.
9325 * features/arc/core-arcompact.c: Likewise.
9326 * features/arc/core-v2.c: Likewise.
9327 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9328
67430cd0
TT
93292020-03-16 Tom Tromey <tromey@adacore.com>
9330
9331 PR gdb/25663:
9332 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9333 putting value into bcache.
9334
30efb6c7
SM
93352020-03-16 Simon Marchi <simon.marchi@efficios.com>
9336
9337 PR gdb/21500
9338 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9339 to...
9340 (amd64_windows_init_abi_common): ... this. Don't set size of
9341 long type.
9342 (amd64_windows_init_abi): New function.
9343 (amd64_cygwin_init_abi): New function.
9344 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9345 the Cygwin OS ABI.
9346 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9347 comment.
9348
8db52437
SM
93492020-03-16 Simon Marchi <simon.marchi@efficios.com>
9350
9351 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9352 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9353 (pe_import_directory_entry): New struct type.
9354 (is_linked_with_cygwin_dll): New function.
9355 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9356 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9357 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9358
5982a56a
SM
93592020-03-16 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9362 i386_cygwin_core_osabi_sniffer.
9363
7a1998df
SM
93642020-03-16 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * i386-cygwin-tdep.c: Rename to...
9367 * i386-windows-tdep.c: ... this.
9368 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9369 i386-windows-tdep.c.
9370 * configure.tgt: Likewise.
9371
053205cc
SM
93722020-03-16 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9375 * osabi.c (gdb_osabi_names): Add "Windows".
9376 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9377 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9378 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9379 i386_cygwin_osabi_sniffer.
9380 (_initialize_i386_cygwin_tdep): Register OS ABI
9381 GDB_OSABI_WINDOWS for i386.
9382 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9383 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9384 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9385 for x86-64.
9386 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9387 when the target matches '*-*-mingw*'.
9388
fe4b2ee6
SM
93892020-03-16 Simon Marchi <simon.marchi@efficios.com>
9390
9391 * defs.h (enum gdb_osabi): Move to...
9392 * osabi.h (enum gdb_osabi): ... here.
9393 * gdbarch.sh: Include osabi.h in gdbarch.h.
9394 * gdbarch.h: Re-generate.
9395
cb9b645d
SM
93962020-03-16 Simon Marchi <simon.marchi@efficios.com>
9397
9398 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9399 function.
9400 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9401
3293bbaf
TT
94022020-03-14 Tom Tromey <tom@tromey.com>
9403
9404 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9405 for C++.
9406 (c_type_print_modifier): Likewise. Add "language" parameter.
9407 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9408 (c_type_print_base_1): Update.
9409 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9410 constants.
9411 * type-stack.c (type_stack::insert): Handle tp_atomic and
9412 tp_restrict.
9413 (type_stack::follow_type_instance_flags): Likewise.
9414 (type_stack::follow_types): Likewise. Merge type-following code.
9415 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9416 (space_identifier, cv_with_space_id)
9417 (const_or_volatile_or_space_identifier_noopt)
9418 (const_or_volatile_or_space_identifier): Remove.
9419 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9420 rules.
9421 (ptr_operator, typebase): Update.
9422 (enum token_flag) <FLAG_C>: New constant.
9423 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9424 "_Atomic".
9425 (lex_one_token): Handle FLAG_C.
9426
154151a6
KR
94272020-03-14 Kamil Rytarowski <n54@gmx.com>
9428
9429 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9430 it to the ptrace call.
9431 * m68k-bsd-nat.c (store_registers): Likewise.
9432
bc107784
KR
94332020-03-14 Kamil Rytarowski <n54@gmx.com>
9434
9435 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9436 gdb_byte *.
9437 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9438 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9439 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9440
01a80117
KR
94412020-03-14 Kamil Rytarowski <n54@gmx.com>
9442
9443 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9444 nbsd_nat_target instead of inf_ptrace_target.
9445 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9446 nbsd_nat_target.
9447
f90280ca
KR
94482020-03-14 Kamil Rytarowski <n54@gmx.com>
9449
9450 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9451 register_t.
9452
6def66f1
KR
94532020-03-14 Kamil Rytarowski <n54@gmx.com>
9454
9455 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9456 it to the ptrace call.
9457 * alpha-bsd-nat.c (store_registers): Likewise.
9458
66eaca97
KR
94592020-03-14 Kamil Rytarowski <n54@gmx.com>
9460
9461 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9462 includes.
9463 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9464 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9465 fill_fpregset): Likewise.
9466
4fed520b
KR
94672020-03-14 Kamil Rytarowski <n54@gmx.com>
9468
9469 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9470 nbsd_nat_target instead of inf_ptrace_target.
9471 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9472 nbsd_nat_target.
9473
2190cf06
KR
94742020-03-14 Kamil Rytarowski <n54@gmx.com>
9475
9476 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9477 register_t.
9478
75c56d3d
KR
94792020-03-14 Kamil Rytarowski <n54@gmx.com>
9480
9481 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9482 it to the ptrace call.
9483 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9484 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9485 * arm-nbsd-nat.c (store_register): Likewise.
9486 * arm-nbsd-nat.c (store_regs): Likewise.
9487 * arm-nbsd-nat.c (store_fp_register): Likewise.
9488 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9489
6018d381
KR
94902020-03-14 Kamil Rytarowski <n54@gmx.com>
9491
9492 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9493 nbsd_nat_target instead of inf_ptrace_target.
9494 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9495 nbsd_nat_target.
9496
013f99f0
KR
94972020-03-14 Kamil Rytarowski <n54@gmx.com>
9498
9499 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9500 it to the ptrace call.
9501 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9502
12753073
KR
95032020-03-14 Kamil Rytarowski <n54@gmx.com>
9504
6227b330
KR
9505 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9506 it to the ptrace call.
9507 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9508
95092020-03-14 Kamil Rytarowski <n54@gmx.com>
9510
9511 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9512 gdb_byte *.
12753073
KR
9513 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9514
d5be5fa4
KR
95152020-03-14 Kamil Rytarowski <n54@gmx.com>
9516
9517 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9518 instead of inf_ptrace_target.
9519 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9520 nbsd_nat_target.
9521
8110f842
KR
95222020-03-14 Kamil Rytarowski <n54@gmx.com>
9523
9524 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9525 register_t.
9526
52feded7
KR
95272020-03-14 Kamil Rytarowski <n54@gmx.com>
9528
9529 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9530 register_t.
9531
25567eee
KR
95322020-03-14 Kamil Rytarowski <n54@gmx.com>
9533
9534 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9535 register_t.
9536
426a9c18
TT
95372020-03-13 Tom Tromey <tom@tromey.com>
9538
9539 * value.h (val_print): Don't declare.
9540 * valprint.h (val_print_array_elements)
9541 (val_print_scalar_formatted, generic_val_print): Don't declare.
9542 * valprint.c (generic_val_print_array): Take a struct value.
9543 (generic_val_print_ptr, generic_val_print_memberptr)
9544 (generic_val_print_bool, generic_val_print_int)
9545 (generic_val_print_char, generic_val_print_complex)
9546 (generic_val_print): Remove.
9547 (generic_value_print): Update.
9548 (do_val_print): Remove unused parameters. Don't call
9549 la_val_print.
9550 (val_print): Remove.
9551 (common_val_print): Update. Don't call value_check_printable.
9552 (val_print_scalar_formatted, val_print_array_elements): Remove.
9553 * rust-lang.c (rust_val_print): Remove.
9554 (rust_language_defn): Update.
9555 * p-valprint.c (pascal_val_print): Remove.
9556 (pascal_value_print_inner): Update.
9557 (pascal_object_print_val_fields, pascal_object_print_val):
9558 Remove.
9559 (pascal_object_print_static_field): Update.
9560 * p-lang.h (pascal_val_print): Don't declare.
9561 * p-lang.c (pascal_language_defn): Update.
9562 * opencl-lang.c (opencl_language_defn): Update.
9563 * objc-lang.c (objc_language_defn): Update.
9564 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9565 * m2-lang.h (m2_val_print): Don't declare.
9566 * m2-lang.c (m2_language_defn): Update.
9567 * language.h (struct language_defn) <la_val_print>: Remove.
9568 * language.c (unk_lang_value_print_inner): Rename. Change
9569 argument types.
9570 (unknown_language_defn, auto_language_defn): Update.
9571 * go-valprint.c (go_val_print): Remove.
9572 * go-lang.h (go_val_print): Don't declare.
9573 * go-lang.c (go_language_defn): Update.
9574 * f-valprint.c (f_val_print): Remove.
9575 * f-lang.h (f_value_print): Don't declare.
9576 * f-lang.c (f_language_defn): Update.
9577 * d-valprint.c (d_val_print): Remove.
9578 * d-lang.h (d_value_print): Don't declare.
9579 * d-lang.c (d_language_defn): Update.
9580 * cp-valprint.c (cp_print_value_fields)
9581 (cp_print_value_fields_rtti, cp_print_value): Remove.
9582 (cp_print_static_field): Update.
9583 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9584 (c_val_print_struct, c_val_print_union, c_val_print_int)
9585 (c_val_print_memberptr, c_val_print): Remove.
9586 * c-lang.h (c_val_print_array, cp_print_value_fields)
9587 (cp_print_value_fields_rtti): Don't declare.
9588 * c-lang.c (c_language_defn, cplus_language_defn)
9589 (asm_language_defn, minimal_language_defn): Update.
9590 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9591 (ada_val_print_enum): Take a struct value.
9592 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9593 (ada_val_print): Remove.
9594 (ada_value_print_1): Update.
9595 (printable_val_type): Remove.
9596 * ada-lang.h (ada_val_print): Don't declare.
9597 * ada-lang.c (ada_language_defn): Update.
9598
42331a1e
TT
95992020-03-13 Tom Tromey <tom@tromey.com>
9600
9601 * valprint.c (do_val_print): Update.
9602 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9603 a struct value.
9604 (value_to_value_object_no_release): Declare.
9605 * python/py-value.c (value_to_value_object_no_release): New
9606 function.
9607 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9608 struct value.
9609 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9610 function.
9611 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9612 a struct value.
9613 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9614 Declare.
9615 (gdbscm_apply_val_pretty_printer): Take a struct value.
9616 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9617 value.
9618 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9619 value.
9620 * extension-priv.h (struct extension_language_ops)
9621 <apply_val_pretty_printer>: Take a struct value.
9622 * cp-valprint.c (cp_print_value): Create a struct value.
9623 (cp_print_value): Update.
9624
3a916a97
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * ada-valprint.c (print_field_values): Call common_val_print.
9628
b59eac37
TT
96292020-03-13 Tom Tromey <tom@tromey.com>
9630
9631 * ada-valprint.c (val_print_packed_array_elements): Remove
9632 bitoffset and val parameters. Call common_val_print.
9633 (ada_val_print_string): Remove offset, address, and original_value
9634 parameters.
9635 (ada_val_print_array): Update.
9636 (ada_value_print_array): New function.
9637 (ada_value_print_1): Call it.
9638
03371129
TT
96392020-03-13 Tom Tromey <tom@tromey.com>
9640
9641 * ada-valprint.c (ada_value_print): Use common_val_print.
9642
2e088f8b
TT
96432020-03-13 Tom Tromey <tom@tromey.com>
9644
9645 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9646
39ef85a8
TT
96472020-03-13 Tom Tromey <tom@tromey.com>
9648
9649 * ada-valprint.c (ada_value_print_num): New function.
9650 (ada_value_print_1): Use it.
9651
b9fa6e07
TT
96522020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9655
416595d6
TT
96562020-03-13 Tom Tromey <tom@tromey.com>
9657
9658 * ada-valprint.c (ada_value_print_ptr): New function.
9659 (ada_value_print_1): Use it.
9660
5b5e15ec
TT
96612020-03-13 Tom Tromey <tom@tromey.com>
9662
9663 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9664 call common_val_print.
9665 (ada_val_print_1): Update.
9666 (ada_value_print_1): New function.
9667 (ada_value_print_inner): Rewrite.
9668
fbf54e75
TT
96692020-03-13 Tom Tromey <tom@tromey.com>
9670
9671 * cp-valprint.c (cp_print_value_fields): Update.
9672 (cp_print_value): New function.
9673
64b653ca
TT
96742020-03-13 Tom Tromey <tom@tromey.com>
9675
9676 * m2-valprint.c (m2_value_print_inner): Use
9677 cp_print_value_fields.
9678 * cp-valprint.c (cp_print_value_fields): New function.
9679 * c-valprint.c (c_value_print_struct): New function.
9680 (c_value_print_inner): Use c_value_print_struct.
9681 * c-lang.h (cp_print_value_fields): Declare.
9682
6999f067
TT
96832020-03-13 Tom Tromey <tom@tromey.com>
9684
9685 * c-valprint.c (c_value_print_array): New function.
9686 (c_value_print_inner): Use it.
9687
ce80b8bd
TT
96882020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * c-valprint.c (c_value_print_memberptr): New function.
9691 (c_value_print_inner): Use it.
9692
2faac269
TT
96932020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * c-valprint.c (c_value_print_int): New function.
9696 (c_value_print_inner): Use it.
9697
da3e2c29
TT
96982020-03-13 Tom Tromey <tom@tromey.com>
9699
9700 * c-valprint.c (c_value_print_ptr): New function.
9701 (c_value_print_inner): Use it.
9702
50836231
TT
97032020-03-13 Tom Tromey <tom@tromey.com>
9704
9705 * c-valprint.c (c_value_print_inner): Rewrite.
9706
4f412b6e
TT
97072020-03-13 Tom Tromey <tom@tromey.com>
9708
9709 * valprint.c (generic_value_print_complex): New function.
9710 (generic_value_print): Use it.
9711
f5354008
TT
97122020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * valprint.c (generic_val_print_float): Don't call
9715 val_print_scalar_formatted.
9716 (generic_val_print, generic_value_print): Update.
9717
3eec3b05
TT
97182020-03-13 Tom Tromey <tom@tromey.com>
9719
9720 * valprint.c (generic_value_print_char): New function
9721 (generic_value_print): Use it.
9722
fdddfccb
TT
97232020-03-13 Tom Tromey <tom@tromey.com>
9724
9725 * valprint.c (generic_value_print_int): New function.
9726 (generic_value_print): Use it.
9727
6dde7521
TT
97282020-03-13 Tom Tromey <tom@tromey.com>
9729
9730 * valprint.c (generic_value_print_bool): New function.
9731 (generic_value_print): Use it.
9732
4112d2e6
TT
97332020-03-13 Tom Tromey <tom@tromey.com>
9734
9735 * valprint.c (generic_val_print_func): Simplify.
9736 (generic_val_print, generic_value_print): Update.
9737
65786af6
TT
97382020-03-13 Tom Tromey <tom@tromey.com>
9739
9740 * valprint.c (generic_val_print_flags): Remove.
9741 (generic_val_print, generic_value_print): Update.
9742 (val_print_type_code_flags): Add original_value parameter.
9743
40f3ce18
TT
97442020-03-13 Tom Tromey <tom@tromey.com>
9745
9746 * valprint.c (generic_val_print): Update.
9747 (generic_value_print): Update.
9748 * valprint.c (generic_val_print_enum): Don't call
9749 val_print_scalar_formatted.
9750
2a5b130b
TT
97512020-03-13 Tom Tromey <tom@tromey.com>
9752
9753 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9754 * valprint.c (generic_value_print_ptr): New function.
9755
abc66ce9
TT
97562020-03-13 Tom Tromey <tom@tromey.com>
9757
9758 * valprint.c (generic_value_print): Rewrite.
9759
07a32858
TT
97602020-03-13 Tom Tromey <tom@tromey.com>
9761
9762 * p-valprint.c (pascal_object_print_value_fields)
9763 (pascal_object_print_value): New functions.
9764
64d64d3a
TT
97652020-03-13 Tom Tromey <tom@tromey.com>
9766
9767 * p-valprint.c (pascal_value_print_inner): Rewrite.
9768
6a95a1f5
TT
97692020-03-13 Tom Tromey <tom@tromey.com>
9770
9771 * f-valprint.c (f_value_print_innner): Rewrite.
9772
59fcdac6
TT
97732020-03-13 Tom Tromey <tom@tromey.com>
9774
9775 * m2-valprint.c (m2_print_unbounded_array): New overload.
9776 (m2_print_unbounded_array): Update.
9777 (m2_print_array_contents): Take a struct value.
9778 (m2_value_print_inner): Rewrite.
9779
d133c3e1
TT
97802020-03-13 Tom Tromey <tom@tromey.com>
9781
9782 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9783 (d_value_print_inner): New function.
9784 * d-lang.h (d_value_print_inner): Declare.
9785 * d-lang.c (d_language_defn): Use d_value_print_inner.
9786
23b0f06b
TT
97872020-03-13 Tom Tromey <tom@tromey.com>
9788
9789 * go-valprint.c (go_value_print_inner): New function.
9790 * go-lang.h (go_value_print_inner): Declare.
9791 * go-lang.c (go_language_defn): Use go_value_print_inner.
9792
5f56f7cb
TT
97932020-03-13 Tom Tromey <tom@tromey.com>
9794
9795 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9796 API.
9797 (rust_val_print): Rewrite.
9798 (rust_value_print_inner): New function, from rust_val_print.
9799 (rust_language_defn): Use rust_value_print_inner.
9800
26792ee0
TT
98012020-03-13 Tom Tromey <tom@tromey.com>
9802
9803 * ada-valprint.c (ada_value_print_inner): New function.
9804 * ada-lang.h (ada_value_print_inner): Declare.
9805 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9806
24051bbe
TT
98072020-03-13 Tom Tromey <tom@tromey.com>
9808
9809 * f-valprint.c (f_value_print_innner): New function.
9810 * f-lang.h (f_value_print_innner): Declare.
9811 * f-lang.c (f_language_defn): Use f_value_print_innner.
9812
c0941be6
TT
98132020-03-13 Tom Tromey <tom@tromey.com>
9814
9815 * p-valprint.c (pascal_value_print_inner): New function.
9816 * p-lang.h (pascal_value_print_inner): Declare.
9817 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9818
62c4663d
TT
98192020-03-13 Tom Tromey <tom@tromey.com>
9820
9821 * m2-valprint.c (m2_value_print_inner): New function.
9822 * m2-lang.h (m2_value_print_inner): Declare.
9823 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9824
62182190
TT
98252020-03-13 Tom Tromey <tom@tromey.com>
9826
9827 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9828 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9829 * c-valprint.c (c_value_print_inner): New function.
9830 * c-lang.h (c_value_print_inner): Declare.
9831 * c-lang.c (c_language_defn, cplus_language_defn)
9832 (asm_language_defn, minimal_language_defn): Use
9833 c_value_print_inner.
9834
1e592a8a
TT
98352020-03-13 Tom Tromey <tom@tromey.com>
9836
9837 * p-valprint.c (pascal_object_print_value_fields): Now static.
9838 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9839
7fe471e9
TT
98402020-03-13 Tom Tromey <tom@tromey.com>
9841
9842 * c-valprint.c (c_val_print_array): Simplify.
9843
d121c6ce
TT
98442020-03-13 Tom Tromey <tom@tromey.com>
9845
9846 * valprint.c (value_print_array_elements): New function.
9847 * valprint.h (value_print_array_elements): Declare.
9848
4dba70ee
TT
98492020-03-13 Tom Tromey <tom@tromey.com>
9850
9851 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9852 * mips-tdep.c (mips_print_register): Use
9853 value_print_scalar_formatted.
9854
4f9ae810
TT
98552020-03-13 Tom Tromey <tom@tromey.com>
9856
9857 * valprint.h (value_print_scalar_formatted): Declare.
9858 * valprint.c (value_print_scalar_formatted): New function.
9859
156bfec9
TT
98602020-03-13 Tom Tromey <tom@tromey.com>
9861
9862 * valprint.h (generic_value_print): Declare.
9863 * valprint.c (generic_value_print): New function.
9864
2b4e573d
TT
98652020-03-13 Tom Tromey <tom@tromey.com>
9866
9867 * valprint.c (do_val_print): Call la_value_print_inner, if
9868 available.
9869 * rust-lang.c (rust_language_defn): Update.
9870 * p-lang.c (pascal_language_defn): Update.
9871 * opencl-lang.c (opencl_language_defn): Update.
9872 * objc-lang.c (objc_language_defn): Update.
9873 * m2-lang.c (m2_language_defn): Update.
9874 * language.h (struct language_defn) <la_value_print_inner>: New
9875 member.
9876 * language.c (unknown_language_defn, auto_language_defn): Update.
9877 * go-lang.c (go_language_defn): Update.
9878 * f-lang.c (f_language_defn): Update.
9879 * d-lang.c (d_language_defn): Update.
9880 * c-lang.c (c_language_defn, cplus_language_defn)
9881 (asm_language_defn, minimal_language_defn): Update.
9882 * ada-lang.c (ada_language_defn): Update.
9883
a1f6a07c
TT
98842020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * c-valprint.c (c_value_print): Use common_val_print.
9887
410cf315
TT
98882020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9891
72a45c93
TT
98922020-03-13 Tom Tromey <tom@tromey.com>
9893
9894 * f-valprint.c (f77_print_array_1, f_val_print): Use
9895 common_val_print.
9896
040f66bd
TT
98972020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * riscv-tdep.c (riscv_print_one_register_info): Use
9900 common_val_print.
9901
a6e05a6c
TT
99022020-03-13 Tom Tromey <tom@tromey.com>
9903
9904 * mi/mi-main.c (output_register): Use common_val_print.
9905
3444c526
TT
99062020-03-13 Tom Tromey <tom@tromey.com>
9907
9908 * infcmd.c (default_print_one_register_info): Use
9909 common_val_print.
9910
c2a44efe
TT
99112020-03-13 Tom Tromey <tom@tromey.com>
9912
9913 * valprint.h (common_val_print_checked): Declare.
9914 * valprint.c (common_val_print_checked): New function.
9915 * stack.c (print_frame_arg): Use common_val_print_checked.
9916
b0c26e99
TT
99172020-03-13 Tom Tromey <tom@tromey.com>
9918
9919 * valprint.c (do_val_print): New function, from val_print.
9920 (val_print): Use do_val_print.
9921 (common_val_print): Use do_val_print.
9922
ce3acbe9
TT
99232020-03-13 Tom Tromey <tom@tromey.com>
9924
9925 * valprint.c (value_print): Use scoped_value_mark.
9926
96c7f873
TV
99272020-03-13 Tom de Vries <tdevries@suse.de>
9928
9929 PR symtab/25646
9930 * psymtab.c (partial_symtab::partial_symtab): Don't set
9931 globals_offset and statics_offset. Push element onto
9932 current_global_psymbols and current_static_psymbols stacks.
9933 (concat): New function.
9934 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9935 element from current_global_psymbols and current_static_psymbols
9936 stacks. Concat popped elements to global_psymbols and
9937 static_symbols.
9938 (add_psymbol_to_list): Use current_global_psymbols and
9939 current_static_psymbols stacks.
9940 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9941 current_static_psymbols fields.
9942
6ba0a321
CB
99432020-03-12 Christian Biesinger <cbiesinger@google.com>
9944
9945 * corelow.c (sniff_core_bfd): Remove.
9946 (class core_target) <m_core_vec>: Remove.
9947 (core_target::core_target): Update.
9948 (core_file_fns): Remove.
9949 (deprecated_add_core_fns): Remove.
9950 (default_core_sniffer): Remove.
9951 (sniff_core_bfd): Remove.
9952 (default_check_format): Remove.
9953 (gdb_check_format): Remove.
9954 (core_target_open): Update.
9955 (core_target::get_core_register_section): Update.
9956 (get_core_registers_cb): Update.
9957 (core_target::fetch_registers): Update.
9958 * gdbcore.h (struct core_fns): Remove.
9959 (deprecated_add_core_fns): Remove.
9960 (default_core_sniffer): Remove.
9961 (default_check_format): Remove.
9962
227031b2
TT
99632020-03-12 Tom Tromey <tom@tromey.com>
9964
9965 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9966 CORE_ADDR.
9967 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9968
53807e9f
TT
99692020-03-12 Tom Tromey <tom@tromey.com>
9970
9971 * remote.c (remote_target::download_tracepoint)
9972 (remote_target::enable_tracepoint)
9973 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9974 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9975 sprintf_vma.
9976
64f25102
TT
99772020-03-12 Tom Tromey <tom@tromey.com>
9978
9979 * symfile-mem.c: Update CORE_ADDR size assert.
9980
272cd5a3
SM
99812020-03-12 Simon Marchi <simon.marchi@efficios.com>
9982
9983 * selftest.m4: Move to gdbsupport/.
9984 * acinclude.m4: Update path to selftest.m4.
9985
74cd3f9d
SM
99862020-03-12 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9989 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9990 gdbarch-selfselftests.c and selftest-arch.c.
9991 (SUBDIR_UNITTESTS_OBS): Rename to...
9992 (SELFTESTS_OBS): ... this.
9993 (COMMON_SFILES): Remove disasm-selftests.c and
9994 gdbarch-selftests.c.
9995 * configure.ac: Don't add selftest-arch.{c,o} to
9996 CONFIG_{SRCS,OBS}.
9997 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9998 preprocessor conditions.
9999
db6878ac
SM
100002020-03-12 Simon Marchi <simon.marchi@efficios.com>
10001
10002 * configure.ac: Don't source bfd/development.sh.
10003 * selftest.m4: Modify comment.
10004 * configure: Re-generate.
10005
4d696a5c
SM
100062020-03-12 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10009 not "true" or "false".
10010 * configure: Re-generate.
10011
8dd8e1c7
CB
100122020-03-12 Christian Biesinger <cbiesinger@google.com>
10013
10014 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10015 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10016 renamed to arm_nbsd_supply_gregset.
10017 (fetch_register): Update to call arm_nbsd_supply_gregset.
10018 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10019 (arm_netbsd_nat_target::fetch_registers): Update.
10020 (fetch_elfcore_registers): Removed.
10021 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10022 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10023 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10024 not require NetBSD system headers.
10025 (arm_nbsd_regset): New struct.
10026 (arm_nbsd_iterate_over_regset_sections): New function.
10027 (arm_netbsd_init_abi_common): Updated to call
10028 set_gdbarch_iterate_over_regset_sections.
10029 * arm-nbsd-tdep.h: New file.
10030
dd69bf7a
KB
100312020-03-11 Kevin Buettner <kevinb@redhat.com>
10032
10033 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10034 recursion.
10035
a0761e34
SM
100362020-03-11 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * configure: Re-generate.
10039
e7a82140
TT
100402020-03-11 Tom Tromey <tromey@adacore.com>
10041
10042 * ada-typeprint.c (print_choices): Fix comment.
10043
dcc050c8
AB
100442020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10045
10046 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10047 previous item in the list, when the list has no items.
10048
1c33af77
TV
100492020-03-11 Tom de Vries <tdevries@suse.de>
10050
10051 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10052 PROP_LOCLIST handling code.
10053
8c95582d
AB
100542020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10055
10056 * buildsym-legacy.c (record_line): Pass extra parameter to
10057 record_line.
10058 * buildsym.c (buildsym_compunit::record_line): Take an extra
10059 parameter, reduce duplication in the line table, and record the
10060 is_stmt flag in the line table.
10061 * buildsym.h (buildsym_compunit::record_line): Add extra
10062 parameter.
10063 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10064 non-statement lines.
10065 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10066 this to the symtab builder.
10067 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10068 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10069 through to dwarf_record_line_1.
10070 * infrun.c (process_event_stop_test): When stepping, don't stop at
10071 a non-statement instruction, and only refresh the step info when
10072 we land in the middle of a line's range. Also add an extra
10073 comment.
10074 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10075 field.
10076 * record-btrace.c (btrace_find_line_range): Only record lines
10077 marked as is-statement.
10078 * stack.c (frame_show_address): Show the frame address if we are
10079 in a non-statement sal.
10080 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10081 (maintenance_print_one_line_table): Print a header for the is_stmt
10082 column, and include is_stmt information in the output.
10083 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10084 preference to non-statements.
10085 (find_pcs_for_symtab_line): Prefer is-statement entries.
10086 (find_line_common): Likewise.
10087 * symtab.h (struct linetable_entry): Add is_stmt field.
10088 (struct symtab_and_line): Likewise.
10089 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10090 arranging the line table.
10091
e4003a34
TV
100922020-03-07 Tom de Vries <tdevries@suse.de>
10093
10094 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10095 DIE.
10096
e8932576
TT
100972020-03-07 Tom Tromey <tom@tromey.com>
10098
10099 * valops.c (value_literal_complex): Remove obsolete comment.
10100 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10101 comment.
10102
29734269
SM
101032020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10104
10105 * infrun.h: Forward-declare thread_info.
10106 (set_step_info): Add thread_info parameter, add doc.
10107 * infrun.c (set_step_info): Add thread_info parameter, move doc
10108 to header.
10109 * infrun.c (process_event_stop_test): Pass thread to
10110 set_step_info call.
10111 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10112 set_step_info.
10113 (prepare_one_step): Add thread_info parameter, pass it to
10114 set_step_frame and prepare_one_step (recursive) call.
10115 (step_1): Pass thread to prepare_one_step call.
10116 (step_command_fsm::should_stop): Pass thread to
10117 prepare_one_step.
10118 (until_next_fsm): Pass thread to set_step_frame call.
10119 (finish_command): Pass thread to set_step_info call.
10120
b7d64b29
HD
101212020-03-06 Hannes Domani <ssbssa@yahoo.de>
10122
10123 * windows-tdep.c (windows_solib_create_inferior_hook):
10124 Check if inferior is running.
10125
09f2921c
TV
101262020-03-06 Tom de Vries <tdevries@suse.de>
10127
10128 * NEWS: Fix "the the".
10129 * ctfread.c: Same.
10130
fd760e79
TV
101312020-03-06 Tom de Vries <tdevries@suse.de>
10132
10133 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10134
20ea4a60
AB
101352020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10136
10137 * .dir-locals.el: Add a comment referencing the other copies of
10138 this file.
10139
0afbabf0
JB
101402020-03-05 John Baldwin <jhb@FreeBSD.org>
10141
10142 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10143 psargs.
10144
842806cb
TBA
101452020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10146
10147 * .gitattributes: New file.
10148
be1e3d3e
TT
101492020-03-04 Tom Tromey <tom@tromey.com>
10150
10151 * symmisc.c (print_symbol_bcache_statistics)
10152 (print_objfile_statistics): Update.
10153 * symfile.c (allocate_symtab): Use intern.
10154 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10155 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10156 macro_cache>: Remove.
10157 <string_cache>: New member.
10158 (struct objfile) <intern>: New methods.
10159 * elfread.c (elf_symtab_read): Use intern.
10160 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10161 (dwarf2_compute_name, dwarf2_physname)
10162 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10163 names.
10164 (guess_partial_die_structure_name): Update.
10165 (partial_die_info::fixup): Intern name.
10166 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10167 name.
10168 (dwarf2_name): Intern name. Update.
10169 * buildsym.c (buildsym_compunit::get_macro_table): Use
10170 string_cache.
10171
4e7625fd
TT
101722020-03-04 Tom Tromey <tom@tromey.com>
10173
10174 * jit.c (bfd_open_from_target_memory): Make "target" const.
10175 * corefile.c (gnutarget): Now const.
10176 * gdbcore.h (gnutarget): Now const.
10177
46f9f931
HD
101782020-03-04 Hannes Domani <ssbssa@yahoo.de>
10179
10180 * NEWS: Mention support for WOW64 processes.
10181 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10182 (amd64_windows_segment_register_p): Remove static.
10183 (_initialize_amd64_windows_nat): Update.
10184 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10185 * i386-windows-nat.c (context_offset): Update.
10186 (i386_mappings): Rename and remove static.
10187 (i386_windows_segment_register_p): Remove static.
10188 (_initialize_i386_windows_nat): Update.
10189 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10190 (STATUS_WX86_SINGLE_STEP): New macro.
10191 (EnumProcessModulesEx): New macro.
10192 (Wow64SuspendThread): New macro.
10193 (Wow64GetThreadContext): New macro.
10194 (Wow64SetThreadContext): New macro.
10195 (Wow64GetThreadSelectorEntry): New macro.
10196 (windows_set_context_register_offsets): Add static.
10197 (windows_set_segment_register_p): Likewise.
10198 (windows_add_thread): Adapt for WOW64 processes.
10199 (windows_fetch_one_register): Likewise.
10200 (windows_nat_target::fetch_registers): Likewise.
10201 (windows_store_one_register): Likewise.
10202 (display_selector): Likewise.
10203 (display_selectors): Likewise.
10204 (handle_exception): Likewise.
10205 (windows_continue): Likewise.
10206 (windows_nat_target::resume): Likewise.
10207 (windows_add_all_dlls): Likewise.
10208 (do_initial_windows_stuff): Likewise.
10209 (windows_nat_target::attach): Likewise.
10210 (windows_get_exec_module_filename): Likewise.
10211 (windows_nat_target::create_inferior): Likewise.
10212 (windows_xfer_siginfo): Likewise.
10213 (_initialize_loadable): Initialize Wow64SuspendThread,
10214 Wow64GetThreadContext, Wow64SetThreadContext,
10215 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10216 * windows-nat.h (windows_set_context_register_offsets):
10217 Remove declaration.
10218 (windows_set_segment_register_p): Likewise.
10219 (i386_windows_segment_register_p): Add declaration.
10220 (amd64_windows_segment_register_p): Likewise.
10221
440cf44e
LM
102222020-03-04 Luis Machado <luis.machado@linaro.org>
10223
10224 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10225 in "info registers" for AArch64/ARM.
10226
10227 The change caused "info registers" to not print GPR's.
10228
10229 gdb/ChangeLog:
10230
10231 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10232
10233 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10234 when reg->group is empty and reggroup is not.
10235
1009d92f
TT
102362020-03-03 Tom Tromey <tromey@adacore.com>
10237
10238 * dwarf2/frame.c (struct dwarf2_frame_cache)
10239 <checked_tailcall_bottom, entry_cfa_sp_offset,
10240 entry_cfa_sp_offset_p>: Remove members.
10241 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10242 (dwarf2_frame_prev_register): Don't call
10243 dwarf2_tailcall_sniffer_first.
10244 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10245 * frame-unwind.c (add_unwinder): New fuction.
10246 (frame_unwind_init): Use it. Add tailcall unwinder.
10247
5e5d66b6
AB
102482020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10249 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10250
10251 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10252 value should be printed as true.
10253
584cf46d
HD
102542020-03-03 Hannes Domani <ssbssa@yahoo.de>
10255
10256 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10257 (windows_init_abi): Set and use windows_so_ops.
10258
7b973adc
SDJ
102592020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10260
10261 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10262 when verifying if dealing with a convenience variable.
10263
bb7b70ab
LM
102642020-03-03 Luis Machado <luis.machado@linaro.org>
10265
10266 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10267
9822cb57
SM
102682020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10269
10270 * infrun.c (gdbarch_supports_displaced_stepping): New.
10271 (use_displaced_stepping): Break up conditions in smaller pieces.
10272 Use gdbarch_supports_displaced_stepping.
10273 (displaced_step_prepare_throw): Use
10274 gdbarch_supports_displaced_stepping.
10275
63e163f2
AB
102762020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10277
10278 * NEWS: Mention new behaviour of the history filename.
10279 * top.c (write_history_p): Add comment.
10280 (show_write_history_p): Add header comment, give a different
10281 message when history writing is on, but the history filename is
10282 empty.
10283 (history_filename): Add comment.
10284 (history_filename_empty): New function.
10285 (show_history_filename): Add header comment, give a different
10286 message when the filename is empty.
10287 (init_history): Compare history_filename against nullptr, and only
10288 read history if the filename is not empty.
10289 (set_history_filename): Add header comment, and only make
10290 non-empty filenames absolute.
10291 (init_main): Make the filename argument to 'set history filename'
10292 optional.
10293
81b86b97
CB
102942020-03-02 Christian Biesinger <cbiesinger@google.com>
10295
10296 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10297 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10298 (fetch_fp_register): Update.
10299 (fetch_fp_regs): Update.
10300 (store_fp_register): Update.
10301 (store_fp_regs): Update.
10302 (arm_netbsd_nat_target::read_description): New function.
10303 (fetch_elfcore_registers): Update.
10304
24ed6739
AB
103052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10306
10307 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10308 general_thread if the stop reply is missing a thread-id.
10309 (remote_target::process_stop_reply): Use the first non-exited
10310 thread if the target didn't pass a thread-id.
10311 * infrun.c (do_target_wait): Move call to
10312 switch_to_inferior_no_thread to ....
10313 (do_target_wait_1): ... here.
10314
a84bb2a0
JT
103152020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10316
10317 * debuginfod-support.c: Include defs.h first.
10318
658dadf0
TV
103192020-02-28 Tom de Vries <tdevries@suse.de>
10320
10321 * symfile.c (set_initial_language): Use default language for lookup.
10322
4ebe4877
SM
103232020-02-28 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10326 reader variable, pass `this` to read_cutu_die_from_dwo.
10327
e5da1139
AM
103282020-02-27 Aaron Merey <amerey@redhat.com>
10329
10330 * source.c (open_source_file): Check for nullptr when computing
10331 srcpath.
10332
317f7127
TT
103332020-02-27 Tom Tromey <tromey@adacore.com>
10334
10335 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10336 member.
10337 (dwarf2_add_field): Don't update nfields.
10338 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10339
3104d9ee
AB
103402020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10341
10342 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10343 abs.
10344
b83470bf
TT
103452020-02-26 Tom Tromey <tom@tromey.com>
10346
10347 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10348 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10349 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10350 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10351 per_cu_data.
10352
edfe0a0c
TT
103532020-02-26 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/index-write.c (psym_index_map): Change type.
10356 (add_address_entry_worker, write_one_signatured_type)
10357 (recursively_count_psymbols, recursively_write_psymbols)
10358 (class debug_names, psyms_seen_size, write_gdbindex)
10359 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10360
0d79cdc4
AM
103612020-02-26 Aaron Merey <amerey@redhat.com>
10362
10363 * Makefile.in: Handle optional debuginfod support.
10364 * NEWS: Update.
10365 * README: Add --with-debuginfod summary.
10366 * config.in: Regenerate.
10367 * configure: Regenerate.
10368 * configure.ac: Handle optional debuginfod support.
10369 * debuginfod-support.c: debuginfod helper functions.
10370 * debuginfod-support.h: Ditto.
10371 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10372 summary.
10373 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10374 when a dwz file cannot be found.
10375 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10376 debuginfo file cannot be found.
10377 * source.c (open_source_file): Query debuginfod servers when a
10378 source file cannot be found.
10379 * top.c (print_gdb_configuration): Include
10380 --{with,without}-debuginfod in the output.
10381
b65ce565
JG
103822020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10383
10384 * thread.c (thr_try_catch_cmd): Print thread name.
10385
d4c9a4f8
SM
103862020-02-26 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10389 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10390 dwarf2_fetch_die_type_sect_off): Move to...
10391 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10392 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10393 dwarf2_fetch_die_type_sect_off): ... here.
10394 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10395 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10396 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10397
0dce4280
TV
103982020-02-26 Tom de Vries <tdevries@suse.de>
10399
10400 PR gdb/25603
10401 * symfile.c (set_initial_language): Exit-early if
10402 language_mode == language_mode_manual.
10403
450a1bfc
SM
104042020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10405
10406 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10407 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10408 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10409
9e80cfa1
AB
104102020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10411
10412 * gdbtypes.c (create_array_type_with_stride): Handle negative
10413 array strides.
10414 * valarith.c (value_subscripted_rvalue): Likewise.
10415
09624f1f
LM
104162020-02-25 Luis Machado <luis.machado@linaro.org>
10417
10418 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10419
8cb5117c
SM
104202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10421
10422 * loc.h (dwarf2_get_die_type): Move to...
10423 * read.h (dwarf2_get_die_type): ... here.
10424 * read.c (dwarf2_get_die_type): Move doc to header.
10425
c325c44e
JB
104262020-02-25 Joel Brobecker <brobecker@adacore.com>
10427
10428 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10429 'gnulib/Makefile.in' to the list.
10430
4ac93832
TT
104312020-02-24 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10434 Remove.
10435 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10436 XOBNEWVEC.
10437
197400e8
TT
104382020-02-24 Tom Tromey <tom@tromey.com>
10439
10440 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10441 New method.
10442 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10443 (dw2_do_instantiate_symtab, dw2_get_file_names)
10444 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10445
76935768
TT
104462020-02-24 Tom Tromey <tom@tromey.com>
10447
10448 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10449 make_scoped_restore.
10450 (dwarf2_psymtab::read_symtab): Don't clear
10451 reading_partial_symbols.
10452
a88ef40d
TV
104532020-02-24 Tom de Vries <tdevries@suse.de>
10454
10455 PR gdb/25592
10456 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10457
c9af6521
TV
104582020-02-24 Tom de Vries <tdevries@suse.de>
10459
10460 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10461 commands layout next/prev/regs.
10462
5707a07a
TT
104632020-02-22 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10466 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10467
3b0fb49e
TT
104682020-02-22 Tom Tromey <tom@tromey.com>
10469
10470 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10471
283be8bf
TT
104722020-02-22 Tom Tromey <tom@tromey.com>
10473
10474 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10475 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10476 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10477 * tui/tui.c (_initialize_tui): Add usage text.
10478
ca793b96
TT
104792020-02-22 Tom Tromey <tom@tromey.com>
10480
10481 * tui/tui-win.c (tui_set_focus_command)
10482 (tui_set_win_height_command): Use error_no_arg.
10483 (_initialize_tui_win): Update help text.
10484 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10485
432b5c40
TT
104862020-02-22 Tom Tromey <tom@tromey.com>
10487
10488 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10489 * tui/tui-disasm.h (struct tui_disasm_window)
10490 <display_start_addr>: Declare.
10491 * tui/tui-source.h (struct tui_source_window)
10492 <display_start_addr>: Declare.
10493 * tui/tui-winsource.h (struct tui_source_window_base)
10494 <show_source_line, display_start_addr>: New methods.
10495 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10496 Rename and move to protected section.
10497 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10498 (tui_source_window_base::do_erase_source_content): Update.
10499 (tui_source_window_base::show_source_line): Now a method.
10500 (tui_source_window_base::show_source_content)
10501 (tui_source_window_base::tui_source_window_base)
10502 (tui_source_window_base::rerender)
10503 (tui_source_window_base::refill)
10504 (tui_source_window_base::do_scroll_horizontal)
10505 (tui_source_window_base::set_is_exec_point_at)
10506 (tui_source_window_base::update_breakpoint_info)
10507 (tui_source_window_base::update_exec_info): Update.
10508 * tui/tui-source.c (tui_source_window::set_contents)
10509 (tui_source_window::showing_source_p)
10510 (tui_source_window::do_scroll_vertical)
10511 (tui_source_window::location_matches_p)
10512 (tui_source_window::line_is_displayed): Update.
10513 (tui_source_window::display_start_addr): New method.
10514 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10515 (tui_disasm_window::do_scroll_vertical)
10516 (tui_disasm_window::location_matches_p): Update.
10517 (tui_disasm_window::display_start_addr): New method.
10518
01b1af32
TT
105192020-02-22 Tom Tromey <tom@tromey.com>
10520
10521 * NEWS: Add entry for gdb.register_window_type.
10522 * tui/tui-layout.h (window_factory): New typedef.
10523 (tui_register_window): Declare.
10524 * tui/tui-layout.c (saved_tui_windows): New global.
10525 (tui_apply_current_layout): Use it.
10526 (tui_register_window): New function.
10527 * python/python.c (do_start_initialization): Call
10528 gdbpy_initialize_tui.
10529 (python_GdbMethods): Add "register_window_type" function.
10530 * python/python-internal.h (gdbpy_register_tui_window)
10531 (gdbpy_initialize_tui): Declare.
10532 * python/py-tui.c: New file.
10533 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10534
fc96d20b
TT
105352020-02-22 Tom Tromey <tom@tromey.com>
10536
10537 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10538
935c78c0
TT
105392020-02-22 Tom Tromey <tom@tromey.com>
10540
10541 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10542 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10543 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10544 (tui_set_win_focus_to): Move from tui-win.c.
10545
0240c8f1
TT
105462020-02-22 Tom Tromey <tom@tromey.com>
10547
10548 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10549 functions.
10550 (known_window_types): New global.
10551 (tui_get_window_by_name): Reimplement.
10552 (initialize_known_windows): New function.
10553 (validate_window_name): Rewrite.
10554 (_initialize_tui_layout): Call initialize_known_windows.
10555
fdb01f0c
TT
105562020-02-22 Tom Tromey <tom@tromey.com>
10557
10558 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10559 Remove constants.
10560 * tui/tui-winsource.h (struct tui_source_window_base)
10561 <tui_source_window_base>: Remove parameter.
10562 * tui/tui-winsource.c
10563 (tui_source_window_base::tui_source_window_base): Remove
10564 parameter.
10565 (tui_source_window_base::refill): Update.
10566 * tui/tui-stack.h (struct tui_locator_window)
10567 <tui_locator_window>: Update.
10568 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10569 Default the constructor.
10570 * tui/tui-regs.h (struct tui_data_item_window)
10571 <tui_data_item_window>: Default the constructor.
10572 (struct tui_data_window) <tui_data_window>: Likewise.
10573 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10574 Default the constructor.
10575 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10576 Default the constructor.
10577 <type>: Remove.
10578 (struct tui_win_info) <tui_win_info>: Default the constructor.
10579 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10580 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10581 Default the constructor.
10582
865a5aec
TT
105832020-02-22 Tom Tromey <tom@tromey.com>
10584
10585 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10586 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10587 * tui/tui-win.c (tui_resize_all): Don't call
10588 tui_delete_invisible_windows.
10589 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10590 done.
10591 (tui_set_layout): Update.
10592 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10593 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10594 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10595
e098d18c
TT
105962020-02-22 Tom Tromey <tom@tromey.com>
10597
10598 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10599 correctly.
10600
eb9c8874
TT
106012020-02-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10604
7eed1a8e
TT
106052020-02-22 Tom Tromey <tom@tromey.com>
10606
10607 * tui/tui-winsource.h (struct tui_source_window_iterator)
10608 <inner_iterator>: New etytypedef.
10609 <tui_source_window_iterator>: Take "end" parameter.
10610 <tui_source_window_iterator>: Take iterator.
10611 <operator*, advance>: Update.
10612 <m_iter>: Change type.
10613 <m_end>: New field.
10614 (struct tui_source_windows) <begin, end>: Update.
10615 * tui/tui-layout.c (tui_windows): New global.
10616 (tui_apply_current_layout): Clear tui_windows.
10617 (tui_layout_window::apply): Update tui_windows.
10618 * tui/tui-data.h (tui_windows): Declare.
10619 (all_tui_windows): Now inline function.
10620 (class tui_window_iterator, struct all_tui_windows): Remove.
10621
7c043ba6
TT
106222020-02-22 Tom Tromey <tom@tromey.com>
10623
10624 PR tui/17850:
10625 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10626 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10627 "height" argument.
10628 (class tui_layout_window) <get_sizes>: Likewise.
10629 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10630 argument.
10631 <get_sizes>: Add "height" argument.
10632 <m_vertical>: New field.
10633 * tui/tui-layout.c (tui_layout_split::clone): Update.
10634 (tui_layout_split::get_sizes): Add "height" argument.
10635 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10636 (tui_new_layout_command): Parse "-horizontal".
10637 (_initialize_tui_layout): Update help string.
10638 (tui_layout_split::specification): Add "-horizontal" when needed.
10639 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10640 argument.
10641 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10642 New methods.
10643
6bc56648
TT
106442020-02-22 Tom Tromey <tom@tromey.com>
10645
10646 * tui/tui-layout.h (enum tui_adjust_result): New.
10647 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10648 (class tui_layout_window) <adjust_size>: Return
10649 tui_adjust_result. Rewrite.
10650 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10651 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10652
c22fef7e
TT
106532020-02-22 Tom Tromey <tom@tromey.com>
10654
10655 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10656 parameter and return types.
10657 (class tui_layout_base) <specification>: Add "depth".
10658 (class tui_layout_window) <specification>: Add "depth".
10659 (class tui_layout_split) <specification>: Add "depth".
10660 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10661 and return types.
10662 (tui_new_layout_command): Parse sub-layouts.
10663 (_initialize_tui_layout): Update help string.
10664 (tui_layout_window::specification): Add "depth".
10665 (add_layout_command): Update.
10666
ee325b61
TT
106672020-02-22 Tom Tromey <tom@tromey.com>
10668
10669 * NEWS: Add "tui new-layout" item.
10670 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10671 Add new-layout command to help text.
10672 (validate_window_name): New function.
10673 (tui_new_layout_command): New function.
10674 (_initialize_tui_layout): Register "new-layout".
10675 (tui_layout_window::specification): New method.
10676 (tui_layout_window::specification): New method.
10677 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10678 method.
10679 (class tui_layout_window) <specification>: New method.
10680 (class tui_layout_split) <specification>: New method.
10681
416eb92d
TT
106822020-02-22 Tom Tromey <tom@tromey.com>
10683
10684 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10685 * tui/tui-win.c (window_name_completer): Update comment.
10686 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10687 Declare method.
10688 (class tui_layout_window) <replace_window>: Likewise.
10689 (class tui_layout_split) <replace_window>: Likewise.
10690 (tui_set_layout): Don't declare.
10691 (tui_set_initial_layout): Declare function.
10692 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10693 (asm_regs_layout): New globals.
10694 (tui_current_layout, show_layout): Remove.
10695 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10696 (find_layout, tui_apply_layout): New function.
10697 (layout_completer): Remove.
10698 (tui_next_layout): Reimplement.
10699 (tui_next_layout_command): New function.
10700 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10701 (tui_regs_layout): Reimplement.
10702 (tui_regs_layout_command): New function.
10703 (extract_display_start_addr): Rewrite.
10704 (next_layout, prev_layout): Remove.
10705 (tui_layout_window::replace_window): New method.
10706 (tui_layout_split::replace_window): New method.
10707 (destroy_layout): New function.
10708 (layout_list): New global.
10709 (add_layout_command): New function.
10710 (initialize_layouts): Update.
10711 (tui_layout_command): New function.
10712 (_initialize_tui_layout): Install "layout" commands.
10713 * tui/tui-data.h (enum tui_layout_type): Remove.
10714 (tui_current_layout): Don't declare.
10715
0dbc2fc7
TT
107162020-02-22 Tom Tromey <tom@tromey.com>
10717
10718 * tui/tui-regs.c (tui_reg_layout): Remove.
10719 (tui_reg_command): Use tui_regs_layout.
10720 * tui/tui-layout.h (tui_reg_command): Declare.
10721 * tui/tui-layout.c (tui_reg_command): New function.
10722
5afe342e
TT
107232020-02-22 Tom Tromey <tom@tromey.com>
10724
10725 * tui/tui.c (tui_rl_delete_other_windows): Call
10726 tui_remove_some_windows.
10727 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10728 Declare method.
10729 (class tui_layout_window) <remove_windows>: New method.
10730 (class tui_layout_split) <remove_windows>: Declare.
10731 (tui_remove_some_windows): Declare.
10732 * tui/tui-layout.c (tui_remove_some_windows): New function.
10733 (tui_layout_split::remove_windows): New method.
10734
427326a8
TT
107352020-02-22 Tom Tromey <tom@tromey.com>
10736
10737 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10738 * tui/tui-layout.h (tui_next_layout): Declare.
10739 * tui/tui-layout.c (tui_next_layout): New function.
10740
3fe12b6d
TT
107412020-02-22 Tom Tromey <tom@tromey.com>
10742
10743 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10744 correct coordinates.
10745
59b8b5d2
TT
107462020-02-22 Tom Tromey <tom@tromey.com>
10747
10748 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10749 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10750 DATA_WIN case.
10751
2a3d458b
TT
107522020-02-22 Tom Tromey <tom@tromey.com>
10753
10754 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10755 TUI_DISASM_WIN, not tui_win_list.
10756
3f0cbb04
TT
107572020-02-22 Tom Tromey <tom@tromey.com>
10758
10759 * valprint.c (generic_val_print_enum_1)
10760 (val_print_type_code_flags): Style member names.
10761 * rust-lang.c (val_print_struct, rust_print_enum)
10762 (rust_print_struct_def, rust_internal_print_type): Style member
10763 names.
10764 * p-valprint.c (pascal_object_print_value_fields): Style member
10765 names. Only call fprintf_symbol_filtered for static members.
10766 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10767 * f-valprint.c (f_val_print): Style member names.
10768 * f-typeprint.c (f_type_print_base): Style member names.
10769 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10770 call fprintf_symbol_filtered for static members.
10771 (cp_print_class_member): Style member names.
10772 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10773 member names.
10774 * ada-valprint.c (ada_print_scalar): Style enum names.
10775 (ada_val_print_enum): Likewise.
10776 * ada-typeprint.c (print_enum_type): Style enum names.
10777
d4d947ae
TT
107782020-02-21 Tom Tromey <tom@tromey.com>
10779
10780 * psympriv.h (struct partial_symtab): Update comment.
10781
e94e944b
TT
107822020-02-21 Tom Tromey <tromey@adacore.com>
10783
10784 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10785 type is CORE_ADDR.
10786
1eb73179
TV
107872020-02-21 Tom de Vries <tdevries@suse.de>
10788
10789 PR gdb/25534
10790 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10791 if dependencies[i]->user != NULL.
10792
4f180d53
AT
107932020-02-21 Ali Tamur <tamur@google.com>
10794
10795 * dwarf2/read.c (dwarf2_name): Add null check.
10796
22b6cd70
TT
107972020-02-20 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10800 ">=", in binary search.
10801 (dwarf2_find_containing_comp_unit): New overload.
10802 (run_test): New self-test.
10803 (_initialize_dwarf2_read): Register new test.
10804
bd0cf5a6
NC
108052020-02-20 Nelson Chu <nelson.chu@sifive.com>
10806
10807 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10808 * riscv-tdep.h: Likewise.
10809 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10810 rv32-only CSR.
10811 * features/riscv/64bit-csr.xml: Regenerated.
10812
3f702acd
SDJ
108132020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10814 Tom Tromey <tom@tromey.com>
10815
10816 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10817 of 'fputc_unfiltered'.
10818 (putchar_unfiltered): Call 'fputc_unfiltered'.
10819 (fputc_unfiltered): Call 'fputs_unfiltered'.
10820
d13c7322
AB
108212020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10822
10823 * config.in: Regenerate.
10824 * configure: Regenerate.
10825 * configure.ac: Add --with-python-libdir option.
10826 * main.c: Use WITH_PYTHON_LIBDIR.
10827
869d8950
TT
108282020-02-19 Tom Tromey <tom@tromey.com>
10829
10830 * symtab.c (general_symbol_info::compute_and_set_names): Use
10831 obstack_strndup. Simplify call to symbol_set_demangled_name.
10832
298e9637
SM
108332020-02-19 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * dwarf2/read.c (allocate_signatured_type_table,
10836 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10837 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10838 Remove objfile parameter, update all callers.
10839
08410482
DE
108402020-02-19 Doug Evans <dje@google.com>
10841
10842 PR rust/25535
10843 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10844 rust_enum_variant calculation.
10845
dfdeeca1
TT
108462020-02-19 Tom Tromey <tromey@adacore.com>
10847
10848 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10849
2ef5453b
TT
108502020-02-19 Tom Tromey <tromey@adacore.com>
10851
10852 * ada-lang.c (cache_symbol): Use obstack_strdup.
10853
9f1528a1
AB
108542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * configure: Regenerate.
10857
d3c22fa8
TT
108582020-02-19 Tom Tromey <tromey@adacore.com>
10859
10860 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10861 NULL check.
10862
bf84f706
MR
108632020-02-19 Maciej W. Rozycki <macro@wdc.com>
10864
10865 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10866
d1c9b20f
AB
108672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10868
10869 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10870 if GDBSERVER is not defined.
10871 (riscv_tdesc_cache): Likewise, also store const target_desc.
10872 (STATIC_IN_GDB): Define.
10873 (riscv_create_target_description): Update declaration with
10874 STATIC_IN_GDB.
10875 (riscv_lookup_target_description): New function, only define if
10876 GDBSERVER is not defined.
10877 * arch/riscv.h (riscv_create_target_description): Declare only
10878 when GDBSERVER is defined.
10879 (riscv_lookup_target_description): New declaration when GDBSERVER
10880 is not defined.
10881 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10882 (riscv_linux_read_features): ...this, and return
10883 riscv_gdbarch_features instead of target_desc.
10884 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10885 (riscv_linux_read_description): Rename to...
10886 (riscv_linux_read_features): ...this.
10887 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10888 Update to use riscv_gdbarch_features and
10889 riscv_lookup_target_description.
10890 * riscv-tdep.c (riscv_find_default_target_description): Use
10891 riscv_lookup_target_description instead of
10892 riscv_create_target_description.
10893
373d7ac0
SM
108942020-02-18 Simon Marchi <simon.marchi@efficios.com>
10895
10896 * valprint.c (generic_val_print_enum_1): When printing a flag
10897 enum with value 0 and there is no enumerator with value 0, print
10898 just "0" instead of "(unknown: 0x0)".
10899
b29a2df0
SM
109002020-02-18 Simon Marchi <simon.marchi@efficios.com>
10901
10902 * valprint.c (generic_val_print_enum_1): Print unknown part of
10903 flag enum in hex.
10904
6740f0cc
SM
109052020-02-18 Simon Marchi <simon.marchi@efficios.com>
10906
10907 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10908 flag enums to contain duplicate enumerators.
10909 * valprint.c (generic_val_print_enum_1): Update comment.
10910
edd45eb0
SM
109112020-02-18 Simon Marchi <simon.marchi@efficios.com>
10912
10913 * dwarf2/read.c: Include "count-one-bits.h".
10914 (update_enumeration_type_from_children): If an enumerator has
10915 multiple bits set, don't treat the enumeration as a "flag enum".
10916 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10917 of flag enums have 0 or 1 bit set.
10918
6d0cf446
BE
109192020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10920
10921 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10922 conversion.
10923 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10924 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10925 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10926 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10927 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10928
7001c1b7
SM
109292020-02-18 Simon Marchi <simon.marchi@efficios.com>
10930
10931 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10932
fdb61c6c
SM
109332020-02-14 Simon Marchi <simon.marchi@efficios.com>
10934
10935 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10936 displaced_step_closure_up.
10937 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10938 (struct displaced_step_closure_up):
10939 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10940 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10941 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10942 Likewise.
10943 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10944 * gdbarch.c, gdbarch.h: Re-generate.
10945 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10946 displaced_step_closure_up.
10947 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10948 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10949 * infrun.h (displaced_step_closure_up): New type alias.
10950 (struct displaced_step_inferior_state) <step_closure>: Change
10951 type to displaced_step_closure_up.
10952 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10953 displaced_step_closure_up.
10954 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10955
a4a38eb4
TT
109562020-02-14 Tom Tromey <tom@tromey.com>
10957
10958 * minidebug.c (gnu_debug_key): New global.
10959 (find_separate_debug_file_in_section): Use it.
10960
e8217e61
SM
109612020-02-14 Simon Marchi <simon.marchi@efficios.com>
10962
10963 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10964 std::unique_ptr.
10965 * gdbarch.c: Re-generate.
10966 * gdbarch.h: Re-generate.
10967 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10968 change.
10969 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10970 type to std::unique_ptr.
10971 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10972 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10973 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10974 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10975 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10976 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10977 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10978 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10979 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10980
d8d83535
SM
109812020-02-14 Simon Marchi <simon.marchi@efficios.com>
10982
10983 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10984 std::unique_ptr.
10985 (displaced_step_clear): Rename to...
10986 (displaced_step_reset): ... this. Just call displaced->reset ().
10987 (displaced_step_clear_cleanup): Rename to...
10988 (displaced_step_reset_cleanup): ... this.
10989 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10990 (displaced_step_fixup): Likewise.
10991 (resume_1): Likewise.
10992 (handle_inferior_event): Restore child's memory before calling
10993 displaced_step_fixup on the parent.
10994 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10995 to std::unique_ptr.
10996 <step_closure>: Change type to std::unique_ptr.
10997
5f661e03
SM
109982020-02-14 Simon Marchi <simon.marchi@efficios.com>
10999
11000 * arm-tdep.c: Include count-one-bits.h.
11001 (cleanup_block_store_pc): Use count_one_bits.
11002 (cleanup_block_load_pc): Use count_one_bits.
11003 (arm_copy_block_xfer): Use count_one_bits.
11004 (thumb2_copy_block_xfer): Use count_one_bits.
11005 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11006 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11007 (thumb_get_next_pcs_raw): Use count_one_bits.
11008 (arm_get_next_pcs_raw): Use count_one_bits_l.
11009 * arch/arm.c (bitcount): Remove.
11010 * arch/arm.h (bitcount): Remove.
11011
8084e579
TT
110122020-02-14 Tom Tromey <tromey@adacore.com>
11013
11014 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11015 Update.
11016 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11017 * dwarf2/loc.c (call_site_find_chain_1): Return
11018 unique_xmalloc_ptr.
11019 (call_site_find_chain): Likewise.
11020
258bf0ee
RB
110212020-02-14 Richard Biener <rguenther@suse.de>
11022
11023 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11024 on expression with division operators.
11025
f98a8458
AKS
110262020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11027
11028 * MAINTAINERS (Write After Approval): Adding myself.
11029
d1437c0e
TT
110302020-02-12 Tom Tromey <tom@tromey.com>
11031
11032 * event-loop.c (event_data, gdb_event, event_handler_func):
11033 Remove.
11034
3d4560f7
TT
110352020-02-12 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11038 (dwarf2_frame_objfile_data): Add comment.
11039 (find_comp_unit, set_comp_unit): New functions.
11040 (dwarf2_frame_find_fde): Use find_comp_unit.
11041 (dwarf2_build_frame_info): Use set_comp_unit.
11042
21982304
TT
110432020-02-12 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11046 (comp_unit): Don't initialize objfile.
11047 (execute_cfa_program): Add text_offset parameter.
11048 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11049 (dwarf2_frame_cache): Update.
11050 (dwarf2_build_frame_info): Don't set "objfile" member.
11051
4debb237
TT
110522020-02-12 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11055 (decode_frame_entry): Likewise.
11056 (dwarf2_build_frame_info): Update.
11057
0d404d44
TT
110582020-02-12 Tom Tromey <tom@tromey.com>
11059
11060 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11061 (decode_frame_entry_1): Use the comp_unit obstack.
11062
a7a3ae5c
TT
110632020-02-12 Tom Tromey <tom@tromey.com>
11064
11065 * dwarf2/frame.c (struct comp_unit): Add initializers and
11066 constructor.
11067 (dwarf2_frame_objfile_data): Store a comp_unit.
11068 (dwarf2_frame_find_fde): Update.
11069 (dwarf2_build_frame_info): Use "new".
11070
a9d65418
TT
110712020-02-12 Tom Tromey <tom@tromey.com>
11072
11073 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11074 (dwarf2_fde_table): Typedef for std::vector.
11075 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11076 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11077 (decode_frame_entry): Update.
11078 (dwarf2_build_frame_info): Use "new".
11079
7559c217
CB
110802020-02-12 Christian Biesinger <cbiesinger@google.com>
11081
11082 * arm-tdep.c (arm_gdbarch_init): Update.
11083 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11084 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11085 have_neon, is_m>: Change to bool.
11086
aeefc73c
CB
110872020-02-12 Christian Biesinger <cbiesinger@google.com>
11088
11089 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11090
d27b8e5f
TT
110912020-02-12 Tom Tromey <tom@tromey.com>
11092
11093 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11094
cd5900f3
HD
110952020-02-12 Hannes Domani <ssbssa@yahoo.de>
11096
11097 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11098 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11099
f056b22b
TT
111002020-02-11 Tom Tromey <tom@tromey.com>
11101
11102 * psymtab.h: Update comment.
11103
f92ff6b5
TT
111042020-02-11 Tom Tromey <tom@tromey.com>
11105
11106 * gdb_obstack.h (struct auto_obstack): Use
11107 DISABLE_COPY_AND_ASSIGN.
11108
3fd6912b
TT
111092020-02-11 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/frame.h (struct objfile): Don't forward declare.
11112
69ed9b74
CB
111132020-02-11 Christian Biesinger <cbiesinger@google.com>
11114
11115 * cris-tdep.c (cris_supply_gregset): Change signature to match
11116 what struct regset expects.
11117 (cris_regset): New struct.
11118 (fetch_core_registers): Remove.
11119 (cris_iterate_over_regset_sections): New function.
11120 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11121 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11122
bda874f6
CB
111232020-02-11 Christian Biesinger <cbiesinger@google.com>
11124
11125 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11126 registers.
11127
754e1564
CB
111282020-02-11 Christian Biesinger <cbiesinger@google.com>
11129
11130 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11131
8ddd8e0e
SM
111322020-02-11 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * configure: Re-generate.
11135
898e7f60
SM
111362020-02-11 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * configure: Re-generate.
11139
58df732b
SM
111402020-02-11 Simon Marchi <simon.marchi@efficios.com>
11141
11142 * acinclude: Update warning.m4 path.
11143 * warning.m4: Move to gdbsupport.
11144
da5bd37e
TT
111452020-02-11 Tom Tromey <tromey@adacore.com>
11146
11147 * remote.c (remote_console_output): Update.
11148 * printcmd.c (printf_command): Update.
11149 * event-loop.c (gdb_wait_for_event): Update.
11150 * linux-nat.c (sigchld_handler): Update.
11151 * remote-sim.c (gdb_os_write_stdout): Update.
11152 (gdb_os_flush_stdout): Update.
11153 (gdb_os_flush_stderr): Update.
11154 (gdb_os_write_stderr): Update.
11155 * exceptions.c (print_exception): Update.
11156 * remote-fileio.c (remote_fileio_func_read): Update.
11157 (remote_fileio_func_write): Update.
11158 * tui/tui.c (tui_enable): Update.
11159 * tui/tui-interp.c (tui_interp::init): Update.
11160 * utils.c (init_page_info): Update.
11161 (putchar_unfiltered, fputc_unfiltered): Update.
11162 (gdb_flush): Update.
11163 (emit_style_escape): Update.
11164 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11165 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11166 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11167 (stderr_file::write): Update.
11168 (stderr_file::puts): Update.
11169 * ui-file.h (ui_file_isatty, ui_file_write)
11170 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11171 (ui_file_puts): Don't declare.
11172
85f0dd3c
TV
111732020-02-10 Tom de Vries <tdevries@suse.de>
11174
11175 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11176 sentinel to char *.
11177
2e927613
TV
111782020-02-09 Tom de Vries <tdevries@suse.de>
11179
11180 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11181 filename if it matches "<artificial>".
11182
6bafc845
HD
111832020-02-09 Hannes Domani <ssbssa@yahoo.de>
11184
11185 * windows-tdep.c (struct enum_value_name): New struct.
11186 (create_enum): New function.
11187 (windows_get_siginfo_type): Create and use enum types.
11188
7928d571
HD
111892020-02-09 Hannes Domani <ssbssa@yahoo.de>
11190
11191 * NEWS: Mention $_siginfo support for Windows.
11192 * windows-nat.c (handle_exception): Set siginfo_er.
11193 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11194 (windows_xfer_siginfo): New function.
11195 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11196 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11197 (init_windows_gdbarch_data): New function.
11198 (get_windows_gdbarch_data): New function.
11199 (windows_get_siginfo_type): New function.
11200 (windows_init_abi): Register windows_get_siginfo_type.
11201 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11202
6751ebae
TT
112032020-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11206 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11207 <keep>: Declare method.
11208 <m_keep>: Remove member.
11209 <~cutu_reader>: Remove.
11210 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11211 (cutu_reader::cutu_reader): Update.
11212 (cutu_reader::keep): Rename from ~cutu_reader.
11213 (process_psymtab_comp_unit, build_type_psymtabs_1)
11214 (process_skeletonless_type_unit, load_partial_comp_unit)
11215 (load_full_comp_unit, dwarf2_read_addr_index)
11216 (read_signatured_type): Update.
11217
135f5437
TT
112182020-02-08 Tom Tromey <tom@tromey.com>
11219
11220 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11221 "want_partial_unit" parameter.
11222 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11223 Inline check for DW_TAG_partial_unit.
11224 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11225
9f66ff1c
TT
112262020-02-08 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11229 read.c.
11230 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11231 read.c.
11232
c8a7a66f
TT
112332020-02-08 Tom Tromey <tom@tromey.com>
11234
11235 * dwarf2/read.c (read_address): Move to comp-unit.c.
11236 (dwarf2_rnglists_process, dwarf2_ranges_process)
11237 (read_attribute_value, dwarf_decode_lines_1)
11238 (var_decode_location, decode_locdesc): Update.
11239 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11240 read.c. Remove "cu" parameter.
11241 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11242 method.
11243
8266302d
TT
112442020-02-08 Tom Tromey <tom@tromey.com>
11245
11246 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11247 (read_indirect_line_string): Update.
11248 * dwarf2/comp-unit.c (read_offset): Remove.
11249 (read_comp_unit_head): Update.
11250 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11251 method.
11252 (read_offset): Don't declare.
11253
4057dfde
TT
112542020-02-08 Tom Tromey <tom@tromey.com>
11255
11256 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11257 * dwarf2/read.c (struct comp_unit_head): Move to
11258 dwarf2/comp-unit.h.
11259 (enum class rcuh_kind): Move to comp-unit.h.
11260 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11261 (read_comp_unit_head, error_check_comp_unit_head)
11262 (read_and_check_comp_unit_head): Move to comp-unit.c.
11263 (read_offset, dwarf_unit_type_name): Likewise.
11264 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11265 (cutu_reader::cutu_reader, read_call_site_scope)
11266 (find_partial_die, follow_die_offset): Update.
11267 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11268
24aa364d
TT
112692020-02-08 Tom Tromey <tom@tromey.com>
11270
11271 * dwarf2/read.c (read_offset_1): Move to leb.c.
11272 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11273 (dwarf_decode_macro_bytes): Update.
11274 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11275 * dwarf2/leb.h (read_offset): Declare.
11276
2c7d5afc
TT
112772020-02-08 Tom Tromey <tom@tromey.com>
11278
11279 * dwarf2/read.c (dwarf2_section_size): Remove.
11280 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11281 Update.
11282 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11283
4075cb26
TT
112842020-02-08 Tom Tromey <tom@tromey.com>
11285
11286 * dwarf2/read.c (read_initial_length): Move to leb.c.
11287 * dwarf2/leb.h (read_initial_length): Declare.
11288 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11289 handle_nonstd parameter.
11290 * dwarf2/frame.c (read_initial_length): Remove.
11291 (decode_frame_entry_1): Update.
11292
09ba997f
TT
112932020-02-08 Tom Tromey <tom@tromey.com>
11294
11295 * dwarf2/loc.c (dwarf2_find_location_expression)
11296 (dwarf_evaluate_loc_desc::get_tls_address)
11297 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11298 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11299 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11300 (dwarf2_compile_property_to_c)
11301 (dwarf2_loc_desc_get_symbol_read_needs)
11302 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11303 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11304 (loclist_describe_location, loclist_tracepoint_var_ref)
11305 (loclist_generate_c_location): Update.
11306 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11307 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11308 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11309 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11310 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11311 (dwarf2_per_cu_data::addr_size)
11312 (dwarf2_per_cu_data::ref_addr_size)
11313 (dwarf2_per_cu_data::text_offset)
11314 (dwarf2_per_cu_data::addr_type): Now methods.
11315 (per_cu_header_read_in): Make per_cu "const".
11316 (dwarf2_version): Remove.
11317 (dwarf2_per_cu_data::int_type): Now a method.
11318 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11319 (set_die_type, read_array_type, read_subrange_index_type)
11320 (read_tag_string_type, read_subrange_type): Update.
11321 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11322 offset_size, ref_addr_size, text_offset, addr_type, version,
11323 objfile, int_type, addr_sized_int_type>: Declare methods.
11324
96c738c0
TT
113252020-02-08 Tom Tromey <tom@tromey.com>
11326
11327 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11328 Move earlier.
11329
8fdd972c
TT
113302020-02-08 Tom Tromey <tom@tromey.com>
11331
11332 * dwarf2/read.h (dwarf_line_debug): Declare.
11333 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11334 * dwarf2/read.c: Move line_header code to new files.
11335 (dwarf_line_debug): No longer static.
11336 * dwarf2/line-header.c: New file.
11337 * dwarf2/line-header.h: New file.
11338
03075812
TT
113392020-02-08 Tom Tromey <tom@tromey.com>
11340
11341 * dwarf2/read.c (struct line_header) <file_full_name,
11342 file_file_name>: Return unique_xmalloc_ptr.
11343 (line_header::file_file_name): Update.
11344 (line_header::file_full_name): Update.
11345 (dw2_get_file_names_reader): Update.
11346 (macro_start_file): Update.
11347
bb822404
TT
113482020-02-08 Tom Tromey <tom@tromey.com>
11349
11350 * dwarf2/read.c (struct line_header) <file_full_name,
11351 file_file_name>: Declare methods.
11352 (dw2_get_file_names_reader): Update.
11353 (file_file_name): Now a method.
11354 (file_full_name): Likewise.
11355 (macro_start_file): Update.
11356
009b64fc
TT
113572020-02-08 Tom Tromey <tom@tromey.com>
11358
11359 * dwarf2/read.c (dwarf_always_disassemble)
11360 (show_dwarf_always_disassemble): Move to loc.c.
11361 (_initialize_dwarf2_read): Move "always-disassemble" registration
11362 to loc.c.
11363 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11364 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11365 static.
11366 (show_dwarf_always_disassemble): Move from read.c.
11367 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11368
5895093f
TT
113692020-02-08 Tom Tromey <tom@tromey.com>
11370
11371 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11372 (create_quick_file_names_table): Return htab_up.
11373 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11374 Update.
11375 * dwarf2/read.h (struct dwarf2_per_objfile)
11376 <quick_file_names_table>: Now htab_up.
11377
b3b32279
TT
113782020-02-08 Tom Tromey <tom@tromey.com>
11379
11380 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11381
1d33d811
TT
113822020-02-08 Tom Tromey <tom@tromey.com>
11383
11384 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11385 Rewrite.
11386 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11387 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11388 (abbrev_table::abbrev_table): No longer inline.
11389 (ABBREV_HASH_SIZE): Remove.
11390 (abbrev_table::m_abbrevs): Now an htab_up.
11391
86de1d91
TT
113922020-02-08 Tom Tromey <tom@tromey.com>
11393
11394 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11395 (cutu_reader): Update.
11396 (build_type_psymtabs_1): Update.
11397 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11398 (abbrev_table::alloc_abbrev): Update.
11399 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11400 (abbrev_table::read): New static method, renamed from
11401 abbrev_table_read_table.
11402 (abbrev_table::alloc_abbrev)
11403 (abbrev_table::add_abbrev): Now private.
11404 (abbrev_table::abbrev_table): Now private.
11405 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11406
0335378b
TT
114072020-02-08 Tom Tromey <tom@tromey.com>
11408
11409 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11410 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11411 htab_up.
11412
48b490f2
TT
114132020-02-08 Tom Tromey <tom@tromey.com>
11414
11415 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11416 htab_up.
11417 (lookup_dwo_unit_in_dwp): Update.
11418 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11419 on obstack.
11420
bc68fb19
TT
114212020-02-08 Tom Tromey <tom@tromey.com>
11422
11423 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11424 obstack.
11425
d15acc42
TT
114262020-02-08 Tom Tromey <tom@tromey.com>
11427
11428 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11429 line_header_hash.
11430 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11431 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11432 Change type to htab_up.
11433
eaa5fa8b
TT
114342020-02-08 Tom Tromey <tom@tromey.com>
11435
11436 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11437 htab_up. Don't allocate on obstack.
11438 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11439 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11440 Change type to htab_up.
11441
b0b6a987
TT
114422020-02-08 Tom Tromey <tom@tromey.com>
11443
11444 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11445 Change type to htab_up.
11446 * dwarf2/read.c (create_signatured_type_table_from_index)
11447 (create_signatured_type_table_from_debug_names)
11448 (create_all_type_units, add_type_unit)
11449 (lookup_dwo_signatured_type, lookup_signatured_type)
11450 (process_skeletonless_type_unit): Update.
11451 (create_debug_type_hash_table, create_debug_types_hash_table):
11452 Change type of types_htab.
11453 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11454 htab_up. Don't allocate on obstack.
11455 (create_cus_hash_table): Change type of cus_htab parameter.
11456 (struct dwo_file) <cus, tus>: Now htab_up.
11457 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11458 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11459 (queue_and_load_all_dwo_tus): Update.
11460 * dwarf2/index-write.c (write_gdbindex): Update.
11461 (write_debug_names): Update.
11462
39856def
TT
114632020-02-08 Tom Tromey <tom@tromey.com>
11464
11465 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11466 dwarf2/read.c. Remove "next" member. Add constructor ntad
11467 destructor.
11468 (struct dwarf2_per_objfile) <queue>: New member.
11469 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11470 dwarf2/read.h.
11471 (dwarf2_queue, dwarf2_queue_tail): Remove.
11472 (class dwarf2_queue_guard): Add parameter to constructor. Use
11473 DISABLE_COPY_AND_ASSIGN.
11474 <m_per_objfile>: New member.
11475 <~dwarf2_queue_guard>: Rewrite.
11476 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11477 Update.
11478 (~dwarf2_queue_item): New.
11479
3e225074
TT
114802020-02-08 Tom Tromey <tom@tromey.com>
11481
11482 * dwarf2/read.c (struct die_info) <has_children>: New member.
11483 (dw2_get_file_names_reader): Remove has_children.
11484 (dw2_get_file_names): Update.
11485 (read_cutu_die_from_dwo): Remove has_children.
11486 (cutu_reader::init_tu_and_read_dwo_dies)
11487 (cutu_reader::cutu_reader): Update.
11488 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11489 Remove has_children.
11490 (build_type_psymtabs_1, process_skeletonless_type_unit)
11491 (load_partial_comp_unit, load_full_comp_unit): Update.
11492 (create_dwo_cu_reader): Remove has_children.
11493 (create_cus_hash_table, read_die_and_children): Update.
11494 (read_full_die_1,read_full_die): Remove has_children.
11495 (read_signatured_type): Update.
11496 (class cutu_reader) <has_children>: Remove.
11497
82ca8957
TT
114982020-02-08 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2/expr.c: Rename from dwarf2expr.c.
11501 * dwarf2/expr.h: Rename from dwarf2expr.h.
11502 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11503 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11504 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11505 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11506 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11507 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11508 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11509 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11510 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11511 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11512 * dwarf2/loc.c: Rename from dwarf2loc.c.
11513 * dwarf2/loc.h: Rename from dwarf2loc.h.
11514 * dwarf2/read.c: Rename from dwarf2read.c.
11515 * dwarf2/read.h: Rename from dwarf2read.h.
11516 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11517 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11518 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11519 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11520 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11521 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11522 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11523 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11524 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11525 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11526 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11527 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11528 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11529 Update.
11530 * Makefile.in (COMMON_SFILES): Update.
11531 (HFILES_NO_SRCDIR): Update.
11532
9e35d499
TT
115332020-02-08 Tom Tromey <tom@tromey.com>
11534
11535 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11536 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11537
1eba2311
TT
115382020-02-08 Tom Tromey <tom@tromey.com>
11539
11540 * dwarf2read.h (struct die_info): Don't declare.
11541
e41c2da2
TT
115422020-02-08 Tom Tromey <tom@tromey.com>
11543
11544 * dwarf2read.h (die_info_ptr): Remove typedef.
11545
4fc6c0d5
TT
115462020-02-08 Tom Tromey <tom@tromey.com>
11547
11548 * dwarf2read.c (read_call_site_scope)
11549 (handle_data_member_location, dwarf2_add_member_fn)
11550 (mark_common_block_symbol_computed, read_common_block)
11551 (attr_to_dynamic_prop, partial_die_info::read)
11552 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11553 (dwarf2_symbol_mark_computed, set_die_type): Update.
11554 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11555 method.
11556 (attr_form_is_block): Don't declare.
11557 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11558
cd6c91b4
TT
115592020-02-08 Tom Tromey <tom@tromey.com>
11560
11561 * dwarf2read.c (dwarf2_find_base_address, )
11562 (read_call_site_scope, rust_containing_type)
11563 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11564 (handle_data_member_location, dwarf2_add_member_fn)
11565 (get_alignment, read_structure_type, process_structure_scope)
11566 (mark_common_block_symbol_computed, read_common_block)
11567 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11568 (partial_die_info::read, read_attribute_value, new_symbol)
11569 (lookup_die_type, dwarf2_get_ref_die_offset)
11570 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11571 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11572 (dwarf2_symbol_mark_computed): Update.
11573 * dwarf2/attribute.h (struct attribute) <value_as_address,
11574 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11575 methods.
11576 (value_as_address, attr_form_is_section_offset)
11577 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11578 * dwarf2/attribute.c (attribute::value_as_address)
11579 (attribute::form_is_section_offset, attribute::form_is_constant)
11580 (attribute::form_is_ref): Now methods.
11581
162dce55
TT
115822020-02-08 Tom Tromey <tom@tromey.com>
11583
11584 * dwarf2read.c (struct attribute, DW_STRING)
11585 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11586 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11587 (attr_form_is_block, attr_form_is_section_offset)
11588 (attr_form_is_constant, attr_form_is_ref): Move.
11589 * dwarf2/attribute.h: New file.
11590 * dwarf2/attribute.c: New file, from dwarf2read.c.
11591 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11592
3054dd54
TT
115932020-02-08 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11596 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11597 Move.
11598 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11599 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11600 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11601 abbrev.c.
11602 * dwarf2/abbrev.h: New file.
11603 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11604 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11605
96b79293
TT
116062020-02-08 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11609 (dwarf2_section_size, dwarf2_get_section_info)
11610 (create_signatured_type_table_from_debug_names)
11611 (create_addrmap_from_aranges, read_debug_names_from_section)
11612 (get_gdb_index_contents_from_section, read_comp_unit_head)
11613 (error_check_comp_unit_head, read_abbrev_offset)
11614 (create_debug_type_hash_table, init_cu_die_reader)
11615 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11616 (read_comp_units_from_section, create_cus_hash_table)
11617 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11618 (create_dwp_v2_section, dwarf2_rnglists_process)
11619 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11620 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11621 (read_indirect_string_from_dwz, read_addr_index_1)
11622 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11623 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11624 (fill_in_loclist_baton): Update.
11625 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11626 get_containing_section, get_bfd_owner, get_bfd_section,
11627 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11628 (dwarf2_read_section, get_section_name, get_section_file_name)
11629 (get_containing_section, get_section_bfd_owner)
11630 (get_section_bfd_section, get_section_name, get_section_file_name)
11631 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11632 declare.
11633 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11634 (dwarf2_section_info::get_bfd_owner)
11635 (dwarf2_section_info::get_bfd_section)
11636 (dwarf2_section_info::get_name)
11637 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11638 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11639 (dwarf2_section_info::read): Now methods.
11640 * dwarf-index-write.c (class debug_names): Update.
11641
2c86cff9
TT
116422020-02-08 Tom Tromey <tom@tromey.com>
11643
11644 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11645 Move to dwarf2/section.h.
11646 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11647 (get_section_bfd_section, get_section_name)
11648 (get_section_file_name, get_section_id, get_section_flags)
11649 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11650 dwarf2/section.c.
11651 * dwarf2/section.h: New file.
11652 * dwarf2/section.c: New file, from dwarf2read.c.
11653 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11654
f4382c45
TT
116552020-02-08 Tom Tromey <tom@tromey.com>
11656
11657 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11658 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11659 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11660 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11661 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11662 * dwarf2/leb.h: New file, from dwarf2read.c.
11663 * dwarf2/leb.c: New file, from dwarf2read.c.
11664 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11665 Remove.
11666 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11667 (COMMON_SFILES): Add dwarf2/leb.c.
11668
01840b7a
JB
116692020-02-08 Joel Brobecker <brobecker@adacore.com>
11670
11671 GDB 9.1 released.
11672
dfcb27e4
IB
116732020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11674
11675 PR gdb/25190:
aac66a4c
SM
11676 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11677 * gdb/remote.c (remote_console_output): Update.
11678 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11679 (ui_file_puts): ...this.
11680 * gdb/ui-file.h (ui_file_puts): Add declaration.
11681 * gdb/utils.c (emit_style_escape): Update.
11682 (flush_wrap_buffer): Update.
11683 (fputs_maybe_filtered): Update.
11684 (fputs_unfiltered): Add function.
dfcb27e4 11685
faa17681
IB
116862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11687
aac66a4c
SM
11688 * gdb/event-loop.c (gdb_wait_for_event): Update.
11689 * gdb/printcmd.c (printf_command): Update.
11690 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11691 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11692 (gdb_os_flush_stderr): Update.
11693 * gdb/remote.c (remote_console_output): Update.
11694 * gdb/ui-file.c (gdb_flush): Rename to...
11695 (ui_file_flush): ...this.
11696 (stderr_file::write): Update.
11697 (stderr_file::puts): Update.
11698 * gdb/ui-file.h (gdb_flush): Rename to...
11699 (ui_file_flush): ...this.
11700 * gdb/utils.c (gdb_flush): Add function.
11701 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11702
5abbbe1d
TT
117032020-02-07 Tom Tromey <tromey@adacore.com>
11704
11705 PR breakpoints/24915:
11706 * source.c (find_and_open_source): Do not check basenames_may_differ.
11707
919adfe8
TT
117082020-02-07 Tom Tromey <tom@tromey.com>
11709
11710 * README: Update gdbserver documentation.
11711 * gdbserver: Move to top level.
11712 * configure.tgt (build_gdbserver): Remove.
11713 * configure.ac: Remove --enable-gdbserver.
11714 * configure: Rebuild.
11715 * Makefile.in (distclean): Don't mention gdbserver.
11716
1d5d29e7
SV
117172020-02-06 Shahab Vahedi <shahab@synopsys.com>
11718
11719 * source-cache.c (source_cache::ensure): Surround
11720 get_plain_source_lines with a try/catch.
11721 (source_cache::get_line_charpos): Get rid of try/catch
11722 and only check for the return value of "ensure".
11723 * tui/tui-source.c (tui_source_window::set_contents):
11724 Simplify "nlines" calculation.
11725
6eb1129c
SV
117262020-02-06 Shahab Vahedi <shahab@synopsys.com>
11727
11728 * MAINTAINERS (Write After Approval): Add myself.
11729
c6a42d11
CB
117302020-02-05 Christian Biesinger <cbiesinger@google.com>
11731
11732 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11733 function call.
11734
c8ecdda6
CB
117352020-02-05 Christian Biesinger <cbiesinger@google.com>
11736
11737 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11738
f6480e70
MR
117392020-02-05 Maciej W. Rozycki <macro@wdc.com>
11740
11741 * nat/riscv-linux-tdesc.h: New file.
11742 * nat/riscv-linux-tdesc.c: New file, taking code from...
11743 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11744 ... here.
11745 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11746 NATDEPFILES.
11747
dcc9fbc6
AB
117482020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11749
11750 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11751 we don't set the fake simulator ptid to the null_ptid.
11752
719546c4
SM
117532020-02-03 Simon Marchi <simon.marchi@efficios.com>
11754
11755 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11756 * gdbthread.h (class thread_info) <resumed>: Likewise.
11757 * infrun.c (resume_1): Likewise.
11758 (proceed): Likewise.
11759 (infrun_thread_stop_requested): Likewise.
11760 (stop_all_threads): Likewise.
11761 (handle_inferior_event): Likewise.
11762 (restart_threads): Likewise.
11763 (finish_step_over): Likewise.
11764 (keep_going_stepped_thread): Likewise.
11765 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11766 (linux_handle_extended_wait): Likewise.
11767 * record-btrace.c (get_thread_current_frame_id): Likewise.
11768 * record-full.c (record_full_wait_1): Likewise.
11769 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11770 * target.c (target_resume): Likewise.
11771 * thread.c (set_running_thread): Likewise.
11772
e409c542
AKS
117732020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11774
11775 * f-valprint.c (f77_print_array_1): Changed datatype of index
11776 variable to LONGEST from int to enable it to contain bound
11777 values correctly.
11778
ee98c0da
MR
117792020-02-03 Maciej W. Rozycki <macro@wdc.com>
11780
11781 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11782 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11783 offsets according to FLEN determined.
11784 (riscv_linux_nat_target::read_description): Determine FLEN
11785 dynamically.
11786 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11787 according to FLEN determined.
11788 (riscv_linux_nat_target::store_registers): Likewise.
11789
aa66aac4
SV
117902020-02-01 Shahab Vahedi <shahab@synopsys.com>
11791
11792 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11793 when reg->group is empty and reggroup is not.
11794
fd9faca8
TT
117952020-01-31 Tom Tromey <tromey@adacore.com>
11796
11797 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11798 Call beneath target's mourn_inferior after unpushing.
11799
42330a68
AB
118002020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11801
11802 PR tui/9765
11803 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11804 have enough lines to fill the screen, still return the lowest
11805 address we found.
11806
7a27a45b
AB
118072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11808
11809 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11810 '-', '<', and '>' commands.
11811
c47f70e2
PA
118122020-01-29 Pedro Alves <palves@redhat.com>
11813 Sergio Durigan Junior <sergiodj@redhat.com>
11814
11815 * infcmd.c (construct_inferior_arguments): Assert that
11816 'argc' is greater than 0.
11817
5133a315
LM
118182020-01-29 Luis Machado <luis.machado@linaro.org>
11819
11820 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11821 (BRK_INSN_MASK): Define to 0xd4200000.
11822 (aarch64_program_breakpoint_here_p): New function.
11823 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11824 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11825 breakpoint.c.
11826 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11827 breakpoint.h
11828 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11829 call gdbarch_program_breakpoint_here_p.
11830 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11831 default_program_breakpoint_here_p, changed return type to bool and
11832 simplified.
11833 * breakpoint.h (program_breakpoint_here): Moved prototype to
11834 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11835 return type to bool.
11836 * gdbarch.c: Regenerate.
11837 * gdbarch.h: Regenerate.
11838 * gdbarch.sh (program_breakpoint_here_p): New method.
11839 * infrun.c (handle_signal_stop): Call
11840 gdbarch_program_breakpoint_here_p.
11841
168f8c6b
TT
118422020-01-26 Tom Tromey <tom@tromey.com>
11843
11844 * ctfread.c (struct ctf_fp_info): Reindent.
11845 (_initialize_ctfread): Remove.
11846
128a391f
TT
118472020-01-26 Tom Tromey <tom@tromey.com>
11848
11849 * psymtab.c (partial_map_expand_apply)
11850 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11851 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11852 (psym_print_stats, psym_expand_symtabs_for_function)
11853 (psym_map_symbol_filenames, psym_map_matching_symbols)
11854 (psym_expand_symtabs_matching)
11855 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11856 (maintenance_check_psymtabs): Use new methods.
11857 * psympriv.h (struct partial_symtab) <readin_p,
11858 get_compunit_symtab>: New methods.
11859 <readin, compunit_symtab>: Remove members.
11860 (struct standard_psymtab): New.
11861 (struct legacy_psymtab): Derive from standard_psymtab.
11862 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11863 standard_psymtab.
11864 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11865
0494dbec
TT
118662020-01-26 Tom Tromey <tom@tromey.com>
11867
11868 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11869 read_dependencies. Add assert.
11870 * psymtab.c (partial_symtab::read_dependencies): New method.
11871 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11872 method.
11873 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11874 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11875 read_dependencies.
11876 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11877 Add assert.
11878
8566b89b
TT
118792020-01-26 Tom Tromey <tom@tromey.com>
11880
11881 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11882 Call expand_psymtab.
11883 (xcoff_read_symtab): Call expand_psymtab.
11884 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11885 legacy_expand_psymtab.
11886 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11887 method.
11888 (struct legacy_psymtab) <expand_psymtab>: Implement.
11889 <legacy_expand_psymtab>: New member.
11890 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11891 (parse_partial_symbols): Set legacy_expand_psymtab.
11892 (psymtab_to_symtab_1): Change argument order. Call
11893 expand_psymtab.
11894 (new_psymtab): Set legacy_expand_psymtab.
11895 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11896 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11897 expand_psymtab.
11898 (dwarf2_psymtab::expand_psymtab): Rename from
11899 psymtab_to_symtab_1. Call expand_psymtab.
11900 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11901 (dbx_end_psymtab): Likewise.
11902 (dbx_psymtab_to_symtab_1): Change argument order. Call
11903 expand_psymtab.
11904 (dbx_read_symtab): Call expand_psymtab.
11905 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11906 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11907 (ctf_psymtab::read_symtab): Call expand_psymtab.
11908
077cbab2
TT
119092020-01-26 Tom Tromey <tom@tromey.com>
11910
11911 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11912 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11913 messages.
11914 * mdebugread.c (mdebug_read_symtab): Remove prints.
11915 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11916 assert.
11917 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11918
891813be
TT
119192020-01-26 Tom Tromey <tom@tromey.com>
11920
11921 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11922 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11923 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11924 legacy_symtab.
11925 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11926 * psymtab.c (psymtab_to_symtab): Call method.
11927 (dump_psymtab): Update.
11928 * psympriv.h (struct partial_symtab): Add virtual destructor.
11929 <read_symtab>: New method.
11930 (struct legacy_symtab): New.
11931 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11932 (struct pst_map) <pst>: Now a legacy_psymtab.
11933 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11934 (new_psymtab): Use legacy_psymtab.
11935 * dwarf2read.h (struct dwarf2_psymtab): New.
11936 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11937 * dwarf2read.c (dwarf2_create_include_psymtab)
11938 (dwarf2_build_include_psymtabs, create_type_unit_group)
11939 (create_partial_symtab, process_psymtab_comp_unit_reader)
11940 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11941 (set_partial_user): Use dwarf2_psymtab.
11942 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11943 (psymtab_to_symtab_1, process_full_comp_unit)
11944 (process_full_type_unit, dwarf2_ranges_read)
11945 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11946 (dwarf_decode_lines): Use dwarf2_psymtab.
11947 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11948 (add_address_entry_worker, write_one_signatured_type)
11949 (recursively_count_psymbols, recursively_write_psymbols)
11950 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11951 (write_debug_names): Likewise.
11952 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11953 <pst>: Now a legacy_psymtab.
11954 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11955 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11956 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11957 * ctfread.c (struct ctf_psymtab): New.
11958 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11959 ctf_psymtab.
11960 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11961 (create_partial_symtab): Return a ctf_psymtab.
11962 (scan_partial_symbols): Update.
11963
c3693a1d
TT
119642020-01-26 Tom Tromey <tom@tromey.com>
11965
11966 * xcoffread.c (xcoff_start_psymtab): Use new.
11967 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11968 renamed from start_psymtab_common.
11969 * psympriv.h (struct partial_symtab): Add new constructor.
11970 (start_psymtab_common): Don't declare.
11971 * mdebugread.c (parse_partial_symbols): Use new.
11972 * dwarf2read.c (create_partial_symtab): Use new.
11973 * dbxread.c (start_psymtab): Use new.
11974 * ctfread.c (create_partial_symtab): Use new.
11975
32caafd0
TT
119762020-01-26 Tom Tromey <tom@tromey.com>
11977
11978 * xcoffread.c (xcoff_end_psymtab): Use new.
11979 * psymtab.c (start_psymtab_common): Use new.
11980 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11981 Update.
11982 * psympriv.h (struct partial_symtab): Add parameters to
11983 constructor. Don't inline.
11984 (allocate_psymtab): Don't declare.
11985 * mdebugread.c (new_psymtab): Use new.
11986 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11987 * dbxread.c (dbx_end_psymtab): Use new.
11988
abaa2f23
TT
119892020-01-26 Tom Tromey <tom@tromey.com>
11990
11991 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11992 allocate_psymtab. Update documentation.
11993 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11994 allocate_psymtab. Do not use new.
11995 (allocate_psymtab): Use new. Update.
11996
6d94535f
TT
119972020-01-26 Tom Tromey <tom@tromey.com>
11998
11999 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12000 * psymtab.c (psym_print_stats): Update.
12001 * psympriv.h (struct partial_symtab) <readin,
12002 psymtabs_addrmap_supported, anonymous>: Now bool.
12003 * mdebugread.c (psymtab_to_symtab_1): Update.
12004 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12005 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12006 (process_full_comp_unit, process_full_type_unit): Update.
12007 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12008 * ctfread.c (psymtab_to_symtab): Update.
12009
6f17252b
TT
120102020-01-26 Tom Tromey <tom@tromey.com>
12011
12012 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12013 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12014 * psymtab.c (psymtab_storage): Delete psymtabs.
12015 (psymtab_storage::allocate_psymtab): Use new.
12016 (psymtab_storage::discard_psymtab): Use delete.
12017 * psympriv.h (struct partial_symtab): Add constructor and
12018 initializers.
12019
f6f1cebc
TT
120202020-01-26 Tom Tromey <tom@tromey.com>
12021
12022 * machoread.c: Do not include psympriv.h.
12023
e47e48f6
PW
120242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12025
12026 * NEWS: Mention the new option and the set/show commands.
12027
a2fedca9
PW
120282020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12029
12030 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12031 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12032 (validate_exec_file): New variables, enums, functions.
12033 (exec_file_locate_attach, print_section_info): Style the filenames.
12034 (_initialize_exec): Install show_exec_file_mismatch_command and
12035 set_exec_file_mismatch_command.
12036 * gdbcore.h (validate_exec_file): Declare.
12037 * infcmd.c (attach_command): Call validate_exec_file.
12038 * remote.c ( remote_target::remote_add_inferior): Likewise.
12039
7ffa82e1
AB
120402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12041
12042 * frame.c (find_frame_sal): Move call to get_next_frame into more
12043 inner scope.
12044 * inline-frame.c (inilne_state) <inline_state>: Update argument
12045 types.
12046 (inilne_state) <skipped_symbol>: Rename to...
12047 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12048 (skip_inline_frames): Build vector of skipped symbols and use this
12049 to reate the inline_state.
12050 (inline_skipped_symbol): Add a comment and some assertions, fetch
12051 skipped symbol from the list.
12052
3d92a3e3
AB
120532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12054
12055 * buildsym.c (lte_is_less_than): Delete.
12056 (buildsym_compunit::end_symtab_with_blockvector): Create local
12057 lambda function to sort line table entries, and use
12058 std::stable_sort instead of std::sort.
12059 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12060 markers when looking for a previous line.
12061
94a72be7
AB
120622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12063
12064 * dwarf2read.c (lnp_state_machine::record_line): Include
12065 end_sequence parameter in debug print out. Record the line if we
12066 are at an end_sequence marker even if it's not the start of a
12067 statement.
12068 * symmisc.c (maintenance_print_one_line_table): Print end of
12069 sequence markers with 'END' not '0'.
12070
53af73bf
PA
120712020-01-24 Pedro Alves <palves@redhat.com>
12072
12073 PR gdb/25410
12074 * thread.c (scoped_restore_current_thread::restore): Use
12075 switch_to_inferior_no_thread.
12076 * exec.c: Include "progspace-and-thread.h".
12077 (add_target_sections, remove_target_sections):
12078 scoped_restore_current_pspace_and_thread instead of
12079 scoped_restore_current_thread.
12080 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12081 and aspace to the inferior before calling clone_program_space.
12082 Remove stale comment.
12083
3050c6f4
CB
120842020-01-24 Christian Biesinger <cbiesinger@google.com>
12085
12086 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12087 (arm_netbsd_nat_target::fetch_registers): ...this.
12088 (arm_nbsd_nat_target::store_registers): Rename to...
12089 (arm_netbsd_nat_target::store_registers): ...this.
12090
73685c7e
CB
120912020-01-24 Christian Biesinger <cbiesinger@google.com>
12092
12093 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12094 register_t.
12095
89203d40
CB
120962020-01-24 Christian Biesinger <cbiesinger@google.com>
12097
12098 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12099 Update comment.
12100 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12101 Likewise.
12102 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12103 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12104 the correct replacement (iterate_over_regset_sections).
12105 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12106 Update comment.
12107
1ba1ac88
AB
121082020-01-24 Graham Markall <graham.markall@embecosm.com>
12109
12110 PR gdb/23718
12111 * gdb/python/python.c (execute_gdb_command): Call
12112 async_enable_stdin in catch block.
12113
f3364a6d
AB
121142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12115
12116 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12117 SWITCH_THRU_ALL_UIS.
12118
733d0a67
AB
121192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12120
12121 PR tui/9765
12122 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12123 comment, add extra parameter, and update to store previous symbol
12124 when appropriate.
12125 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12126 add extra parameter.
12127 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12128 remove unneeded parameter, add try/catch around gdb_print_insn,
12129 rewrite to add items to asm_lines vector.
12130 (tui_find_backward_disassembly_start_address): New function.
12131 (tui_find_disassembly_address): Updated throughout.
12132 (tui_disasm_window::set_contents): Update for changes to
12133 tui_disassemble.
12134 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12135 number of lines to scroll.
12136
b3b3bada
SM
121372020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12138
12139 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12140 (SECT_OFF_DATA): Likewise.
12141 (SECT_OFF_RODATA): Likewise.
12142 (SECT_OFF_TEXT): Likewise.
12143 (SECT_OFF_BSS): Likewise.
12144 (struct objfile) <text_section_offset, data_section_offset>: New
12145 methods.
12146 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12147 objfile::text_section_offset.
12148 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12149 * coffread.c (coff_symtab_read): Likewise.
12150 (enter_linenos): Likewise.
12151 (process_coff_symbol): Likewise.
12152 * ctfread.c (get_objfile_text_range): Likewise.
12153 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12154 Use objfile::data_section_offset.
12155 * dwarf2-frame.c (execute_cfa_program): Use
12156 objfile::text_section_offset.
12157 (dwarf2_frame_find_fde): Likewise.
12158 * dwarf2read.c (create_addrmap_from_index): Likewise.
12159 (create_addrmap_from_aranges): Likewise.
12160 (dw2_find_pc_sect_compunit_symtab): Likewise.
12161 (process_psymtab_comp_unit_reader): Likewise.
12162 (add_partial_symbol): Likewise.
12163 (add_partial_subprogram): Likewise.
12164 (process_full_comp_unit): Likewise.
12165 (read_file_scope): Likewise.
12166 (read_func_scope): Likewise.
12167 (read_lexical_block_scope): Likewise.
12168 (read_call_site_scope): Likewise.
12169 (dwarf2_rnglists_process): Likewise.
12170 (dwarf2_ranges_process): Likewise.
12171 (dwarf2_ranges_read): Likewise.
12172 (dwarf_decode_lines_1): Likewise.
12173 (new_symbol): Likewise.
12174 (dwarf2_fetch_die_loc_sect_off): Likewise.
12175 (dwarf2_per_cu_text_offset): Likewise.
12176 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12177 * hppa-tdep.c (read_unwind_info): Likewise.
12178 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12179 * psympriv.h (struct partial_symtab): Likewise.
12180 * psymtab.c (find_pc_sect_psymtab): Likewise.
12181 * solib-svr4.c (enable_break): Likewise.
12182 * stap-probe.c (relocate_address): Use
12183 objfile::data_section_offset.
12184 * xcoffread.c (enter_line_range): Use
12185 objfile::text_section_offset.
12186 (read_xcoff_symtab): Likewise.
12187
ab53f382
SM
121882020-01-23 Simon Marchi <simon.marchi@efficios.com>
12189
12190 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12191 declaration to narrower scopes.
12192
e7eee665
SM
121932020-01-23 Simon Marchi <simon.marchi@efficios.com>
12194
12195 * darwin-nat.h (struct darwin_exception_msg, enum
12196 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12197 Move up.
12198 (class darwin_nat_target) <wait_1, check_new_threads,
12199 decode_exception_message, decode_message, stop_inferior,
12200 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12201 * darwin-nat.c (darwin_check_new_threads): Rename to...
12202 (darwin_nat_target::check_new_threads): ... this.
12203 (darwin_suspend_inferior_it): Remove.
12204 (darwin_decode_exception_message): Rename to...
12205 (darwin_nat_target::decode_exception_message): ... this.
12206 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12207 (darwin_decode_message): Rename to...
12208 (darwin_nat_target::decode_message): ... this.
12209 (cancel_breakpoint): Rename to...
12210 (darwin_nat_target::cancel_breakpoint): ... this.
12211 (darwin_wait): Rename to...
12212 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12213 instead of iterate_over_inferiors.
12214 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12215 (darwin_stop_inferior): Rename to...
12216 (darwin_nat_target::stop_inferior): ... this.
12217 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12218 (darwin_init_thread_list): Rename to...
12219 (darwin_nat_target::init_thread_list): ... this.
12220 (darwin_ptrace_him): Rename to...
12221 (darwin_nat_target::ptrace_him): ... this.
12222 (darwin_nat_target::create_inferior): Pass lambda function to
12223 fork_inferior.
12224 (darwin_nat_target::detach): Call stop_inferior instead of
12225 darwin_stop_inferior.
12226 * fork-inferior.h (fork_inferior): Change init_trace_fun
12227 parameter to gdb::function_view.
12228 * fork-inferior.c (fork_inferior): Likewise.
12229
c162ed3e
HD
122302020-01-23 Hannes Domani <ssbssa@yahoo.de>
12231
12232 * i386-cygwin-tdep.c (core_process_module_section): Update.
12233 * windows-nat.c (struct lm_info_windows): Add text_offset.
12234 (windows_xfer_shared_libraries): Update.
12235 * windows-tdep.c (windows_xfer_shared_library):
12236 Add text_offset_cached argument.
12237 * windows-tdep.h (windows_xfer_shared_library): Update.
12238
a1237872
SM
122392020-01-21 Simon Marchi <simon.marchi@efficios.com>
12240
12241 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12242
b3ee6dd9
SM
122432020-01-21 Simon Marchi <simon.marchi@efficios.com>
12244
12245 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12246 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12247 replace with range-based for.
12248 (gdbsim_interrupt_inferior): Remove.
12249 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12250 with a range-based for. Inline code from
12251 gdbsim_interrupt_inferior.
12252
f9fac3c8
SM
122532020-01-21 Simon Marchi <simon.marchi@efficios.com>
12254
12255 * infrun.c (proceed): Fix indentation.
12256
f6474de9
TT
122572020-01-21 Tom Tromey <tromey@adacore.com>
12258
12259 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12260 * python/python.c (python_extension_ops): Update.
12261 (gdbpy_colorize): New function.
12262 * python/lib/gdb/__init__.py (colorize): New function.
12263 * extension.h (ext_lang_colorize): Declare.
12264 * extension.c (ext_lang_colorize): New function.
12265 * extension-priv.h (struct extension_language_ops) <colorize>: New
12266 member.
12267 * cli/cli-style.c (_initialize_cli_style): Update help text.
12268
f0c702d4
LM
122692020-01-21 Luis Machado <luis.machado@linaro.org>
12270
12271 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12272 <cond>: Change type to bool.
12273 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12274 (aarch64_displaced_step_cb): Likewise.
12275 (aarch64_displaced_step_tb): Likewise.
12276
1ab139e5
LM
122772020-01-21 Luis Machado <luis.machado@linaro.org>
12278
12279 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12280 output.
12281
0c271889
LM
122822020-01-21 Luis Machado <luis.machado@linaro.org>
12283
12284 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12285 <pc_adjust>: Adjust the documentation.
12286 (aarch64_displaced_step_fixup): Check if PC really moved before
12287 adjusting it.
12288
4d89c1c7
TT
122892020-01-19 Tom Tromey <tom@tromey.com>
12290
12291 * disasm.c (~gdb_disassembler): New destructor.
12292 (gdb_buffered_insn_length): Call disassemble_free_target.
12293 * disasm.h (class gdb_disassembler): Declare destructor. Use
12294 DISABLE_COPY_AND_ASSIGN.
12295
c0ab21c2
TT
122962020-01-19 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12299 (die_reader_func_ftype): Remove.
12300 (cutu_reader): New class.
12301 (dw2_get_file_names_reader): Remove "data" parameter.
12302 (dw2_get_file_names): Use cutu_reader.
12303 (create_debug_type_hash_table): Update.
12304 (read_cutu_die_from_dwo): Update comment.
12305 (lookup_dwo_unit): Add dwo_name parameter.
12306 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12307 die_reader_func_ftype and data parameters.
12308 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12309 Remove die_reader_func_ftype and data parameters.
12310 (~cutu_reader): New; from init_cutu_and_read_dies.
12311 (cutu_reader::cutu_reader): Rename from
12312 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12313 and data parameters.
12314 (init_cutu_and_read_dies_simple): Remove.
12315 (struct process_psymtab_comp_unit_data): Remove.
12316 (process_psymtab_comp_unit_reader): Remove data parameter; add
12317 want_partial_unit and pretend_language parameters.
12318 (process_psymtab_comp_unit): Use cutu_reader.
12319 (build_type_psymtabs_reader): Remove data parameter.
12320 (build_type_psymtabs_1): Use cutu_reader.
12321 (process_skeletonless_type_unit): Likewise.
12322 (load_partial_comp_unit_reader): Remove.
12323 (load_partial_comp_unit): Use cutu_reader.
12324 (load_full_comp_unit_reader): Remove.
12325 (load_full_comp_unit): Use cutu_reader.
12326 (struct create_dwo_cu_data): Remove.
12327 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12328 dwo_unit parameters.
12329 (create_cus_hash_table): Use cutu_reader.
12330 (struct dwarf2_read_addr_index_data): Remove.
12331 (dwarf2_read_addr_index_reader): Remove.
12332 (dwarf2_read_addr_index): Use cutu_reader.
12333 (read_signatured_type_reader): Remove.
12334 (read_signatured_type): Use cutu_reader.
12335
45bbae5c
TT
123362020-01-19 Tom Tromey <tom@tromey.com>
12337
12338 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12339 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12340 (tui_wrefresh): Declare.
12341 * tui/tui-wingeneral.c (suppress_output): New global.
12342 (tui_suppress_output, ~tui_suppress_output): New constructor and
12343 destructor.
12344 (tui_wrefresh): New function.
12345 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12346 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12347 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12348 method.
12349 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12350 tui_wrefresh.
12351 (tui_data_window::no_refresh): New method.
12352 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12353 (tui_reg_command): Use tui_suppress_output
12354 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12355 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12356 method.
12357 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12358
4f13c1c0
TT
123592020-01-19 Tom Tromey <tom@tromey.com>
12360
12361 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12362 Handle case where symtab is null.
12363
fa47e446
SM
123642020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12365
12366 * linux-fork.c (one_fork_p): Simplify.
12367
26f42329
SM
123682020-01-17 Simon Marchi <simon.marchi@efficios.com>
12369
12370 * top.c (struct qt_args): Remove.
12371 (kill_or_detach): Change return type to void, replace `void *`
12372 parameter with a proper one.
12373 (print_inferior_quit_action): Likewise.
12374 (quit_confirm): Use range-based for loop to iterate over inferiors.
12375 (quit_force): Likewise.
12376
a9ac81b1
SM
123772020-01-17 Simon Marchi <simon.marchi@efficios.com>
12378
12379 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12380 `void *` parameter with proper parameters.
12381 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12382 (print_one_inferior): Change return type to void, replace `void *`
12383 parameter with proper parameters.
12384 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12385 inferiors.
12386 (get_other_inferior): Remove.
12387 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12388 inferiors.
12389
788eca49
SM
123902020-01-17 Simon Marchi <simon.marchi@efficios.com>
12391
12392 * mi/mi-interp.c (report_initial_inferior): Remove.
12393 (mi_interp::init): Use range-based for to iterate over inferiors.
12394
d9bc85b6
SM
123952020-01-17 Simon Marchi <simon.marchi@efficios.com>
12396
12397 * python/py-inferior.c (build_inferior_list): Remove.
12398 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12399
40c94099
CB
124002020-01-16 Christian Biesinger <cbiesinger@google.com>
12401
12402 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12403 (btrace_stitch_trace): Likewise.
12404 * charset.c (intermediate_encoding): Likewise (vaild).
12405 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12406 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12407 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12408
e0cdfe3c
HD
124092020-01-16 Hannes Domani <ssbssa@yahoo.de>
12410
12411 * windows-tdep.c (windows_get_tlb_type):
12412 Add rtl_user_process_parameters type.
12413
790f1718 124142020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12415 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12416
12417 PR build/24805
12418 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12419 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12420 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12421 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12422 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12423 (ps_plog): Redeclare exported functions with default visibility.
12424
3112ed97
NA
124252020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12426
12427 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12428 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12429
8dc3273e
SM
124302020-01-15 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * infcmd.c (post_create_inferior): Use get_thread_regcache
12433 instead of get_current_regcache.
12434
ff47f4f0
TT
124352020-01-14 Tom Tromey <tom@tromey.com>
12436
12437 PR symtab/12535:
12438 * python/python.c (gdbpy_decode_line): Treat empty string the same
12439 as no argument.
12440
975f45b7
TT
124412020-01-14 Tom Tromey <tom@tromey.com>
12442
12443 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12444
25e57356
TT
124452020-01-14 Tom Tromey <tom@tromey.com>
12446
12447 * nat/linux-btrace.c: Don't include <config.h>.
12448 * nat/linux-ptrace.c: Don't include <config.h>.
12449 * nat/x86-linux-dregs.c: Don't include <config.h>.
12450
05ea2a05
TT
124512020-01-14 Tom Tromey <tom@tromey.com>
12452
12453 * configure: Rebuild.
12454 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12455
01027315
TT
124562020-01-14 Tom Tromey <tom@tromey.com>
12457
12458 * nat/x86-linux-dregs.c: Include configh.h.
12459 * nat/linux-ptrace.c: Include configh.h.
12460 * nat/linux-btrace.c: Include configh.h.
12461 * defs.h: Include config.h, bfd.h.
12462 * configure.ac: Don't source common.host.
12463 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12464 * configure: Rebuild.
12465 * acinclude.m4: Update path.
12466 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12467 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12468 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12469 (CLIBS): Add LIBSUPPORT.
12470 (CDEPS): Likewise.
12471 (COMMON_SFILES): Remove gdbsupport files.
12472 (HFILES_NO_SRCDIR): Likewise.
12473 (stamp-version): Update path to create-version.sh.
12474 (ALLDEPFILES): Remove gdbsupport files.
12475
b2ceabe8
TT
124762020-01-14 Tom Tromey <tom@tromey.com>
12477
12478 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12479 USE_WIN32API when needed.
12480 * configure.ac (USE_WIN32API): Don't define.
12481 (WIN32LIBS): Use WIN32APILIBS.
12482 * configure: Rebuild.
12483
25c51f71
TT
124842020-01-14 Tom Tromey <tom@tromey.com>
12485
12486 * configure: Rebuild.
12487 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12488
717c684d
BE
124892020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12490
12491 * skip.c (skip_function_command): Make skip w/o arguments use the
12492 name of the inlined function if pc is inside any inlined function.
12493
7da6a5b9
LM
124942020-01-14 Luis Machado <luis.machado@linaro.org>
12495
12496 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12497 * infrun.c (resume_1): Likewise.
12498 (handle_inferior_event): Remove stale comment.
12499 * linux-nat.c (linux_nat_target::resume): Update comments.
12500 (save_stop_reason): Likewise.
12501 (linux_nat_filter_event): Likewise.
12502 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12503
44e4c775
AB
125042020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12505
12506 * elfread.c (record_minimal_symbol): Set section index to 0 for
12507 non-allocatable sections.
12508
18a8505e
AT
12509
125102020-01-13 Ali Tamur <tamur@google.com>
12511
12512 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12513 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12514 to gdb::optional. Update comments.
12515 (dwo_file): Update comments.
12516 (read_attribute): Update API to take an additional out parameter,
12517 need_reprocess. This is used to mark attributes that need other
12518 attributes (e.g. str_offsets_base) for correct computation which may not
12519 have been read yet.
12520 (read_attribute_reprocess): New function declaration.
12521 (read_addr_index): Likewise.
12522 (read_dwo_str_index): Likewise.
12523 (read_stub_str_index): Likewise.
12524 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12525 (lookup_addr_base): New function definition.
12526 (lookup_ranges_base): Likewise.
12527 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12528 lookup_ranges_base.
12529 (init_cutu_and_read_dies): Update comments.
12530 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12531 unit. This is used to inherit parent's str_offsets_base and addr_base.
12532 Update comments.
12533 (init_cutu_and_read_dies_simple): Reflect API changes.
12534 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12535 (create_cus_hash_table): Change API to take parent compile unit.
12536 Reflect API changes.
12537 (open_and_init_dwo_file): Reflect API changes.
12538 (dwarf2_get_pc_bounds): Update comments.
12539 (dwarf2_record_block_ranges): Likewise.
12540 (read_full_die_1): Change implementation to reprocess attributes that
12541 need str_offsets_base and addr_base.
12542 (partial_die_info::read): Likewise.
12543 (read_attribute_reprocess): New function definition.
12544 (read_attribute_value): Change API to take an additional out parameter,
12545 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12546 when a non-dwo compile unit has index based attributes.
12547 (read_attribute): Reflect API changes.
12548 (read_addr_index_1): Reflect API changes. Update comments.
12549 (dwarf2_read_addr_index_data): Reflect API changes.
12550 (dwarf2_read_addr_index): Likewise.
12551 (read_str_index): Change API and implementation. This becomes a helper
12552 to be used by the new string index related methods. Update error
12553 message and comments.
12554 (read_dwo_str_index): New function definition.
12555 (read_stub_str_index): Likewise.
12556 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12557 * symfile.h (dwarf2_debug_sections): Likewise.
12558 * xcoffread.c (dwarf2_debug_sections): Likewise.
12559
0cac9354
SM
125602020-01-13 Simon Marchi <simon.marchi@efficios.com>
12561
12562 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12563 core_reg_sect type to gdb_byte *.
12564 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12565 * cris-tdep.c (fetch_core_registers): Likewise.
12566 * corelow.c (core_target::get_core_register_section): Change
12567 type of `contents` to gdb::byte_vector.
12568
9a6d629c
AB
125692020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12570
12571 * tui/tui-wingeneral.c (box_win): Position the title in the center
12572 of the border.
12573
d8b2f9e3
SM
125742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * corelow.c (core_target::get_core_register_section): Use
12577 std::vector instead of alloca.
12578
bb564c58
SM
125792020-01-13 Simon Marchi <simon.marchi@efficios.com>
12580
12581 * warning.m4: Add -Wmissing-declarations to build_warnings.
12582 * configure: Re-generate.
12583
6b366111
SM
125842020-01-13 Simon Marchi <simon.marchi@efficios.com>
12585
12586 * python/python.c (init__gdb_module): Add declaration.
12587
6c265988
SM
125882020-01-13 Simon Marchi <simon.marchi@efficios.com>
12589
12590 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12591 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12592 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12593 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12594 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12595 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12596 * ada-exp.y (_initialize_ada_exp): Add declaration.
12597 * ada-lang.c (_initialize_ada_language): Add declaration.
12598 * ada-tasks.c (_initialize_tasks): Add declaration.
12599 * agent.c (_initialize_agent): Add declaration.
12600 * aix-thread.c (_initialize_aix_thread): Add declaration.
12601 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12602 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12603 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12604 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12605 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12606 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12607 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12608 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12609 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12610 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12611 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12612 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12613 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12614 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12615 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12616 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12617 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12618 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12619 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12620 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12621 * annotate.c (_initialize_annotate): Add declaration.
12622 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12623 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12624 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12625 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12626 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12627 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12628 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12629 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12630 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12631 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12632 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12633 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12634 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12635 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12636 * auto-load.c (_initialize_auto_load): Add declaration.
12637 * auxv.c (_initialize_auxv): Add declaration.
12638 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12639 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12640 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12641 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12642 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12643 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12644 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12645 * breakpoint.c (_initialize_breakpoint): Add declaration.
12646 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12647 * btrace.c (_initialize_btrace): Add declaration.
12648 * charset.c (_initialize_charset): Add declaration.
12649 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12650 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12651 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12652 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12653 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12654 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12655 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12656 * coffread.c (_initialize_coffread): Add declaration.
12657 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12658 * compile/compile.c (_initialize_compile): Add declaration.
12659 * complaints.c (_initialize_complaints): Add declaration.
12660 * completer.c (_initialize_completer): Add declaration.
12661 * copying.c (_initialize_copying): Add declaration.
12662 * corefile.c (_initialize_core): Add declaration.
12663 * corelow.c (_initialize_corelow): Add declaration.
12664 * cp-abi.c (_initialize_cp_abi): Add declaration.
12665 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12666 * cp-support.c (_initialize_cp_support): Add declaration.
12667 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12668 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12669 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12670 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12671 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12672 * ctfread.c (_initialize_ctfread): Add declaration.
12673 * d-lang.c (_initialize_d_language): Add declaration.
12674 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12675 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12676 * dbxread.c (_initialize_dbxread): Add declaration.
12677 * dcache.c (_initialize_dcache): Add declaration.
12678 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12679 * disasm.c (_initialize_disasm): Add declaration.
12680 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12681 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12682 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12683 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12684 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12685 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12686 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12687 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12688 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12689 * elfread.c (_initialize_elfread): Add declaration.
12690 * exec.c (_initialize_exec): Add declaration.
12691 * extension.c (_initialize_extension): Add declaration.
12692 * f-lang.c (_initialize_f_language): Add declaration.
12693 * f-valprint.c (_initialize_f_valprint): Add declaration.
12694 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12695 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12696 * filesystem.c (_initialize_filesystem): Add declaration.
12697 * findcmd.c (_initialize_mem_search): Add declaration.
12698 * findvar.c (_initialize_findvar): Add declaration.
12699 * fork-child.c (_initialize_fork_child): Add declaration.
12700 * frame-base.c (_initialize_frame_base): Add declaration.
12701 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12702 * frame.c (_initialize_frame): Add declaration.
12703 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12704 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12705 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12706 * gcore.c (_initialize_gcore): Add declaration.
12707 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12708 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12709 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12710 * gdbarch.c (_initialize_gdbarch): Add declaration.
12711 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12712 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12713 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12714 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12715 * go-lang.c (_initialize_go_language): Add declaration.
12716 * go32-nat.c (_initialize_go32_nat): Add declaration.
12717 * guile/guile.c (_initialize_guile): Add declaration.
12718 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12719 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12720 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12721 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12722 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12723 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12724 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12725 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12726 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12727 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12728 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12729 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12730 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12731 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12732 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12733 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12734 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12735 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12736 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12737 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12738 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12739 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12740 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12741 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12742 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12743 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12744 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12745 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12746 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12747 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12748 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12749 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12750 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12751 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12752 * infcall.c (_initialize_infcall): Add declaration.
12753 * infcmd.c (_initialize_infcmd): Add declaration.
12754 * inflow.c (_initialize_inflow): Add declaration.
12755 * infrun.c (_initialize_infrun): Add declaration.
12756 * interps.c (_initialize_interpreter): Add declaration.
12757 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12758 * jit.c (_initialize_jit): Add declaration.
12759 * language.c (_initialize_language): Add declaration.
12760 * linux-fork.c (_initialize_linux_fork): Add declaration.
12761 * linux-nat.c (_initialize_linux_nat): Add declaration.
12762 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12763 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12764 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12765 * m2-lang.c (_initialize_m2_language): Add declaration.
12766 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12767 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12768 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12769 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12770 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12771 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12772 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12773 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12774 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12775 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12776 * machoread.c (_initialize_machoread): Add declaration.
12777 * macrocmd.c (_initialize_macrocmd): Add declaration.
12778 * macroscope.c (_initialize_macroscope): Add declaration.
12779 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12780 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12781 * maint.c (_initialize_maint_cmds): Add declaration.
12782 * mdebugread.c (_initialize_mdebugread): Add declaration.
12783 * memattr.c (_initialize_mem): Add declaration.
12784 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12785 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12786 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12787 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12788 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12789 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12790 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12791 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12792 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12793 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12794 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12795 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12796 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12797 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12798 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12799 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12800 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12801 * mipsread.c (_initialize_mipsread): Add declaration.
12802 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12803 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12804 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12805 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12806 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12807 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12808 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12809 * nto-procfs.c (_initialize_procfs): Add declaration.
12810 * objc-lang.c (_initialize_objc_language): Add declaration.
12811 * observable.c (_initialize_observer): Add declaration.
12812 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12813 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12814 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12815 * osabi.c (_initialize_gdb_osabi): Add declaration.
12816 * osdata.c (_initialize_osdata): Add declaration.
12817 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12818 * parse.c (_initialize_parse): Add declaration.
12819 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12820 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12821 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12822 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12823 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12824 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12825 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12826 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12827 * printcmd.c (_initialize_printcmd): Add declaration.
12828 * probe.c (_initialize_probe): Add declaration.
12829 * proc-api.c (_initialize_proc_api): Add declaration.
12830 * proc-events.c (_initialize_proc_events): Add declaration.
12831 * proc-service.c (_initialize_proc_service): Add declaration.
12832 * procfs.c (_initialize_procfs): Add declaration.
12833 * producer.c (_initialize_producer): Add declaration.
12834 * psymtab.c (_initialize_psymtab): Add declaration.
12835 * python/python.c (_initialize_python): Add declaration.
12836 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12837 * record-btrace.c (_initialize_record_btrace): Add declaration.
12838 * record-full.c (_initialize_record_full): Add declaration.
12839 * record.c (_initialize_record): Add declaration.
12840 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12841 * regcache.c (_initialize_regcache): Add declaration.
12842 * reggroups.c (_initialize_reggroup): Add declaration.
12843 * remote-notif.c (_initialize_notif): Add declaration.
12844 * remote-sim.c (_initialize_remote_sim): Add declaration.
12845 * remote.c (_initialize_remote): Add declaration.
12846 * reverse.c (_initialize_reverse): Add declaration.
12847 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12848 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12849 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12850 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12851 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12852 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12853 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12854 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12855 Add declaration.
12856 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12857 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12858 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12859 * rust-exp.y (_initialize_rust_exp): Add declaration.
12860 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12861 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12862 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12863 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12864 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12865 * score-tdep.c (_initialize_score_tdep): Add declaration.
12866 * ser-go32.c (_initialize_ser_dos): Add declaration.
12867 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12868 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12869 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12870 * ser-uds.c (_initialize_ser_socket): Add declaration.
12871 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12872 * serial.c (_initialize_serial): Add declaration.
12873 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12874 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12875 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12876 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12877 * skip.c (_initialize_step_skip): Add declaration.
12878 * sol-thread.c (_initialize_sol_thread): Add declaration.
12879 * solib-aix.c (_initialize_solib_aix): Add declaration.
12880 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12881 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12882 * solib-frv.c (_initialize_frv_solib): Add declaration.
12883 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12884 * solib-target.c (_initialize_solib_target): Add declaration.
12885 * solib.c (_initialize_solib): Add declaration.
12886 * source-cache.c (_initialize_source_cache): Add declaration.
12887 * source.c (_initialize_source): Add declaration.
12888 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12889 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12890 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12891 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12892 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12893 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12894 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12895 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12896 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12897 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12898 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12899 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12900 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12901 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12902 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12903 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12904 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12905 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12906 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12907 * stabsread.c (_initialize_stabsread): Add declaration.
12908 * stack.c (_initialize_stack): Add declaration.
12909 * stap-probe.c (_initialize_stap_probe): Add declaration.
12910 * std-regs.c (_initialize_frame_reg): Add declaration.
12911 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12912 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12913 * symfile.c (_initialize_symfile): Add declaration.
12914 * symmisc.c (_initialize_symmisc): Add declaration.
12915 * symtab.c (_initialize_symtab): Add declaration.
12916 * target.c (_initialize_target): Add declaration.
12917 * target-connection.c (_initialize_target_connection): Add
12918 declaration.
12919 * target-dcache.c (_initialize_target_dcache): Add declaration.
12920 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12921 * thread.c (_initialize_thread): Add declaration.
12922 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12923 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12924 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12925 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12926 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12927 * tracectf.c (_initialize_ctf): Add declaration.
12928 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12929 * tracefile.c (_initialize_tracefile): Add declaration.
12930 * tracepoint.c (_initialize_tracepoint): Add declaration.
12931 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12932 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12933 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12934 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12935 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12936 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12937 * tui/tui.c (_initialize_tui): Add declaration.
12938 * typeprint.c (_initialize_typeprint): Add declaration.
12939 * ui-style.c (_initialize_ui_style): Add declaration.
12940 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12941 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12942 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12943 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12944 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12945 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12946 * unittests/filtered_iterator-selftests.c
12947 (_initialize_filtered_iterator_selftests): Add declaration.
12948 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12949 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12950 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12951 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12952 * unittests/main-thread-selftests.c
12953 (_initialize_main_thread_selftests): Add declaration.
12954 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12955 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12956 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12957 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12958 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12959 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12960 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12961 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12962 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12963 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12964 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12965 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12966 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12967 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12968 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12969 declaration.
12970 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12971 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12972 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12973 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12974 * user-regs.c (_initialize_user_regs): Add declaration.
12975 * utils.c (_initialize_utils): Add declaration.
12976 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12977 * valops.c (_initialize_valops): Add declaration.
12978 * valprint.c (_initialize_valprint): Add declaration.
12979 * value.c (_initialize_values): Add declaration.
12980 * varobj.c (_initialize_varobj): Add declaration.
12981 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12982 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12983 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12984 * windows-nat.c (_initialize_windows_nat): Add declaration.
12985 (_initialize_check_for_gdb_ini): Add declaration.
12986 (_initialize_loadable): Add declaration.
12987 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12988 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12989 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12990 * xcoffread.c (_initialize_xcoffread): Add declaration.
12991 * xml-support.c (_initialize_xml_support): Add declaration.
12992 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12993 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12994 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12995 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12996
e2de1eec
SM
129972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12998
12999 * regformats/regdat.sh: Generate declaration for init function.
13000
e0037b4c
SM
130012020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13002
13003 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13004 up.
13005 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13006 close_one_inferior>: New methods.
13007 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13008 pass down target to find_inferior_pid.
13009 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13010 Pass down target to find_inferior_ptid.
13011 (gdbsim_target::create_inferior): Pass down target to
13012 add_thread_silent.
13013 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13014 target down to find_inferior_ptid and switch_to_thread.
13015 (gdbsim_target::close): Update to call close_one_inferior.
13016 (struct resume_data): Remove.
13017 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13018 directly, rather than through a void pointer.
13019 (gdbsim_target::resume): Update to call resume_one_inferior.
13020
58920b5b
SM
130212020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13022
13023 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13024
4ec89149
PA
130252020-01-12 Pedro Alves <palves@redhat.com>
13026
13027 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13028 directly for the current inferior instead of
13029 discard_all_inferiors.
13030 (discard_all_inferiors): Delete.
13031
7c392d1d
TT
130322020-01-11 Tom Tromey <tom@tromey.com>
13033
13034 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13035 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13036 deprecated_safe_get_selected_frame.
13037
d9ebdab7
TBA
130382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13039
13040 * inferior.c (print_inferior): Switch inferior before printing it.
13041
f3c469b9
PA
130422020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13043 Pedro Alves <palves@redhat.com>
13044
13045 * progspace-and-thread.c (switch_to_program_space_and_thread):
13046 Assert there's an inferior for PSPACE. Use
13047 switch_to_inferior_no_thread to switch the inferior too.
13048 * progspace.c (program_space::~program_space): Call
13049 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13050 (program_space::free_all_objfiles): Don't call clear_symtab_users
13051 here.
13052 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13053
65c574f6
PA
130542020-01-10 Pedro Alves <palves@redhat.com>
13055
13056 * NEWS: Mention multi-target debugging, "info connections", and
13057 "add-inferior -no-connection".
13058
2f4fcf00
PA
130592020-01-10 Pedro Alves <palves@redhat.com>
13060
13061 * infrun.c: Include "target-connection.h".
13062 (check_multi_target_resumption): New.
13063 (proceed): Call it.
13064 * target-connection.c (make_target_connection_string): Make
13065 extern.
13066 * target-connection.h (make_target_connection_string): Declare.
13067
121b3efd
PA
130682020-01-10 Pedro Alves <palves@redhat.com>
13069
13070 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13071 * inferior.c (uiout_field_connection): New function.
13072 (print_inferior): Add new "connection-id" column.
13073 (add_inferior_command): Show connection number/string of added
13074 inferior.
13075 * process-stratum-target.h
13076 (process_stratum_target::connection_string): New virtual method.
13077 (process_stratum_target::connection_number): New field.
13078 * remote.c (remote_target::connection_string): New override.
13079 * target-connection.c: New file.
13080 * target-connection.h: New file.
13081 * target.c (decref_target): Remove process_stratum targets from
13082 the connection list.
13083 (target_stack::push): Add process_stratum targets to the
13084 connection list.
13085
4f837581
PA
130862020-01-10 Pedro Alves <palves@redhat.com>
13087
13088 Revert:
13089 2016-04-12 Pedro Alves <palves@redhat.com>
13090 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13091 Remove references to name.
13092 * serial.h (struct serial) <name>: Delete.
13093
f4ec508e
PA
130942020-01-10 Pedro Alves <palves@redhat.com>
13095
13096 * gdbarch-selftests.c (register_to_value_test): Remove "target
13097 already pushed" check.
13098
5b6d1e4f
PA
130992020-01-10 Pedro Alves <palves@redhat.com>
13100 John Baldwin <jhb@FreeBSD.org>
13101
13102 * aarch64-linux-nat.c
13103 (aarch64_linux_nat_target::thread_architecture): Adjust.
13104 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13105 (task_command_1): Likewise.
13106 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13107 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13108 (aix_thread_target::store_registers)
13109 (aix_thread_target::thread_alive): Adjust.
13110 * amd64-fbsd-tdep.c: Include "inferior.h".
13111 (amd64fbsd_get_thread_local_address): Pass down target.
13112 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13113 thread's gdbarch instead of target_gdbarch.
13114 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13115 get_last_target_status.
13116 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13117 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13118 inferiors.
13119 (update_inserted_breakpoint_locations): Skip if inferiors with no
13120 execution.
13121 (update_global_location_list): When handling moribund locations,
13122 find representative inferior for location's pspace, and use thread
13123 count of its process_stratum target.
13124 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13125 * bsd-uthread.c (bsd_uthread_target::wait): Use
13126 as_process_stratum_target and adjust thread_change_ptid and
13127 add_thread calls.
13128 (bsd_uthread_target::update_thread_list): Use
13129 as_process_stratum_target and adjust find_thread_ptid,
13130 thread_change_ptid and add_thread calls.
13131 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13132 find_thread_ptid call.
13133 * corelow.c (add_to_thread_list): Adjust add_thread call.
13134 (core_target_open): Adjust add_thread_silent and thread_count
13135 calls.
13136 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13137 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13138 * event-top.c (async_disconnect): Pop targets from all inferiors.
13139 * exec.c (add_target_sections): Push exec target on all inferiors
13140 sharing the program space.
13141 (remove_target_sections): Remove the exec target from all
13142 inferiors sharing the program space.
13143 (exec_on_vfork): New.
13144 * exec.h (exec_on_vfork): Declare.
13145 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13146 Pass it down.
13147 (fbsd_nat_target::update_thread_list): Adjust.
13148 (fbsd_nat_target::resume): Adjust.
13149 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13150 down.
13151 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13152 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13153 get_thread_arch_regcache call.
13154 * fork-child.c (gdb_startup_inferior): Pass target down to
13155 startup_inferior and set_executing.
13156 * gdbthread.h (struct process_stratum_target): Forward declare.
13157 (add_thread, add_thread_silent, add_thread_with_info)
13158 (in_thread_list): Add process_stratum_target parameter.
13159 (find_thread_ptid(inferior*, ptid_t)): New overload.
13160 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13161 parameter.
13162 (all_threads()): Delete overload.
13163 (all_threads, all_non_exited_threads): Add process_stratum_target
13164 parameter.
13165 (all_threads_safe): Use brace initialization.
13166 (thread_count): Add process_stratum_target parameter.
13167 (set_resumed, set_running, set_stop_requested, set_executing)
13168 (threads_are_executing, finish_thread_state): Add
13169 process_stratum_target parameter.
13170 (switch_to_thread): Use is_current_thread.
13171 * i386-fbsd-tdep.c: Include "inferior.h".
13172 (i386fbsd_get_thread_local_address): Pass down target.
13173 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13174 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13175 have_inferiors check.
13176 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13177 (inf_ptrace_target::attach): Adjust.
13178 * infcall.c (run_inferior_call): Adjust.
13179 * infcmd.c (run_command_1): Pass target to
13180 scoped_finish_thread_state.
13181 (proceed_thread_callback): Skip inferiors with no execution.
13182 (continue_command): Rename 'all_threads' local to avoid hiding
13183 'all_threads' function. Adjust get_last_target_status call.
13184 (prepare_one_step): Adjust set_running call.
13185 (signal_command): Use user_visible_resume_target. Compare thread
13186 pointers instead of inferior_ptid.
13187 (info_program_command): Adjust to pass down target.
13188 (attach_command): Mark target's 'thread_executing' flag.
13189 (stop_current_target_threads_ns): New, factored out from ...
13190 (interrupt_target_1): ... this. Switch inferior before making
13191 target calls.
13192 * inferior-iter.h
13193 (struct all_inferiors_iterator, struct all_inferiors_range)
13194 (struct all_inferiors_safe_range)
13195 (struct all_non_exited_inferiors_range): Filter on
13196 process_stratum_target too. Remove explicit.
13197 * inferior.c (inferior::inferior): Push dummy target on target
13198 stack.
13199 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13200 Add process_stratum_target parameter, and pass it down.
13201 (have_live_inferiors): Adjust.
13202 (switch_to_inferior_and_push_target): New.
13203 (add_inferior_command, clone_inferior_command): Handle
13204 "-no-connection" parameter. Use
13205 switch_to_inferior_and_push_target.
13206 (_initialize_inferior): Mention "-no-connection" option in
13207 the help of "add-inferior" and "clone-inferior" commands.
13208 * inferior.h: Include "process-stratum-target.h".
13209 (interrupt_target_1): Use bool.
13210 (struct inferior) <push_target, unpush_target, target_is_pushed,
13211 find_target_beneath, top_target, process_target, target_at,
13212 m_stack>: New.
13213 (discard_all_inferiors): Delete.
13214 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13215 (all_inferiors, all_non_exited_inferiors): Add
13216 process_stratum_target parameter.
13217 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13218 (target_last_proc_target): New global.
13219 (follow_fork_inferior): Push target on new inferior. Pass target
13220 to add_thread_silent. Call exec_on_vfork. Handle target's
13221 reference count.
13222 (follow_fork): Adjust get_last_target_status call. Also consider
13223 target.
13224 (follow_exec): Push target on new inferior.
13225 (struct execution_control_state) <target>: New field.
13226 (user_visible_resume_target): New.
13227 (do_target_resume): Call target_async.
13228 (resume_1): Set target's threads_executing flag. Consider resume
13229 target.
13230 (commit_resume_all_targets): New.
13231 (proceed): Also consider resume target. Skip threads of inferiors
13232 with no execution. Commit resumtion in all targets.
13233 (start_remote): Pass current inferior to wait_for_inferior.
13234 (infrun_thread_stop_requested): Consider target as well. Pass
13235 thread_info pointer to clear_inline_frame_state instead of ptid.
13236 (infrun_thread_thread_exit): Consider target as well.
13237 (random_pending_event_thread): New inferior parameter. Use it.
13238 (do_target_wait): Rename to ...
13239 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13240 down.
13241 (threads_are_resumed_pending_p, do_target_wait): New.
13242 (prepare_for_detach): Adjust calls.
13243 (wait_for_inferior): New inferior parameter. Handle it. Use
13244 do_target_wait_1 instead of do_target_wait.
13245 (fetch_inferior_event): Adjust. Switch to representative
13246 inferior. Pass target down.
13247 (set_last_target_status): Add process_stratum_target parameter.
13248 Save target in global.
13249 (get_last_target_status): Add process_stratum_target parameter and
13250 handle it.
13251 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13252 (context_switch): Check inferior_ptid == null_ptid before calling
13253 inferior_thread().
13254 (get_inferior_stop_soon): Pass down target.
13255 (wait_one): Rename to ...
13256 (poll_one_curr_target): ... this.
13257 (struct wait_one_event): New.
13258 (wait_one): New.
13259 (stop_all_threads): Adjust.
13260 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13261 event's target.
13262 (switch_back_to_stepped_thread): Also consider target.
13263 (print_stop_event): Update.
13264 (normal_stop): Update. Also consider the resume target.
13265 * infrun.h (wait_for_inferior): Remove declaration.
13266 (user_visible_resume_target): New declaration.
13267 (get_last_target_status, set_last_target_status): New
13268 process_stratum_target parameter.
13269 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13270 process_stratum_target parameter, and use it.
13271 (clear_inline_frame_state (thread_info*)): New.
13272 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13273 process_stratum_target parameter.
13274 (clear_inline_frame_state (thread_info*)): Declare.
13275 * linux-fork.c (delete_checkpoint_command): Pass target down to
13276 find_thread_ptid.
13277 (checkpoint_command): Adjust.
13278 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13279 instead of just tweaking inferior_ptid.
13280 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13281 (exit_lwp): Pass target down to find_thread_ptid.
13282 (attach_proc_task_lwp_callback): Pass target down to
13283 add_thread/set_running/set_executing.
13284 (linux_nat_target::attach): Pass target down to
13285 thread_change_ptid.
13286 (get_detach_signal): Pass target down to find_thread_ptid.
13287 Consider last target status's target.
13288 (linux_resume_one_lwp_throw, resume_lwp)
13289 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13290 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13291 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13292 (linux_nat_target::async_wait_fd): New.
13293 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13294 target down.
13295 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13296 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13297 * linux-thread-db.c (struct thread_db_info::process_target): New
13298 field.
13299 (add_thread_db_info): Save target.
13300 (get_thread_db_info): New process_stratum_target parameter. Also
13301 match target.
13302 (delete_thread_db_info): New process_stratum_target parameter.
13303 Also match target.
13304 (thread_from_lwp): Adjust to pass down target.
13305 (thread_db_notice_clone): Pass down target.
13306 (check_thread_db_callback): Pass down target.
13307 (try_thread_db_load_1): Always push the thread_db target.
13308 (try_thread_db_load, record_thread): Pass target down.
13309 (thread_db_target::detach): Pass target down. Always unpush the
13310 thread_db target.
13311 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13312 target down. Always unpush the thread_db target.
13313 (find_new_threads_callback, thread_db_find_new_threads_2)
13314 (thread_db_target::update_thread_list): Pass target down.
13315 (thread_db_target::pid_to_str): Pass current inferior down.
13316 (thread_db_target::get_thread_local_address): Pass target down.
13317 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13318 target down.
13319 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13320 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13321 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13322 (procfs_init_inferior): Rename to ...
13323 (procfs_target::procfs_init_inferior): ... this and adjust.
13324 (procfs_target::create_inferior, procfs_notice_thread)
13325 (procfs_do_thread_registers): Adjust.
13326 * ppc-fbsd-tdep.c: Include "inferior.h".
13327 (ppcfbsd_get_thread_local_address): Pass down target.
13328 * proc-service.c (ps_xfer_memory): Switch current inferior and
13329 program space as well.
13330 (get_ps_regcache): Pass target down.
13331 * process-stratum-target.c
13332 (process_stratum_target::thread_address_space)
13333 (process_stratum_target::thread_architecture): Pass target down.
13334 * process-stratum-target.h
13335 (process_stratum_target::threads_executing): New field.
13336 (as_process_stratum_target): New.
13337 * ravenscar-thread.c
13338 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13339 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13340 down.
13341 * record-btrace.c (record_btrace_target::info_record): Adjust.
13342 (record_btrace_target::record_method)
13343 (record_btrace_target::record_is_replaying)
13344 (record_btrace_target::fetch_registers)
13345 (get_thread_current_frame_id, record_btrace_target::resume)
13346 (record_btrace_target::wait, record_btrace_target::stop): Pass
13347 target down.
13348 * record-full.c (record_full_wait_1): Switch to event thread.
13349 Pass target down.
13350 * regcache.c (regcache::regcache)
13351 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13352 process_stratum_target parameter and handle it.
13353 (current_thread_target): New global.
13354 (get_thread_regcache): Add process_stratum_target parameter and
13355 handle it. Switch inferior before calling target method.
13356 (get_thread_regcache): Pass target down.
13357 (get_thread_regcache_for_ptid): Pass target down.
13358 (registers_changed_ptid): Add process_stratum_target parameter and
13359 handle it.
13360 (registers_changed_thread, registers_changed): Pass target down.
13361 (test_get_thread_arch_aspace_regcache): New.
13362 (current_regcache_test): Define a couple local test_target_ops
13363 instances and use them for testing.
13364 (readwrite_regcache): Pass process_stratum_target parameter.
13365 (cooked_read_test, cooked_write_test): Pass mock_target down.
13366 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13367 (get_thread_arch_aspace_regcache): Add process_stratum_target
13368 parameter.
13369 (regcache::target): New method.
13370 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13371 (regcache::registers_changed_ptid): Add process_stratum_target
13372 parameter.
13373 (regcache::m_target): New field.
13374 (registers_changed_ptid): Add process_stratum_target parameter.
13375 * remote.c (remote_state::supports_vCont_probed): New field.
13376 (remote_target::async_wait_fd): New method.
13377 (remote_unpush_and_throw): Add remote_target parameter.
13378 (get_current_remote_target): Adjust.
13379 (remote_target::remote_add_inferior): Push target.
13380 (remote_target::remote_add_thread)
13381 (remote_target::remote_notice_new_inferior)
13382 (get_remote_thread_info): Pass target down.
13383 (remote_target::update_thread_list): Skip threads of inferiors
13384 bound to other targets. (remote_target::close): Don't discard
13385 inferiors. (remote_target::add_current_inferior_and_thread)
13386 (remote_target::process_initial_stop_replies)
13387 (remote_target::start_remote)
13388 (remote_target::remote_serial_quit_handler): Pass down target.
13389 (remote_target::remote_unpush_target): New remote_target
13390 parameter. Unpush the target from all inferiors.
13391 (remote_target::remote_unpush_and_throw): New remote_target
13392 parameter. Pass it down.
13393 (remote_target::open_1): Check whether the current inferior has
13394 execution instead of checking whether any inferior is live. Pass
13395 target down.
13396 (remote_target::remote_detach_1): Pass down target. Use
13397 remote_unpush_target.
13398 (extended_remote_target::attach): Pass down target.
13399 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13400 (remote_target::append_resumption): Pass down target.
13401 (remote_target::append_pending_thread_resumptions)
13402 (remote_target::remote_resume_with_hc, remote_target::resume)
13403 (remote_target::commit_resume): Pass down target.
13404 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13405 (remote_target::interrupt_query)
13406 (remote_target::remove_new_fork_children)
13407 (remote_target::check_pending_events_prevent_wildcard_vcont)
13408 (remote_target::remote_parse_stop_reply)
13409 (remote_target::process_stop_reply): Pass down target.
13410 (first_remote_resumed_thread): New remote_target parameter. Pass
13411 it down.
13412 (remote_target::wait_as): Pass down target.
13413 (unpush_and_perror): New remote_target parameter. Pass it down.
13414 (remote_target::readchar, remote_target::remote_serial_write)
13415 (remote_target::getpkt_or_notif_sane_1)
13416 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13417 down target.
13418 (remote_target::mourn_inferior): Pass down target. Use
13419 remote_unpush_target.
13420 (remote_target::core_of_thread)
13421 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13422 (remote_target::pid_to_exec_file)
13423 (remote_target::thread_handle_to_thread_info): Pass down target.
13424 (remote_target::async_wait_fd): New.
13425 * riscv-fbsd-tdep.c: Include "inferior.h".
13426 (riscv_fbsd_get_thread_local_address): Pass down target.
13427 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13428 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13429 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13430 Adjust.
13431 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13432 * solib-svr4.c (enable_break): Pass down target.
13433 * spu-multiarch.c (parse_spufs_run): Pass down target.
13434 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13435 * target-delegates.c: Regenerate.
13436 * target.c (g_target_stack): Delete.
13437 (current_top_target): Return the current inferior's top target.
13438 (target_has_execution_1): Refer to the passed-in inferior's top
13439 target.
13440 (target_supports_terminal_ours): Check whether the initial
13441 inferior was already created.
13442 (decref_target): New.
13443 (target_stack::push): Incref/decref the target.
13444 (push_target, push_target, unpush_target): Adjust.
13445 (target_stack::unpush): Defref target.
13446 (target_is_pushed): Return bool. Adjust to refer to the current
13447 inferior's target stack.
13448 (dispose_inferior): Delete, and inline parts ...
13449 (target_preopen): ... here. Only dispose of the current inferior.
13450 (target_detach): Hold strong target reference while detaching.
13451 Pass target down.
13452 (target_thread_name): Add assertion.
13453 (target_resume): Pass down target.
13454 (target_ops::beneath, find_target_at): Adjust to refer to the
13455 current inferior's target stack.
13456 (get_dummy_target): New.
13457 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13458 has a thread running.
13459 (initialize_targets): Rename to ...
13460 (_initialize_target): ... this.
13461 * target.h: Include "gdbsupport/refcounted-object.h".
13462 (struct target_ops): Inherit refcounted_object.
13463 (target_ops::shortname, target_ops::longname): Make const.
13464 (target_ops::async_wait_fd): New method.
13465 (decref_target): Declare.
13466 (struct target_ops_ref_policy): New.
13467 (target_ops_ref): New typedef.
13468 (get_dummy_target): Declare function.
13469 (target_is_pushed): Return bool.
13470 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13471 (all_matching_threads_iterator::all_matching_threads_iterator):
13472 Handle filter target.
13473 * thread-iter.h (struct all_matching_threads_iterator, struct
13474 all_matching_threads_range, class all_non_exited_threads_range):
13475 Filter by target too. Remove explicit.
13476 * thread.c (threads_executing): Delete.
13477 (inferior_thread): Pass down current inferior.
13478 (clear_thread_inferior_resources): Pass down thread pointer
13479 instead of ptid_t.
13480 (add_thread_silent, add_thread_with_info, add_thread): Add
13481 process_stratum_target parameter. Use it for thread and inferior
13482 searches.
13483 (is_current_thread): New.
13484 (thread_info::deletable): Use it.
13485 (find_thread_ptid, thread_count, in_thread_list)
13486 (thread_change_ptid, set_resumed, set_running): New
13487 process_stratum_target parameter. Pass it down.
13488 (set_executing): New process_stratum_target parameter. Pass it
13489 down. Adjust reference to 'threads_executing'.
13490 (threads_are_executing): New process_stratum_target parameter.
13491 Adjust reference to 'threads_executing'.
13492 (set_stop_requested, finish_thread_state): New
13493 process_stratum_target parameter. Pass it down.
13494 (switch_to_thread): Also match inferior.
13495 (switch_to_thread): New process_stratum_target parameter. Pass it
13496 down.
13497 (update_threads_executing): Reimplement.
13498 * top.c (quit_force): Pop targets from all inferior.
13499 (gdb_init): Don't call initialize_targets.
13500 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13501 Declare.
13502 (windows_add_thread, windows_delete_thread): Adjust.
13503 (get_windows_debug_event): Rename to ...
13504 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13505 * tracefile-tfile.c (tfile_target_open): Pass down target.
13506 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13507 Forward declare.
13508 (switch_to_thread): Add process_stratum_target parameter.
13509 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13510 parameter. Use it.
13511 (mi_on_resume): Pass target down.
13512 * nat/fork-inferior.c (startup_inferior): Add
13513 process_stratum_target parameter. Pass it down.
13514 * nat/fork-inferior.h (startup_inferior): Add
13515 process_stratum_target parameter.
13516 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13517
75c6c844
PA
135182020-01-10 Pedro Alves <palves@redhat.com>
13519
13520 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13521 directly. Instead find the first thread in the thread list and
13522 use switch_to_thread.
13523
78f2c40a
PA
135242020-01-10 Pedro Alves <palves@redhat.com>
13525
13526 * remote.c (remote_target::remote_add_inferior): Don't bind a
13527 process to the current inferior if the current inferior is already
13528 bound to a process.
13529
e7af6c70
TBA
135302020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13531 Pedro Alves <palves@redhat.com>
13532
13533 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13534 If no process is specified, return null_ptid instead of
13535 inferior_ptid.
13536 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13537 TARGET_WAITKIND_SIGNALLED with no pid.
13538
31ba933e
PA
135392020-01-10 Pedro Alves <palves@redhat.com>
13540
13541 * remote.c (first_remote_resumed_thread): New.
13542 (remote_target::wait_as): Use it as default event_ptid instead of
13543 inferior_ptid.
13544
735fc2ca
PA
135452020-01-10 Pedro Alves <palves@redhat.com>
13546
13547 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13548
c17e02e1
PA
135492020-01-10 Pedro Alves <palves@redhat.com>
13550
13551 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13552 not -1.
13553
ab1ddbcf
PA
135542020-01-10 Pedro Alves <palves@redhat.com>
13555
13556 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13557 ptid to get_last_target_status.
13558 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13559 ptid to get_last_target_status.
13560 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13561 get_last_target_status.
13562 (info_program_command): Don't pass a target_waitstatus to
13563 get_last_target_status.
13564 * infrun.c (init_wait_for_inferior): Use
13565 nullify_last_target_wait_ptid.
13566 (get_last_target_status): Handle nullptr arguments.
13567 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13568 (print_stop_event): Don't pass a ptid to get_last_target_status.
13569 (normal_stop): Don't pass a ptid to get_last_target_status.
13570 * infrun.h (get_last_target_status, set_last_target_status): Move
13571 comments here and update.
13572 (nullify_last_target_wait_ptid): Declare.
13573 * linux-fork.c (fork_load_infrun_state): Remove local extern
13574 declaration of nullify_last_target_wait_ptid.
13575 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13576 to get_last_target_status.
13577
f3f8ece4
PA
135782020-01-10 Pedro Alves <palves@redhat.com>
13579
13580 * gdbthread.h (scoped_restore_current_thread)
13581 <dont_restore, restore, m_dont_restore>: Declare.
13582 * thread.c (thread_alive): Add assertion. Return bool.
13583 (switch_to_thread_if_alive): New.
13584 (prune_threads): Switch inferior/thread.
13585 (print_thread_info_1): Switch thread before calling target methods.
13586 (scoped_restore_current_thread::restore): New, factored out from
13587 ...
13588 (scoped_restore_current_thread::~scoped_restore_current_thread):
13589 ... this.
13590 (scoped_restore_current_thread::scoped_restore_current_thread):
13591 Add assertion.
13592 (thread_apply_all_command, thread_select): Use
13593 switch_to_thread_if_alive.
13594 * infrun.c (proceed, restart_threads, handle_signal_stop)
13595 (switch_back_to_stepped_thread): Switch current thread before
13596 calling target methods.
13597
db2d40f7
PA
135982020-01-10 Pedro Alves <palves@redhat.com>
13599
13600 * inferior.c (switch_to_inferior_no_thread): New function,
13601 factored out from ...
13602 (inferior_command): ... here.
13603 * inferior.h (switch_to_inferior_no_thread): Declare.
13604 * mi/mi-main.c (run_one_inferior): Use
13605 switch_to_inferior_no_thread.
13606
bd420a2d
PA
136072020-01-10 Pedro Alves <palves@redhat.com>
13608
13609 * infcmd.c (kill_command): Remove dead code.
13610
ddf5db90
PA
136112020-01-10 Pedro Alves <palves@redhat.com>
13612
13613 * remote.c (remote_target::mourn_inferior): No longer check
13614 whether the target is running.
13615
5018ce90
PA
136162020-01-10 Pedro Alves <palves@redhat.com>
13617
13618 * corelow.c (core_target::has_execution): Change parameter type to
13619 inferior pointer.
13620 * inferior.c (number_of_live_inferiors): Use
13621 inferior::has_execution instead of target_has_execution_1.
13622 * inferior.h (inferior::has_execution): New.
13623 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13624 inferior::has_execution instead of target_has_execution_1.
13625 * process-stratum-target.c
13626 (process_stratum_target::has_execution): Change parameter type to
13627 inferior pointer. Check the inferior's PID instead of
13628 inferior_ptid.
13629 * process-stratum-target.h
13630 (process_stratum_target::has_execution): Change parameter type to
13631 inferior pointer.
13632 * record-full.c (record_full_core_target::has_execution): Change
13633 parameter type to inferior pointer.
13634 * target.c (target_has_execution_1): Change parameter type to
13635 inferior pointer.
13636 (target_has_execution_current): Adjust.
13637 * target.h (target_ops::has_execution): Change parameter type to
13638 inferior pointer.
13639 (target_has_execution_1): Change parameter type to inferior
13640 pointer. Change return type to bool.
13641 * tracefile.h (tracefile_target::has_execution): Change parameter
13642 type to inferior pointer.
13643
74375d18
PA
136442020-01-10 Pedro Alves <palves@redhat.com>
13645
13646 * exceptions.c (print_flush): Remove current_top_target() check.
13647
acdf84a6
PA
136482020-01-10 Pedro Alves <palves@redhat.com>
13649
13650 * remote.c (show_remote_exec_file): Show the current inferior's
13651 exec-file instead of the command variable's value.
13652
ec506636
PA
136532020-01-10 Pedro Alves <palves@redhat.com>
13654
13655 * record-full.c (record_full_resume_ptid): New global.
13656 (record_full_target::resume): Set it.
13657 (record_full_wait_1): Use record_full_resume_ptid instead of
13658 inferior_ptid.
13659
873657b9
PA
136602020-01-10 Pedro Alves <palves@redhat.com>
13661
13662 * gdbthread.h (scoped_restore_current_thread)
13663 <dont_restore, restore, m_dont_restore>: Declare.
13664 * thread.c (thread_alive): Add assertion. Return bool.
13665 (switch_to_thread_if_alive): New.
13666 (prune_threads): Switch inferior/thread.
13667 (print_thread_info_1): Switch thread before calling target methods.
13668 (scoped_restore_current_thread::restore): New, factored out from
13669 ...
13670 (scoped_restore_current_thread::~scoped_restore_current_thread):
13671 ... this.
13672 (scoped_restore_current_thread::scoped_restore_current_thread):
13673 Add assertion.
13674 (thread_apply_all_command, thread_select): Use
13675 switch_to_thread_if_alive.
13676
7f0ae84c
GB
136772020-01-10 George Barrett <bob@bob131.so>
13678
13679 * stap-probe.c (stap_modify_semaphore): Don't check for null
13680 semaphores.
13681 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13682 for null semaphores.
13683
f5a7c406
AB
136842020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13685
13686 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13687 all source windows, and maintain horizontal scroll status while
13688 doing so.
13689
9ae6bf64
TT
136902020-01-09 Tom Tromey <tom@tromey.com>
13691
13692 PR tui/18932:
13693 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13694 update_source_window, not print_source_lines.
13695
b2efe70c
AB
136962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 * tui/tui.c (tui_enable): Register tui hooks after calling
13699 tui_display_main.
13700
5f23a082
CB
137012020-01-09 Christian Biesinger <cbiesinger@google.com>
13702
13703 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13704
3061113b
SM
137052020-01-08 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * thread.c (print_thread_info_1): Fix indentation.
13708
57d75002
CB
137092020-01-09 Christian Biesinger <cbiesinger@google.com>
13710
13711 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13712 unique_xmalloc_ptr outside the if to always free the demangled name.
13713
6a053cb1
TT
137142020-01-08 Tom Tromey <tromey@adacore.com>
13715
13716 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13717 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13718 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13719 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13720 Remove.
13721 (section_offsets): New typedef.
13722 * symtab.c (fixup_section, get_msymbol_address): Update.
13723 * symmisc.c (dump_msymbols): Update.
13724 * symfile.h (relative_addr_info_to_section_offsets)
13725 (symfile_map_offsets_to_segments): Update.
13726 * symfile.c (build_section_addr_info_from_objfile)
13727 (init_objfile_sect_indices): Update.
13728 (struct place_section_arg): Change type of "offsets".
13729 (place_section): Update.
13730 (relative_addr_info_to_section_offsets): Change type of
13731 "section_offsets". Remove "num_sections" parameter.
13732 (default_symfile_offsets, syms_from_objfile_1)
13733 (set_objfile_default_section_offset): Update.
13734 (reread_symbols): No need to preserve section offsets by hand.
13735 (symfile_map_offsets_to_segments): Change type of "offsets".
13736 * stap-probe.c (relocate_address): Update.
13737 * stabsread.h (process_one_symbol): Update.
13738 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13739 (solib_target_relocate_section_addresses): Update.
13740 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13741 Update.
13742 * solib-frv.c (frv_relocate_main_executable): Update.
13743 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13744 * solib-aix.c (solib_aix_get_section_offsets): Change return
13745 type.
13746 (solib_aix_solib_create_inferior_hook): Update.
13747 * remote.c (remote_target::get_offsets): Update.
13748 * psymtab.c (find_pc_sect_psymtab): Update.
13749 * psympriv.h (struct partial_symbol) <address, text_low,
13750 text_high>: Update.
13751 * objfiles.h (obj_section_offset): Update.
13752 (struct objfile) <section_offsets>: Change type.
13753 <num_sections>: Remove.
13754 (objfile_relocate): Update.
13755 * objfiles.c (entry_point_address_query): Update
13756 (relocate_one_symbol): Change type of "section_offsets".
13757 (objfile_relocate1, objfile_relocate1): Change type of
13758 "new_offsets".
13759 (objfile_rebase1): Update.
13760 * mipsread.c (mipscoff_symfile_read): Update.
13761 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13762 parameter.
13763 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13764 (parse_external, psymtab_to_symtab_1): Update.
13765 * machoread.c (macho_symfile_offsets): Update.
13766 * ia64-tdep.c (ia64_find_unwind_table): Update.
13767 * hppa-tdep.c (read_unwind_info): Update.
13768 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13769 * dwarf2read.c (create_addrmap_from_index)
13770 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13771 (process_psymtab_comp_unit_reader, add_partial_symbol)
13772 (add_partial_subprogram, process_full_comp_unit)
13773 (read_file_scope, read_func_scope, read_lexical_block_scope)
13774 (read_call_site_scope, dwarf2_rnglists_process)
13775 (dwarf2_ranges_process, dwarf2_ranges_read)
13776 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13777 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13778 Update.
13779 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13780 Update.
13781 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13782 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13783 (process_one_symbol): Change type of "section_offsets".
13784 * ctfread.c (get_objfile_text_range): Update.
13785 * coffread.c (coff_symtab_read, enter_linenos)
13786 (process_coff_symbol): Update.
13787 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13788 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13789
456e800a
TT
137902020-01-08 Tom Tromey <tromey@adacore.com>
13791
13792 * dwarf2read.c (parse_macro_definition): Use std::string.
13793 (parse_macro_definition): Likewise.
13794
6dfa2fc2
TT
137952020-01-08 Tom Tromey <tromey@adacore.com>
13796
13797 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13798 (ATTR_ALLOC_CHUNK): Remove.
13799
421d1616
TT
138002020-01-08 Tom Tromey <tromey@adacore.com>
13801
13802 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13803
43816ebc
TT
138042020-01-08 Tom Tromey <tromey@adacore.com>
13805
13806 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13807 (dwarf2_compute_name, open_dwo_file): Likewise.
13808 (process_enumeration_scope): Use std::vector.
13809 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13810 (partial_die_info::fixup, dwarf2_start_subfile)
13811 (guess_full_die_structure_name, dwarf2_name): Likewise.
13812 (determine_prefix): Update.
13813 (guess_full_die_structure_name): Make return type const.
13814 (partial_die_full_name): Return unique_xmalloc_ptr.
13815 (DW_FIELD_ALLOC_CHUNK): Remove.
13816
4212d509
TT
138172020-01-07 Tom Tromey <tromey@adacore.com>
13818
13819 PR build/24937:
13820 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13821
06a6207a
JT
138222020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13823
13824 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13825
153d79c4
AB
138262020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13827
13828 * stack.c (print_frame_info): Move disassemble_next_line code
13829 inside source_print block.
13830
66182876
EZ
138312020-01-06 Eli Zaretskii <eliz@gnu.org>
13832
13833 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13834 gdb/signals.h, as we are now using native signal symbols.
13835
cbfa8581
SV
138362020-01-06 Shahab Vahedi <shahab@synopsys.com>
13837
13838 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13839 overflow by an early check of content vs threshold.
aac66a4c 13840 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13841 Likewise.
13842
3f602821
EZ
138432020-01-06 Eli Zaretskii <eliz@gnu.org>
13844
13845 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13846
a08c904d
JT
138472020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13848
13849 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13850 export table if no section contains it's RVA.
13851
89a65580
EZ
138522020-01-06 Eli Zaretskii <eliz@gnu.org>
13853
13854 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13855
8b7fcda2
HD
138562020-01-06 Hannes Domani <ssbssa@yahoo.de>
13857
13858 * source.c (print_source_lines_base): Set last_line_listed.
13859
a61b4f69
SV
138602020-01-06 Shahab Vahedi <shahab@synopsys.com>
13861
13862 * tui/tui-disasm.c: Remove trailing spaces.
13863
559e7e50
EZ
138642020-01-06 Eli Zaretskii <eliz@gnu.org>
13865 Pedro Alves <palves@redhat.com>
13866
13867 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13868 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13869 (windows_gdb_signal_to_target): New function, uses the above
13870 enumeration to convert GDB internal signal codes to equivalent
13871 Windows codes.
13872 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13873 * windows-nat.c: Include "gdb_wait.h".
13874 (get_windows_debug_event): Extract the fatal exception from the
13875 exit status and convert to the equivalent Posix signal number.
13876 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13877 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13878 * gdbsupport/gdb_wait.c: New file, implements
13879 windows_status_to_termsig.
13880 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13881 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13882
f2302a34
AB
138832020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13884
13885 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13886 show_layout.
13887
6a5206eb
LM
138882020-01-05 Luis Machado <luis.machado@linaro.org>
13889
13890 * aarch64-linux-nat.c
13891 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13892 and bfd_mach_aarch64.
13893
6ec1d75e
PW
138942020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13895
13896 * ui-file.c (stdio_file::can_emit_style_escape)
13897 (tee_file::can_emit_style_escape): Ensure style is used also on
13898 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13899 to gdb_stdout.
13900 * main.c (set_gdb_data_directory): Use file style to output the
13901 warning that the given pathname is not a directory.
13902 * top.c (show_history_filename, gdb_safe_append_history)
13903 (show_gdb_datadir): Use file style.
13904
44f81a76
HD
139052020-01-03 Hannes Domani <ssbssa@yahoo.de>
13906
13907 * solib-target.c (struct lm_info_target):
13908 Change offsets to be a unique_xmalloc_ptr.
13909 (solib_target_relocate_section_addresses): Update.
13910
25057eb0
HD
139112020-01-03 Hannes Domani <ssbssa@yahoo.de>
13912
13913 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13914
6e2118f5
BE
139152020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13916
13917 * MAINTAINERS (Write After Approval): Add myself.
13918
8133c7dc
LM
139192020-01-02 Luis Machado <luis.machado@linaro.org>
13920
13921 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13922 Cell BE architecture.
13923 * target.h (struct target_ops) <thread_architecture>: Likewise.
13924
48189bec
HD
139252020-01-01 Hannes Domani <ssbssa@yahoo.de>
13926
13927 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13928
ead1063b
HD
139292020-01-01 Hannes Domani <ssbssa@yahoo.de>
13930
13931 * MAINTAINERS (Write After Approval): Add myself.
13932
e5d78223
JB
139332020-01-01 Joel Brobecker <brobecker@adacore.com>
13934
13935 * gdbarch.sh: Update copyright year range of generated files.
13936
b811d2c2
JB
139372020-01-01 Joel Brobecker <brobecker@adacore.com>
13938
13939 Update copyright year range in all GDB files.
13940
5f4def5c
JB
139412020-01-01 Joel Brobecker <brobecker@adacore.com>
13942
13943 * copyright.py: Convert to Python 3.
13944
51fd4002
JB
139452020-01-01 Joel Brobecker <brobecker@adacore.com>
13946
13947 * copyright.py: Adapt after move of gnulib directory from gdb
13948 directory to toplevel directory.
13949
5fb651f2
JB
139502020-01-01 Joel Brobecker <brobecker@adacore.com>
13951
13952 * copyright.py (main): Exit if run from the wrong directory.
13953
5dd8bf88
JB
139542020-01-01 Joel Brobecker <brobecker@adacore.com>
13955
13956 * top.c (print_gdb_version): Change copyright year to 2020.
13957
9f71dacb 139582020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13959
9f71dacb 13960 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13961
9f71dacb 13962For older changes see ChangeLog-2019.
c906108c
SS
13963\f
13964Local Variables:
13965mode: change-log
13966left-margin: 8
13967fill-column: 74
13968version-control: never
57da7796 13969coding: utf-8
c906108c 13970End:
This page took 3.08795 seconds and 4 git commands to generate.