Add handling for 64-bit module addresses in Cygwin core dumps
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2
3 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4 (core_process_module_section): Handle NOTE_INFO_MODULE64.
5
6 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
7
8 * windows-tdep.h: Add prototypes.
9 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
10 (i386_windows_core_pid_to_str): Move and rename ...
11 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
12 (windows_core_pid_to_str): ... and here.
13 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
14
15 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
16 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
17 (amd64_windows_init_abi_common): ... and register.
18
19 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
20
21 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
22 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
23
24 2020-09-18 Pedro Alves <pedro@palves.net>
25
26 PR gdb/26631
27 * thread.c (thread_find_command): Switch inferior before calling
28 target methods.
29
30 2020-09-17 Tom Tromey <tromey@adacore.com>
31
32 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
33 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
34 (tdesc_arch_data_up): New typedef.
35 (tdesc_use_registers, tdesc_data_alloc): Update.
36 (tdesc_data_cleanup): Don't declare.
37 * target-descriptions.c (tdesc_data_alloc): Return a
38 tdesc_arch_data_up.
39 (tdesc_arch_data_deleter::operator()): Rename from
40 tdesc_data_cleanup. Change argument type.
41 (tdesc_use_registers): Change early_data to an rvalue reference.
42 (tdesc_use_registers): Don't use delete.
43 * sparc-tdep.c (sparc32_gdbarch_init): Update.
44 * s390-tdep.c (s390_gdbarch_init): Update.
45 * rx-tdep.c (rx_gdbarch_init): Update.
46 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
47 * riscv-tdep.c (riscv_gdbarch_init): Update.
48 * or1k-tdep.c (or1k_gdbarch_init): Update.
49 * nios2-tdep.c (nios2_gdbarch_init): Update.
50 * nds32-tdep.c (nds32_gdbarch_init): Update.
51 * mips-tdep.c (mips_gdbarch_init): Update.
52 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
53 * m68k-tdep.c (m68k_gdbarch_init): Update.
54 * i386-tdep.c (i386_gdbarch_init): Update.
55 * arm-tdep.c (arm_gdbarch_init): Update.
56 * arc-tdep.c (arc_tdesc_init): Update.
57 (arc_gdbarch_init): Update.
58 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
59
60 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
61
62 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
63 for WOW64 processes.
64
65 2020-09-17 Tom Tromey <tom@tromey.com>
66
67 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
68
69 2020-09-17 Tom Tromey <tom@tromey.com>
70
71 * value.c (preserve_values): Update.
72 * python/py-type.c (save_objfile_types): Update.
73 * guile/scm-type.c (save_objfile_types): Update.
74 * gdbtypes.h (create_copied_types_hash): Return htab_up.
75 * gdbtypes.c (create_copied_types_hash): Return htab_up.
76 * compile/compile-object-run.c (compile_object_run): Update.
77
78 2020-09-17 Tom Tromey <tom@tromey.com>
79
80 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
81 Remove.
82 <m_table>: Now htab_up.
83 * typeprint.c (typedef_hash_table::recursively_update)
84 (typedef_hash_table::add_template_parameters)
85 (typedef_hash_table::typedef_hash_table): Update.
86 (typedef_hash_table::~typedef_hash_table): Remove.
87 (typedef_hash_table::typedef_hash_table)
88 (typedef_hash_table::find_global_typedef)
89 (typedef_hash_table::find_typedef): Update.
90
91 2020-09-17 Tom Tromey <tom@tromey.com>
92
93 * target-descriptions.c (tdesc_use_registers): Use htab_up.
94
95 2020-09-17 Tom Tromey <tom@tromey.com>
96
97 * linespec.c (class decode_compound_collector)
98 <~decode_compound_collector>: Remove.
99 <m_unique_syms>: Now htab_up.
100 (decode_compound_collector::operator ()): Update.
101 (class symtab_collector) <~symtab_collector>: Remove.
102 <m_symtab_table>: Now htab_up.
103 (symtab_collector::operator ()): Update.
104
105 2020-09-17 Tom Tromey <tom@tromey.com>
106
107 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
108 (filename_seen_cache::clear): Update.
109 (~filename_seen_cache): Remove.
110 (filename_seen_cache::seen): Update.
111 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
112 htab_up.
113 <~filename_seen_cache>: Remove.
114 <traverse>: Update.
115
116 2020-09-17 Tom Tromey <tom@tromey.com>
117
118 * completer.c (completion_tracker::discard_completions)
119 (completion_tracker::~completion_tracker)
120 (completion_tracker::maybe_add_completion)
121 (completion_tracker::remove_completion)
122 (completion_tracker::recompute_lowest_common_denominator)
123 (completion_tracker::build_completion_result): Update.
124 * completer.h (class completion_tracker) <have_completions>:
125 Update.
126 <m_entries_hash>: Now htab_up.
127
128 2020-09-17 Tom Tromey <tom@tromey.com>
129
130 * breakpoint.c (ambiguous_names_p): Use htab_up.
131
132 2020-09-17 Tom Tromey <tom@tromey.com>
133
134 * auto-load.c (struct auto_load_pspace_info)
135 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
136 <loaded_script_files, loaded_script_texts>: Change type to
137 htab_up.
138 (~auto_load_pspace_info) Remove.
139 (init_loaded_scripts_info, maybe_add_script_file)
140 (maybe_add_script_text, auto_load_info_scripts): Update.
141
142 2020-09-17 Tom Tromey <tromey@adacore.com>
143
144 * c-exp.y (name_obstack): Now static.
145
146 2020-09-17 Chungyi Chi <demonic@csie.io>
147
148 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
149
150 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
151
152 * breakpoint.h (init_catchpoint): Change int parameter to bool.
153 (add_solib_catchpoint): Likewise.
154 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
155 to bool.
156 (add_solib_catchpoint): Change int parameter/variable to bool.
157 (catch_load_or_unload): Likewise.
158 (init_catchpoint): Likewise.
159 (create_fork_vfork_event_catchpoint): Likewise.
160 (catch_fork_command_1): Likewise.
161 (catch_exec_command_1): Likewise.
162
163 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
164
165 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
166 Change instance_flags to m_instance_flags.
167
168 2020-09-16 Tom Tromey <tromey@adacore.com>
169
170 PR gdb/26598:
171 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
172
173 2020-09-16 John Baldwin <jhb@FreeBSD.org>
174
175 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
176 PL_FLAG_EXEC.
177 (fbsd_nat_target::insert_exec_catchpoint)
178 (fbsd_nat_target::remove_exec_catchpoint): Always define.
179 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
180 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
181
182 2020-09-16 John Baldwin <jhb@FreeBSD.org>
183
184 * configure.ac: Remove check for kinfo_getvmmap().
185 * configure, config.in: Regenerate.
186 * fbsd-nat.c (fbsd_read_mapping): Remove
187 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
188 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
189 kinfo_get_vmmap() are always present.
190
191 2020-09-16 John Baldwin <jhb@FreeBSD.org>
192
193 * fbsd-nat.c: Always include support for
194 TARGET_OBJECT_SIGNAL_INFO.
195
196 2020-09-16 John Baldwin <jhb@FreeBSD.org>
197
198 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
199 sysctl and remove procfs fallback.
200
201 2020-09-16 John Baldwin <jhb@FreeBSD.org>
202
203 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
204 * fbsd-nat.h: Likewise.
205
206 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
207
208 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
209 argument.
210
211 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * ada-lang.c (ada_language_data): Delete.
214 (ada_language): Remove references to ada_language_data.
215 * c-lang.c (c_language_data): Delete.
216 (c_language): Remove references to c_language_data.
217 (cplus_language_data): Delete.
218 (cplus_language): Remove references to cplus_language_data.
219 (asm_language_data): Delete.
220 (asm_language): Remove references to asm_language_data.
221 (minimal_language_data): Delete.
222 (minimal_language): Remove references to minimal_language_data.
223 * d-lang.c (d_language_data): Delete.
224 (d_language): Remove references to d_language_data.
225 * f-lang.c (f_language_data): Delete.
226 (f_language): Remove references to f_language_data.
227 * go-lang.c (go_language_data): Delete.
228 (go_language): Remove references to go_language_data.
229 * language.c (unknown_language_data): Delete.
230 (unknown_language): Remove references to unknown_language_data.
231 (auto_language_data): Delete.
232 (auto_language): Remove references to auto_language_data.
233 * language.h (language_data): Delete struct.
234 (language_defn): No longer inherit from language_data.
235 * m2-lang.c (m2_language_data): Delete.
236 (m2_language): Remove references to m2_language_data.
237 * objc-lang.c (objc_language_data): Delete.
238 (objc_language): Remove references to objc_language_data.
239 * opencl-lang.c (opencl_language_data): Delete.
240 (opencl_language): Remove references to opencl_language_data.
241 * p-lang.c (pascal_language_data): Delete.
242 (pascal_language): Remove references to pascal_language_data.
243 * rust-lang.c (rust_language_data): Delete.
244 (rust_language): Remove references to rust_language_data.
245
246 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * ada-lang.c (ada_language_data): Remove la_op_print_tab
249 initializer.
250 (ada_language::opcode_print_table): New member function.
251 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
252 (c_language::opcode_print_table): New member function.
253 (cplus_language_data): Remove la_op_print_tab initializer.
254 (cplus_language::opcode_print_table): New member function.
255 (asm_language_data): Remove la_op_print_tab initializer.
256 (asm_language::opcode_print_table): New member function.
257 (minimal_language_data): Remove la_op_print_tab initializer.
258 (minimal_language::opcode_print_table): New member function.
259 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
260 (d_language::opcode_print_table): New member function.
261 * expprint.c (print_subexp_standard): Update call to
262 opcode_print_table.
263 (op_string): Likewise.
264 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
265 (f_language::opcode_print_table): New member function.
266 * go-lang.c (go_language_data): Remove la_op_print_tab
267 initializer.
268 (go_language::opcode_print_table): New member function.
269 * language.c (unknown_language_data): Remove la_op_print_tab
270 initializer.
271 (unknown_language::opcode_print_table): New member function.
272 (auto_language_data): Remove la_op_print_tab initializer.
273 (auto_language::opcode_print_table): New member function.
274 * language.h (language_data): Remove la_op_print_tab field.
275 (language_defn::opcode_print_table): Declare new member function.
276 * m2-lang.c (m2_language_data): Remove la_op_print_tab
277 initializer.
278 (m2_language::opcode_print_table): New member function.
279 * objc-lang.c (objc_language_data): Remove la_op_print_tab
280 initializer.
281 (objc_language::opcode_print_table): New member function.
282 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
283 initializer.
284 (opencl_language::opcode_print_table): New member function.
285 * p-lang.c (pascal_language_data): Remove la_op_print_tab
286 initializer.
287 (pascal_language::opcode_print_table): New member function.
288 * rust-lang.c (rust_language_data): Remove la_op_print_tab
289 initializer.
290 (rust_language::opcode_print_table): New member function.
291
292 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
295 (ada_language::expression_ops): New member function.
296 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
297 (c_language::expression_ops): New member function.
298 (cplus_language_data): Remove la_exp_desc initializer.
299 (cplus_language::expression_ops): New member function.
300 (asm_language_data): Remove la_exp_desc initializer.
301 (asm_language::expression_ops): New member function.
302 (minimal_language_data): Remove la_exp_desc initializer.
303 (minimal_language::expression_ops): New member function.
304 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
305 (d_language::expression_ops): New member function.
306 * eval.c (evaluate_subexp): Update call to expression_ops.
307 * expprint.c (print_subexp): Likewise.
308 (op_name): Likewise.
309 (dump_subexp_body): Likewise.
310 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
311 (f_language::expression_ops): New member function.
312 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
313 (go_language::expression_ops): New member function.
314 * language.c (language_defn::expression_ops): New function.
315 (unknown_language_data): Remove la_exp_desc initializer.
316 (auto_language_data): Likewise.
317 * language.h (language_data): Remove la_exp_desc field.
318 (language_defn::expression_ops): Declare new member function.
319 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
320 (m2_language::expression_ops): New member function.
321 * objc-lang.c (objc_language_data): Remove la_exp_desc
322 initializer.
323 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
324 initializer.
325 (opencl_language::expression_ops): New member function.
326 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
327 * parse.c (operator_length): Update call to expression_ops.
328 (exp_iterate): Likewise.
329 * rust-lang.c (rust_language_data): Remove la_exp_desc
330 initializer.
331 (ruse_language::expression_ops): New member function.
332
333 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
334
335 * ada-lang.c (ada_language_data): Remove la_varobj_ops
336 initializer.
337 (ada_language::varobj_ops): New member function.
338 * c-lang.c (c_language_data): Remove la_varobj_ops
339 initializer.
340 (cplus_language_data): Likewise.
341 (cplus_language::varobj_ops): New member function.
342 (asm_language_data): Remove la_varobj_ops initializer.
343 (minimal_language_data): Likewise.
344 * d-lang.c (d_language_data): Likewise.
345 * f-lang.c (f_language_data): Likewise.
346 * go-lang.c (go_language_data): Likewise.
347 * language.c (language_defn::varobj_ops): New function.
348 (unknown_language_data): Remove la_varobj_ops
349 initializer.
350 (auto_language_data): Likewise.
351 * language.h (language_data): Remove la_varobj_ops field.
352 (language_defn::varobj_ops): Declare new member function.
353 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
354 * objc-lang.c (objc_language_data): Likewise.
355 * opencl-lang.c (opencl_language_data): Likewise.
356 * p-lang.c (pascal_language_data): Likewise.
357 * rust-lang.c (rust_language_data): Likewise.
358 * varobj.c (varobj_create): Update call to varobj_ops.
359 * varobj.h (default_varobj_ops): Delete define.
360
361 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * ada-lang.c (ada_language_data): Remove la_macro_expansion
364 initializer.
365 * c-lang.c (c_language_data): Likewise.
366 (c_language::macro_expansion): New member function.
367 (cplus_language_data): Likewise.
368 (cplus_language::macro_expansion): New member function.
369 (asm_language_data): Likewise.
370 (asm_language::macro_expansion): New member function.
371 (minimal_language_data): Likewise.
372 (minimal_language::macro_expansion): New member function.
373 * d-lang.c (d_language_data): Remove la_macro_expansion
374 initializer.
375 * f-lang.c (f_language_data): Likewise.
376 * go-lang.c (go_language_data): Likewise.
377 * language.c (unknown_language_data): Likewise.
378 (auto_language_data): Likewise.
379 * language.h (language_data): Remove la_macro_expansion field.
380 (language_defn::macro_expansion): New member function.
381 * m2-lang.c (m2_language_data): Remove la_macro_expansion
382 initializer.
383 * objc-lang.c (objc_language_data): Likewise.
384 (objc_language::macro_expansion): New member function.
385 * opencl-lang.c (opencl_language_data): Likewise.
386 (opencl_language::macro_expansion): New member function.
387 * p-lang.c (pascal_language_data): Remove la_macro_expansion
388 initializer.
389 * rust-lang.c (rust_language_data): Likewise.
390 * symtab.c (default_collect_symbol_completion_matches_break_on):
391 Update call to macro_expansion.
392
393 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * ada-lang.c (ada_language_data): Remove la_array_ordering
396 initializer.
397 * c-lang.c (c_language_data): Likewise.
398 (cplus_language_data): Likewise.
399 (asm_language_data): Likewise.
400 (minimal_language_data): Likewise.
401 * d-lang.c (d_language_data): Likewise.
402 * dwarf2/read.c (read_array_order): Update for call to
403 array_ordering.
404 * f-lang.c (f_language_data): Remove la_array_ordering
405 initializer.
406 (f_language::array_ordering): New member function.
407 * go-lang.c (go_language_data): Remove la_array_ordering
408 initializer.
409 * language.c (unknown_language_data): Likewise.
410 (auto_language_data): Likewise.
411 * language.h (language_data): Delete la_array_ordering field.
412 (language_defn::array_ordering): New member function.
413 * m2-lang.c (m2_language_data): Remove la_array_ordering
414 initializer.
415 * objc-lang.c (objc_language_data): Likewise.
416 * opencl-lang.c (opencl_language_data): Likewise.
417 * p-lang.c (pascal_language_data): Likewise.
418 * rust-lang.c (rust_language_data): Likewise.
419
420 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
423 initializer.
424 * c-lang.c (c_language_data): Likewise.
425 (cplus_language_data): Likewise.
426 (asm_language_data): Likewise.
427 (minimal_language_data): Likewise.
428 * d-lang.c (d_language_data): Likewise.
429 * f-lang.c (f_language_data): Likewise.
430 (f_language::case_sensitivity): New member function.
431 * go-lang.c (go_language_data): Remove la_case_sensitivity
432 initializer.
433 * language.c (enum case_mode): Moved here from language.h.
434 (case_mode): Make static.
435 (show_case_command): Update for case_sensitivity being a method.
436 (set_case_command): Likewise.
437 (set_range_case): Likewise.
438 (unknown_language_data): Remove la_case_sensitivity initializer.
439 (auto_language_data): Likewise.
440 * language.h (case_mode): Delete, move enum declaration to
441 language.c.
442 (language_data): Delete la_case_sensitivity field.
443 (language_defn::case_sensitivity): New member function.
444 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
445 initializer.
446 * objc-lang.c (objc_language_data): Likewise.
447 * opencl-lang.c (opencl_language_data): Likewise.
448 * p-lang.c (pascal_language_data): Likewise.
449 * rust-lang.c (rust_language_data): Likewise.
450
451 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * ada-lang.c (ada_language_data): Remove la_range_check
454 initializer.
455 * c-lang.c (c_language_data): Likewise.
456 (cplus_language_data): Likewise.
457 (asm_language_data): Likewise.
458 (minimal_language_data): Likewise.
459 * d-lang.c (d_language_data): Likewise.
460 * f-lang.c (f_language_data): Likewise.
461 (f_language::range_checking_on_by_default): New member function.
462 * go-lang.c (go_language_data): Remove la_range_check initializer.
463 * language.c (enum range_mode): Moved here from language.h.
464 (range_mode): Made static.
465 (show_range_command): Update to use
466 range_checking_on_by_default.
467 (set_range_command): Likewise.
468 (set_range_case): Likewise.
469 (unknown_language_data): Remove la_range_check initializer.
470 (auto_language_data): Likewise.
471 * language.h (range_mode): Delete. Enum definition moved to
472 language.c.
473 (language_data): Remove la_range_check field.
474 (language_defn::range_checking_on_by_default): New member
475 function.
476 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
477 (m2_language::range_checking_on_by_default): New member function.
478 * objc-lang.c (objc_language_data): Remove la_range_check
479 initializer.
480 * opencl-lang.c (opencl_language_data): Likewise.
481 * p-lang.c (pascal_language_data): Likewise.
482 (pascal_language::range_checking_on_by_default): New member
483 function.
484 * rust-lang.c (rust_language_data): Remove la_range_check
485 initializer.
486 (rust_language::range_checking_on_by_default): New member
487 function.
488
489 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * dwarf2/read.c (dwarf2_physname): Remove special case for
492 language_go.
493 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
494 member function.
495
496 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
497
498 * ada-lang.c (ada_language_data): Remove
499 la_store_sym_names_in_linkage_form_p initializer.
500 (ada_language::store_sym_names_in_linkage_form_p): New member
501 function.
502 * c-lang.c (c_language_data): Remove
503 la_store_sym_names_in_linkage_form_p initializer.
504 (c_language::store_sym_names_in_linkage_form_p): New member
505 function.
506 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
507 initializer.
508 (asm_language_data): Likewise.
509 (asm_language::store_sym_names_in_linkage_form_p): New member
510 function.
511 (minimal_language_data): Remove
512 la_store_sym_names_in_linkage_form_p initializer.
513 (minimal_language::store_sym_names_in_linkage_form_p): New member
514 function.
515 * d-lang.c (d_language_data): Remove
516 la_store_sym_names_in_linkage_form_p initializer.
517 * dwarf2/read.c (dwarf2_physname): Update call to
518 store_sym_names_in_linkage_form_p.
519 * f-lang.c (f_language_data): Remove
520 la_store_sym_names_in_linkage_form_p initializer.
521 * go-lang.c (go_language_data): Remove
522 la_store_sym_names_in_linkage_form_p initializer.
523 * language.c (unknown_language_data): Remove
524 la_store_sym_names_in_linkage_form_p initializer.
525 (unknown_language::store_sym_names_in_linkage_form_p): New member
526 function.
527 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
528 initializer.
529 (auto_language::store_sym_names_in_linkage_form_p): New member
530 function.
531 * language.h (language_data): Remove
532 la_store_sym_names_in_linkage_form_p member variable.
533 (language_defn::store_sym_names_in_linkage_form_p): New member
534 function.
535 * m2-lang.c (m2_language_data): Remove
536 la_store_sym_names_in_linkage_form_p initializer.
537 * objc-lang.c (objc_language_data): Likewise.
538 * opencl-lang.c (opencl_language_data): Likewise.
539 * p-lang.c (pascal_language_data): Likewise.
540 * rust-lang.c (rust_language_data): Likewise.
541
542 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * ada-lang.c (ada_language_data): Remove string_lower_bound
545 initializer.
546 * c-lang.c (c_language_data): Likewise.
547 (cplus_language_data): Likewise.
548 (asm_language_data): Likewise.
549 (minimal_language_data): Likewise.
550 * d-lang.c (d_language_data): Likewise.
551 * f-lang.c (f_language_data): Likewise.
552 * go-lang.c (go_language_data): Likewise.
553 * language.c (unknown_language_data): Likewise.
554 (auto_language_data): Likewise.
555 * language.h (language_data): Remove string_lower_bound field.
556 (language_defn::string_lower_bound): New member function.
557 * m2-lang.c (m2_language_data): Remove string_lower_bound
558 initializer.
559 (m2_language::string_lower_bound): New member function.
560 * objc-lang.c (objc_language_data): Remove string_lower_bound
561 initializer.
562 * opencl-lang.c (opencl_language_data): Likewise.
563 * p-lang.c (pascal_language_data): Likewise.
564 * rust-lang.c (rust_language_data): Likewise.
565 * valops.c (value_cstring): Update call to string_lower_bound.
566 (value_string): Likewise.
567 * value.c (allocate_repeated_value): Likewise.
568
569 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * valops.c (value_repeat): Fix incorrect argument name in comment.
572
573 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * ada-lang.c (ada_language_data): Remove c_style_arrays
576 initializer.
577 (ada_language::c_style_arrays_p): New member fuction.
578 * c-lang.c (c_language_data): Remove c_style_arrays
579 initializer.
580 (cplus_language_data): Likewise.
581 (asm_language_data): Likewise.
582 (minimal_language_data): Likewise.
583 * d-lang.c (d_language_data): Likewise.
584 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
585 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
586 (f_language::c_style_arrays_p): New member function.
587 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
588 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
589 * language.c (unknown_language_data): Remove c_style_arrays
590 initializer.
591 (auto_language_data): Likewise.
592 * language.h (language_data): Remove c_style_arrays field.
593 (language_defn::c_style_arrays_p): New member function.
594 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
595 (m2_language::c_style_arrays_p): New member function.
596 * objc-lang.c (objc_language_data): Remove c_style_arrays
597 initializer.
598 * opencl-lang.c (opencl_language_data): Likewise.
599 * p-lang.c (pascal_language_data): Likewise.
600 * rust-lang.c (rust_language_data): Likewise.
601 * valarith.c (value_subscript): Update call to c_style_arrays_p,
602 and update local variable to a bool.
603 * valops.c (value_cast): Update call to c_style_arrays_p.
604 (value_array): Likewise.
605 * value.c (coerce_array): Likewise.
606
607 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * ada-lang.c (ada_language_data): Remove la_language initializer.
610 * c-lang.c (c_language_data): Likewise.
611 (cplus_language_data): Likewise.
612 (asm_language_data): Likewise.
613 (minimal_language_data): Likewise.
614 * d-lang.c (d_language_data): Likewise.
615 * f-lang.c (f_language_data): Likewise.
616 * go-lang.c (go_language_data): Likewise.
617 * language.c (unknown_language_data): Likewise.
618 (auto_language_data): Likewise.
619 * language.h (language_data): Remove la_language field.
620 (language_defn::language_defn): Initialise la_language field.
621 (language_defn::la_language): New member variable.
622 * m2-lang.c (m2_language_data): Remove la_language field.
623 * objc-lang.c (objc_language_data): Likewise.
624 * opencl-lang.c (opencl_language_data): Likewise.
625 * p-lang.c (pascal_language_data): Likewise.
626 * rust-lang.c (rust_language_data): Likewise.
627
628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * ada-lang.c (ada_extensions): Delete, moved into
631 ada_language::filename_extensions.
632 (ada_language_data): Remove la_filename_extensions initializer.
633 (ada_language::filename_extensions): New member function.
634 * c-lang.c (c_extensions): Delete, moved into
635 c_language::filename_extensions.
636 (c_language_data): Remove la_filename_extensions initializer.
637 (c_language::filename_extensions): New member function.
638 (cplus_extensions): Delete, moved into
639 cplus_language::filename_extensions.
640 (cplus_language_data): Remove la_filename_extensions initializer.
641 (cplus_language::filename_extensions): New member function.
642 (asm_extensions): Delete, moved into
643 asm_language::filename_extensions.
644 (asm_language_data): Remove la_filename_extensions initializer.
645 (asm_language::filename_extensions): New member function.
646 (minimal_language_data): Remove la_filename_extensions
647 initializer.
648 * d-lang.c (d_extensions): Delete, moved into
649 d_language::filename_extensions.
650 (d_language_data): Remove la_filename_extensions initializer.
651 (d_language::filename_extensions): New member function.
652 * f-lang.c (f_extensions): Delete, moved into
653 f_language::filename_extensions.
654 (f_language_data): Remove la_filename_extensions initializer.
655 (f_language::filename_extensions): New member function.
656 * go-lang.c (go_language_data): Remove la_filename_extensions
657 initializer.
658 * language.c (add_set_language_command): Update now that
659 filename_extensions returns a vector.
660 (unknown_language_data): Remove la_filename_extensions
661 initializer.
662 (auto_language_data): Likewise.
663 * language.h (language_data): Remove la_filename_extensions field.
664 (language_defn::filename_extensions): New member function.
665 * m2-lang.c (m2_language_data): Remove la_filename_extensions
666 initializer.
667 * objc-lang.c (objc_extensions): Delete, moved into
668 objc_language::filename_extensions.
669 (objc_language_data): Remove la_filename_extensions initializer.
670 (objc_language::filename_extensions): New member function.
671 * opencl-lang.c (opencl_language_data): Remove
672 la_filename_extensions initializer.
673 * p-lang.c (pascal_extensions): Delete, moved into
674 pascal_language::filename_extensions.
675 (pascal_language_data): Remove la_filename_extensions initializer.
676 (pascal_language::filename_extensions): New member function.
677 * rust-lang.c (rust_extensions): Delete, moved into
678 rust_language::filename_extensions.
679 (rust_language_data): Remove la_filename_extensions initializer.
680 (rust_language::filename_extensions): New member function.
681 * symfile.c (add_filename_language): Add new assert.
682
683 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * ada-lang.c (ada_language_data): Remove la_name and
686 la_natural_name initializers.
687 (ada_language::name): New member function.
688 (ada_language::natural_name): New member function.
689 * c-lang.c (c_language_data): Remove la_name and
690 la_natural_name initializers.
691 (c_language::name): New member function.
692 (c_language::natural_name): New member function.
693 (cplus_language_data): Remove la_name and
694 la_natural_name initializers.
695 (cplus_language::name): New member function.
696 (cplus_language::natural_name): New member function.
697 (asm_language_data): Remove la_name and
698 la_natural_name initializers.
699 (asm_language::name): New member function.
700 (asm_language::natural_name): New member function.
701 (minimal_language_data): Remove la_name and
702 la_natural_name initializers.
703 (minimal_language::name): New member function.
704 (minimal_language::natural_name): New member function.
705 * compile/compile.c (compile_to_object): Update call to
706 lanugage_defn::name.
707 * d-lang.c (d_language_data): Remove la_name and
708 la_natural_name initializers.
709 (d_language::name): New member function.
710 (d_language::natural_name): New member function.
711 * expprint.c (print_subexp_standard): Update call to
712 language_defn::name.
713 (dump_raw_expression): Likewise
714 (dump_prefix_expression): Likewise.
715 * f-lang.c (f_language_data): Remove la_name and
716 la_natural_name initializers.
717 (f_language::name): New member function.
718 (f_language::natural_name): New member function.
719 * go-lang.c (go_language_data): Remove la_name and
720 la_natural_name initializers.
721 (go_language::name): New member function.
722 (go_language::natural_name): New member function.
723 * language.c (show_language_command): Update call to
724 language_defn::name.
725 (set_language_command): Likewise.
726 (language_enum): Likewise.
727 (language_str): Likewise.
728 (add_set_language_command): Likewise, use
729 language_defn::natural_name in the doc string.
730 (unknown_language_data): Remove la_name and
731 la_natural_name initializers.
732 (unknown_language::name): New member function.
733 (unknown_language::natural_name): New member function.
734 (auto_language_data): Remove la_name and
735 la_natural_name initializers.
736 (auto_language::name): New member function.
737 (auto_language::natural_name): New member function.
738 (language_lookup_primitive_type_as_symbol): Update call to
739 language_defn::name.
740 * language.h (language_data): Remove la_name and la_natural_name
741 member variables.
742 (language_defn::name): New member function.
743 (language_defn::natural_name): New member function.
744 * m2-lang.c (m2_language_data): Remove la_name and
745 la_natural_name initializers.
746 (m2_language::name): New member function.
747 (m2_language::natural_name): New member function.
748 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
749 language_defn::natural_name.
750 * objc-lang.c (objc_language_data): Remove la_name and
751 la_natural_name initializers.
752 (objc_language::name): New member function.
753 (objc_language::natural_name): New member function.
754 * opencl-lang.c (opencl_language_data): Remove la_name and
755 la_natural_name initializers.
756 (opencl_language::name): New member function.
757 (opencl_language::natural_name): New member function.
758 * p-lang.c (pascal_language_data): Remove la_name and
759 la_natural_name initializers.
760 (pascal_language::name): New member function.
761 (pascal_language::natural_name): New member function.
762 * rust-lang.c (rust_language_data): Remove la_name and
763 la_natural_name initializers.
764 (rust_language::name): New member function.
765 (rust_language::natural_name): New member function.
766 * symtab.c (lookup_language_this): Update call to
767 language_defn::name.
768
769 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * ada-lang.c (ada_language_data): Remove la_name_of_this
772 initializer.
773 * ax-gdb.c (gen_expr): Update call to name_of_this.
774 * c-exp.y (classify_name): Likewise.
775 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
776 (cplus_language_data): Likewise.
777 (cplus_language::name_of_this): New member function.
778 (asm_language_data): Remove la_name_of_this initializer.
779 (minimal_language_data): Likewise.
780 * d-lang.c (d_language_data): Likewise.
781 (d_language::name_of_this): New member function.
782 * expprint.c (print_subexp_standard): Update call to name_of_this.
783 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
784 * go-lang.c (go_language_data): Likewise.
785 * language.c (unknown_language_data): Likewise.
786 (unknown_language::name_of_this): New member function.
787 (auto_language_data): Remove la_name_of_this initializer.
788 (auto_language::name_of_this): New member function.
789 * language.h (language_data): Delete la_name_of_this member
790 variable.
791 (language_defn::name_of_this): New member function.
792 * m2-lang.c (m2_language_data): Remove la_name_of_this
793 initializer.
794 * objc-lang.c (objc_language_data): Likewise.
795 (objc_language::name_of_this): New member function.
796 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
797 initializer.
798 * p-lang.c (pascal_language_data): Likewise.
799 (pascal_language::name_of_this): New member function.
800 * rust-lang.c (rust_language_data): Remove la_name_of_this
801 initializer.
802 * symtab.c (lookup_language_this): Update call to name_of_this.
803 (lookup_symbol_aux): Likewise.
804 * valops.c (value_of_this): Likewise.
805
806 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
807
808 * ada-lang.c (ada_language_data): Remove
809 la_struct_too_deep_ellipsis initializer.
810 (ada_language::struct_too_deep_ellipsis): New member function.
811 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
812 initializer.
813 (cplus_language_data): Likewise.
814 (asm_language_data): Likewise.
815 (minimal_language_data): Likewise.
816 * cp-valprint.c (cp_print_value): Update call to
817 struct_too_deep_ellipsis.
818 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
819 initializer.
820 * f-lang.c (f_language_data): Likewise.
821 (f_language::struct_too_deep_ellipsis): New member function.
822 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
823 initializer.
824 * language.c (unknown_language_data): Likewise.
825 (auto_language_data): Likewise.
826 * language.h (language_data): Delete la_struct_too_deep_ellipsis
827 member variable.
828 (language_defn::struct_too_deep_ellipsis): New member function.
829 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
830 initializer.Q
831 * objc-lang.c (objc_language_data): Likewise.
832 * opencl-lang.c (opencl_language_data): Likewise.
833 * p-lang.c (pascal_language_data): Likewise.
834 * rust-lang.c (rust_language_data): Likewise.
835 * valprint.c (val_print_check_max_depth): Update call to
836 struct_too_deep_ellipsis.
837
838 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
839
840 * MAINTAINERS (Write After Approval): Add myself.
841
842 2020-09-15 Tom Tromey <tom@tromey.com>
843
844 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
845 Remove.
846
847 2020-09-15 Tom Tromey <tom@tromey.com>
848
849 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
850 and TYPE_CODE_METHODPTR cases.
851 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
852 (c_value_print_inner): Update.
853 * valprint.c (generic_value_print_memberptr): New function, from
854 c_value_print_memberptr.
855 (generic_value_print): Use it. Call cplus_print_method_ptr.
856
857 2020-09-15 Tom Tromey <tromey@adacore.com>
858
859 * python/python-internal.h (PyInt_FromLong): Remove define.
860 * python/py-value.c (convert_value_from_python): Use
861 gdb_py_object_from_longest.
862 * python/py-type.c (typy_get_code): Use
863 gdb_py_object_from_longest.
864 * python/py-symtab.c (salpy_get_line): Use
865 gdb_py_object_from_longest.
866 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
867 gdb_py_object_from_longest.
868 * python/py-record.c (recpy_gap_reason_code): Use
869 gdb_py_object_from_longest.
870 * python/py-record-btrace.c (recpy_bt_insn_size)
871 (recpy_bt_func_level, btpy_list_count): Use
872 gdb_py_object_from_longest.
873 * python/py-infthread.c (gdbpy_create_ptid_object): Use
874 gdb_py_object_from_longest. Fix error handling.
875 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
876 gdb_py_object_from_longest.
877 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
878 gdb_py_object_from_longest.
879 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
880 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
881 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
882
883 2020-09-15 Tom Tromey <tromey@adacore.com>
884
885 * python/python.c (gdbpy_parameter_value): Use
886 gdb_py_object_from_ulongest.
887
888 2020-09-15 Tom Tromey <tromey@adacore.com>
889
890 * python/py-infevents.c (create_register_changed_event_object):
891 Use gdb_py_object_from_longest.
892 * python/py-exitedevent.c (create_exited_event_object): Use
893 gdb_py_object_from_longest.
894
895 2020-09-15 Tom Tromey <tromey@adacore.com>
896
897 * python/python.c (gdbpy_parameter_value): Use
898 gdb_py_object_from_longest.
899 * python/py-type.c (convert_field, typy_range): Use
900 gdb_py_object_from_longest.
901 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
902 gdb_py_object_from_longest.
903 * python/py-lazy-string.c (stpy_get_length): Use
904 gdb_py_object_from_longest.
905 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
906 gdb_py_object_from_longest.
907 * python/py-infevents.c (create_memory_changed_event_object): Use
908 gdb_py_object_from_longest.
909 * python/py-inferior.c (infpy_get_num): Use
910 gdb_py_object_from_longest.
911 (infpy_get_pid): Likewise.
912
913 2020-09-15 Tom Tromey <tromey@adacore.com>
914
915 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
916 defines.
917 * python/py-value.c (valpy_long): Use
918 gdb_py_object_from_ulongest.
919 * python/py-symtab.c (salpy_get_pc): Use
920 gdb_py_object_from_ulongest.
921 (salpy_get_last): Likewise.
922 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
923 gdb_py_object_from_ulongest.
924 * python/py-lazy-string.c (stpy_get_address): Use
925 gdb_py_object_from_ulongest.
926 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
927 * python/py-arch.c (archpy_disassemble): Use
928 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
929 error handling.
930
931 2020-09-15 Tom Tromey <tromey@adacore.com>
932
933 * python/python-internal.h (gdb_py_long_from_longest): Remove
934 defines.
935 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
936 * python/py-type.c (convert_field, typy_get_sizeof): Use
937 gdb_py_object_from_longest.
938 * python/py-record-btrace.c (btpy_list_index): Use
939 gdb_py_object_from_longest.
940
941 2020-09-15 Tom Tromey <tromey@adacore.com>
942
943 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
944 * python/py-record.c (recpy_element_number): Use
945 gdb_py_object_from_longest.
946 (recpy_gap_number): Likewise.
947
948 2020-09-15 Tom Tromey <tromey@adacore.com>
949
950 * top.c (ui::ui): Update.
951 (highest_ui_num): Remove.
952 * top.h (struct ui) <num>: Remove.
953
954 2020-09-15 Tom Tromey <tromey@adacore.com>
955
956 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
957 * ui-style.c (ansi_regex_text): Now array.
958 * rust-exp.y (number_regex_text): Now array.
959 * linespec.c (linespec_quote_characters): Now array.
960 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
961 Now arrays.
962
963 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
964
965 * debuginfod-support.c (debuginfod_client_deleter): New.
966 (debuginfod_client_up): New.
967 (debuginfod_init): Return debuginfod_client_up.
968 (debuginfod_source_query): Adjust.
969 (debuginfod_debuginfo_query): Adjust.
970
971 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * debuginfod-support.c (debuginfod_source_query): Use
974 make_unique_xstrdup.
975
976 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
977
978 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
979 with `type::instance_flags`.
980
981 2020-09-14 Michael Mullin <masmullin@gmail.com>
982
983 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
984 Remove baton parameter.
985
986 2020-09-14 Pedro Alves <pedro@palves.net>
987
988 * Makefile.in (SELFTESTS_SRCS): Add
989 unittests/enum-flags-selftests.c.
990 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
991 btrace_function_flags instead of enum btrace_function_flag.
992 * compile/compile-c-types.c (convert_qualified): Use
993 enum_flags::raw.
994 * compile/compile-cplus-symbols.c (convert_one_symbol)
995 (convert_symbol_bmsym):
996 * compile/compile-cplus-types.c (compile_cplus_convert_method)
997 (compile_cplus_convert_struct_or_union_methods)
998 (compile_cplus_instance::convert_qualified_base):
999 * go-exp.y (parse_string_or_char): Add cast to int.
1000 * unittests/enum-flags-selftests.c: New file.
1001 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1002 type to btrace_thread_flags from btrace_thread_flag.
1003 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1004 local's type to btrace_thread_flags from btrace_thread_flag. Add
1005 cast in DEBUG call.
1006
1007 2020-09-14 Pedro Alves <pedro@palves.net>
1008
1009 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1010 * gdbtypes.c (address_space_name_to_int): Rename to ...
1011 (address_space_name_to_type_instance_flags): ... this.
1012 (address_space_int_to_name): Rename to ...
1013 (address_space_type_instance_flags_to_name): ... this.
1014 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
1019 * type-stack.h (type_stack::insert): Likewise.
1020
1021 2020-09-14 Pedro Alves <pedro@palves.net>
1022 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * avr-tdep.c (avr_address_class_type_flags): Return
1025 type_instance_flags.
1026 (avr_address_class_type_flags_to_name): Take a
1027 type_instance_flags.
1028 (avr_address_class_name_to_type_flags): Return bool and take a
1029 type_instance_flags.
1030 * d-lang.c (build_d_types): Use type::set_instance_flags.
1031 * ft32-tdep.c (ft32_address_class_type_flags): Return
1032 type_instance_flags.
1033 (ft32_address_class_type_flags_to_name): Take a
1034 type_instance_flags.
1035 (ft32_address_class_name_to_type_flags): Return bool and take a
1036 type_instance_flags.
1037 (ft32_gdbarch_init): Use type::set_instance_flags.
1038 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1039 * gdbarch.h, gdbarch.c: Regenerate.
1040 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1041 (address_class_name_to_type_flags): Use type_instance_flags and
1042 bool.
1043 * gdbtypes.c (address_space_name_to_int)
1044 (address_space_int_to_name, make_qualified_type): Use
1045 type_instance_flags.
1046 (make_qualified_type): Use type_instance_flags and
1047 type::set_instance_flags.
1048 (make_type_with_address_space, make_cv_type, make_vector_type)
1049 (check_typedef): Use type_instance_flags.
1050 (recursive_dump_type): Cast type_instance_flags to unsigned for
1051 printing.
1052 (copy_type_recursive): Use type::set_instance_flags.
1053 (gdbtypes_post_init): Use type::set_instance_flags.
1054 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1055 <m_instance_flags>: ... this.
1056 <instance_flags, set_instance_flags>: New methods.
1057 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1058 (SET_TYPE_INSTANCE_FLAGS): New.
1059 (address_space_name_to_int, address_space_int_to_name)
1060 (make_type_with_address_space): Pass flags using
1061 type_instance_flags instead of int.
1062 * stabsread.c (cleanup_undefined_types_noname): Use
1063 type::set_instance_flags.
1064 * s390-tdep.c (s390_address_class_type_flags): Return
1065 type_instance_flags.
1066 (s390_address_class_type_flags_to_name): Take a
1067 type_instance_flags.
1068 (s390_address_class_name_to_type_flags): Return bool and take a
1069 type_instance_flags.
1070 * type-stack.c (type_stack::follow_types): Use
1071 type_instance_flags.
1072 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1073
1074 2020-09-14 Tom Tromey <tromey@adacore.com>
1075
1076 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1077 * x86-tdep.c (x86_is_thunk_register_name)
1078 (x86_in_indirect_branch_thunk): Update.
1079 * sparc64-tdep.c (sparc64_fpu_register_names)
1080 (sparc64_cp0_register_names, sparc64_register_names)
1081 (sparc64_pseudo_register_names): Now const.
1082 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1083 cp0_registers_num>: Now const.
1084 * sparc-tdep.c (sparc_core_register_names)
1085 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1086 (sparc32_pseudo_register_names): Now const.
1087 (validate_tdesc_registers): Update.
1088 * rust-lang.c (rust_extensions): Now const.
1089 * p-lang.c (p_extensions): Now const.
1090 * objc-lang.c (objc_extensions): Now const.
1091 * nto-tdep.c (nto_thread_state_str): Now const.
1092 * moxie-tdep.c (moxie_register_names): Now const.
1093 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1094 Now const.
1095 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1096 (mips_linux_reg_names): Now const.
1097 (mips_gdbarch_init): Update.
1098 * microblaze-tdep.c (microblaze_register_names): Now const.
1099 * m68k-tdep.c (m68k_register_names): Now const.
1100 * m32r-tdep.c (m32r_register_names): Now const.
1101 * ia64-tdep.c (ia64_register_names): Now const.
1102 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1103 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1104 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1105 ymm_avx512_register_names, pkeys_register_names>: Now const.
1106 * i386-tdep.c (i386_register_names, i386_zmm_names)
1107 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1108 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1109 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1110 * f-lang.c (f_extensions): Now const.
1111 * d-lang.c (d_extensions): Now const.
1112 * csky-tdep.c (csky_register_names): Now const.
1113 * charset.c (default_charset_names, charset_enum): Now const.
1114 (_initialize_charset): Update.
1115 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1116 const.
1117 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1118 (bsd_uthread_solib_loaded): Update.
1119 (bsd_uthread_state): Now const.
1120 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1121 (amd64_ymm_avx512_names, amd64_ymmh_names)
1122 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1123 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1124 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1125 (amd64_dword_names): Now const.
1126 * agent.c (can_use_agent_enum): Now const.
1127 * ada-tasks.c (task_states, long_task_states): Now const.
1128 * ada-lang.c (known_runtime_file_name_patterns)
1129 (known_auxiliary_function_name_patterns, attribute_names)
1130 (standard_exc, ada_extensions): Now const.
1131
1132 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1133
1134 * bcache.h (struct bcache) <bcache>: Remove constructor.
1135 <m_hash_function, m_compare_function>: Remove.
1136 <~bcache>: Make virtual.
1137 <compare>: Remove static method, introduce virtual method.
1138 <default_hash>: Remove.
1139 <hash>: New virtual method.
1140 * bcache.c (bcache::expand_hash_table): Update.
1141 (bcache::insert): Update.
1142 (bcache::hash): New.
1143 (bcache::compare): Update comment and parameter names.
1144 * gdbtypes.c (types_deeply_equal): Update.
1145 * psymtab.h (struct psymbol_bcache): New struct.
1146 (class psymtab_storage) <psymtab_storage>: Make default.
1147 <psymbol_cache>: Change type to psymbol_bcache.
1148 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1149 (psymbol_hash): Change to...
1150 (psymbol_bcache::hash): ... this.
1151 (psymbol_compare): Change to...
1152 (psymbol_bcache::compare): ... this.
1153
1154 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1157 checking for initial lwp.
1158
1159 2020-09-14 Tom Tromey <tromey@adacore.com>
1160
1161 * m68k-tdep.c (m68k_extract_return_value): Use
1162 pointer_result_regnum.
1163 (m68k_store_return_value): Likewise.
1164 (m68k_reg_struct_return_p): Handle vectors and arrays.
1165 (m68k_return_value): Handle arrays.
1166 (m68k_svr4_return_value): Fix single-element aggregate handling.
1167 Handle long double. Adjust for embedded ABI.
1168 (m68k_svr4_init_abi): Set pointer_result_regnum.
1169 (m68k_embedded_init_abi): New function.
1170 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1171 (m68k_osabi_sniffer): New function.
1172 (_initialize_m68k_tdep): Register osabi sniffer.
1173 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1174 member.
1175
1176 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1179 with gdb::unique_xmalloc_ptr<char>.
1180
1181 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1182
1183 * xml-support.h (xml_fetch_another): Change type to be a
1184 function_view.
1185 (xml_process_xincludes): Remove baton parameter.
1186 (xml_fetch_content_from_file): Change baton parameter to
1187 dirname.
1188 * xml-support.c (struct xinclude_parsing_data)
1189 <xinclude_parsing_data>: Remove baton parameter.
1190 <fetcher_baton>: Remove.
1191 (xinclude_start_include): Adjust.
1192 (xml_process_xincludes): Adjust.
1193 (xml_fetch_content_from_file): Replace baton parameter with
1194 dirname.
1195 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1196 (xml_init_syscalls_info): Use a lambda.
1197 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1198 (file_read_description_xml): Use a lambda.
1199 (fetch_available_features_from_target): Change baton parameter
1200 to target_ops.
1201 (target_read_description_xml): Use a lambda.
1202 (target_fetch_description_xml): Use a lambda.
1203 (string_read_description_xml): Update.
1204
1205 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1208 uses with type::endianity_is_not_default.
1209
1210 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * gdbtypes.h (struct type) <endianity_is_not_default,
1213 set_endianity_is_not_default>: New methods.
1214 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1215 type::endianity_is_not_default, change all write call sites to
1216 use type::set_endianity_is_not_default.
1217
1218 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1219
1220 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1221 uses with type::is_fixed_instance.
1222
1223 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1224
1225 * gdbtypes.h (struct type) <is_fixed_instance,
1226 set_is_fixed_instance>: New methods.
1227 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1228 write call sites to use type::set_is_fixed_instance.
1229
1230 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1231
1232 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1233 uses with type::is_gnu_ifunc.
1234
1235 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1238 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1239 use type::set_is_gnu_ifunc.
1240
1241 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1244 uses with type::stub_is_supported.
1245
1246 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1249 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1250 use type::set_stub_is_supported.
1251
1252 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1253
1254 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1255 uses with type::is_vector.
1256
1257 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1260 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1261 use type::set_is_vector.
1262
1263 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1266 uses with type::has_varargs.
1267
1268 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1269
1270 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1271 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1272 use type::set_has_varargs.
1273
1274 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1275
1276 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1277 uses with type::is_prototyped.
1278
1279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1280
1281 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1282 New methods.
1283 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1284 call sites to use type::set_is_prototyped.
1285
1286 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1287
1288 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1289 uses with type::target_is_stub.
1290
1291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1292
1293 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1294 New methods.
1295 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1296 sites to use type::set_target_is_stub.
1297
1298 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1299
1300 * gdbtypes.h (TYPE_STUB): Remove, replace all
1301 uses with type::is_stub.
1302
1303 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1304
1305 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1306 (TYPE_STUB): Use type::is_stub, change all write call sites to
1307 use type::set_is_stub.
1308
1309 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1312 type::has_no_signedness.
1313
1314 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1315
1316 * gdbtypes.h (struct type) <has_no_signedness,
1317 set_has_no_signedness>: New methods.
1318 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1319 call sites to use type::set_has_no_signedness.
1320
1321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1322
1323 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1324 type::is_unsigned.
1325
1326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1327
1328 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1329 methods.
1330 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1331 sites to use type::set_is_unsigned.
1332
1333 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1334 Adam Renquinha <arenquinha@cimeq.qc.ca>
1335
1336 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1337 pointer and stack frame offset when unwinding.
1338
1339 2020-09-13 Pedro Alves <pedro@palves.net>
1340
1341 * NEWS: Document "-break-insert --qualified".
1342 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1343
1344 2020-09-13 Pedro Alves <pedro@palves.net>
1345
1346 * linespec.c (classify_mtype, compare_msyms): Delete.
1347 (search_minsyms_for_name): Remove classification logic. Instead
1348 filter out trampoline symbols if we also found an external
1349 function of the same name.
1350
1351 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1352
1353 * NEWS: Create a new section for the next release branch.
1354 Rename the section of the current branch, now that it has
1355 been cut.
1356
1357 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1358
1359 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1360 * version.in: Bump version to 11.0.50.DATE-git.
1361
1362 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1363
1364 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1365
1366 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1367 Felix Willgerodt <Felix.Willgerodt@intel.com>
1368
1369 * gdbarch.sh: Added bfloat16 type.
1370 * gdbarch.c: Regenerated.
1371 * gdbarch.h: Regenerated.
1372 * gdbtypes.c (floatformats_bfloat16): New struct.
1373 (gdbtypes_post_init): Add builtin_bfloat16.
1374 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1375 (floatformats_bfloat16): New struct.
1376 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1377 (i386_ymm_type): Add field "v16_bfloat16"
1378 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1379 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1380 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1381 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1382 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1383 * features/i386/64bit-avx512.c: Regenerated.
1384 * features/i386/64bit-sse.xml: Add bfloat16 type.
1385 * features/i386/64bit-sse.c: Regenerated.
1386
1387 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1388
1389 * i386-tdep.c (i386_zmm_type): Fix field names.
1390 (i386_ymm_type): Fix field names.
1391
1392 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1393
1394 * breakpoint.c: Fix typo in the help message of the
1395 "set breakpoint condition-evaluation" command.
1396
1397 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1398
1399 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1400 * (nbsd_nat_target::pid_to_exec_file)
1401 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1402 (nbsd_nat_target::post_startup_inferior)
1403 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1404 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1405 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1406 * (nbsd_thread_lister): Remove.
1407
1408 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1409
1410 * fork-inferior.c (startup_inferior): Avoid double free.
1411
1412 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1413
1414 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1415 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1416
1417 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1418
1419 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1420 * netbsd-nat.c: Include <sys/ptrace.h>.
1421 * (netbsd_nat::enable_proc_events): Add.
1422
1423 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1424
1425 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1426 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1427 (netbsd_nat::for_each_thread): Add.
1428 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1429 "gdbsupport/common-debug.h".
1430 * (netbsd_nat::netbsd_thread_lister)
1431 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1432 (netbsd_nat::for_each_thread): Add.
1433
1434 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1435
1436 * netbsd-nat.h: Include <unistd.h>.
1437 * (netbsd_nat::pid_to_exec_file): Add.
1438 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1439 * (netbsd_nat::pid_to_exec_file) Add.
1440
1441 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1442
1443 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1444
1445 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1446
1447 * netbsd-nat.h: New file.
1448 * netbsd-nat.c: Likewise.
1449
1450 2020-09-09 Tom Tromey <tromey@adacore.com>
1451
1452 * ada-lang.c (remove_extra_symbols): Do not increment when
1453 removing an element
1454
1455 2020-09-08 Tom Tromey <tromey@adacore.com>
1456
1457 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1458
1459 2020-09-08 Tom Tromey <tromey@adacore.com>
1460
1461 PR win32/25302:
1462 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1463 (gdb_bfd_init_data): New function.
1464 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1465
1466 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1467
1468 * infrun.c (fetch_inferior_event): Use
1469 `switch_to_target_no_thread` to switch the target.
1470
1471 2020-09-06 Tom Tromey <tom@tromey.com>
1472
1473 * symfile.h (dwarf2_free_objfile): Don't declare.
1474
1475 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1476
1477 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1478 to match 16 byte real/complex type generated by Flang compiler.
1479
1480 2020-09-03 Tom de Vries <tdevries@suse.de>
1481
1482 PR breakpoint/26546
1483 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1484 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1485
1486 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * maint.c (index_digits): New function.
1489 (struct maint_print_section_data): Remove.
1490 (print_bfd_section_info): Remove print_data parameter, add arg
1491 and index_digits.
1492 (print_objfile_section_info): Likewise.
1493 (print_bfd_section_info_maybe_relocated): Likewise (plus
1494 objfile).
1495 (maintenance_info_sections): Adjust calls.
1496
1497 2020-09-02 Tom Tromey <tromey@adacore.com>
1498
1499 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1500 for null pointers.
1501 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1502
1503 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 * bcache.h (struct bcache) <insert>: Change type of `added` to
1506 pointer to bool.
1507 * bcache.c (bcache::insert): Likewise.
1508 * gdbtypes.c (check_types_worklist): Adjust.
1509 * psymtab.c (add_psymbol_to_bcache): Adjust.
1510
1511 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1512
1513 * corelow.c (unordered_set): Include.
1514 (class core_target): Add field 'm_core_unavailable_mappings'.
1515 (core_target::build_file_mappings): Print only one warning
1516 per inaccessible file. Add unavailable/broken mappings
1517 to m_core_unavailable_mappings.
1518 (core_target::xfer_partial): Call...
1519 (core_target::xfer_memory_via_mappings): New method.
1520
1521 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1524 type to bool.
1525
1526 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * dwarf2/read.c (struct field_info): Fix indentation.
1529
1530 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1531
1532 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1533 ordering in comment.
1534 * frame.c (frame_id_eq): Fix indentation.
1535
1536 2020-08-31 Scott Linder <scott@scottlinder.com>
1537 Simon Marchi <simon.marchi@efficios.com>
1538
1539 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1540 inline frame ids in outer frame.
1541
1542 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1543
1544 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1545 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1546 (outer_frame_id): Use FID_STACK_OUTER instead of
1547 FID_STACK_INVALID.
1548 (frame_id_p): Don't check for outer_frame_id.
1549
1550 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1553 regnum/frame in value. Call allocate_value_lazy.
1554 * frame.c (frame_unwind_register_value): Use
1555 val_print_not_saved.
1556
1557 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1560
1561 2020-08-29 Pedro Alves <pedro@palves.net>
1562
1563 * progspace.c (print_program_space): Use all_inferiors. Switch to
1564 the inferior before calling target_pid_to_str.
1565
1566 2020-08-28 Tom Tromey <tom@tromey.com>
1567
1568 * xcoffread.c (xcoff_end_psymtab): Update comment.
1569 * dbxread.c (dbx_end_psymtab): Update comment.
1570
1571 2020-08-28 Tom de Vries <tdevries@suse.de>
1572
1573 PR breakpoint/26544
1574 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1575 event_location.
1576 (create_breakpoint): Same.
1577 (base_breakpoint_decode_location): Same.
1578 (bkpt_create_sals_from_location): Same.
1579 (bkpt_decode_location): Same.
1580 (bkpt_probe_create_sals_from_location): Same.
1581 (bkpt_probe_decode_location): Same.
1582 (tracepoint_create_sals_from_location): Same.
1583 (tracepoint_decode_location): Same.
1584 (tracepoint_probe_decode_location): Same.
1585 (strace_marker_create_sals_from_location): Same.
1586 (strace_marker_decode_location): Same.
1587 (create_sals_from_location_default): Same.
1588 (decode_location_default): Same.
1589 * breakpoint.h (struct breakpoint_ops): Same.
1590 (create_breakpoint): Same.
1591 * linespec.h (decode_line_full): Same.
1592 * linespec.c (decode_line_full): Same. Throw error if
1593 result.size () == 0.
1594
1595 2020-08-27 Pedro Alves <pedro@palves.net>
1596
1597 PR gdb/26524
1598 * breakpoint.c (until_break_fsm) <location_breakpoint,
1599 caller_breakpoint>: Delete fields.
1600 <breakpoints>: New field.
1601 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1602 two individual breakpoints.
1603 (until_break_fsm::should_stop): Loop over breakpoints in the
1604 breakpoint vector.
1605 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1606 vector.
1607 (until_break_command): Handle location expanding into multiple
1608 sals.
1609
1610 2020-08-27 Pedro Alves <pedro@palves.net>
1611
1612 PR gdb/26523
1613 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1614 bp_until breakpoints user-specified locations. Update intro
1615 comment.
1616
1617 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1620 gdb_bfd_sections): New.
1621 * maint.c (print_bfd_section_info): Change param type to
1622 maint_print_section_data.
1623 (print_objfile_section_info): Likewise.
1624 (print_bfd_section_info_maybe_relocated): Likewise.
1625 (maintenance_info_sections): Use gdb_bfd_sections.
1626
1627 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1628
1629 * MAINTAINERS: Add ARC target and maintainer.
1630
1631 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1632
1633 * configure.tgt: ARC support for GNU/Linux.
1634 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1635 * arc-linux-tdep.c: New file.
1636 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1637 * arc-tdep.c (arc_write_pc): Use it.
1638
1639 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1640
1641 * arc-tdep.c (arc_check_for_hardware_loop): New.
1642 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1643
1644 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1645
1646 * arc-tdep.h: Include "gdbarch.h".
1647
1648 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1649
1650 * arch/arc.h
1651 (arc_gdbarch_features): New class to stir the selection of target XML.
1652 (arc_create_target_description): Use FEATURES to choose XML target.
1653 (arc_lookup_target_description): Use arc_create_target_description
1654 to create _new_ target descriptions or return the already created
1655 ones if the FEATURES is the same.
1656 * arch/arc.c: Implementation of prototypes described above.
1657 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1658 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1659 * arc-tdep.c (*_feature_name): Make feature names consistent.
1660 (arc_register_feature): A new struct to hold information about
1661 registers of a particular target/feature.
1662 (arc_check_tdesc_feature): Check if XML provides registers in
1663 compliance with ARC_REGISTER_FEATURE structs.
1664 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1665 (determine_*_reg_feature_set): Which feature name to look for.
1666 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1667 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1668 to expected ISA enums to be used in arc_gdbarch_features structs.
1669 * features/Makefile (FEATURE_XMLFILES): Add new files.
1670 * gdb/features/arc/v1-aux.c: New file.
1671 * gdb/features/arc/v1-aux.xml: Likewise.
1672 * gdb/features/arc/v1-core.c: Likewise.
1673 * gdb/features/arc/v1-core.xml: Likewise.
1674 * gdb/features/arc/v2-aux.c: Likewise.
1675 * gdb/features/arc/v2-aux.xml: Likewise.
1676 * gdb/features/arc/v2-core.c: Likewise.
1677 * gdb/features/arc/v2-core.xml: Likewise.
1678 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1679
1680 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1681 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 PR m2/26372
1684 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1685 an assert. Remove single element array indexing pattern as the
1686 MULTI_SUBSCRIPT support will handle this case too.
1687
1688 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * value.h (valprint_check_validity): Move declaration from
1691 here...
1692 * valprint.h (valprint_check_validity): ... to here.
1693
1694 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * debug.h: New file.
1697 * debug.c (debug_prefixed_vprintf): New function.
1698 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1699 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1700
1701 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1702
1703 * infrun.h (infrun_debug_printf_1): New function declaration.
1704 (infrun_debug_printf): New macro.
1705 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1706 throughout.
1707 (infrun_debug_printf): New function.
1708 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1709 (handle_jit_event): Likewise.
1710
1711 2020-08-21 Mark Wielaard <mark@klomp.org>
1712
1713 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1714
1715 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * frame.c (enum class frame_id_status): New.
1718 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1719 (fprintf_frame): Update.
1720 (compute_frame_id): Set frame id status to "computing" on entry.
1721 Set it back to "not_computed" on failure and to "computed" on
1722 success.
1723 (get_frame_id): Assert the frame id is not being computed.
1724 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1725 (create_new_frame): Likewise.
1726 (frame_cleanup_after_sniffer): Update assert.
1727
1728 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * regcache.c (pid_ptid_regcache_map): New type.
1731 (target_ptid_regcache_map): Remove.
1732 (target_pid_ptid_regcache_map): New type.
1733 (regcaches): Change type to target_pid_ptid_regcache_map.
1734 (get_thread_arch_aspace_regcache): Update.
1735 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1736 case.
1737 (regcaches_size): Update.
1738 (regcache_count): Update.
1739 (registers_changed_ptid_target_pid_test): New.
1740 (_initialize_regcache): Register new test.
1741
1742 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * regcache.c (regcache_count): New.
1745 (struct regcache_test_data): New.
1746 (regcache_test_data_up): New.
1747 (populate_regcaches_for_test): New.
1748 (regcaches_test): Remove.
1749 (get_thread_arch_aspace_regcache_test): New.
1750 (registers_changed_ptid_all_test): New.
1751 (registers_changed_ptid_target_test): New.
1752 (registers_changed_ptid_target_ptid_test): New.
1753 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1754 (_initialize_regcache): Register new tests.
1755
1756 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1757
1758 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1759 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1760 gdbarch and aspace parameter. Use current inferior's aspace.
1761 Validate regcache's arch value.
1762 (regcaches_test): Update.
1763
1764 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * regcache.c (regcaches_test): Call registers_changed.
1767
1768 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1769
1770 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1771
1772 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1773
1774 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1775 to find the end of prologue for flang compiled binaries.
1776 * arm-tdep.c (arm_skip_prologue): Likewise.
1777 * i386-tdep.c (i386_skip_prologue): Likewise.
1778 * producer.c (producer_is_llvm): New function.
1779 (producer_parsing_tests): Added new tests for clang/flang.
1780 * producer.h (producer_is_llvm): New declaration.
1781
1782 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * linux-nat.c (linux_nat_debug_printf): New function.
1785 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1786
1787 2020-08-18 Aaron Merey <amerey@redhat.com>
1788
1789 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1790 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1791 (CLIBS): Add DEBUGINFOD_LIBS.
1792
1793 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1794
1795 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1796 'gdbarch_num_regs'.
1797
1798 2020-08-17 Tom Tromey <tromey@adacore.com>
1799
1800 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1801 ada_get_decoded_value returns NULL.
1802
1803 2020-08-17 Tom Tromey <tromey@adacore.com>
1804
1805 * python/py-inferior.c (infpy_search_memory): Use
1806 gdb_py_object_from_ulongest.
1807 * python/py-infevents.c (create_inferior_call_event_object)
1808 (create_memory_changed_event_object): Use
1809 gdb_py_object_from_ulongest.
1810 * python/py-linetable.c (ltpy_entry_get_pc): Use
1811 gdb_py_object_from_ulongest.
1812
1813 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 * loc.c (class symbol_needs_eval_context): Fix indentation.
1816
1817 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1818
1819 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1820 bool.
1821
1822 2020-08-17 Tom de Vries <tdevries@suse.de>
1823
1824 PR gdb/26393
1825 * gdbtypes.c (dump_dynamic_prop): New function.
1826 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1827
1828 2020-08-15 Tom de Vries <tdevries@suse.de>
1829
1830 PR backtrace/26390
1831 * stack.c (print_frame_args): Temporarily set the selected
1832 frame to FRAME while printing the frame's arguments.
1833
1834 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1835
1836 PR breakpoints/26385
1837 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1838 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1839
1840 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1841
1842 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1843 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1844 and >= to check return value instead of == -1 and != -1.
1845
1846 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1847
1848 * utils.h (class gdb_argv) <as_array_view>: New method.
1849 * utils.c (gdb_argv_as_array_view_test): New.
1850 (_initialize_utils): Register selftest.
1851 * maint.c (maintenance_selftest): Use the new method.
1852
1853 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1854
1855 * target.h (supports_dumpcore, dumpcore): New
1856 function declarations.
1857 * target.c (supports_dumpcore, dumpcore): New
1858 functions.
1859 * target-delegates.c: Rebuild.
1860 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1861 and target_dumpcore ().
1862
1863 2020-08-13 Aaron Merey <amerey@redhat.com>
1864
1865 * debuginfod-support.c: Replace global variables with user_data.
1866
1867 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * maint.c (maintenance_selftest): Split args and pass array_view
1870 to run_tests.
1871
1872 2020-08-12 Luis Machado <luis.machado@linaro.org>
1873
1874 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1875 type's length.
1876 Use %s and pulongest to print the length.
1877
1878 2020-08-12 Pedro Alves <palves@redhat.com>
1879
1880 * NEWS: Move "Multi-target debugging support" item to the
1881 "Changes since GDB 9" section.
1882
1883 2020-08-12 Pedro Alves <palves@redhat.com>
1884
1885 PR gdb/26336
1886 * progspace.c (program_space::remove_objfile): Invalidate the
1887 frame cache.
1888
1889 2020-08-11 Tom de Vries <tdevries@suse.de>
1890
1891 * MAINTAINERS: Mark ms1 as deleted.
1892
1893 2020-08-10 Luis Machado <luis.machado@linaro.org>
1894
1895 PR gdb/26310
1896
1897 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1898 act accordingly.
1899 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1900 movz/str/stur/stp skipping behavior.
1901
1902 2020-08-10 Luis Machado <luis.machado@linaro.org>
1903
1904 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1905 struct user_sve_header instead of struct sve_context.
1906
1907 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * read.h (dwarf2_fetch_die_loc_sect_off,
1910 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1911 `void *` parameter with function_view.
1912 * read.c (dwarf2_fetch_die_loc_sect_off,
1913 dwarf2_fetch_die_loc_cu_off): Likewise.
1914 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1915 (per_cu_dwarf_call): Adjust.
1916 (get_frame_address_in_block_wrapper): Remove.
1917 (indirect_synthetic_pointer): Adjust.
1918 (get_ax_pc): Remove.
1919 (dwarf2_compile_expr_to_ax): Adjust.
1920
1921 2020-08-08 Tom de Vries <tdevries@suse.de>
1922
1923 PR build/26344
1924 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1925 constructor.
1926 * regcache.c (get_thread_arch_aspace_regcache): Same.
1927
1928 2020-08-07 Tom Tromey <tromey@adacore.com>
1929
1930 * ravenscar-thread.c
1931 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1932 New method.
1933 (ravenscar_thread_target::wait): Check
1934 runtime_initialized.
1935 (ravenscar_thread_target::prepare_to_store)
1936 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1937 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1938 (ravenscar_thread_target::stopped_by_watchpoint)
1939 (ravenscar_thread_target::stopped_data_address)
1940 (ravenscar_thread_target::core_of_thread): Use
1941 scoped_restore_current_thread and
1942 set_base_thread_from_ravenscar_task.
1943
1944 2020-08-07 Tom Tromey <tromey@adacore.com>
1945
1946 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1947
1948 2020-08-07 Tom Tromey <tromey@adacore.com>
1949
1950 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1951 update_inferior_ptid before update_thread_list.
1952 (temporarily_change_regcache_ptid): New class.
1953 (ravenscar_thread_target::fetch_registers)
1954 (ravenscar_thread_target::store_registers)
1955 (ravenscar_thread_target::prepare_to_store): Use base thread when
1956 forwarding operation.
1957
1958 2020-08-07 Tom Tromey <tromey@adacore.com>
1959
1960 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1961 "is_pid" case.
1962
1963 2020-08-07 Tom Tromey <tromey@adacore.com>
1964
1965 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1966 New methods.
1967 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1968 first.
1969 (ravenscar_thread_target::add_thread): Rename from
1970 ravenscar_add_thread.
1971 (ravenscar_thread_target::update_thread_list): Use a lambda.
1972 (ravenscar_thread_target::xfer_partial): New method.
1973
1974 2020-08-07 Tom Tromey <tromey@adacore.com>
1975
1976 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1977 gdb::function_view.
1978 (iterate_over_live_ada_tasks): Change type of argument.
1979 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1980 of argument.
1981
1982 2020-08-07 Tom Tromey <tromey@adacore.com>
1983
1984 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1985 Remove.
1986 (ravenscar_thread_target::extra_thread_info): Remove.
1987 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1988 defer to target beneath for non-Ravenscar threads.
1989
1990 2020-08-07 Tom Tromey <tromey@adacore.com>
1991
1992 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1993 get_base_thread_from_ravenscar_task>: Now methods.
1994 <m_cpu_map>: New member.
1995 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1996 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1997 (ravenscar_thread_target::task_is_currently_active): Update.
1998 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1999 Now a method.
2000 (ravenscar_thread_target::add_active_thread): Put initial thread
2001 into the m_cpu_map.
2002
2003 2020-08-07 Tom Tromey <tromey@adacore.com>
2004
2005 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2006 event_ptid.
2007
2008 2020-08-07 Tom Tromey <tromey@adacore.com>
2009
2010 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2011 runtime_initialized.
2012
2013 2020-08-07 Tom Tromey <tromey@adacore.com>
2014
2015 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2016 add_active_thread.
2017 (ravenscar_thread_target::add_active_thread): Now public.
2018 (ravenscar_inferior_created): Call add_active_thread after pushing
2019 the target.
2020
2021 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2022
2023 * regcache.c (ptid_regcache_map): New type.
2024 (target_ptid_regcache_map): New type.
2025 (regcaches): Change type to target_ptid_regcache_map.
2026 (get_thread_arch_aspace_regcache): Update to regcaches' new
2027 type.
2028 (regcache_thread_ptid_changed): Likewise.
2029 (registers_changed_ptid): Likewise.
2030 (regcaches_size): Likewise.
2031 (regcaches_test): Update.
2032 (regcache_thread_ptid_changed): Update.
2033 * regcache.h (regcache_up): New type.
2034 * gdbsupport/ptid.h (hash_ptid): New struct.
2035
2036 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * observable.h (thread_ptid_changed): Add parameter
2039 `process_stratum_target *`.
2040 * infrun.c (infrun_thread_ptid_changed): Add parameter
2041 `process_stratum_target *` and use it.
2042 (selftests): New namespace.
2043 (infrun_thread_ptid_changed): New function.
2044 (_initialize_infrun): Register selftest.
2045 * regcache.c (regcache_thread_ptid_changed): Add parameter
2046 `process_stratum_target *` and use it.
2047 (regcache_thread_ptid_changed): New function.
2048 (_initialize_regcache): Register selftest.
2049 * thread.c (thread_change_ptid): Pass target to
2050 thread_ptid_changed observable.
2051
2052 2020-08-06 Caroline Tice <cmtice@google.com>
2053
2054 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2055 (struct dwp_sections): Update field comments. Add loclists and
2056 rnglists fields.
2057 (struct virtual_v2_dwo_sections): Rename struct to
2058 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2059 size & offset fields for loclists and rnglists.
2060 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2061 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2062 skipping dummy type units.
2063 (create_dwp_hash_table): Update the large comment above the function to
2064 discuss Version 5 DWP files as well, with references. Update all the
2065 version checks in the function to check for version 5 as well. Add new
2066 section at the end to create dwp hash table for version 5.
2067 (create_dwp_v2_section): Rename function to
2068 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2069 Add V5 to error message text.
2070 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2071 into calls to create_dwp_v2_or_v5_section.
2072 (create_dwo_unit_in_dwp_v5): New function.
2073 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2074 check for version2; add else clause to handle version 5.
2075 (open_and_init_dwo_file): Add code to check dwarf version & only call
2076 create_debug_types_hash_table (with sections.types) if version is not 5;
2077 else call create_debug_type_hash_table, with sections.info.
2078 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2079 version 5.
2080 (dwarf2_locate_v5_dwp_sections): New function.
2081 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2082 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2083
2084 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2085
2086 * regcache.h (class regcache): Remove friend
2087 registers_changed_ptid.
2088 <regcache_thread_ptid_changed>: Remove.
2089 <regcaches>: Remove.
2090 * regcache.c (regcache::regcaches): Rename to...
2091 (regcaches): ... this. Make static.
2092 (get_thread_arch_aspace_regcache): Update.
2093 (regcache::regcache_thread_ptid_changed): Rename to...
2094 (regcache_thread_ptid_changed): ... this. Update.
2095 (class regcache_access): Remove.
2096 (regcaches_test): Update.
2097 (_initialize_regcache): Update.
2098 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2099 <forward_list>.
2100
2101 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * regcache.h (class regcache) <current_regcache>: Rename to...
2104 <regcaches>: ... this. Move doc here.
2105 * regcache.c (regcache::current_regcache) Rename to...
2106 (regcache::regcaches): ... this. Move doc to header.
2107 (get_thread_arch_aspace_regcache): Update.
2108 (regcache::regcache_thread_ptid_changed): Update.
2109 (registers_changed_ptid): Update.
2110 (class regcache_access) <current_regcache_size>: Rename to...
2111 <regcaches_size>: ... this.
2112 (current_regcache_test): Rename to...
2113 (regcaches_test): ... this.
2114 (_initialize_regcache): Update.
2115
2116 2020-08-06 Victor Collod <vcollod@nvidia.com>
2117
2118 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2119
2120 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2121
2122 * corelow.c (core_target::build_file_mappings): Don't output
2123 null pathname in warning.
2124
2125 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2128 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2129 gdb.dwarf2/dw2-single-line-discriminators.exp,
2130 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2131
2132 2020-08-05 Tom Tromey <tromey@adacore.com>
2133
2134 PR rust/26197:
2135 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2136 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2137 Fix off-by-one and type size errors in ordinary case.
2138
2139 2020-08-05 Tom de Vries <tdevries@suse.de>
2140
2141 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2142 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2143
2144 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2145
2146 * frame.h (frame_id_p): Return bool.
2147 (frame_id_artificial_p): Return bool.
2148 (frame_id_eq): Return bool.
2149 (has_stack_frames): Return bool.
2150 (get_selected_frame): Fix typo in comment.
2151 (get_frame_pc_if_available): Return bool.
2152 (get_frame_address_in_block_if_available): Return bool.
2153 (get_frame_func_if_available): Return bool.
2154 (read_frame_register_unsigned): Return bool.
2155 (get_frame_register_bytes): Return bool.
2156 (safe_frame_unwind_memory): Return bool.
2157 (deprecated_frame_register_read): Return bool.
2158 (frame_unwinder_is): Return bool.
2159 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2160 bool.
2161 <this_id::p>: Likewise.
2162 <prev_p>: Likewise.
2163 (frame_stash_add): Return bool.
2164 (get_frame_id): Use bool.
2165 (frame_id_build_special) Use bool.
2166 (frame_id_build_unavailable_stack): Use bool.
2167 (frame_id_build): Use bool.
2168 (frame_id_p): Return bool, use true/false instead of 1/0.
2169 (frame_id_artificial_p): Likewise.
2170 (frame_id_eq): Likewise.
2171 (frame_id_inner): Likewise.
2172 (get_frame_func_if_available): Likewise.
2173 (read_frame_register_unsigned): Likewise.
2174 (deprecated_frame_register_read): Likewise.
2175 (get_frame_register_bytes): Likewise.
2176 (has_stack_frames): Likewise.
2177 (inside_main_func): Likewise.
2178 (inside_entry_func): Likewise.
2179 (get_frame_pc_if_available): Likewise.
2180 (get_frame_address_in_block_if_available): Likewise.
2181 (frame_unwinder_is): Likewise.
2182 (safe_frame_unwind_memory): Likewise.
2183 (frame_unwind_arch): Likewise.
2184
2185 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2186
2187 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2188 type to cached_copy_status.
2189 (fprintf_frame): Adjust.
2190 (get_frame_func_if_available): Adjust.
2191 (frame_cleanup_after_sniffer): Adjust.
2192
2193 2020-08-04 Mark Wielaard <mark@klomp.org>
2194
2195 * MAINTAINERS (Write After Approval): Update email address.
2196
2197 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2200 dynamic_prop::const_val.
2201
2202 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2205 dynamic_prop::kind.
2206
2207 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2208
2209 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2210
2211 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2212
2213 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2214
2215 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2216 Jose E. Marchesi <jose.marchesi@oracle.com>
2217
2218 * configure.tgt: Add entry for bpf-*-*.
2219 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2220 (ALLDEPFILES): Add bpf-tdep.c.
2221 * bpf-tdep.c: New file.
2222 * MAINTAINERS: Add bpf target and maintainer.
2223 * NEWS: Mention the support for the new target.
2224
2225 2020-08-04 Tom de Vries <tdevries@suse.de>
2226
2227 PR symtab/23270
2228 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2229 Error.
2230
2231 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2232
2233 * syscalls/freebsd.xml: Regenerate.
2234
2235 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2236
2237 * syscalls/update-freebsd.sh: Fix usage and year range.
2238
2239 2020-08-03 Tom de Vries <tdevries@suse.de>
2240
2241 PR symtab/26333
2242 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2243 DW_LNE_lo_user/DW_LNE_hi_user range.
2244
2245 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 PR ada/26318
2248 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2249 kind.
2250
2251 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252
2253 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2254
2255 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2256
2257 * breakpoint.c (set_breakpoint_condition): Update the condition
2258 expressions after checking that the input condition string parses
2259 successfully and does not contain junk at the end.
2260
2261 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2262
2263 * breakpoint.c (set_breakpoint_condition): Update the
2264 condition string after parsing the new condition successfully.
2265
2266 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2267
2268 * proc-api.c (_STRUCTURED_PROC): Don't define.
2269 * proc-events.c: Likewise.
2270 * proc-flags.c: Likewise.
2271 * proc-why.c: Likewise.
2272 * procfs.c: Likewise.
2273
2274 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2275 * configure, config.in: Regenerate.
2276
2277 2020-07-30 Tom de Vries <tdevries@suse.de>
2278
2279 PR build/26320
2280 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2281 m_red/m_green/m_blue in a union.
2282
2283 2020-07-29 Tom de Vries <tdevries@suse.de>
2284
2285 PR tdep/26280
2286 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2287
2288 2020-07-28 Tom Tromey <tromey@adacore.com>
2289
2290 PR symtab/26270:
2291 * symtab.h (find_pc_partial_function_sym): Declare.
2292 * cli/cli-cmds.c (disassemble_command): Use
2293 find_pc_partial_function_sym. Check asm_demangle.
2294 * blockframe.c (cache_pc_function_sym): New global.
2295 (cache_pc_function_name): Remove.
2296 (clear_pc_function_cache): Update.
2297 (find_pc_partial_function_sym): New function, from
2298 find_pc_partial_function.
2299 (find_pc_partial_function): Rewrite using
2300 find_pc_partial_function_sym.
2301
2302 2020-07-28 Tom Tromey <tromey@adacore.com>
2303
2304 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2305 help. Add usage.
2306
2307 2020-07-28 Tom Tromey <tromey@adacore.com>
2308
2309 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2310 <DW_OP_GNU_variable_value>: Cast to address type.
2311
2312 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2313
2314 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2315 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2316 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2317 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2318 (nbsd_get_siginfo_type): New.
2319 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2320 (_initialize_nbsd_tdep): New.
2321
2322 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2323
2324 PR binutils/26301
2325 * configure: Regenerated.
2326
2327 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2328
2329 PR binutils/26301
2330 * configure: Regenerated.
2331
2332 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * python/py-frame.c: Remove 'user-regs.h' include.
2335 (frapy_read_register): Rewrite to make use of
2336 gdbpy_parse_register_id.
2337 * python/py-registers.c (gdbpy_parse_register_id): New function,
2338 moved here from python/py-unwind.c. Updated the return type, and
2339 also accepts register descriptor objects.
2340 * python/py-unwind.c: Remove 'user-regs.h' include.
2341 (pyuw_parse_register_id): Moved to python/py-registers.c.
2342 (unwind_infopy_add_saved_register): Update to use
2343 gdbpy_parse_register_id.
2344 (pending_framepy_read_register): Likewise.
2345 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2346
2347 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * python/py-registers.c: Add 'user-regs.h' include.
2350 (register_descriptor_iter_find): New function.
2351 (register_descriptor_iterator_object_methods): New static global
2352 methods array.
2353 (register_descriptor_iterator_object_type): Add pointer to methods
2354 array.
2355
2356 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2357
2358 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2359 for all architectures on FreeBSD 11.3 and later.
2360
2361 2020-07-27 Tom Tromey <tromey@adacore.com>
2362
2363 * gcore.h (load_corefile): Don't declare.
2364
2365 2020-07-27 Tom de Vries <tdevries@suse.de>
2366
2367 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2368 * config.in: Regenerate.
2369 * configure: Regenerate.
2370
2371 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2372
2373 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2374 ws2tcpip.h. When checking whether socklen_t type is defined, use
2375 ws2tcpip.h if it is available and sys/socket.h isn't.
2376 * configure: Regenerate.
2377 * config.in: Regenerate.
2378
2379 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 PR fortran/23051
2382 PR fortran/26139
2383 * valops.c (value_ind): Pass address to
2384 readjust_indirect_value_type.
2385 * value.c (readjust_indirect_value_type): Make parameter
2386 non-const, and add extra address parameter. Resolve original type
2387 before using it.
2388 * value.h (readjust_indirect_value_type): Update function
2389 signature and comment.
2390
2391 2020-07-25 Tom de Vries <tdevries@suse.de>
2392
2393 PR symtab/26243
2394 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2395 entries.
2396
2397 2020-07-24 Aaron Merey <amerey@redhat.com>
2398
2399 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2400 * configure: Rebuild.
2401
2402 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2403
2404 PR corefiles/26294
2405 * corelow.c (_initialize_corelow): Add period to help text
2406 for "maintenance print core-file-backed-mappings".
2407
2408 2020-07-23 Pedro Alves <pedro@palves.net>
2409
2410 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2411 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2412 meanwhile.
2413 * frame.c (frame_cache_generation, get_frame_cache_generation):
2414 New.
2415 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2416 (get_prev_frame_if_no_cycle): On exception, don't touch
2417 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2418 * frame.h (get_frame_cache_generation): Declare.
2419
2420 2020-07-23 Tom de Vries <tdevries@suse.de>
2421
2422 PR tui/26282
2423 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2424 New default constructor.
2425
2426 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2429 exclude non-statement entries.
2430
2431 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2432
2433 * NEWS (New commands): Mention new command
2434 "maintenance print core-file-backed-mappings".
2435
2436 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2437
2438 * corelow.c (gdbcmd.h): Include.
2439 (core_target::info_proc_mappings): New method.
2440 (get_current_core_target): New function.
2441 (maintenance_print_core_file_backed_mappings): New function.
2442 (_initialize_corelow): Add core-file-backed-mappings to
2443 "maint print" commands.
2444
2445 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2446
2447 * linux-tdep.c (dump_note_entry_p): New function.
2448 (linux_dump_mapping_p_ftype): New typedef.
2449 (linux_find_memory_regions_full): Add new parameter,
2450 should_dump_mapping_p.
2451 (linux_find_memory_regions): Adjust call to
2452 linux_find_memory_regions_full.
2453 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2454 call to linux_find_memory_regions_full.
2455
2456 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2457
2458 * corelow.c (solist.h, unordered_map): Include.
2459 (class core_target): Add field m_core_file_mappings and
2460 method build_file_mappings.
2461 (core_target::core_target): Call build_file_mappings.
2462 (core_target::~core_target): Free memory associated with
2463 m_core_file_mappings.
2464 (core_target::build_file_mappings): New method.
2465 (core_target::xfer_partial): Use m_core_file_mappings
2466 for memory transfers.
2467 * linux-tdep.c (linux_read_core_file_mappings): New
2468 function.
2469 (linux_core_info_proc_mappings): Rewrite to use
2470 linux_read_core_file_mappings.
2471 (linux_init_abi): Register linux_read_core_file_mappings.
2472
2473 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2474
2475 * arch-utils.c (default_read_core_file_mappings): New function.
2476 * arch-utils.c (default_read_core_file_mappings): Declare.
2477 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2478 * gdbarch.h, gdbarch.c: Regenerate.
2479
2480 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2481
2482 PR corefiles/25631
2483 * corelow.c (core_target:xfer_partial): Revise
2484 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2485 case after first checking the stratum beneath the core
2486 target.
2487 (has_all_memory): Return true.
2488 * target.c (raw_memory_xfer_partial): Revise comment
2489 regarding use of has_all_memory.
2490
2491 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2492
2493 * exec.h (section_table_xfer_memory): Revise declaration,
2494 replacing section name parameter with an optional callback
2495 predicate.
2496 * exec.c (section_table_xfer_memory): Likewise.
2497 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2498 of section_table_xfer_memory.
2499
2500 2020-07-22 Tom Tromey <tromey@adacore.com>
2501
2502 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2503 lookup_symbol_search_name.
2504
2505 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2508 redundant local variable.
2509 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2510 reference, not pointer, update code accordingly.
2511
2512 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2513 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2514
2515 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2516 * jit.c (jit_breakpoint_re_set_internal): Use the
2517 `skip_jit_symbol_lookup` field.
2518
2519 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2520 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2521
2522 * jit.c (jit_read_descriptor): Define the descriptor address once,
2523 use twice.
2524 (jit_breakpoint_deleted): Move the declaration of the loop variable
2525 `iter` into the loop header.
2526 (jit_breakpoint_re_set_internal): Move the declaration of the local
2527 variable `objf_data` to the first point of definition.
2528 (jit_event_handler): Move the declaration of local variables
2529 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2530 Rename `objf` to `jited`.
2531
2532 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2535 Remove.
2536 * jit.c (get_jiter_objfile_data): Update.
2537
2538 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2539 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * jit.c (struct jit_program_space_data): Remove.
2542 (jit_program_space_key): Remove.
2543 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2544 stuff.
2545 (get_jit_program_space_data): Remove.
2546 (jit_breakpoint_deleted): Iterate on all of the program space's
2547 objfiles.
2548 (jit_inferior_init): Likewise.
2549 (jit_breakpoint_re_set_internal): Likewise. Also change return
2550 type to void.
2551 (jit_breakpoint_re_set): Pass current_program_space to
2552 jit_breakpoint_re_set_internal.
2553
2554 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * jit.h (struct jiter_objfile_data) <cached_code_address,
2557 jit_breakpoint>: Move to here from ...
2558 * jit.c (jit_program_space_data): ... here.
2559 (jiter_objfile_data::~jiter_objfile_data): Update.
2560 (jit_breakpoint_deleted): Update.
2561 (jit_breakpoint_re_set_internal): Update.
2562
2563 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2566 checks.
2567 (jit_read_descriptor): Remove NULL check.
2568 (jit_event_handler): Add an assertion.
2569
2570 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * jit.h (struct jit_objfile_data): Split into...
2573 (struct jiter_objfile_data): ... this ...
2574 (struct jited_objfile_data): ... and this.
2575 * objfiles.h (struct objfile) <jit_data>: Remove.
2576 <jiter_data, jited_data>: New fields.
2577 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2578 (jiter_objfile_data::~jiter_objfile_data): ... this.
2579 (get_jit_objfile_data): Rename to ...
2580 (get_jiter_objfile_data): ... this.
2581 (add_objfile_entry): Update.
2582 (jit_read_descriptor): Use get_jiter_objfile_data.
2583 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2584 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2585 (jit_inferior_exit_hook): Use objfile's jited_data field.
2586
2587 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * jit.h: Forward-declare `struct minimal_symbol`.
2590 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2591 constructor, destructor, and an objfile* field.
2592 * jit.c (jit_objfile_data): Remove.
2593 (struct jit_objfile_data): Migrate from here to jit.h.
2594 (jit_objfile_data::~jit_objfile_data): New destructor
2595 implementation with code moved from free_objfile_data.
2596 (free_objfile_data): Delete.
2597 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2598 (jit_find_objf_with_entry_addr): Ditto.
2599 (jit_inferior_exit_hook): Ditto.
2600 (_initialize_jit): Remove the call to
2601 register_objfile_data_with_cleanup.
2602 * objfiles.h (struct objfile) <jit_data>: New field.
2603
2604 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2605
2606 * jit.h: Forward-declare `struct objfile`.
2607 (jit_event_handler): Add a second parameter, the JITer objfile.
2608 * jit.c (jit_read_descriptor): Change the signature to take the
2609 JITer objfile as an argument instead of the jit_program_space_data.
2610 (jit_inferior_init): Update the call to jit_read_descriptor.
2611 (jit_event_handler): Use the new JITer objfile argument when calling
2612 jit_read_descriptor.
2613 * breakpoint.c (handle_jit_event): Update the call to
2614 jit_event_handler to pass the JITer objfile.
2615
2616 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2617
2618 * gdbarch.c: Regenerate.
2619 * gdbarch.h: Regenerate.
2620 * gdbarch.sh (handle_segmentation_fault): Remove method.
2621 * infrun.c (handle_segmentation_fault): Remove.
2622 (print_signal_received_reason): Remove call to
2623 handle_segmentation_fault.
2624
2625 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2626
2627 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2628 Rename to sparc64_linux_report_signal_info and add siggnal
2629 argument.
2630 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2631 instead of sparc64_linux_handle_segmentation_fault.
2632
2633 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2634
2635 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2636 i386_linux_report_signal_info instead of
2637 i386_linux_handle_segmentation_fault.
2638 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2639 to i386_linux_report_signal_info and add siggnal argument.
2640 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2641 of i386_linux_handle_segmentation_fault.
2642 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2643 to i386_linux_report_signal_info and add siggnal argument.
2644
2645 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2646
2647 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2648 hook if present.
2649
2650 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2651
2652 * gdbarch.c: Regenerate.
2653 * gdbarch.h: Regenerate.
2654 * gdbarch.sh (report_signal_info): New method.
2655 * infrun.c (print_signal_received_reason): Invoke gdbarch
2656 report_signal_info hook if present.
2657
2658 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * python/py-registers.c : Add 'unordered_map' include.
2661 (gdbpy_new_reggroup): Renamed to...
2662 (gdbpy_get_reggroup): ...this. Update to only create register
2663 group descriptors when needed.
2664 (gdbpy_reggroup_iter_next): Update.
2665
2666 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * python/py-registers.c (gdbpy_register_object_data): New static
2669 global.
2670 (gdbpy_register_object_data_init): New function.
2671 (gdbpy_new_register_descriptor): Renamed to...
2672 (gdbpy_get_register_descriptor): ...this, and update to reuse
2673 existing register descriptors where possible.
2674 (gdbpy_register_descriptor_iter_next): Update.
2675 (gdbpy_initialize_registers): Register new gdbarch data.
2676
2677 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2678
2679 * linux-nat.c (stopped_pids): Make static.
2680
2681 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 PR ada/26235
2684 * gdbtypes.c (ada_discrete_type_low_bound,
2685 ada_discrete_type_high_bound): Handle undefined bounds.
2686
2687 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2688
2689 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2690 declaration.
2691 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2692 function.
2693
2694 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2695
2696 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2697 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2698 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2699 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2700 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2701 method.
2702
2703 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2704
2705 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2706 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2707 which are deprecated in Guile 3.0.
2708 * configure.ac (try_guile_versions): Add "guile-3.0".
2709 * configure (try_guile_versions): Regenerate.
2710 * NEWS: Update entry.
2711
2712 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2713 Doug Evans <dje@google.com>
2714
2715 PR gdb/21104
2716 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2717 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2718 USING_GUILE_BEFORE_2_2.
2719 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2720 Change type to 'scm_t_port_type *'.
2721 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2722 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2723 parameter and honor it. Update callers.
2724 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2725 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2726 functions.
2727 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2728 USING_GUILE_BEFORE_2_2.
2729 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2730 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2731 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2732 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2733 and 'SCM_PORT_TYPE'.
2734 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2735 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2736 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2737 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2738 [!USING_GUILE_BEFORE_2_2]: New functions.
2739 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2740 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2741 'gdbscm_memory_port_read'.
2742 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2743 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2744 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2745 function.
2746 (ioscm_init_memory_port): Remove.
2747 (ioscm_init_memory_port_stream): New function
2748 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2749 function.
2750 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2751 Return scm_from_uint (0).
2752 (gdbscm_set_memory_port_read_buffer_size_x)
2753 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2754 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2755 Return scm_from_uint (0).
2756 (gdbscm_set_memory_port_write_buffer_size_x)
2757 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2758 * configure.ac (try_guile_versions): Add "guile-2.2".
2759 * configure: Regenerate.
2760 * NEWS: Add entry.
2761
2762 2020-07-18 Tom Tromey <tom@tromey.com>
2763
2764 * linux-nat.c (linux_multi_process): Remove.
2765 (linux_nat_target::supports_multi_process): Return true.
2766
2767 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2768
2769 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2770 (riscv_lookup_target_description): Return pointer out of
2771 unique_ptr.
2772 * target-descriptions.c (allocate_target_description): Add
2773 comment.
2774 (target_desc_deleter::operator()): Likewise.
2775 * target-descriptions.h (struct target_desc_deleter): Moved to
2776 gdbsupport/tdesc.h.
2777 (target_desc_up): Likewise.
2778
2779 2020-07-17 Tom Tromey <tromey@adacore.com>
2780
2781 * linux-nat.c (linux_nat_target::supports_non_stop)
2782 (linux_nat_target::always_non_stop_p): Use "true".
2783 (linux_nat_target::supports_disable_randomization): Use "true" and
2784 "false".
2785
2786 2020-07-16 Caroline Tice <cmtice@google.com>
2787
2788 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2789 (RNGLIST_HEADER_SIZE64): New constant definition.
2790 (struct dwop_section_names): Add rnglists_dwo.
2791 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2792 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2793 (struct dwo_sections): Add rnglists field.
2794 (read_attribut_reprocess): Add tag parameter.
2795 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2796 (cu_debug_rnglists_section): New function (decl & definition).
2797 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2798 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2799 die whose range is being checked; get rnglist section from
2800 cu_debug_rnglists_section, to get from either objfile or dwo file as
2801 appropriate. Add cases for DW_RLE_base_addressx,
2802 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2803 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2804 test inside if-condition and updating complaint message.
2805 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2806 dwarf2_rnglists_process.
2807 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2808 dwarf2_ranges_process.
2809 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2810 need_ranges_base and update comment appropriately. Also pass die tag
2811 to dwarf2_ranges_read.
2812 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2813 need_ranges_base and update comment appropriately. Also pass die tag
2814 to dwarf2_ranges_process.
2815 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2816 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2817 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2818 need_ranges_base and update comment appropriately. Also pass die tag
2819 to read_attribute_reprocess and dwarf2_ranges_read.
2820 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2821 and update function comment appropriately.
2822 (read_loclist_index): Call read_loclists_rnglists_header instead of
2823 read_loclist_header.
2824 (read_rnglist_index): New function.
2825 (read_attribute_reprocess): Add tag parameter. Add code for
2826 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2827 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2828
2829 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2832 being resolved.
2833
2834 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * arch-utils.c (show_architecture): Update formatting of messages.
2837
2838 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (struct type) <bounds>: Handle array and string
2841 types.
2842 * ada-lang.c (assign_aggregate): Use type::bounds on
2843 array/string type.
2844 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2845 * c-varobj.c (c_number_of_children): Likewise.
2846 (c_describe_child): Likewise.
2847 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2848 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2849 (f_type_print_base): Likewise.
2850 * f-valprint.c (f77_array_offset_tbl): Likewise.
2851 (f77_get_upperbound): Likewise.
2852 (f77_print_array_1): Likewise.
2853 * guile/scm-type.c (gdbscm_type_range): Likewise.
2854 * m2-typeprint.c (m2_array): Likewise.
2855 (m2_is_long_set_of_type): Likewise.
2856 * m2-valprint.c (get_long_set_bounds): Likewise.
2857 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2858 * python/py-type.c (typy_range): Likewise.
2859 * rust-lang.c (rust_internal_print_type): Likewise.
2860 * type-stack.c (type_stack::follow_types): Likewise.
2861 * valarith.c (value_subscripted_rvalue): Likewise.
2862 * valops.c (value_cast): Likewise.
2863
2864 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2867 callers to use the equivalent accessor methods.
2868
2869 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2870
2871 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2872 (struct type) <bit_stride>: New method.
2873 (TYPE_BIT_STRIDE): Remove.
2874 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2875
2876 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2879 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2880 callers to use the equivalent accessor methods instead.
2881
2882 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2883
2884 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2885 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2886 callers to use the equivalent accessor methods instead.
2887
2888 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2891 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2892 to use dynamic_prop::kind.
2893
2894 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2897 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2898 to get the bound property's kind and check against
2899 PROP_UNDEFINED.
2900
2901 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2902
2903 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2904 all callers to use type::range_bounds followed by
2905 dynamic_prop::{low,high}.
2906
2907 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2910 const_val, set_const_val, baton, set_locexpr, set_loclist,
2911 set_addr_offset, variant_parts, set_variant_parts,
2912 original_type, set_original_type>: New methods.
2913 <kind>: Rename to...
2914 <m_kind>: ... this. Update all users to use the new methods
2915 instead.
2916 <data>: Rename to...
2917 <m_data>: ... this. Update all users to use the new methods
2918 instead.
2919
2920 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * gdbtypes.c (get_discrete_bounds): Return failure if
2923 the range type's bounds are not both defined and constant
2924 values.
2925 (get_array_bounds): Update comment. Remove undefined bound check.
2926
2927 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2930 the type::bounds method directly.
2931
2932 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2935 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2936 are used to set the range type's bounds to use set_bounds.
2937
2938 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2939
2940 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2941
2942 2020-07-10 Pedro Alves <pedro@palves.net>
2943
2944 * gdbthread.h (inferior_ref): Define.
2945 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2946 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2947 * thread.c
2948 (scoped_restore_current_thread::restore):
2949 Adjust to gdb::ref_ptr.
2950 (scoped_restore_current_thread::~scoped_restore_current_thread):
2951 Remove manual decref handling.
2952 (scoped_restore_current_thread::scoped_restore_current_thread):
2953 Adjust to use
2954 inferior_ref::new_reference/thread_info_ref::new_reference.
2955 Incref the thread before calling get_frame_id instead of after.
2956 Let TARGET_CLOSE_ERROR propagate.
2957
2958 2020-07-10 Pedro Alves <pedro@palves.net>
2959
2960 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2961 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2962 NOT_AVAILABLE_ERROR.
2963 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2964 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2965
2966 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2967 Pedro Alves <pedro@palves.net>
2968
2969 PR gdb/26199
2970 * infrun.c (threads_are_resumed_pending_p): Delete.
2971 (do_target_wait): Remove threads_are_executing and
2972 threads_are_resumed_pending_p checks from the inferior_matches
2973 lambda. Update comments.
2974
2975 2020-07-10 Pedro Alves <pedro@palves.net>
2976
2977 PR gdb/26199
2978 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2979 executing threads.
2980
2981 2020-07-10 Pedro Alves <pedro@palves.net>
2982
2983 PR gdb/26199
2984 * infrun.c (handle_no_resumed): Handle multiple targets.
2985
2986 2020-07-10 Pedro Alves <pedro@palves.net>
2987
2988 PR gdb/26199
2989 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2990 target_is_async_p.
2991
2992 2020-07-10 Pedro Alves <pedro@palves.net>
2993
2994 PR gdb/26199
2995 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2996 threads, not all threads.
2997
2998 2020-07-10 Pedro Alves <pedro@palves.net>
2999
3000 PR gdb/26199
3001 * remote.c (remote_target::open_1): Pass remote target pointer as
3002 data to create_async_event_handler.
3003 (remote_async_inferior_event_handler): Mark async event handler
3004 before returning if the remote target still has either pending
3005 events or unacknowledged notifications.
3006
3007 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3008
3009 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3010 declaration.
3011 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3012 function.
3013
3014 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3015
3016 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3017 inferior_ptid.
3018
3019 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3020
3021 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3022 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3023 AT_FREEBSD_PS_STRINGS.
3024
3025 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3026
3027 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3028 of debugfile path on Windows.
3029
3030 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3031
3032 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3033 argument to 'data'.
3034
3035 2020-07-08 Tom Tromey <tromey@adacore.com>
3036
3037 * ada-lang.c (ada_exception_message_1): Use read_memory.
3038
3039 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3040
3041 PR python/22748
3042 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3043 special handling for inline frames.
3044 * findvar.c (value_of_register_lazy): Skip inline frames when
3045 creating lazy register values.
3046 * frame.c (frame_id_computed_p): Delete definition.
3047 * frame.h (frame_id_computed_p): Delete declaration.
3048
3049 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * NEWS: Mention additions to Python API.
3052 * python/py-arch.c (archpy_register_groups): New function.
3053 (arch_object_methods): Add 'register_groups' method.
3054 * python/py-registers.c (reggroup_iterator_object): New struct.
3055 (reggroup_object): New struct.
3056 (gdbpy_new_reggroup): New function.
3057 (gdbpy_reggroup_to_string): New function.
3058 (gdbpy_reggroup_name): New function.
3059 (gdbpy_reggroup_iter): New function.
3060 (gdbpy_reggroup_iter_next): New function.
3061 (gdbpy_new_reggroup_iterator): New function
3062 (gdbpy_initialize_registers): Register new types.
3063 (reggroup_iterator_object_type): Define new Python type.
3064 (gdbpy_reggroup_getset): New static global.
3065 (reggroup_object_type): Define new Python type.
3066 * python/python-internal.h
3067
3068 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3071 * python/py-arch.c (archpy_registers): New function.
3072 (arch_object_methods): Add 'registers' method.
3073 * python/py-registers.c: New file.
3074 * python/python-internal.h
3075 (gdbpy_new_register_descriptor_iterator): Declare.
3076 (gdbpy_initialize_registers): Declare.
3077 * python/python.c (do_start_initialization): Call
3078 gdbpy_initialize_registers.
3079 * NEWS: Mention additions to the Python API.
3080
3081 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * NEWS: Mention new Python API method.
3084 * python/py-unwind.c (pending_framepy_architecture): New function.
3085 (pending_frame_object_methods): Add architecture method.
3086
3087 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * gdbarch.c: Regenerate.
3090 * gdbarch.h: Regenerate.
3091 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3092 (gdbarch_data): Use internal_error for the case where
3093 deprecated_set_gdbarch_data was originally needed.
3094 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3095 and use passed in obstack.
3096 (libunwind_frame_set_descr): Should no longer get back NULL from
3097 gdbarch_data.
3098 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3099 type.
3100 * user-regs.c (user_regs_init): Update parameters, and use passed
3101 in obstack.
3102 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3103 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3104
3105 2020-07-06 Tom de Vries <tdevries@suse.de>
3106
3107 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3108 End-Of-Sequence in lte_is_less_than.
3109 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3110 "gdb: Don't reorder line table entries too much when sorting".
3111
3112 2020-07-06 Tom de Vries <tdevries@suse.de>
3113
3114 PR tui/26205
3115 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3116
3117 2020-07-05 Tom de Vries <tdevries@suse.de>
3118
3119 PR build/26187
3120 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3121 std::uncaught_exceptions instead of deprecated
3122 std::uncaught_exception.
3123
3124 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * macroexp.h (macro_stringify): Return
3127 gdb::unique_xmalloc_ptr<char>.
3128 * macroexp.c (macro_stringify): Likewise.
3129 * macrotab.c (fixup_definition): Update.
3130
3131 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3132
3133 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3134 (lex_one_token): Update.
3135 * macroexp.c (struct macro_buffer) <release>: Return
3136 gdb::unique_xmalloc_ptr<char>.
3137 (macro_stringify): Update.
3138 (macro_expand): Update.
3139 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3140 * macroexp.h (macro_expand_next): Likewise.
3141
3142 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * macroexp.h (macro_lookup_ftype): Remove.
3145 (macro_expand, macro_expand_once, macro_expand_next): Remove
3146 lookup function parameters, add scope parameter.
3147 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3148 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3149 * macroscope.h (standard_macro_lookup): Change parameter type
3150 to macro_scope.
3151 * macroscope.c (standard_macro_lookup): Likewise.
3152 * c-exp.y (lex_one_token): Update.
3153 * macrocmd.c (macro_expand_command): Likewise.
3154 (macro_expand_once_command): Likewise.
3155
3156 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3157
3158 * inf-loop.c (inferior_event_handler): Remove client_data param.
3159 * inf-loop.h (inferior_event_handler): Likewise.
3160 * infcmd.c (step_1): Adjust.
3161 * infrun.c (proceed): Adjust.
3162 (fetch_inferior_event): Remove client_data param.
3163 (infrun_async_inferior_event_handler): Adjust.
3164 * infrun.h (fetch_inferior_event): Remove `void *` param.
3165 * linux-nat.c (handle_target_event): Adjust.
3166 * record-btrace.c (record_btrace_handle_async_inferior_event):
3167 Adjust.
3168 * record-full.c (record_full_async_inferior_event_handler):
3169 Adjust.
3170 * remote.c (remote_async_inferior_event_handler): Adjust.
3171
3172 2020-07-01 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3175 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3176
3177 2020-07-01 Tom Tromey <tom@tromey.com>
3178
3179 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3180 tui_gen_win_info.
3181 (tui_win_info::make_window): Merge with
3182 tui_gen_win_info::make_window.
3183 (tui_win_info::make_visible): Move from tui_gen_win_info.
3184 * tui/tui-win.c (tui_win_info::max_width): Move from
3185 tui_gen_win_info.
3186 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3187 type.
3188 <window_factory>: Likewise.
3189 * tui/tui-layout.c (tui_win_info::resize): Move from
3190 tui_gen_win_info.
3191 (make_standard_window): Change return type.
3192 (get_locator_window, tui_get_window_by_name): Likewise.
3193 (tui_layout_window::apply): Remove a cast.
3194 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3195 (struct tui_win_info): Merge with tui_gen_win_info.
3196 (struct tui_gen_win_info): Remove.
3197
3198 2020-07-01 Tom Tromey <tom@tromey.com>
3199
3200 * tui/tui-stack.h (struct tui_locator_window): Derive from
3201 tui_win_info.
3202 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3203 <can_box>: New method.
3204
3205 2020-07-01 Tom Tromey <tom@tromey.com>
3206
3207 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3208
3209 2020-07-01 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-regs.c (tui_data_window::display_registers_from)
3212 (tui_data_window::display_registers_from)
3213 (tui_data_window::first_data_item_displayed)
3214 (tui_data_window::delete_data_content_windows): Update.
3215 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3216 Remove.
3217 (tui_data_window::check_register_values): Update.
3218 (tui_data_item_window::rerender): Add parameters. Update.
3219 (tui_data_item_window::refresh_window): Remove.
3220 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3221 virtual.
3222 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3223 tui_gen_win_info.
3224 <refresh_window, max_height, min_height>: Remove.
3225 <rerender>: Add parameters.
3226 <x, y, visible>: New members.
3227 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3228 <m_item_width>: New member.
3229
3230 2020-07-01 Tom Tromey <tom@tromey.com>
3231
3232 * tui/tui-regs.c (tui_data_window::show_register_group)
3233 (tui_data_window::check_register_values): Update.
3234 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3235 from item_no.
3236
3237 2020-07-01 Tom Tromey <tom@tromey.com>
3238
3239 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3240 useless "if".
3241
3242 2020-07-01 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3245 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3246
3247 2020-07-01 Tom Tromey <tom@tromey.com>
3248
3249 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3250 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3251 (struct tui_line_or_address): Move from tui-data.h.
3252 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3253 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3254 (tui_cmd_window, tui_source_window_base, tui_source_window)
3255 (tui_disasm_window): Don't declare.
3256 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3257 to tui-winsource.h.
3258 (SINGLE_KEY): Move to tui-stack.c.
3259
3260 2020-07-01 Tom Tromey <tom@tromey.com>
3261
3262 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3263 std::string.
3264 * tui/tui-regs.c (class tab_expansion_file): New.
3265 (tab_expansion_file::write): New method.
3266 (tui_register_format): Change return type. Use
3267 tab_expansion_file.
3268 (tui_get_register, tui_data_window::display_registers_from)
3269 (tui_data_item_window::rerender): Update.
3270 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3271 * tui/tui-io.c (tui_expand_tabs): Remove.
3272
3273 2020-07-01 Tom Tromey <tom@tromey.com>
3274
3275 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3276
3277 2020-07-01 Fangrui Song <maskray@google.com>
3278
3279 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3280
3281 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3282
3283 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3284 forms for DW_AT_associated and DW_AT_allocated attributes,
3285 which is already checked in function attr_to_dynamic_prop.
3286
3287 2020-06-30 Tom Tromey <tromey@adacore.com>
3288
3289 * dwarf2/read.c (quirk_rust_enum): Correctly call
3290 alloc_rust_variant for default-less enum.
3291
3292 2020-06-30 Tom Tromey <tromey@adacore.com>
3293
3294 PR build/26183:
3295 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3296 gdb::to_string.
3297
3298 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3299
3300 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3301 * gdbarch.h: Re-generate.
3302
3303 2020-06-28 Tom Tromey <tom@tromey.com>
3304
3305 * command.h (cmd_types): Remove.
3306 (cmd_type): Don't declare.
3307 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3308 typedef.
3309 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3310 * cli/cli-decode.c (cmd_type): Remove.
3311
3312 2020-06-27 Pedro Alves <palves@redhat.com>
3313
3314 * fork-child.c (prefork_hook): Adjust.
3315 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3316 Delete.
3317 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3318 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3319 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3320 Remove declarations.
3321 (struct inferior) <set_tty, tty>: New methods.
3322 (struct inferior) <terminal>: Rename to ...
3323 (struct inferior) <m_terminal>: ... this and make private.
3324 * main.c (captured_main_1): Adjust.
3325 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3326 (mi_cmd_inferior_tty_show): Adjust.
3327 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3328 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3329
3330 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3331
3332 * configure.ac: Add --enable-libctf: handle --disable-static
3333 properly.
3334 * acinclude.m4: sinclude ../config/enable.m4.
3335 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3336 (LIBCTF): Substitute in.
3337 (CTF_DEPS): New, likewise.
3338 (CLIBS): libctf needs symbols from libbfd: move earlier.
3339 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3340 flags.
3341 * ctfread.c: Surround in ENABLE_LIBCTF.
3342 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3343 * configure: Regenerate.
3344 * config.in: Likewise.
3345
3346 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3349
3350 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * inferior.h (struct inferior) <terminal>: Change type to
3353 gdb::unique_xmalloc_ptr<char>.
3354 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3355 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3356 field, adjust to unique pointer.
3357 (get_inferior_io_terminal): Adjust to unique pointer.
3358
3359 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3360
3361 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3362 registers, not just the known core set of registers.
3363
3364 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3365
3366 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3367 fflags, frm, and fcsr registers.
3368 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3369 restore groups.
3370 (riscv_tdesc_unknown_reg): New function.
3371 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3372 tdesc_use_registers.
3373 * riscv-tdep.h (struct gdbarch_tdep): Add
3374 unknown_csrs_first_regnum, unknown_csrs_count,
3375 duplicate_fflags_regnum, duplicate_frm_regnum, and
3376 duplicate_fcsr_regnum fields.
3377
3378 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3381 callback, use the callback (when not null) to help number unknown
3382 registers.
3383 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3384 (tdesc_use_registers): Add extra parameter to declaration.
3385
3386 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3389 in the file.
3390 (class riscv_pending_register_alias): Likewise.
3391 (riscv_register_feature::register_info): Change 'required_p' field
3392 to 'required', and change its type. Add 'check' member function.
3393 (riscv_register_feature::register_info::check): Define new member
3394 function.
3395 (riscv_xreg_feature): Change initialisation of 'required' field.
3396 (riscv_freg_feature): Likewise.
3397 (riscv_virtual_feature): Likewise.
3398 (riscv_csr_feature): Likewise.
3399 (riscv_check_tdesc_feature): Take extra parameter, the csr
3400 tdesc_feature, rewrite the function to use the new
3401 riscv_register_feature::register_info::check function.
3402 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3403
3404 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * features/Makefile: Remove all references to the deleted files
3407 below.
3408 * features/riscv/32bit-csr.c: Deleted.
3409 * features/riscv/32bit-csr.xml: Deleted.
3410 * features/riscv/64bit-csr.c: Deleted.
3411 * features/riscv/64bit-csr.xml: Deleted.
3412 * features/riscv/rebuild-csr-xml.sh: Deleted.
3413
3414 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3417 whitespace error for declaration of names member variable.
3418 (struct riscv_register_feature): Add new prefer_first_name member
3419 variable, and fix whitespace error in declaration of registers.
3420 (riscv_xreg_feature): Initialize prefer_first_name field.
3421 (riscv_freg_feature): Likewise.
3422 (riscv_virtual_feature): Likewise.
3423 (riscv_csr_feature): Likewise.
3424 (riscv_register_name): Expand on comments. Remove register name
3425 modifications for CSR and virtual registers.
3426
3427 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3430 errors.
3431
3432 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3435 riscv-opc.h.
3436 (class riscv_pending_register_alias): New class.
3437 (riscv_check_tdesc_feature): Take vector of pending aliases and
3438 populate it as appropriate.
3439 (riscv_setup_register_aliases): Delete.
3440 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3441 to riscv_check_tdesc_feature in all cases. Use the vector to
3442 create the register aliases.
3443
3444 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3445
3446 * sol2-tdep.c (sol2_static_transform_name): Remove.
3447 (sol2_init_abi): Don't register it.
3448 * gdbarch.sh (static_transform_name): Remove.
3449 * gdbarch.c, gdbarch.h: Regenerate.
3450
3451 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3452 gdbarch_static_transform_name.
3453 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3454 * stabsread.c (define_symbol) <'X'>: Remove.
3455 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3456 handling.
3457 <'V'>: Likewise.
3458 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3459 <'S'>: Remove call to gdbarch_static_transform_name.
3460
3461 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3462
3463 * procfs.c (procfs_pre_trace): New function.
3464 (procfs_target::create_inferior): Pass it to fork_inferior.
3465
3466 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3467
3468 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3469 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3470 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3471 sol2-tdep.o, sparc-sol2-tdep.o.
3472 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3473 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3474 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3475 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3476
3477 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3478
3479 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3480 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3481 Call sol2_init_abi.
3482 Remove calls to set_gdbarch_skip_solib_resolver,
3483 set_gdbarch_core_pid_to_str.
3484 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3485 (i386_sol2_static_transform_name): Remove.
3486 (i386_sol2_init_abi): Call sol2_init_abi.
3487 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3488 set_gdbarch_static_transform_name,
3489 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3490 Use sol2_sigtramp_p.
3491 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3492 (sol2_sigtramp_p): New function.
3493 (sol2_static_transform_name): New function.
3494 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3495 (sol2_init_abi): New function.
3496 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3497 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3498 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3499 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3500 (sparc_sol2_static_transform_name): Remove.
3501 (sparc32_sol2_init_abi): Call sol2_init_abi.
3502 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3503 set_gdbarch_static_transform_name,
3504 set_gdbarch_skip_solib_resolver,
3505 set_gdbarch_core_pid_to_str.
3506 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3507 (sparc_sol2_static_transform_name): Remove
3508 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3509 call sol2_sigtramp_p.
3510 (sparc64_sol2_init_abi): Call sol2_init_abi.
3511 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3512 set_gdbarch_static_transform_name,
3513 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3514
3515 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3516
3517 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3518 * exec.c (validate_exec_file): If from_tty, set both
3519 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3520 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3521 and from_tty, unconditionally ask a confirmation.
3522
3523 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * target-descriptions.c (tdesc_architecture_name): Protect against
3526 NULL pointer dereference.
3527 (maint_print_xml_tdesc_cmd): New function.
3528 (_initialize_target_descriptions): Register new 'maint print
3529 xml-tdesc' command and give it the filename completer.
3530 * NEWS: Mention new 'maint print xml-tdesc' command.
3531
3532 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * target-descriptions.c (class tdesc_compatible_info): New class.
3535 (struct target_desc): Change type of compatible vector.
3536 (tdesc_compatible_p): Update for change in type of
3537 target_desc::compatible.
3538 (tdesc_compatible_info_list): New function.
3539 (tdesc_compatible_info_arch_name): New function.
3540 (tdesc_add_compatible): Update for change in type of
3541 target_desc::compatible.
3542 (print_c_tdesc::visit_pre): Likewise.
3543
3544 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3545
3546 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3547 whitespace to underscore.
3548 (maint_print_c_tdesc_cmd): Use fake filename for target
3549 descriptions that came from the target.
3550 (_initialize_target_descriptions): Add filename command completion
3551 for 'maint print c-tdesc'.
3552
3553 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3556 lines.
3557
3558 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3559
3560 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3561 lines.
3562 (dwarf2_find_location_expression): Likewise.
3563 (call_site_parameter_matches): Likewise.
3564 (dwarf2_compile_expr_to_ax): Likewise.
3565 (disassemble_dwarf_expression): Likewise.
3566 (loclist_describe_location): Likewise.
3567
3568 2020-06-23 Pedro Alves <palves@redhat.com>
3569
3570 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3571 progspace-and-thread.h. Include scoped-mock-context.h instead.
3572 (register_to_value_test): Use scoped_mock_context.
3573 * regcache.c: Include "scoped-mock-context.h".
3574 (cooked_read_test): Don't error out if a target is already pushed.
3575 Use scoped_mock_context. Adjust.
3576 * scoped-mock-context.h: New file.
3577
3578 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3581 initializer.
3582 (ada_language::is_string_type_p): New member function.
3583 * c-lang.c (c_language_data): Delete la_is_string_type_p
3584 initializer.
3585 (cplus_language_data): Likewise.
3586 (asm_language_data): Likewise.
3587 (minimal_language_data): Likewise.
3588 * d-lang.c (d_language_data): Likewise.
3589 * f-lang.c (f_is_string_type_p): Delete function, implementation
3590 moved to f_language::is_string_type_p.
3591 (f_language_data): Delete la_is_string_type_p initializer.
3592 (f_language::is_string_type_p): New member function,
3593 implementation from f_is_string_type_p.
3594 * go-lang.c (go_is_string_type_p): Delete function, implementation
3595 moved to go_language::is_string_type_p.
3596 (go_language_data): Delete la_is_string_type_p initializer.
3597 (go_language::is_string_type_p): New member function,
3598 implementation from go_is_string_type_p.
3599 * language.c (language_defn::is_string_type_p): Define new member
3600 function.
3601 (default_is_string_type_p): Make static, add comment copied from
3602 header file.
3603 (unknown_language_data): Delete la_is_string_type_p initializer.
3604 (unknown_language::is_string_type_p): New member function.
3605 (auto_language_data): Delete la_is_string_type_p initializer.
3606 (auto_language::is_string_type_p): New member function.
3607 * language.h (language_data): Delete la_is_string_type_p field.
3608 (language_defn::is_string_type_p): Declare new function.
3609 (default_is_string_type_p): Delete desclaration, move comment to
3610 definition.
3611 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3612 moved to m2_language::is_string_type_p.
3613 (m2_language_data): Delete la_is_string_type_p initializer.
3614 (m2_language::is_string_type_p): New member function,
3615 implementation from m2_is_string_type_p.
3616 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3617 initializer.
3618 * opencl-lang.c (opencl_language_data): Likewise.
3619 * p-lang.c (pascal_is_string_type_p): Delete function,
3620 implementation moved to pascal_language::is_string_type_p.
3621 (pascal_language_data): Delete la_is_string_type_p initializer.
3622 (pascal_language::is_string_type_p): New member function,
3623 implementation from pascal_is_string_type_p.
3624 * rust-lang.c (rust_is_string_type_p): Delete function,
3625 implementation moved to rust_language::is_string_type_p.
3626 (rust_language_data): Delete la_is_string_type_p initializer.
3627 (rust_language::is_string_type_p): New member function,
3628 implementation from rust_is_string_type_p.
3629 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3630 is_string_type_p.
3631
3632 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * ada-lang.c (ada_language_data): Delete la_print_typedef
3635 initializer.
3636 (ada_language::print_typedef): New member function.
3637 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3638 (cplus_language_data): Likewise.
3639 (asm_language_data): Likewise.
3640 (minimal_language_data): Likewise.
3641 * d-lang.c (d_language_data): Likewise.
3642 * f-lang.c (f_language_data): Likewise.
3643 (f_language::print_typedef): New member function.
3644 * go-lang.c (go_language_data): Delete la_print_typedef
3645 initializer.
3646 * language.c (language_defn::print_typedef): Define member
3647 function.
3648 (unknown_language_data): Delete la_print_typedef initializer.
3649 (unknown_language::print_typedef): New member function.
3650 (auto_language_data): Delete la_print_typedef initializer.
3651 (auto_language::print_typedef): New member function.
3652 * language.h (language_data): Delete la_print_typedef field.
3653 (language_defn::print_typedef): Declare new member function.
3654 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3655 (default_print_typedef): Delete declaration.
3656 * m2-lang.c (m2_language_data): Delete la_print_typedef
3657 initializer.
3658 (m2_language::print_typedef): New member function.
3659 * objc-lang.c (objc_language_data): Delete la_print_typedef
3660 initializer.
3661 * opencl-lang.c (opencl_language_data): Likewise.
3662 * p-lang.c (pascal_language_data): Likewise.
3663 (pascal_language::print_typedef): New member function.
3664 * rust-lang.c (rust_print_typedef): Delete function,
3665 implementation moved to rust_language::print_typedef.
3666 (rust_language): Delete la_print_typedef initializer.
3667 (rust_language::print_typedef): New member function,
3668 implementation from rust_print_typedef.
3669 * typeprint.c (default_print_typedef): Delete.
3670
3671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3674 (ada_language::printstr): New member function.
3675 * c-lang.c (c_language_data): Delete la_printstr initializer.
3676 (cplus_language_data): Likewise.
3677 (asm_language_data): Likewise.
3678 (minimal_language_data): Likewise.
3679 * d-lang.c (d_language_data): Likewise.
3680 * f-lang.c (f_printstr): Rename to f_language::printstr.
3681 (f_language_data): Delete la_printstr initializer.
3682 (f_language::printstr): New member function, implementation from
3683 f_printstr.
3684 * go-lang.c (go_language_data): Delete la_printstr initializer.
3685 * language.c (language_defn::printstr): Define new member
3686 function.
3687 (unk_lang_printstr): Delete.
3688 (unknown_language_data): Delete la_printstr initializer.
3689 (unknown_language::printstr): New member function.
3690 (auto_language_data): Delete la_printstr initializer.
3691 (auto_language::printstr): New member function.
3692 * language.h (language_data): Delete la_printstr field.
3693 (language_defn::printstr): Declare new member function.
3694 (LA_PRINT_STRING): Update call to printstr.
3695 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3696 (m2_language_data): Delete la_printstr initializer.
3697 (m2_language::printstr): New member function, implementation from
3698 m2_printstr.
3699 * objc-lang.c (objc_language_data): Delete la_printstr
3700 initializer.
3701 * opencl-lang.c (opencl_language_data): Likewise.
3702 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3703 (pascal_language_data): Delete la_printstr initializer.
3704 (pascal_language::printstr): New member function, implementation
3705 from pascal_printstr.
3706 * p-lang.h (pascal_printstr): Delete declaration.
3707 * rust-lang.c (rust_printstr): Update header comment.
3708 (rust_language_data): Delete la_printstr initializer.
3709 (rust_language::printstr): New member function.
3710
3711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3714 (ada_language::printchar): New member function.
3715 * c-lang.c (c_language_data): Delete la_printchar initializer.
3716 (cplus_language_data): Likewise.
3717 (asm_language_data): Likewise.
3718 (minimal_language_data): Likewise.
3719 * d-lang.c (d_language_data): Likewise.
3720 * f-lang.c (f_printchar): Rename to f_language::printchar.
3721 (f_language_data): Delete la_printchar initializer.
3722 (f_language::printchar): New member function, implementation from
3723 f_printchar.
3724 * go-lang.c (go_language_data): Delete la_printchar initializer.
3725 * language.c (unk_lang_printchar): Delete.
3726 (language_defn::printchar): Define new member function.
3727 (unknown_language_data): Delete la_printchar initializer.
3728 (unknown_language::printchar): New member function.
3729 (auto_language_data): Delete la_printchar initializer.
3730 (auto_language::printchar): New member function.
3731 * language.h (language_data): Delete la_printchar field.
3732 (language_defn::printchar): Declare new member function.
3733 (LA_PRINT_CHAR): Update call to printchar.
3734 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3735 (m2_language::printchar): New member function.
3736 * objc-lang.c (objc_language_data): Delete la_printchar
3737 initializer.
3738 * opencl-lang.c (opencl_language_data): Likewise.
3739 * p-lang.c (pascal_language_data): Delete la_printchar
3740 initializer.
3741 (pascal_language::printchar): New member function.
3742 * rust-lang.c (rust_printchar): Rename to
3743 rust_language::printchar.
3744 (rust_language_data): Delete la_printchar initializer.
3745 (rust_language::printchar): New member function, implementation
3746 from rust_printchar.
3747
3748 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3751 (ada_language_data): Delete la_emitchar initializer.
3752 (ada_language::emitchar): New member function, implementation from
3753 emit_char.
3754 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3755 (cplus_language_data): Likewise.
3756 (asm_language_data): Likewise.
3757 (minimal_language_data): Likewise.
3758 * d-lang.c (d_language_data): Likewise.
3759 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3760 (f_language_data): Delete la_emitchar initializer.
3761 (f_language::emitchar): New member function, implementation from
3762 f_emit_char.
3763 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3764 * language.c (unk_lang_emit_char): Delete.
3765 (language_defn::emitchar): New member function definition.
3766 (unknown_language_data): Delete la_emitchar initializer.
3767 (unknown_language::emitchar): New member function.
3768 (auto_language_data): Delete la_emitchar initializer.
3769 (auto_language::emitchar): New member function.
3770 * language.h (language_data): Delete la_emitchar field.
3771 (language_defn::emitchar): New member field declaration.
3772 (LA_EMIT_CHAR): Update call to emitchar.
3773 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3774 (m2_language_data): Delete la_emitchar initializer.
3775 (m2_language::emitchar): New member function, implementation from
3776 m2_emit_char.
3777 * objc-lang.c (objc_language_data): Delete la_emitchar
3778 initializer.
3779 * opencl-lang.c (opencl_language_data): Likewise.
3780 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3781 (pascal_language_data): Delete la_emitchar initializer.
3782 (pascal_language::emitchar): New member function, implementation
3783 from pascal_emit_char.
3784 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3785 (rust_language_data): Delete la_emitchar initializer.
3786 (rust_language::emitchar): New member function, implementation
3787 from rust_emitchar.
3788
3789 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3790
3791 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3792 (ada_language_data): Delete la_post_parser initializer.
3793 (ada_language::post_parser): New member function.
3794 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3795 (cplus_language_data): Likewise.
3796 (asm_language_data): Likewise.
3797 (minimal_language_data): Likewise.
3798 * d-lang.c (d_language_data): Likewise.
3799 * f-lang.c (f_language_data): Likewise.
3800 * go-lang.c (go_language_data): Likewise.
3801 * language.c (unknown_language_data): Likewise.
3802 (auto_language_data): Likewise.
3803 * language.h (language_data): Delete la_post_parser field.
3804 (language_defn::post_parser): New member function.
3805 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3806 * objc-lang.c (objc_language_data): Likewise.
3807 * opencl-lang.c (opencl_language_data): Likewise.
3808 * p-lang.c (pascal_language_data): Likewise.
3809 * parse.c (parse_exp_in_context): Update call to post_parser.
3810 (null_post_parser): Delete definition.
3811 * parser-defs.h (null_post_parser): Delete declaration.
3812 * rust-lang.c (rust_language_data): Delete la_post_parser
3813 initializer.
3814
3815 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * ada-lang.c (parse): Rename to ada_language::parser.
3818 (ada_language_data): Delete la_parser initializer.
3819 (ada_language::parser): New member function, implementation from
3820 parse.
3821 * c-lang.c (c_language_data): Delete la_parser initializer.
3822 (cplus_language_data): Likewise.
3823 (asm_language_data): Likewise.
3824 (minimal_language_data): Likewise.
3825 * d-lang.c (d_language_data): Likewise.
3826 (d_language::parser): New member function.
3827 * f-lang.c (f_language_data): Delete la_parser initializer.
3828 (f_language::parser): New member function.
3829 * go-lang.c (go_language_data): Delete la_parser initializer.
3830 (go_language::parser): New member function.
3831 * language.c (unk_lang_parser): Delete.
3832 (language_defn::parser): Define new member function.
3833 (unknown_language_data): Delete la_parser initializer.
3834 (unknown_language::parser): New member function.
3835 (auto_language_data): Delete la_parser initializer.
3836 (auto_language::parser): New member function.
3837 * language.h (language_data): Delete la_parser field.
3838 (language_defn::parser): Declare new member function.
3839 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3840 (m2_language::parser): New member function.
3841 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3842 * opencl-lang.c (opencl_language_data): Likewise.
3843 * p-lang.c (pascal_language_data): Likewise.
3844 (pascal_language::parser): New member function.
3845 * parse.c (parse_exp_in_context): Update call to parser.
3846 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3847 (rust_language::parser): New member function.
3848
3849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3850
3851 * top.c (print_gdb_configuration): Print --with-python-libdir
3852 configuration value.
3853
3854 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3855
3856 * NEWS: Mention change to the alias command.
3857
3858 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3859
3860 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3861 (alias_command_completer)
3862 (make_alias_options_def_group): New functions.
3863 (alias_opts, alias_option_defs): New struct and array.
3864 (alias_usage_error): Update usage.
3865 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3866 Use option framework.
3867 (_initialize_cli_cmds): Update alias command help.
3868 Update aliases command help.
3869 (show_user):
3870 Add NULL for new default_args lookup_cmd argument.
3871 (valid_command_p): Rename to validate_aliased_command.
3872 Add NULL for new default_args lookup_cmd argument. Verify that the
3873 aliased_command has no default args.
3874 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3875 (lookup_cmd_1, lookup_cmd): New argument default_args.
3876 (add_alias_cmd):
3877 Add NULL for new default_args lookup_cmd argument.
3878 (print_help_for_command): Show default args under the layout
3879 alias some_alias = some_aliased_cmd some_alias_default_arg.
3880 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3881 xfree default_args in destructor.
3882 * cli/cli-script.c (process_next_line, do_define_command):
3883 Add NULL for new default_args lookup_cmd argument.
3884 * command.h: Declare new default_args argument in lookup_cmd
3885 and lookup_cmd_1.
3886 * completer.c (complete_line_internal_1):
3887 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3888 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3889 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3890 Likewise.
3891 * infcmd.c (_initialize_infcmd): Likewise.
3892 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3893 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3894 * python/py-param.c (add_setshow_generic): Likewise.
3895 * remote.c (_initialize_remote): Likewise.
3896 * top.c (execute_command): Prepend default_args if command has some.
3897 (set_verbose):
3898 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3899 * tracepoint.c (validate_actionline, encode_actions_1):
3900 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3901
3902 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 * jit.c (jit_read_descriptor): Use bool as the return type.
3905 (jit_breakpoint_re_set_internal): Use bool as the return type.
3906 Invert the return value logic; return true if the jit breakpoint
3907 has been successfully initialized.
3908 (jit_inferior_init): Update the call to
3909 jit_breakpoint_re_set_internal.
3910
3911 2020-06-22 Pedro Alves <palves@redhat.com>
3912
3913 PR gdb/25939
3914 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3915 Use the current inferior instead. Don't return
3916 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3917 wait again.
3918 * sol-thread.c (sol_thread_target::wait): Don't reference
3919 inferior_ptid.
3920 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3921 (sol_update_thread_list_callback): Use the current inferior's pid
3922 instead of inferior_ptid.
3923
3924 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3925
3926 * procfs.c: Cleanup many comments.
3927
3928 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3929 (AFTER_WATCHFLAG): Replace by value.
3930
3931 (MAIN_PROC_NAME_FORMAT): Inline ...
3932 (create_procinfo): ... here.
3933
3934 (procfs_debug_inferior): Remove SYS_exec handling.
3935 (syscall_is_exec): Likewise.
3936 (procfs_set_exec_trap): Likewise.
3937
3938 (syscall_is_lwp_exit): Inline in callers.
3939 (syscall_is_exit): Likewise.
3940 (syscall_is_exec): Likewise.
3941 (syscall_is_lwp_create): Likewise.
3942
3943 (invalidate_cache): Remove #if 0 code.
3944
3945 (make_signal_thread_runnable): Remove.
3946 (procfs_target::resume): Remove #if 0 code.
3947
3948 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3949
3950 PR gdb/25939
3951 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3952 call ...
3953 (procfs_target::create_inferior): ... here.
3954
3955 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3956
3957 * exec.c (validate_exec_file): Ensure the build-id is up to
3958 date by calling reopen_exec_file (that checks file timestamp
3959 to decide to re-read the file).
3960
3961 2020-06-18 Pedro Alves <palves@redhat.com>
3962
3963 PR gdb/25412
3964 * gdbthread.h (delete_thread, delete_thread_silent)
3965 (find_thread_ptid): Update comments.
3966 * thread.c (current_thread_): New global.
3967 (is_current_thread): Move higher, and reimplement.
3968 (inferior_thread): Reimplement.
3969 (set_thread_exited): Use bool. Add assertions.
3970 (add_thread_silent): Simplify thread-reuse handling by always
3971 calling delete_thread.
3972 (delete_thread): Remove intro comment.
3973 (find_thread_ptid): Skip exited threads.
3974 (switch_to_thread_no_regs): Write to current_thread_.
3975 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3976 INFERIOR_PTID. Clear current_thread_.
3977
3978 2020-06-18 Pedro Alves <palves@redhat.com>
3979
3980 * aix-thread.c (pd_update): Use switch_to_thread.
3981
3982 2020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * ravenscar-thread.c (ravenscar_thread_target): Update.
3985 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3986 (ravenscar_thread_target::add_active_thread): ... this. Don't
3987 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3988 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3989
3990 2020-06-18 Pedro Alves <palves@redhat.com>
3991
3992 * nat/windows-nat.c (current_windows_thread): Remove.
3993 * nat/windows-nat.h (current_windows_thread): Remove.
3994 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3995 Adjust.
3996 (display_selectors): Adjust to fetch the current
3997 windows_thread_info based on inferior_ptid.
3998 (fake_create_process): No longer write to current_windows_thread.
3999 (windows_nat_target::get_windows_debug_event):
4000 Don't set inferior_ptid or current_windows_thread.
4001 (windows_nat_target::wait): Adjust to not rely on
4002 current_windows_thread.
4003 (do_initial_windows_stuff): Now a method of windows_nat_target.
4004 Switch to the last_ptid thread.
4005 (windows_nat_target::attach): Adjust.
4006 (windows_nat_target::detach): Use switch_to_no_thread instead of
4007 writing to inferior_ptid directly.
4008 (windows_nat_target::create_inferior): Adjust.
4009
4010 2020-06-18 Pedro Alves <palves@redhat.com>
4011
4012 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4013
4014 2020-06-18 Pedro Alves <palves@redhat.com>
4015
4016 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4017 after creating it, instead of writing to inferior_ptid. Don't
4018 write to inferior_ptid.
4019
4020 2020-06-18 Pedro Alves <palves@redhat.com>
4021
4022 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4023
4024 2020-06-18 Pedro Alves <palves@redhat.com>
4025
4026 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4027 it, instead of writing to inferior_ptid.
4028
4029 2020-06-18 Pedro Alves <palves@redhat.com>
4030
4031 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4032 to inferior_ptid.
4033
4034 2020-06-18 Pedro Alves <palves@redhat.com>
4035
4036 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4037 instead of writing to inferior_ptid directly.
4038
4039 2020-06-18 Pedro Alves <palves@redhat.com>
4040
4041 * corelow.c (core_target::close): Use switch_to_no_thread instead
4042 of writing to inferior_ptid directly.
4043 (add_to_thread_list, core_target_open): Use switch_to_thread
4044 instead of writing to inferior_ptid directly.
4045
4046 2020-06-18 Pedro Alves <palves@redhat.com>
4047
4048 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4049 inferior_ptid.
4050 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4051 inferior_ptid.
4052 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4053 inferior_ptid directly.
4054 (darwin_nat_target::init_thread_list): Switch to thread, instead
4055 of writing to inferior_ptid.
4056 (darwin_nat_target::attach): Don't write to inferior_ptid.
4057 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4058
4059 2020-06-18 Pedro Alves <palves@redhat.com>
4060
4061 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4062 thread.
4063 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4064 Instead use switch_to_thread.
4065 (gnu_nat_target::detach): Use switch_to_no_thread
4066 instead of writing to inferior_ptid directly. Used passed-in
4067 inferior instead of looking up the inferior by pid.
4068
4069 2020-06-18 Pedro Alves <palves@redhat.com>
4070
4071 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4072 inferior_ptid.
4073
4074 2020-06-18 Pedro Alves <palves@redhat.com>
4075
4076 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4077 inferior_ptid.
4078 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4079 thread.
4080 (nto_procfs_target::detach): Avoid referencing
4081 inferior_ptid. Use switch_to_no_thread instead of writing to
4082 inferior_ptid directly.
4083 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4084 instead of writing to inferior_ptid directly.
4085 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4086 to thread.
4087
4088 2020-06-18 Pedro Alves <palves@redhat.com>
4089
4090 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4091 after creating it, instead of writing to inferior_ptid.
4092 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4093 to inferior_ptid directly.
4094 (gdbsim_target::wait): Don't write to inferior_ptid.
4095
4096 2020-06-18 Pedro Alves <palves@redhat.com>
4097
4098 * remote.c (remote_target::remote_notice_new_inferior): Use
4099 switch_to_thread instead of writing to inferior_ptid directly.
4100 (remote_target::add_current_inferior_and_thread): Use
4101 switch_to_no_thread instead of writing to inferior_ptid directly.
4102 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4103 and switch_to_thread instead of using set_current_inferior or
4104 writing to inferior_ptid directly.
4105
4106 2020-06-18 Pedro Alves <palves@redhat.com>
4107
4108 * tracectf.c (ctf_target_open): Switch to added thread instead of
4109 writing to inferior_ptid directly.
4110 (ctf_target::close): Use switch_to_no_thread instead of writing to
4111 inferior_ptid directly.
4112
4113 2020-06-18 Pedro Alves <palves@redhat.com>
4114
4115 * tracefile-tfile.c (tfile_target_open): Don't write to
4116 inferior_ptid directly, instead switch to added thread.
4117 (tfile_target::close): Use switch_to_no_thread instead of writing
4118 to inferior_ptid directly.
4119
4120 2020-06-18 Pedro Alves <palves@redhat.com>
4121
4122 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4123 (procfs_target::detach): Use switch_to_no_thread
4124 instead of writing to inferior_ptid directly.
4125 (do_attach): Change return type to void. Switch to the added
4126 thread.
4127 (procfs_target::create_inferior): Switch to the added thread.
4128 (procfs_do_thread_registers): Don't write to inferior_ptid.
4129
4130 2020-06-18 Pedro Alves <palves@redhat.com>
4131
4132 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4133 of writing to inferior_ptid.
4134 (scoped_restore_exited_inferior): Delete.
4135 (handle_vfork_child_exec_or_exit): Simplify using
4136 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4137 instead of writing to inferior_ptid.
4138 (THREAD_STOPPED_BY): Delete.
4139 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4140 (thread_stopped_by_hw_breakpoint): Delete.
4141 (save_waitstatus): Use
4142 scoped_restore_current_thread+switch_to_thread, and call
4143 target_stopped_by_watchpoint instead of
4144 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4145 instead of thread_stopped_by_sw_breakpoint, and
4146 target_stopped_by_hw_breakpoint instead of
4147 thread_stopped_by_hw_breakpoint.
4148 (handle_inferior_event)
4149 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4150 inferior_ptid directly, nor
4151 set_current_inferior/set_current_program_space. Use
4152 switch_to_thread / switch_to_inferior_no_thread instead.
4153
4154 2020-06-18 Pedro Alves <palves@redhat.com>
4155
4156 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4157 instead of writing to inferior_ptid.
4158
4159 2020-06-18 Pedro Alves <palves@redhat.com>
4160
4161 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4162 added thread.
4163 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4164 to the added thread.
4165 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4166 instead of writing to inferior_ptid.
4167
4168 2020-06-18 Pedro Alves <palves@redhat.com>
4169
4170 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4171 (register_to_value_test): Mock a program_space too. Heap-allocate
4172 the address space. Don't write to inferior_ptid. Use
4173 switch_to_thread instead.
4174
4175 2020-06-18 Pedro Alves <palves@redhat.com>
4176
4177 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4178 Delete.
4179 (find_signalled_thread()): New, factored out from
4180 linux_make_corefile_notes and adjusted to handle exited threads.
4181 (linux_make_corefile_notes): Adjust to use the new
4182 find_signalled_thread.
4183
4184 2020-06-18 Pedro Alves <palves@redhat.com>
4185
4186 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4187 of saving/restoring inferior_ptid.
4188
4189 2020-06-17 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4192 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4193 declare.
4194 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4195
4196 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4199 of partial symtabs.
4200
4201 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * regformats/reg-arm.dat: Remove.
4204 * regformats/reg-bfin.dat: Remove.
4205 * regformats/reg-cris.dat: Remove.
4206 * regformats/reg-crisv32.dat: Remove.
4207 * regformats/reg-m32r.dat: Remove.
4208 * regformats/reg-tilegx.dat: Remove.
4209 * regformats/reg-tilegx32.dat: Remove.
4210
4211 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * features/Makefile (WHICH): Remove arm files.
4214 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4215 * regformats/arm/arm-with-neon.dat: Remove.
4216 * regformats/arm/arm-with-vfpv2.dat: Remove.
4217 * regformats/arm/arm-with-vfpv3.dat: Remove.
4218
4219 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * features/Makefile (XMLTOC): Remove rx.xml.
4222
4223 2020-06-17 Pedro Alves <palves@redhat.com>
4224
4225 * gdbthread.h (thread_control_state) <trap_expected> Update
4226 comments.
4227
4228 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4231 ada_language::lookup_symbol_nonlocal.
4232 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4233 (ada_language::lookup_symbol_nonlocal): New member function,
4234 implementation from ada_lookup_symbol_nonlocal.
4235 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4236 initializer.
4237 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4238 initializer.
4239 (cplus_language::lookup_symbol_nonlocal): New member function.
4240 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4241 (minimal_language_data) Likewise.
4242 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4243 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4244 initializer.
4245 (d_language::lookup_symbol_nonlocal): New member function.
4246 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4247 initializer.
4248 (f_language::lookup_symbol_nonlocal): New member function.
4249 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4250 initializer.
4251 * language.c (unknown_language_data): Likewise.
4252 (auto_language_data): Likewise.
4253 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4254 field.
4255 (language_defn::lookup_symbol_nonlocal): New member function.
4256 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4257 initializer.
4258 * objc-lang.c (objc_language_data): Likewise.
4259 * opencl-lang.c (opencl_language_data): Likewise.
4260 * p-lang.c (pascal_language_data): Likewise.
4261 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4262 rust_language::lookup_symbol_nonlocal.
4263 (rust_language_data): Delete la_lookup_symbol_nonlocal
4264 initializer.
4265 (rust_language::lookup_symbol_nonlocal): New member function,
4266 implementation from rust_lookup_symbol_nonlocal.
4267 * symtab.c (lookup_symbol_aux): Update call to
4268 lookup_symbol_nonlocal.
4269 (basic_lookup_symbol_nonlocal): Rename to...
4270 (language_defn::lookup_symbol_nonlocal): ...this, and update
4271 header comment. Remove language_defn parameter, and replace with
4272 uses of `this'.
4273 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4274
4275 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4278 initializer.
4279 (ada_language::value_print_inner): New member function.
4280 * c-lang.c (c_language_data): Delete la_value_print_inner
4281 initializer.
4282 (cplus_language_data): Likewise.
4283 (asm_language_data): Likewise.
4284 (minimal_language_data): Likewise.
4285 * d-lang.c (d_language_data): Likewise.
4286 (d_language::value_print_inner): New member function.
4287 * f-lang.c (f_language_data): Delete la_value_print_inner
4288 initializer.
4289 (f_language::value_print_inner): New member function.
4290 * f-lang.h (f_value_print_innner): Rename to...
4291 (f_value_print_inner): ...this (note spelling of 'inner').
4292 * f-valprint.c (f_value_print_innner): Rename to...
4293 (f_value_print_inner): ...this (note spelling of 'inner').
4294 * go-lang.c (go_language_data): Delete la_value_print_inner
4295 initializer.
4296 (go_language::value_print_inner): New member function.
4297 * language.c (language_defn::value_print_inner): Define new member
4298 function.
4299 (unk_lang_value_print_inner): Delete.
4300 (unknown_language_data): Delete la_value_print_inner initializer.
4301 (unknown_language::value_print_inner): New member function.
4302 (auto_language_data): Delete la_value_print_inner initializer.
4303 (auto_language::value_print_inner): New member function.
4304 * language.h (language_data): Delete la_value_print_inner field.
4305 (language_defn::value_print_inner): Delcare new member function.
4306 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4307 initializer.
4308 (m2_language::value_print_inner): New member function.
4309 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4310 initializer.
4311 * opencl-lang.c (opencl_language_data): Likewise.
4312 * p-lang.c (pascal_language_data): Likewise.
4313 (pascal_language::value_print_inner): New member function.
4314 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4315 initializer.
4316 (rust_language::value_print_inner): New member function.
4317 * valprint.c (do_val_print): Update call to value_print_inner.
4318
4319 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4320
4321 * ada-lang.c (ada_language_data): Delete la_value_print
4322 initializer.
4323 (ada_language::value_print): New member function.
4324 * c-lang.c (c_language_data): Delete la_value_print initializer.
4325 (cplus_language_data): Likewise.
4326 (asm_language_data): Likewise.
4327 (minimal_language_data): Likewise.
4328 * d-lang.c (d_language_data): Likewise.
4329 * f-lang.c (f_language_data): Likewise.
4330 * go-lang.c (go_language_data): Likewise.
4331 * language.c (unk_lang_value_print): Delete.
4332 (language_defn::value_print): Define new member function.
4333 (unknown_language_data): Delete la_value_print initializer.
4334 (unknown_language::value_print): New member function.
4335 (auto_language_data): Delete la_value_print initializer.
4336 (auto_language::value_print): New member function.
4337 * language.h (language_data): Delete la_value_print field.
4338 (language_defn::value_print): Declare new member function.
4339 (LA_VALUE_PRINT): Update call to value_print.
4340 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4341 * objc-lang.c (objc_language_data): Likewise.
4342 * opencl-lang.c (opencl_language_data): Likewise.
4343 * p-lang.c (pascal_language_data): Likewise.
4344 (pascal_language::value_print): New member function.
4345 * rust-lang.c (rust_language_data): Delete la_value_print
4346 initializer.
4347
4348 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4349
4350 * ada-lang.c (ada_watch_location_expression): Rename to
4351 ada_language::watch_location_expression.
4352 (ada_language_data): Delete la_watch_location_expression
4353 initializer.
4354 (ada_language::watch_location_expression): New member function,
4355 implementation from ada_watch_location_expression.
4356 * breakpoint.c (watch_command_1): Update call to
4357 watch_location_expression.
4358 * c-lang.c (c_watch_location_expression): Rename to
4359 language_defn::watch_location_expression.
4360 (c_language_data): Delete la_watch_location_expression
4361 initializer.
4362 (cplus_language_data): Likewise.
4363 (asm_language_data): Likewise.
4364 (minimal_language_data): Likewise.
4365 * c-lang.h (c_watch_location_expression): Delete declaration.
4366 * d-lang.c (d_language_data): Delete la_watch_location_expression
4367 initializer.
4368 * f-lang.c (f_language_data): Likewise.
4369 * go-lang.c (go_language_data): Likewise.
4370 * language.c (language_defn::watch_location_expression): Member
4371 function implementation from c_watch_location_expression.
4372 (unknown_language_data): Delete la_watch_location_expression
4373 initializer.
4374 (auto_language_data): Likewise.
4375 * language.h (language_data): Delete la_watch_location_expression
4376 field.
4377 (language_defn::watch_location_expression): Declare new member
4378 function.
4379 * m2-lang.c (m2_language_data): Delete
4380 la_watch_location_expression initializer.
4381 * objc-lang.c (objc_language_data): Likewise.
4382 * opencl-lang.c (opencl_language_data): Likewise.
4383 * p-lang.c (pascal_language_data): Likewise.
4384 * rust-lang.c (rust_watch_location_expression): Rename to
4385 rust_language::watch_location_expression.
4386 (rust_language_data): Delete la_watch_location_expression
4387 initializer.
4388 (rust_language::watch_location_expression): New member function,
4389 implementation from rust_watch_location_expression.
4390
4391 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4392
4393 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4394 ada_language::collect_symbol_completion_matches.
4395 (ada_language_data): Delete la_collect_symbol_completion_matches
4396 initializer.
4397 (ada_language::collect_symbol_completion_matches): New member
4398 function, implementation from
4399 ada_collect_symbol_completion_matches.
4400 * c-lang.c (c_language_data): Delete
4401 la_collect_symbol_completion_matches initializer.
4402 (cplus_language_data): Likewise.
4403 (asm_language_data): Likewise.
4404 (minimal_language_data): Likewise.
4405 * d-lang.c (d_language_data): Likewise.
4406 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4407 f_language::collect_symbol_completion_matches.
4408 (f_language_data): Delete la_collect_symbol_completion_matches
4409 initializer.
4410 (f_language::collect_symbol_completion_matches) New member
4411 function, implementation from f_collect_symbol_completion_matches.
4412 * go-lang.c (go_language_data): Delete
4413 la_collect_symbol_completion_matches initializer.
4414 * language.c (unknown_language_data): Likewise.
4415 (auto_language_data): Likewise.
4416 * language.h (language_data): Delete
4417 la_collect_symbol_completion_matches field.
4418 (language_defn::collect_symbol_completion_matches): New member
4419 function.
4420 * m2-lang.c (m2_language_data): Delete
4421 la_collect_symbol_completion_matches initializer.
4422 * objc-lang.c (objc_language_data): Likewise.
4423 * opencl-lang.c (opencl_language_data): Likewise.
4424 * p-lang.c (pascal_language_data): Likewise.
4425 * rust-lang.c (rust_language_data): Likewise.
4426 * symtab.c (default_collect_symbol_completion_matches): Delete.
4427 (collect_symbol_completion_matches): Update call to
4428 collect_symbol_completion_matches.
4429 (collect_symbol_completion_matches_type): Likewise.
4430 * symtab.h (default_collect_symbol_completion_matches): Delete
4431 declaration.
4432
4433 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4436 (ada_language_data): Delete la_word_break_characters initializer.
4437 (ada_language::word_break_characters): New member function.
4438 * c-lang.c (c_language_data): Delete la_word_break_characters
4439 initializer.
4440 (cplus_language_data): Likewise.
4441 (asm_language_data): Likewise.
4442 (minimal_language_data): Likewise.
4443 * completer.c: Update global comment.
4444 (advance_to_expression_complete_word_point): Update call to
4445 word_break_characters.
4446 (complete_files_symbols): Likewise.
4447 (complete_line_internal_1): Likewise.
4448 (default_completer_handle_brkchars): Likewise.
4449 (skip_quoted_chars): Likewise.
4450 * d-lang.c (d_language_data): Delete la_word_break_characters
4451 initializer.
4452 * f-lang.c (f_word_break_characters): Delete.
4453 (f_language_data): Delete la_word_break_characters initializer.
4454 (f_language::word_break_characters): New member function.
4455 * go-lang.c (go_language_data): Delete la_word_break_characters
4456 initializer.
4457 * language.c (unknown_language_data): Likewise.
4458 (auto_language_data): Likewise.
4459 * language.h (default_word_break_characters): Move declaration to
4460 earlier in the file.
4461 (language_data): Delete la_word_break_characters field.
4462 (language_defn::word_break_characters): New member function.
4463 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4464 initializer.
4465 * objc-lang.c (objc_language_data): Likewise.
4466 * opencl-lang.c (opencl_language_data): Likewise.
4467 * p-lang.c (pascal_language_data): Likewise.
4468 * rust-lang.c (rust_language_data): Likewise.
4469
4470 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4473 (ada_language_data): Delete la_get_symbol_name_matcher
4474 initializer.
4475 (language_defn::get_symbol_name_matcher_inner): New member
4476 function.
4477 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4478 initializer.
4479 (cplus_language_data): Likewise.
4480 (cplus_language::get_symbol_name_matcher_inner): New member
4481 function.
4482 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4483 (minimal_language_data): Likewise.
4484 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4485 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4486 initializer.
4487 * dictionary.c (iter_match_first_hashed): Update call to
4488 get_symbol_name_matcher.
4489 (iter_match_next_hashed): Likewise.
4490 (iter_match_next_linear): Likewise.
4491 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4492 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4493 initializer.
4494 (f_language::get_symbol_name_matcher_inner): New member function.
4495 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4496 initializer.
4497 * language.c (default_symbol_name_matcher): Update header comment,
4498 make static.
4499 (language_defn::get_symbol_name_matcher): New definition.
4500 (language_defn::get_symbol_name_matcher_inner): Likewise.
4501 (get_symbol_name_matcher): Delete.
4502 (unknown_language_data): Delete la_get_symbol_name_matcher
4503 initializer.
4504 (auto_language_data): Likewise.
4505 * language.h (language_data): Delete la_get_symbol_name_matcher
4506 field.
4507 (language_defn::get_symbol_name_matcher): New member function.
4508 (language_defn::get_symbol_name_matcher_inner): Likewise.
4509 (default_symbol_name_matcher): Delete declaration.
4510 * linespec.c (find_methods): Update call to
4511 get_symbol_name_matcher.
4512 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4513 initializer.
4514 * minsyms.c (lookup_minimal_symbol): Update call to
4515 get_symbol_name_matcher.
4516 (iterate_over_minimal_symbols): Likewise.
4517 * objc-lang.c (objc_language_data): Delete
4518 la_get_symbol_name_matcher initializer.
4519 * opencl-lang.c (opencl_language_data): Likewise.
4520 * p-lang.c (pascal_language_data): Likewise.
4521 * psymtab.c (psymbol_name_matches): Update call to
4522 get_symbol_name_matcher.
4523 * rust-lang.c (rust_language_data): Delete
4524 la_get_symbol_name_matcher initializer.
4525 * symtab.c (symbol_matches_search_name): Update call to
4526 get_symbol_name_matcher.
4527 (compare_symbol_name): Likewise.
4528
4529 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4530
4531 * ada-lang.c (ada_language_data): Delete la_compute_program
4532 initializer.
4533 * c-lang.c (c_language_data): Likewise.
4534 (c_language::compute_program): New member function.
4535 (cplus_language_data): Delete la_compute_program initializer.
4536 (cplus_language::compute_program): New member function.
4537 (asm_language_data): Delete la_compute_program initializer.
4538 (minimal_language_data): Likewise.
4539 * c-lang.h (c_compute_program): Update comment.
4540 (cplus_compute_program): Likewise.
4541 * compile/compile-c-support.c (c_compute_program): Likewise.
4542 (cplus_compute_program): Likewise.
4543 * compile/compile.c (compile_to_object): Update call to
4544 la_compute_program.
4545 * d-lang.c (d_language_data): Delete la_compute_program
4546 initializer.
4547 * f-lang.c (f_language_data): Likewise.
4548 * go-lang.c (go_language_data): Likewise.
4549 * language.c (unknown_language_data): Likewise.
4550 (auto_language_data): Likewise.
4551 * language.h (language_data): Delete la_compute_program field.
4552 (language_defn::compute_program): New member function.
4553 * m2-lang.c (m2_language_data): Delete la_compute_program
4554 initializer.
4555 * objc-lang.c (objc_language_data): Likewise.
4556 * opencl-lang.c (opencl_language_data): Likewise.
4557 * p-lang.c (pascal_language_data): Likewise.
4558 * rust-lang.c (rust_language_data): Likewise.
4559
4560 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * ada-lang.c (ada_language_data) Delete
4563 la_class_name_from_physname initializer.
4564 * c-lang.c (c_language_data): Likewise.
4565 (cplus_language_data): Likewise.
4566 (cplus_language::class_name_from_physname): New member function.
4567 (asm_language_data): Delete la_class_name_from_physname
4568 initializer.
4569 (minimal_language_data): Likewise.
4570 * d-lang.c (d_language_data): Likewise.
4571 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4572 method on language_defn class.
4573 (guess_full_die_structure_name): Likewise.
4574 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4575 initializer.
4576 * go-lang.c (go_language_data): Likewise.
4577 * language.c (language_class_name_from_physname): Delete.
4578 (unk_lang_class_name): Delete.
4579 (unknown_language_data): Delete la_class_name_from_physname
4580 initializer.
4581 (auto_language_data): Likewise.
4582 * language.h (language_data): Delete la_class_name_from_physname
4583 field.
4584 (language_defn::class_name_from_physname): New function.
4585 (language_class_name_from_physname): Delete declaration.
4586 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4587 initializer.
4588 * objc-lang.c (objc_language_data): Likewise.
4589 * opencl-lang.c (opencl_language_data): Likewise.
4590 * p-lang.c (pascal_language_data): Likewise.
4591 * rust-lang.c (rust_language_data): Likewise.
4592
4593 2020-06-16 Tom Tromey <tom@tromey.com>
4594
4595 * tui/tui-data.h (STATUS_NAME): New macro.
4596 * tui/tui-layout.c (tui_remove_some_windows)
4597 (initialize_known_windows, tui_register_window)
4598 (tui_layout_split::remove_windows, initialize_layouts)
4599 (tui_new_layout_command): Don't use hard-coded window names.
4600
4601 2020-06-16 Tom Tromey <tom@tromey.com>
4602
4603 PR tui/25348:
4604 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4605 tui_initialize_readline. Only run once. Call rl_initialize.
4606 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4607 tui_initialize_readline.
4608 * tui/tui-io.c (tui_setup_io): Call
4609 tui_ensure_readline_initialized.
4610 * tui/tui-interp.c (tui_interp::init): Update.
4611
4612 2020-06-16 Tom Tromey <tom@tromey.com>
4613
4614 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4615 Also preserve the status window.
4616
4617 2020-06-16 Tom Tromey <tom@tromey.com>
4618
4619 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4620 where m_window==nullptr.
4621
4622 2020-06-15 Tom Tromey <tromey@adacore.com>
4623
4624 * windows-nat.c (windows_nat::handle_output_debug_string):
4625 Update.
4626 (windows_nat::handle_ms_vc_exception): Update.
4627 * target.h (target_read_string): Change API.
4628 * target.c (target_read_string): Change API.
4629 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4630 Update.
4631 * solib-frv.c (frv_current_sos): Update.
4632 * solib-dsbt.c (dsbt_current_sos): Update.
4633 * solib-darwin.c (darwin_current_sos): Update.
4634 * linux-thread-db.c (inferior_has_bug): Update.
4635 * expprint.c (print_subexp_standard): Update.
4636 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4637 (ada_exception_message_1): Update.
4638
4639 2020-06-15 Tom Tromey <tromey@adacore.com>
4640
4641 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4642
4643 2020-06-15 Tom Tromey <tromey@adacore.com>
4644
4645 * valprint.c (read_string): Update comment.
4646 * target.c (MIN): Remove.
4647 (target_read_string): Rewrite.
4648
4649 2020-06-15 Tom Tromey <tromey@adacore.com>
4650
4651 * corefile.c (read_memory_string): Remove.
4652 * ada-valprint.c (ada_value_print_ptr): Update.
4653 * ada-lang.h (ada_tag_name): Change return type.
4654 * ada-lang.c (type_from_tag): Update.
4655 (ada_tag_name_from_tsd): Change return type. Use
4656 target_read_string.
4657 (ada_tag_name): Likewise.
4658 * gdbcore.h (read_memory_string): Don't declare.
4659
4660 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4661
4662 * symtab.c (rbreak_command): Ignore Windows drive colon.
4663
4664 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * NEWS: Mention removed GDBserver host support.
4667
4668 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4669
4670 * features/riscv/rebuild-csr-xml.sh: Updated.
4671
4672 2020-06-11 Tom Tromey <tom@tromey.com>
4673
4674 PR gdb/18318:
4675 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4676
4677 2020-06-09 Jonny Grant <jg@jguk.org>
4678 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4679
4680 * main.c (captured_main_1): Don't print new line after help.
4681 (print_gdb_help): add mailing list and IRC channel information
4682 to --help. Add new lines between items in the footer. Remove
4683 quotes around bug url.
4684
4685 2020-06-11 Keith Seitz <keiths@redhat.com>
4686
4687 PR gdb/21356
4688 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4689 Resolve typedefs for type length calculations.
4690
4691 2020-06-10 Tom de Vries <tdevries@suse.de>
4692
4693 PR ada/24713
4694 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4695 (write_psymbols): Enable .gdb_index for ada.
4696 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4697 ada.
4698
4699 2020-06-10 Tom de Vries <tdevries@suse.de>
4700
4701 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4702 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4703 namei" instead of "const char *name" argument.
4704 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4705 dw2_symtab_iter_init.
4706
4707 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4710 to use type::field and field::type instead.
4711
4712 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4715 to use field::type instead.
4716
4717 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * gdbtypes.h (struct field) <type, set_type>: New methods.
4720 Rename `type` field to...
4721 <m_type>: ... this. Change references throughout to use type or
4722 set_type methods.
4723 (FIELD_TYPE): Use field::type. Change call sites that modify
4724 the field's type to use field::set_type instead.
4725
4726 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4729 to use type::index_type instead.
4730
4731 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4732
4733 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4734 methods.
4735 (TYPE_INDEX_TYPE): Use type::index_type.
4736 * gdbtypes.c (create_array_type_with_stride): Likewise.
4737
4738 2020-06-07 Tom Tromey <tom@tromey.com>
4739
4740 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4741 parameter.
4742 (generic_value_print): Update.
4743
4744 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4745
4746 Revert commit 982a38f60b0.
4747 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4748
4749 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4750
4751 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4752 avoid use after free.
4753
4754 2020-06-05 Tom de Vries <tdevries@suse.de>
4755
4756 * NEWS: Fix typos.
4757
4758 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4761 the per_bfd object.
4762 (dwarf2_read_debug_names): Likewise.
4763 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4764 object when re-using a per_bfd object with an index.
4765
4766 2020-06-03 Tom de Vries <tdevries@suse.de>
4767
4768 PR symtab/26046
4769 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4770 children for C++.
4771 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4772 DW_TAG_subprogram.
4773
4774 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4775
4776 * ada-lang.c (ada_language_data): Delete skip_trampoline
4777 initializer.
4778 * c-lang.c (c_language_data): Likewise.
4779 (cplus_language_data): Likewise.
4780 (cplus_language::skip_trampoline): New member function.
4781 (asm_language_data): Delete skip_trampoline initializer.
4782 (minimal_language_data): Likewise.
4783 * d-lang.c (d_language_data): Likewise.
4784 * f-lang.c (f_language_data): Likewise.
4785 * go-lang.c (go_language_data): Likewise.
4786 * language.c (unk_lang_trampoline): Delete function.
4787 (skip_language_trampoline): Update.
4788 (unknown_language_data): Delete skip_trampoline initializer.
4789 (auto_language_data): Likewise.
4790 * language.h (language_data): Delete skip_trampoline field.
4791 (language_defn::skip_trampoline): New function.
4792 * m2-lang.c (m2_language_data): Delete skip_trampoline
4793 initializer.
4794 * objc-lang.c (objc_skip_trampoline): Delete function, move
4795 implementation to objc_language::skip_trampoline.
4796 (objc_language_data): Delete skip_trampoline initializer.
4797 (objc_language::skip_trampoline): New member function with
4798 implementation from objc_skip_trampoline.
4799 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4800 initializer.
4801 * p-lang.c (pascal_language_data): Likewise.
4802 * rust-lang.c (rust_language_data): Likewise.
4803
4804 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4807 (ada_language::demangle): New member function.
4808 * c-lang.c (c_language_data): Delete la_demangle initializer.
4809 (cplus_language_data): Delete la_demangle initializer.
4810 (cplus_language::demangle): New member function.
4811 (asm_language_data): Delete la_demangle initializer.
4812 (minimal_language_data): Delete la_demangle initializer.
4813 * d-lang.c (d_language_data): Delete la_demangle initializer.
4814 (d_language::demangle): New member function.
4815 * f-lang.c (f_language_data): Delete la_demangle initializer.
4816 (f_language::demangle): New member function.
4817 * go-lang.c (go_language_data): Delete la_demangle initializer.
4818 (go_language::demangle): New member function.
4819 * language.c (language_demangle): Update.
4820 (unk_lang_demangle): Delete.
4821 (unknown_language_data): Delete la_demangle initializer.
4822 (unknown_language::demangle): New member function.
4823 (auto_language_data): Delete la_demangle initializer.
4824 (auto_language::demangle): New member function.
4825 * language.h (language_data): Delete la_demangle field.
4826 (language_defn::demangle): New function.
4827 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4828 * objc-lang.c (objc_language_data): Delete la_demangle
4829 initializer.
4830 (objc_language::demangle): New member function.
4831 * opencl-lang.c (opencl_language_data): Delete la_demangle
4832 initializer.
4833 * p-lang.c (pascal_language_data): Likewise.
4834 * rust-lang.c (rust_language_data): Likewise.
4835 (rust_language::demangle): New member function.
4836
4837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4838
4839 * ada-lang.c (ada_language_data): Delete la_print_type
4840 initializer.
4841 (ada_language::print_type): New member function.
4842 * c-lang.c (c_language_data): Delete la_print_type initializer.
4843 (c_language::print_type): New member function.
4844 (cplus_language_data): Delete la_print_type initializer.
4845 (cplus_language::print_type): New member function.
4846 (asm_language_data): Delete la_print_type initializer.
4847 (asm_language::print_type): New member function.
4848 (minimal_language_data): Delete la_print_type initializer.
4849 (minimal_language::print_type): New member function.
4850 * d-lang.c (d_language_data): Delete la_print_type initializer.
4851 (d_language::print_type): New member function.
4852 * f-lang.c (f_language_data): Delete la_print_type initializer.
4853 (f_language::print_type): New member function.
4854 * go-lang.c (go_language_data): Delete la_print_type initializer.
4855 (go_language::print_type): New member function.
4856 * language.c (unk_lang_print_type): Delete.
4857 (unknown_language_data): Delete la_print_type initializer.
4858 (unknown_language::print_type): New member function.
4859 (auto_language_data): Delete la_print_type initializer.
4860 (auto_language::print_type): New member function.
4861 * language.h (language_data): Delete la_print_type field.
4862 (language_defn::print_type): New function.
4863 (LA_PRINT_TYPE): Update.
4864 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4865 (m2_language::print_type): New member function.
4866 * objc-lang.c (objc_language_data): Delete la_print_type
4867 initializer.
4868 (objc_language::print_type): New member function.
4869 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4870 to opencl_language::print_type.
4871 (opencl_language_data): Delete la_print_type initializer.
4872 (opencl_language::print_type): New member function, implementation
4873 from opencl_print_type.
4874 * p-lang.c (pascal_language_data): Delete la_print_type
4875 initializer.
4876 (pascal_language::print_type): New member function.
4877 * rust-lang.c (rust_print_type): Delete, implementation moved to
4878 rust_language::print_type.
4879 (rust_language_data): Delete la_print_type initializer.
4880 (rust_language::print_type): New member function, implementation
4881 from rust_print_type.
4882
4883 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4886 implementation moves to...
4887 (ada_language::sniff_from_mangled_name): ...here. Update return
4888 type.
4889 (ada_language_data): Delete la_sniff_from_mangled_name
4890 initializer.
4891 * c-lang.c (c_language_data): Likewise.
4892 (cplus_language_data): Likewise.
4893 (cplus_language::sniff_from_mangled_name): New member function,
4894 implementation taken from gdb_sniff_from_mangled_name.
4895 (asm_language_data): Delete la_sniff_from_mangled_name
4896 initializer.
4897 (minimal_language_data): Likewise.
4898 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4899 implementation moves to cplus_language::sniff_from_mangled_name.
4900 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4901 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4902 moves to...
4903 (d_language::sniff_from_mangled_name): ...here.
4904 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4905 * f-lang.c (f_language_data): Likewise.
4906 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4907 moves to...
4908 (go_language::sniff_from_mangled_name): ...here.
4909 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4910 * language.c (language_sniff_from_mangled_name): Delete.
4911 (unknown_language_data): Delete la_sniff_from_mangled_name
4912 initializer.
4913 (auto_language_data): Likewise.
4914 * language.h (language_data): Delete la_sniff_from_mangled_name
4915 field.
4916 (language_defn::sniff_from_mangled_name): New function.
4917 (language_sniff_from_mangled_name): Delete declaration.
4918 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4919 field.
4920 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4921 implementation moves to...
4922 (objc_language::sniff_from_mangled_name): ...here.
4923 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4924 * opencl-lang.c (opencl_language_data): Likewise.
4925 * p-lang.c (pascal_language_data): Likewise.
4926 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4927 implementation moves to...
4928 (rust_language::sniff_from_mangled_name): ...here.
4929 (rust_language_data): Delete la_sniff_from_mangled_name
4930 initializer.
4931 * symtab.c (symbol_find_demangled_name): Call
4932 sniff_from_mangled_name member function.
4933
4934 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4935
4936 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4937 initializer.
4938 * c-lang.c (c_language_data): Likewise.
4939 (cplus_language_data): Likewise.
4940 (cplus_language::search_name_hash): New member function.
4941 (asm_language_data): Delete la_search_name_hash initializer.
4942 (minimal_language_data): Likewise.
4943 * d-lang.c (d_language_data): Likewise.
4944 * dictionary.c (default_search_name_hash): Rename to...
4945 (language_defn::search_name_hash): ...this.
4946 * f-lang.c (f_language_data): Likewise.
4947 (f_language::search_name_hash): New member function.
4948 * go-lang.c (go_language_data): Delete la_search_name_hash
4949 initializer.
4950 * language.c (unknown_language_data): Likewise.
4951 (auto_language_data): Likewise.
4952 * language.h (struct language_data): Delete la_search_name_hash
4953 field.
4954 (language_defn::search_name_hash): Declare new member function.
4955 (default_search_name_hash): Delete declaration.
4956 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4957 initializer.
4958 * objc-lang.c (objc_language_data): Likewise.
4959 * opencl-lang.c (opencl_language_data): Likewise.
4960 * p-lang.c (pascal_language_data): Likewise.
4961 * rust-lang.c (rust_language_data): Likewise.
4962 * symtab.c (search_name_hash): Update call.
4963
4964 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4965
4966 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4967 initializer.
4968 * c-lang.c (class compile_instance): Declare.
4969 (c_language_data): Delete la_get_compile_instance initializer.
4970 (c_language::get_compile_instance): New member function.
4971 (cplus_language_data): Delete la_get_compile_instance initializer.
4972 (cplus_language::get_compile_instance): New member function.
4973 (asm_language_data): Delete la_get_compile_instance initializer.
4974 (minimal_language_data): Likewise.
4975 * c-lang.h (c_get_compile_context): Update comment.
4976 (cplus_get_compile_context): Update comment.
4977 * compile/compile.c (compile_to_object): Update calls, don't rely
4978 on function pointer being NULL.
4979 * d-lang.c (d_language_data): Delete la_get_compile_instance
4980 initializer.
4981 * f-lang.c (f_language_data): Likewise.
4982 * go-lang.c (go_language_data): Likewise.
4983 * language.c (unknown_language_data): Likewise.
4984 (auto_language_data): Likewise.
4985 * language.h (language_data): Delete la_get_compile_instance field.
4986 (language_defn::get_compile_instance): New member function.
4987 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4988 initializer.
4989 * objc-lang.c (objc_language_data): Likewise.
4990 * opencl-lang.c (opencl_language_data): Likewise.
4991 * p-lang.c (pascal_language_data): Likewise.
4992 * rust-lang.c (rust_language_data): Likewise.
4993
4994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4995
4996 * ada-lang.c (ada_add_all_symbols): Update comment.
4997 (ada_iterate_over_symbols): Delete, move implementation to...
4998 (ada_language::iterate_over_symbols): ...here, a new member
4999 function, rewrite to use range based for loop.
5000 (ada_language_data): Delete la_iterate_over_symbols initializer.
5001 * c-lang.c (c_language_data): Likewise.
5002 (cplus_language_data): Likewise.
5003 (asm_language_data): Likewise.
5004 (minimal_language_data): Likewise.
5005 * d-lang.c (d_language_data): Likewise.
5006 * f-lang.c (f_language_data): Likewise.
5007 * go-lang.c (go_language_data): Likewise.
5008 * language.c (unknown_language_data): Likewise.
5009 (auto_language_data): Likewise.
5010 * language.h (language_data): Delete la_iterate_over_symbols field.
5011 (language_defn::iterate_over_symbols): New member function.
5012 (LA_ITERATE_OVER_SYMBOLS): Update.
5013 * linespec.c (iterate_over_all_matching_symtabs): Update.
5014 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5015 initializer.
5016 * objc-lang.c (objc_language_data): Likewise.
5017 * opencl-lang.c (opencl_language_data): Likewise.
5018 * p-lang.c (pascal_language_data): Likewise.
5019 * rust-lang.c (rust_language_data): Likewise.
5020
5021 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5022
5023 * ada-lang.c (ada_language_data): Delete
5024 la_lookup_transparent_type initializer.
5025 * c-lang.c (c_language_data): Likewise.
5026 (cplus_language_data): Likewise.
5027 (cplus_language::lookup_transparent_type): New member function.
5028 (asm_language_data): Delete la_lookup_transparent_type
5029 initializer.
5030 (minimal_language_data): Likewise.
5031 * d-lang.c (d_language_data): Likewise.
5032 * f-lang.c (f_language_data): Likewise.
5033 * go-lang.c (go_language_data): Likewise.
5034 * language.c (unknown_language_data): Likewise.
5035 (auto_language_data): Likewise.
5036 * language.h (struct language_data): Delete
5037 la_lookup_transparent_type field.
5038 (language_defn::lookup_transparent_type): New member function.
5039 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5040 initializer.
5041 * objc-lang.c (objc_language_data): Likewise.
5042 * opencl-lang.c (opencl_language_data): Likewise.
5043 * p-lang.c (pascal_language_data): Likewise.
5044 * rust-lang.c (rust_language_data): Likewise.
5045 * symtab.c (symbol_matches_domain): Update call.
5046
5047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * ada-lang.c (ada_language_arch_info): Delete function, move
5050 implementation to...
5051 (ada_language::language_arch_info): ...here, a new member
5052 function.
5053 (ada_language_data): Delete la_language_arch_info.
5054 * c-lang.c (c_language_data): Likewise.
5055 (c_language::language_arch_info): New member function.
5056 (cplus_language_arch_info): Delete function, move
5057 implementation to...
5058 (cplus_language::language_arch_info): ...here, a new member
5059 function.
5060 (cplus_language_data): Delete la_language_arch_info.
5061 (asm_language_data): Likewise.
5062 (asm_language::language_arch_info): New member function.
5063 (minimal_language_data): Delete la_language_arch_info.
5064 (minimal_language::language_arch_info): New member function.
5065 * d-lang.c (d_language_arch_info): Delete function, move
5066 implementation to...
5067 (d_language::language_arch_info): ...here, a new member
5068 function.
5069 (d_language_data): Delete la_language_arch_info.
5070 * f-lang.c (f_language_arch_info): Delete function, move
5071 implementation to...
5072 (f_language::language_arch_info): ...here, a new member
5073 function.
5074 (f_language_data): Delete la_language_arch_info.
5075 * go-lang.c (go_language_arch_info): Delete function, move
5076 implementation to...
5077 (go_language::language_arch_info): ...here, a new member
5078 function.
5079 (go_language_data): Delete la_language_arch_info.
5080 * language.c (unknown_language_data): Likewise.
5081 (unknown_language::language_arch_info): New member function.
5082 (auto_language_data): Delete la_language_arch_info.
5083 (auto_language::language_arch_info): New member function.
5084 (language_gdbarch_post_init): Update call to
5085 la_language_arch_info.
5086 * language.h (language_data): Delete la_language_arch_info
5087 function pointer.
5088 (language_defn::language_arch_info): New function.
5089 * m2-lang.c (m2_language_arch_info): Delete function, move
5090 implementation to...
5091 (m2_language::language_arch_info): ...here, a new member
5092 function.
5093 (m2_language_data): Delete la_language_arch_info.
5094 * objc-lang.c (objc_language_arch_info): Delete function, move
5095 implementation to...
5096 (objc_language::language_arch_info): ...here, a new member
5097 function.
5098 (objc_language_data): Delete la_language_arch_info.
5099 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5100 implementation to...
5101 (opencl_language::language_arch_info): ...here, a new member
5102 function.
5103 (opencl_language_data): Delete la_language_arch_info.
5104 * p-lang.c (pascal_language_arch_info): Delete function, move
5105 implementation to...
5106 (pascal_language::language_arch_info): ...here, a new member
5107 function.
5108 (pascal_language_data): Delete la_language_arch_info.
5109 * rust-lang.c (rust_language_arch_info): Delete function, move
5110 implementation to...
5111 (rust_language::language_arch_info): ...here, a new member
5112 function.
5113 (rust_language_data): Delete la_language_arch_info.
5114
5115 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5118 initializer.
5119 * c-lang.c (c_language_data): Likewise.
5120 (cplus_language_data): Likewise.
5121 (cplus_language::pass_by_reference_info): New method.
5122 (asm_language_data): Delete la_pass_by_reference initializer.
5123 (minimal_language_data): Likewise.
5124 * cp-abi.c (cp_pass_by_reference): Remove use of
5125 default_pass_by_reference.
5126 * d-lang.c (d_language_data): Likewise.
5127 * f-lang.c (f_language_data): Likewise.
5128 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5129 default_pass_by_reference.
5130 * go-lang.c (go_language_data): Likewise.
5131 * language.c (language_pass_by_reference): Update.
5132 (default_pass_by_reference): Delete.
5133 (unknown_language_data): Delete la_pass_by_reference
5134 initializer.
5135 (auto_language_data): Likewise.
5136 * language.h (struct language_data): Delete la_pass_by_reference
5137 field.
5138 (language_defn::pass_by_reference_info): New member function.
5139 (default_pass_by_reference): Delete declaration.
5140 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5141 initializer.
5142 * objc-lang.c (objc_language_data): Likewise.
5143 * opencl-lang.c (opencl_language_data): Likewise.
5144 * p-lang.c (pascal_language_data): Likewise.
5145 * rust-lang.c (rust_language_data): Likewise.
5146
5147 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * ada-lang.c (ada_read_var_value): Delete function, move
5150 implementation to...
5151 (ada_language::read_var_value): ...here.
5152 (ada_language_data): Delete la_read_var_value initializer.
5153 * c-lang.c (c_language_data): Likewise.
5154 (cplus_language_data): Likewise.
5155 (minimal_language_data): Likewise.
5156 * d-lang.c (d_language_data): Likewise.
5157 * f-lang.c (f_language_data): Likewise.
5158 * findvar.c (default_read_var_value): Rename to...
5159 (language_defn::read_var_value): ...this.
5160 * findvar.c (read_var_value): Update header comment, and change to
5161 call member function instead of function pointer.
5162 * go-lang.c (go_language_data): Likewise.
5163 * language.c (unknown_language_data): Delete la_read_var_value
5164 initializer.
5165 (auto_language_data): Likewise.
5166 * language.h (struct language_data): Delete la_read_var_value
5167 field.
5168 (language_defn::read_var_value): New member function.
5169 (default_read_var_value): Delete declaration.
5170 * m2-lang.c (m2_language_data): Delete la_read_var_value
5171 initializer.
5172 * objc-lang.c (objc_language_data): Likewise.
5173 * opencl-lang.c (opencl_language_data): Likewise.
5174 * p-lang.c (pascal_language_data): Likewise.
5175 * rust-lang.c (rust_language_data): Likewise.
5176 * value.h (default_read_var_value): Delete declaration.
5177
5178 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * ada-lang.c (ada_print_array_index): Delete function, move
5181 implementation to...
5182 (ada_language::print_array_index): ...here.
5183 (ada_language_data): Delete la_print_array_index initializer.
5184 * c-lang.c (c_language_data): Likewise.
5185 (cplus_language_data): Likewise.
5186 (minimal_language_data): Likewise.
5187 * d-lang.c (d_language_data): Likewise.
5188 * f-lang.c (f_language_data): Likewise.
5189 * go-lang.c (go_language_data): Likewise.
5190 * language.c (default_print_array_index): Delete function, move
5191 implementation to...
5192 (language_defn::print_array_index): ...here.
5193 (unknown_language_data): Delete la_print_array_index initializer.
5194 (auto_language_data): Likewise.
5195 * language.h (struct language_data): Delete la_print_array_index
5196 field.
5197 (language_defn::print_array_index): New member function.
5198 (LA_PRINT_ARRAY_INDEX): Update.
5199 (default_print_array_index): Delete declaration.
5200 * m2-lang.c (m2_language_data): Delete la_print_array_index
5201 initializer.
5202 * objc-lang.c (objc_language_data): Likewise.
5203 * opencl-lang.c (opencl_language_data): Likewise.
5204 * p-lang.c (pascal_language_data): Likewise.
5205 * rust-lang.c (rust_language_data): Likewise.
5206
5207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * gdb/ada-lang.c (ada_language_defn): Convert to...
5210 (ada_language_data): ...this.
5211 (class ada_language): New class.
5212 (ada_language_defn): New static global.
5213 * gdb/c-lang.c (c_language_defn): Convert to...
5214 (c_language_data): ...this.
5215 (class c_language): New class.
5216 (c_language_defn): New static global.
5217 (cplus_language_defn): Convert to...
5218 (cplus_language_data): ...this.
5219 (class cplus_language): New class.
5220 (cplus_language_defn): New static global.
5221 (asm_language_defn): Convert to...
5222 (asm_language_data): ...this.
5223 (class asm_language): New class.
5224 (asm_language_defn): New static global.
5225 (minimal_language_defn): Convert to...
5226 (minimal_language_data): ...this.
5227 (class minimal_language): New class.
5228 (minimal_language_defn): New static global.
5229 * gdb/d-lang.c (d_language_defn): Convert to...
5230 (d_language_data): ...this.
5231 (class d_language): New class.
5232 (d_language_defn): New static global.
5233 * gdb/f-lang.c (f_language_defn): Convert to...
5234 (f_language_data): ...this.
5235 (class f_language): New class.
5236 (f_language_defn): New static global.
5237 * gdb/go-lang.c (go_language_defn): Convert to...
5238 (go_language_data): ...this.
5239 (class go_language): New class.
5240 (go_language_defn): New static global.
5241 * gdb/language.c (unknown_language_defn): Remove declaration.
5242 (current_language): Initialize to nullptr, real initialization is
5243 moved to _initialize_language.
5244 (languages): Delete global.
5245 (language_defn::languages): Define.
5246 (set_language_command): Use language_defn::languages.
5247 (set_language): Likewise.
5248 (range_error): Likewise.
5249 (language_enum): Likewise.
5250 (language_def): Likewise.
5251 (add_set_language_command): Use language_def::languages for the
5252 language list, and language_def to lookup language pointers.
5253 (skip_language_trampoline): Use language_defn::languages.
5254 (unknown_language_defn): Convert to...
5255 (unknown_language_data): ...this.
5256 (class unknown_language): New class.
5257 (unknown_language_defn): New static global.
5258 (auto_language_defn): Convert to...
5259 (auto_language_data): ...this.
5260 (class auto_language): New class.
5261 (auto_language_defn): New static global.
5262 (language_gdbarch_post_init): Use language_defn::languages.
5263 (_initialize_language): Initialize current_language.
5264 * gdb/language.h (struct language_defn): Rename to...
5265 (struct language_data): ...this.
5266 (struct language_defn): New.
5267 (auto_language_defn): Delete.
5268 (unknown_language_defn): Delete.
5269 (minimal_language_defn): Delete.
5270 (ada_language_defn): Delete.
5271 (asm_language_defn): Delete.
5272 (c_language_defn): Delete.
5273 (cplus_language_defn): Delete.
5274 (d_language_defn): Delete.
5275 (f_language_defn): Delete.
5276 (go_language_defn): Delete.
5277 (m2_language_defn): Delete.
5278 (objc_language_defn): Delete.
5279 (opencl_language_defn): Delete.
5280 (pascal_language_defn): Delete.
5281 (rust_language_defn): Delete.
5282 * gdb/m2-lang.c (m2_language_defn): Convert to...
5283 (m2_language_data): ...this.
5284 (class m2_language): New class.
5285 (m2_language_defn): New static global.
5286 * gdb/objc-lang.c (objc_language_defn): Convert to...
5287 (objc_language_data): ...this.
5288 (class objc_language): New class.
5289 (objc_language_defn): New static global.
5290 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5291 (opencl_language_data): ...this.
5292 (class opencl_language): New class.
5293 (opencl_language_defn): New static global.
5294 * gdb/p-lang.c (pascal_language_defn): Convert to...
5295 (pascal_language_data): ...this.
5296 (class pascal_language): New class.
5297 (pascal_language_defn): New static global.
5298 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5299 language pointer, update comment format.
5300 * gdb/rust-lang.c (rust_language_defn): Convert to...
5301 (rust_language_data): ...this.
5302 (class rust_language): New class.
5303 (rust_language_defn): New static global.
5304
5305 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5308 member variable.
5309 <m_stmt_at_address>: New member variable.
5310 (lnp_state_machine::record_line): Don't record some lines, update
5311 tracking of is_stmt at the same address.
5312 (lnp_state_machine::lnp_state_machine): Initialise new member
5313 variables.
5314
5315 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5316
5317 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5318 "-include gnu-nat-mig.h".
5319 * gnu-nat-mig.h: New file.
5320 * gnu-nat.c: Include "gnu-nat-mig.h".
5321 (exc_server, msg_reply_server, notify_server,
5322 process_reply_server): Remove declarations.
5323
5324 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5325
5326 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5327 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5328 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5329 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5330 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5331 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5332 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5333 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5334 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5335 to gnu_nat_target class.
5336 * gnu-nat.c: Likewise.
5337 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5338 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5339 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5340 object.
5341 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5342 instead of `gnu_target'.
5343
5344 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5345
5346 * i386-gnu-tdep.c: Include "gdbcore.h"
5347 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5348 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5349 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5350 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5351 i386_gnu_sigcontext_addr): New functions
5352 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5353 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5354 tdep.
5355
5356 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5357
5358 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5359 before fork_inferior call. Avoid calling it if target_is_pushed returns
5360 true.
5361
5362 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5363
5364 * gnu-nat.h (gnu_target): New variable declaration.
5365 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5366 gnu_target.
5367 * gnu-nat.c (gnu_target): New variable.
5368 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5369 add_thread_silent, and add_thread calls.
5370 (gnu_nat_target::create_inferior): Pass gnu_target to
5371 add_thread_silent, thread_change_ptid call.
5372 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5373 call.
5374
5375 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5376
5377 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5378 (gnu_nat_target::find_memory_regions): Remove unused
5379 `old_address' variable.
5380
5381 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5382
5383 * gnu-nat.c: Include "gdbarch.h".
5384
5385 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5386
5387 * reply_mig_hack.awk (Error return): Cast function through
5388 void *, to bypass compiler function call check.
5389
5390 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5391
5392 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5393 $(srcdir)/reply_mig_hack.awk.
5394
5395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5396
5397 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5398
5399 2020-05-30 Jonny Grant <jg@jguk.org>
5400
5401 * configure.ac (ACX_BUGURL): change bug URL to https.
5402
5403 2020-05-30 Pedro Alves <palves@redhat.com>
5404
5405 * cp-support.c (replace_typedefs_template): New.
5406 (replace_typedefs_qualified_name): Handle
5407 DEMANGLE_COMPONENT_TEMPLATE.
5408
5409 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5410
5411 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5412 dwarf2/index-cache.h, dwarf2/index-write.c,
5413 dwarf2/index-write.h, dwarf2/line-header.c,
5414 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5415 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5416 variables and fields from `dwarf2_per_objfile` to just
5417 `per_objfile` throughout.
5418
5419 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5422 <push_dwarf_reg_entry_value>: Add comment.
5423
5424 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5425 Keith Seitz <keiths@redhat.com>
5426
5427 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5428 instead of PyEval_ReleaseLock.
5429 (class gdbpy_gil): Move to earlier in file.
5430 (finalize_python): Set gdb_python_initialized.
5431 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5432 when not initialized.
5433
5434 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5437 <push_dwarf_reg_entry_value>: Remove assert. Override
5438 per_objfile with caller_per_objfile.
5439
5440 2020-05-28 Tom de Vries <tdevries@suse.de>
5441
5442 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5443 PR gold/15646 workaround to symbol kind "type".
5444
5445 2020-05-27 Tom Tromey <tromey@adacore.com>
5446
5447 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5448
5449 2020-05-27 Tom Tromey <tromey@adacore.com>
5450
5451 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5452 Use htab_find_with_hash.
5453 <add_abbrev>: Remove "abbrev_number" parameter.
5454 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5455 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5456 (hash_abbrev): Add comment.
5457 (abbrev_table::lookup_abbrev): Move to header file.
5458 (abbrev_table::read): Update.
5459
5460 2020-05-27 Tom Tromey <tromey@adacore.com>
5461
5462 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5463 method.
5464 <canonical_name>: New member.
5465 <raw_name>: Rename from "name".
5466 (partial_die_info): Initialize canonical_name.
5467 (scan_partial_symbols): Check raw_name.
5468 (partial_die_parent_scope, partial_die_full_name)
5469 (add_partial_symbol, add_partial_subprogram)
5470 (add_partial_enumeration, load_partial_dies): Use "name" method.
5471 (partial_die_info::name): New method.
5472 (partial_die_info::read, guess_partial_die_structure_name)
5473 (partial_die_info::fixup): Update.
5474
5475 2020-05-27 Tom Tromey <tromey@adacore.com>
5476
5477 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5478 <get_ref_die_offset>: Inline.
5479 <get_ref_die_offset_complaint>: New method.
5480 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5481 (attribute::get_ref_die_offset_complaint): Rename from
5482 get_ref_die_offset. Just issue complaint.
5483
5484 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5485
5486 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5487
5488 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5489
5490 * exec.c (exec_file_attach): Use errno value of first openp failure.
5491
5492 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5493
5494 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5495 Don't close thread handle.
5496
5497 2020-05-27 Tom Tromey <tom@tromey.com>
5498 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5501 shared_ptr.
5502 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5503 member.
5504 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5505 dwarf2_per_bfd_objfile_data_key>: New globals.
5506 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5507 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5508 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5509 shared.
5510 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5511 short-circuit when sharing.
5512 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5513 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5514
5515 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5516
5517 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5518 to...
5519 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5520 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5521
5522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5523
5524 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5525 build_name_components, find_name_components_bounds>:
5526 Add per_objfile parameter.
5527 (struct mapped_index) <symbol_name_at>: Likewise.
5528 (struct mapped_debug_names): Remove constructor.
5529 <dwarf2_per_objfile>: Remove field.
5530 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5531 (mapped_index_base::find_name_components_bounds,
5532 mapped_index_base::build_name_components,
5533 dw2_expand_symtabs_matching_symbol): Likewise.
5534 (class mock_mapped_index) <symbol_name_at>: Likewise.
5535 (check_match): Likewise.
5536 (check_find_bounds_finds): Likewise.
5537 (test_mapped_index_find_name_component_bounds): Update.
5538 (CHECK_MATCH): Update.
5539 (dw2_expand_symtabs_matching): Update.
5540 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5541 per_objfile parameter.
5542 <find_vec_in_debug_names>: Likewise.
5543 <m_per_objfile>: New field.
5544 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5545 parameter.
5546 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5547 (dw2_debug_names_iterator::next): Update.
5548 (dw2_debug_names_lookup_symbol): Update.
5549 (dw2_debug_names_expand_symtabs_for_function): Update.
5550 (dw2_debug_names_map_matching_symbols): Update.
5551 (dw2_debug_names_expand_symtabs_matching): Update.
5552 (dwarf2_read_debug_names): Update.
5553
5554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5557 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5558 move to dwarf2_per_objfile.
5559 <read_in_chain>: Remove.
5560 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5561 remove_all_cus, age_comp_units>: New methods.
5562 <m_dwarf2_cus>: New member.
5563 (struct dwarf2_per_cu_data) <cu>: Remove.
5564 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5565 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5566 moved to methods of dwarf2_per_objfile.
5567 (dwarf2_clear_marks): Remove.
5568 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5569 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5570 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5571 (dwarf2_per_objfile::remove_all_cus): New.
5572 (class free_cached_comp_units) <~free_cached_comp_units>:
5573 Update.
5574 (load_cu): Update.
5575 (dw2_do_instantiate_symtab): Adjust.
5576 (fill_in_sig_entry_from_dwo_entry): Adjust.
5577 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5578 (cutu_reader::cutu_reader): Likewise.
5579 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5580 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5581 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5582 and dwarf2_per_objfile::age_comp_units.
5583 (load_partial_comp_unit): Update.
5584 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5585 (process_queue): Likewise.
5586 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5587 backlink.
5588 (dwarf2_read_addr_index): Likewise.
5589 (follow_die_offset): Likewise.
5590 (dwarf2_fetch_die_loc_sect_off): Likewise.
5591 (dwarf2_fetch_constant_bytes): Likewise.
5592 (dwarf2_fetch_die_type_sect_off): Likewise.
5593 (follow_die_sig_1): Likewise.
5594 (load_full_type_unit): Likewise.
5595 (read_signatured_type): Likewise.
5596 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5597 (dwarf2_cu::~dwarf2_cu): Remove.
5598 (dwarf2_per_objfile::get_cu): New.
5599 (dwarf2_per_objfile::set_cu): New.
5600 (age_cached_comp_units): Rename to...
5601 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5602 to std::unordered_map.
5603 (free_one_cached_comp_unit): Rename to...
5604 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5605 to std::unordered_map.
5606 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5607 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5608 a dwarf2_per_objfile in data.
5609 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5610 (dwarf2_clear_marks): Remove.
5611
5612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5615 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5616 (init_tu_and_read_dwo_dies): Likewise.
5617 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5618 (cutu_reader::cutu_reader): Likewise.
5619 (load_partial_comp_unit): Likewise.
5620 (process_psymtab_comp_unit): Update.
5621 (build_type_psymtabs_1): Update.
5622 (process_skeletonless_type_unit): Update.
5623 (load_full_comp_unit): Update.
5624 (find_partial_die): Update.
5625 (dwarf2_read_addr_index): Update.
5626 (read_signatured_type): Update.
5627
5628 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5629
5630 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5631 m_header_read_in>: New fields.
5632 <get_header>: New method.
5633 * dwarf2/read.c (per_cu_header_read_in): Remove.
5634 (dwarf2_per_cu_data::get_header): New.
5635 (dwarf2_per_cu_data::addr_size): Update.
5636 (dwarf2_per_cu_data::offset_size): Update.
5637 (dwarf2_per_cu_data::ref_addr_size): Update.
5638
5639 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5640
5641 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5642 (dw2_do_instantiate_symtab): Update.
5643 (queue_and_load_all_dwo_tus): Change parameter from
5644 dwarf2_per_cu_data to dwarf2_cu.
5645 (dwarf2_fetch_die_loc_sect_off): Update.
5646 (dwarf2_fetch_constant_bytes): Update.
5647 (dwarf2_fetch_die_type_sect_off): Update.
5648
5649 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * dwarf2/read.c (process_full_comp_unit,
5652 process_full_type_unit): Remove per_cu, per_objfile paramters.
5653 Add dwarf2_cu parameter.
5654 (process_queue): Update.
5655
5656 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * dwarf2/read.c (create_cu_from_index_list): Replace
5659 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5660 (create_cus_from_index_list): Likewise.
5661 (create_cus_from_index): Likewise.
5662 (create_signatured_type_table_from_index): Likewise.
5663 (create_cus_from_debug_names_list): Likewise.
5664 (create_cus_from_debug_names): Likewise.
5665 (dwarf2_read_gdb_index): Update.
5666 (dwarf2_read_debug_names): Update.
5667
5668 2020-05-27 Tom Tromey <tom@tromey.com>
5669 Simon Marchi <simon.marchi@efficios.com>
5670
5671 * dwarf2/read.h (struct dwarf2_per_objfile)
5672 <get_type_for_signatured_type, set_type_for_signatured_type>:
5673 New methods.
5674 <m_type_map>: New member.
5675 (struct signatured_type) <type>: Remove.
5676 * dwarf2/read.c
5677 (dwarf2_per_objfile::get_type_for_signatured_type,
5678 dwarf2_per_objfile::set_type_for_signatured_type): New.
5679 (get_signatured_type): Use new methods.
5680
5681 2020-05-27 Tom Tromey <tom@tromey.com>
5682 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5685 (struct dwarf2_per_objfile) <type_units>: New member.
5686 <get_type_unit_group_unshareable>: New method.
5687 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5688 num_symtabs, symtabs>: Remove; move to
5689 type_unit_group_unshareable.
5690 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5691 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5692 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5693
5694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5695
5696 * dwarf2/read.h (struct dwarf2_per_cu_data):
5697 <dwarf2_per_objfile>: Remove.
5698 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5699 dwarf2_per_objfile.
5700 (create_signatured_type_table_from_index): Likewise.
5701 (create_signatured_type_table_from_debug_names): Likewise.
5702 (create_debug_type_hash_table): Likewise.
5703 (fill_in_sig_entry_from_dwo_entry): Likewise.
5704 (create_type_unit_group): Likewise.
5705 (read_comp_units_from_section): Likewise.
5706 (create_cus_hash_table): Likewise.
5707
5708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5711 dwarf2_per_cu_data::dwarf2_per_objfile.
5712 (compute_compunit_symtab_includes): Likewise.
5713 (dwarf2_cu::start_symtab): Likewise.
5714
5715 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5718 parameter.
5719 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5720 (read_namespace_alias): Update.
5721 (lookup_die_type): Update.
5722 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5723 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5724 Update.
5725 (disassemble_dwarf_expression): Update.
5726
5727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * dwarf2/read.h (struct dwarf2_queue_item): Add
5730 dwarf2_per_objfile parameter, assign new parameter.
5731 <per_objfile>: New field.
5732 * dwarf2/read.c (free_one_cached_comp_unit): Add
5733 dwarf2_per_objfile parameter.
5734 (queue_comp_unit): Likewise.
5735 (dw2_do_instantiate_symtab): Update.
5736 (process_psymtab_comp_unit): Update.
5737 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5738 (process_imported_unit_die): Update.
5739 (queue_and_load_dwo_tu): Update.
5740 (follow_die_offset): Update.
5741 (follow_die_sig_1): Update.
5742
5743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5744
5745 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5746 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5747 (read_call_site_scope): Assign per_objfile.
5748 (dwarf2_per_cu_data::objfile): Remove.
5749 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5750 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5751 dwarf2_per_objfile parameter.
5752 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5753 dwarf2_per_objfile parameter.
5754 (dwarf_expr_reg_to_entry_parameter): Add output
5755 dwarf2_per_objfile parameter.
5756 (locexpr_get_frame_base): Update.
5757 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5758 <push_dwarf_reg_entry_value>: Update.
5759 <call_site_to_target_addr>: Update.
5760 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5761 parameter.
5762 (value_of_dwarf_reg_entry): Update.
5763 (rw_pieced_value): Update.
5764 (indirect_synthetic_pointer): Update.
5765 (dwarf2_evaluate_property): Update.
5766 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5767 parameter.
5768 (locexpr_read_variable): Update.
5769 (locexpr_get_symbol_read_needs): Update.
5770 (loclist_read_variable): Update.
5771
5772 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5775 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5776 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5777 parameter.
5778 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5783 sect_variable_value): Add dwarf2_per_objfile parameter.
5784 (class dwarf_evaluate_loc_desc) <dwarf_call,
5785 dwarf_variable_value>: Update.
5786 (fetch_const_value_from_synthetic_pointer): Add
5787 dwarf2_per_objfile parameter.
5788 (fetch_const_value_from_synthetic_pointer): Update.
5789 (coerced_pieced_ref): Update.
5790 (class symbol_needs_eval_context) <dwarf_call,
5791 dwarf_variable_value>: Update.
5792 (dwarf2_compile_expr_to_ax): Update.
5793
5794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5797 parameter.
5798 (dwarf2_evaluate_loc_desc_full): Update.
5799
5800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5803 parameter.
5804 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5805 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5806 dwarf2_per_objfile parameter.
5807 (decode_debug_loc_dwo_addresses): Likewise.
5808 (dwarf2_find_location_expression): Update.
5809 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5810 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5811 parameter.
5812 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5813 parameter.
5814 (locexpr_describe_location_1): Likewise.
5815 (locexpr_describe_location): Update.
5816
5817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5820 Remove.
5821 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5822 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5823 (dwarf2_compile_property_to_c): Update.
5824 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5825 use text offset from objfile.
5826 (locexpr_tracepoint_var_ref): Update.
5827 (locexpr_generate_c_location): Update.
5828 (loclist_describe_location): Update.
5829 (loclist_tracepoint_var_ref): Update.
5830 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5831 dwarf2_per_objfile parameter.
5832 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5833 use text offset from objfile.
5834 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5835
5836 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5837
5838 * dwarf2/expr.h (struct dwarf_expr_context)
5839 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5840 <offset>: Remove.
5841 <per_objfile>: New member.
5842 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5843 dwarf2_per_objfile parameter. Don't set offset, set
5844 per_objfile.
5845 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5846 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5847 a dwarf2_per_objfile object instead of an offset.
5848 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5849 constructor.
5850 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5851 to dwarf2_expr_executor constructor. Don't set offset.
5852 (dwarf2_fetch_cfa_info): Update.
5853 (struct dwarf2_frame_cache) <text_offset>: Remove.
5854 <per_objfile>: New field.
5855 (dwarf2_frame_cache): Update.
5856 (dwarf2_frame_prev_register): Update.
5857 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5858 <dwarf_evaluate_loc_desc>: Add constructor.
5859 (dwarf2_evaluate_loc_desc_full): Update.
5860 (dwarf2_locexpr_baton_eval): Update.
5861 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5862 Add constructor.
5863 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5864
5865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5868 addr_sized_int_type>: Move to dwarf2_cu.
5869 <int_type>: Move to dwarf2_per_objfile.
5870 (struct dwarf2_per_objfile) <int_type>: Move here.
5871 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5872 addr_sized_int_type>: Move here.
5873 (read_func_scope): Update.
5874 (read_array_type): Update.
5875 (read_tag_string_type): Update.
5876 (attr_to_dynamic_prop): Update.
5877 (dwarf2_per_cu_data::int_type): Rename to...
5878 (dwarf2_per_objfile::int_type): ... this.
5879 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5880 (dwarf2_cu::addr_sized_int_type): ... this.
5881 (read_subrange_type): Update.
5882 (dwarf2_per_cu_data::addr_type): Rename to...
5883 (dwarf2_cu::addr_type): ... this.
5884 (set_die_type): Update.
5885
5886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5889 data through per_cu->cu.
5890
5891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5892
5893 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5894 dwarf2_per_cu_data parameter fo dwarf2_cu.
5895 (lookup_dwo_type_unit): Likewise.
5896 (read_cutu_die_from_dwo): Likewise.
5897 (lookup_dwo_unit): Likewise.
5898 (open_and_init_dwo_file): Likewise.
5899 (lookup_dwo_cutu): Likewise.
5900 (lookup_dwo_comp_unit): Likewise.
5901 (lookup_dwo_type_unit): Likewise.
5902 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5903 (cutu_reader::cutu_reader): Update.
5904
5905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5906
5907 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5908 parameter.
5909 (process_full_type_unit): Likewise.
5910 (process_queue): Update.
5911
5912 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * dwarf2/read.c (recursively_compute_inclusions): Add
5915 dwarf2_per_objfile parameter.
5916 (compute_compunit_symtab_includes): Likewise.
5917 (process_cu_includes): Update.
5918
5919 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5922 parameter.
5923 (create_type_unit_group): Update.
5924 (process_psymtab_comp_unit_reader): Update.
5925 (build_type_psymtabs_reader): Update.
5926
5927 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5928
5929 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5930 object through m_this_cu->cu.
5931
5932 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5935 the info parameter.
5936 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5937
5938 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5941 per_objfile parameter.
5942 (load_full_type_unit): Add per_objfile parameter.
5943 (read_signatured_type): Likewise.
5944 (load_full_comp_unit): Likewise.
5945 (load_cu): Likewise.
5946 (dw2_do_instantiate_symtab): Likewise.
5947 (dw2_get_file_names): Likewise.
5948 (dw2_map_symtabs_matching_filename): Update.
5949 (dw_expand_symtabs_matching_file_matcher): Update.
5950 (dw2_map_symbol_filenames): Update.
5951 (process_psymtab_comp_unit): Add per_objfile parameter.
5952 (build_type_psymtabs_1): Update.
5953 (process_skeletonless_type_unit): Update.
5954 (dwarf2_build_psymtabs_hard): Update.
5955 (load_partial_comp_unit): Add per_objfile parameter.
5956 (scan_partial_symbols): Update.
5957 (load_full_comp_unit): Add per_objfile parameter.
5958 (process_imported_unit_die): Update.
5959 (create_cus_hash_table): Update.
5960 (find_partial_die): Update.
5961 (dwarf2_read_addr_index): Update.
5962 (follow_die_offset): Update.
5963 (dwarf2_fetch_die_loc_sect_off): Update.
5964 (dwarf2_fetch_constant_bytes): Update.
5965 (dwarf2_fetch_die_type_sect_off): Update.
5966 (follow_die_sig_1): Update.
5967 (load_full_type_unit): Add per_objfile parameter.
5968 (read_signatured_type): Likewise.
5969
5970 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5971
5972 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5973 of objfile_name.
5974
5975 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5978 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5979 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5980 field.
5981 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5982 (create_cus_from_index): Update.
5983 (dwarf2_read_gdb_index): Update.
5984 (create_cus_from_debug_names): Update.
5985 (dwarf2_read_debug_names): Update.
5986 (get_abbrev_section_for_cu): Update.
5987 (create_all_comp_units): Update.
5988 (read_attribute_value): Update.
5989 (get_debug_line_section): Update.
5990 * dwarf2/index-cache.c (index_cache::store): Update.
5991 * dwarf2/index-write.c (save_gdb_index_command): Update.
5992 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5993
5994 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5995
5996 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5997 member.
5998 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5999 dwarf2_per_cu_data::per_bfd.
6000 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6001 (create_type_unit_group): Likewise.
6002 (queue_comp_unit): Remove reference to
6003 per_cu->dwarf2_per_objfile.
6004 (maybe_queue_comp_unit): Likewise.
6005 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6006 (create_cus_hash_table): Assign new field.
6007
6008 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * dwarf2/read.c: Replace
6011 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6012 dwarf2_cu->per_objfile throughout.
6013
6014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6017 parameter, don't use per_cu->dwarf2_per_objfile.
6018 (dw2_instantiate_symtab): Likewise.
6019 (dw2_find_last_source_symtab): Update.
6020 (dw2_map_expand_apply): Update.
6021 (dw2_lookup_symbol): Update.
6022 (dw2_expand_symtabs_for_function): Update.
6023 (dw2_expand_all_symtabs): Update.
6024 (dw2_expand_symtabs_with_fullname): Update.
6025 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6026 don't use per_cu->dwarf2_per_objfile.
6027 (dw2_expand_marked_cus): Update.
6028 (dw2_find_pc_sect_compunit_symtab): Update.
6029 (dw2_debug_names_lookup_symbol): Update.
6030 (dw2_debug_names_expand_symtabs_for_function): Update.
6031 (dw2_debug_names_map_matching_symbols): Update.
6032 (dwarf2_psymtab::expand_psymtab): Update.
6033
6034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6037 <per_objfile>: New member.
6038 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6039 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6040 call to dwarf2_cu.
6041 (cutu_reader::cutu_reader): Update.
6042 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6043
6044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6047 struct dwarf2_per_objfile.
6048 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6049 dwarf2_per_bfd.
6050 * dwarf2/read.c (set_die_type): Update.
6051 (get_die_type_at_offset): Update.
6052
6053 2020-05-27 Tom Tromey <tom@tromey.com>
6054 Simon Marchi <simon.marchi@efficios.com>
6055
6056 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6057 method.
6058 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6059 get_symtab, set_symtab>: New methods.
6060 <m_symtabs>: New field.
6061 (struct dwarf2_psymtab): Derive from partial_symtab.
6062 <readin_p, get_compunit_symtab>: Declare methods.
6063 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6064 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6065 New methods.
6066 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6067 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6068 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6069 (dw2_symtab_iter_next, dw2_print_stats)
6070 (dw2_expand_symtabs_with_fullname)
6071 (dw2_expand_symtabs_matching_one)
6072 (dw_expand_symtabs_matching_file_matcher)
6073 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6074 (dw2_debug_names_iterator::next)
6075 (dw2_debug_names_map_matching_symbols)
6076 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6077 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6078 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6079 New methods.
6080 (get_compunit_symtab, process_full_comp_unit)
6081 (process_full_type_unit): Update.
6082 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6083
6084 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6085
6086 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6087 then introduce a new dwarf2_per_objfile type.
6088 <read_line_string>: Move to the new dwarf2_per_objfile type.
6089 <objfile>: Likewise.
6090 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6091 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6092 dwarf2_per_objfile->per_bfd.
6093 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6094 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6095 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6096 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6097 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6098 (dwarf2_per_objfile::locate_sections): Rename to...
6099 (dwarf2_per_bfd::locate_sections): ... this.
6100 (dwarf2_per_objfile::get_cutu): Rename to...
6101 (dwarf2_per_bfd::get_cutu): ... this.
6102 (dwarf2_per_objfile::get_cu): Rename to...
6103 (dwarf2_per_bfd::get_cu): ... this.
6104 (dwarf2_per_objfile::get_tu): Rename to...
6105 (dwarf2_per_bfd::get_tu): ... this.
6106 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6107 (dwarf2_per_bfd::allocate_per_cu): ... this.
6108 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6109 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6110 (get_gdb_index_contents_ftype): Change parameter from
6111 dwarf2_per_objfile to dwarf2_per_bfd.
6112 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6113 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6114
6115 2020-05-27 Tom Tromey <tom@tromey.com>
6116 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6119 (allocate_piece_closure): Set "per_objfile" member.
6120 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6121 (locexpr_describe_location, loclist_describe_location): Use new
6122 member.
6123 * dwarf2/read.c (read_call_site_scope)
6124 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6125 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6126 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6127 handle_data_member_location): Set per_objfile member.
6128 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6129 member.
6130 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6131
6132 2020-05-27 Tom Tromey <tom@tromey.com>
6133
6134 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6135 allocate_signatured_type>: Declare new methods.
6136 <m_num_psymtabs>: New member.
6137 (struct dwarf2_per_cu_data) <index>: New member.
6138 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6139 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6140 (create_cu_from_index_list): Use allocate_per_cu.
6141 (create_signatured_type_table_from_index)
6142 (create_signatured_type_table_from_debug_names)
6143 (create_debug_type_hash_table, add_type_unit)
6144 (read_comp_units_from_section): Use allocate_signatured_type.
6145
6146 2020-05-27 Tom Tromey <tom@tromey.com>
6147
6148 * psymtab.c (partial_map_expand_apply)
6149 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6150 (psym_lookup_global_symbol_language)
6151 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6152 (psym_print_stats, psym_expand_symtabs_for_function)
6153 (psym_map_symbol_filenames, psym_map_matching_symbols)
6154 (psym_expand_symtabs_matching)
6155 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6156 (maintenance_check_psymtabs): Update.
6157 * psympriv.h (struct partial_symtab) <readin_p,
6158 get_compunit_symtab>: Add objfile parameter.
6159 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6160 Likewise.
6161 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6162 get_compunit_symtab>: Likewise.
6163 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6164
6165 2020-05-27 Tom Tromey <tom@tromey.com>
6166
6167 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6168 member.
6169 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6170 (create_cu_from_index_list)
6171 (create_signatured_type_table_from_index)
6172 (create_signatured_type_table_from_debug_names)
6173 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6174 (dwarf2_create_include_psymtab)
6175 (create_debug_type_hash_table, add_type_unit)
6176 (create_type_unit_group, read_comp_units_from_section)
6177 (dwarf2_compute_name, create_cus_hash_table)
6178 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6179 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6180 obstack.
6181 (dw2_get_real_path): Likewise. Change argument to
6182 dwarf2_per_objfile.
6183
6184 2020-05-27 Luis Machado <luis.machado@linaro.org>
6185
6186 PR tdep/26000
6187 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6188 for ldrd (immediate).
6189
6190 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6191
6192 * command.h: Add comment giving the name of class_tui.
6193 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6194 create the fake command for the help for class_tui.
6195
6196 2020-05-26 Tom Tromey <tromey@adacore.com>
6197
6198 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6199 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6200 (val_atr): New function.
6201 (value_val_atr): Use it.
6202 * ada-valprint.c (print_optional_low_bound): Change low bound
6203 handling for enums.
6204 (val_print_packed_array_elements): Don't call discrete_position.
6205 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6206 discrete_position for enum types.
6207 * language.c (default_print_array_index): Change type.
6208 * language.h (struct language_defn) <la_print_array_index>: Add
6209 index_type parameter, change type of index_value.
6210 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6211 (default_print_array_index): Update.
6212 * valprint.c (maybe_print_array_index): Don't call
6213 value_from_longest. Update.
6214 (value_print_array_elements): Don't call discrete_position.
6215
6216 2020-05-26 Tom Tromey <tromey@adacore.com>
6217
6218 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6219 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6220
6221 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6222
6223 PR gdb/13519
6224 * avr-tdep.c (avr_integer_to_address): Return data or code
6225 address accordingly to the second 'type' argument of the
6226 function.
6227
6228 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6229
6230 * infcmd.c, inferior.h: (construct_inferior_arguments):
6231 Moved function from here to gdbsupport/common-inferior.{h,cc}
6232
6233 2020-05-23 Tom Tromey <tom@tromey.com>
6234
6235 Revert commit eca1f90c:
6236 * NEWS: Remove entry for completion styling.
6237 * completer.c (_rl_completion_prefix_display_length): Move
6238 declaration later.
6239 (gdb_fnprint): Revert.
6240 (gdb_display_match_list_1): Likewise.
6241 * cli/cli-style.c (completion_prefix_style)
6242 (completion_difference_style, completion_suffix_style): Remove.
6243 (_initialize_cli_style): Revert.
6244 * cli/cli-style.h (completion_prefix_style)
6245 (completion_difference_style, completion_suffix_style): Don't
6246 declare.
6247
6248 2020-05-24 Pedro Alves <palves@redhat.com>
6249
6250 * symtab.c (completion_list_add_name): Return boolean indication
6251 of whether the symbol matched.
6252 (completion_list_add_symbol): Don't try to remove C++ aliases if
6253 the symbol didn't match in the first place.
6254 * symtab.h (completion_list_add_name): Return bool.
6255
6256 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6257
6258 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6259 type::field.
6260
6261 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6262
6263 GDB 9.2 released.
6264
6265 2020-05-23 Tom Tromey <tom@tromey.com>
6266
6267 * NEWS: Add entry for completion styling.
6268 * completer.c (_rl_completion_prefix_display_length): Move
6269 declaration earlier.
6270 (gdb_fnprint): Use completion_style.
6271 (gdb_display_match_list_1): Likewise.
6272 * cli/cli-style.c (completion_prefix_style)
6273 (completion_difference_style, completion_suffix_style): New
6274 globals.
6275 (_initialize_cli_style): Register new globals.
6276 * cli/cli-style.h (completion_prefix_style)
6277 (completion_difference_style, completion_suffix_style): Declare.
6278
6279 2020-05-23 Pedro Alves <palves@redhat.com>
6280
6281 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6282 (parse_escape): Use ISDIGIT instead of isdigit.
6283 (puts_debug): Use gdb_isprint instead of isprint.
6284 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6285 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6286 ISSPACE instead of isspace.
6287 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6288 instead of isspace.
6289 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6290 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6291 instead of isxdigit and ISDIGIT instead of isdigit.
6292
6293 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * gdbtypes.h (struct type) <field>: New method.
6296 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6297 or type::field.
6298
6299 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6302 (TYPE_FIELDS): Use type::fields. Change all call sites that
6303 modify the propery to use type::set_fields instead.
6304
6305 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6308 type::num_fields instead.
6309
6310 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6313 methods.
6314 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6315 that modify the number of fields to use type::set_num_fields
6316 instead.
6317
6318 2020-05-22 Tom Tromey <tromey@adacore.com>
6319
6320 * compile/compile-object-load.h (munmap_list_free): Don't
6321 declare.
6322
6323 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * annotate.c (annotate_source_line): Update return type, add call
6326 to update current symtab and line.
6327 * annotate.h (annotate_source_line): Update return type, and
6328 extend header comment.
6329 * source.c (info_line_command): Check annotation_level before
6330 calling annotate_source_line.
6331 * stack.c (print_frame_info): If calling annotate_source_line
6332 returns true, then don't print any other source line information.
6333
6334 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6335
6336 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6337
6338 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * coffread.c (patch_type): Remove NULL check before xfree.
6341 * corefile.c (set_gnutarget): Likewise.
6342 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6343 * exec.c (build_section_table): Likewise.
6344 * remote.c (remote_target::pass_signals): Likewise.
6345 * utils.c (n_spaces): Likewise.
6346 * cli/cli-script.c (document_command): Likewise.
6347 * i386-windows-tdep.c (core_process_module_section): Likewise.
6348 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6349
6350 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * symfile.c (reread_symbols): Clear objfile's section_offsets
6353 vector and section indices, re-compute them by calling
6354 sym_offsets.
6355
6356 2020-05-20 Tom Tromey <tromey@adacore.com>
6357
6358 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6359 (desc_one_bound, desc_index_type): Compute field name.
6360
6361 2020-05-20 Tom de Vries <tdevries@suse.de>
6362
6363 PR symtab/25833
6364 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6365
6366 2020-05-20 Alan Modra <amodra@gmail.com>
6367
6368 PR 25993
6369 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6370 bfd_set_filename.
6371 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6372 passed to bfd_set_filename.
6373 * symfile-mem.c (add_vsyscall_page): Likewise for string
6374 passed to symbol_file_add_from_memory.
6375 (symbol_file_add_from_memory): Make name param a const char* and
6376 don't strdup.
6377
6378 2020-05-20 Alan Modra <amodra@gmail.com>
6379
6380 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6381 rather than accessing bfd->filename directly.
6382 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6383 and use bfd_section_name.
6384 * dwarf2/frame.c (decode_frame_entry): Likewise.
6385 * exec.c (exec_set_section_address): Likewise.
6386 * solib-aix.c (solib_aix_bfd_open): Likewise.
6387 * stap-probe.c (get_stap_base_address): Likewise.
6388 * symfile.c (reread_symbols): Likewise.
6389
6390 2020-05-19 Tom Tromey <tromey@adacore.com>
6391
6392 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6393
6394 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6397
6398 2020-05-19 Pedro Alves <palves@redhat.com>
6399
6400 * NEWS (set exec-file-mismatch): Adjust entry.
6401 * exec.c: Include "build-id.h".
6402 (validate_exec_file): Try to match build IDs instead of filenames.
6403 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6404 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6405 and pass down 'warn_if_slow'.
6406 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6407 gdb_bfd_open_closure to pass it down.
6408 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6409
6410 2020-05-19 Pedro Alves <palves@redhat.com>
6411
6412 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6413 * target.c (target_fileio_open_1): Rename to target_fileio_open
6414 and make extern. Use bool.
6415 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6416 (target_fileio_read_alloc_1): Adjust.
6417 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6418 (target_fileio_open_warn_if_slow): Delete declaration.
6419
6420 2020-05-19 Pedro Alves <palves@redhat.com>
6421
6422 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6423 Adjust all callers.
6424
6425 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6426
6427 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6428 whether disp is negative.
6429
6430 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * symfile.h (struct symfile_segment_data)
6433 <~symfile_segment_data>: Remove.
6434 <segment_info>: Change to std::vector.
6435 * symfile.c (default_symfile_segments): Update.
6436 * elfread.c (elf_symfile_segments): Update.
6437
6438 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6439
6440 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6441 <segments>: New.
6442 <segment_bases, segment_sizes>: Remove.
6443 * symfile.c (default_symfile_segments): Update.
6444 * elfread.c (elf_symfile_segments): Update.
6445 * remote.c (remote_target::get_offsets): Update.
6446 * solib-target.c (solib_target_relocate_section_addresses):
6447 Update.
6448
6449 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * symfile.h (struct symfile_segment_data): Initialize fields.
6452 <~symfile_segment_data>: Add.
6453 (symfile_segment_data_up): New.
6454 (struct sym_fns) <sym_segments>: Return a
6455 symfile_segment_data_up.
6456 (default_symfile_segments): Return a symfile_segment_data_up.
6457 (free_symfile_segment_data): Remove.
6458 (get_symfile_segment_data): Return a symfile_segment_data_up.
6459 * symfile.c (default_symfile_segments): Likewise.
6460 (get_symfile_segment_data): Likewise.
6461 (free_symfile_segment_data): Remove.
6462 (symfile_find_segment_sections): Update.
6463 * elfread.c (elf_symfile_segments): Return a
6464 symfile_segment_data_up.
6465 * remote.c (remote_target::get_offsets): Update.
6466 * solib-target.c (solib_target_relocate_section_addresses):
6467 Update.
6468 * symfile-debug.c (debug_sym_segments): Return a
6469 symfile_segment_data_up.
6470
6471 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6472
6473 PR build/25981
6474 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6475 Hardcode register numbers.
6476
6477 PR build/25981
6478 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6479 procfs_find_LDT_entry): Remove.
6480 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6481 procfs_find_LDT_entry): Remove.
6482 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6483 Remove.
6484
6485 2020-05-17 Pedro Alves <palves@redhat.com>
6486 Andrew Burgess <andrew.burgess@embecosm.com>
6487 Keno Fischer <keno@juliacomputing.com>
6488
6489 PR gdb/25741
6490 * breakpoint.c (build_target_condition_list): Update comments.
6491 (build_target_command_list): Update comments and skip matching
6492 locations.
6493 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6494 a separate function. Simplify "set breakpoint auto-hw off"
6495 handling.
6496 (insert_breakpoints): Update comment.
6497 (tracepoint_locations_match): New parameter. For breakpoints,
6498 compare location types too, if the caller wants to.
6499 (handle_automatic_hardware_breakpoints): New functions.
6500 (bp_location_is_less_than): Also sort by location type and
6501 hardware breakpoint length.
6502 (update_global_location_list): Handle "set breakpoint auto-hw on"
6503 here.
6504 (update_breakpoint_locations): Ask breakpoint_locations_match to
6505 ignore location types.
6506
6507 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6508
6509 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6510 type::name instead.
6511
6512 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * gdbtypes.h (struct type) <name, set_name>: New methods.
6515 (TYPE_CODE): Use type::name. Change all call sites used to set
6516 the name to use type::set_name instead.
6517
6518 2020-05-16 Tom Tromey <tom@tromey.com>
6519
6520 * top.c (quit_force): Update.
6521 * infrun.c (handle_no_resumed): Update.
6522 * top.h (all_uis): New function.
6523 (ALL_UIS): Remove.
6524
6525 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6528
6529 2020-05-16 Pedro Alves <palves@redhat.com>
6530
6531 * ia64-linux-nat.c
6532 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6533 Declare method.
6534 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6535
6536 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6539 (sparc64_adi_info): Likewise.
6540
6541 2020-05-15 Tom Tromey <tom@tromey.com>
6542
6543 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6544 block_objfile.
6545 (lookup_objfile_from_block): Remove.
6546 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6547 (lookup_global_symbol): Use block_objfile.
6548 * symtab.h (lookup_objfile_from_block): Don't declare.
6549 * printcmd.c (clear_dangling_display_expressions): Use
6550 block_objfile.
6551 * parse.c (operator_check_standard): Use block_objfile.
6552
6553 2020-05-15 Tom Tromey <tom@tromey.com>
6554
6555 * language.c (language_alloc_type_symbol): Set
6556 SYMBOL_SECTION.
6557 * symtab.c (initialize_objfile_symbol): Remove.
6558 (allocate_symbol): Remove.
6559 (allocate_template_symbol): Remove.
6560 * dwarf2/read.c (fixup_go_packaging): Use "new".
6561 (new_symbol): Use "new".
6562 (read_variable): Don't call initialize_objfile_symbol. Use
6563 "new".
6564 (read_func_scope): Use "new".
6565 * xcoffread.c (process_xcoff_symbol): Don't call
6566 initialize_objfile_symbol.
6567 (SYMBOL_DUP): Remove.
6568 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6569 "new".
6570 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6571 (allocate_template_symbol): Don't declare.
6572 (struct symbol): Add copy constructor. Change defaults.
6573 * jit.c (finalize_symtab): Use "new".
6574 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6575 Use "new".
6576 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6577 (common_block_end): Use "new".
6578 * mdebugread.c (parse_symbol): Use "new".
6579 (new_symbol): Likewise.
6580
6581 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6582
6583 * NEWS: Mention changes to help and apropos.
6584
6585 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6586
6587 * command.h (enum command_class): Improve comments, document
6588 that class_alias is for user-defined aliases, give the class
6589 name for each class, remove unused class_xdb.
6590 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6591 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6592 by a precise class.
6593 * infcmd.c (_initialize_infcmd): Likewise.
6594 * reverse.c (_initialize_reverse): Likewise.
6595 * stack.c (_initialize_stack): Likewise.
6596 * symfile.c (_initialize_symfile): Likewise.
6597 * tracepoint.c (_initialize_tracepoint): Likewise.
6598
6599 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6600
6601 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6602 when their aliased command is traversed.
6603 (help_cmd): Add fput_command_names_styled call to
6604 output command name and aliases when command has an alias.
6605
6606 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6607
6608 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6609 * cli/cli-decode.c (help_cmd_list): Declare as static,
6610 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6611 a command together with the command.
6612 (fput_command_name_styled, fput_command_names_styled): New functions.
6613 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6614 fput_command_name_styled.
6615 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6616 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6617
6618 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6619
6620 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6621 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6622 * command.h (cmd_show_list): Likewise.
6623 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6624 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6625
6626 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6627
6628 * unittests/command-def-selftests.c (traverse_command_structure):
6629 Verify all commands of a list have the same prefix command and
6630 that only the top cmdlist commands have a null prefix.
6631
6632 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6633
6634 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6635 as prefix, not one of its aliases.
6636 (set_cmd_prefix): Remove.
6637 (do_add_cmd): Centralize the setting of the prefix of a command, when
6638 command is defined after its full chain of prefix commands.
6639 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6640 (add_setshow_cmd_full): Likewise.
6641 (update_prefix_field_of_prefixed_commands): New function.
6642 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6643 update_prefix_field_of_prefixed_commands.
6644 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6645 addresses of remote_set_cmdlist and remote_show_cmdlist given
6646 as argument, not the address of an argument.
6647 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6648 * gdb/remote.c (_initialize_remote): Likewise.
6649
6650 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6651
6652 * cli/cli-cmds.c (alias_command): Check for an existing alias
6653 using lookup_cmd_composition, as valid_command_p is too strict
6654 and forbids aliases that are the prefix of an existing alias
6655 or command.
6656 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6657 command is properly recognised as a valid command.
6658
6659 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6660
6661 * unittests/help-doc-selftests.c: Rename to
6662 unittests/command-def-selftests.c
6663 * unittests/command-def-selftests.c (help_doc_tests): Update some
6664 comments.
6665 (command_structure_tests, traverse_command_structure): New namespace
6666 and function.
6667 (command_structure_invariants_tests): New function.
6668 (_initialize_command_def_selftests) Renamed from
6669 _initialize_help_doc_selftests, register command_structure_invariants
6670 selftest.
6671
6672 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6673
6674 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6675 an alias of 'show'.
6676
6677 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6678
6679 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6680 ada_is_fixed_point_type. Update all callers.
6681 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6682 all callers.
6683 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6684 Update all callers.
6685 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6686 print_fixed_point_type. Update all callers.
6687 * ada-valprint.c (ada_value_print_num): Replace call to
6688 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6689
6690 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6691
6692 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6693 processors.
6694 (cpu_supports_bts): Add CV_AMD case.
6695
6696 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6697 Simon Marchi <simon.marchi@efficios.com>
6698
6699 * infrun.c (stop_all_threads): Collect multiple wait events at
6700 each pass.
6701
6702 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6703
6704 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6705 type::code instead.
6706
6707 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * gdbtypes.h (struct type) <code, set_code>: New methods.
6710 (TYPE_CODE): Use type::code. Change all call sites used to set
6711 the code to use type::set_code instead.
6712
6713 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6714 Tom de Vries <tdevries@suse.de>
6715 Pedro Alves <palves@redhat.com>
6716
6717 PR threads/25478
6718 * infrun.c (stop_all_threads): Do NOT ignore
6719 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6720 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6721 received.
6722 (handle_no_resumed): Remove code handling a live inferior with no
6723 threads.
6724 * remote.c (has_single_non_exited_thread): New.
6725 (remote_target::update_thread_list): Do not delete a thread if is
6726 the last thread of the process.
6727 * thread.c (thread_select): Call delete_exited_threads instead of
6728 prune_threads.
6729
6730 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6731
6732 * infrun.c (stop_all_threads): Enable/disable thread events of all
6733 targets. Move a debug message denoting the end of the function
6734 into the SCOPED_EXIT block.
6735
6736 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6737
6738 * process-stratum-target.h: Include <set>.
6739 (all_non_exited_process_targets, switch_to_target_no_thread): New
6740 function declarations.
6741 * process-stratum-target.c (all_non_exited_process_targets)
6742 (switch_to_target_no_thread): New function implementations.
6743
6744 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6745
6746 * infrun.c (handle_inferior_event): Extract out a piece of code
6747 into...
6748 (mark_non_executing_threads): ...this new function.
6749
6750 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6751
6752 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6753 use.
6754
6755 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6756
6757 * regcache.c (regcache_read_pc_protected): New function
6758 implementation that returns 0 if the PC cannot read via
6759 'regcache_read_pc'.
6760 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6761 instead of 'regcache_read_pc'.
6762 (keep_going_pass_signal): Ditto.
6763
6764 2020-05-13 Tom Tromey <tromey@adacore.com>
6765
6766 * ada-lang.c (align_value): Remove.
6767 (ada_template_to_fixed_record_type_1): Use align_up.
6768
6769 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6770
6771 * async-event.c: Update the copyright year.
6772 * async-event.h: Update the copyright year.
6773
6774 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6775
6776 * objfiles.h (is_addr_in_objfile,
6777 shared_objfile_contains_address_p): Return bool.
6778 * objfile.c (is_addr_in_objfile,
6779 shared_objfile_contains_address_p): Return bool.
6780
6781 2020-05-11 Tom Tromey <tromey@adacore.com>
6782
6783 * cli/cli-cmds.c (info_command): Restore.
6784 (_initialize_cli_cmds): Use add_prefix_command for "info".
6785 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6786
6787 2020-05-11 Tom Tromey <tromey@adacore.com>
6788
6789 * ada-lang.c (ada_value_primitive_field): Now public.
6790 * ada-lang.h (ada_value_primitive_field): Declare.
6791 * ada-valprint.c (print_field_values): Use
6792 ada_value_primitive_field for wrapper fields.
6793
6794 2020-05-11 Tom de Vries <tdevries@suse.de>
6795
6796 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6797 MODULE_DOMAIN.
6798
6799 2020-05-11 Tom de Vries <tdevries@suse.de>
6800
6801 PR symtab/25941
6802 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6803 with length 0, if not gdb-produced.
6804 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6805
6806 2020-05-09 Tom de Vries <tdevries@suse.de>
6807
6808 PR gdb/25955
6809 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6810 calculation.
6811
6812 2020-05-09 Tom Tromey <tom@tromey.com>
6813
6814 * top.c (server_command): Now bool.
6815 * top.h (server_command): Now bool.
6816
6817 2020-05-08 Tom Tromey <tromey@adacore.com>
6818
6819 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6820 already being processed.
6821
6822 2020-05-08 Tom Tromey <tom@tromey.com>
6823
6824 * printcmd.c (struct display) <next>: Remove.
6825 <display>: New constructor.
6826 <exp_string>: Now a std::string.
6827 <enabled_p>: Now a bool.
6828 (display_number): Move definition earlier.
6829 (displays): Rename from display_chain. Now a std::vector.
6830 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6831 (display_command): Update.
6832 (do_one_display, disable_display)
6833 (enable_disable_display_command, do_enable_disable_display):
6834 Update.
6835 (free_display): Remove.
6836 (clear_displays): Rewrite.
6837 (delete_display): Update.
6838 (map_display_numbers): Use function_view. Remove "data"
6839 parameter. Update.
6840 (do_delete_display): Remove.
6841 (undisplay_command): Update.
6842 (do_one_display, do_displays, disable_display)
6843 (info_display_command): Update.
6844 (do_enable_disable_display): Remove.
6845 (enable_disable_display_command)
6846 (clear_dangling_display_expressions): Update.
6847
6848 2020-05-08 Tom Tromey <tom@tromey.com>
6849
6850 * symtab.c (set_symbol_cache_size)
6851 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6852 (maintenance_print_symbol_cache_statistics): Update.
6853 * symmisc.c (print_symbol_bcache_statistics)
6854 (print_objfile_statistics, maintenance_print_objfiles)
6855 (maintenance_info_symtabs, maintenance_check_symtabs)
6856 (maintenance_expand_symtabs, maintenance_info_line_tables):
6857 Update.
6858 * symfile-debug.c (set_debug_symfile): Update.
6859 * source.c (forget_cached_source_info): Update.
6860 * python/python.c (gdbpy_progspaces): Update.
6861 * psymtab.c (maintenance_info_psymtabs): Update.
6862 * probe.c (parse_probes): Update.
6863 * linespec.c (iterate_over_all_matching_symtabs)
6864 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6865 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6866 * exec.c (exec_target::close): Update.
6867 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6868 * breakpoint.c (print_one_breakpoint_location)
6869 (create_longjmp_master_breakpoint)
6870 (create_std_terminate_master_breakpoint): Update.
6871 * progspace.c (program_spaces): Now a std::vector.
6872 (maybe_new_address_space): Update.
6873 (add_program_space): Remove.
6874 (program_space::program_space): Update.
6875 (remove_program_space): Update.
6876 (number_of_program_spaces): Remove.
6877 (print_program_space, update_address_spaces): Update.
6878 * progspace.h (program_spaces): Change type.
6879 (ALL_PSPACES): Remove.
6880 (number_of_program_spaces): Don't declare.
6881 (struct program_space) <next>: Remove.
6882
6883 2020-05-08 Tom Tromey <tom@tromey.com>
6884
6885 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6886 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6887 (enable_break): Update.
6888 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6889 (frv_fdpic_find_canonical_descriptor): Update.
6890 (frv_fetch_objfile_link_map): Update.
6891 * progspace.c (program_space::free_all_objfiles): Update.
6892 (program_space::solibs): New method.
6893 * progspace.h (struct program_space) <solibs>: New method.
6894 * solist.h (master_so_list): Don't declare.
6895 (ALL_SO_LIBS): Remove.
6896 * solib.h (so_list_head): Remove.
6897 (update_solib_list): Update comment.
6898 * solib.c (master_so_list): Remove.
6899 (solib_used, update_solib_list, solib_add)
6900 (info_sharedlibrary_command, clear_solib)
6901 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6902
6903 2020-05-08 Tom Tromey <tom@tromey.com>
6904
6905 * extension.c (extension_languages): Now a std::array.
6906 (ALL_EXTENSION_LANGUAGES): Remove.
6907 (get_ext_lang_defn, get_ext_lang_of_file)
6908 (eval_ext_lang_from_control_command): Update.
6909 (finish_ext_lang_initialization)
6910 (auto_load_ext_lang_scripts_for_objfile)
6911 (ext_lang_type_printers::ext_lang_type_printers)
6912 (apply_ext_lang_type_printers)
6913 (ext_lang_type_printers::~ext_lang_type_printers)
6914 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6915 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6916 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6917 (get_matching_xmethod_workers, ext_lang_colorize)
6918 (ext_lang_before_prompt): Update.
6919 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6920
6921 2020-05-08 Tom Tromey <tom@tromey.com>
6922
6923 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6924 overload.
6925 <swap_string, m_string>: Remove.
6926 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6927 Update.
6928 * stabsread.c (define_symbol, read_type): Update.
6929 * linespec.c (find_linespec_symbols): Update.
6930 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6931 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6932 * dbxread.c (read_dbx_symtab): Update.
6933 * cp-support.h (cp_canonicalize_string_full)
6934 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6935 Return unique_xmalloc_ptr.
6936 * cp-support.c (inspect_type): Update.
6937 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6938 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6939 Likewise.
6940 * c-typeprint.c (print_name_maybe_canonical): Update.
6941 * break-catch-throw.c (check_status_exception_catchpoint):
6942 Update.
6943
6944 2020-05-08 Tom de Vries <tdevries@suse.de>
6945
6946 * infrun.c (follow_fork): Copy current_line and current_symtab to
6947 child thread.
6948
6949 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * async-event.c (struct async_signal_handler, struct
6952 async_event_handler): Reformat, remove typedef.
6953
6954 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6957 access thistype->main_type->dyn_prop_list directly.
6958
6959 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6962 (remove_dyn_prop): Remove. Update all users to use
6963 type::remove_dyn_prop.
6964 * gdbtypes.c (remove_dyn_prop): Rename to...
6965 (type::remove_dyn_prop): ... this.
6966
6967 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6968
6969 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6970 (add_dyn_prop): Remove. Update all users to use
6971 type::add_dyn_prop.
6972 * gdbtypes.c (add_dyn_prop): Rename to...
6973 (type::add_dyn_prop): ... this.
6974
6975 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6976
6977 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6978 (get_dyn_prop): Remove. Update all users to use
6979 type::dyn_prop.
6980 * gdbtypes.c (get_dyn_prop): Rename to...
6981 (type::dyn_prop): ... this.
6982
6983 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6984
6985 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6986
6987 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6990 instruction, skip it if it's there.
6991
6992 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6993
6994 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6995
6996 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6999 * gdbtypes.c (recursive_dump_type): Remove use of
7000 TYPE_INCOMPLETE.
7001
7002 2020-05-03 Tom Tromey <tom@tromey.com>
7003
7004 * breakpoint.c (catch_command, tcatch_command): Remove.
7005 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7006 add_show_prefix_cmd.
7007 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7008 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7009 Remove.
7010 (add_internal_problem_command): Use add_basic_prefix_cmd,
7011 add_show_prefix_cmd.
7012 * mips-tdep.c (set_mipsfpu_command): Remove.
7013 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7014 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7015 (_initialize_index_cache): Use add_basic_prefix_cmd.
7016 * memattr.c (dummy_cmd): Remove.
7017 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7018 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7019 (_initialize_tui_win): Use add_basic_prefix_cmd,
7020 add_show_prefix_cmd.
7021 * cli/cli-logging.c (set_logging_command): Remove.
7022 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7023 add_show_prefix_cmd.
7024 (show_logging_command): Remove.
7025 * target.c (target_command): Remove.
7026 (add_target): Use add_basic_prefix_cmd.
7027
7028 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7029
7030 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7031
7032 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7033
7034 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7035 info_command.
7036
7037 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7038
7039 * nbsd-nat.c (nbsd_enable_proc_events)
7040 (nbsd_nat_target::post_startup_inferior): Add.
7041 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7042 (nbsd_nat_target::update_thread_list): Rewrite.
7043 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7044 "PTRACE_LWP_CREATE".
7045 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7046
7047 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7048
7049 * stack.c (_initialize_stack): Remove duplicated creation
7050 of "frame" command and "f" alias.
7051
7052 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7053
7054 PR gdb/18706
7055 * gdbtypes.c (check_typedef): Calculate size of array of
7056 stubbed type.
7057
7058 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7059
7060 PR gdb/15559
7061 * i386-tdep.c (i386_push_dummy_call): Call
7062 i386_thiscall_push_dummy_call.
7063 (i386_thiscall_push_dummy_call): New function.
7064 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7065 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7066 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7067
7068 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7069
7070 * gdbarch.sh (do_read): Add shellcheck disable directive for
7071 warning SC2162.
7072
7073 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7074
7075 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7076 "referenced but not assigned" warning.
7077
7078 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7079
7080 * gdbarch.sh: Remove code that sets fallbackdefault.
7081
7082 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7083
7084 * gdbarch.sh: Use shell operators && and || instead of
7085 -a and -o.
7086
7087 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7088
7089 * gdbarch.sh: Use $(...) instead of `...`.
7090
7091 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * gdbarch.sh: Use double quotes around variables.
7094
7095 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * gdbarch.sh: Use %s with printf, instead of variables in the
7098 format string.
7099
7100 2020-04-29 Tom Tromey <tromey@adacore.com>
7101
7102 PR ada/25875:
7103 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7104 type fields here.
7105 (read_enumeration_type): Call
7106 update_enumeration_type_from_children later. Update comments.
7107 (process_enumeration_scope): Don't create type fields.
7108
7109 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7110
7111 * nbsd-tdep.c: Include "xml-syscall.h".
7112 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7113
7114 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7115
7116 * nbsd-nat.c: Include "sys/wait.h".
7117 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7118 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7119 (nbsd_nat_target::remove_exec_catchpoint)
7120 (nbsd_nat_target::set_syscall_catchpoint): Add.
7121 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7122 (nbsd_nat_target::insert_exec_catchpoint)
7123 (nbsd_nat_target::remove_exec_catchpoint)
7124 (nbsd_nat_target::set_syscall_catchpoint): Add.
7125 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7126 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7127 `nbsd_get_syscall_number'.
7128
7129 2020-04-29 Tom Tromey <tom@tromey.com>
7130
7131 * stack.c (print_block_frame_labels): Remove.
7132
7133 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7134
7135 PR gdb/17320
7136 * ada-valprint.c (val_print_packed_array_elements): Move array
7137 end bracket to new line.
7138 (ada_val_print_string): Remove extra spaces before first array
7139 element.
7140 * c-valprint.c (c_value_print_array): Likewise.
7141 * m2-valprint.c (m2_print_array_contents): Likewise.
7142 (m2_value_print_inner): Likewise.
7143 * p-valprint.c (pascal_value_print_inner): Likewise.
7144 * valprint.c (generic_val_print_array): Likewise.
7145 (value_print_array_elements): Move first array element and array
7146 end bracket to new line.
7147
7148 2020-04-29 Tom de Vries <tdevries@suse.de>
7149
7150 PR symtab/25889
7151 * linespec.c (find_method): Fix ix calculation.
7152
7153 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7154
7155 * syscalls/update-netbsd.sh: New file.
7156 * syscalls/netbsd.xml: Regenerate.
7157 * data-directory/Makefile.in: Register `netbsd.xml' in
7158 `SYSCALLS_FILES'.
7159
7160 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7161
7162 * syscalls/update-freebsd.sh: Add double quotes.
7163
7164 2020-04-28 Tom Tromey <tom@tromey.com>
7165
7166 * NEWS: Update.
7167 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7168 (cmdpy_init): Allow class_tui.
7169
7170 2020-04-28 Mark Williams <mark@myosotissp.com>
7171
7172 PR gdb/24480
7173 * dwarf2read.c: Add missing assingments to list_in_scope when
7174 start_symtab was already called.
7175
7176 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7177
7178 PR gdb/25881
7179 * dwarf2/read.c (offset_map_type): Use
7180 gdb:hash_enum<sect_offset> as hash function.
7181
7182 2020-04-28 Tom de Vries <tdevries@suse.de>
7183
7184 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7185 with DW_AT_signature.
7186
7187 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7188
7189 * configure.ac: Remove check for fs_base/gs_base in
7190 user_regs_struct.
7191 * configure: Re-generate.
7192 * config.in: Re-generate.
7193 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7194 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7195 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7196
7197 2020-04-27 Luis Machado <luis.machado@linaro.org>
7198
7199 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7200 problematic inline frame unwinding situation.
7201 * frame.c (frame_id_computed_p): New function.
7202 * frame.h (frame_id_computed_p): New prototype.
7203
7204 2020-04-26 Tom Tromey <tom@tromey.com>
7205
7206 * command.h (enum command_class) <class_pseudo>: Remove.
7207
7208 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7209
7210 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7211 and whitespace.
7212
7213 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7214
7215 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7216 `PT_GET_PROCESS_STATE' block.
7217
7218 2020-04-24 Tom Tromey <tom@tromey.com>
7219
7220 * symtab.h (symbol_get_demangled_name): Don't declare.
7221 * symtab.c (symbol_get_demangled_name): Remove.
7222 (general_symbol_info::natural_name)
7223 (general_symbol_info::demangled_name): Update.
7224
7225 2020-04-24 Tom Tromey <tom@tromey.com>
7226
7227 PR rust/25025:
7228 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7229
7230 2020-04-24 Tom Tromey <tom@tromey.com>
7231
7232 PR symtab/12707:
7233 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7234 exists.
7235 (new_symbol): Likewise.
7236 * compile/compile-object-load.c (get_out_value_type): Use
7237 symbol_matches_search_name.
7238
7239 2020-04-24 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/read.c (add_partial_symbol): Do not call
7242 compute_and_set_names.
7243
7244 2020-04-24 Tom Tromey <tom@tromey.com>
7245
7246 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7247 overload.
7248
7249 2020-04-24 Tom Tromey <tom@tromey.com>
7250
7251 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7252 (add_psymbol_to_list): New overload. Make old overload call new
7253 one.
7254 * psympriv.h (add_psymbol_to_list): New overload.
7255
7256 2020-04-24 Tom Tromey <tom@tromey.com>
7257
7258 * dwarf2/read.c (partial_die_info::read) <case
7259 DW_AT_linkage_name>: Use value_as_string.
7260 (dwarf2_string_attr): Use value_as_string.
7261 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7262 method.
7263 * dwarf2/attribute.c (attribute::value_as_string): New method.
7264
7265 2020-04-24 Tom Tromey <tom@tromey.com>
7266
7267 * symtab.c (general_symbol_info::natural_name)
7268 (general_symbol_info::demangled_name): Check for language_rust.
7269
7270 2020-04-24 Tom Tromey <tom@tromey.com>
7271
7272 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7273 (dwarf2_physname): ... from here.
7274 (partial_die_info::read): Add Rust "{" hack.
7275
7276 2020-04-24 Tom Tromey <tom@tromey.com>
7277
7278 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7279 method.
7280 (symbol_set_demangled_name): Don't declare.
7281 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7282 symbol_set_demangled_name.
7283 (general_symbol_info::set_language)
7284 (general_symbol_info::compute_and_set_names): Update.
7285 * minsyms.c (minimal_symbol_reader::install): Update.
7286 * dwarf2/read.c (new_symbol): Update.
7287
7288 2020-04-24 Tom Tromey <tromey@adacore.com>
7289
7290 PR python/23662:
7291 * python/py-type.c (convert_field): Handle
7292 FIELD_LOC_KIND_DWARF_BLOCK.
7293 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7294 (typy_get_dynamic): Nw function.
7295 (type_object_getset): Add "dynamic".
7296 * NEWS: Add entry.
7297
7298 2020-04-24 Tom Tromey <tromey@adacore.com>
7299
7300 * ada-typeprint.c (print_choices, print_variant_part)
7301 (print_record_field_types_dynamic): New functions.
7302 (print_record_field_types): Use print_record_field_types_dynamic.
7303
7304 2020-04-24 Tom Tromey <tromey@adacore.com>
7305
7306 * dwarf2/read.c (handle_data_member_location): New overload.
7307 (dwarf2_add_field): Use it.
7308 (decode_locdesc): Add "computed" parameter. Update comment.
7309 * gdbtypes.c (is_dynamic_type_internal): Also look for
7310 FIELD_LOC_KIND_DWARF_BLOCK.
7311 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7312 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7313 virtual base classes.
7314 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7315 FIELD_LOC_KIND_DWARF_BLOCK.
7316
7317 2020-04-24 Tom Tromey <tromey@adacore.com>
7318
7319 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7320 * gdbtypes.c (is_dynamic_type_internal): Check
7321 TYPE_HAS_DYNAMIC_LENGTH.
7322 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7323 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7324 New macros.
7325 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7326 constant.
7327
7328 2020-04-24 Tom Tromey <tromey@adacore.com>
7329
7330 * dwarf2/read.c (struct variant_field): Rewrite.
7331 (struct variant_part_builder): New.
7332 (struct nextfield): Remove "variant" field. Add "offset".
7333 (struct field_info): Add "current_variant_part" and
7334 "variant_parts".
7335 (alloc_discriminant_info): Remove.
7336 (alloc_rust_variant): New function.
7337 (quirk_rust_enum): Update.
7338 (dwarf2_add_field): Set "offset" member. Don't handle
7339 DW_TAG_variant_part.
7340 (offset_map_type): New typedef.
7341 (convert_variant_range, create_one_variant)
7342 (create_one_variant_part, create_variant_parts)
7343 (add_variant_property): New functions.
7344 (dwarf2_attach_fields_to_type): Call add_variant_property.
7345 (read_structure_type): Don't handle DW_TAG_variant_part.
7346 (handle_variant_part, handle_variant): New functions.
7347 (handle_struct_member_die): Use them.
7348 (process_structure_scope): Don't handle variant parts.
7349 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7350 (struct discriminant_info): Remove.
7351 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7352 (struct main_type) <flag_discriminated_union>: Remove.
7353 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7354 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7355 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7356 Update.
7357 * valops.c (value_union_variant): Remove.
7358 * value.h (value_union_variant): Don't declare.
7359
7360 2020-04-24 Tom Tromey <tromey@adacore.com>
7361
7362 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7363 (ada_value_primitive_packed_val): Update.
7364 * ada-valprint.c (ada_value_print_1): Update.
7365 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7366 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7367 just an address. Use evaluate_for_locexpr_baton.
7368 (dwarf2_evaluate_property): Update.
7369 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7370 array_view.
7371 * findvar.c (default_read_var_value): Update.
7372 * gdbtypes.c (compute_variant_fields_inner)
7373 (resolve_dynamic_type_internal): Update.
7374 (resolve_dynamic_type): Change type of valaddr parameter.
7375 * gdbtypes.h (resolve_dynamic_type): Update.
7376 * valarith.c (value_subscripted_rvalue): Update.
7377 * value.c (value_from_contents_and_address): Update.
7378
7379 2020-04-24 Tom Tromey <tromey@adacore.com>
7380
7381 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7382 "push_initial_value" parameter.
7383 (dwarf2_evaluate_property): Likewise.
7384 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7385
7386 2020-04-24 Tom Tromey <tromey@adacore.com>
7387
7388 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7389 (variant::matches, compute_variant_fields_recurse)
7390 (compute_variant_fields_inner, compute_variant_fields): New
7391 functions.
7392 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7393 Use resolved_type after type is made.
7394 (operator==): Add new cases.
7395 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7396 (struct discriminant_range, struct variant, struct variant_part):
7397 New.
7398 (union dynamic_prop_data) <variant_parts, original_type>: New
7399 members.
7400 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7401 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7402 constants.
7403 * value.c (unpack_bits_as_long): Now public.
7404 * value.h (unpack_bits_as_long): Declare.
7405
7406 2020-04-24 Tom Tromey <tromey@adacore.com>
7407
7408 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7409 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7410
7411 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7412
7413 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7414
7415 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7416
7417 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7418 (remove_fork_catchpoint, post_startup_inferior)
7419 (post_attach): Move...
7420 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7421 (remove_fork_catchpoint, post_startup_inferior)
7422 (post_attach): ...here.
7423 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7424 (remove_fork_catchpoint, post_startup_inferior)
7425 (post_attach): Move...
7426 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7427 (remove_fork_catchpoint, post_startup_inferior)
7428 (post_attach): ...here.
7429
7430 2020-04-24 Tom Tromey <tromey@adacore.com>
7431
7432 * nat/windows-nat.h (struct windows_thread_info)
7433 <pc_adjusted>: New member.
7434 * windows-nat.c (windows_fetch_one_register): Check
7435 pc_adjusted.
7436 (windows_nat_target::get_windows_debug_event)
7437 (windows_nat_target::wait): Set pc_adjusted.
7438
7439 2020-04-24 Tom de Vries <tdevries@suse.de>
7440
7441 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7442 Run gdb-add-index inside temp dir.
7443
7444 2020-04-23 Tom Tromey <tromey@adacore.com>
7445
7446 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7447 in loop.
7448
7449 2020-04-23 Luis Machado <luis.machado@linaro.org>
7450
7451 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7452 get_frame_register instead of gdbarch_unwind_pc.
7453
7454 2020-04-23 Tom de Vries <tdevries@suse.de>
7455
7456 * symtab.c (lookup_global_symbol): Prefer def over decl.
7457
7458 2020-04-23 Tom de Vries <tdevries@suse.de>
7459
7460 PR symtab/25807
7461 * block.c (best_symbol, better_symbol): Promote to external.
7462 * block.h (best_symbol, better_symbol): Declare.
7463 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7464 decl.
7465
7466 2020-04-23 Tom Tromey <tromey@adacore.com>
7467
7468 PR ada/25837:
7469 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7470 "const char *", not a "const std::string &".
7471 <name_and_matcher::operator==>: Update.
7472 * unittests/lookup_name_info-selftests.c: Change type of
7473 "result".
7474
7475 2020-04-23 Tom Tromey <tom@tromey.com>
7476
7477 * inferior.h (iterate_over_inferiors): Don't declare.
7478 * inferior.c (iterate_over_inferiors): Remove.
7479 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7480 Remove.
7481 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7482 use iterate_over_inferiors.
7483 (darwin_resume_inferior_it)
7484 (struct resume_inferior_threads_param)
7485 (darwin_resume_inferior_threads_it): Remove.
7486 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7487
7488 2020-04-23 Tom de Vries <tdevries@suse.de>
7489
7490 * blockframe.c (find_pc_partial_function): Use
7491 find_pc_sect_compunit_symtab rather than
7492 objfile->sf->qf->find_pc_sect_compunit_symtab.
7493
7494 2020-04-22 Tom de Vries <tdevries@suse.de>
7495
7496 PR symtab/25764
7497 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7498 in psymtabs.
7499
7500 2020-04-22 Tom de Vries <tdevries@suse.de>
7501
7502 PR symtab/25801
7503 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7504 symtabs.
7505
7506 2020-04-22 Tom de Vries <tdevries@suse.de>
7507
7508 PR symtab/25700
7509 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7510 CU if already created.
7511
7512 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7513
7514 * infrun.c (displaced_step_fixup): Switch to the event_thread
7515 before calling displaced_step_restore, not after.
7516
7517 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7518
7519 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7520 its inferior is not recorded by us.
7521 (record_btrace_target_open): Replace call to
7522 all_non_exited_threads () with call to current_inferior
7523 ()->non_exited_threads ().
7524 (record_btrace_target::stop_recording): Likewise.
7525 (record_btrace_target::close): Likewise.
7526 (record_btrace_target::wait): Likewise.
7527 (record_btrace_target::record_stop_replaying): Likewise.
7528
7529 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7530
7531 * btrace.c (btrace_enable): Throw an error on double enables and
7532 when enabling recording fails.
7533 (btrace_disable): Throw an error if the thread is not recorded.
7534
7535 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7536
7537 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7538 request if we do not have a thread_info.
7539
7540 2020-04-21 Tom de Vries <tdevries@suse.de>
7541
7542 PR gdb/25471
7543 * thread.c
7544 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7545 exception in get_frame_id.
7546
7547 2020-04-20 Tom Tromey <tromey@adacore.com>
7548
7549 * python/python.c (struct gdbpy_event): Mark move constructor as
7550 noexcept.
7551 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7552 constructor as noexcept.
7553 * completer.h (struct completion_result): Mark move constructor as
7554 noexcept.
7555 * completer.c (completion_result::completion_result): Use
7556 initialization style. Don't call reset_match_list.
7557
7558 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7559
7560 * MAINTAINERS (Write After Approval): Add myself.
7561
7562 2020-04-18 Tom Tromey <tom@tromey.com>
7563
7564 * windows-tdep.c (init_w32_command_list)
7565 (w32_prefix_command_valid): Restore.
7566 (_initialize_windows_tdep): Call init_w32_command_list.
7567
7568 2020-04-18 Tom Tromey <tom@tromey.com>
7569
7570 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7571 * value.c (value_fn_field): Update.
7572 * valops.c (find_function_in_inferior)
7573 (value_allocate_space_in_inferior): Update.
7574 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7575 Update.
7576 * tui/tui-source.c (tui_source_window::set_contents): Update.
7577 * symtab.c (lookup_global_or_static_symbol)
7578 (find_function_start_sal_1, skip_prologue_sal)
7579 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7580 * symmisc.c (dump_msymbols, dump_symtab_1)
7581 (maintenance_print_one_line_table): Update.
7582 * symfile.c (init_entry_point_info, section_is_mapped)
7583 (list_overlays_command, simple_read_overlay_table)
7584 (simple_overlay_update_1): Update.
7585 * stap-probe.c (handle_stap_probe): Update.
7586 * stabsread.c (dbx_init_float_type, define_symbol)
7587 (read_one_struct_field, read_enum_type, read_range_type): Update.
7588 * source.c (info_line_command): Update.
7589 * python/python.c (gdbpy_source_objfile_script)
7590 (gdbpy_execute_objfile_script): Update.
7591 * python/py-type.c (save_objfile_types): Update.
7592 * python/py-objfile.c (py_free_objfile): Update.
7593 * python/py-inferior.c (python_new_objfile): Update.
7594 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7595 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7596 (maintenance_check_psymtabs): Update.
7597 * printcmd.c (info_address_command): Update.
7598 * objfiles.h (struct objfile) <arch>: New method, from
7599 get_objfile_arch.
7600 (get_objfile_arch): Don't declare.
7601 * objfiles.c (get_objfile_arch): Remove.
7602 (filter_overlapping_sections): Update.
7603 * minsyms.c (msymbol_is_function): Update.
7604 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7605 (output_nondebug_symbol): Update.
7606 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7607 (mdebug_expand_psymtab): Update.
7608 * machoread.c (macho_add_oso_symfile): Update.
7609 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7610 Update.
7611 * linux-fork.c (checkpoint_command): Update.
7612 * linespec.c (convert_linespec_to_sals): Update.
7613 * jit.c (finalize_symtab): Update.
7614 * infrun.c (insert_exception_resume_from_probe): Update.
7615 * ia64-tdep.c (ia64_find_unwind_table): Update.
7616 * hppa-tdep.c (internalize_unwinds): Update.
7617 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7618 Update.
7619 * gcore.c (call_target_sbrk): Update.
7620 * elfread.c (record_minimal_symbol, elf_symtab_read)
7621 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7622 (elf_gnu_ifunc_resolve_by_got): Update.
7623 * dwarf2/read.c (create_addrmap_from_index)
7624 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7625 (read_debug_names_from_section)
7626 (process_psymtab_comp_unit_reader, add_partial_symbol)
7627 (add_partial_subprogram, process_full_comp_unit)
7628 (read_file_scope, read_func_scope, read_lexical_block_scope)
7629 (read_call_site_scope, dwarf2_ranges_read)
7630 (dwarf2_record_block_ranges, dwarf2_add_field)
7631 (mark_common_block_symbol_computed, read_tag_pointer_type)
7632 (read_tag_string_type, dwarf2_init_float_type)
7633 (dwarf2_init_complex_target_type, read_base_type)
7634 (partial_die_info::read, partial_die_info::read)
7635 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7636 (dwarf2_fetch_die_loc_sect_off): Update.
7637 * dwarf2/loc.c (dwarf2_find_location_expression)
7638 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7639 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7640 (dwarf2_loc_desc_get_symbol_read_needs)
7641 (locexpr_describe_location_piece, locexpr_describe_location_1)
7642 (loclist_describe_location): Update.
7643 * dwarf2/index-write.c (write_debug_names): Update.
7644 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7645 * dtrace-probe.c (dtrace_process_dof): Update.
7646 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7647 (process_one_symbol): Update.
7648 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7649 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7650 (coff_read_enum_type): Update.
7651 * cli/cli-cmds.c (edit_command, list_command): Update.
7652 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7653 * breakpoint.c (create_overlay_event_breakpoint)
7654 (create_longjmp_master_breakpoint)
7655 (create_std_terminate_master_breakpoint)
7656 (create_exception_master_breakpoint, get_sal_arch): Update.
7657 * block.c (block_gdbarch): Update.
7658 * annotate.c (annotate_source_line): Update.
7659
7660 2020-04-17 Tom Tromey <tromey@adacore.com>
7661
7662 * auto-load.c (show_auto_load_cmd): Remove.
7663 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7664 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7665 (maintenance_print_arc_command): Remove.
7666 * tui/tui-win.c (tui_command): Remove.
7667 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7668 * tui/tui-layout.c (tui_layout_command): Remove.
7669 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7670 * python/python.c (user_set_python, user_show_python): Remove.
7671 (_initialize_python): Use add_basic_prefix_cmd,
7672 add_show_prefix_cmd.
7673 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7674 (install_gdb_commands): Use add_basic_prefix_cmd,
7675 add_show_prefix_cmd.
7676 (info_guile_command): Remove.
7677 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7678 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7679 add_show_prefix_cmd.
7680 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7681 Remove do_set and do_show parameters.
7682 * cli/cli-style.c (set_style, show_style): Remove.
7683 (_initialize_cli_style): Use add_basic_prefix_cmd,
7684 add_show_prefix_cmd.
7685 (cli_style_option::add_setshow_commands): Remove do_set and
7686 do_show parameters.
7687 (cli_style_option::add_setshow_commands): Use
7688 add_basic_prefix_cmd, add_show_prefix_cmd.
7689 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7690 (set_style_name): Remove.
7691 * cli/cli-dump.c (dump_command, append_command): Remove.
7692 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7693 (tekhex_dump_command, binary_dump_command)
7694 (binary_append_command): Remove.
7695 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7696 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7697 (init_w32_command_list): Remove; move into ...
7698 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7699 * valprint.c (set_print, show_print, set_print_raw)
7700 (show_print_raw): Remove.
7701 (_initialize_valprint): Use add_basic_prefix_cmd,
7702 add_show_prefix_cmd.
7703 * typeprint.c (set_print_type, show_print_type): Remove.
7704 (_initialize_typeprint): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 * record.c (set_record_command, show_record_command): Remove.
7707 (_initialize_record): Use add_basic_prefix_cmd,
7708 add_show_prefix_cmd.
7709 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7710 add_show_prefix_cmd.
7711 (info_command, show_command, set_debug, show_debug): Remove.
7712 * top.h (set_history, show_history): Don't declare.
7713 * top.c (set_history, show_history): Remove.
7714 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7715 (unset_tdesc_cmd): Remove.
7716 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7717 add_show_prefix_cmd.
7718 * symtab.c (info_module_command): Remove.
7719 (_initialize_symtab): Use add_basic_prefix_cmd.
7720 * symfile.c (overlay_command): Remove.
7721 (_initialize_symfile): Use add_basic_prefix_cmd.
7722 * sparc64-tdep.c (info_adi_command): Remove.
7723 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7724 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7725 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7726 add_show_prefix_cmd.
7727 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7728 (_initialize_serial): Use add_basic_prefix_cmd,
7729 add_show_prefix_cmd.
7730 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7731 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7732 add_show_prefix_cmd.
7733 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7734 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7735 add_show_prefix_cmd.
7736 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7737 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7738 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7739 add_show_prefix_cmd.
7740 * remote.c (remote_command, set_remote_cmd): Remove.
7741 (_initialize_remote): Use add_basic_prefix_cmd.
7742 * record-full.c (set_record_full_command)
7743 (show_record_full_command): Remove.
7744 (_initialize_record_full): Use add_basic_prefix_cmd,
7745 add_show_prefix_cmd.
7746 * record-btrace.c (cmd_set_record_btrace)
7747 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7748 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7749 (cmd_show_record_btrace_pt): Remove.
7750 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7751 add_show_prefix_cmd.
7752 * ravenscar-thread.c (set_ravenscar_command)
7753 (show_ravenscar_command): Remove.
7754 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7755 add_show_prefix_cmd.
7756 * mips-tdep.c (show_mips_command, set_mips_command)
7757 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7758 add_show_prefix_cmd.
7759 * maint.c (maintenance_command, maintenance_info_command)
7760 (maintenance_check_command, maintenance_print_command)
7761 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7762 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7763 add_show_prefix_cmd.
7764 (show_per_command_cmd): Remove.
7765 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7766 Remove.
7767 (maintenance_show_test_settings_cmd): Remove.
7768 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7769 add_show_prefix_cmd.
7770 * maint-test-options.c (maintenance_test_options_command):
7771 Remove.
7772 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7773 * macrocmd.c (macro_command): Remove
7774 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7775 * language.c (set_check, show_check): Remove.
7776 (_initialize_language): Use add_basic_prefix_cmd,
7777 add_show_prefix_cmd.
7778 * infcmd.c (unset_command): Remove.
7779 (_initialize_infcmd): Use add_basic_prefix_cmd.
7780 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7781 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7782 add_show_prefix_cmd.
7783 * go32-nat.c (go32_info_dos_command): Remove.
7784 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7785 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7786 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7787 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7788 (_initialize_frame): Use add_basic_prefix_cmd,
7789 add_show_prefix_cmd.
7790 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7791 (_initialize_dcache): Use add_basic_prefix_cmd,
7792 add_show_prefix_cmd.
7793 * cp-support.c (maint_cplus_command): Remove.
7794 (_initialize_cp_support): Use add_basic_prefix_cmd.
7795 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7796 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7797 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7798 add_basic_prefix_cmd, add_show_prefix_cmd.
7799 * breakpoint.c (save_command): Remove.
7800 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7801 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7802 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7803 add_show_prefix_cmd.
7804 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7805 (set_ada_command, show_ada_command): Remove.
7806 (_initialize_ada_language): Use add_basic_prefix_cmd,
7807 add_show_prefix_cmd.
7808 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7809
7810 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7811
7812 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7813 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7814
7815 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7816
7817 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7818 warning messages.
7819
7820 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7821
7822 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7823 import table is not at beginning of .idata section.
7824
7825 2020-04-16 Pedro Alves <palves@redhat.com>
7826
7827 * inferior.c (delete_inferior): Use delete operator directly
7828 instead of delete_program_space.
7829 * progspace.c (add_program_space): New, factored out from
7830 program_space::program_space.
7831 (remove_program_space): New, factored out from
7832 delete_program_space.
7833 (program_space::program_space): Remove intro comment. Rewrite.
7834 (program_space::~program_space): Remove intro comment. Call
7835 remove_program_space.
7836 (delete_program_space): Delete.
7837 * progspace.h (program_space::program_space): Make explicit. Move
7838 intro comment here, adjusted.
7839 (program_space::~program_space): Move intro comment here,
7840 adjusted.
7841 (delete_program_space): Remove.
7842
7843 2020-04-16 Tom Tromey <tromey@adacore.com>
7844
7845 * windows-nat.c (windows_nat::handle_access_violation): New
7846 function.
7847 * nat/windows-nat.h (handle_access_violation): Declare.
7848 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7849 windows-nat.c. Call handle_access_violation.
7850
7851 2020-04-16 Tom de Vries <tdevries@suse.de>
7852
7853 PR symtab/25791
7854 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7855 CUs without psymtab.
7856
7857 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7858
7859 * python/python.c (do_start_initialization): Don't call
7860 PyEval_InitThreads for Python 3.9 and beyond.
7861
7862 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7863
7864 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7865 thread functions.
7866 (obsd_nat_target::wait): Likewise.
7867
7868 2020-04-15 Tom Tromey <tromey@adacore.com>
7869
7870 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7871 (DEBUG_EXCEPT): Use debug_printf.
7872
7873 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7874
7875 * completer.c (class completion_tracker::completion_hash_entry)
7876 <hash_name>: New member function.
7877 (completion_tracker::discard_completions): New callback to hash a
7878 completion_hash_entry, pass this to htab_create_alloc.
7879
7880 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7881
7882 * windows-nat.c (windows_make_so): Warn rather than stopping with
7883 an error if realpath() fails.
7884
7885 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7886
7887 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7888 (nbsd_nat_target::info_proc): Add do_status.
7889
7890 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7891 Tom de Vries <tdevries@suse.de>
7892
7893 PR symtab/25718
7894 * psympriv.h (struct partial_symtab::read_symtab)
7895 (struct partial_symtab::expand_psymtab)
7896 (struct partial_symtab::read_dependencies): Update comments.
7897 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7898 read_symtab for includer.
7899 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7900 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7901 (struct dwarf2_include_psymtab::m_readin): Remove.
7902 (struct dwarf2_include_psymtab::includer): New member function.
7903 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7904
7905 2020-04-14 Tom de Vries <tdevries@suse.de>
7906
7907 PR symtab/25720
7908 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7909 with NULL symbol_matcher and lookup_name.
7910 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7911 and lookup_name.
7912 * dwarf2/read.c (dw2_expand_symtabs_matching)
7913 (dw2_debug_names_expand_symtabs_matching): Same.
7914 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7915 Make lookup_name a pointer. Update comment.
7916 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7917 lookup_name being a pointer.
7918 * symfile.c (expand_symtabs_matching): Same.
7919 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7920 * linespec.c (iterate_over_all_matching_symtabs): Same.
7921
7922 2020-04-13 Tom Tromey <tom@tromey.com>
7923
7924 * run-on-main-thread.c: Update include.
7925 * unittests/main-thread-selftests.c: Update include.
7926 * tui/tui-win.c: Update include.
7927 * tui/tui-io.c: Update include.
7928 * tui/tui-interp.c: Update include.
7929 * tui/tui-hooks.c: Update include.
7930 * top.h: Update include.
7931 * top.c: Update include.
7932 * ser-base.c: Update include.
7933 * remote.c: Update include.
7934 * remote-notif.c: Update include.
7935 * remote-fileio.c: Update include.
7936 * record-full.c: Update include.
7937 * record-btrace.c: Update include.
7938 * python/python.c: Update include.
7939 * posix-hdep.c: Update include.
7940 * mingw-hdep.c: Update include.
7941 * mi/mi-main.c: Update include.
7942 * mi/mi-interp.c: Update include.
7943 * main.c: Update include.
7944 * linux-nat.c: Update include.
7945 * interps.c: Update include.
7946 * infrun.c: Update include.
7947 * inf-loop.c: Update include.
7948 * event-top.c: Update include.
7949 * event-loop.c: Move to ../gdbsupport/.
7950 * event-loop.h: Move to ../gdbsupport/.
7951 * async-event.h: Update include.
7952 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7953
7954 2020-04-13 Tom Tromey <tom@tromey.com>
7955
7956 * tui/tui-win.c: Include async-event.h.
7957 * remote.c: Include async-event.h.
7958 * remote-notif.c: Include async-event.h.
7959 * record-full.c: Include async-event.h.
7960 * record-btrace.c: Include async-event.h.
7961 * infrun.c: Include async-event.h.
7962 * event-top.c: Include async-event.h.
7963 * event-loop.h: Move some declarations to async-event.h.
7964 * event-loop.c: Don't include ser-event.h or top.h. Move some
7965 code to async-event.c.
7966 * async-event.h: New file.
7967 * async-event.c: New file.
7968 * Makefile.in (COMMON_SFILES): Add async-event.c.
7969 (HFILES_NO_SRCDIR): Add async-event.h.
7970
7971 2020-04-13 Tom Tromey <tom@tromey.com>
7972
7973 * utils.c (flush_streams): New function.
7974 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7975
7976 2020-04-13 Tom Tromey <tom@tromey.com>
7977
7978 * event-loop.c (handle_file_event): Use warning, not
7979 printf_unfiltered.
7980
7981 2020-04-13 Tom Tromey <tom@tromey.com>
7982
7983 * event-loop.c: Include <chrono>.
7984
7985 2020-04-13 Tom Tromey <tom@tromey.com>
7986
7987 * gdb_select.h: Move to ../gdbsupport/.
7988 * event-loop.c: Update include path.
7989 * top.c: Update include path.
7990 * ser-base.c: Update include path.
7991 * ui-file.c: Update include path.
7992 * ser-tcp.c: Update include path.
7993 * guile/scm-ports.c: Update include path.
7994 * posix-hdep.c: Update include path.
7995 * ser-unix.c: Update include path.
7996 * gdb_usleep.c: Update include path.
7997 * mingw-hdep.c: Update include path.
7998 * inflow.c: Update include path.
7999 * infrun.c: Update include path.
8000 * event-top.c: Update include path.
8001
8002 2020-04-13 Tom Tromey <tom@tromey.com>
8003
8004 * configure: Rebuild.
8005 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8006
8007 2020-04-13 Tom Tromey <tom@tromey.com>
8008
8009 * event-loop.h (start_event_loop): Don't declare.
8010 * event-loop.c (start_event_loop): Move...
8011 * main.c (start_event_loop): ...here. Now static.
8012
8013 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8014
8015 * MAINTAINERS: Update my email address.
8016
8017 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8018
8019 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8020 IP_ALL.
8021
8022 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8023
8024 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8025 (nbsd_nat_target::info_proc): Add do_cmdline.
8026
8027 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8028
8029 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8030 (nbsd_nat_target::info_proc): Add do_cwd.
8031
8032 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8033
8034 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8035
8036 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8037
8038 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8039 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8040 (nbsd_nat_target::info_proc): New functions.
8041 * nbsd-nat.c (kinfo_get_vmmap): New function.
8042 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8043 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8044 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8045 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8046 functions.
8047 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8048 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8049 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8050 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8051 (KINFO_VME_FLAG_GROWS_DOWN): New.
8052
8053 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8054
8055 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8056 bit shift.
8057
8058 2020-04-10 Tom Tromey <tromey@adacore.com>
8059
8060 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8061
8062 2020-04-10 Tom Tromey <tromey@adacore.com>
8063
8064 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8065 separate debug files.
8066
8067 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8068
8069 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8070 Move to...
8071 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8072 ... here.
8073 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8074 Check for STATUS_WX86_BREAKPOINT.
8075 (windows_nat_target::wait): Same.
8076
8077 2020-04-10 Tom de Vries <tdevries@suse.de>
8078
8079 PR cli/25808
8080 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8081
8082 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8083
8084 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8085 (Write After Approval): Remove Tom de Vries.
8086
8087 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8088
8089 revert partially:
8090 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8091
8092 * buildsym.c (record_line): Fix undefined behavior and preserve
8093 lines at eof.
8094
8095 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8096
8097 * auxv.h (svr4_auxv_parse): New.
8098 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8099 and generic_auxv_parse.
8100 (svr4_auxv_parse): Add.
8101 * obsd-tdep.c: Include "auxv.h".
8102 (obsd_auxv_parse): Remove.
8103 (obsd_init_abi): Remove comment.
8104 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8105 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8106 * nbsd-tdep.c: Include "auxv.h".
8107 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8108
8109 2020-04-08 Tom Tromey <tromey@adacore.com>
8110
8111 * nat/windows-nat.h (last_wait_event): Don't declare.
8112 (wait_for_debug_event): Update comment.
8113 * nat/windows-nat.c (last_wait_event): Now static.
8114
8115 2020-04-08 Tom Tromey <tromey@adacore.com>
8116
8117 * windows-nat.c (wait_for_debug_event): Move to
8118 nat/windows-nat.c.
8119 * nat/windows-nat.h (wait_for_debug_event): Declare.
8120 * nat/windows-nat.c (wait_for_debug_event): Move from
8121 windows-nat.c. No longer static.
8122
8123 2020-04-08 Tom Tromey <tromey@adacore.com>
8124
8125 * windows-nat.c (get_windows_debug_event): Use
8126 fetch_pending_stop.
8127 * nat/windows-nat.h (fetch_pending_stop): Declare.
8128 * nat/windows-nat.c (fetch_pending_stop): New function.
8129
8130 2020-04-08 Tom Tromey <tromey@adacore.com>
8131
8132 * windows-nat.c (windows_continue): Use matching_pending_stop and
8133 continue_last_debug_event.
8134 * nat/windows-nat.h (matching_pending_stop)
8135 (continue_last_debug_event): Declare.
8136 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8137 (matching_pending_stop, continue_last_debug_event): New
8138 functions.
8139
8140 2020-04-08 Tom Tromey <tromey@adacore.com>
8141
8142 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8143 (handle_exception_result): Move to nat/windows-nat.h.
8144 (DEBUG_EXCEPTION_SIMPLE): Remove.
8145 (windows_nat::handle_ms_vc_exception): New function.
8146 (handle_exception): Move to nat/windows-nat.c.
8147 (get_windows_debug_event): Update.
8148 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8149 nat/windows-nat.c.
8150 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8151 (handle_exception_result): Move from windows-nat.c.
8152 (handle_exception): Declare.
8153 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8154 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8155 windows-nat.c.
8156
8157 2020-04-08 Tom Tromey <tromey@adacore.com>
8158
8159 * windows-nat.c (exception_count, event_count): Remove.
8160 (handle_exception, get_windows_debug_event)
8161 (do_initial_windows_stuff): Update.
8162
8163 2020-04-08 Tom Tromey <tromey@adacore.com>
8164
8165 * windows-nat.c (windows_nat::handle_load_dll)
8166 (windows_nat::handle_unload_dll): Rename. No longer static.
8167 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8168 Declare.
8169
8170 2020-04-08 Tom Tromey <tromey@adacore.com>
8171
8172 * complaints.h (stop_whining): Declare at top-level.
8173 (complaint): Don't declare stop_whining.
8174
8175 2020-04-08 Tom Tromey <tromey@adacore.com>
8176
8177 * windows-nat.c (windows_nat::handle_output_debug_string):
8178 Rename. No longer static.
8179 * nat/windows-nat.h (handle_output_debug_string): Declare.
8180
8181 2020-04-08 Tom Tromey <tromey@adacore.com>
8182
8183 * windows-nat.c (current_process_handle, current_process_id)
8184 (main_thread_id, last_sig, current_event, last_wait_event)
8185 (current_windows_thread, desired_stop_thread_id, pending_stops)
8186 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8187 (display_selectors, fake_create_process)
8188 (get_windows_debug_event): Update.
8189 * nat/windows-nat.h (current_process_handle, current_process_id)
8190 (main_thread_id, last_sig, current_event, last_wait_event)
8191 (current_windows_thread, desired_stop_thread_id, pending_stops)
8192 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8193 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
8197
8198 2020-04-08 Tom Tromey <tromey@adacore.com>
8199
8200 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8201 (handle_load_dll): Update.
8202 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8203
8204 2020-04-08 Tom Tromey <tromey@adacore.com>
8205
8206 * windows-nat.c (enum thread_disposition_type): Move to
8207 nat/windows-nat.h.
8208 (windows_nat::thread_rec): Rename from thread_rec. No longer
8209 static.
8210 (windows_add_thread, windows_nat_target::fetch_registers)
8211 (windows_nat_target::store_registers, handle_exception)
8212 (windows_nat_target::resume, get_windows_debug_event)
8213 (windows_nat_target::get_tib_address)
8214 (windows_nat_target::thread_name)
8215 (windows_nat_target::thread_alive): Update.
8216 * nat/windows-nat.h (enum thread_disposition_type): Move from
8217 windows-nat.c.
8218 (thread_rec): Declare.
8219
8220 2020-04-08 Tom Tromey <tromey@adacore.com>
8221
8222 * windows-nat.c: Add "using namespace".
8223 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8224 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8225
8226 2020-04-08 Tom Tromey <tromey@adacore.com>
8227
8228 * nat/windows-nat.h (struct windows_thread_info): Declare
8229 destructor.
8230 * nat/windows-nat.c (~windows_thread_info): New.
8231
8232 2020-04-08 Tom Tromey <tromey@adacore.com>
8233
8234 PR gdb/22992
8235 * windows-nat.c (current_event): Update comment.
8236 (last_wait_event, desired_stop_thread_id): New globals.
8237 (struct pending_stop): New.
8238 (pending_stops): New global.
8239 (windows_nat_target) <stopped_by_sw_breakpoint>
8240 <supports_stopped_by_sw_breakpoint>: New methods.
8241 (windows_fetch_one_register): Add assertions. Adjust PC.
8242 (windows_continue): Handle pending stops. Suspend other threads
8243 when stepping. Use last_wait_event
8244 (wait_for_debug_event): New function.
8245 (get_windows_debug_event): Use wait_for_debug_event. Handle
8246 pending stops. Queue spurious stops.
8247 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8248 (windows_nat_target::kill): Use wait_for_debug_event.
8249 * nat/windows-nat.h (struct windows_thread_info)
8250 <stopped_at_software_breakpoint>: New field.
8251 * nat/windows-nat.c (windows_thread_info::resume): Clear
8252 stopped_at_software_breakpoint.
8253
8254 2020-04-08 Tom Tromey <tromey@adacore.com>
8255
8256 * windows-nat.c (enum thread_disposition_type): New.
8257 (thread_rec): Replace "get_context" parameter with "disposition";
8258 change type.
8259 (windows_add_thread, windows_nat_target::fetch_registers)
8260 (windows_nat_target::store_registers, handle_exception)
8261 (windows_nat_target::resume, get_windows_debug_event)
8262 (windows_nat_target::get_tib_address)
8263 (windows_nat_target::thread_name)
8264 (windows_nat_target::thread_alive): Update.
8265
8266 2020-04-08 Tom Tromey <tromey@adacore.com>
8267
8268 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8269 (windows_continue): Use windows_continue::resume.
8270 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8271 resume>: Declare new methods.
8272 * nat/windows-nat.c: New file.
8273 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8274
8275 2020-04-08 Tom Tromey <tromey@adacore.com>
8276
8277 * windows-nat.c (windows_add_thread, windows_delete_thread)
8278 (windows_nat_target::fetch_registers)
8279 (windows_nat_target::store_registers, fake_create_process)
8280 (windows_nat_target::resume, windows_nat_target::resume)
8281 (get_windows_debug_event, windows_nat_target::wait)
8282 (windows_nat_target::pid_to_str)
8283 (windows_nat_target::get_tib_address)
8284 (windows_nat_target::get_ada_task_ptid)
8285 (windows_nat_target::thread_name)
8286 (windows_nat_target::thread_alive): Use lwp, not tid.
8287
8288 2020-04-08 Tom Tromey <tromey@adacore.com>
8289
8290 * windows-nat.c (handle_exception)
8291 (windows_nat_target::thread_name): Update.
8292 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8293 <name>: Now unique_xmalloc_ptr.
8294
8295 2020-04-08 Tom Tromey <tromey@adacore.com>
8296
8297 * windows-nat.c (thread_rec)
8298 (windows_nat_target::fetch_registers): Update.
8299 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8300 Update comment.
8301 <debug_registers_changed, reload_context>: Now bool.
8302
8303 2020-04-08 Tom Tromey <tromey@adacore.com>
8304
8305 * windows-nat.c (windows_add_thread): Use new.
8306 (windows_init_thread_list, windows_delete_thread): Use delete.
8307 (get_windows_debug_event): Update.
8308 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8309 destructor, and initializers.
8310
8311 2020-04-08 Tom Tromey <tromey@adacore.com>
8312
8313 * windows-nat.c (struct windows_thread_info): Remove.
8314 * nat/windows-nat.h: New file.
8315
8316 2020-04-08 Tom Tromey <tromey@adacore.com>
8317
8318 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8319 (thread_rec, windows_add_thread, windows_delete_thread)
8320 (windows_continue): Update.
8321
8322 2020-04-08 Tom Tromey <tromey@adacore.com>
8323
8324 * windows-nat.c (struct windows_thread_info): Remove typedef.
8325 (thread_head): Remove.
8326 (thread_list): New global.
8327 (thread_rec, windows_add_thread, windows_init_thread_list)
8328 (windows_delete_thread, windows_continue): Update.
8329
8330 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8331
8332 * windows-tdep.h (windows_init_abi): Add comment.
8333 (cygwin_init_abi): New declaration.
8334 * windows-tdep.c: Split signal enumeration in two, one for
8335 Windows and one for Cygwin.
8336 (windows_gdb_signal_to_target): Only deal with signal of the
8337 Windows OS ABI.
8338 (cygwin_gdb_signal_to_target): New function.
8339 (windows_init_abi): Rename to windows_init_abi_common, don't set
8340 gdb_signal_to_target gdbarch method. Add new new function with
8341 this name.
8342 (cygwin_init_abi): New function.
8343 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8344 comment. Don't call windows_init_abi.
8345 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8346 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8347 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8348 i386_windows_init_abi_common, don't call windows_init_abi. Add
8349 a new function of this name.
8350 (i386_cygwin_init_abi): New function.
8351 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8352 OS ABI Cygwin.
8353
8354 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8355
8356 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8357 parameter.c.
8358 (dwarf2_read_gdb_index): Update.
8359
8360 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8361
8362 * nbsd-tdep.c: Include "objfiles.h".
8363 (nbsd_skip_solib_resolver): New.
8364 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8365
8366 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8367
8368 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8369 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8370 with DW_LLE_base_addressx are being emitted in DWARFv5.
8371 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8372 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8373 unsigned integer.
8374
8375 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8376
8377 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8378 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8379 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8380 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8381 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8382 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8383 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8384
8385
8386 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8387
8388 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8389 (read_loclist_index): New function definition.
8390 (lookup_loclist_base): New function definition.
8391 (read_loclist_header): New function definition.
8392 (dwarf2_cu): Add loclist_base and loclist_header field.
8393 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8394 (read_full_die_1): Read the value of DW_AT_loclists_base.
8395 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8396 (read_attribute_value): Handle DW_FORM_loclistx.
8397 (skip_one_die): Handle DW_FORM_loclistx.
8398 (loclist_header): New structure declaration.
8399 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8400
8401 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8402
8403 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8404 constructor. Remove `addr` parameter from other constructor and
8405 add `per_cu` parameter.
8406 * dwarf2/read.c (create_partial_symtab): Update.
8407
8408 2020-04-07 Tom de Vries <tdevries@suse.de>
8409
8410 PR symtab/25796
8411 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8412 (partial_die_info::fixup): Inherit has_const_value.
8413
8414 2020-04-07 Tom de Vries <tdevries@suse.de>
8415
8416 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8417 symbols without address.
8418
8419 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8420
8421 * nbsd-nat.h (struct thread_info): Add forward declaration.
8422 (nbsd_nat_target::thread_alive): Add.
8423 (nbsd_nat_target::thread_name): Likewise.
8424 (nbsd_nat_target::update_thread_list): Likewise.
8425 (update_thread_list::post_attach): Likewise.
8426 (post_attach::pid_to_str): Likewise.
8427 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8428 (nbsd_thread_lister): Add.
8429 (nbsd_nat_target::thread_alive): Likewise.
8430 (nbsd_nat_target::thread_name): Likewise.
8431 (nbsd_add_threads): Likewise.
8432 (update_thread_list::post_attach): Likewise.
8433 (nbsd_nat_target::update_thread_list): Likewise.
8434 (post_attach::pid_to_str): Likewise.
8435
8436 2020-04-06 Tom Tromey <tromey@adacore.com>
8437
8438 * ada-valprint.c (print_variant_part): Extract the variant field.
8439 (print_field_values): Use the field as the outer value when
8440 recursing.
8441
8442 2020-04-06 Tom Tromey <tromey@adacore.com>
8443
8444 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8445 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8446 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8447 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8448 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8449
8450 2020-04-06 Tom Tromey <tromey@adacore.com>
8451
8452 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8453 TYPE_CODE_ERROR.
8454
8455 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8456
8457 * nbsd-tdep.c: Include "gdbarch.h".
8458 Define enum with NetBSD signal numbers.
8459 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8460 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8461 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8462 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8463 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8464 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8465 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8466 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8467 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8468 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8469 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8470 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8471
8472 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8473
8474 PR gdb/25325
8475 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8476
8477 2020-04-03 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8480 Read constant block.
8481
8482 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8483
8484 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8485 (gdb_bfd_get_full_section_contents): New declaration.
8486 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8487 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8488 gdb_bfd_get_full_section_contents.
8489
8490 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8491
8492 * exec.c (build_section_table): Replace internal_error with
8493 gdb_assert.
8494 (section_table_xfer_memory_partial): Likewise.
8495 * mdebugread.c (parse_partial_symbols): Likewise.
8496 * psymtab.c (lookup_partial_symbol): Likewise.
8497 * utils.c (wrap_here): Likewise.
8498
8499 2020-04-02 Tom Tromey <tromey@adacore.com>
8500
8501 * f-lang.c (build_fortran_types): Use arch_type to initialize
8502 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8503
8504 2020-04-02 Tom Tromey <tromey@adacore.com>
8505
8506 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8507 of attributes.
8508
8509 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8510 Bernd Edlinger <bernd.edlinger@hotmail.de>
8511 Tom Tromey <tromey@adacore.com>
8512
8513 * buildsym.c (buildsym_compunit::record_line): Remove
8514 deduplication code.
8515
8516 2020-04-02 Tom de Vries <tdevries@suse.de>
8517
8518 PR ada/24671
8519 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8520
8521 2020-04-02 Tom de Vries <tdevries@suse.de>
8522
8523 * dwarf2/read.c (dwarf2_gdb_index_functions,
8524 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8525 NULL.
8526 * psymtab.c (psym_lookup_global_symbol_language): New function.
8527 (psym_functions): Init psym_lookup_global_symbol_language with
8528 psym_lookup_global_symbol_language.
8529 * symfile-debug.c (debug_sym_quick_functions): Init
8530 lookup_global_symbol_language with NULL.
8531 * symfile.c (set_initial_language): Remove fixme comment.
8532 * symfile.h (struct quick_symbol_functions): Add
8533 lookup_global_symbol_language.
8534 * symtab.c (find_quick_global_symbol_language): New function.
8535 (find_main_name): Use find_quick_global_symbol_language.
8536
8537 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8538
8539 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8540
8541 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8542
8543 * buildsym.c (record_line): Fix undefined behavior and preserve
8544 lines at eof.
8545
8546 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8547
8548 * buildsym.c (record_line): Fix the resizing condition.
8549
8550 2020-04-01 Tom Tromey <tom@tromey.com>
8551
8552 * value.h (value_literal_complex): Add comment.
8553 * valops.c (value_literal_complex): Refer to value.h.
8554
8555 2020-04-01 Tom Tromey <tom@tromey.com>
8556
8557 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8558 (scalar_type): New rule, from typebase.
8559 (typebase): Use scalar_type. Recognize complex types.
8560 (field_name): Handle FLOAT_KEYWORD.
8561 (ident_tokens): Add _Complex and __complex__.
8562
8563 2020-04-01 Tom Tromey <tom@tromey.com>
8564
8565 PR exp/25299:
8566 * valarith.c (promotion_type, complex_binop): New functions.
8567 (scalar_binop): Handle complex numbers. Use promotion_type.
8568 (value_pos, value_neg, value_complement): Handle complex numbers.
8569
8570 2020-04-01 Tom Tromey <tom@tromey.com>
8571
8572 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8573 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8574 (parse_number): Handle complex numbers.
8575
8576 2020-04-01 Tom Tromey <tom@tromey.com>
8577
8578 * c-valprint.c (c_decorations): Change complex suffix to "i".
8579
8580 2020-04-01 Tom Tromey <tom@tromey.com>
8581
8582 * valprint.c (generic_value_print_complex): Use accessors.
8583 * value.h (value_real_part, value_imaginary_part): Declare.
8584 * valops.c (value_real_part, value_imaginary_part): New
8585 functions.
8586 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8587
8588 2020-04-01 Tom Tromey <tom@tromey.com>
8589
8590 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8591 (read_range_type): Update.
8592 * mdebugread.c (basic_type): Update.
8593 * go-lang.c (build_go_types): Use init_complex_type.
8594 * gdbtypes.h (struct main_type) <complex_type>: New member.
8595 (init_complex_type): Update.
8596 (arch_complex_type): Don't declare.
8597 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8598 Make name if none given. Use alloc_type_copy. Look for cached
8599 complex type.
8600 (arch_complex_type): Remove.
8601 (gdbtypes_post_init): Use init_complex_type.
8602 * f-lang.c (build_fortran_types): Use init_complex_type.
8603 * dwarf2/read.c (read_base_type): Update.
8604 * d-lang.c (build_d_types): Use init_complex_type.
8605 * ctfread.c (read_base_type): Update.
8606
8607 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8608
8609 * infrun.c (stop_all_threads): Update assertion, plus when
8610 stopping threads, take into account that we might be trying
8611 to stop an all-stop target.
8612 (stop_waiting): Call 'stop_all_threads' if there exists a
8613 non-stop target.
8614
8615 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8616
8617 * target.h (exists_non_stop_target): New function declaration.
8618 * target.c (exists_non_stop_target): New function.
8619
8620 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8621
8622 PR gdb/24789
8623 * eval.c (is_integral_or_integral_reference): New function.
8624 (evaluate_subexp_standard): Allow integer references in
8625 pointer arithmetic.
8626
8627 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8628
8629 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8630 check for no ptid in the stop reply when the target is non-stop.
8631
8632 2020-04-01 Tom Tromey <tromey@adacore.com>
8633
8634 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8635 "name" parameter to rvalue reference. Initialize m_name_holder.
8636 <lookup_name_info>: New overloads.
8637 <name>: Return gdb::string_view.
8638 <c_str>: New method.
8639 <make_ignore_params>: Update.
8640 <search_name_hash>: Update.
8641 <language_lookup_name>: Return const char *.
8642 <m_name>: Change type.
8643 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8644 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8645 (lookup_name_info::match_any): Update.
8646 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8647 Update.
8648 * minsyms.c (linkage_name_str): Update.
8649 * language.c (default_symbol_name_matcher): Update.
8650 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8651 Update.
8652 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8653 (ada_lookup_name_info::ada_lookup_name_info): Update.
8654 (literal_symbol_name_matcher): Update.
8655
8656 2020-04-01 Tom Tromey <tromey@adacore.com>
8657
8658 * psymtab.c (psymtab_search_name): Remove function.
8659 (psym_lookup_symbol): Create search name and lookup name here.
8660 (lookup_partial_symbol): Remove "name" parameter; add
8661 lookup_name.
8662 (psym_expand_symtabs_for_function): Update.
8663
8664 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8665
8666 PR tui/25597:
8667 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8668
8669 2020-03-31 Tom Tromey <tromey@adacore.com>
8670
8671 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8672 memcpy.
8673
8674 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8675
8676 * features/riscv/32bit-csr.xml: Regenerated.
8677 * features/riscv/64bit-csr.xml: Regenerated.
8678
8679 2020-03-30 Tom Tromey <tromey@adacore.com>
8680
8681 * ada-valprint.c (print_variant_part): Update.
8682 * ada-lang.h (ada_which_variant_applies): Update.
8683 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8684 outer_valaddr parameters; replace with "outer" value parameter.
8685 (to_fixed_variant_branch_type): Update.
8686
8687 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8688
8689 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8690 <list>. Remove inclusion of observable.h.
8691 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8692 (struct arch_lwp_info): New struct.
8693 (class ppc_linux_dreg_interface): New class.
8694 (struct ppc_linux_process_info): New struct.
8695 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8696 <low_new_clone, low_forget_process, low_prepare_to_resume>
8697 <copy_thread_dreg_state, mark_thread_stale>
8698 <mark_debug_registers_changed, register_hw_breakpoint>
8699 <clear_hw_breakpoint, register_wp, clear_wp>
8700 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8701 <num_memory_accesses, get_trigger_type>
8702 <create_watchpoint_request, hwdebug_point_cmp>
8703 <init_arch_lwp_info, get_arch_lwp_info>
8704 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8705 methods.
8706 <struct ptid_hash>: New inner struct.
8707 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8708 members.
8709 (saved_dabr_value, hwdebug_info, max_slots_number)
8710 (struct hw_break_tuple, struct thread_points, ppc_threads)
8711 (have_ptrace_hwdebug_interface)
8712 (hwdebug_find_thread_points_by_tid)
8713 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8714 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8715 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8716 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8717 use m_dreg_interface.
8718 (hwdebug_point_cmp): Change to...
8719 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8720 reference arguments instead of pointers.
8721 (ppc_linux_nat_target::ranged_break_num_registers): Use
8722 m_dreg_interface.
8723 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8724 m_dreg_interface. Call register_hw_breakpoint.
8725 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8726 m_dreg_interface. Call clear_hw_breakpoint.
8727 (get_trigger_type): Change to...
8728 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8729 comment.
8730 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8731 use m_dreg_interface. Call register_hw_breakpoint.
8732 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8733 use m_dreg_interface. Call clear_hw_breakpoint.
8734 (can_use_watchpoint_cond_accel): Change to...
8735 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8736 method. Update comment, use m_dreg_interface and
8737 m_process_info.
8738 (calculate_dvc): Change to...
8739 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8740 m_dreg_interface.
8741 (num_memory_accesses): Change to...
8742 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8743 (check_condition): Change to...
8744 (ppc_linux_nat_target::check_condition): ...this method.
8745 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8746 comment, use m_dreg_interface.
8747 (create_watchpoint_request): Change to...
8748 (ppc_linux_nat_target::create_watchpoint_request): ...this
8749 method. Use m_dreg_interface.
8750 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8751 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8752 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8753 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8754 (ppc_linux_nat_target::low_forget_process)
8755 (ppc_linux_nat_target::low_new_fork)
8756 (ppc_linux_nat_target::low_new_clone)
8757 (ppc_linux_nat_target::low_delete_thread)
8758 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8759 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8760 only call mark_thread_stale.
8761 (ppc_linux_thread_exit): Remove.
8762 (ppc_linux_nat_target::stopped_data_address): Change to...
8763 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8764 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8765 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8766 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8767 comment. Call low_stopped_data_address.
8768 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8769 m_dreg_interface.
8770 (ppc_linux_nat_target::masked_watch_num_registers): Use
8771 m_dreg_interface.
8772 (ppc_linux_nat_target::copy_thread_dreg_state)
8773 (ppc_linux_nat_target::mark_thread_stale)
8774 (ppc_linux_nat_target::mark_debug_registers_changed)
8775 (ppc_linux_nat_target::register_hw_breakpoint)
8776 (ppc_linux_nat_target::clear_hw_breakpoint)
8777 (ppc_linux_nat_target::register_wp)
8778 (ppc_linux_nat_target::clear_wp)
8779 (ppc_linux_nat_target::init_arch_lwp_info)
8780 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8781 (_initialize_ppc_linux_nat): Remove observer callback.
8782
8783 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8784
8785 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8786 (ppc_linux_nat_target::auxv_parse)
8787 (ppc_linux_nat_target::read_description)
8788 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8789 Move up.
8790
8791 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8792
8793 * linux-nat.h (low_new_clone): New method.
8794 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8795
8796 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8797
8798 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8799 (dbx_expand_psymtab): ... this.
8800 (start_psymtab): Update.
8801 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8802 (mdebug_expand_psymtab): ... this.
8803 (parse_partial_symbols): Update.
8804 (new_psymtab): Update.
8805 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8806 (xcoff_expand_psymtab): ... this.
8807 (xcoff_start_psymtab): Update.
8808
8809 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8810
8811 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8812 <expand_dependencies>: ... this.
8813 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8814 (partial_symtab::expand_dependencies): ... this.
8815 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8816 Update.
8817 (dwarf2_psymtab::expand_psymtab): Update.
8818 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8819 * mdebugread.c (psymtab_to_symtab_1): Update.
8820 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8821
8822 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8823
8824 * psympriv.h (discard_psymtab): Remove.
8825 * dbxread.c (dbx_end_psymtab): Update.
8826 * xcoffread.c (xcoff_end_psymtab): Update.
8827
8828 2020-03-28 Tom Tromey <tom@tromey.com>
8829
8830 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8831 comment.
8832
8833 2020-03-28 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8836
8837 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8838
8839 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8840
8841 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8842
8843 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8844
8845 2020-03-26 Tom Tromey <tom@tromey.com>
8846
8847 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8848 (mark_common_block_symbol_computed, read_tag_string_type)
8849 (attr_to_dynamic_prop, read_subrange_type): Update.
8850 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8851 to be methods on struct attribute.
8852 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8853 (read_call_site_scope, partial_die_info::read)
8854 (partial_die_info::read, lookup_die_type, follow_die_ref):
8855 Update.
8856 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8857 from dwarf2_get_ref_die_offset.
8858 (attribute::constant_value): New method, from
8859 dwarf2_get_attr_constant_value.
8860 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8861 Declare method.
8862 <constant_value>: New method.
8863
8864 2020-03-26 Tom Tromey <tom@tromey.com>
8865
8866 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8867 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8868 (dwarf_type_encoding_name): Move to stringify.c.
8869 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8870 * dwarf2/stringify.c: New file.
8871 * dwarf2/stringify.h: New file.
8872
8873 2020-03-26 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8876 Rewrite.
8877
8878 2020-03-26 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8881 methods.
8882 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8883 (lookup_ranges_base): Likewise.
8884 (read_cutu_die_from_dwo, read_full_die_1): Update.
8885
8886 2020-03-26 Tom Tromey <tom@tromey.com>
8887
8888 * dwarf2/read.c (read_import_statement, read_file_scope)
8889 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8890 (read_lexical_block_scope, read_call_site_scope)
8891 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8892 (handle_struct_member_die, process_structure_scope)
8893 (update_enumeration_type_from_children)
8894 (process_enumeration_scope, read_array_type, read_common_block)
8895 (read_namespace, read_module, read_subroutine_type): Update.
8896 (sibling_die): Remove.
8897
8898 2020-03-26 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8901 (build_type_psymtabs_reader, read_structure_type)
8902 (read_enumeration_type, read_full_die_1): Update.
8903 (dwarf2_attr_no_follow): Move to die.h.
8904 * dwarf2/die.h (struct die_info) <attr>: New method.
8905
8906 2020-03-26 Tom Tromey <tom@tromey.com>
8907
8908 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8909 <base_address>: Now an optional.
8910 (dwarf2_find_base_address, dwarf2_rnglists_process)
8911 (dwarf2_ranges_process, fill_in_loclist_baton)
8912 (dwarf2_symbol_mark_computed): Update.
8913
8914 2020-03-26 Tom Tromey <tom@tromey.com>
8915
8916 * dwarf2/read.c (struct die_info): Move to die.h.
8917 * dwarf2/die.h: New file.
8918
8919 2020-03-26 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8922 * dwarf2/read.c
8923 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8924 Move to line-header.c.
8925 (read_checked_initial_length_and_offset, read_formatted_entries):
8926 Likewise.
8927 (dwarf_decode_line_header): Split into two.
8928 * dwarf2/line-header.c
8929 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8930 Move from read.c.
8931 (read_checked_initial_length_and_offset, read_formatted_entries):
8932 Likewise.
8933 (dwarf_decode_line_header): New function, split from read.c.
8934
8935 2020-03-26 Tom Tromey <tom@tromey.com>
8936
8937 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8938 Declare method.
8939 * dwarf2/read.c (read_attribute_value): Update.
8940 (dwarf2_per_objfile::read_line_string): Rename from
8941 read_indirect_line_string.
8942 (read_formatted_entries): Update.
8943
8944 2020-03-26 Tom Tromey <tom@tromey.com>
8945
8946 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8947 variable.
8948
8949 2020-03-26 Tom Tromey <tom@tromey.com>
8950
8951 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8952 const.
8953 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8954 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8955 parameter const.
8956
8957 2020-03-26 Tom Tromey <tom@tromey.com>
8958
8959 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8960 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8961 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8962 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8963
8964 2020-03-26 Tom Tromey <tom@tromey.com>
8965
8966 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8967 file_names_size, file_full_name, file_file_name>: Use const.
8968 <file_name_at, file_names>: Add const overload.
8969 * dwarf2/line-header.c (line_header::file_file_name)
8970 (line_header::file_full_name): Update.
8971
8972 2020-03-26 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8975 (macro_start_file, consume_improper_spaces)
8976 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8977 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8978 (dwarf_decode_macros): Move to macro.c.
8979 * dwarf2/macro.c: New file.
8980 * dwarf2/macro.h: New file.
8981 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8982
8983 2020-03-26 Tom Tromey <tom@tromey.com>
8984
8985 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8986 method.
8987 * dwarf2/section.c: New method. From
8988 read_indirect_string_at_offset_from.
8989 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8990 (read_indirect_string_at_offset_from): Move to section.c.
8991 (read_indirect_string_at_offset): Rewrite.
8992 (read_indirect_line_string_at_offset): Remove.
8993 (read_indirect_string, read_indirect_line_string)
8994 (dwarf_decode_macro_bytes): Update.
8995
8996 2020-03-26 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/section.h (struct dwarf2_section_info)
8999 <overload_complaint>: Declare.
9000 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9001 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9002 Rename from dwarf2_section_buffer_overflow_complaint.
9003 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9004 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9005
9006 2020-03-26 Tom Tromey <tom@tromey.com>
9007
9008 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9009 Declare.
9010 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9011 Move from read.c.
9012 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9013 to section.c.
9014
9015 2020-03-26 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9018
9019 2020-03-26 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9022 "builder".
9023 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9024 parameter.
9025 (dwarf_decode_macros): Update.
9026
9027 2020-03-26 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.c (read_attribute_value): Update.
9030 (read_indirect_string_from_dwz): Move to dwz.c; change into
9031 method.
9032 (dwarf_decode_macro_bytes): Update.
9033 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9034 * dwarf2/dwz.c: New file.
9035 * Makefile.in (COMMON_SFILES): Add dwz.c.
9036
9037 2020-03-26 Tom Tromey <tom@tromey.com>
9038
9039 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9040 * dwarf2/read.c: Add include.
9041 * dwarf2/index-write.c: Add include.
9042 * dwarf2/index-cache.c: Add include.
9043 * dwarf2/dwz.h: New file.
9044
9045 2020-03-25 Tom Tromey <tom@tromey.com>
9046
9047 * compile/compile-object-load.c (get_out_value_type): Mention
9048 correct symbol name in error message.
9049
9050 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9051
9052 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9053
9054 2020-03-25 Tom de Vries <tdevries@suse.de>
9055
9056 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9057 * symmisc.c (dump_symtab_1): Print user and includes fields.
9058 (maintenance_info_symtabs): Same.
9059
9060 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 PR gdb/25534
9063 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9064 (riscv_regcache_cooked_write): New function.
9065 (riscv_push_dummy_call): Use new function.
9066 (riscv_return_value): Likewise.
9067
9068 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9071 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9072 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9073 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9074 * infrun.c (follow_fork): Likewise.
9075 (follow_fork_inferior): Likewise.
9076 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9077 * linux-nat.h (class linux_nat_target): Likewise.
9078 * remote.c (class remote_target) <follow_fork>: Likewise.
9079 (remote_target::follow_fork): Likewise.
9080 * target-delegates.c: Re-generate.
9081 * target.c (default_follow_fork): Likewise.
9082 (target_follow_fork): Likewise.
9083 * target.h (struct target_ops) <follow_fork>: Likewise.
9084 (target_follow_fork): Likewise.
9085
9086 2020-03-24 Tom de Vries <tdevries@suse.de>
9087
9088 * psymtab.c (maintenance_info_psymtabs): Print user field.
9089
9090 2020-03-20 Tom Tromey <tromey@adacore.com>
9091
9092 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9093 const.
9094 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9095 const.
9096
9097 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9098
9099 * ptrace.m4: Don't check for ptrace declaration.
9100 * config.in: Re-generate.
9101 * configure: Re-generate.
9102 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9103 not defined.
9104
9105 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9106
9107 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9108 `PTRACE_TYPE_RET'.
9109 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9110 * sparc-nat.c (gdb_ptrace): Likewise.
9111 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9112
9113 2020-03-20 Tom Tromey <tromey@adacore.com>
9114
9115 * c-exp.y (lex_one_token): Fix assert.
9116
9117 2020-03-20 Tom Tromey <tromey@adacore.com>
9118
9119 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9120 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9121 strncpy call.
9122
9123 2020-03-20 Tom Tromey <tromey@adacore.com>
9124
9125 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9126
9127 2020-03-20 Tom Tromey <tromey@adacore.com>
9128
9129 * ada-valprint.c (print_variant_part): Remove parameters; switch
9130 to value-based API.
9131 (print_field_values): Likewise.
9132 (ada_val_print_struct_union): Likewise.
9133 (ada_value_print_1): Update.
9134
9135 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9136
9137 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9138 nbsd_nat_target instead of inf_ptrace_target.
9139 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9140 nbsd_nat_target.
9141
9142 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9143
9144 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9145 it to the ptrace call.
9146 * (store_registers): Likewise.
9147
9148 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9149
9150 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9151 it to the ptrace call.
9152 * (store_registers): Likewise.
9153
9154 2020-03-19 Luis Machado <luis.machado@linaro.org>
9155
9156 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9157 valid, fetch vg value from ptrace.
9158
9159 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9160 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9161 * inf-ptrace.c: Likewise.
9162 * (gdb_ptrace): Add.
9163 * (inf_ptrace_target::resume): Update.
9164 * (inf_ptrace_target::xfer_partial): Likewise.
9165 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9166 * (inf_ptrace_peek_poke): Update.
9167
9168 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9169
9170 * x86-bsd-nat.c (gdb_ptrace): New.
9171 * (x86bsd_dr_set): Add new argument `ptid'.
9172 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9173 x86bsd_dr_set_addr): Update.
9174
9175 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9176
9177 * remote.c (remote_target::process_stop_reply): Handle events for
9178 all threads differently.
9179
9180 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9181
9182 * completer.c (completion_tracker::remove_completion): Define new
9183 function.
9184 * completer.h (completion_tracker::remove_completion): Declare new
9185 function.
9186 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9187 when adding a C++ function symbol.
9188
9189 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * completer.c (completion_tracker::completion_hash_entry): Define
9192 new class.
9193 (advance_to_filename_complete_word_point): Call
9194 recompute_lowest_common_denominator.
9195 (completion_tracker::completion_tracker): Call discard_completions
9196 to setup the hash table.
9197 (completion_tracker::discard_completions): Allow for being called
9198 from the constructor, pass new equal function, and element deleter
9199 when constructing the hash table. Initialise new class member
9200 variables.
9201 (completion_tracker::maybe_add_completion): Remove use of
9202 m_entries_vec, and store more information into m_entries_hash.
9203 (completion_tracker::recompute_lcd_visitor): New function, most
9204 content taken from...
9205 (completion_tracker::recompute_lowest_common_denominator):
9206 ...here, this now just visits each item in the hash calling the
9207 above visitor.
9208 (completion_tracker::build_completion_result): Remove use of
9209 m_entries_vec, call recompute_lowest_common_denominator.
9210 * completer.h (completion_tracker::have_completions): Remove use
9211 of m_entries_vec.
9212 (completion_tracker::completion_hash_entry): Declare new class.
9213 (completion_tracker::recompute_lowest_common_denominator): Change
9214 function signature.
9215 (completion_tracker::recompute_lcd_visitor): Declare new function.
9216 (completion_tracker::m_entries_vec): Delete.
9217 (completion_tracker::m_entries_hash): Initialize to NULL.
9218 (completion_tracker::m_lowest_common_denominator_valid): New
9219 member variable.
9220 (completion_tracker::m_lowest_common_denominator_max_length): New
9221 member variable.
9222
9223 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9224
9225 * regformats/regdef.h: Put reg in gdb namespace.
9226
9227 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9228
9229 * i386-bsd-nat.c (gdb_ptrace): New.
9230 * (i386bsd_fetch_inferior_registers,
9231 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9232 * (i386bsd_fetch_inferior_registers,
9233 i386bsd_store_inferior_registers) Use gdb_ptrace.
9234
9235 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9236
9237 * amd64-bsd-nat.c (gdb_ptrace): New.
9238 * (amd64bsd_fetch_inferior_registers,
9239 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9240 * (amd64bsd_fetch_inferior_registers,
9241 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9242
9243 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9244
9245 * user-regs.c (user_reg::read): Rename to...
9246 (user_reg::xread): ...this.
9247 * (append_user_reg): Rename argument `read' to `xread'.
9248 * (user_reg_add_builtin): Likewise.
9249 * (user_reg_add): Likewise.
9250 * (value_of_user_reg): Likewise.
9251
9252 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9253
9254 * sparc-nat.c (gdb_ptrace): New.
9255 * sparc-nat.c (sparc_fetch_inferior_registers)
9256 (sparc_store_inferior_registers) Remove obsolete comment.
9257 * sparc-nat.c (sparc_fetch_inferior_registers)
9258 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9259 * sparc-nat.c (sparc_fetch_inferior_registers)
9260 (sparc_store_inferior_registers) Use gdb_ptrace.
9261
9262 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9263
9264 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9265 it to the ptrace call.
9266 * sh-nbsd-nat.c (store_registers): Likewise.
9267
9268 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9269
9270 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9271 nbsd_nat_target instead of inf_ptrace_target.
9272 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9273 nbsd_nat_target.
9274
9275 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9276
9277 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9278
9279 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9280
9281 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9282 <sys/sysctl.h>.
9283 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9284
9285 2020-03-17 Tom de Vries <tdevries@suse.de>
9286
9287 PR gdb/23710
9288 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9289 fields.
9290 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9291 fields.
9292 (process_imported_unit_die): Skip import of c++ CUs.
9293
9294 2020-03-16 Tom Tromey <tom@tromey.com>
9295
9296 * p-valprint.c (pascal_object_print_value): Initialize
9297 base_value.
9298
9299 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9300 Shahab Vahedi <shahab@synopsys.com>
9301
9302 * Makefile.in: Add arch/arc.o
9303 * configure.tgt: Likewise.
9304 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9305 (_initialize_arc_tdep): Don't initialize old target descriptions.
9306 (arc_read_description): New function to cache target descriptions.
9307 * arc-tdep.h (arc_read_description): Add proto type.
9308 * arch/arc.c: New file.
9309 * arch/arc.h: Likewise.
9310 * features/Makefile: Replace old target descriptions with new.
9311 * features/arc-arcompact.c: Remove.
9312 * features/arc-arcompact.xml: Likewise.
9313 * features/arc-v2.c: Likewise
9314 * features/arc-v2.xml: Likewise
9315 * features/arc/aux-arcompact.xml: New file.
9316 * features/arc/aux-v2.xml: Likewise.
9317 * features/arc/core-arcompact.xml: Likewise.
9318 * features/arc/core-v2.xml: Likewise.
9319 * features/arc/aux-arcompact.c: Generate.
9320 * features/arc/aux-v2.c: Likewise.
9321 * features/arc/core-arcompact.c: Likewise.
9322 * features/arc/core-v2.c: Likewise.
9323 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9324
9325 2020-03-16 Tom Tromey <tromey@adacore.com>
9326
9327 PR gdb/25663:
9328 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9329 putting value into bcache.
9330
9331 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9332
9333 PR gdb/21500
9334 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9335 to...
9336 (amd64_windows_init_abi_common): ... this. Don't set size of
9337 long type.
9338 (amd64_windows_init_abi): New function.
9339 (amd64_cygwin_init_abi): New function.
9340 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9341 the Cygwin OS ABI.
9342 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9343 comment.
9344
9345 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9346
9347 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9348 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9349 (pe_import_directory_entry): New struct type.
9350 (is_linked_with_cygwin_dll): New function.
9351 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9352 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9353 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9354
9355 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9358 i386_cygwin_core_osabi_sniffer.
9359
9360 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9361
9362 * i386-cygwin-tdep.c: Rename to...
9363 * i386-windows-tdep.c: ... this.
9364 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9365 i386-windows-tdep.c.
9366 * configure.tgt: Likewise.
9367
9368 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9369
9370 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9371 * osabi.c (gdb_osabi_names): Add "Windows".
9372 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9373 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9374 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9375 i386_cygwin_osabi_sniffer.
9376 (_initialize_i386_cygwin_tdep): Register OS ABI
9377 GDB_OSABI_WINDOWS for i386.
9378 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9379 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9380 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9381 for x86-64.
9382 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9383 when the target matches '*-*-mingw*'.
9384
9385 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * defs.h (enum gdb_osabi): Move to...
9388 * osabi.h (enum gdb_osabi): ... here.
9389 * gdbarch.sh: Include osabi.h in gdbarch.h.
9390 * gdbarch.h: Re-generate.
9391
9392 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9395 function.
9396 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9397
9398 2020-03-14 Tom Tromey <tom@tromey.com>
9399
9400 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9401 for C++.
9402 (c_type_print_modifier): Likewise. Add "language" parameter.
9403 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9404 (c_type_print_base_1): Update.
9405 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9406 constants.
9407 * type-stack.c (type_stack::insert): Handle tp_atomic and
9408 tp_restrict.
9409 (type_stack::follow_type_instance_flags): Likewise.
9410 (type_stack::follow_types): Likewise. Merge type-following code.
9411 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9412 (space_identifier, cv_with_space_id)
9413 (const_or_volatile_or_space_identifier_noopt)
9414 (const_or_volatile_or_space_identifier): Remove.
9415 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9416 rules.
9417 (ptr_operator, typebase): Update.
9418 (enum token_flag) <FLAG_C>: New constant.
9419 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9420 "_Atomic".
9421 (lex_one_token): Handle FLAG_C.
9422
9423 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9424
9425 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9426 it to the ptrace call.
9427 * m68k-bsd-nat.c (store_registers): Likewise.
9428
9429 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9430
9431 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9432 gdb_byte *.
9433 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9434 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9435 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9436
9437 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9438
9439 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9440 nbsd_nat_target instead of inf_ptrace_target.
9441 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9442 nbsd_nat_target.
9443
9444 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9445
9446 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9447 register_t.
9448
9449 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9450
9451 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9452 it to the ptrace call.
9453 * alpha-bsd-nat.c (store_registers): Likewise.
9454
9455 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9456
9457 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9458 includes.
9459 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9460 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9461 fill_fpregset): Likewise.
9462
9463 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9464
9465 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9466 nbsd_nat_target instead of inf_ptrace_target.
9467 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9468 nbsd_nat_target.
9469
9470 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9471
9472 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9473 register_t.
9474
9475 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9476
9477 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9478 it to the ptrace call.
9479 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9480 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9481 * arm-nbsd-nat.c (store_register): Likewise.
9482 * arm-nbsd-nat.c (store_regs): Likewise.
9483 * arm-nbsd-nat.c (store_fp_register): Likewise.
9484 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9485
9486 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9487
9488 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9489 nbsd_nat_target instead of inf_ptrace_target.
9490 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9491 nbsd_nat_target.
9492
9493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9494
9495 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9496 it to the ptrace call.
9497 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9498
9499 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9500
9501 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9502 it to the ptrace call.
9503 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9504
9505 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9506
9507 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9508 gdb_byte *.
9509 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9510
9511 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9512
9513 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9514 instead of inf_ptrace_target.
9515 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9516 nbsd_nat_target.
9517
9518 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9519
9520 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9521 register_t.
9522
9523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9524
9525 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9526 register_t.
9527
9528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9529
9530 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9531 register_t.
9532
9533 2020-03-13 Tom Tromey <tom@tromey.com>
9534
9535 * value.h (val_print): Don't declare.
9536 * valprint.h (val_print_array_elements)
9537 (val_print_scalar_formatted, generic_val_print): Don't declare.
9538 * valprint.c (generic_val_print_array): Take a struct value.
9539 (generic_val_print_ptr, generic_val_print_memberptr)
9540 (generic_val_print_bool, generic_val_print_int)
9541 (generic_val_print_char, generic_val_print_complex)
9542 (generic_val_print): Remove.
9543 (generic_value_print): Update.
9544 (do_val_print): Remove unused parameters. Don't call
9545 la_val_print.
9546 (val_print): Remove.
9547 (common_val_print): Update. Don't call value_check_printable.
9548 (val_print_scalar_formatted, val_print_array_elements): Remove.
9549 * rust-lang.c (rust_val_print): Remove.
9550 (rust_language_defn): Update.
9551 * p-valprint.c (pascal_val_print): Remove.
9552 (pascal_value_print_inner): Update.
9553 (pascal_object_print_val_fields, pascal_object_print_val):
9554 Remove.
9555 (pascal_object_print_static_field): Update.
9556 * p-lang.h (pascal_val_print): Don't declare.
9557 * p-lang.c (pascal_language_defn): Update.
9558 * opencl-lang.c (opencl_language_defn): Update.
9559 * objc-lang.c (objc_language_defn): Update.
9560 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9561 * m2-lang.h (m2_val_print): Don't declare.
9562 * m2-lang.c (m2_language_defn): Update.
9563 * language.h (struct language_defn) <la_val_print>: Remove.
9564 * language.c (unk_lang_value_print_inner): Rename. Change
9565 argument types.
9566 (unknown_language_defn, auto_language_defn): Update.
9567 * go-valprint.c (go_val_print): Remove.
9568 * go-lang.h (go_val_print): Don't declare.
9569 * go-lang.c (go_language_defn): Update.
9570 * f-valprint.c (f_val_print): Remove.
9571 * f-lang.h (f_value_print): Don't declare.
9572 * f-lang.c (f_language_defn): Update.
9573 * d-valprint.c (d_val_print): Remove.
9574 * d-lang.h (d_value_print): Don't declare.
9575 * d-lang.c (d_language_defn): Update.
9576 * cp-valprint.c (cp_print_value_fields)
9577 (cp_print_value_fields_rtti, cp_print_value): Remove.
9578 (cp_print_static_field): Update.
9579 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9580 (c_val_print_struct, c_val_print_union, c_val_print_int)
9581 (c_val_print_memberptr, c_val_print): Remove.
9582 * c-lang.h (c_val_print_array, cp_print_value_fields)
9583 (cp_print_value_fields_rtti): Don't declare.
9584 * c-lang.c (c_language_defn, cplus_language_defn)
9585 (asm_language_defn, minimal_language_defn): Update.
9586 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9587 (ada_val_print_enum): Take a struct value.
9588 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9589 (ada_val_print): Remove.
9590 (ada_value_print_1): Update.
9591 (printable_val_type): Remove.
9592 * ada-lang.h (ada_val_print): Don't declare.
9593 * ada-lang.c (ada_language_defn): Update.
9594
9595 2020-03-13 Tom Tromey <tom@tromey.com>
9596
9597 * valprint.c (do_val_print): Update.
9598 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9599 a struct value.
9600 (value_to_value_object_no_release): Declare.
9601 * python/py-value.c (value_to_value_object_no_release): New
9602 function.
9603 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9604 struct value.
9605 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9606 function.
9607 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9608 a struct value.
9609 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9610 Declare.
9611 (gdbscm_apply_val_pretty_printer): Take a struct value.
9612 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9613 value.
9614 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9615 value.
9616 * extension-priv.h (struct extension_language_ops)
9617 <apply_val_pretty_printer>: Take a struct value.
9618 * cp-valprint.c (cp_print_value): Create a struct value.
9619 (cp_print_value): Update.
9620
9621 2020-03-13 Tom Tromey <tom@tromey.com>
9622
9623 * ada-valprint.c (print_field_values): Call common_val_print.
9624
9625 2020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * ada-valprint.c (val_print_packed_array_elements): Remove
9628 bitoffset and val parameters. Call common_val_print.
9629 (ada_val_print_string): Remove offset, address, and original_value
9630 parameters.
9631 (ada_val_print_array): Update.
9632 (ada_value_print_array): New function.
9633 (ada_value_print_1): Call it.
9634
9635 2020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * ada-valprint.c (ada_value_print): Use common_val_print.
9638
9639 2020-03-13 Tom Tromey <tom@tromey.com>
9640
9641 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9642
9643 2020-03-13 Tom Tromey <tom@tromey.com>
9644
9645 * ada-valprint.c (ada_value_print_num): New function.
9646 (ada_value_print_1): Use it.
9647
9648 2020-03-13 Tom Tromey <tom@tromey.com>
9649
9650 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9651
9652 2020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * ada-valprint.c (ada_value_print_ptr): New function.
9655 (ada_value_print_1): Use it.
9656
9657 2020-03-13 Tom Tromey <tom@tromey.com>
9658
9659 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9660 call common_val_print.
9661 (ada_val_print_1): Update.
9662 (ada_value_print_1): New function.
9663 (ada_value_print_inner): Rewrite.
9664
9665 2020-03-13 Tom Tromey <tom@tromey.com>
9666
9667 * cp-valprint.c (cp_print_value_fields): Update.
9668 (cp_print_value): New function.
9669
9670 2020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * m2-valprint.c (m2_value_print_inner): Use
9673 cp_print_value_fields.
9674 * cp-valprint.c (cp_print_value_fields): New function.
9675 * c-valprint.c (c_value_print_struct): New function.
9676 (c_value_print_inner): Use c_value_print_struct.
9677 * c-lang.h (cp_print_value_fields): Declare.
9678
9679 2020-03-13 Tom Tromey <tom@tromey.com>
9680
9681 * c-valprint.c (c_value_print_array): New function.
9682 (c_value_print_inner): Use it.
9683
9684 2020-03-13 Tom Tromey <tom@tromey.com>
9685
9686 * c-valprint.c (c_value_print_memberptr): New function.
9687 (c_value_print_inner): Use it.
9688
9689 2020-03-13 Tom Tromey <tom@tromey.com>
9690
9691 * c-valprint.c (c_value_print_int): New function.
9692 (c_value_print_inner): Use it.
9693
9694 2020-03-13 Tom Tromey <tom@tromey.com>
9695
9696 * c-valprint.c (c_value_print_ptr): New function.
9697 (c_value_print_inner): Use it.
9698
9699 2020-03-13 Tom Tromey <tom@tromey.com>
9700
9701 * c-valprint.c (c_value_print_inner): Rewrite.
9702
9703 2020-03-13 Tom Tromey <tom@tromey.com>
9704
9705 * valprint.c (generic_value_print_complex): New function.
9706 (generic_value_print): Use it.
9707
9708 2020-03-13 Tom Tromey <tom@tromey.com>
9709
9710 * valprint.c (generic_val_print_float): Don't call
9711 val_print_scalar_formatted.
9712 (generic_val_print, generic_value_print): Update.
9713
9714 2020-03-13 Tom Tromey <tom@tromey.com>
9715
9716 * valprint.c (generic_value_print_char): New function
9717 (generic_value_print): Use it.
9718
9719 2020-03-13 Tom Tromey <tom@tromey.com>
9720
9721 * valprint.c (generic_value_print_int): New function.
9722 (generic_value_print): Use it.
9723
9724 2020-03-13 Tom Tromey <tom@tromey.com>
9725
9726 * valprint.c (generic_value_print_bool): New function.
9727 (generic_value_print): Use it.
9728
9729 2020-03-13 Tom Tromey <tom@tromey.com>
9730
9731 * valprint.c (generic_val_print_func): Simplify.
9732 (generic_val_print, generic_value_print): Update.
9733
9734 2020-03-13 Tom Tromey <tom@tromey.com>
9735
9736 * valprint.c (generic_val_print_flags): Remove.
9737 (generic_val_print, generic_value_print): Update.
9738 (val_print_type_code_flags): Add original_value parameter.
9739
9740 2020-03-13 Tom Tromey <tom@tromey.com>
9741
9742 * valprint.c (generic_val_print): Update.
9743 (generic_value_print): Update.
9744 * valprint.c (generic_val_print_enum): Don't call
9745 val_print_scalar_formatted.
9746
9747 2020-03-13 Tom Tromey <tom@tromey.com>
9748
9749 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9750 * valprint.c (generic_value_print_ptr): New function.
9751
9752 2020-03-13 Tom Tromey <tom@tromey.com>
9753
9754 * valprint.c (generic_value_print): Rewrite.
9755
9756 2020-03-13 Tom Tromey <tom@tromey.com>
9757
9758 * p-valprint.c (pascal_object_print_value_fields)
9759 (pascal_object_print_value): New functions.
9760
9761 2020-03-13 Tom Tromey <tom@tromey.com>
9762
9763 * p-valprint.c (pascal_value_print_inner): Rewrite.
9764
9765 2020-03-13 Tom Tromey <tom@tromey.com>
9766
9767 * f-valprint.c (f_value_print_innner): Rewrite.
9768
9769 2020-03-13 Tom Tromey <tom@tromey.com>
9770
9771 * m2-valprint.c (m2_print_unbounded_array): New overload.
9772 (m2_print_unbounded_array): Update.
9773 (m2_print_array_contents): Take a struct value.
9774 (m2_value_print_inner): Rewrite.
9775
9776 2020-03-13 Tom Tromey <tom@tromey.com>
9777
9778 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9779 (d_value_print_inner): New function.
9780 * d-lang.h (d_value_print_inner): Declare.
9781 * d-lang.c (d_language_defn): Use d_value_print_inner.
9782
9783 2020-03-13 Tom Tromey <tom@tromey.com>
9784
9785 * go-valprint.c (go_value_print_inner): New function.
9786 * go-lang.h (go_value_print_inner): Declare.
9787 * go-lang.c (go_language_defn): Use go_value_print_inner.
9788
9789 2020-03-13 Tom Tromey <tom@tromey.com>
9790
9791 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9792 API.
9793 (rust_val_print): Rewrite.
9794 (rust_value_print_inner): New function, from rust_val_print.
9795 (rust_language_defn): Use rust_value_print_inner.
9796
9797 2020-03-13 Tom Tromey <tom@tromey.com>
9798
9799 * ada-valprint.c (ada_value_print_inner): New function.
9800 * ada-lang.h (ada_value_print_inner): Declare.
9801 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9802
9803 2020-03-13 Tom Tromey <tom@tromey.com>
9804
9805 * f-valprint.c (f_value_print_innner): New function.
9806 * f-lang.h (f_value_print_innner): Declare.
9807 * f-lang.c (f_language_defn): Use f_value_print_innner.
9808
9809 2020-03-13 Tom Tromey <tom@tromey.com>
9810
9811 * p-valprint.c (pascal_value_print_inner): New function.
9812 * p-lang.h (pascal_value_print_inner): Declare.
9813 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9814
9815 2020-03-13 Tom Tromey <tom@tromey.com>
9816
9817 * m2-valprint.c (m2_value_print_inner): New function.
9818 * m2-lang.h (m2_value_print_inner): Declare.
9819 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9820
9821 2020-03-13 Tom Tromey <tom@tromey.com>
9822
9823 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9824 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9825 * c-valprint.c (c_value_print_inner): New function.
9826 * c-lang.h (c_value_print_inner): Declare.
9827 * c-lang.c (c_language_defn, cplus_language_defn)
9828 (asm_language_defn, minimal_language_defn): Use
9829 c_value_print_inner.
9830
9831 2020-03-13 Tom Tromey <tom@tromey.com>
9832
9833 * p-valprint.c (pascal_object_print_value_fields): Now static.
9834 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9835
9836 2020-03-13 Tom Tromey <tom@tromey.com>
9837
9838 * c-valprint.c (c_val_print_array): Simplify.
9839
9840 2020-03-13 Tom Tromey <tom@tromey.com>
9841
9842 * valprint.c (value_print_array_elements): New function.
9843 * valprint.h (value_print_array_elements): Declare.
9844
9845 2020-03-13 Tom Tromey <tom@tromey.com>
9846
9847 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9848 * mips-tdep.c (mips_print_register): Use
9849 value_print_scalar_formatted.
9850
9851 2020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * valprint.h (value_print_scalar_formatted): Declare.
9854 * valprint.c (value_print_scalar_formatted): New function.
9855
9856 2020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * valprint.h (generic_value_print): Declare.
9859 * valprint.c (generic_value_print): New function.
9860
9861 2020-03-13 Tom Tromey <tom@tromey.com>
9862
9863 * valprint.c (do_val_print): Call la_value_print_inner, if
9864 available.
9865 * rust-lang.c (rust_language_defn): Update.
9866 * p-lang.c (pascal_language_defn): Update.
9867 * opencl-lang.c (opencl_language_defn): Update.
9868 * objc-lang.c (objc_language_defn): Update.
9869 * m2-lang.c (m2_language_defn): Update.
9870 * language.h (struct language_defn) <la_value_print_inner>: New
9871 member.
9872 * language.c (unknown_language_defn, auto_language_defn): Update.
9873 * go-lang.c (go_language_defn): Update.
9874 * f-lang.c (f_language_defn): Update.
9875 * d-lang.c (d_language_defn): Update.
9876 * c-lang.c (c_language_defn, cplus_language_defn)
9877 (asm_language_defn, minimal_language_defn): Update.
9878 * ada-lang.c (ada_language_defn): Update.
9879
9880 2020-03-13 Tom Tromey <tom@tromey.com>
9881
9882 * c-valprint.c (c_value_print): Use common_val_print.
9883
9884 2020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9887
9888 2020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * f-valprint.c (f77_print_array_1, f_val_print): Use
9891 common_val_print.
9892
9893 2020-03-13 Tom Tromey <tom@tromey.com>
9894
9895 * riscv-tdep.c (riscv_print_one_register_info): Use
9896 common_val_print.
9897
9898 2020-03-13 Tom Tromey <tom@tromey.com>
9899
9900 * mi/mi-main.c (output_register): Use common_val_print.
9901
9902 2020-03-13 Tom Tromey <tom@tromey.com>
9903
9904 * infcmd.c (default_print_one_register_info): Use
9905 common_val_print.
9906
9907 2020-03-13 Tom Tromey <tom@tromey.com>
9908
9909 * valprint.h (common_val_print_checked): Declare.
9910 * valprint.c (common_val_print_checked): New function.
9911 * stack.c (print_frame_arg): Use common_val_print_checked.
9912
9913 2020-03-13 Tom Tromey <tom@tromey.com>
9914
9915 * valprint.c (do_val_print): New function, from val_print.
9916 (val_print): Use do_val_print.
9917 (common_val_print): Use do_val_print.
9918
9919 2020-03-13 Tom Tromey <tom@tromey.com>
9920
9921 * valprint.c (value_print): Use scoped_value_mark.
9922
9923 2020-03-13 Tom de Vries <tdevries@suse.de>
9924
9925 PR symtab/25646
9926 * psymtab.c (partial_symtab::partial_symtab): Don't set
9927 globals_offset and statics_offset. Push element onto
9928 current_global_psymbols and current_static_psymbols stacks.
9929 (concat): New function.
9930 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9931 element from current_global_psymbols and current_static_psymbols
9932 stacks. Concat popped elements to global_psymbols and
9933 static_symbols.
9934 (add_psymbol_to_list): Use current_global_psymbols and
9935 current_static_psymbols stacks.
9936 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9937 current_static_psymbols fields.
9938
9939 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9940
9941 * corelow.c (sniff_core_bfd): Remove.
9942 (class core_target) <m_core_vec>: Remove.
9943 (core_target::core_target): Update.
9944 (core_file_fns): Remove.
9945 (deprecated_add_core_fns): Remove.
9946 (default_core_sniffer): Remove.
9947 (sniff_core_bfd): Remove.
9948 (default_check_format): Remove.
9949 (gdb_check_format): Remove.
9950 (core_target_open): Update.
9951 (core_target::get_core_register_section): Update.
9952 (get_core_registers_cb): Update.
9953 (core_target::fetch_registers): Update.
9954 * gdbcore.h (struct core_fns): Remove.
9955 (deprecated_add_core_fns): Remove.
9956 (default_core_sniffer): Remove.
9957 (default_check_format): Remove.
9958
9959 2020-03-12 Tom Tromey <tom@tromey.com>
9960
9961 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9962 CORE_ADDR.
9963 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9964
9965 2020-03-12 Tom Tromey <tom@tromey.com>
9966
9967 * remote.c (remote_target::download_tracepoint)
9968 (remote_target::enable_tracepoint)
9969 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9970 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9971 sprintf_vma.
9972
9973 2020-03-12 Tom Tromey <tom@tromey.com>
9974
9975 * symfile-mem.c: Update CORE_ADDR size assert.
9976
9977 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * selftest.m4: Move to gdbsupport/.
9980 * acinclude.m4: Update path to selftest.m4.
9981
9982 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9985 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9986 gdbarch-selfselftests.c and selftest-arch.c.
9987 (SUBDIR_UNITTESTS_OBS): Rename to...
9988 (SELFTESTS_OBS): ... this.
9989 (COMMON_SFILES): Remove disasm-selftests.c and
9990 gdbarch-selftests.c.
9991 * configure.ac: Don't add selftest-arch.{c,o} to
9992 CONFIG_{SRCS,OBS}.
9993 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9994 preprocessor conditions.
9995
9996 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * configure.ac: Don't source bfd/development.sh.
9999 * selftest.m4: Modify comment.
10000 * configure: Re-generate.
10001
10002 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10005 not "true" or "false".
10006 * configure: Re-generate.
10007
10008 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10009
10010 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10011 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10012 renamed to arm_nbsd_supply_gregset.
10013 (fetch_register): Update to call arm_nbsd_supply_gregset.
10014 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10015 (arm_netbsd_nat_target::fetch_registers): Update.
10016 (fetch_elfcore_registers): Removed.
10017 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10018 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10019 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10020 not require NetBSD system headers.
10021 (arm_nbsd_regset): New struct.
10022 (arm_nbsd_iterate_over_regset_sections): New function.
10023 (arm_netbsd_init_abi_common): Updated to call
10024 set_gdbarch_iterate_over_regset_sections.
10025 * arm-nbsd-tdep.h: New file.
10026
10027 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10028
10029 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10030 recursion.
10031
10032 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10033
10034 * configure: Re-generate.
10035
10036 2020-03-11 Tom Tromey <tromey@adacore.com>
10037
10038 * ada-typeprint.c (print_choices): Fix comment.
10039
10040 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10043 previous item in the list, when the list has no items.
10044
10045 2020-03-11 Tom de Vries <tdevries@suse.de>
10046
10047 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10048 PROP_LOCLIST handling code.
10049
10050 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10051
10052 * buildsym-legacy.c (record_line): Pass extra parameter to
10053 record_line.
10054 * buildsym.c (buildsym_compunit::record_line): Take an extra
10055 parameter, reduce duplication in the line table, and record the
10056 is_stmt flag in the line table.
10057 * buildsym.h (buildsym_compunit::record_line): Add extra
10058 parameter.
10059 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10060 non-statement lines.
10061 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10062 this to the symtab builder.
10063 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10064 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10065 through to dwarf_record_line_1.
10066 * infrun.c (process_event_stop_test): When stepping, don't stop at
10067 a non-statement instruction, and only refresh the step info when
10068 we land in the middle of a line's range. Also add an extra
10069 comment.
10070 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10071 field.
10072 * record-btrace.c (btrace_find_line_range): Only record lines
10073 marked as is-statement.
10074 * stack.c (frame_show_address): Show the frame address if we are
10075 in a non-statement sal.
10076 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10077 (maintenance_print_one_line_table): Print a header for the is_stmt
10078 column, and include is_stmt information in the output.
10079 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10080 preference to non-statements.
10081 (find_pcs_for_symtab_line): Prefer is-statement entries.
10082 (find_line_common): Likewise.
10083 * symtab.h (struct linetable_entry): Add is_stmt field.
10084 (struct symtab_and_line): Likewise.
10085 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10086 arranging the line table.
10087
10088 2020-03-07 Tom de Vries <tdevries@suse.de>
10089
10090 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10091 DIE.
10092
10093 2020-03-07 Tom Tromey <tom@tromey.com>
10094
10095 * valops.c (value_literal_complex): Remove obsolete comment.
10096 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10097 comment.
10098
10099 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10100
10101 * infrun.h: Forward-declare thread_info.
10102 (set_step_info): Add thread_info parameter, add doc.
10103 * infrun.c (set_step_info): Add thread_info parameter, move doc
10104 to header.
10105 * infrun.c (process_event_stop_test): Pass thread to
10106 set_step_info call.
10107 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10108 set_step_info.
10109 (prepare_one_step): Add thread_info parameter, pass it to
10110 set_step_frame and prepare_one_step (recursive) call.
10111 (step_1): Pass thread to prepare_one_step call.
10112 (step_command_fsm::should_stop): Pass thread to
10113 prepare_one_step.
10114 (until_next_fsm): Pass thread to set_step_frame call.
10115 (finish_command): Pass thread to set_step_info call.
10116
10117 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10118
10119 * windows-tdep.c (windows_solib_create_inferior_hook):
10120 Check if inferior is running.
10121
10122 2020-03-06 Tom de Vries <tdevries@suse.de>
10123
10124 * NEWS: Fix "the the".
10125 * ctfread.c: Same.
10126
10127 2020-03-06 Tom de Vries <tdevries@suse.de>
10128
10129 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10130
10131 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * .dir-locals.el: Add a comment referencing the other copies of
10134 this file.
10135
10136 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10137
10138 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10139 psargs.
10140
10141 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10142
10143 * .gitattributes: New file.
10144
10145 2020-03-04 Tom Tromey <tom@tromey.com>
10146
10147 * symmisc.c (print_symbol_bcache_statistics)
10148 (print_objfile_statistics): Update.
10149 * symfile.c (allocate_symtab): Use intern.
10150 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10151 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10152 macro_cache>: Remove.
10153 <string_cache>: New member.
10154 (struct objfile) <intern>: New methods.
10155 * elfread.c (elf_symtab_read): Use intern.
10156 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10157 (dwarf2_compute_name, dwarf2_physname)
10158 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10159 names.
10160 (guess_partial_die_structure_name): Update.
10161 (partial_die_info::fixup): Intern name.
10162 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10163 name.
10164 (dwarf2_name): Intern name. Update.
10165 * buildsym.c (buildsym_compunit::get_macro_table): Use
10166 string_cache.
10167
10168 2020-03-04 Tom Tromey <tom@tromey.com>
10169
10170 * jit.c (bfd_open_from_target_memory): Make "target" const.
10171 * corefile.c (gnutarget): Now const.
10172 * gdbcore.h (gnutarget): Now const.
10173
10174 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10175
10176 * NEWS: Mention support for WOW64 processes.
10177 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10178 (amd64_windows_segment_register_p): Remove static.
10179 (_initialize_amd64_windows_nat): Update.
10180 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10181 * i386-windows-nat.c (context_offset): Update.
10182 (i386_mappings): Rename and remove static.
10183 (i386_windows_segment_register_p): Remove static.
10184 (_initialize_i386_windows_nat): Update.
10185 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10186 (STATUS_WX86_SINGLE_STEP): New macro.
10187 (EnumProcessModulesEx): New macro.
10188 (Wow64SuspendThread): New macro.
10189 (Wow64GetThreadContext): New macro.
10190 (Wow64SetThreadContext): New macro.
10191 (Wow64GetThreadSelectorEntry): New macro.
10192 (windows_set_context_register_offsets): Add static.
10193 (windows_set_segment_register_p): Likewise.
10194 (windows_add_thread): Adapt for WOW64 processes.
10195 (windows_fetch_one_register): Likewise.
10196 (windows_nat_target::fetch_registers): Likewise.
10197 (windows_store_one_register): Likewise.
10198 (display_selector): Likewise.
10199 (display_selectors): Likewise.
10200 (handle_exception): Likewise.
10201 (windows_continue): Likewise.
10202 (windows_nat_target::resume): Likewise.
10203 (windows_add_all_dlls): Likewise.
10204 (do_initial_windows_stuff): Likewise.
10205 (windows_nat_target::attach): Likewise.
10206 (windows_get_exec_module_filename): Likewise.
10207 (windows_nat_target::create_inferior): Likewise.
10208 (windows_xfer_siginfo): Likewise.
10209 (_initialize_loadable): Initialize Wow64SuspendThread,
10210 Wow64GetThreadContext, Wow64SetThreadContext,
10211 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10212 * windows-nat.h (windows_set_context_register_offsets):
10213 Remove declaration.
10214 (windows_set_segment_register_p): Likewise.
10215 (i386_windows_segment_register_p): Add declaration.
10216 (amd64_windows_segment_register_p): Likewise.
10217
10218 2020-03-04 Luis Machado <luis.machado@linaro.org>
10219
10220 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10221 in "info registers" for AArch64/ARM.
10222
10223 The change caused "info registers" to not print GPR's.
10224
10225 gdb/ChangeLog:
10226
10227 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10228
10229 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10230 when reg->group is empty and reggroup is not.
10231
10232 2020-03-03 Tom Tromey <tromey@adacore.com>
10233
10234 * dwarf2/frame.c (struct dwarf2_frame_cache)
10235 <checked_tailcall_bottom, entry_cfa_sp_offset,
10236 entry_cfa_sp_offset_p>: Remove members.
10237 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10238 (dwarf2_frame_prev_register): Don't call
10239 dwarf2_tailcall_sniffer_first.
10240 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10241 * frame-unwind.c (add_unwinder): New fuction.
10242 (frame_unwind_init): Use it. Add tailcall unwinder.
10243
10244 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10245 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10246
10247 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10248 value should be printed as true.
10249
10250 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10251
10252 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10253 (windows_init_abi): Set and use windows_so_ops.
10254
10255 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10256
10257 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10258 when verifying if dealing with a convenience variable.
10259
10260 2020-03-03 Luis Machado <luis.machado@linaro.org>
10261
10262 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10263
10264 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10265
10266 * infrun.c (gdbarch_supports_displaced_stepping): New.
10267 (use_displaced_stepping): Break up conditions in smaller pieces.
10268 Use gdbarch_supports_displaced_stepping.
10269 (displaced_step_prepare_throw): Use
10270 gdbarch_supports_displaced_stepping.
10271
10272 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * NEWS: Mention new behaviour of the history filename.
10275 * top.c (write_history_p): Add comment.
10276 (show_write_history_p): Add header comment, give a different
10277 message when history writing is on, but the history filename is
10278 empty.
10279 (history_filename): Add comment.
10280 (history_filename_empty): New function.
10281 (show_history_filename): Add header comment, give a different
10282 message when the filename is empty.
10283 (init_history): Compare history_filename against nullptr, and only
10284 read history if the filename is not empty.
10285 (set_history_filename): Add header comment, and only make
10286 non-empty filenames absolute.
10287 (init_main): Make the filename argument to 'set history filename'
10288 optional.
10289
10290 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10291
10292 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10293 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10294 (fetch_fp_register): Update.
10295 (fetch_fp_regs): Update.
10296 (store_fp_register): Update.
10297 (store_fp_regs): Update.
10298 (arm_netbsd_nat_target::read_description): New function.
10299 (fetch_elfcore_registers): Update.
10300
10301 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10302
10303 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10304 general_thread if the stop reply is missing a thread-id.
10305 (remote_target::process_stop_reply): Use the first non-exited
10306 thread if the target didn't pass a thread-id.
10307 * infrun.c (do_target_wait): Move call to
10308 switch_to_inferior_no_thread to ....
10309 (do_target_wait_1): ... here.
10310
10311 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10312
10313 * debuginfod-support.c: Include defs.h first.
10314
10315 2020-02-28 Tom de Vries <tdevries@suse.de>
10316
10317 * symfile.c (set_initial_language): Use default language for lookup.
10318
10319 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10322 reader variable, pass `this` to read_cutu_die_from_dwo.
10323
10324 2020-02-27 Aaron Merey <amerey@redhat.com>
10325
10326 * source.c (open_source_file): Check for nullptr when computing
10327 srcpath.
10328
10329 2020-02-27 Tom Tromey <tromey@adacore.com>
10330
10331 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10332 member.
10333 (dwarf2_add_field): Don't update nfields.
10334 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10335
10336 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10337
10338 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10339 abs.
10340
10341 2020-02-26 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10344 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10345 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10346 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10347 per_cu_data.
10348
10349 2020-02-26 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/index-write.c (psym_index_map): Change type.
10352 (add_address_entry_worker, write_one_signatured_type)
10353 (recursively_count_psymbols, recursively_write_psymbols)
10354 (class debug_names, psyms_seen_size, write_gdbindex)
10355 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10356
10357 2020-02-26 Aaron Merey <amerey@redhat.com>
10358
10359 * Makefile.in: Handle optional debuginfod support.
10360 * NEWS: Update.
10361 * README: Add --with-debuginfod summary.
10362 * config.in: Regenerate.
10363 * configure: Regenerate.
10364 * configure.ac: Handle optional debuginfod support.
10365 * debuginfod-support.c: debuginfod helper functions.
10366 * debuginfod-support.h: Ditto.
10367 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10368 summary.
10369 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10370 when a dwz file cannot be found.
10371 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10372 debuginfo file cannot be found.
10373 * source.c (open_source_file): Query debuginfod servers when a
10374 source file cannot be found.
10375 * top.c (print_gdb_configuration): Include
10376 --{with,without}-debuginfod in the output.
10377
10378 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10379
10380 * thread.c (thr_try_catch_cmd): Print thread name.
10381
10382 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10383
10384 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10386 dwarf2_fetch_die_type_sect_off): Move to...
10387 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10388 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10389 dwarf2_fetch_die_type_sect_off): ... here.
10390 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10391 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10392 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10393
10394 2020-02-26 Tom de Vries <tdevries@suse.de>
10395
10396 PR gdb/25603
10397 * symfile.c (set_initial_language): Exit-early if
10398 language_mode == language_mode_manual.
10399
10400 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10401
10402 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10403 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10404 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10405
10406 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * gdbtypes.c (create_array_type_with_stride): Handle negative
10409 array strides.
10410 * valarith.c (value_subscripted_rvalue): Likewise.
10411
10412 2020-02-25 Luis Machado <luis.machado@linaro.org>
10413
10414 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10415
10416 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10417
10418 * loc.h (dwarf2_get_die_type): Move to...
10419 * read.h (dwarf2_get_die_type): ... here.
10420 * read.c (dwarf2_get_die_type): Move doc to header.
10421
10422 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10423
10424 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10425 'gnulib/Makefile.in' to the list.
10426
10427 2020-02-24 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10430 Remove.
10431 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10432 XOBNEWVEC.
10433
10434 2020-02-24 Tom Tromey <tom@tromey.com>
10435
10436 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10437 New method.
10438 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10439 (dw2_do_instantiate_symtab, dw2_get_file_names)
10440 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10441
10442 2020-02-24 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10445 make_scoped_restore.
10446 (dwarf2_psymtab::read_symtab): Don't clear
10447 reading_partial_symbols.
10448
10449 2020-02-24 Tom de Vries <tdevries@suse.de>
10450
10451 PR gdb/25592
10452 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10453
10454 2020-02-24 Tom de Vries <tdevries@suse.de>
10455
10456 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10457 commands layout next/prev/regs.
10458
10459 2020-02-22 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10462 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10463
10464 2020-02-22 Tom Tromey <tom@tromey.com>
10465
10466 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10467
10468 2020-02-22 Tom Tromey <tom@tromey.com>
10469
10470 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10471 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10472 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10473 * tui/tui.c (_initialize_tui): Add usage text.
10474
10475 2020-02-22 Tom Tromey <tom@tromey.com>
10476
10477 * tui/tui-win.c (tui_set_focus_command)
10478 (tui_set_win_height_command): Use error_no_arg.
10479 (_initialize_tui_win): Update help text.
10480 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10481
10482 2020-02-22 Tom Tromey <tom@tromey.com>
10483
10484 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10485 * tui/tui-disasm.h (struct tui_disasm_window)
10486 <display_start_addr>: Declare.
10487 * tui/tui-source.h (struct tui_source_window)
10488 <display_start_addr>: Declare.
10489 * tui/tui-winsource.h (struct tui_source_window_base)
10490 <show_source_line, display_start_addr>: New methods.
10491 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10492 Rename and move to protected section.
10493 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10494 (tui_source_window_base::do_erase_source_content): Update.
10495 (tui_source_window_base::show_source_line): Now a method.
10496 (tui_source_window_base::show_source_content)
10497 (tui_source_window_base::tui_source_window_base)
10498 (tui_source_window_base::rerender)
10499 (tui_source_window_base::refill)
10500 (tui_source_window_base::do_scroll_horizontal)
10501 (tui_source_window_base::set_is_exec_point_at)
10502 (tui_source_window_base::update_breakpoint_info)
10503 (tui_source_window_base::update_exec_info): Update.
10504 * tui/tui-source.c (tui_source_window::set_contents)
10505 (tui_source_window::showing_source_p)
10506 (tui_source_window::do_scroll_vertical)
10507 (tui_source_window::location_matches_p)
10508 (tui_source_window::line_is_displayed): Update.
10509 (tui_source_window::display_start_addr): New method.
10510 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10511 (tui_disasm_window::do_scroll_vertical)
10512 (tui_disasm_window::location_matches_p): Update.
10513 (tui_disasm_window::display_start_addr): New method.
10514
10515 2020-02-22 Tom Tromey <tom@tromey.com>
10516
10517 * NEWS: Add entry for gdb.register_window_type.
10518 * tui/tui-layout.h (window_factory): New typedef.
10519 (tui_register_window): Declare.
10520 * tui/tui-layout.c (saved_tui_windows): New global.
10521 (tui_apply_current_layout): Use it.
10522 (tui_register_window): New function.
10523 * python/python.c (do_start_initialization): Call
10524 gdbpy_initialize_tui.
10525 (python_GdbMethods): Add "register_window_type" function.
10526 * python/python-internal.h (gdbpy_register_tui_window)
10527 (gdbpy_initialize_tui): Declare.
10528 * python/py-tui.c: New file.
10529 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10530
10531 2020-02-22 Tom Tromey <tom@tromey.com>
10532
10533 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10534
10535 2020-02-22 Tom Tromey <tom@tromey.com>
10536
10537 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10538 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10539 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10540 (tui_set_win_focus_to): Move from tui-win.c.
10541
10542 2020-02-22 Tom Tromey <tom@tromey.com>
10543
10544 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10545 functions.
10546 (known_window_types): New global.
10547 (tui_get_window_by_name): Reimplement.
10548 (initialize_known_windows): New function.
10549 (validate_window_name): Rewrite.
10550 (_initialize_tui_layout): Call initialize_known_windows.
10551
10552 2020-02-22 Tom Tromey <tom@tromey.com>
10553
10554 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10555 Remove constants.
10556 * tui/tui-winsource.h (struct tui_source_window_base)
10557 <tui_source_window_base>: Remove parameter.
10558 * tui/tui-winsource.c
10559 (tui_source_window_base::tui_source_window_base): Remove
10560 parameter.
10561 (tui_source_window_base::refill): Update.
10562 * tui/tui-stack.h (struct tui_locator_window)
10563 <tui_locator_window>: Update.
10564 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10565 Default the constructor.
10566 * tui/tui-regs.h (struct tui_data_item_window)
10567 <tui_data_item_window>: Default the constructor.
10568 (struct tui_data_window) <tui_data_window>: Likewise.
10569 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10570 Default the constructor.
10571 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10572 Default the constructor.
10573 <type>: Remove.
10574 (struct tui_win_info) <tui_win_info>: Default the constructor.
10575 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10576 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10577 Default the constructor.
10578
10579 2020-02-22 Tom Tromey <tom@tromey.com>
10580
10581 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10582 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10583 * tui/tui-win.c (tui_resize_all): Don't call
10584 tui_delete_invisible_windows.
10585 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10586 done.
10587 (tui_set_layout): Update.
10588 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10589 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10590 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10591
10592 2020-02-22 Tom Tromey <tom@tromey.com>
10593
10594 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10595 correctly.
10596
10597 2020-02-22 Tom Tromey <tom@tromey.com>
10598
10599 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10600
10601 2020-02-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui-winsource.h (struct tui_source_window_iterator)
10604 <inner_iterator>: New etytypedef.
10605 <tui_source_window_iterator>: Take "end" parameter.
10606 <tui_source_window_iterator>: Take iterator.
10607 <operator*, advance>: Update.
10608 <m_iter>: Change type.
10609 <m_end>: New field.
10610 (struct tui_source_windows) <begin, end>: Update.
10611 * tui/tui-layout.c (tui_windows): New global.
10612 (tui_apply_current_layout): Clear tui_windows.
10613 (tui_layout_window::apply): Update tui_windows.
10614 * tui/tui-data.h (tui_windows): Declare.
10615 (all_tui_windows): Now inline function.
10616 (class tui_window_iterator, struct all_tui_windows): Remove.
10617
10618 2020-02-22 Tom Tromey <tom@tromey.com>
10619
10620 PR tui/17850:
10621 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10622 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10623 "height" argument.
10624 (class tui_layout_window) <get_sizes>: Likewise.
10625 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10626 argument.
10627 <get_sizes>: Add "height" argument.
10628 <m_vertical>: New field.
10629 * tui/tui-layout.c (tui_layout_split::clone): Update.
10630 (tui_layout_split::get_sizes): Add "height" argument.
10631 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10632 (tui_new_layout_command): Parse "-horizontal".
10633 (_initialize_tui_layout): Update help string.
10634 (tui_layout_split::specification): Add "-horizontal" when needed.
10635 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10636 argument.
10637 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10638 New methods.
10639
10640 2020-02-22 Tom Tromey <tom@tromey.com>
10641
10642 * tui/tui-layout.h (enum tui_adjust_result): New.
10643 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10644 (class tui_layout_window) <adjust_size>: Return
10645 tui_adjust_result. Rewrite.
10646 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10647 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10648
10649 2020-02-22 Tom Tromey <tom@tromey.com>
10650
10651 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10652 parameter and return types.
10653 (class tui_layout_base) <specification>: Add "depth".
10654 (class tui_layout_window) <specification>: Add "depth".
10655 (class tui_layout_split) <specification>: Add "depth".
10656 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10657 and return types.
10658 (tui_new_layout_command): Parse sub-layouts.
10659 (_initialize_tui_layout): Update help string.
10660 (tui_layout_window::specification): Add "depth".
10661 (add_layout_command): Update.
10662
10663 2020-02-22 Tom Tromey <tom@tromey.com>
10664
10665 * NEWS: Add "tui new-layout" item.
10666 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10667 Add new-layout command to help text.
10668 (validate_window_name): New function.
10669 (tui_new_layout_command): New function.
10670 (_initialize_tui_layout): Register "new-layout".
10671 (tui_layout_window::specification): New method.
10672 (tui_layout_window::specification): New method.
10673 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10674 method.
10675 (class tui_layout_window) <specification>: New method.
10676 (class tui_layout_split) <specification>: New method.
10677
10678 2020-02-22 Tom Tromey <tom@tromey.com>
10679
10680 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10681 * tui/tui-win.c (window_name_completer): Update comment.
10682 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10683 Declare method.
10684 (class tui_layout_window) <replace_window>: Likewise.
10685 (class tui_layout_split) <replace_window>: Likewise.
10686 (tui_set_layout): Don't declare.
10687 (tui_set_initial_layout): Declare function.
10688 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10689 (asm_regs_layout): New globals.
10690 (tui_current_layout, show_layout): Remove.
10691 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10692 (find_layout, tui_apply_layout): New function.
10693 (layout_completer): Remove.
10694 (tui_next_layout): Reimplement.
10695 (tui_next_layout_command): New function.
10696 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10697 (tui_regs_layout): Reimplement.
10698 (tui_regs_layout_command): New function.
10699 (extract_display_start_addr): Rewrite.
10700 (next_layout, prev_layout): Remove.
10701 (tui_layout_window::replace_window): New method.
10702 (tui_layout_split::replace_window): New method.
10703 (destroy_layout): New function.
10704 (layout_list): New global.
10705 (add_layout_command): New function.
10706 (initialize_layouts): Update.
10707 (tui_layout_command): New function.
10708 (_initialize_tui_layout): Install "layout" commands.
10709 * tui/tui-data.h (enum tui_layout_type): Remove.
10710 (tui_current_layout): Don't declare.
10711
10712 2020-02-22 Tom Tromey <tom@tromey.com>
10713
10714 * tui/tui-regs.c (tui_reg_layout): Remove.
10715 (tui_reg_command): Use tui_regs_layout.
10716 * tui/tui-layout.h (tui_reg_command): Declare.
10717 * tui/tui-layout.c (tui_reg_command): New function.
10718
10719 2020-02-22 Tom Tromey <tom@tromey.com>
10720
10721 * tui/tui.c (tui_rl_delete_other_windows): Call
10722 tui_remove_some_windows.
10723 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10724 Declare method.
10725 (class tui_layout_window) <remove_windows>: New method.
10726 (class tui_layout_split) <remove_windows>: Declare.
10727 (tui_remove_some_windows): Declare.
10728 * tui/tui-layout.c (tui_remove_some_windows): New function.
10729 (tui_layout_split::remove_windows): New method.
10730
10731 2020-02-22 Tom Tromey <tom@tromey.com>
10732
10733 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10734 * tui/tui-layout.h (tui_next_layout): Declare.
10735 * tui/tui-layout.c (tui_next_layout): New function.
10736
10737 2020-02-22 Tom Tromey <tom@tromey.com>
10738
10739 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10740 correct coordinates.
10741
10742 2020-02-22 Tom Tromey <tom@tromey.com>
10743
10744 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10745 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10746 DATA_WIN case.
10747
10748 2020-02-22 Tom Tromey <tom@tromey.com>
10749
10750 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10751 TUI_DISASM_WIN, not tui_win_list.
10752
10753 2020-02-22 Tom Tromey <tom@tromey.com>
10754
10755 * valprint.c (generic_val_print_enum_1)
10756 (val_print_type_code_flags): Style member names.
10757 * rust-lang.c (val_print_struct, rust_print_enum)
10758 (rust_print_struct_def, rust_internal_print_type): Style member
10759 names.
10760 * p-valprint.c (pascal_object_print_value_fields): Style member
10761 names. Only call fprintf_symbol_filtered for static members.
10762 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10763 * f-valprint.c (f_val_print): Style member names.
10764 * f-typeprint.c (f_type_print_base): Style member names.
10765 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10766 call fprintf_symbol_filtered for static members.
10767 (cp_print_class_member): Style member names.
10768 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10769 member names.
10770 * ada-valprint.c (ada_print_scalar): Style enum names.
10771 (ada_val_print_enum): Likewise.
10772 * ada-typeprint.c (print_enum_type): Style enum names.
10773
10774 2020-02-21 Tom Tromey <tom@tromey.com>
10775
10776 * psympriv.h (struct partial_symtab): Update comment.
10777
10778 2020-02-21 Tom Tromey <tromey@adacore.com>
10779
10780 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10781 type is CORE_ADDR.
10782
10783 2020-02-21 Tom de Vries <tdevries@suse.de>
10784
10785 PR gdb/25534
10786 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10787 if dependencies[i]->user != NULL.
10788
10789 2020-02-21 Ali Tamur <tamur@google.com>
10790
10791 * dwarf2/read.c (dwarf2_name): Add null check.
10792
10793 2020-02-20 Tom Tromey <tom@tromey.com>
10794
10795 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10796 ">=", in binary search.
10797 (dwarf2_find_containing_comp_unit): New overload.
10798 (run_test): New self-test.
10799 (_initialize_dwarf2_read): Register new test.
10800
10801 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10802
10803 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10804 * riscv-tdep.h: Likewise.
10805 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10806 rv32-only CSR.
10807 * features/riscv/64bit-csr.xml: Regenerated.
10808
10809 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10810 Tom Tromey <tom@tromey.com>
10811
10812 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10813 of 'fputc_unfiltered'.
10814 (putchar_unfiltered): Call 'fputc_unfiltered'.
10815 (fputc_unfiltered): Call 'fputs_unfiltered'.
10816
10817 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * config.in: Regenerate.
10820 * configure: Regenerate.
10821 * configure.ac: Add --with-python-libdir option.
10822 * main.c: Use WITH_PYTHON_LIBDIR.
10823
10824 2020-02-19 Tom Tromey <tom@tromey.com>
10825
10826 * symtab.c (general_symbol_info::compute_and_set_names): Use
10827 obstack_strndup. Simplify call to symbol_set_demangled_name.
10828
10829 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * dwarf2/read.c (allocate_signatured_type_table,
10832 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10833 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10834 Remove objfile parameter, update all callers.
10835
10836 2020-02-19 Doug Evans <dje@google.com>
10837
10838 PR rust/25535
10839 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10840 rust_enum_variant calculation.
10841
10842 2020-02-19 Tom Tromey <tromey@adacore.com>
10843
10844 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10845
10846 2020-02-19 Tom Tromey <tromey@adacore.com>
10847
10848 * ada-lang.c (cache_symbol): Use obstack_strdup.
10849
10850 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * configure: Regenerate.
10853
10854 2020-02-19 Tom Tromey <tromey@adacore.com>
10855
10856 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10857 NULL check.
10858
10859 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10860
10861 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10862
10863 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10866 if GDBSERVER is not defined.
10867 (riscv_tdesc_cache): Likewise, also store const target_desc.
10868 (STATIC_IN_GDB): Define.
10869 (riscv_create_target_description): Update declaration with
10870 STATIC_IN_GDB.
10871 (riscv_lookup_target_description): New function, only define if
10872 GDBSERVER is not defined.
10873 * arch/riscv.h (riscv_create_target_description): Declare only
10874 when GDBSERVER is defined.
10875 (riscv_lookup_target_description): New declaration when GDBSERVER
10876 is not defined.
10877 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10878 (riscv_linux_read_features): ...this, and return
10879 riscv_gdbarch_features instead of target_desc.
10880 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10881 (riscv_linux_read_description): Rename to...
10882 (riscv_linux_read_features): ...this.
10883 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10884 Update to use riscv_gdbarch_features and
10885 riscv_lookup_target_description.
10886 * riscv-tdep.c (riscv_find_default_target_description): Use
10887 riscv_lookup_target_description instead of
10888 riscv_create_target_description.
10889
10890 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * valprint.c (generic_val_print_enum_1): When printing a flag
10893 enum with value 0 and there is no enumerator with value 0, print
10894 just "0" instead of "(unknown: 0x0)".
10895
10896 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10897
10898 * valprint.c (generic_val_print_enum_1): Print unknown part of
10899 flag enum in hex.
10900
10901 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10902
10903 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10904 flag enums to contain duplicate enumerators.
10905 * valprint.c (generic_val_print_enum_1): Update comment.
10906
10907 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10908
10909 * dwarf2/read.c: Include "count-one-bits.h".
10910 (update_enumeration_type_from_children): If an enumerator has
10911 multiple bits set, don't treat the enumeration as a "flag enum".
10912 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10913 of flag enums have 0 or 1 bit set.
10914
10915 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10916
10917 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10918 conversion.
10919 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10920 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10921 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10922 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10923 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10924
10925 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10928
10929 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10930
10931 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10932 displaced_step_closure_up.
10933 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10934 (struct displaced_step_closure_up):
10935 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10936 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10937 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10938 Likewise.
10939 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10940 * gdbarch.c, gdbarch.h: Re-generate.
10941 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10942 displaced_step_closure_up.
10943 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10944 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10945 * infrun.h (displaced_step_closure_up): New type alias.
10946 (struct displaced_step_inferior_state) <step_closure>: Change
10947 type to displaced_step_closure_up.
10948 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10949 displaced_step_closure_up.
10950 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10951
10952 2020-02-14 Tom Tromey <tom@tromey.com>
10953
10954 * minidebug.c (gnu_debug_key): New global.
10955 (find_separate_debug_file_in_section): Use it.
10956
10957 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10958
10959 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10960 std::unique_ptr.
10961 * gdbarch.c: Re-generate.
10962 * gdbarch.h: Re-generate.
10963 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10964 change.
10965 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10966 type to std::unique_ptr.
10967 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10968 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10969 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10970 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10971 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10972 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10973 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10974 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10975 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10976
10977 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10980 std::unique_ptr.
10981 (displaced_step_clear): Rename to...
10982 (displaced_step_reset): ... this. Just call displaced->reset ().
10983 (displaced_step_clear_cleanup): Rename to...
10984 (displaced_step_reset_cleanup): ... this.
10985 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10986 (displaced_step_fixup): Likewise.
10987 (resume_1): Likewise.
10988 (handle_inferior_event): Restore child's memory before calling
10989 displaced_step_fixup on the parent.
10990 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10991 to std::unique_ptr.
10992 <step_closure>: Change type to std::unique_ptr.
10993
10994 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10995
10996 * arm-tdep.c: Include count-one-bits.h.
10997 (cleanup_block_store_pc): Use count_one_bits.
10998 (cleanup_block_load_pc): Use count_one_bits.
10999 (arm_copy_block_xfer): Use count_one_bits.
11000 (thumb2_copy_block_xfer): Use count_one_bits.
11001 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11002 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11003 (thumb_get_next_pcs_raw): Use count_one_bits.
11004 (arm_get_next_pcs_raw): Use count_one_bits_l.
11005 * arch/arm.c (bitcount): Remove.
11006 * arch/arm.h (bitcount): Remove.
11007
11008 2020-02-14 Tom Tromey <tromey@adacore.com>
11009
11010 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11011 Update.
11012 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11013 * dwarf2/loc.c (call_site_find_chain_1): Return
11014 unique_xmalloc_ptr.
11015 (call_site_find_chain): Likewise.
11016
11017 2020-02-14 Richard Biener <rguenther@suse.de>
11018
11019 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11020 on expression with division operators.
11021
11022 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11023
11024 * MAINTAINERS (Write After Approval): Adding myself.
11025
11026 2020-02-12 Tom Tromey <tom@tromey.com>
11027
11028 * event-loop.c (event_data, gdb_event, event_handler_func):
11029 Remove.
11030
11031 2020-02-12 Tom Tromey <tom@tromey.com>
11032
11033 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11034 (dwarf2_frame_objfile_data): Add comment.
11035 (find_comp_unit, set_comp_unit): New functions.
11036 (dwarf2_frame_find_fde): Use find_comp_unit.
11037 (dwarf2_build_frame_info): Use set_comp_unit.
11038
11039 2020-02-12 Tom Tromey <tom@tromey.com>
11040
11041 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11042 (comp_unit): Don't initialize objfile.
11043 (execute_cfa_program): Add text_offset parameter.
11044 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11045 (dwarf2_frame_cache): Update.
11046 (dwarf2_build_frame_info): Don't set "objfile" member.
11047
11048 2020-02-12 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11051 (decode_frame_entry): Likewise.
11052 (dwarf2_build_frame_info): Update.
11053
11054 2020-02-12 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11057 (decode_frame_entry_1): Use the comp_unit obstack.
11058
11059 2020-02-12 Tom Tromey <tom@tromey.com>
11060
11061 * dwarf2/frame.c (struct comp_unit): Add initializers and
11062 constructor.
11063 (dwarf2_frame_objfile_data): Store a comp_unit.
11064 (dwarf2_frame_find_fde): Update.
11065 (dwarf2_build_frame_info): Use "new".
11066
11067 2020-02-12 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11070 (dwarf2_fde_table): Typedef for std::vector.
11071 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11072 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11073 (decode_frame_entry): Update.
11074 (dwarf2_build_frame_info): Use "new".
11075
11076 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11077
11078 * arm-tdep.c (arm_gdbarch_init): Update.
11079 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11080 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11081 have_neon, is_m>: Change to bool.
11082
11083 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11084
11085 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11086
11087 2020-02-12 Tom Tromey <tom@tromey.com>
11088
11089 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11090
11091 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11092
11093 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11094 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11095
11096 2020-02-11 Tom Tromey <tom@tromey.com>
11097
11098 * psymtab.h: Update comment.
11099
11100 2020-02-11 Tom Tromey <tom@tromey.com>
11101
11102 * gdb_obstack.h (struct auto_obstack): Use
11103 DISABLE_COPY_AND_ASSIGN.
11104
11105 2020-02-11 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/frame.h (struct objfile): Don't forward declare.
11108
11109 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11110
11111 * cris-tdep.c (cris_supply_gregset): Change signature to match
11112 what struct regset expects.
11113 (cris_regset): New struct.
11114 (fetch_core_registers): Remove.
11115 (cris_iterate_over_regset_sections): New function.
11116 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11117 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11118
11119 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11120
11121 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11122 registers.
11123
11124 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11125
11126 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11127
11128 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * configure: Re-generate.
11131
11132 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * configure: Re-generate.
11135
11136 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * acinclude: Update warning.m4 path.
11139 * warning.m4: Move to gdbsupport.
11140
11141 2020-02-11 Tom Tromey <tromey@adacore.com>
11142
11143 * remote.c (remote_console_output): Update.
11144 * printcmd.c (printf_command): Update.
11145 * event-loop.c (gdb_wait_for_event): Update.
11146 * linux-nat.c (sigchld_handler): Update.
11147 * remote-sim.c (gdb_os_write_stdout): Update.
11148 (gdb_os_flush_stdout): Update.
11149 (gdb_os_flush_stderr): Update.
11150 (gdb_os_write_stderr): Update.
11151 * exceptions.c (print_exception): Update.
11152 * remote-fileio.c (remote_fileio_func_read): Update.
11153 (remote_fileio_func_write): Update.
11154 * tui/tui.c (tui_enable): Update.
11155 * tui/tui-interp.c (tui_interp::init): Update.
11156 * utils.c (init_page_info): Update.
11157 (putchar_unfiltered, fputc_unfiltered): Update.
11158 (gdb_flush): Update.
11159 (emit_style_escape): Update.
11160 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11161 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11162 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11163 (stderr_file::write): Update.
11164 (stderr_file::puts): Update.
11165 * ui-file.h (ui_file_isatty, ui_file_write)
11166 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11167 (ui_file_puts): Don't declare.
11168
11169 2020-02-10 Tom de Vries <tdevries@suse.de>
11170
11171 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11172 sentinel to char *.
11173
11174 2020-02-09 Tom de Vries <tdevries@suse.de>
11175
11176 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11177 filename if it matches "<artificial>".
11178
11179 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11180
11181 * windows-tdep.c (struct enum_value_name): New struct.
11182 (create_enum): New function.
11183 (windows_get_siginfo_type): Create and use enum types.
11184
11185 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11186
11187 * NEWS: Mention $_siginfo support for Windows.
11188 * windows-nat.c (handle_exception): Set siginfo_er.
11189 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11190 (windows_xfer_siginfo): New function.
11191 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11192 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11193 (init_windows_gdbarch_data): New function.
11194 (get_windows_gdbarch_data): New function.
11195 (windows_get_siginfo_type): New function.
11196 (windows_init_abi): Register windows_get_siginfo_type.
11197 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11198
11199 2020-02-08 Tom Tromey <tom@tromey.com>
11200
11201 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11202 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11203 <keep>: Declare method.
11204 <m_keep>: Remove member.
11205 <~cutu_reader>: Remove.
11206 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11207 (cutu_reader::cutu_reader): Update.
11208 (cutu_reader::keep): Rename from ~cutu_reader.
11209 (process_psymtab_comp_unit, build_type_psymtabs_1)
11210 (process_skeletonless_type_unit, load_partial_comp_unit)
11211 (load_full_comp_unit, dwarf2_read_addr_index)
11212 (read_signatured_type): Update.
11213
11214 2020-02-08 Tom Tromey <tom@tromey.com>
11215
11216 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11217 "want_partial_unit" parameter.
11218 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11219 Inline check for DW_TAG_partial_unit.
11220 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11221
11222 2020-02-08 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11225 read.c.
11226 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11227 read.c.
11228
11229 2020-02-08 Tom Tromey <tom@tromey.com>
11230
11231 * dwarf2/read.c (read_address): Move to comp-unit.c.
11232 (dwarf2_rnglists_process, dwarf2_ranges_process)
11233 (read_attribute_value, dwarf_decode_lines_1)
11234 (var_decode_location, decode_locdesc): Update.
11235 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11236 read.c. Remove "cu" parameter.
11237 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11238 method.
11239
11240 2020-02-08 Tom Tromey <tom@tromey.com>
11241
11242 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11243 (read_indirect_line_string): Update.
11244 * dwarf2/comp-unit.c (read_offset): Remove.
11245 (read_comp_unit_head): Update.
11246 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11247 method.
11248 (read_offset): Don't declare.
11249
11250 2020-02-08 Tom Tromey <tom@tromey.com>
11251
11252 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11253 * dwarf2/read.c (struct comp_unit_head): Move to
11254 dwarf2/comp-unit.h.
11255 (enum class rcuh_kind): Move to comp-unit.h.
11256 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11257 (read_comp_unit_head, error_check_comp_unit_head)
11258 (read_and_check_comp_unit_head): Move to comp-unit.c.
11259 (read_offset, dwarf_unit_type_name): Likewise.
11260 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11261 (cutu_reader::cutu_reader, read_call_site_scope)
11262 (find_partial_die, follow_die_offset): Update.
11263 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11264
11265 2020-02-08 Tom Tromey <tom@tromey.com>
11266
11267 * dwarf2/read.c (read_offset_1): Move to leb.c.
11268 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11269 (dwarf_decode_macro_bytes): Update.
11270 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11271 * dwarf2/leb.h (read_offset): Declare.
11272
11273 2020-02-08 Tom Tromey <tom@tromey.com>
11274
11275 * dwarf2/read.c (dwarf2_section_size): Remove.
11276 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11277 Update.
11278 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11279
11280 2020-02-08 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2/read.c (read_initial_length): Move to leb.c.
11283 * dwarf2/leb.h (read_initial_length): Declare.
11284 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11285 handle_nonstd parameter.
11286 * dwarf2/frame.c (read_initial_length): Remove.
11287 (decode_frame_entry_1): Update.
11288
11289 2020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/loc.c (dwarf2_find_location_expression)
11292 (dwarf_evaluate_loc_desc::get_tls_address)
11293 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11294 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11295 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11296 (dwarf2_compile_property_to_c)
11297 (dwarf2_loc_desc_get_symbol_read_needs)
11298 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11299 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11300 (loclist_describe_location, loclist_tracepoint_var_ref)
11301 (loclist_generate_c_location): Update.
11302 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11303 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11304 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11305 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11306 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11307 (dwarf2_per_cu_data::addr_size)
11308 (dwarf2_per_cu_data::ref_addr_size)
11309 (dwarf2_per_cu_data::text_offset)
11310 (dwarf2_per_cu_data::addr_type): Now methods.
11311 (per_cu_header_read_in): Make per_cu "const".
11312 (dwarf2_version): Remove.
11313 (dwarf2_per_cu_data::int_type): Now a method.
11314 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11315 (set_die_type, read_array_type, read_subrange_index_type)
11316 (read_tag_string_type, read_subrange_type): Update.
11317 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11318 offset_size, ref_addr_size, text_offset, addr_type, version,
11319 objfile, int_type, addr_sized_int_type>: Declare methods.
11320
11321 2020-02-08 Tom Tromey <tom@tromey.com>
11322
11323 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11324 Move earlier.
11325
11326 2020-02-08 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf2/read.h (dwarf_line_debug): Declare.
11329 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11330 * dwarf2/read.c: Move line_header code to new files.
11331 (dwarf_line_debug): No longer static.
11332 * dwarf2/line-header.c: New file.
11333 * dwarf2/line-header.h: New file.
11334
11335 2020-02-08 Tom Tromey <tom@tromey.com>
11336
11337 * dwarf2/read.c (struct line_header) <file_full_name,
11338 file_file_name>: Return unique_xmalloc_ptr.
11339 (line_header::file_file_name): Update.
11340 (line_header::file_full_name): Update.
11341 (dw2_get_file_names_reader): Update.
11342 (macro_start_file): Update.
11343
11344 2020-02-08 Tom Tromey <tom@tromey.com>
11345
11346 * dwarf2/read.c (struct line_header) <file_full_name,
11347 file_file_name>: Declare methods.
11348 (dw2_get_file_names_reader): Update.
11349 (file_file_name): Now a method.
11350 (file_full_name): Likewise.
11351 (macro_start_file): Update.
11352
11353 2020-02-08 Tom Tromey <tom@tromey.com>
11354
11355 * dwarf2/read.c (dwarf_always_disassemble)
11356 (show_dwarf_always_disassemble): Move to loc.c.
11357 (_initialize_dwarf2_read): Move "always-disassemble" registration
11358 to loc.c.
11359 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11360 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11361 static.
11362 (show_dwarf_always_disassemble): Move from read.c.
11363 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11364
11365 2020-02-08 Tom Tromey <tom@tromey.com>
11366
11367 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11368 (create_quick_file_names_table): Return htab_up.
11369 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11370 Update.
11371 * dwarf2/read.h (struct dwarf2_per_objfile)
11372 <quick_file_names_table>: Now htab_up.
11373
11374 2020-02-08 Tom Tromey <tom@tromey.com>
11375
11376 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11377
11378 2020-02-08 Tom Tromey <tom@tromey.com>
11379
11380 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11381 Rewrite.
11382 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11383 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11384 (abbrev_table::abbrev_table): No longer inline.
11385 (ABBREV_HASH_SIZE): Remove.
11386 (abbrev_table::m_abbrevs): Now an htab_up.
11387
11388 2020-02-08 Tom Tromey <tom@tromey.com>
11389
11390 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11391 (cutu_reader): Update.
11392 (build_type_psymtabs_1): Update.
11393 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11394 (abbrev_table::alloc_abbrev): Update.
11395 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11396 (abbrev_table::read): New static method, renamed from
11397 abbrev_table_read_table.
11398 (abbrev_table::alloc_abbrev)
11399 (abbrev_table::add_abbrev): Now private.
11400 (abbrev_table::abbrev_table): Now private.
11401 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11402
11403 2020-02-08 Tom Tromey <tom@tromey.com>
11404
11405 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11406 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11407 htab_up.
11408
11409 2020-02-08 Tom Tromey <tom@tromey.com>
11410
11411 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11412 htab_up.
11413 (lookup_dwo_unit_in_dwp): Update.
11414 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11415 on obstack.
11416
11417 2020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11420 obstack.
11421
11422 2020-02-08 Tom Tromey <tom@tromey.com>
11423
11424 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11425 line_header_hash.
11426 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11427 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11428 Change type to htab_up.
11429
11430 2020-02-08 Tom Tromey <tom@tromey.com>
11431
11432 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11433 htab_up. Don't allocate on obstack.
11434 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11435 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11436 Change type to htab_up.
11437
11438 2020-02-08 Tom Tromey <tom@tromey.com>
11439
11440 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11441 Change type to htab_up.
11442 * dwarf2/read.c (create_signatured_type_table_from_index)
11443 (create_signatured_type_table_from_debug_names)
11444 (create_all_type_units, add_type_unit)
11445 (lookup_dwo_signatured_type, lookup_signatured_type)
11446 (process_skeletonless_type_unit): Update.
11447 (create_debug_type_hash_table, create_debug_types_hash_table):
11448 Change type of types_htab.
11449 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11450 htab_up. Don't allocate on obstack.
11451 (create_cus_hash_table): Change type of cus_htab parameter.
11452 (struct dwo_file) <cus, tus>: Now htab_up.
11453 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11454 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11455 (queue_and_load_all_dwo_tus): Update.
11456 * dwarf2/index-write.c (write_gdbindex): Update.
11457 (write_debug_names): Update.
11458
11459 2020-02-08 Tom Tromey <tom@tromey.com>
11460
11461 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11462 dwarf2/read.c. Remove "next" member. Add constructor ntad
11463 destructor.
11464 (struct dwarf2_per_objfile) <queue>: New member.
11465 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11466 dwarf2/read.h.
11467 (dwarf2_queue, dwarf2_queue_tail): Remove.
11468 (class dwarf2_queue_guard): Add parameter to constructor. Use
11469 DISABLE_COPY_AND_ASSIGN.
11470 <m_per_objfile>: New member.
11471 <~dwarf2_queue_guard>: Rewrite.
11472 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11473 Update.
11474 (~dwarf2_queue_item): New.
11475
11476 2020-02-08 Tom Tromey <tom@tromey.com>
11477
11478 * dwarf2/read.c (struct die_info) <has_children>: New member.
11479 (dw2_get_file_names_reader): Remove has_children.
11480 (dw2_get_file_names): Update.
11481 (read_cutu_die_from_dwo): Remove has_children.
11482 (cutu_reader::init_tu_and_read_dwo_dies)
11483 (cutu_reader::cutu_reader): Update.
11484 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11485 Remove has_children.
11486 (build_type_psymtabs_1, process_skeletonless_type_unit)
11487 (load_partial_comp_unit, load_full_comp_unit): Update.
11488 (create_dwo_cu_reader): Remove has_children.
11489 (create_cus_hash_table, read_die_and_children): Update.
11490 (read_full_die_1,read_full_die): Remove has_children.
11491 (read_signatured_type): Update.
11492 (class cutu_reader) <has_children>: Remove.
11493
11494 2020-02-08 Tom Tromey <tom@tromey.com>
11495
11496 * dwarf2/expr.c: Rename from dwarf2expr.c.
11497 * dwarf2/expr.h: Rename from dwarf2expr.h.
11498 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11499 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11500 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11501 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11502 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11503 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11504 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11505 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11506 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11507 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11508 * dwarf2/loc.c: Rename from dwarf2loc.c.
11509 * dwarf2/loc.h: Rename from dwarf2loc.h.
11510 * dwarf2/read.c: Rename from dwarf2read.c.
11511 * dwarf2/read.h: Rename from dwarf2read.h.
11512 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11513 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11514 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11515 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11516 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11517 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11518 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11519 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11520 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11521 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11522 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11523 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11524 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11525 Update.
11526 * Makefile.in (COMMON_SFILES): Update.
11527 (HFILES_NO_SRCDIR): Update.
11528
11529 2020-02-08 Tom Tromey <tom@tromey.com>
11530
11531 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11532 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11533
11534 2020-02-08 Tom Tromey <tom@tromey.com>
11535
11536 * dwarf2read.h (struct die_info): Don't declare.
11537
11538 2020-02-08 Tom Tromey <tom@tromey.com>
11539
11540 * dwarf2read.h (die_info_ptr): Remove typedef.
11541
11542 2020-02-08 Tom Tromey <tom@tromey.com>
11543
11544 * dwarf2read.c (read_call_site_scope)
11545 (handle_data_member_location, dwarf2_add_member_fn)
11546 (mark_common_block_symbol_computed, read_common_block)
11547 (attr_to_dynamic_prop, partial_die_info::read)
11548 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11549 (dwarf2_symbol_mark_computed, set_die_type): Update.
11550 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11551 method.
11552 (attr_form_is_block): Don't declare.
11553 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11554
11555 2020-02-08 Tom Tromey <tom@tromey.com>
11556
11557 * dwarf2read.c (dwarf2_find_base_address, )
11558 (read_call_site_scope, rust_containing_type)
11559 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11560 (handle_data_member_location, dwarf2_add_member_fn)
11561 (get_alignment, read_structure_type, process_structure_scope)
11562 (mark_common_block_symbol_computed, read_common_block)
11563 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11564 (partial_die_info::read, read_attribute_value, new_symbol)
11565 (lookup_die_type, dwarf2_get_ref_die_offset)
11566 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11567 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11568 (dwarf2_symbol_mark_computed): Update.
11569 * dwarf2/attribute.h (struct attribute) <value_as_address,
11570 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11571 methods.
11572 (value_as_address, attr_form_is_section_offset)
11573 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11574 * dwarf2/attribute.c (attribute::value_as_address)
11575 (attribute::form_is_section_offset, attribute::form_is_constant)
11576 (attribute::form_is_ref): Now methods.
11577
11578 2020-02-08 Tom Tromey <tom@tromey.com>
11579
11580 * dwarf2read.c (struct attribute, DW_STRING)
11581 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11582 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11583 (attr_form_is_block, attr_form_is_section_offset)
11584 (attr_form_is_constant, attr_form_is_ref): Move.
11585 * dwarf2/attribute.h: New file.
11586 * dwarf2/attribute.c: New file, from dwarf2read.c.
11587 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11588
11589 2020-02-08 Tom Tromey <tom@tromey.com>
11590
11591 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11592 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11593 Move.
11594 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11595 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11596 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11597 abbrev.c.
11598 * dwarf2/abbrev.h: New file.
11599 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11600 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11601
11602 2020-02-08 Tom Tromey <tom@tromey.com>
11603
11604 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11605 (dwarf2_section_size, dwarf2_get_section_info)
11606 (create_signatured_type_table_from_debug_names)
11607 (create_addrmap_from_aranges, read_debug_names_from_section)
11608 (get_gdb_index_contents_from_section, read_comp_unit_head)
11609 (error_check_comp_unit_head, read_abbrev_offset)
11610 (create_debug_type_hash_table, init_cu_die_reader)
11611 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11612 (read_comp_units_from_section, create_cus_hash_table)
11613 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11614 (create_dwp_v2_section, dwarf2_rnglists_process)
11615 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11616 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11617 (read_indirect_string_from_dwz, read_addr_index_1)
11618 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11619 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11620 (fill_in_loclist_baton): Update.
11621 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11622 get_containing_section, get_bfd_owner, get_bfd_section,
11623 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11624 (dwarf2_read_section, get_section_name, get_section_file_name)
11625 (get_containing_section, get_section_bfd_owner)
11626 (get_section_bfd_section, get_section_name, get_section_file_name)
11627 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11628 declare.
11629 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11630 (dwarf2_section_info::get_bfd_owner)
11631 (dwarf2_section_info::get_bfd_section)
11632 (dwarf2_section_info::get_name)
11633 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11634 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11635 (dwarf2_section_info::read): Now methods.
11636 * dwarf-index-write.c (class debug_names): Update.
11637
11638 2020-02-08 Tom Tromey <tom@tromey.com>
11639
11640 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11641 Move to dwarf2/section.h.
11642 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11643 (get_section_bfd_section, get_section_name)
11644 (get_section_file_name, get_section_id, get_section_flags)
11645 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11646 dwarf2/section.c.
11647 * dwarf2/section.h: New file.
11648 * dwarf2/section.c: New file, from dwarf2read.c.
11649 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11650
11651 2020-02-08 Tom Tromey <tom@tromey.com>
11652
11653 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11654 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11655 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11656 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11657 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11658 * dwarf2/leb.h: New file, from dwarf2read.c.
11659 * dwarf2/leb.c: New file, from dwarf2read.c.
11660 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11661 Remove.
11662 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11663 (COMMON_SFILES): Add dwarf2/leb.c.
11664
11665 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11666
11667 GDB 9.1 released.
11668
11669 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11670
11671 PR gdb/25190:
11672 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11673 * gdb/remote.c (remote_console_output): Update.
11674 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11675 (ui_file_puts): ...this.
11676 * gdb/ui-file.h (ui_file_puts): Add declaration.
11677 * gdb/utils.c (emit_style_escape): Update.
11678 (flush_wrap_buffer): Update.
11679 (fputs_maybe_filtered): Update.
11680 (fputs_unfiltered): Add function.
11681
11682 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11683
11684 * gdb/event-loop.c (gdb_wait_for_event): Update.
11685 * gdb/printcmd.c (printf_command): Update.
11686 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11687 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11688 (gdb_os_flush_stderr): Update.
11689 * gdb/remote.c (remote_console_output): Update.
11690 * gdb/ui-file.c (gdb_flush): Rename to...
11691 (ui_file_flush): ...this.
11692 (stderr_file::write): Update.
11693 (stderr_file::puts): Update.
11694 * gdb/ui-file.h (gdb_flush): Rename to...
11695 (ui_file_flush): ...this.
11696 * gdb/utils.c (gdb_flush): Add function.
11697 * gdb/utils.h (gdb_flush): Add declaration.
11698
11699 2020-02-07 Tom Tromey <tromey@adacore.com>
11700
11701 PR breakpoints/24915:
11702 * source.c (find_and_open_source): Do not check basenames_may_differ.
11703
11704 2020-02-07 Tom Tromey <tom@tromey.com>
11705
11706 * README: Update gdbserver documentation.
11707 * gdbserver: Move to top level.
11708 * configure.tgt (build_gdbserver): Remove.
11709 * configure.ac: Remove --enable-gdbserver.
11710 * configure: Rebuild.
11711 * Makefile.in (distclean): Don't mention gdbserver.
11712
11713 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11714
11715 * source-cache.c (source_cache::ensure): Surround
11716 get_plain_source_lines with a try/catch.
11717 (source_cache::get_line_charpos): Get rid of try/catch
11718 and only check for the return value of "ensure".
11719 * tui/tui-source.c (tui_source_window::set_contents):
11720 Simplify "nlines" calculation.
11721
11722 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11723
11724 * MAINTAINERS (Write After Approval): Add myself.
11725
11726 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11727
11728 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11729 function call.
11730
11731 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11732
11733 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11734
11735 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11736
11737 * nat/riscv-linux-tdesc.h: New file.
11738 * nat/riscv-linux-tdesc.c: New file, taking code from...
11739 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11740 ... here.
11741 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11742 NATDEPFILES.
11743
11744 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11745
11746 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11747 we don't set the fake simulator ptid to the null_ptid.
11748
11749 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11750
11751 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11752 * gdbthread.h (class thread_info) <resumed>: Likewise.
11753 * infrun.c (resume_1): Likewise.
11754 (proceed): Likewise.
11755 (infrun_thread_stop_requested): Likewise.
11756 (stop_all_threads): Likewise.
11757 (handle_inferior_event): Likewise.
11758 (restart_threads): Likewise.
11759 (finish_step_over): Likewise.
11760 (keep_going_stepped_thread): Likewise.
11761 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11762 (linux_handle_extended_wait): Likewise.
11763 * record-btrace.c (get_thread_current_frame_id): Likewise.
11764 * record-full.c (record_full_wait_1): Likewise.
11765 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11766 * target.c (target_resume): Likewise.
11767 * thread.c (set_running_thread): Likewise.
11768
11769 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11770
11771 * f-valprint.c (f77_print_array_1): Changed datatype of index
11772 variable to LONGEST from int to enable it to contain bound
11773 values correctly.
11774
11775 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11776
11777 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11778 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11779 offsets according to FLEN determined.
11780 (riscv_linux_nat_target::read_description): Determine FLEN
11781 dynamically.
11782 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11783 according to FLEN determined.
11784 (riscv_linux_nat_target::store_registers): Likewise.
11785
11786 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11787
11788 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11789 when reg->group is empty and reggroup is not.
11790
11791 2020-01-31 Tom Tromey <tromey@adacore.com>
11792
11793 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11794 Call beneath target's mourn_inferior after unpushing.
11795
11796 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11797
11798 PR tui/9765
11799 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11800 have enough lines to fill the screen, still return the lowest
11801 address we found.
11802
11803 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11804
11805 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11806 '-', '<', and '>' commands.
11807
11808 2020-01-29 Pedro Alves <palves@redhat.com>
11809 Sergio Durigan Junior <sergiodj@redhat.com>
11810
11811 * infcmd.c (construct_inferior_arguments): Assert that
11812 'argc' is greater than 0.
11813
11814 2020-01-29 Luis Machado <luis.machado@linaro.org>
11815
11816 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11817 (BRK_INSN_MASK): Define to 0xd4200000.
11818 (aarch64_program_breakpoint_here_p): New function.
11819 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11820 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11821 breakpoint.c.
11822 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11823 breakpoint.h
11824 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11825 call gdbarch_program_breakpoint_here_p.
11826 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11827 default_program_breakpoint_here_p, changed return type to bool and
11828 simplified.
11829 * breakpoint.h (program_breakpoint_here): Moved prototype to
11830 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11831 return type to bool.
11832 * gdbarch.c: Regenerate.
11833 * gdbarch.h: Regenerate.
11834 * gdbarch.sh (program_breakpoint_here_p): New method.
11835 * infrun.c (handle_signal_stop): Call
11836 gdbarch_program_breakpoint_here_p.
11837
11838 2020-01-26 Tom Tromey <tom@tromey.com>
11839
11840 * ctfread.c (struct ctf_fp_info): Reindent.
11841 (_initialize_ctfread): Remove.
11842
11843 2020-01-26 Tom Tromey <tom@tromey.com>
11844
11845 * psymtab.c (partial_map_expand_apply)
11846 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11847 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11848 (psym_print_stats, psym_expand_symtabs_for_function)
11849 (psym_map_symbol_filenames, psym_map_matching_symbols)
11850 (psym_expand_symtabs_matching)
11851 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11852 (maintenance_check_psymtabs): Use new methods.
11853 * psympriv.h (struct partial_symtab) <readin_p,
11854 get_compunit_symtab>: New methods.
11855 <readin, compunit_symtab>: Remove members.
11856 (struct standard_psymtab): New.
11857 (struct legacy_psymtab): Derive from standard_psymtab.
11858 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11859 standard_psymtab.
11860 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11861
11862 2020-01-26 Tom Tromey <tom@tromey.com>
11863
11864 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11865 read_dependencies. Add assert.
11866 * psymtab.c (partial_symtab::read_dependencies): New method.
11867 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11868 method.
11869 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11870 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11871 read_dependencies.
11872 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11873 Add assert.
11874
11875 2020-01-26 Tom Tromey <tom@tromey.com>
11876
11877 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11878 Call expand_psymtab.
11879 (xcoff_read_symtab): Call expand_psymtab.
11880 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11881 legacy_expand_psymtab.
11882 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11883 method.
11884 (struct legacy_psymtab) <expand_psymtab>: Implement.
11885 <legacy_expand_psymtab>: New member.
11886 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11887 (parse_partial_symbols): Set legacy_expand_psymtab.
11888 (psymtab_to_symtab_1): Change argument order. Call
11889 expand_psymtab.
11890 (new_psymtab): Set legacy_expand_psymtab.
11891 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11892 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11893 expand_psymtab.
11894 (dwarf2_psymtab::expand_psymtab): Rename from
11895 psymtab_to_symtab_1. Call expand_psymtab.
11896 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11897 (dbx_end_psymtab): Likewise.
11898 (dbx_psymtab_to_symtab_1): Change argument order. Call
11899 expand_psymtab.
11900 (dbx_read_symtab): Call expand_psymtab.
11901 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11902 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11903 (ctf_psymtab::read_symtab): Call expand_psymtab.
11904
11905 2020-01-26 Tom Tromey <tom@tromey.com>
11906
11907 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11908 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11909 messages.
11910 * mdebugread.c (mdebug_read_symtab): Remove prints.
11911 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11912 assert.
11913 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11914
11915 2020-01-26 Tom Tromey <tom@tromey.com>
11916
11917 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11918 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11919 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11920 legacy_symtab.
11921 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11922 * psymtab.c (psymtab_to_symtab): Call method.
11923 (dump_psymtab): Update.
11924 * psympriv.h (struct partial_symtab): Add virtual destructor.
11925 <read_symtab>: New method.
11926 (struct legacy_symtab): New.
11927 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11928 (struct pst_map) <pst>: Now a legacy_psymtab.
11929 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11930 (new_psymtab): Use legacy_psymtab.
11931 * dwarf2read.h (struct dwarf2_psymtab): New.
11932 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11933 * dwarf2read.c (dwarf2_create_include_psymtab)
11934 (dwarf2_build_include_psymtabs, create_type_unit_group)
11935 (create_partial_symtab, process_psymtab_comp_unit_reader)
11936 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11937 (set_partial_user): Use dwarf2_psymtab.
11938 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11939 (psymtab_to_symtab_1, process_full_comp_unit)
11940 (process_full_type_unit, dwarf2_ranges_read)
11941 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11942 (dwarf_decode_lines): Use dwarf2_psymtab.
11943 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11944 (add_address_entry_worker, write_one_signatured_type)
11945 (recursively_count_psymbols, recursively_write_psymbols)
11946 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11947 (write_debug_names): Likewise.
11948 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11949 <pst>: Now a legacy_psymtab.
11950 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11951 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11952 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11953 * ctfread.c (struct ctf_psymtab): New.
11954 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11955 ctf_psymtab.
11956 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11957 (create_partial_symtab): Return a ctf_psymtab.
11958 (scan_partial_symbols): Update.
11959
11960 2020-01-26 Tom Tromey <tom@tromey.com>
11961
11962 * xcoffread.c (xcoff_start_psymtab): Use new.
11963 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11964 renamed from start_psymtab_common.
11965 * psympriv.h (struct partial_symtab): Add new constructor.
11966 (start_psymtab_common): Don't declare.
11967 * mdebugread.c (parse_partial_symbols): Use new.
11968 * dwarf2read.c (create_partial_symtab): Use new.
11969 * dbxread.c (start_psymtab): Use new.
11970 * ctfread.c (create_partial_symtab): Use new.
11971
11972 2020-01-26 Tom Tromey <tom@tromey.com>
11973
11974 * xcoffread.c (xcoff_end_psymtab): Use new.
11975 * psymtab.c (start_psymtab_common): Use new.
11976 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11977 Update.
11978 * psympriv.h (struct partial_symtab): Add parameters to
11979 constructor. Don't inline.
11980 (allocate_psymtab): Don't declare.
11981 * mdebugread.c (new_psymtab): Use new.
11982 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11983 * dbxread.c (dbx_end_psymtab): Use new.
11984
11985 2020-01-26 Tom Tromey <tom@tromey.com>
11986
11987 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11988 allocate_psymtab. Update documentation.
11989 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11990 allocate_psymtab. Do not use new.
11991 (allocate_psymtab): Use new. Update.
11992
11993 2020-01-26 Tom Tromey <tom@tromey.com>
11994
11995 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11996 * psymtab.c (psym_print_stats): Update.
11997 * psympriv.h (struct partial_symtab) <readin,
11998 psymtabs_addrmap_supported, anonymous>: Now bool.
11999 * mdebugread.c (psymtab_to_symtab_1): Update.
12000 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12001 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12002 (process_full_comp_unit, process_full_type_unit): Update.
12003 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12004 * ctfread.c (psymtab_to_symtab): Update.
12005
12006 2020-01-26 Tom Tromey <tom@tromey.com>
12007
12008 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12009 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12010 * psymtab.c (psymtab_storage): Delete psymtabs.
12011 (psymtab_storage::allocate_psymtab): Use new.
12012 (psymtab_storage::discard_psymtab): Use delete.
12013 * psympriv.h (struct partial_symtab): Add constructor and
12014 initializers.
12015
12016 2020-01-26 Tom Tromey <tom@tromey.com>
12017
12018 * machoread.c: Do not include psympriv.h.
12019
12020 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12021
12022 * NEWS: Mention the new option and the set/show commands.
12023
12024 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12025
12026 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12027 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12028 (validate_exec_file): New variables, enums, functions.
12029 (exec_file_locate_attach, print_section_info): Style the filenames.
12030 (_initialize_exec): Install show_exec_file_mismatch_command and
12031 set_exec_file_mismatch_command.
12032 * gdbcore.h (validate_exec_file): Declare.
12033 * infcmd.c (attach_command): Call validate_exec_file.
12034 * remote.c ( remote_target::remote_add_inferior): Likewise.
12035
12036 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 * frame.c (find_frame_sal): Move call to get_next_frame into more
12039 inner scope.
12040 * inline-frame.c (inilne_state) <inline_state>: Update argument
12041 types.
12042 (inilne_state) <skipped_symbol>: Rename to...
12043 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12044 (skip_inline_frames): Build vector of skipped symbols and use this
12045 to reate the inline_state.
12046 (inline_skipped_symbol): Add a comment and some assertions, fetch
12047 skipped symbol from the list.
12048
12049 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12050
12051 * buildsym.c (lte_is_less_than): Delete.
12052 (buildsym_compunit::end_symtab_with_blockvector): Create local
12053 lambda function to sort line table entries, and use
12054 std::stable_sort instead of std::sort.
12055 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12056 markers when looking for a previous line.
12057
12058 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12059
12060 * dwarf2read.c (lnp_state_machine::record_line): Include
12061 end_sequence parameter in debug print out. Record the line if we
12062 are at an end_sequence marker even if it's not the start of a
12063 statement.
12064 * symmisc.c (maintenance_print_one_line_table): Print end of
12065 sequence markers with 'END' not '0'.
12066
12067 2020-01-24 Pedro Alves <palves@redhat.com>
12068
12069 PR gdb/25410
12070 * thread.c (scoped_restore_current_thread::restore): Use
12071 switch_to_inferior_no_thread.
12072 * exec.c: Include "progspace-and-thread.h".
12073 (add_target_sections, remove_target_sections):
12074 scoped_restore_current_pspace_and_thread instead of
12075 scoped_restore_current_thread.
12076 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12077 and aspace to the inferior before calling clone_program_space.
12078 Remove stale comment.
12079
12080 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12081
12082 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12083 (arm_netbsd_nat_target::fetch_registers): ...this.
12084 (arm_nbsd_nat_target::store_registers): Rename to...
12085 (arm_netbsd_nat_target::store_registers): ...this.
12086
12087 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12088
12089 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12090 register_t.
12091
12092 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12093
12094 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12095 Update comment.
12096 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12097 Likewise.
12098 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12099 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12100 the correct replacement (iterate_over_regset_sections).
12101 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12102 Update comment.
12103
12104 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12105
12106 PR gdb/23718
12107 * gdb/python/python.c (execute_gdb_command): Call
12108 async_enable_stdin in catch block.
12109
12110 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12111
12112 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12113 SWITCH_THRU_ALL_UIS.
12114
12115 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12116
12117 PR tui/9765
12118 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12119 comment, add extra parameter, and update to store previous symbol
12120 when appropriate.
12121 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12122 add extra parameter.
12123 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12124 remove unneeded parameter, add try/catch around gdb_print_insn,
12125 rewrite to add items to asm_lines vector.
12126 (tui_find_backward_disassembly_start_address): New function.
12127 (tui_find_disassembly_address): Updated throughout.
12128 (tui_disasm_window::set_contents): Update for changes to
12129 tui_disassemble.
12130 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12131 number of lines to scroll.
12132
12133 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12134
12135 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12136 (SECT_OFF_DATA): Likewise.
12137 (SECT_OFF_RODATA): Likewise.
12138 (SECT_OFF_TEXT): Likewise.
12139 (SECT_OFF_BSS): Likewise.
12140 (struct objfile) <text_section_offset, data_section_offset>: New
12141 methods.
12142 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12143 objfile::text_section_offset.
12144 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12145 * coffread.c (coff_symtab_read): Likewise.
12146 (enter_linenos): Likewise.
12147 (process_coff_symbol): Likewise.
12148 * ctfread.c (get_objfile_text_range): Likewise.
12149 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12150 Use objfile::data_section_offset.
12151 * dwarf2-frame.c (execute_cfa_program): Use
12152 objfile::text_section_offset.
12153 (dwarf2_frame_find_fde): Likewise.
12154 * dwarf2read.c (create_addrmap_from_index): Likewise.
12155 (create_addrmap_from_aranges): Likewise.
12156 (dw2_find_pc_sect_compunit_symtab): Likewise.
12157 (process_psymtab_comp_unit_reader): Likewise.
12158 (add_partial_symbol): Likewise.
12159 (add_partial_subprogram): Likewise.
12160 (process_full_comp_unit): Likewise.
12161 (read_file_scope): Likewise.
12162 (read_func_scope): Likewise.
12163 (read_lexical_block_scope): Likewise.
12164 (read_call_site_scope): Likewise.
12165 (dwarf2_rnglists_process): Likewise.
12166 (dwarf2_ranges_process): Likewise.
12167 (dwarf2_ranges_read): Likewise.
12168 (dwarf_decode_lines_1): Likewise.
12169 (new_symbol): Likewise.
12170 (dwarf2_fetch_die_loc_sect_off): Likewise.
12171 (dwarf2_per_cu_text_offset): Likewise.
12172 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12173 * hppa-tdep.c (read_unwind_info): Likewise.
12174 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12175 * psympriv.h (struct partial_symtab): Likewise.
12176 * psymtab.c (find_pc_sect_psymtab): Likewise.
12177 * solib-svr4.c (enable_break): Likewise.
12178 * stap-probe.c (relocate_address): Use
12179 objfile::data_section_offset.
12180 * xcoffread.c (enter_line_range): Use
12181 objfile::text_section_offset.
12182 (read_xcoff_symtab): Likewise.
12183
12184 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12185
12186 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12187 declaration to narrower scopes.
12188
12189 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12190
12191 * darwin-nat.h (struct darwin_exception_msg, enum
12192 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12193 Move up.
12194 (class darwin_nat_target) <wait_1, check_new_threads,
12195 decode_exception_message, decode_message, stop_inferior,
12196 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12197 * darwin-nat.c (darwin_check_new_threads): Rename to...
12198 (darwin_nat_target::check_new_threads): ... this.
12199 (darwin_suspend_inferior_it): Remove.
12200 (darwin_decode_exception_message): Rename to...
12201 (darwin_nat_target::decode_exception_message): ... this.
12202 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12203 (darwin_decode_message): Rename to...
12204 (darwin_nat_target::decode_message): ... this.
12205 (cancel_breakpoint): Rename to...
12206 (darwin_nat_target::cancel_breakpoint): ... this.
12207 (darwin_wait): Rename to...
12208 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12209 instead of iterate_over_inferiors.
12210 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12211 (darwin_stop_inferior): Rename to...
12212 (darwin_nat_target::stop_inferior): ... this.
12213 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12214 (darwin_init_thread_list): Rename to...
12215 (darwin_nat_target::init_thread_list): ... this.
12216 (darwin_ptrace_him): Rename to...
12217 (darwin_nat_target::ptrace_him): ... this.
12218 (darwin_nat_target::create_inferior): Pass lambda function to
12219 fork_inferior.
12220 (darwin_nat_target::detach): Call stop_inferior instead of
12221 darwin_stop_inferior.
12222 * fork-inferior.h (fork_inferior): Change init_trace_fun
12223 parameter to gdb::function_view.
12224 * fork-inferior.c (fork_inferior): Likewise.
12225
12226 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12227
12228 * i386-cygwin-tdep.c (core_process_module_section): Update.
12229 * windows-nat.c (struct lm_info_windows): Add text_offset.
12230 (windows_xfer_shared_libraries): Update.
12231 * windows-tdep.c (windows_xfer_shared_library):
12232 Add text_offset_cached argument.
12233 * windows-tdep.h (windows_xfer_shared_library): Update.
12234
12235 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12236
12237 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12238
12239 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12240
12241 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12242 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12243 replace with range-based for.
12244 (gdbsim_interrupt_inferior): Remove.
12245 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12246 with a range-based for. Inline code from
12247 gdbsim_interrupt_inferior.
12248
12249 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12250
12251 * infrun.c (proceed): Fix indentation.
12252
12253 2020-01-21 Tom Tromey <tromey@adacore.com>
12254
12255 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12256 * python/python.c (python_extension_ops): Update.
12257 (gdbpy_colorize): New function.
12258 * python/lib/gdb/__init__.py (colorize): New function.
12259 * extension.h (ext_lang_colorize): Declare.
12260 * extension.c (ext_lang_colorize): New function.
12261 * extension-priv.h (struct extension_language_ops) <colorize>: New
12262 member.
12263 * cli/cli-style.c (_initialize_cli_style): Update help text.
12264
12265 2020-01-21 Luis Machado <luis.machado@linaro.org>
12266
12267 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12268 <cond>: Change type to bool.
12269 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12270 (aarch64_displaced_step_cb): Likewise.
12271 (aarch64_displaced_step_tb): Likewise.
12272
12273 2020-01-21 Luis Machado <luis.machado@linaro.org>
12274
12275 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12276 output.
12277
12278 2020-01-21 Luis Machado <luis.machado@linaro.org>
12279
12280 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12281 <pc_adjust>: Adjust the documentation.
12282 (aarch64_displaced_step_fixup): Check if PC really moved before
12283 adjusting it.
12284
12285 2020-01-19 Tom Tromey <tom@tromey.com>
12286
12287 * disasm.c (~gdb_disassembler): New destructor.
12288 (gdb_buffered_insn_length): Call disassemble_free_target.
12289 * disasm.h (class gdb_disassembler): Declare destructor. Use
12290 DISABLE_COPY_AND_ASSIGN.
12291
12292 2020-01-19 Tom Tromey <tom@tromey.com>
12293
12294 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12295 (die_reader_func_ftype): Remove.
12296 (cutu_reader): New class.
12297 (dw2_get_file_names_reader): Remove "data" parameter.
12298 (dw2_get_file_names): Use cutu_reader.
12299 (create_debug_type_hash_table): Update.
12300 (read_cutu_die_from_dwo): Update comment.
12301 (lookup_dwo_unit): Add dwo_name parameter.
12302 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12303 die_reader_func_ftype and data parameters.
12304 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12305 Remove die_reader_func_ftype and data parameters.
12306 (~cutu_reader): New; from init_cutu_and_read_dies.
12307 (cutu_reader::cutu_reader): Rename from
12308 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12309 and data parameters.
12310 (init_cutu_and_read_dies_simple): Remove.
12311 (struct process_psymtab_comp_unit_data): Remove.
12312 (process_psymtab_comp_unit_reader): Remove data parameter; add
12313 want_partial_unit and pretend_language parameters.
12314 (process_psymtab_comp_unit): Use cutu_reader.
12315 (build_type_psymtabs_reader): Remove data parameter.
12316 (build_type_psymtabs_1): Use cutu_reader.
12317 (process_skeletonless_type_unit): Likewise.
12318 (load_partial_comp_unit_reader): Remove.
12319 (load_partial_comp_unit): Use cutu_reader.
12320 (load_full_comp_unit_reader): Remove.
12321 (load_full_comp_unit): Use cutu_reader.
12322 (struct create_dwo_cu_data): Remove.
12323 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12324 dwo_unit parameters.
12325 (create_cus_hash_table): Use cutu_reader.
12326 (struct dwarf2_read_addr_index_data): Remove.
12327 (dwarf2_read_addr_index_reader): Remove.
12328 (dwarf2_read_addr_index): Use cutu_reader.
12329 (read_signatured_type_reader): Remove.
12330 (read_signatured_type): Use cutu_reader.
12331
12332 2020-01-19 Tom Tromey <tom@tromey.com>
12333
12334 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12335 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12336 (tui_wrefresh): Declare.
12337 * tui/tui-wingeneral.c (suppress_output): New global.
12338 (tui_suppress_output, ~tui_suppress_output): New constructor and
12339 destructor.
12340 (tui_wrefresh): New function.
12341 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12342 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12343 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12344 method.
12345 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12346 tui_wrefresh.
12347 (tui_data_window::no_refresh): New method.
12348 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12349 (tui_reg_command): Use tui_suppress_output
12350 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12351 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12352 method.
12353 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12354
12355 2020-01-19 Tom Tromey <tom@tromey.com>
12356
12357 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12358 Handle case where symtab is null.
12359
12360 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12361
12362 * linux-fork.c (one_fork_p): Simplify.
12363
12364 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12365
12366 * top.c (struct qt_args): Remove.
12367 (kill_or_detach): Change return type to void, replace `void *`
12368 parameter with a proper one.
12369 (print_inferior_quit_action): Likewise.
12370 (quit_confirm): Use range-based for loop to iterate over inferiors.
12371 (quit_force): Likewise.
12372
12373 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12374
12375 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12376 `void *` parameter with proper parameters.
12377 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12378 (print_one_inferior): Change return type to void, replace `void *`
12379 parameter with proper parameters.
12380 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12381 inferiors.
12382 (get_other_inferior): Remove.
12383 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12384 inferiors.
12385
12386 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12387
12388 * mi/mi-interp.c (report_initial_inferior): Remove.
12389 (mi_interp::init): Use range-based for to iterate over inferiors.
12390
12391 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12392
12393 * python/py-inferior.c (build_inferior_list): Remove.
12394 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12395
12396 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12397
12398 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12399 (btrace_stitch_trace): Likewise.
12400 * charset.c (intermediate_encoding): Likewise (vaild).
12401 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12402 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12403 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12404
12405 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12406
12407 * windows-tdep.c (windows_get_tlb_type):
12408 Add rtl_user_process_parameters type.
12409
12410 2020-01-16 Pedro Alves <palves@redhat.com>
12411 Norbert Lange <nolange79@gmail.com>
12412
12413 PR build/24805
12414 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12415 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12416 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12417 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12418 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12419 (ps_plog): Redeclare exported functions with default visibility.
12420
12421 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12422
12423 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12424 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12425
12426 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12427
12428 * infcmd.c (post_create_inferior): Use get_thread_regcache
12429 instead of get_current_regcache.
12430
12431 2020-01-14 Tom Tromey <tom@tromey.com>
12432
12433 PR symtab/12535:
12434 * python/python.c (gdbpy_decode_line): Treat empty string the same
12435 as no argument.
12436
12437 2020-01-14 Tom Tromey <tom@tromey.com>
12438
12439 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12440
12441 2020-01-14 Tom Tromey <tom@tromey.com>
12442
12443 * nat/linux-btrace.c: Don't include <config.h>.
12444 * nat/linux-ptrace.c: Don't include <config.h>.
12445 * nat/x86-linux-dregs.c: Don't include <config.h>.
12446
12447 2020-01-14 Tom Tromey <tom@tromey.com>
12448
12449 * configure: Rebuild.
12450 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12451
12452 2020-01-14 Tom Tromey <tom@tromey.com>
12453
12454 * nat/x86-linux-dregs.c: Include configh.h.
12455 * nat/linux-ptrace.c: Include configh.h.
12456 * nat/linux-btrace.c: Include configh.h.
12457 * defs.h: Include config.h, bfd.h.
12458 * configure.ac: Don't source common.host.
12459 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12460 * configure: Rebuild.
12461 * acinclude.m4: Update path.
12462 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12463 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12464 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12465 (CLIBS): Add LIBSUPPORT.
12466 (CDEPS): Likewise.
12467 (COMMON_SFILES): Remove gdbsupport files.
12468 (HFILES_NO_SRCDIR): Likewise.
12469 (stamp-version): Update path to create-version.sh.
12470 (ALLDEPFILES): Remove gdbsupport files.
12471
12472 2020-01-14 Tom Tromey <tom@tromey.com>
12473
12474 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12475 USE_WIN32API when needed.
12476 * configure.ac (USE_WIN32API): Don't define.
12477 (WIN32LIBS): Use WIN32APILIBS.
12478 * configure: Rebuild.
12479
12480 2020-01-14 Tom Tromey <tom@tromey.com>
12481
12482 * configure: Rebuild.
12483 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12484
12485 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12486
12487 * skip.c (skip_function_command): Make skip w/o arguments use the
12488 name of the inlined function if pc is inside any inlined function.
12489
12490 2020-01-14 Luis Machado <luis.machado@linaro.org>
12491
12492 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12493 * infrun.c (resume_1): Likewise.
12494 (handle_inferior_event): Remove stale comment.
12495 * linux-nat.c (linux_nat_target::resume): Update comments.
12496 (save_stop_reason): Likewise.
12497 (linux_nat_filter_event): Likewise.
12498 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12499
12500 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12501
12502 * elfread.c (record_minimal_symbol): Set section index to 0 for
12503 non-allocatable sections.
12504
12505
12506 2020-01-13 Ali Tamur <tamur@google.com>
12507
12508 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12509 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12510 to gdb::optional. Update comments.
12511 (dwo_file): Update comments.
12512 (read_attribute): Update API to take an additional out parameter,
12513 need_reprocess. This is used to mark attributes that need other
12514 attributes (e.g. str_offsets_base) for correct computation which may not
12515 have been read yet.
12516 (read_attribute_reprocess): New function declaration.
12517 (read_addr_index): Likewise.
12518 (read_dwo_str_index): Likewise.
12519 (read_stub_str_index): Likewise.
12520 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12521 (lookup_addr_base): New function definition.
12522 (lookup_ranges_base): Likewise.
12523 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12524 lookup_ranges_base.
12525 (init_cutu_and_read_dies): Update comments.
12526 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12527 unit. This is used to inherit parent's str_offsets_base and addr_base.
12528 Update comments.
12529 (init_cutu_and_read_dies_simple): Reflect API changes.
12530 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12531 (create_cus_hash_table): Change API to take parent compile unit.
12532 Reflect API changes.
12533 (open_and_init_dwo_file): Reflect API changes.
12534 (dwarf2_get_pc_bounds): Update comments.
12535 (dwarf2_record_block_ranges): Likewise.
12536 (read_full_die_1): Change implementation to reprocess attributes that
12537 need str_offsets_base and addr_base.
12538 (partial_die_info::read): Likewise.
12539 (read_attribute_reprocess): New function definition.
12540 (read_attribute_value): Change API to take an additional out parameter,
12541 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12542 when a non-dwo compile unit has index based attributes.
12543 (read_attribute): Reflect API changes.
12544 (read_addr_index_1): Reflect API changes. Update comments.
12545 (dwarf2_read_addr_index_data): Reflect API changes.
12546 (dwarf2_read_addr_index): Likewise.
12547 (read_str_index): Change API and implementation. This becomes a helper
12548 to be used by the new string index related methods. Update error
12549 message and comments.
12550 (read_dwo_str_index): New function definition.
12551 (read_stub_str_index): Likewise.
12552 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12553 * symfile.h (dwarf2_debug_sections): Likewise.
12554 * xcoffread.c (dwarf2_debug_sections): Likewise.
12555
12556 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12557
12558 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12559 core_reg_sect type to gdb_byte *.
12560 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12561 * cris-tdep.c (fetch_core_registers): Likewise.
12562 * corelow.c (core_target::get_core_register_section): Change
12563 type of `contents` to gdb::byte_vector.
12564
12565 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12566
12567 * tui/tui-wingeneral.c (box_win): Position the title in the center
12568 of the border.
12569
12570 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12571
12572 * corelow.c (core_target::get_core_register_section): Use
12573 std::vector instead of alloca.
12574
12575 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12576
12577 * warning.m4: Add -Wmissing-declarations to build_warnings.
12578 * configure: Re-generate.
12579
12580 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12581
12582 * python/python.c (init__gdb_module): Add declaration.
12583
12584 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12585
12586 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12587 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12588 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12589 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12590 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12591 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12592 * ada-exp.y (_initialize_ada_exp): Add declaration.
12593 * ada-lang.c (_initialize_ada_language): Add declaration.
12594 * ada-tasks.c (_initialize_tasks): Add declaration.
12595 * agent.c (_initialize_agent): Add declaration.
12596 * aix-thread.c (_initialize_aix_thread): Add declaration.
12597 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12598 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12599 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12600 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12601 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12602 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12603 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12604 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12605 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12606 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12607 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12608 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12609 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12610 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12611 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12612 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12613 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12614 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12615 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12616 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12617 * annotate.c (_initialize_annotate): Add declaration.
12618 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12619 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12620 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12621 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12622 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12623 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12624 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12625 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12626 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12627 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12628 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12629 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12630 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12631 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12632 * auto-load.c (_initialize_auto_load): Add declaration.
12633 * auxv.c (_initialize_auxv): Add declaration.
12634 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12635 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12636 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12637 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12638 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12639 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12640 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12641 * breakpoint.c (_initialize_breakpoint): Add declaration.
12642 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12643 * btrace.c (_initialize_btrace): Add declaration.
12644 * charset.c (_initialize_charset): Add declaration.
12645 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12646 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12647 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12648 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12649 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12650 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12651 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12652 * coffread.c (_initialize_coffread): Add declaration.
12653 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12654 * compile/compile.c (_initialize_compile): Add declaration.
12655 * complaints.c (_initialize_complaints): Add declaration.
12656 * completer.c (_initialize_completer): Add declaration.
12657 * copying.c (_initialize_copying): Add declaration.
12658 * corefile.c (_initialize_core): Add declaration.
12659 * corelow.c (_initialize_corelow): Add declaration.
12660 * cp-abi.c (_initialize_cp_abi): Add declaration.
12661 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12662 * cp-support.c (_initialize_cp_support): Add declaration.
12663 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12664 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12665 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12666 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12667 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12668 * ctfread.c (_initialize_ctfread): Add declaration.
12669 * d-lang.c (_initialize_d_language): Add declaration.
12670 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12671 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12672 * dbxread.c (_initialize_dbxread): Add declaration.
12673 * dcache.c (_initialize_dcache): Add declaration.
12674 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12675 * disasm.c (_initialize_disasm): Add declaration.
12676 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12677 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12678 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12679 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12680 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12681 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12682 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12683 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12684 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12685 * elfread.c (_initialize_elfread): Add declaration.
12686 * exec.c (_initialize_exec): Add declaration.
12687 * extension.c (_initialize_extension): Add declaration.
12688 * f-lang.c (_initialize_f_language): Add declaration.
12689 * f-valprint.c (_initialize_f_valprint): Add declaration.
12690 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12691 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12692 * filesystem.c (_initialize_filesystem): Add declaration.
12693 * findcmd.c (_initialize_mem_search): Add declaration.
12694 * findvar.c (_initialize_findvar): Add declaration.
12695 * fork-child.c (_initialize_fork_child): Add declaration.
12696 * frame-base.c (_initialize_frame_base): Add declaration.
12697 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12698 * frame.c (_initialize_frame): Add declaration.
12699 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12700 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12701 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12702 * gcore.c (_initialize_gcore): Add declaration.
12703 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12704 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12705 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12706 * gdbarch.c (_initialize_gdbarch): Add declaration.
12707 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12708 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12709 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12710 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12711 * go-lang.c (_initialize_go_language): Add declaration.
12712 * go32-nat.c (_initialize_go32_nat): Add declaration.
12713 * guile/guile.c (_initialize_guile): Add declaration.
12714 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12715 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12716 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12717 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12718 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12719 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12720 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12721 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12722 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12723 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12724 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12725 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12726 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12727 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12728 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12729 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12730 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12731 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12732 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12733 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12734 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12735 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12736 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12737 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12738 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12739 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12740 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12741 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12742 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12743 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12744 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12745 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12746 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12747 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12748 * infcall.c (_initialize_infcall): Add declaration.
12749 * infcmd.c (_initialize_infcmd): Add declaration.
12750 * inflow.c (_initialize_inflow): Add declaration.
12751 * infrun.c (_initialize_infrun): Add declaration.
12752 * interps.c (_initialize_interpreter): Add declaration.
12753 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12754 * jit.c (_initialize_jit): Add declaration.
12755 * language.c (_initialize_language): Add declaration.
12756 * linux-fork.c (_initialize_linux_fork): Add declaration.
12757 * linux-nat.c (_initialize_linux_nat): Add declaration.
12758 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12759 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12760 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12761 * m2-lang.c (_initialize_m2_language): Add declaration.
12762 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12763 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12764 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12765 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12766 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12767 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12768 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12769 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12770 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12771 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12772 * machoread.c (_initialize_machoread): Add declaration.
12773 * macrocmd.c (_initialize_macrocmd): Add declaration.
12774 * macroscope.c (_initialize_macroscope): Add declaration.
12775 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12776 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12777 * maint.c (_initialize_maint_cmds): Add declaration.
12778 * mdebugread.c (_initialize_mdebugread): Add declaration.
12779 * memattr.c (_initialize_mem): Add declaration.
12780 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12781 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12782 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12783 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12784 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12785 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12786 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12787 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12788 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12789 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12790 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12791 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12792 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12793 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12794 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12795 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12796 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12797 * mipsread.c (_initialize_mipsread): Add declaration.
12798 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12799 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12800 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12801 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12802 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12803 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12804 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12805 * nto-procfs.c (_initialize_procfs): Add declaration.
12806 * objc-lang.c (_initialize_objc_language): Add declaration.
12807 * observable.c (_initialize_observer): Add declaration.
12808 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12809 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12810 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12811 * osabi.c (_initialize_gdb_osabi): Add declaration.
12812 * osdata.c (_initialize_osdata): Add declaration.
12813 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12814 * parse.c (_initialize_parse): Add declaration.
12815 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12816 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12817 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12818 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12819 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12820 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12821 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12822 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12823 * printcmd.c (_initialize_printcmd): Add declaration.
12824 * probe.c (_initialize_probe): Add declaration.
12825 * proc-api.c (_initialize_proc_api): Add declaration.
12826 * proc-events.c (_initialize_proc_events): Add declaration.
12827 * proc-service.c (_initialize_proc_service): Add declaration.
12828 * procfs.c (_initialize_procfs): Add declaration.
12829 * producer.c (_initialize_producer): Add declaration.
12830 * psymtab.c (_initialize_psymtab): Add declaration.
12831 * python/python.c (_initialize_python): Add declaration.
12832 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12833 * record-btrace.c (_initialize_record_btrace): Add declaration.
12834 * record-full.c (_initialize_record_full): Add declaration.
12835 * record.c (_initialize_record): Add declaration.
12836 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12837 * regcache.c (_initialize_regcache): Add declaration.
12838 * reggroups.c (_initialize_reggroup): Add declaration.
12839 * remote-notif.c (_initialize_notif): Add declaration.
12840 * remote-sim.c (_initialize_remote_sim): Add declaration.
12841 * remote.c (_initialize_remote): Add declaration.
12842 * reverse.c (_initialize_reverse): Add declaration.
12843 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12844 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12845 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12846 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12847 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12848 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12849 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12850 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12851 Add declaration.
12852 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12853 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12854 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12855 * rust-exp.y (_initialize_rust_exp): Add declaration.
12856 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12857 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12858 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12859 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12860 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12861 * score-tdep.c (_initialize_score_tdep): Add declaration.
12862 * ser-go32.c (_initialize_ser_dos): Add declaration.
12863 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12864 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12865 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12866 * ser-uds.c (_initialize_ser_socket): Add declaration.
12867 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12868 * serial.c (_initialize_serial): Add declaration.
12869 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12870 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12871 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12872 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12873 * skip.c (_initialize_step_skip): Add declaration.
12874 * sol-thread.c (_initialize_sol_thread): Add declaration.
12875 * solib-aix.c (_initialize_solib_aix): Add declaration.
12876 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12877 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12878 * solib-frv.c (_initialize_frv_solib): Add declaration.
12879 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12880 * solib-target.c (_initialize_solib_target): Add declaration.
12881 * solib.c (_initialize_solib): Add declaration.
12882 * source-cache.c (_initialize_source_cache): Add declaration.
12883 * source.c (_initialize_source): Add declaration.
12884 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12885 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12886 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12887 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12888 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12889 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12890 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12891 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12892 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12893 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12894 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12895 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12896 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12897 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12898 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12899 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12900 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12901 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12902 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12903 * stabsread.c (_initialize_stabsread): Add declaration.
12904 * stack.c (_initialize_stack): Add declaration.
12905 * stap-probe.c (_initialize_stap_probe): Add declaration.
12906 * std-regs.c (_initialize_frame_reg): Add declaration.
12907 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12908 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12909 * symfile.c (_initialize_symfile): Add declaration.
12910 * symmisc.c (_initialize_symmisc): Add declaration.
12911 * symtab.c (_initialize_symtab): Add declaration.
12912 * target.c (_initialize_target): Add declaration.
12913 * target-connection.c (_initialize_target_connection): Add
12914 declaration.
12915 * target-dcache.c (_initialize_target_dcache): Add declaration.
12916 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12917 * thread.c (_initialize_thread): Add declaration.
12918 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12919 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12920 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12921 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12922 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12923 * tracectf.c (_initialize_ctf): Add declaration.
12924 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12925 * tracefile.c (_initialize_tracefile): Add declaration.
12926 * tracepoint.c (_initialize_tracepoint): Add declaration.
12927 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12928 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12929 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12930 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12931 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12932 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12933 * tui/tui.c (_initialize_tui): Add declaration.
12934 * typeprint.c (_initialize_typeprint): Add declaration.
12935 * ui-style.c (_initialize_ui_style): Add declaration.
12936 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12937 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12938 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12939 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12940 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12941 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12942 * unittests/filtered_iterator-selftests.c
12943 (_initialize_filtered_iterator_selftests): Add declaration.
12944 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12945 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12946 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12947 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12948 * unittests/main-thread-selftests.c
12949 (_initialize_main_thread_selftests): Add declaration.
12950 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12951 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12952 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12953 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12954 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12955 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12956 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12957 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12958 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12959 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12960 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12961 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12962 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12963 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12964 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12965 declaration.
12966 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12967 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12968 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12969 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12970 * user-regs.c (_initialize_user_regs): Add declaration.
12971 * utils.c (_initialize_utils): Add declaration.
12972 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12973 * valops.c (_initialize_valops): Add declaration.
12974 * valprint.c (_initialize_valprint): Add declaration.
12975 * value.c (_initialize_values): Add declaration.
12976 * varobj.c (_initialize_varobj): Add declaration.
12977 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12978 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12979 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12980 * windows-nat.c (_initialize_windows_nat): Add declaration.
12981 (_initialize_check_for_gdb_ini): Add declaration.
12982 (_initialize_loadable): Add declaration.
12983 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12984 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12985 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12986 * xcoffread.c (_initialize_xcoffread): Add declaration.
12987 * xml-support.c (_initialize_xml_support): Add declaration.
12988 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12989 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12990 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12991 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12992
12993 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12994
12995 * regformats/regdat.sh: Generate declaration for init function.
12996
12997 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12998
12999 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13000 up.
13001 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13002 close_one_inferior>: New methods.
13003 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13004 pass down target to find_inferior_pid.
13005 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13006 Pass down target to find_inferior_ptid.
13007 (gdbsim_target::create_inferior): Pass down target to
13008 add_thread_silent.
13009 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13010 target down to find_inferior_ptid and switch_to_thread.
13011 (gdbsim_target::close): Update to call close_one_inferior.
13012 (struct resume_data): Remove.
13013 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13014 directly, rather than through a void pointer.
13015 (gdbsim_target::resume): Update to call resume_one_inferior.
13016
13017 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13018
13019 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13020
13021 2020-01-12 Pedro Alves <palves@redhat.com>
13022
13023 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13024 directly for the current inferior instead of
13025 discard_all_inferiors.
13026 (discard_all_inferiors): Delete.
13027
13028 2020-01-11 Tom Tromey <tom@tromey.com>
13029
13030 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13031 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13032 deprecated_safe_get_selected_frame.
13033
13034 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13035
13036 * inferior.c (print_inferior): Switch inferior before printing it.
13037
13038 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13039 Pedro Alves <palves@redhat.com>
13040
13041 * progspace-and-thread.c (switch_to_program_space_and_thread):
13042 Assert there's an inferior for PSPACE. Use
13043 switch_to_inferior_no_thread to switch the inferior too.
13044 * progspace.c (program_space::~program_space): Call
13045 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13046 (program_space::free_all_objfiles): Don't call clear_symtab_users
13047 here.
13048 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13049
13050 2020-01-10 Pedro Alves <palves@redhat.com>
13051
13052 * NEWS: Mention multi-target debugging, "info connections", and
13053 "add-inferior -no-connection".
13054
13055 2020-01-10 Pedro Alves <palves@redhat.com>
13056
13057 * infrun.c: Include "target-connection.h".
13058 (check_multi_target_resumption): New.
13059 (proceed): Call it.
13060 * target-connection.c (make_target_connection_string): Make
13061 extern.
13062 * target-connection.h (make_target_connection_string): Declare.
13063
13064 2020-01-10 Pedro Alves <palves@redhat.com>
13065
13066 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13067 * inferior.c (uiout_field_connection): New function.
13068 (print_inferior): Add new "connection-id" column.
13069 (add_inferior_command): Show connection number/string of added
13070 inferior.
13071 * process-stratum-target.h
13072 (process_stratum_target::connection_string): New virtual method.
13073 (process_stratum_target::connection_number): New field.
13074 * remote.c (remote_target::connection_string): New override.
13075 * target-connection.c: New file.
13076 * target-connection.h: New file.
13077 * target.c (decref_target): Remove process_stratum targets from
13078 the connection list.
13079 (target_stack::push): Add process_stratum targets to the
13080 connection list.
13081
13082 2020-01-10 Pedro Alves <palves@redhat.com>
13083
13084 Revert:
13085 2016-04-12 Pedro Alves <palves@redhat.com>
13086 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13087 Remove references to name.
13088 * serial.h (struct serial) <name>: Delete.
13089
13090 2020-01-10 Pedro Alves <palves@redhat.com>
13091
13092 * gdbarch-selftests.c (register_to_value_test): Remove "target
13093 already pushed" check.
13094
13095 2020-01-10 Pedro Alves <palves@redhat.com>
13096 John Baldwin <jhb@FreeBSD.org>
13097
13098 * aarch64-linux-nat.c
13099 (aarch64_linux_nat_target::thread_architecture): Adjust.
13100 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13101 (task_command_1): Likewise.
13102 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13103 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13104 (aix_thread_target::store_registers)
13105 (aix_thread_target::thread_alive): Adjust.
13106 * amd64-fbsd-tdep.c: Include "inferior.h".
13107 (amd64fbsd_get_thread_local_address): Pass down target.
13108 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13109 thread's gdbarch instead of target_gdbarch.
13110 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13111 get_last_target_status.
13112 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13113 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13114 inferiors.
13115 (update_inserted_breakpoint_locations): Skip if inferiors with no
13116 execution.
13117 (update_global_location_list): When handling moribund locations,
13118 find representative inferior for location's pspace, and use thread
13119 count of its process_stratum target.
13120 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13121 * bsd-uthread.c (bsd_uthread_target::wait): Use
13122 as_process_stratum_target and adjust thread_change_ptid and
13123 add_thread calls.
13124 (bsd_uthread_target::update_thread_list): Use
13125 as_process_stratum_target and adjust find_thread_ptid,
13126 thread_change_ptid and add_thread calls.
13127 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13128 find_thread_ptid call.
13129 * corelow.c (add_to_thread_list): Adjust add_thread call.
13130 (core_target_open): Adjust add_thread_silent and thread_count
13131 calls.
13132 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13133 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13134 * event-top.c (async_disconnect): Pop targets from all inferiors.
13135 * exec.c (add_target_sections): Push exec target on all inferiors
13136 sharing the program space.
13137 (remove_target_sections): Remove the exec target from all
13138 inferiors sharing the program space.
13139 (exec_on_vfork): New.
13140 * exec.h (exec_on_vfork): Declare.
13141 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13142 Pass it down.
13143 (fbsd_nat_target::update_thread_list): Adjust.
13144 (fbsd_nat_target::resume): Adjust.
13145 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13146 down.
13147 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13148 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13149 get_thread_arch_regcache call.
13150 * fork-child.c (gdb_startup_inferior): Pass target down to
13151 startup_inferior and set_executing.
13152 * gdbthread.h (struct process_stratum_target): Forward declare.
13153 (add_thread, add_thread_silent, add_thread_with_info)
13154 (in_thread_list): Add process_stratum_target parameter.
13155 (find_thread_ptid(inferior*, ptid_t)): New overload.
13156 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13157 parameter.
13158 (all_threads()): Delete overload.
13159 (all_threads, all_non_exited_threads): Add process_stratum_target
13160 parameter.
13161 (all_threads_safe): Use brace initialization.
13162 (thread_count): Add process_stratum_target parameter.
13163 (set_resumed, set_running, set_stop_requested, set_executing)
13164 (threads_are_executing, finish_thread_state): Add
13165 process_stratum_target parameter.
13166 (switch_to_thread): Use is_current_thread.
13167 * i386-fbsd-tdep.c: Include "inferior.h".
13168 (i386fbsd_get_thread_local_address): Pass down target.
13169 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13170 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13171 have_inferiors check.
13172 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13173 (inf_ptrace_target::attach): Adjust.
13174 * infcall.c (run_inferior_call): Adjust.
13175 * infcmd.c (run_command_1): Pass target to
13176 scoped_finish_thread_state.
13177 (proceed_thread_callback): Skip inferiors with no execution.
13178 (continue_command): Rename 'all_threads' local to avoid hiding
13179 'all_threads' function. Adjust get_last_target_status call.
13180 (prepare_one_step): Adjust set_running call.
13181 (signal_command): Use user_visible_resume_target. Compare thread
13182 pointers instead of inferior_ptid.
13183 (info_program_command): Adjust to pass down target.
13184 (attach_command): Mark target's 'thread_executing' flag.
13185 (stop_current_target_threads_ns): New, factored out from ...
13186 (interrupt_target_1): ... this. Switch inferior before making
13187 target calls.
13188 * inferior-iter.h
13189 (struct all_inferiors_iterator, struct all_inferiors_range)
13190 (struct all_inferiors_safe_range)
13191 (struct all_non_exited_inferiors_range): Filter on
13192 process_stratum_target too. Remove explicit.
13193 * inferior.c (inferior::inferior): Push dummy target on target
13194 stack.
13195 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13196 Add process_stratum_target parameter, and pass it down.
13197 (have_live_inferiors): Adjust.
13198 (switch_to_inferior_and_push_target): New.
13199 (add_inferior_command, clone_inferior_command): Handle
13200 "-no-connection" parameter. Use
13201 switch_to_inferior_and_push_target.
13202 (_initialize_inferior): Mention "-no-connection" option in
13203 the help of "add-inferior" and "clone-inferior" commands.
13204 * inferior.h: Include "process-stratum-target.h".
13205 (interrupt_target_1): Use bool.
13206 (struct inferior) <push_target, unpush_target, target_is_pushed,
13207 find_target_beneath, top_target, process_target, target_at,
13208 m_stack>: New.
13209 (discard_all_inferiors): Delete.
13210 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13211 (all_inferiors, all_non_exited_inferiors): Add
13212 process_stratum_target parameter.
13213 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13214 (target_last_proc_target): New global.
13215 (follow_fork_inferior): Push target on new inferior. Pass target
13216 to add_thread_silent. Call exec_on_vfork. Handle target's
13217 reference count.
13218 (follow_fork): Adjust get_last_target_status call. Also consider
13219 target.
13220 (follow_exec): Push target on new inferior.
13221 (struct execution_control_state) <target>: New field.
13222 (user_visible_resume_target): New.
13223 (do_target_resume): Call target_async.
13224 (resume_1): Set target's threads_executing flag. Consider resume
13225 target.
13226 (commit_resume_all_targets): New.
13227 (proceed): Also consider resume target. Skip threads of inferiors
13228 with no execution. Commit resumtion in all targets.
13229 (start_remote): Pass current inferior to wait_for_inferior.
13230 (infrun_thread_stop_requested): Consider target as well. Pass
13231 thread_info pointer to clear_inline_frame_state instead of ptid.
13232 (infrun_thread_thread_exit): Consider target as well.
13233 (random_pending_event_thread): New inferior parameter. Use it.
13234 (do_target_wait): Rename to ...
13235 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13236 down.
13237 (threads_are_resumed_pending_p, do_target_wait): New.
13238 (prepare_for_detach): Adjust calls.
13239 (wait_for_inferior): New inferior parameter. Handle it. Use
13240 do_target_wait_1 instead of do_target_wait.
13241 (fetch_inferior_event): Adjust. Switch to representative
13242 inferior. Pass target down.
13243 (set_last_target_status): Add process_stratum_target parameter.
13244 Save target in global.
13245 (get_last_target_status): Add process_stratum_target parameter and
13246 handle it.
13247 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13248 (context_switch): Check inferior_ptid == null_ptid before calling
13249 inferior_thread().
13250 (get_inferior_stop_soon): Pass down target.
13251 (wait_one): Rename to ...
13252 (poll_one_curr_target): ... this.
13253 (struct wait_one_event): New.
13254 (wait_one): New.
13255 (stop_all_threads): Adjust.
13256 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13257 event's target.
13258 (switch_back_to_stepped_thread): Also consider target.
13259 (print_stop_event): Update.
13260 (normal_stop): Update. Also consider the resume target.
13261 * infrun.h (wait_for_inferior): Remove declaration.
13262 (user_visible_resume_target): New declaration.
13263 (get_last_target_status, set_last_target_status): New
13264 process_stratum_target parameter.
13265 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13266 process_stratum_target parameter, and use it.
13267 (clear_inline_frame_state (thread_info*)): New.
13268 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13269 process_stratum_target parameter.
13270 (clear_inline_frame_state (thread_info*)): Declare.
13271 * linux-fork.c (delete_checkpoint_command): Pass target down to
13272 find_thread_ptid.
13273 (checkpoint_command): Adjust.
13274 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13275 instead of just tweaking inferior_ptid.
13276 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13277 (exit_lwp): Pass target down to find_thread_ptid.
13278 (attach_proc_task_lwp_callback): Pass target down to
13279 add_thread/set_running/set_executing.
13280 (linux_nat_target::attach): Pass target down to
13281 thread_change_ptid.
13282 (get_detach_signal): Pass target down to find_thread_ptid.
13283 Consider last target status's target.
13284 (linux_resume_one_lwp_throw, resume_lwp)
13285 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13286 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13287 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13288 (linux_nat_target::async_wait_fd): New.
13289 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13290 target down.
13291 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13292 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13293 * linux-thread-db.c (struct thread_db_info::process_target): New
13294 field.
13295 (add_thread_db_info): Save target.
13296 (get_thread_db_info): New process_stratum_target parameter. Also
13297 match target.
13298 (delete_thread_db_info): New process_stratum_target parameter.
13299 Also match target.
13300 (thread_from_lwp): Adjust to pass down target.
13301 (thread_db_notice_clone): Pass down target.
13302 (check_thread_db_callback): Pass down target.
13303 (try_thread_db_load_1): Always push the thread_db target.
13304 (try_thread_db_load, record_thread): Pass target down.
13305 (thread_db_target::detach): Pass target down. Always unpush the
13306 thread_db target.
13307 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13308 target down. Always unpush the thread_db target.
13309 (find_new_threads_callback, thread_db_find_new_threads_2)
13310 (thread_db_target::update_thread_list): Pass target down.
13311 (thread_db_target::pid_to_str): Pass current inferior down.
13312 (thread_db_target::get_thread_local_address): Pass target down.
13313 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13314 target down.
13315 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13316 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13317 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13318 (procfs_init_inferior): Rename to ...
13319 (procfs_target::procfs_init_inferior): ... this and adjust.
13320 (procfs_target::create_inferior, procfs_notice_thread)
13321 (procfs_do_thread_registers): Adjust.
13322 * ppc-fbsd-tdep.c: Include "inferior.h".
13323 (ppcfbsd_get_thread_local_address): Pass down target.
13324 * proc-service.c (ps_xfer_memory): Switch current inferior and
13325 program space as well.
13326 (get_ps_regcache): Pass target down.
13327 * process-stratum-target.c
13328 (process_stratum_target::thread_address_space)
13329 (process_stratum_target::thread_architecture): Pass target down.
13330 * process-stratum-target.h
13331 (process_stratum_target::threads_executing): New field.
13332 (as_process_stratum_target): New.
13333 * ravenscar-thread.c
13334 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13335 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13336 down.
13337 * record-btrace.c (record_btrace_target::info_record): Adjust.
13338 (record_btrace_target::record_method)
13339 (record_btrace_target::record_is_replaying)
13340 (record_btrace_target::fetch_registers)
13341 (get_thread_current_frame_id, record_btrace_target::resume)
13342 (record_btrace_target::wait, record_btrace_target::stop): Pass
13343 target down.
13344 * record-full.c (record_full_wait_1): Switch to event thread.
13345 Pass target down.
13346 * regcache.c (regcache::regcache)
13347 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13348 process_stratum_target parameter and handle it.
13349 (current_thread_target): New global.
13350 (get_thread_regcache): Add process_stratum_target parameter and
13351 handle it. Switch inferior before calling target method.
13352 (get_thread_regcache): Pass target down.
13353 (get_thread_regcache_for_ptid): Pass target down.
13354 (registers_changed_ptid): Add process_stratum_target parameter and
13355 handle it.
13356 (registers_changed_thread, registers_changed): Pass target down.
13357 (test_get_thread_arch_aspace_regcache): New.
13358 (current_regcache_test): Define a couple local test_target_ops
13359 instances and use them for testing.
13360 (readwrite_regcache): Pass process_stratum_target parameter.
13361 (cooked_read_test, cooked_write_test): Pass mock_target down.
13362 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13363 (get_thread_arch_aspace_regcache): Add process_stratum_target
13364 parameter.
13365 (regcache::target): New method.
13366 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13367 (regcache::registers_changed_ptid): Add process_stratum_target
13368 parameter.
13369 (regcache::m_target): New field.
13370 (registers_changed_ptid): Add process_stratum_target parameter.
13371 * remote.c (remote_state::supports_vCont_probed): New field.
13372 (remote_target::async_wait_fd): New method.
13373 (remote_unpush_and_throw): Add remote_target parameter.
13374 (get_current_remote_target): Adjust.
13375 (remote_target::remote_add_inferior): Push target.
13376 (remote_target::remote_add_thread)
13377 (remote_target::remote_notice_new_inferior)
13378 (get_remote_thread_info): Pass target down.
13379 (remote_target::update_thread_list): Skip threads of inferiors
13380 bound to other targets. (remote_target::close): Don't discard
13381 inferiors. (remote_target::add_current_inferior_and_thread)
13382 (remote_target::process_initial_stop_replies)
13383 (remote_target::start_remote)
13384 (remote_target::remote_serial_quit_handler): Pass down target.
13385 (remote_target::remote_unpush_target): New remote_target
13386 parameter. Unpush the target from all inferiors.
13387 (remote_target::remote_unpush_and_throw): New remote_target
13388 parameter. Pass it down.
13389 (remote_target::open_1): Check whether the current inferior has
13390 execution instead of checking whether any inferior is live. Pass
13391 target down.
13392 (remote_target::remote_detach_1): Pass down target. Use
13393 remote_unpush_target.
13394 (extended_remote_target::attach): Pass down target.
13395 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13396 (remote_target::append_resumption): Pass down target.
13397 (remote_target::append_pending_thread_resumptions)
13398 (remote_target::remote_resume_with_hc, remote_target::resume)
13399 (remote_target::commit_resume): Pass down target.
13400 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13401 (remote_target::interrupt_query)
13402 (remote_target::remove_new_fork_children)
13403 (remote_target::check_pending_events_prevent_wildcard_vcont)
13404 (remote_target::remote_parse_stop_reply)
13405 (remote_target::process_stop_reply): Pass down target.
13406 (first_remote_resumed_thread): New remote_target parameter. Pass
13407 it down.
13408 (remote_target::wait_as): Pass down target.
13409 (unpush_and_perror): New remote_target parameter. Pass it down.
13410 (remote_target::readchar, remote_target::remote_serial_write)
13411 (remote_target::getpkt_or_notif_sane_1)
13412 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13413 down target.
13414 (remote_target::mourn_inferior): Pass down target. Use
13415 remote_unpush_target.
13416 (remote_target::core_of_thread)
13417 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13418 (remote_target::pid_to_exec_file)
13419 (remote_target::thread_handle_to_thread_info): Pass down target.
13420 (remote_target::async_wait_fd): New.
13421 * riscv-fbsd-tdep.c: Include "inferior.h".
13422 (riscv_fbsd_get_thread_local_address): Pass down target.
13423 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13424 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13425 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13426 Adjust.
13427 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13428 * solib-svr4.c (enable_break): Pass down target.
13429 * spu-multiarch.c (parse_spufs_run): Pass down target.
13430 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13431 * target-delegates.c: Regenerate.
13432 * target.c (g_target_stack): Delete.
13433 (current_top_target): Return the current inferior's top target.
13434 (target_has_execution_1): Refer to the passed-in inferior's top
13435 target.
13436 (target_supports_terminal_ours): Check whether the initial
13437 inferior was already created.
13438 (decref_target): New.
13439 (target_stack::push): Incref/decref the target.
13440 (push_target, push_target, unpush_target): Adjust.
13441 (target_stack::unpush): Defref target.
13442 (target_is_pushed): Return bool. Adjust to refer to the current
13443 inferior's target stack.
13444 (dispose_inferior): Delete, and inline parts ...
13445 (target_preopen): ... here. Only dispose of the current inferior.
13446 (target_detach): Hold strong target reference while detaching.
13447 Pass target down.
13448 (target_thread_name): Add assertion.
13449 (target_resume): Pass down target.
13450 (target_ops::beneath, find_target_at): Adjust to refer to the
13451 current inferior's target stack.
13452 (get_dummy_target): New.
13453 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13454 has a thread running.
13455 (initialize_targets): Rename to ...
13456 (_initialize_target): ... this.
13457 * target.h: Include "gdbsupport/refcounted-object.h".
13458 (struct target_ops): Inherit refcounted_object.
13459 (target_ops::shortname, target_ops::longname): Make const.
13460 (target_ops::async_wait_fd): New method.
13461 (decref_target): Declare.
13462 (struct target_ops_ref_policy): New.
13463 (target_ops_ref): New typedef.
13464 (get_dummy_target): Declare function.
13465 (target_is_pushed): Return bool.
13466 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13467 (all_matching_threads_iterator::all_matching_threads_iterator):
13468 Handle filter target.
13469 * thread-iter.h (struct all_matching_threads_iterator, struct
13470 all_matching_threads_range, class all_non_exited_threads_range):
13471 Filter by target too. Remove explicit.
13472 * thread.c (threads_executing): Delete.
13473 (inferior_thread): Pass down current inferior.
13474 (clear_thread_inferior_resources): Pass down thread pointer
13475 instead of ptid_t.
13476 (add_thread_silent, add_thread_with_info, add_thread): Add
13477 process_stratum_target parameter. Use it for thread and inferior
13478 searches.
13479 (is_current_thread): New.
13480 (thread_info::deletable): Use it.
13481 (find_thread_ptid, thread_count, in_thread_list)
13482 (thread_change_ptid, set_resumed, set_running): New
13483 process_stratum_target parameter. Pass it down.
13484 (set_executing): New process_stratum_target parameter. Pass it
13485 down. Adjust reference to 'threads_executing'.
13486 (threads_are_executing): New process_stratum_target parameter.
13487 Adjust reference to 'threads_executing'.
13488 (set_stop_requested, finish_thread_state): New
13489 process_stratum_target parameter. Pass it down.
13490 (switch_to_thread): Also match inferior.
13491 (switch_to_thread): New process_stratum_target parameter. Pass it
13492 down.
13493 (update_threads_executing): Reimplement.
13494 * top.c (quit_force): Pop targets from all inferior.
13495 (gdb_init): Don't call initialize_targets.
13496 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13497 Declare.
13498 (windows_add_thread, windows_delete_thread): Adjust.
13499 (get_windows_debug_event): Rename to ...
13500 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13501 * tracefile-tfile.c (tfile_target_open): Pass down target.
13502 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13503 Forward declare.
13504 (switch_to_thread): Add process_stratum_target parameter.
13505 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13506 parameter. Use it.
13507 (mi_on_resume): Pass target down.
13508 * nat/fork-inferior.c (startup_inferior): Add
13509 process_stratum_target parameter. Pass it down.
13510 * nat/fork-inferior.h (startup_inferior): Add
13511 process_stratum_target parameter.
13512 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13513
13514 2020-01-10 Pedro Alves <palves@redhat.com>
13515
13516 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13517 directly. Instead find the first thread in the thread list and
13518 use switch_to_thread.
13519
13520 2020-01-10 Pedro Alves <palves@redhat.com>
13521
13522 * remote.c (remote_target::remote_add_inferior): Don't bind a
13523 process to the current inferior if the current inferior is already
13524 bound to a process.
13525
13526 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13527 Pedro Alves <palves@redhat.com>
13528
13529 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13530 If no process is specified, return null_ptid instead of
13531 inferior_ptid.
13532 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13533 TARGET_WAITKIND_SIGNALLED with no pid.
13534
13535 2020-01-10 Pedro Alves <palves@redhat.com>
13536
13537 * remote.c (first_remote_resumed_thread): New.
13538 (remote_target::wait_as): Use it as default event_ptid instead of
13539 inferior_ptid.
13540
13541 2020-01-10 Pedro Alves <palves@redhat.com>
13542
13543 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13544
13545 2020-01-10 Pedro Alves <palves@redhat.com>
13546
13547 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13548 not -1.
13549
13550 2020-01-10 Pedro Alves <palves@redhat.com>
13551
13552 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13553 ptid to get_last_target_status.
13554 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13555 ptid to get_last_target_status.
13556 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13557 get_last_target_status.
13558 (info_program_command): Don't pass a target_waitstatus to
13559 get_last_target_status.
13560 * infrun.c (init_wait_for_inferior): Use
13561 nullify_last_target_wait_ptid.
13562 (get_last_target_status): Handle nullptr arguments.
13563 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13564 (print_stop_event): Don't pass a ptid to get_last_target_status.
13565 (normal_stop): Don't pass a ptid to get_last_target_status.
13566 * infrun.h (get_last_target_status, set_last_target_status): Move
13567 comments here and update.
13568 (nullify_last_target_wait_ptid): Declare.
13569 * linux-fork.c (fork_load_infrun_state): Remove local extern
13570 declaration of nullify_last_target_wait_ptid.
13571 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13572 to get_last_target_status.
13573
13574 2020-01-10 Pedro Alves <palves@redhat.com>
13575
13576 * gdbthread.h (scoped_restore_current_thread)
13577 <dont_restore, restore, m_dont_restore>: Declare.
13578 * thread.c (thread_alive): Add assertion. Return bool.
13579 (switch_to_thread_if_alive): New.
13580 (prune_threads): Switch inferior/thread.
13581 (print_thread_info_1): Switch thread before calling target methods.
13582 (scoped_restore_current_thread::restore): New, factored out from
13583 ...
13584 (scoped_restore_current_thread::~scoped_restore_current_thread):
13585 ... this.
13586 (scoped_restore_current_thread::scoped_restore_current_thread):
13587 Add assertion.
13588 (thread_apply_all_command, thread_select): Use
13589 switch_to_thread_if_alive.
13590 * infrun.c (proceed, restart_threads, handle_signal_stop)
13591 (switch_back_to_stepped_thread): Switch current thread before
13592 calling target methods.
13593
13594 2020-01-10 Pedro Alves <palves@redhat.com>
13595
13596 * inferior.c (switch_to_inferior_no_thread): New function,
13597 factored out from ...
13598 (inferior_command): ... here.
13599 * inferior.h (switch_to_inferior_no_thread): Declare.
13600 * mi/mi-main.c (run_one_inferior): Use
13601 switch_to_inferior_no_thread.
13602
13603 2020-01-10 Pedro Alves <palves@redhat.com>
13604
13605 * infcmd.c (kill_command): Remove dead code.
13606
13607 2020-01-10 Pedro Alves <palves@redhat.com>
13608
13609 * remote.c (remote_target::mourn_inferior): No longer check
13610 whether the target is running.
13611
13612 2020-01-10 Pedro Alves <palves@redhat.com>
13613
13614 * corelow.c (core_target::has_execution): Change parameter type to
13615 inferior pointer.
13616 * inferior.c (number_of_live_inferiors): Use
13617 inferior::has_execution instead of target_has_execution_1.
13618 * inferior.h (inferior::has_execution): New.
13619 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13620 inferior::has_execution instead of target_has_execution_1.
13621 * process-stratum-target.c
13622 (process_stratum_target::has_execution): Change parameter type to
13623 inferior pointer. Check the inferior's PID instead of
13624 inferior_ptid.
13625 * process-stratum-target.h
13626 (process_stratum_target::has_execution): Change parameter type to
13627 inferior pointer.
13628 * record-full.c (record_full_core_target::has_execution): Change
13629 parameter type to inferior pointer.
13630 * target.c (target_has_execution_1): Change parameter type to
13631 inferior pointer.
13632 (target_has_execution_current): Adjust.
13633 * target.h (target_ops::has_execution): Change parameter type to
13634 inferior pointer.
13635 (target_has_execution_1): Change parameter type to inferior
13636 pointer. Change return type to bool.
13637 * tracefile.h (tracefile_target::has_execution): Change parameter
13638 type to inferior pointer.
13639
13640 2020-01-10 Pedro Alves <palves@redhat.com>
13641
13642 * exceptions.c (print_flush): Remove current_top_target() check.
13643
13644 2020-01-10 Pedro Alves <palves@redhat.com>
13645
13646 * remote.c (show_remote_exec_file): Show the current inferior's
13647 exec-file instead of the command variable's value.
13648
13649 2020-01-10 Pedro Alves <palves@redhat.com>
13650
13651 * record-full.c (record_full_resume_ptid): New global.
13652 (record_full_target::resume): Set it.
13653 (record_full_wait_1): Use record_full_resume_ptid instead of
13654 inferior_ptid.
13655
13656 2020-01-10 Pedro Alves <palves@redhat.com>
13657
13658 * gdbthread.h (scoped_restore_current_thread)
13659 <dont_restore, restore, m_dont_restore>: Declare.
13660 * thread.c (thread_alive): Add assertion. Return bool.
13661 (switch_to_thread_if_alive): New.
13662 (prune_threads): Switch inferior/thread.
13663 (print_thread_info_1): Switch thread before calling target methods.
13664 (scoped_restore_current_thread::restore): New, factored out from
13665 ...
13666 (scoped_restore_current_thread::~scoped_restore_current_thread):
13667 ... this.
13668 (scoped_restore_current_thread::scoped_restore_current_thread):
13669 Add assertion.
13670 (thread_apply_all_command, thread_select): Use
13671 switch_to_thread_if_alive.
13672
13673 2020-01-10 George Barrett <bob@bob131.so>
13674
13675 * stap-probe.c (stap_modify_semaphore): Don't check for null
13676 semaphores.
13677 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13678 for null semaphores.
13679
13680 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13681
13682 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13683 all source windows, and maintain horizontal scroll status while
13684 doing so.
13685
13686 2020-01-09 Tom Tromey <tom@tromey.com>
13687
13688 PR tui/18932:
13689 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13690 update_source_window, not print_source_lines.
13691
13692 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 * tui/tui.c (tui_enable): Register tui hooks after calling
13695 tui_display_main.
13696
13697 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13698
13699 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13700
13701 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13702
13703 * thread.c (print_thread_info_1): Fix indentation.
13704
13705 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13706
13707 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13708 unique_xmalloc_ptr outside the if to always free the demangled name.
13709
13710 2020-01-08 Tom Tromey <tromey@adacore.com>
13711
13712 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13713 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13714 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13715 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13716 Remove.
13717 (section_offsets): New typedef.
13718 * symtab.c (fixup_section, get_msymbol_address): Update.
13719 * symmisc.c (dump_msymbols): Update.
13720 * symfile.h (relative_addr_info_to_section_offsets)
13721 (symfile_map_offsets_to_segments): Update.
13722 * symfile.c (build_section_addr_info_from_objfile)
13723 (init_objfile_sect_indices): Update.
13724 (struct place_section_arg): Change type of "offsets".
13725 (place_section): Update.
13726 (relative_addr_info_to_section_offsets): Change type of
13727 "section_offsets". Remove "num_sections" parameter.
13728 (default_symfile_offsets, syms_from_objfile_1)
13729 (set_objfile_default_section_offset): Update.
13730 (reread_symbols): No need to preserve section offsets by hand.
13731 (symfile_map_offsets_to_segments): Change type of "offsets".
13732 * stap-probe.c (relocate_address): Update.
13733 * stabsread.h (process_one_symbol): Update.
13734 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13735 (solib_target_relocate_section_addresses): Update.
13736 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13737 Update.
13738 * solib-frv.c (frv_relocate_main_executable): Update.
13739 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13740 * solib-aix.c (solib_aix_get_section_offsets): Change return
13741 type.
13742 (solib_aix_solib_create_inferior_hook): Update.
13743 * remote.c (remote_target::get_offsets): Update.
13744 * psymtab.c (find_pc_sect_psymtab): Update.
13745 * psympriv.h (struct partial_symbol) <address, text_low,
13746 text_high>: Update.
13747 * objfiles.h (obj_section_offset): Update.
13748 (struct objfile) <section_offsets>: Change type.
13749 <num_sections>: Remove.
13750 (objfile_relocate): Update.
13751 * objfiles.c (entry_point_address_query): Update
13752 (relocate_one_symbol): Change type of "section_offsets".
13753 (objfile_relocate1, objfile_relocate1): Change type of
13754 "new_offsets".
13755 (objfile_rebase1): Update.
13756 * mipsread.c (mipscoff_symfile_read): Update.
13757 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13758 parameter.
13759 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13760 (parse_external, psymtab_to_symtab_1): Update.
13761 * machoread.c (macho_symfile_offsets): Update.
13762 * ia64-tdep.c (ia64_find_unwind_table): Update.
13763 * hppa-tdep.c (read_unwind_info): Update.
13764 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13765 * dwarf2read.c (create_addrmap_from_index)
13766 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13767 (process_psymtab_comp_unit_reader, add_partial_symbol)
13768 (add_partial_subprogram, process_full_comp_unit)
13769 (read_file_scope, read_func_scope, read_lexical_block_scope)
13770 (read_call_site_scope, dwarf2_rnglists_process)
13771 (dwarf2_ranges_process, dwarf2_ranges_read)
13772 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13773 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13774 Update.
13775 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13776 Update.
13777 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13778 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13779 (process_one_symbol): Change type of "section_offsets".
13780 * ctfread.c (get_objfile_text_range): Update.
13781 * coffread.c (coff_symtab_read, enter_linenos)
13782 (process_coff_symbol): Update.
13783 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13784 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13785
13786 2020-01-08 Tom Tromey <tromey@adacore.com>
13787
13788 * dwarf2read.c (parse_macro_definition): Use std::string.
13789 (parse_macro_definition): Likewise.
13790
13791 2020-01-08 Tom Tromey <tromey@adacore.com>
13792
13793 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13794 (ATTR_ALLOC_CHUNK): Remove.
13795
13796 2020-01-08 Tom Tromey <tromey@adacore.com>
13797
13798 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13799
13800 2020-01-08 Tom Tromey <tromey@adacore.com>
13801
13802 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13803 (dwarf2_compute_name, open_dwo_file): Likewise.
13804 (process_enumeration_scope): Use std::vector.
13805 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13806 (partial_die_info::fixup, dwarf2_start_subfile)
13807 (guess_full_die_structure_name, dwarf2_name): Likewise.
13808 (determine_prefix): Update.
13809 (guess_full_die_structure_name): Make return type const.
13810 (partial_die_full_name): Return unique_xmalloc_ptr.
13811 (DW_FIELD_ALLOC_CHUNK): Remove.
13812
13813 2020-01-07 Tom Tromey <tromey@adacore.com>
13814
13815 PR build/24937:
13816 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13817
13818 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13819
13820 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13821
13822 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13823
13824 * stack.c (print_frame_info): Move disassemble_next_line code
13825 inside source_print block.
13826
13827 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13828
13829 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13830 gdb/signals.h, as we are now using native signal symbols.
13831
13832 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13833
13834 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13835 overflow by an early check of content vs threshold.
13836 * tui/tui-source.c (tui_source_window::line_is_displayed):
13837 Likewise.
13838
13839 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13840
13841 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13842
13843 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13844
13845 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13846 export table if no section contains it's RVA.
13847
13848 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13849
13850 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13851
13852 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13853
13854 * source.c (print_source_lines_base): Set last_line_listed.
13855
13856 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13857
13858 * tui/tui-disasm.c: Remove trailing spaces.
13859
13860 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13861 Pedro Alves <palves@redhat.com>
13862
13863 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13864 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13865 (windows_gdb_signal_to_target): New function, uses the above
13866 enumeration to convert GDB internal signal codes to equivalent
13867 Windows codes.
13868 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13869 * windows-nat.c: Include "gdb_wait.h".
13870 (get_windows_debug_event): Extract the fatal exception from the
13871 exit status and convert to the equivalent Posix signal number.
13872 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13873 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13874 * gdbsupport/gdb_wait.c: New file, implements
13875 windows_status_to_termsig.
13876 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13877 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13878
13879 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13880
13881 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13882 show_layout.
13883
13884 2020-01-05 Luis Machado <luis.machado@linaro.org>
13885
13886 * aarch64-linux-nat.c
13887 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13888 and bfd_mach_aarch64.
13889
13890 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13891
13892 * ui-file.c (stdio_file::can_emit_style_escape)
13893 (tee_file::can_emit_style_escape): Ensure style is used also on
13894 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13895 to gdb_stdout.
13896 * main.c (set_gdb_data_directory): Use file style to output the
13897 warning that the given pathname is not a directory.
13898 * top.c (show_history_filename, gdb_safe_append_history)
13899 (show_gdb_datadir): Use file style.
13900
13901 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13902
13903 * solib-target.c (struct lm_info_target):
13904 Change offsets to be a unique_xmalloc_ptr.
13905 (solib_target_relocate_section_addresses): Update.
13906
13907 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13908
13909 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13910
13911 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13912
13913 * MAINTAINERS (Write After Approval): Add myself.
13914
13915 2020-01-02 Luis Machado <luis.machado@linaro.org>
13916
13917 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13918 Cell BE architecture.
13919 * target.h (struct target_ops) <thread_architecture>: Likewise.
13920
13921 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13922
13923 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13924
13925 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13926
13927 * MAINTAINERS (Write After Approval): Add myself.
13928
13929 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13930
13931 * gdbarch.sh: Update copyright year range of generated files.
13932
13933 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13934
13935 Update copyright year range in all GDB files.
13936
13937 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13938
13939 * copyright.py: Convert to Python 3.
13940
13941 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13942
13943 * copyright.py: Adapt after move of gnulib directory from gdb
13944 directory to toplevel directory.
13945
13946 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13947
13948 * copyright.py (main): Exit if run from the wrong directory.
13949
13950 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13951
13952 * top.c (print_gdb_version): Change copyright year to 2020.
13953
13954 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13955
13956 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13957
13958 For older changes see ChangeLog-2019.
13959 \f
13960 Local Variables:
13961 mode: change-log
13962 left-margin: 8
13963 fill-column: 74
13964 version-control: never
13965 coding: utf-8
13966 End:
This page took 0.374519 seconds and 4 git commands to generate.