]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use htab_up in dwarf2/read.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
280a9412
TT
12020-09-17 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4
6108fd18
TT
52020-09-17 Tom Tromey <tom@tromey.com>
6
7 * value.c (preserve_values): Update.
8 * python/py-type.c (save_objfile_types): Update.
9 * guile/scm-type.c (save_objfile_types): Update.
10 * gdbtypes.h (create_copied_types_hash): Return htab_up.
11 * gdbtypes.c (create_copied_types_hash): Return htab_up.
12 * compile/compile-object-run.c (compile_object_run): Update.
13
fa9b1164
TT
142020-09-17 Tom Tromey <tom@tromey.com>
15
16 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
17 Remove.
18 <m_table>: Now htab_up.
19 * typeprint.c (typedef_hash_table::recursively_update)
20 (typedef_hash_table::add_template_parameters)
21 (typedef_hash_table::typedef_hash_table): Update.
22 (typedef_hash_table::~typedef_hash_table): Remove.
23 (typedef_hash_table::typedef_hash_table)
24 (typedef_hash_table::find_global_typedef)
25 (typedef_hash_table::find_typedef): Update.
26
eb53f105
TT
272020-09-17 Tom Tromey <tom@tromey.com>
28
29 * target-descriptions.c (tdesc_use_registers): Use htab_up.
30
7a8a5d47
TT
312020-09-17 Tom Tromey <tom@tromey.com>
32
33 * linespec.c (class decode_compound_collector)
34 <~decode_compound_collector>: Remove.
35 <m_unique_syms>: Now htab_up.
36 (decode_compound_collector::operator ()): Update.
37 (class symtab_collector) <~symtab_collector>: Remove.
38 <m_symtab_table>: Now htab_up.
39 (symtab_collector::operator ()): Update.
40
99032cfc
TT
412020-09-17 Tom Tromey <tom@tromey.com>
42
43 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
44 (filename_seen_cache::clear): Update.
45 (~filename_seen_cache): Remove.
46 (filename_seen_cache::seen): Update.
47 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
48 htab_up.
49 <~filename_seen_cache>: Remove.
50 <traverse>: Update.
51
32580f6d
TT
522020-09-17 Tom Tromey <tom@tromey.com>
53
54 * completer.c (completion_tracker::discard_completions)
55 (completion_tracker::~completion_tracker)
56 (completion_tracker::maybe_add_completion)
57 (completion_tracker::remove_completion)
58 (completion_tracker::recompute_lowest_common_denominator)
59 (completion_tracker::build_completion_result): Update.
60 * completer.h (class completion_tracker) <have_completions>:
61 Update.
62 <m_entries_hash>: Now htab_up.
63
c1fb9836
TT
642020-09-17 Tom Tromey <tom@tromey.com>
65
66 * breakpoint.c (ambiguous_names_p): Use htab_up.
67
88f07206
TT
682020-09-17 Tom Tromey <tom@tromey.com>
69
70 * auto-load.c (struct auto_load_pspace_info)
71 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
72 <loaded_script_files, loaded_script_texts>: Change type to
73 htab_up.
74 (~auto_load_pspace_info) Remove.
75 (init_loaded_scripts_info, maybe_add_script_file)
76 (maybe_add_script_text, auto_load_info_scripts): Update.
77
9519b2ee
TT
782020-09-17 Tom Tromey <tromey@adacore.com>
79
80 * c-exp.y (name_obstack): Now static.
81
d2cd4113
CC
822020-09-17 Chungyi Chi <demonic@csie.io>
83
84 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
85
b650a282
SM
862020-09-16 Simon Marchi <simon.marchi@efficios.com>
87
88 * breakpoint.h (init_catchpoint): Change int parameter to bool.
89 (add_solib_catchpoint): Likewise.
90 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
91 to bool.
92 (add_solib_catchpoint): Change int parameter/variable to bool.
93 (catch_load_or_unload): Likewise.
94 (init_catchpoint): Likewise.
95 (create_fork_vfork_event_catchpoint): Likewise.
96 (catch_fork_command_1): Likewise.
97 (catch_exec_command_1): Likewise.
98
4d0bcfcf
SM
992020-09-16 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
102 Change instance_flags to m_instance_flags.
103
fe830662
TT
1042020-09-16 Tom Tromey <tromey@adacore.com>
105
106 PR gdb/26598:
107 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
108
fe5ddfc3
JB
1092020-09-16 John Baldwin <jhb@FreeBSD.org>
110
111 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
112 PL_FLAG_EXEC.
113 (fbsd_nat_target::insert_exec_catchpoint)
114 (fbsd_nat_target::remove_exec_catchpoint): Always define.
115 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
116 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
117
e911c666
JB
1182020-09-16 John Baldwin <jhb@FreeBSD.org>
119
120 * configure.ac: Remove check for kinfo_getvmmap().
121 * configure, config.in: Regenerate.
122 * fbsd-nat.c (fbsd_read_mapping): Remove
123 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
124 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
125 kinfo_get_vmmap() are always present.
126
1f17d372
JB
1272020-09-16 John Baldwin <jhb@FreeBSD.org>
128
129 * fbsd-nat.c: Always include support for
130 TARGET_OBJECT_SIGNAL_INFO.
131
bcb1da7f
JB
1322020-09-16 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
135 sysctl and remove procfs fallback.
136
5515f729
JB
1372020-09-16 John Baldwin <jhb@FreeBSD.org>
138
139 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
140 * fbsd-nat.h: Likewise.
141
da1df1db
TBA
1422020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
145 argument.
146
0e25e767
AB
1472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * ada-lang.c (ada_language_data): Delete.
150 (ada_language): Remove references to ada_language_data.
151 * c-lang.c (c_language_data): Delete.
152 (c_language): Remove references to c_language_data.
153 (cplus_language_data): Delete.
154 (cplus_language): Remove references to cplus_language_data.
155 (asm_language_data): Delete.
156 (asm_language): Remove references to asm_language_data.
157 (minimal_language_data): Delete.
158 (minimal_language): Remove references to minimal_language_data.
159 * d-lang.c (d_language_data): Delete.
160 (d_language): Remove references to d_language_data.
161 * f-lang.c (f_language_data): Delete.
162 (f_language): Remove references to f_language_data.
163 * go-lang.c (go_language_data): Delete.
164 (go_language): Remove references to go_language_data.
165 * language.c (unknown_language_data): Delete.
166 (unknown_language): Remove references to unknown_language_data.
167 (auto_language_data): Delete.
168 (auto_language): Remove references to auto_language_data.
169 * language.h (language_data): Delete struct.
170 (language_defn): No longer inherit from language_data.
171 * m2-lang.c (m2_language_data): Delete.
172 (m2_language): Remove references to m2_language_data.
173 * objc-lang.c (objc_language_data): Delete.
174 (objc_language): Remove references to objc_language_data.
175 * opencl-lang.c (opencl_language_data): Delete.
176 (opencl_language): Remove references to opencl_language_data.
177 * p-lang.c (pascal_language_data): Delete.
178 (pascal_language): Remove references to pascal_language_data.
179 * rust-lang.c (rust_language_data): Delete.
180 (rust_language): Remove references to rust_language_data.
181
b7c6e27d
AB
1822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * ada-lang.c (ada_language_data): Remove la_op_print_tab
185 initializer.
186 (ada_language::opcode_print_table): New member function.
187 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
188 (c_language::opcode_print_table): New member function.
189 (cplus_language_data): Remove la_op_print_tab initializer.
190 (cplus_language::opcode_print_table): New member function.
191 (asm_language_data): Remove la_op_print_tab initializer.
192 (asm_language::opcode_print_table): New member function.
193 (minimal_language_data): Remove la_op_print_tab initializer.
194 (minimal_language::opcode_print_table): New member function.
195 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
196 (d_language::opcode_print_table): New member function.
197 * expprint.c (print_subexp_standard): Update call to
198 opcode_print_table.
199 (op_string): Likewise.
200 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
201 (f_language::opcode_print_table): New member function.
202 * go-lang.c (go_language_data): Remove la_op_print_tab
203 initializer.
204 (go_language::opcode_print_table): New member function.
205 * language.c (unknown_language_data): Remove la_op_print_tab
206 initializer.
207 (unknown_language::opcode_print_table): New member function.
208 (auto_language_data): Remove la_op_print_tab initializer.
209 (auto_language::opcode_print_table): New member function.
210 * language.h (language_data): Remove la_op_print_tab field.
211 (language_defn::opcode_print_table): Declare new member function.
212 * m2-lang.c (m2_language_data): Remove la_op_print_tab
213 initializer.
214 (m2_language::opcode_print_table): New member function.
215 * objc-lang.c (objc_language_data): Remove la_op_print_tab
216 initializer.
217 (objc_language::opcode_print_table): New member function.
218 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
219 initializer.
220 (opencl_language::opcode_print_table): New member function.
221 * p-lang.c (pascal_language_data): Remove la_op_print_tab
222 initializer.
223 (pascal_language::opcode_print_table): New member function.
224 * rust-lang.c (rust_language_data): Remove la_op_print_tab
225 initializer.
226 (rust_language::opcode_print_table): New member function.
227
5aba6ebe
AB
2282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
231 (ada_language::expression_ops): New member function.
232 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
233 (c_language::expression_ops): New member function.
234 (cplus_language_data): Remove la_exp_desc initializer.
235 (cplus_language::expression_ops): New member function.
236 (asm_language_data): Remove la_exp_desc initializer.
237 (asm_language::expression_ops): New member function.
238 (minimal_language_data): Remove la_exp_desc initializer.
239 (minimal_language::expression_ops): New member function.
240 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
241 (d_language::expression_ops): New member function.
242 * eval.c (evaluate_subexp): Update call to expression_ops.
243 * expprint.c (print_subexp): Likewise.
244 (op_name): Likewise.
245 (dump_subexp_body): Likewise.
246 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
247 (f_language::expression_ops): New member function.
248 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
249 (go_language::expression_ops): New member function.
250 * language.c (language_defn::expression_ops): New function.
251 (unknown_language_data): Remove la_exp_desc initializer.
252 (auto_language_data): Likewise.
253 * language.h (language_data): Remove la_exp_desc field.
254 (language_defn::expression_ops): Declare new member function.
255 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
256 (m2_language::expression_ops): New member function.
257 * objc-lang.c (objc_language_data): Remove la_exp_desc
258 initializer.
259 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
260 initializer.
261 (opencl_language::expression_ops): New member function.
262 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
263 * parse.c (operator_length): Update call to expression_ops.
264 (exp_iterate): Likewise.
265 * rust-lang.c (rust_language_data): Remove la_exp_desc
266 initializer.
267 (ruse_language::expression_ops): New member function.
268
b63a3f3f
AB
2692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 * ada-lang.c (ada_language_data): Remove la_varobj_ops
272 initializer.
273 (ada_language::varobj_ops): New member function.
274 * c-lang.c (c_language_data): Remove la_varobj_ops
275 initializer.
276 (cplus_language_data): Likewise.
277 (cplus_language::varobj_ops): New member function.
278 (asm_language_data): Remove la_varobj_ops initializer.
279 (minimal_language_data): Likewise.
280 * d-lang.c (d_language_data): Likewise.
281 * f-lang.c (f_language_data): Likewise.
282 * go-lang.c (go_language_data): Likewise.
283 * language.c (language_defn::varobj_ops): New function.
284 (unknown_language_data): Remove la_varobj_ops
285 initializer.
286 (auto_language_data): Likewise.
287 * language.h (language_data): Remove la_varobj_ops field.
288 (language_defn::varobj_ops): Declare new member function.
289 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
290 * objc-lang.c (objc_language_data): Likewise.
291 * opencl-lang.c (opencl_language_data): Likewise.
292 * p-lang.c (pascal_language_data): Likewise.
293 * rust-lang.c (rust_language_data): Likewise.
294 * varobj.c (varobj_create): Update call to varobj_ops.
295 * varobj.h (default_varobj_ops): Delete define.
296
1ac14a04
AB
2972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * ada-lang.c (ada_language_data): Remove la_macro_expansion
300 initializer.
301 * c-lang.c (c_language_data): Likewise.
302 (c_language::macro_expansion): New member function.
303 (cplus_language_data): Likewise.
304 (cplus_language::macro_expansion): New member function.
305 (asm_language_data): Likewise.
306 (asm_language::macro_expansion): New member function.
307 (minimal_language_data): Likewise.
308 (minimal_language::macro_expansion): New member function.
309 * d-lang.c (d_language_data): Remove la_macro_expansion
310 initializer.
311 * f-lang.c (f_language_data): Likewise.
312 * go-lang.c (go_language_data): Likewise.
313 * language.c (unknown_language_data): Likewise.
314 (auto_language_data): Likewise.
315 * language.h (language_data): Remove la_macro_expansion field.
316 (language_defn::macro_expansion): New member function.
317 * m2-lang.c (m2_language_data): Remove la_macro_expansion
318 initializer.
319 * objc-lang.c (objc_language_data): Likewise.
320 (objc_language::macro_expansion): New member function.
321 * opencl-lang.c (opencl_language_data): Likewise.
322 (opencl_language::macro_expansion): New member function.
323 * p-lang.c (pascal_language_data): Remove la_macro_expansion
324 initializer.
325 * rust-lang.c (rust_language_data): Likewise.
326 * symtab.c (default_collect_symbol_completion_matches_break_on):
327 Update call to macro_expansion.
328
3a3440fb
AB
3292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
330
331 * ada-lang.c (ada_language_data): Remove la_array_ordering
332 initializer.
333 * c-lang.c (c_language_data): Likewise.
334 (cplus_language_data): Likewise.
335 (asm_language_data): Likewise.
336 (minimal_language_data): Likewise.
337 * d-lang.c (d_language_data): Likewise.
338 * dwarf2/read.c (read_array_order): Update for call to
339 array_ordering.
340 * f-lang.c (f_language_data): Remove la_array_ordering
341 initializer.
342 (f_language::array_ordering): New member function.
343 * go-lang.c (go_language_data): Remove la_array_ordering
344 initializer.
345 * language.c (unknown_language_data): Likewise.
346 (auto_language_data): Likewise.
347 * language.h (language_data): Delete la_array_ordering field.
348 (language_defn::array_ordering): New member function.
349 * m2-lang.c (m2_language_data): Remove la_array_ordering
350 initializer.
351 * objc-lang.c (objc_language_data): Likewise.
352 * opencl-lang.c (opencl_language_data): Likewise.
353 * p-lang.c (pascal_language_data): Likewise.
354 * rust-lang.c (rust_language_data): Likewise.
355
0d201fa4
AB
3562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
359 initializer.
360 * c-lang.c (c_language_data): Likewise.
361 (cplus_language_data): Likewise.
362 (asm_language_data): Likewise.
363 (minimal_language_data): Likewise.
364 * d-lang.c (d_language_data): Likewise.
365 * f-lang.c (f_language_data): Likewise.
366 (f_language::case_sensitivity): New member function.
367 * go-lang.c (go_language_data): Remove la_case_sensitivity
368 initializer.
369 * language.c (enum case_mode): Moved here from language.h.
370 (case_mode): Make static.
371 (show_case_command): Update for case_sensitivity being a method.
372 (set_case_command): Likewise.
373 (set_range_case): Likewise.
374 (unknown_language_data): Remove la_case_sensitivity initializer.
375 (auto_language_data): Likewise.
376 * language.h (case_mode): Delete, move enum declaration to
377 language.c.
378 (language_data): Delete la_case_sensitivity field.
379 (language_defn::case_sensitivity): New member function.
380 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
381 initializer.
382 * objc-lang.c (objc_language_data): Likewise.
383 * opencl-lang.c (opencl_language_data): Likewise.
384 * p-lang.c (pascal_language_data): Likewise.
385 * rust-lang.c (rust_language_data): Likewise.
386
efdf6a73
AB
3872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
388
389 * ada-lang.c (ada_language_data): Remove la_range_check
390 initializer.
391 * c-lang.c (c_language_data): Likewise.
392 (cplus_language_data): Likewise.
393 (asm_language_data): Likewise.
394 (minimal_language_data): Likewise.
395 * d-lang.c (d_language_data): Likewise.
396 * f-lang.c (f_language_data): Likewise.
397 (f_language::range_checking_on_by_default): New member function.
398 * go-lang.c (go_language_data): Remove la_range_check initializer.
399 * language.c (enum range_mode): Moved here from language.h.
400 (range_mode): Made static.
401 (show_range_command): Update to use
402 range_checking_on_by_default.
403 (set_range_command): Likewise.
404 (set_range_case): Likewise.
405 (unknown_language_data): Remove la_range_check initializer.
406 (auto_language_data): Likewise.
407 * language.h (range_mode): Delete. Enum definition moved to
408 language.c.
409 (language_data): Remove la_range_check field.
410 (language_defn::range_checking_on_by_default): New member
411 function.
412 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
413 (m2_language::range_checking_on_by_default): New member function.
414 * objc-lang.c (objc_language_data): Remove la_range_check
415 initializer.
416 * opencl-lang.c (opencl_language_data): Likewise.
417 * p-lang.c (pascal_language_data): Likewise.
418 (pascal_language::range_checking_on_by_default): New member
419 function.
420 * rust-lang.c (rust_language_data): Remove la_range_check
421 initializer.
422 (rust_language::range_checking_on_by_default): New member
423 function.
424
bf92aec5
AB
4252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * dwarf2/read.c (dwarf2_physname): Remove special case for
428 language_go.
429 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
430 member function.
431
d3355e4d
AB
4322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
433
434 * ada-lang.c (ada_language_data): Remove
435 la_store_sym_names_in_linkage_form_p initializer.
436 (ada_language::store_sym_names_in_linkage_form_p): New member
437 function.
438 * c-lang.c (c_language_data): Remove
439 la_store_sym_names_in_linkage_form_p initializer.
440 (c_language::store_sym_names_in_linkage_form_p): New member
441 function.
442 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
443 initializer.
444 (asm_language_data): Likewise.
445 (asm_language::store_sym_names_in_linkage_form_p): New member
446 function.
447 (minimal_language_data): Remove
448 la_store_sym_names_in_linkage_form_p initializer.
449 (minimal_language::store_sym_names_in_linkage_form_p): New member
450 function.
451 * d-lang.c (d_language_data): Remove
452 la_store_sym_names_in_linkage_form_p initializer.
453 * dwarf2/read.c (dwarf2_physname): Update call to
454 store_sym_names_in_linkage_form_p.
455 * f-lang.c (f_language_data): Remove
456 la_store_sym_names_in_linkage_form_p initializer.
457 * go-lang.c (go_language_data): Remove
458 la_store_sym_names_in_linkage_form_p initializer.
459 * language.c (unknown_language_data): Remove
460 la_store_sym_names_in_linkage_form_p initializer.
461 (unknown_language::store_sym_names_in_linkage_form_p): New member
462 function.
463 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
464 initializer.
465 (auto_language::store_sym_names_in_linkage_form_p): New member
466 function.
467 * language.h (language_data): Remove
468 la_store_sym_names_in_linkage_form_p member variable.
469 (language_defn::store_sym_names_in_linkage_form_p): New member
470 function.
471 * m2-lang.c (m2_language_data): Remove
472 la_store_sym_names_in_linkage_form_p initializer.
473 * objc-lang.c (objc_language_data): Likewise.
474 * opencl-lang.c (opencl_language_data): Likewise.
475 * p-lang.c (pascal_language_data): Likewise.
476 * rust-lang.c (rust_language_data): Likewise.
477
22c12a6c
AB
4782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * ada-lang.c (ada_language_data): Remove string_lower_bound
481 initializer.
482 * c-lang.c (c_language_data): Likewise.
483 (cplus_language_data): Likewise.
484 (asm_language_data): Likewise.
485 (minimal_language_data): Likewise.
486 * d-lang.c (d_language_data): Likewise.
487 * f-lang.c (f_language_data): Likewise.
488 * go-lang.c (go_language_data): Likewise.
489 * language.c (unknown_language_data): Likewise.
490 (auto_language_data): Likewise.
491 * language.h (language_data): Remove string_lower_bound field.
492 (language_defn::string_lower_bound): New member function.
493 * m2-lang.c (m2_language_data): Remove string_lower_bound
494 initializer.
495 (m2_language::string_lower_bound): New member function.
496 * objc-lang.c (objc_language_data): Remove string_lower_bound
497 initializer.
498 * opencl-lang.c (opencl_language_data): Likewise.
499 * p-lang.c (pascal_language_data): Likewise.
500 * rust-lang.c (rust_language_data): Likewise.
501 * valops.c (value_cstring): Update call to string_lower_bound.
502 (value_string): Likewise.
503 * value.c (allocate_repeated_value): Likewise.
504
1c236ddd
AB
5052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * valops.c (value_repeat): Fix incorrect argument name in comment.
508
67bd3fd5
AB
5092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * ada-lang.c (ada_language_data): Remove c_style_arrays
512 initializer.
513 (ada_language::c_style_arrays_p): New member fuction.
514 * c-lang.c (c_language_data): Remove c_style_arrays
515 initializer.
516 (cplus_language_data): Likewise.
517 (asm_language_data): Likewise.
518 (minimal_language_data): Likewise.
519 * d-lang.c (d_language_data): Likewise.
520 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
521 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
522 (f_language::c_style_arrays_p): New member function.
523 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
524 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
525 * language.c (unknown_language_data): Remove c_style_arrays
526 initializer.
527 (auto_language_data): Likewise.
528 * language.h (language_data): Remove c_style_arrays field.
529 (language_defn::c_style_arrays_p): New member function.
530 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
531 (m2_language::c_style_arrays_p): New member function.
532 * objc-lang.c (objc_language_data): Remove c_style_arrays
533 initializer.
534 * opencl-lang.c (opencl_language_data): Likewise.
535 * p-lang.c (pascal_language_data): Likewise.
536 * rust-lang.c (rust_language_data): Likewise.
537 * valarith.c (value_subscript): Update call to c_style_arrays_p,
538 and update local variable to a bool.
539 * valops.c (value_cast): Update call to c_style_arrays_p.
540 (value_array): Likewise.
541 * value.c (coerce_array): Likewise.
542
85967615
AB
5432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * ada-lang.c (ada_language_data): Remove la_language 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 la_language field.
556 (language_defn::language_defn): Initialise la_language field.
557 (language_defn::la_language): New member variable.
558 * m2-lang.c (m2_language_data): Remove la_language field.
559 * objc-lang.c (objc_language_data): Likewise.
560 * opencl-lang.c (opencl_language_data): Likewise.
561 * p-lang.c (pascal_language_data): Likewise.
562 * rust-lang.c (rust_language_data): Likewise.
563
e171d6f1
AB
5642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * ada-lang.c (ada_extensions): Delete, moved into
567 ada_language::filename_extensions.
568 (ada_language_data): Remove la_filename_extensions initializer.
569 (ada_language::filename_extensions): New member function.
570 * c-lang.c (c_extensions): Delete, moved into
571 c_language::filename_extensions.
572 (c_language_data): Remove la_filename_extensions initializer.
573 (c_language::filename_extensions): New member function.
574 (cplus_extensions): Delete, moved into
575 cplus_language::filename_extensions.
576 (cplus_language_data): Remove la_filename_extensions initializer.
577 (cplus_language::filename_extensions): New member function.
578 (asm_extensions): Delete, moved into
579 asm_language::filename_extensions.
580 (asm_language_data): Remove la_filename_extensions initializer.
581 (asm_language::filename_extensions): New member function.
582 (minimal_language_data): Remove la_filename_extensions
583 initializer.
584 * d-lang.c (d_extensions): Delete, moved into
585 d_language::filename_extensions.
586 (d_language_data): Remove la_filename_extensions initializer.
587 (d_language::filename_extensions): New member function.
588 * f-lang.c (f_extensions): Delete, moved into
589 f_language::filename_extensions.
590 (f_language_data): Remove la_filename_extensions initializer.
591 (f_language::filename_extensions): New member function.
592 * go-lang.c (go_language_data): Remove la_filename_extensions
593 initializer.
594 * language.c (add_set_language_command): Update now that
595 filename_extensions returns a vector.
596 (unknown_language_data): Remove la_filename_extensions
597 initializer.
598 (auto_language_data): Likewise.
599 * language.h (language_data): Remove la_filename_extensions field.
600 (language_defn::filename_extensions): New member function.
601 * m2-lang.c (m2_language_data): Remove la_filename_extensions
602 initializer.
603 * objc-lang.c (objc_extensions): Delete, moved into
604 objc_language::filename_extensions.
605 (objc_language_data): Remove la_filename_extensions initializer.
606 (objc_language::filename_extensions): New member function.
607 * opencl-lang.c (opencl_language_data): Remove
608 la_filename_extensions initializer.
609 * p-lang.c (pascal_extensions): Delete, moved into
610 pascal_language::filename_extensions.
611 (pascal_language_data): Remove la_filename_extensions initializer.
612 (pascal_language::filename_extensions): New member function.
613 * rust-lang.c (rust_extensions): Delete, moved into
614 rust_language::filename_extensions.
615 (rust_language_data): Remove la_filename_extensions initializer.
616 (rust_language::filename_extensions): New member function.
617 * symfile.c (add_filename_language): Add new assert.
618
6f7664a9
AB
6192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * ada-lang.c (ada_language_data): Remove la_name and
622 la_natural_name initializers.
623 (ada_language::name): New member function.
624 (ada_language::natural_name): New member function.
625 * c-lang.c (c_language_data): Remove la_name and
626 la_natural_name initializers.
627 (c_language::name): New member function.
628 (c_language::natural_name): New member function.
629 (cplus_language_data): Remove la_name and
630 la_natural_name initializers.
631 (cplus_language::name): New member function.
632 (cplus_language::natural_name): New member function.
633 (asm_language_data): Remove la_name and
634 la_natural_name initializers.
635 (asm_language::name): New member function.
636 (asm_language::natural_name): New member function.
637 (minimal_language_data): Remove la_name and
638 la_natural_name initializers.
639 (minimal_language::name): New member function.
640 (minimal_language::natural_name): New member function.
641 * compile/compile.c (compile_to_object): Update call to
642 lanugage_defn::name.
643 * d-lang.c (d_language_data): Remove la_name and
644 la_natural_name initializers.
645 (d_language::name): New member function.
646 (d_language::natural_name): New member function.
647 * expprint.c (print_subexp_standard): Update call to
648 language_defn::name.
649 (dump_raw_expression): Likewise
650 (dump_prefix_expression): Likewise.
651 * f-lang.c (f_language_data): Remove la_name and
652 la_natural_name initializers.
653 (f_language::name): New member function.
654 (f_language::natural_name): New member function.
655 * go-lang.c (go_language_data): Remove la_name and
656 la_natural_name initializers.
657 (go_language::name): New member function.
658 (go_language::natural_name): New member function.
659 * language.c (show_language_command): Update call to
660 language_defn::name.
661 (set_language_command): Likewise.
662 (language_enum): Likewise.
663 (language_str): Likewise.
664 (add_set_language_command): Likewise, use
665 language_defn::natural_name in the doc string.
666 (unknown_language_data): Remove la_name and
667 la_natural_name initializers.
668 (unknown_language::name): New member function.
669 (unknown_language::natural_name): New member function.
670 (auto_language_data): Remove la_name and
671 la_natural_name initializers.
672 (auto_language::name): New member function.
673 (auto_language::natural_name): New member function.
674 (language_lookup_primitive_type_as_symbol): Update call to
675 language_defn::name.
676 * language.h (language_data): Remove la_name and la_natural_name
677 member variables.
678 (language_defn::name): New member function.
679 (language_defn::natural_name): New member function.
680 * m2-lang.c (m2_language_data): Remove la_name and
681 la_natural_name initializers.
682 (m2_language::name): New member function.
683 (m2_language::natural_name): New member function.
684 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
685 language_defn::natural_name.
686 * objc-lang.c (objc_language_data): Remove la_name and
687 la_natural_name initializers.
688 (objc_language::name): New member function.
689 (objc_language::natural_name): New member function.
690 * opencl-lang.c (opencl_language_data): Remove la_name and
691 la_natural_name initializers.
692 (opencl_language::name): New member function.
693 (opencl_language::natural_name): New member function.
694 * p-lang.c (pascal_language_data): Remove la_name and
695 la_natural_name initializers.
696 (pascal_language::name): New member function.
697 (pascal_language::natural_name): New member function.
698 * rust-lang.c (rust_language_data): Remove la_name and
699 la_natural_name initializers.
700 (rust_language::name): New member function.
701 (rust_language::natural_name): New member function.
702 * symtab.c (lookup_language_this): Update call to
703 language_defn::name.
704
5bae7c4e
AB
7052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * ada-lang.c (ada_language_data): Remove la_name_of_this
708 initializer.
709 * ax-gdb.c (gen_expr): Update call to name_of_this.
710 * c-exp.y (classify_name): Likewise.
711 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
712 (cplus_language_data): Likewise.
713 (cplus_language::name_of_this): New member function.
714 (asm_language_data): Remove la_name_of_this initializer.
715 (minimal_language_data): Likewise.
716 * d-lang.c (d_language_data): Likewise.
717 (d_language::name_of_this): New member function.
718 * expprint.c (print_subexp_standard): Update call to name_of_this.
719 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
720 * go-lang.c (go_language_data): Likewise.
721 * language.c (unknown_language_data): Likewise.
722 (unknown_language::name_of_this): New member function.
723 (auto_language_data): Remove la_name_of_this initializer.
724 (auto_language::name_of_this): New member function.
725 * language.h (language_data): Delete la_name_of_this member
726 variable.
727 (language_defn::name_of_this): New member function.
728 * m2-lang.c (m2_language_data): Remove la_name_of_this
729 initializer.
730 * objc-lang.c (objc_language_data): Likewise.
731 (objc_language::name_of_this): New member function.
732 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
733 initializer.
734 * p-lang.c (pascal_language_data): Likewise.
735 (pascal_language::name_of_this): New member function.
736 * rust-lang.c (rust_language_data): Remove la_name_of_this
737 initializer.
738 * symtab.c (lookup_language_this): Update call to name_of_this.
739 (lookup_symbol_aux): Likewise.
740 * valops.c (value_of_this): Likewise.
741
22e3f3ed
AB
7422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * ada-lang.c (ada_language_data): Remove
745 la_struct_too_deep_ellipsis initializer.
746 (ada_language::struct_too_deep_ellipsis): New member function.
747 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
748 initializer.
749 (cplus_language_data): Likewise.
750 (asm_language_data): Likewise.
751 (minimal_language_data): Likewise.
752 * cp-valprint.c (cp_print_value): Update call to
753 struct_too_deep_ellipsis.
754 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
755 initializer.
756 * f-lang.c (f_language_data): Likewise.
757 (f_language::struct_too_deep_ellipsis): New member function.
758 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
759 initializer.
760 * language.c (unknown_language_data): Likewise.
761 (auto_language_data): Likewise.
762 * language.h (language_data): Delete la_struct_too_deep_ellipsis
763 member variable.
764 (language_defn::struct_too_deep_ellipsis): New member function.
765 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
766 initializer.Q
767 * objc-lang.c (objc_language_data): Likewise.
768 * opencl-lang.c (opencl_language_data): Likewise.
769 * p-lang.c (pascal_language_data): Likewise.
770 * rust-lang.c (rust_language_data): Likewise.
771 * valprint.c (val_print_check_max_depth): Update call to
772 struct_too_deep_ellipsis.
773
ed29e1c7
FW
7742020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
775
776 * MAINTAINERS (Write After Approval): Add myself.
777
12d8f940
TT
7782020-09-15 Tom Tromey <tom@tromey.com>
779
780 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
781 Remove.
782
6b5a7bc7
TT
7832020-09-15 Tom Tromey <tom@tromey.com>
784
785 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
786 and TYPE_CODE_METHODPTR cases.
787 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
788 (c_value_print_inner): Update.
789 * valprint.c (generic_value_print_memberptr): New function, from
790 c_value_print_memberptr.
791 (generic_value_print): Use it. Call cplus_print_method_ptr.
792
47f0e2ff
TT
7932020-09-15 Tom Tromey <tromey@adacore.com>
794
795 * python/python-internal.h (PyInt_FromLong): Remove define.
796 * python/py-value.c (convert_value_from_python): Use
797 gdb_py_object_from_longest.
798 * python/py-type.c (typy_get_code): Use
799 gdb_py_object_from_longest.
800 * python/py-symtab.c (salpy_get_line): Use
801 gdb_py_object_from_longest.
802 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
803 gdb_py_object_from_longest.
804 * python/py-record.c (recpy_gap_reason_code): Use
805 gdb_py_object_from_longest.
806 * python/py-record-btrace.c (recpy_bt_insn_size)
807 (recpy_bt_func_level, btpy_list_count): Use
808 gdb_py_object_from_longest.
809 * python/py-infthread.c (gdbpy_create_ptid_object): Use
810 gdb_py_object_from_longest. Fix error handling.
811 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
812 gdb_py_object_from_longest.
813 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
814 gdb_py_object_from_longest.
815 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
816 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
817 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
818
512116ce
TT
8192020-09-15 Tom Tromey <tromey@adacore.com>
820
821 * python/python.c (gdbpy_parameter_value): Use
822 gdb_py_object_from_ulongest.
823
4ab1029c
TT
8242020-09-15 Tom Tromey <tromey@adacore.com>
825
826 * python/py-infevents.c (create_register_changed_event_object):
827 Use gdb_py_object_from_longest.
828 * python/py-exitedevent.c (create_exited_event_object): Use
829 gdb_py_object_from_longest.
830
062534d4
TT
8312020-09-15 Tom Tromey <tromey@adacore.com>
832
833 * python/python.c (gdbpy_parameter_value): Use
834 gdb_py_object_from_longest.
835 * python/py-type.c (convert_field, typy_range): Use
836 gdb_py_object_from_longest.
837 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
838 gdb_py_object_from_longest.
839 * python/py-lazy-string.c (stpy_get_length): Use
840 gdb_py_object_from_longest.
841 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
842 gdb_py_object_from_longest.
843 * python/py-infevents.c (create_memory_changed_event_object): Use
844 gdb_py_object_from_longest.
845 * python/py-inferior.c (infpy_get_num): Use
846 gdb_py_object_from_longest.
847 (infpy_get_pid): Likewise.
848
d1cab987
TT
8492020-09-15 Tom Tromey <tromey@adacore.com>
850
851 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
852 defines.
853 * python/py-value.c (valpy_long): Use
854 gdb_py_object_from_ulongest.
855 * python/py-symtab.c (salpy_get_pc): Use
856 gdb_py_object_from_ulongest.
857 (salpy_get_last): Likewise.
858 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
859 gdb_py_object_from_ulongest.
860 * python/py-lazy-string.c (stpy_get_address): Use
861 gdb_py_object_from_ulongest.
862 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
863 * python/py-arch.c (archpy_disassemble): Use
864 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
865 error handling.
866
4bde49dc
TT
8672020-09-15 Tom Tromey <tromey@adacore.com>
868
869 * python/python-internal.h (gdb_py_long_from_longest): Remove
870 defines.
871 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
872 * python/py-type.c (convert_field, typy_get_sizeof): Use
873 gdb_py_object_from_longest.
874 * python/py-record-btrace.c (btpy_list_index): Use
875 gdb_py_object_from_longest.
876
37431074
TT
8772020-09-15 Tom Tromey <tromey@adacore.com>
878
879 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
880 * python/py-record.c (recpy_element_number): Use
881 gdb_py_object_from_longest.
882 (recpy_gap_number): Likewise.
883
cbe25684
TT
8842020-09-15 Tom Tromey <tromey@adacore.com>
885
886 * top.c (ui::ui): Update.
887 (highest_ui_num): Remove.
888 * top.h (struct ui) <num>: Remove.
889
db92ac45
TT
8902020-09-15 Tom Tromey <tromey@adacore.com>
891
892 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
893 * ui-style.c (ansi_regex_text): Now array.
894 * rust-exp.y (number_regex_text): Now array.
895 * linespec.c (linespec_quote_characters): Now array.
896 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
897 Now arrays.
898
d2b31b67
SM
8992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
900
901 * debuginfod-support.c (debuginfod_client_deleter): New.
902 (debuginfod_client_up): New.
903 (debuginfod_init): Return debuginfod_client_up.
904 (debuginfod_source_query): Adjust.
905 (debuginfod_debuginfo_query): Adjust.
906
3246bd8e
SM
9072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
908
909 * debuginfod-support.c (debuginfod_source_query): Use
910 make_unique_xstrdup.
911
10242f36
SM
9122020-09-14 Simon Marchi <simon.marchi@efficios.com>
913
914 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
915 with `type::instance_flags`.
916
e1044e6a
MM
9172020-09-14 Michael Mullin <masmullin@gmail.com>
918
919 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
920 Remove baton parameter.
921
04902b09
PA
9222020-09-14 Pedro Alves <pedro@palves.net>
923
924 * Makefile.in (SELFTESTS_SRCS): Add
925 unittests/enum-flags-selftests.c.
926 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
927 btrace_function_flags instead of enum btrace_function_flag.
928 * compile/compile-c-types.c (convert_qualified): Use
929 enum_flags::raw.
930 * compile/compile-cplus-symbols.c (convert_one_symbol)
931 (convert_symbol_bmsym):
932 * compile/compile-cplus-types.c (compile_cplus_convert_method)
933 (compile_cplus_convert_struct_or_union_methods)
934 (compile_cplus_instance::convert_qualified_base):
935 * go-exp.y (parse_string_or_char): Add cast to int.
936 * unittests/enum-flags-selftests.c: New file.
937 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
938 type to btrace_thread_flags from btrace_thread_flag.
939 (record_btrace_cancel_resume, record_btrace_step_thread): Change
940 local's type to btrace_thread_flags from btrace_thread_flag. Add
941 cast in DEBUG call.
942
69896a2c
PA
9432020-09-14 Pedro Alves <pedro@palves.net>
944
945 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
946 * gdbtypes.c (address_space_name_to_int): Rename to ...
947 (address_space_name_to_type_instance_flags): ... this.
948 (address_space_int_to_name): Rename to ...
949 (address_space_type_instance_flags_to_name): ... this.
950 * gdbtypes.h (address_space_name_to_int): Rename to ...
951 (address_space_name_to_type_instance_flags): ... this.
952 (address_space_int_to_name): Rename to ...
953 (address_space_type_instance_flags_to_name): ... this.
954 * type-stack.c (type_stack::insert): Adjust to rename.
955 * type-stack.h (type_stack::insert): Likewise.
956
314ad88d
PA
9572020-09-14 Pedro Alves <pedro@palves.net>
958 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * avr-tdep.c (avr_address_class_type_flags): Return
961 type_instance_flags.
962 (avr_address_class_type_flags_to_name): Take a
963 type_instance_flags.
964 (avr_address_class_name_to_type_flags): Return bool and take a
965 type_instance_flags.
966 * d-lang.c (build_d_types): Use type::set_instance_flags.
967 * ft32-tdep.c (ft32_address_class_type_flags): Return
968 type_instance_flags.
969 (ft32_address_class_type_flags_to_name): Take a
970 type_instance_flags.
971 (ft32_address_class_name_to_type_flags): Return bool and take a
972 type_instance_flags.
973 (ft32_gdbarch_init): Use type::set_instance_flags.
974 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
975 * gdbarch.h, gdbarch.c: Regenerate.
976 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
977 (address_class_name_to_type_flags): Use type_instance_flags and
978 bool.
979 * gdbtypes.c (address_space_name_to_int)
980 (address_space_int_to_name, make_qualified_type): Use
981 type_instance_flags.
982 (make_qualified_type): Use type_instance_flags and
983 type::set_instance_flags.
984 (make_type_with_address_space, make_cv_type, make_vector_type)
985 (check_typedef): Use type_instance_flags.
986 (recursive_dump_type): Cast type_instance_flags to unsigned for
987 printing.
988 (copy_type_recursive): Use type::set_instance_flags.
989 (gdbtypes_post_init): Use type::set_instance_flags.
990 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
991 <m_instance_flags>: ... this.
992 <instance_flags, set_instance_flags>: New methods.
993 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
994 (SET_TYPE_INSTANCE_FLAGS): New.
995 (address_space_name_to_int, address_space_int_to_name)
996 (make_type_with_address_space): Pass flags using
997 type_instance_flags instead of int.
998 * stabsread.c (cleanup_undefined_types_noname): Use
999 type::set_instance_flags.
1000 * s390-tdep.c (s390_address_class_type_flags): Return
1001 type_instance_flags.
1002 (s390_address_class_type_flags_to_name): Take a
1003 type_instance_flags.
1004 (s390_address_class_name_to_type_flags): Return bool and take a
1005 type_instance_flags.
1006 * type-stack.c (type_stack::follow_types): Use
1007 type_instance_flags.
1008 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1009
27087b7f
TT
10102020-09-14 Tom Tromey <tromey@adacore.com>
1011
1012 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1013 * x86-tdep.c (x86_is_thunk_register_name)
1014 (x86_in_indirect_branch_thunk): Update.
1015 * sparc64-tdep.c (sparc64_fpu_register_names)
1016 (sparc64_cp0_register_names, sparc64_register_names)
1017 (sparc64_pseudo_register_names): Now const.
1018 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1019 cp0_registers_num>: Now const.
1020 * sparc-tdep.c (sparc_core_register_names)
1021 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1022 (sparc32_pseudo_register_names): Now const.
1023 (validate_tdesc_registers): Update.
1024 * rust-lang.c (rust_extensions): Now const.
1025 * p-lang.c (p_extensions): Now const.
1026 * objc-lang.c (objc_extensions): Now const.
1027 * nto-tdep.c (nto_thread_state_str): Now const.
1028 * moxie-tdep.c (moxie_register_names): Now const.
1029 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1030 Now const.
1031 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1032 (mips_linux_reg_names): Now const.
1033 (mips_gdbarch_init): Update.
1034 * microblaze-tdep.c (microblaze_register_names): Now const.
1035 * m68k-tdep.c (m68k_register_names): Now const.
1036 * m32r-tdep.c (m32r_register_names): Now const.
1037 * ia64-tdep.c (ia64_register_names): Now const.
1038 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1039 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1040 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1041 ymm_avx512_register_names, pkeys_register_names>: Now const.
1042 * i386-tdep.c (i386_register_names, i386_zmm_names)
1043 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1044 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1045 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1046 * f-lang.c (f_extensions): Now const.
1047 * d-lang.c (d_extensions): Now const.
1048 * csky-tdep.c (csky_register_names): Now const.
1049 * charset.c (default_charset_names, charset_enum): Now const.
1050 (_initialize_charset): Update.
1051 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1052 const.
1053 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1054 (bsd_uthread_solib_loaded): Update.
1055 (bsd_uthread_state): Now const.
1056 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1057 (amd64_ymm_avx512_names, amd64_ymmh_names)
1058 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1059 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1060 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1061 (amd64_dword_names): Now const.
1062 * agent.c (can_use_agent_enum): Now const.
1063 * ada-tasks.c (task_states, long_task_states): Now const.
1064 * ada-lang.c (known_runtime_file_name_patterns)
1065 (known_auxiliary_function_name_patterns, attribute_names)
1066 (standard_exc, ada_extensions): Now const.
1067
89806626
SM
10682020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1069
1070 * bcache.h (struct bcache) <bcache>: Remove constructor.
1071 <m_hash_function, m_compare_function>: Remove.
1072 <~bcache>: Make virtual.
1073 <compare>: Remove static method, introduce virtual method.
1074 <default_hash>: Remove.
1075 <hash>: New virtual method.
1076 * bcache.c (bcache::expand_hash_table): Update.
1077 (bcache::insert): Update.
1078 (bcache::hash): New.
1079 (bcache::compare): Update comment and parameter names.
1080 * gdbtypes.c (types_deeply_equal): Update.
1081 * psymtab.h (struct psymbol_bcache): New struct.
1082 (class psymtab_storage) <psymtab_storage>: Make default.
1083 <psymbol_cache>: Change type to psymbol_bcache.
1084 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1085 (psymbol_hash): Change to...
1086 (psymbol_bcache::hash): ... this.
1087 (psymbol_compare): Change to...
1088 (psymbol_bcache::compare): ... this.
1089
677c92fe
SM
10902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1093 checking for initial lwp.
1094
3eba3a01
TT
10952020-09-14 Tom Tromey <tromey@adacore.com>
1096
1097 * m68k-tdep.c (m68k_extract_return_value): Use
1098 pointer_result_regnum.
1099 (m68k_store_return_value): Likewise.
1100 (m68k_reg_struct_return_p): Handle vectors and arrays.
1101 (m68k_return_value): Handle arrays.
1102 (m68k_svr4_return_value): Fix single-element aggregate handling.
1103 Handle long double. Adjust for embedded ABI.
1104 (m68k_svr4_init_abi): Set pointer_result_regnum.
1105 (m68k_embedded_init_abi): New function.
1106 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1107 (m68k_osabi_sniffer): New function.
1108 (_initialize_m68k_tdep): Register osabi sniffer.
1109 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1110 member.
1111
33f4dd48
SM
11122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1113
1114 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1115 with gdb::unique_xmalloc_ptr<char>.
1116
8400a90d
SM
11172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * xml-support.h (xml_fetch_another): Change type to be a
1120 function_view.
1121 (xml_process_xincludes): Remove baton parameter.
1122 (xml_fetch_content_from_file): Change baton parameter to
1123 dirname.
1124 * xml-support.c (struct xinclude_parsing_data)
1125 <xinclude_parsing_data>: Remove baton parameter.
1126 <fetcher_baton>: Remove.
1127 (xinclude_start_include): Adjust.
1128 (xml_process_xincludes): Adjust.
1129 (xml_fetch_content_from_file): Replace baton parameter with
1130 dirname.
1131 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1132 (xml_init_syscalls_info): Use a lambda.
1133 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1134 (file_read_description_xml): Use a lambda.
1135 (fetch_available_features_from_target): Change baton parameter
1136 to target_ops.
1137 (target_read_description_xml): Use a lambda.
1138 (target_fetch_description_xml): Use a lambda.
1139 (string_read_description_xml): Update.
1140
04f5bab2
SM
11412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1142
1143 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1144 uses with type::endianity_is_not_default.
1145
db558e34
SM
11462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * gdbtypes.h (struct type) <endianity_is_not_default,
1149 set_endianity_is_not_default>: New methods.
1150 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1151 type::endianity_is_not_default, change all write call sites to
1152 use type::set_endianity_is_not_default.
1153
22c4c60c
SM
11542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1157 uses with type::is_fixed_instance.
1158
9cdd0d12
SM
11592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (struct type) <is_fixed_instance,
1162 set_is_fixed_instance>: New methods.
1163 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1164 write call sites to use type::set_is_fixed_instance.
1165
0becda7a
SM
11662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1167
1168 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1169 uses with type::is_gnu_ifunc.
1170
03cc7249
SM
11712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1174 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1175 use type::set_is_gnu_ifunc.
1176
3f46044c
SM
11772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1180 uses with type::stub_is_supported.
1181
9baccff6
SM
11822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1185 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1186 use type::set_stub_is_supported.
1187
bd63c870
SM
11882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1189
1190 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1191 uses with type::is_vector.
1192
2062087b
SM
11932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1196 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1197 use type::set_is_vector.
1198
a409645d
SM
11992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1200
1201 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1202 uses with type::has_varargs.
1203
1d6286ed
SM
12042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1207 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1208 use type::set_has_varargs.
1209
7f9f399b
SM
12102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1213 uses with type::is_prototyped.
1214
27e69b7a
SM
12152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1218 New methods.
1219 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1220 call sites to use type::set_is_prototyped.
1221
d2183968
SM
12222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1225 uses with type::target_is_stub.
1226
8f53807e
SM
12272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1230 New methods.
1231 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1232 sites to use type::set_target_is_stub.
1233
e46d3488
SM
12342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1235
1236 * gdbtypes.h (TYPE_STUB): Remove, replace all
1237 uses with type::is_stub.
1238
b4b73759
SM
12392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1242 (TYPE_STUB): Use type::is_stub, change all write call sites to
1243 use type::set_is_stub.
1244
20ce4123
SM
12452020-09-14 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1248 type::has_no_signedness.
1249
15152a54
SM
12502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * gdbtypes.h (struct type) <has_no_signedness,
1253 set_has_no_signedness>: New methods.
1254 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1255 call sites to use type::set_has_no_signedness.
1256
c6d940a9
SM
12572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1260 type::is_unsigned.
1261
653223d3
SM
12622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1265 methods.
1266 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1267 sites to use type::set_is_unsigned.
1268
55ea94da
FH
12692020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1270 Adam Renquinha <arenquinha@cimeq.qc.ca>
1271
1272 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1273 pointer and stack frame offset when unwinding.
1274
6791b117
PA
12752020-09-13 Pedro Alves <pedro@palves.net>
1276
1277 * NEWS: Document "-break-insert --qualified".
1278 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1279
77f2120b
PA
12802020-09-13 Pedro Alves <pedro@palves.net>
1281
1282 * linespec.c (classify_mtype, compare_msyms): Delete.
1283 (search_minsyms_for_name): Remove classification logic. Instead
1284 filter out trampoline symbols if we also found an external
1285 function of the same name.
1286
ed6a896c
JB
12872020-09-13 Joel Brobecker <brobecker@adacore.com>
1288
1289 * NEWS: Create a new section for the next release branch.
1290 Rename the section of the current branch, now that it has
1291 been cut.
1292
32aea73e
JB
12932020-09-13 Joel Brobecker <brobecker@adacore.com>
1294
1295 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1296 * version.in: Bump version to 11.0.50.DATE-git.
1297
8087c3fa
JB
12982020-09-12 Joel Brobecker <brobecker@adacore.com>
1299
1300 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1301
2a67f09d
FW
13022020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1303 Felix Willgerodt <Felix.Willgerodt@intel.com>
1304
1305 * gdbarch.sh: Added bfloat16 type.
1306 * gdbarch.c: Regenerated.
1307 * gdbarch.h: Regenerated.
1308 * gdbtypes.c (floatformats_bfloat16): New struct.
1309 (gdbtypes_post_init): Add builtin_bfloat16.
1310 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1311 (floatformats_bfloat16): New struct.
1312 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1313 (i386_ymm_type): Add field "v16_bfloat16"
1314 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1315 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1316 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1317 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1318 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1319 * features/i386/64bit-avx512.c: Regenerated.
1320 * features/i386/64bit-sse.xml: Add bfloat16 type.
1321 * features/i386/64bit-sse.c: Regenerated.
1322
1347d111
FW
13232020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1324
1325 * i386-tdep.c (i386_zmm_type): Fix field names.
1326 (i386_ymm_type): Fix field names.
1327
7a4e8e7d
TBA
13282020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329
1330 * breakpoint.c: Fix typo in the help message of the
1331 "set breakpoint condition-evaluation" command.
1332
cf4ac4be
KR
13332020-09-10 Kamil Rytarowski <n54@gmx.com>
1334
1335 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1336 * (nbsd_nat_target::pid_to_exec_file)
1337 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1338 (nbsd_nat_target::post_startup_inferior)
1339 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1340 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1341 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1342 * (nbsd_thread_lister): Remove.
1343
f404573e
KR
13442020-09-10 Kamil Rytarowski <n54@gmx.com>
1345
1346 * fork-inferior.c (startup_inferior): Avoid double free.
1347
1ccb2c17
KR
13482020-09-10 Kamil Rytarowski <n54@gmx.com>
1349
1350 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1351 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1352
feedfcc7
KR
13532020-09-10 Kamil Rytarowski <n54@gmx.com>
1354
1355 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1356 * netbsd-nat.c: Include <sys/ptrace.h>.
1357 * (netbsd_nat::enable_proc_events): Add.
1358
c489f8c6
KR
13592020-09-10 Kamil Rytarowski <n54@gmx.com>
1360
1361 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1362 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1363 (netbsd_nat::for_each_thread): Add.
1364 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1365 "gdbsupport/common-debug.h".
1366 * (netbsd_nat::netbsd_thread_lister)
1367 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1368 (netbsd_nat::for_each_thread): Add.
1369
330662f6
KR
13702020-09-10 Kamil Rytarowski <n54@gmx.com>
1371
1372 * netbsd-nat.h: Include <unistd.h>.
1373 * (netbsd_nat::pid_to_exec_file): Add.
1374 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1375 * (netbsd_nat::pid_to_exec_file) Add.
1376
70b67307
KR
13772020-09-10 Kamil Rytarowski <n54@gmx.com>
1378
1379 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1380
99cf6da6
KR
13812020-09-10 Kamil Rytarowski <n54@gmx.com>
1382
1383 * netbsd-nat.h: New file.
1384 * netbsd-nat.c: Likewise.
1385
1b788fb6
TT
13862020-09-09 Tom Tromey <tromey@adacore.com>
1387
1388 * ada-lang.c (remove_extra_symbols): Do not increment when
1389 removing an element
1390
03b0a45f
TT
13912020-09-08 Tom Tromey <tromey@adacore.com>
1392
1393 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1394
3cae4447
TT
13952020-09-08 Tom Tromey <tromey@adacore.com>
1396
1397 PR win32/25302:
1398 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1399 (gdb_bfd_init_data): New function.
1400 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1401
7f08fd51
TBA
14022020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403
1404 * infrun.c (fetch_inferior_event): Use
1405 `switch_to_target_no_thread` to switch the target.
1406
3e6ff933
TT
14072020-09-06 Tom Tromey <tom@tromey.com>
1408
1409 * symfile.h (dwarf2_free_objfile): Don't declare.
1410
e56798df
AKS
14112020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1412
1413 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1414 to match 16 byte real/complex type generated by Flang compiler.
1415
8f5c6526
TV
14162020-09-03 Tom de Vries <tdevries@suse.de>
1417
1418 PR breakpoint/26546
1419 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1420 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1421
c5065df0
SM
14222020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * maint.c (index_digits): New function.
1425 (struct maint_print_section_data): Remove.
1426 (print_bfd_section_info): Remove print_data parameter, add arg
1427 and index_digits.
1428 (print_objfile_section_info): Likewise.
1429 (print_bfd_section_info_maybe_relocated): Likewise (plus
1430 objfile).
1431 (maintenance_info_sections): Adjust calls.
1432
02c6f3f1
TT
14332020-09-02 Tom Tromey <tromey@adacore.com>
1434
1435 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1436 for null pointers.
1437 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1438
ef5e5b0b
SM
14392020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * bcache.h (struct bcache) <insert>: Change type of `added` to
1442 pointer to bool.
1443 * bcache.c (bcache::insert): Likewise.
1444 * gdbtypes.c (check_types_worklist): Adjust.
1445 * psymtab.c (add_psymbol_to_bcache): Adjust.
1446
973695d6
KB
14472020-08-31 Kevin Buettner <kevinb@redhat.com>
1448
1449 * corelow.c (unordered_set): Include.
1450 (class core_target): Add field 'm_core_unavailable_mappings'.
1451 (core_target::build_file_mappings): Print only one warning
1452 per inaccessible file. Add unavailable/broken mappings
1453 to m_core_unavailable_mappings.
1454 (core_target::xfer_partial): Call...
1455 (core_target::xfer_memory_via_mappings): New method.
1456
264fc0e2
SM
14572020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1460 type to bool.
1461
2de01bdb
SM
14622020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * dwarf2/read.c (struct field_info): Fix indentation.
1465
f3bd50f1
SM
14662020-08-31 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1469 ordering in comment.
1470 * frame.c (frame_id_eq): Fix indentation.
1471
22b9b4b0
SL
14722020-08-31 Scott Linder <scott@scottlinder.com>
1473 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1476 inline frame ids in outer frame.
1477
84154d16
SM
14782020-08-31 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1481 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1482 (outer_frame_id): Use FID_STACK_OUTER instead of
1483 FID_STACK_INVALID.
1484 (frame_id_p): Don't check for outer_frame_id.
1485
8efaf6b3
SM
14862020-08-31 Simon Marchi <simon.marchi@efficios.com>
1487
1488 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1489 regnum/frame in value. Call allocate_value_lazy.
1490 * frame.c (frame_unwind_register_value): Use
1491 val_print_not_saved.
1492
fe1fe7ea
SM
14932020-08-31 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1496
f7c7700d
PA
14972020-08-29 Pedro Alves <pedro@palves.net>
1498
1499 * progspace.c (print_program_space): Use all_inferiors. Switch to
1500 the inferior before calling target_pid_to_str.
1501
e0814aae
TT
15022020-08-28 Tom Tromey <tom@tromey.com>
1503
1504 * xcoffread.c (xcoff_end_psymtab): Update comment.
1505 * dbxread.c (dbx_end_psymtab): Update comment.
1506
626d2320
TV
15072020-08-28 Tom de Vries <tdevries@suse.de>
1508
1509 PR breakpoint/26544
1510 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1511 event_location.
1512 (create_breakpoint): Same.
1513 (base_breakpoint_decode_location): Same.
1514 (bkpt_create_sals_from_location): Same.
1515 (bkpt_decode_location): Same.
1516 (bkpt_probe_create_sals_from_location): Same.
1517 (bkpt_probe_decode_location): Same.
1518 (tracepoint_create_sals_from_location): Same.
1519 (tracepoint_decode_location): Same.
1520 (tracepoint_probe_decode_location): Same.
1521 (strace_marker_create_sals_from_location): Same.
1522 (strace_marker_decode_location): Same.
1523 (create_sals_from_location_default): Same.
1524 (decode_location_default): Same.
1525 * breakpoint.h (struct breakpoint_ops): Same.
1526 (create_breakpoint): Same.
1527 * linespec.h (decode_line_full): Same.
1528 * linespec.c (decode_line_full): Same. Throw error if
1529 result.size () == 0.
1530
df631783
PA
15312020-08-27 Pedro Alves <pedro@palves.net>
1532
1533 PR gdb/26524
1534 * breakpoint.c (until_break_fsm) <location_breakpoint,
1535 caller_breakpoint>: Delete fields.
1536 <breakpoints>: New field.
1537 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1538 two individual breakpoints.
1539 (until_break_fsm::should_stop): Loop over breakpoints in the
1540 breakpoint vector.
1541 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1542 vector.
1543 (until_break_command): Handle location expanding into multiple
1544 sals.
1545
b2b38aa4
PA
15462020-08-27 Pedro Alves <pedro@palves.net>
1547
1548 PR gdb/26523
1549 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1550 bp_until breakpoints user-specified locations. Update intro
1551 comment.
1552
b886559f
SM
15532020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1554
1555 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1556 gdb_bfd_sections): New.
1557 * maint.c (print_bfd_section_info): Change param type to
1558 maint_print_section_data.
1559 (print_objfile_section_info): Likewise.
1560 (print_bfd_section_info_maybe_relocated): Likewise.
1561 (maintenance_info_sections): Use gdb_bfd_sections.
1562
4c6e63bf
SV
15632020-08-25 Shahab Vahedi <shahab@synopsys.com>
1564
1565 * MAINTAINERS: Add ARC target and maintainer.
1566
8d7f0635
AK
15672020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1568
1569 * configure.tgt: ARC support for GNU/Linux.
1570 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1571 * arc-linux-tdep.c: New file.
1572 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1573 * arc-tdep.c (arc_write_pc): Use it.
1574
fdd8731b
SV
15752020-08-25 Shahab Vahedi <shahab@synopsys.com>
1576
1577 * arc-tdep.c (arc_check_for_hardware_loop): New.
1578 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1579
22459524
SV
15802020-08-25 Shahab Vahedi <shahab@synopsys.com>
1581
1582 * arc-tdep.h: Include "gdbarch.h".
1583
995d3a19
SV
15842020-08-25 Shahab Vahedi <shahab@synopsys.com>
1585
1586 * arch/arc.h
1587 (arc_gdbarch_features): New class to stir the selection of target XML.
1588 (arc_create_target_description): Use FEATURES to choose XML target.
1589 (arc_lookup_target_description): Use arc_create_target_description
1590 to create _new_ target descriptions or return the already created
1591 ones if the FEATURES is the same.
1592 * arch/arc.c: Implementation of prototypes described above.
1593 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1594 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1595 * arc-tdep.c (*_feature_name): Make feature names consistent.
1596 (arc_register_feature): A new struct to hold information about
1597 registers of a particular target/feature.
1598 (arc_check_tdesc_feature): Check if XML provides registers in
1599 compliance with ARC_REGISTER_FEATURE structs.
1600 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1601 (determine_*_reg_feature_set): Which feature name to look for.
1602 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1603 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1604 to expected ISA enums to be used in arc_gdbarch_features structs.
1605 * features/Makefile (FEATURE_XMLFILES): Add new files.
1606 * gdb/features/arc/v1-aux.c: New file.
1607 * gdb/features/arc/v1-aux.xml: Likewise.
1608 * gdb/features/arc/v1-core.c: Likewise.
1609 * gdb/features/arc/v1-core.xml: Likewise.
1610 * gdb/features/arc/v2-aux.c: Likewise.
1611 * gdb/features/arc/v2-aux.xml: Likewise.
1612 * gdb/features/arc/v2-core.c: Likewise.
1613 * gdb/features/arc/v2-core.xml: Likewise.
1614 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1615
3945d2d7
GM
16162020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1617 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 PR m2/26372
fc5d6901 1620 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1621 an assert. Remove single element array indexing pattern as the
1622 MULTI_SUBSCRIPT support will handle this case too.
1623
2677f2d3
SM
16242020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1625
1626 * value.h (valprint_check_validity): Move declaration from
1627 here...
1628 * valprint.h (valprint_check_validity): ... to here.
1629
c426fddb
SM
16302020-08-24 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * debug.h: New file.
1633 * debug.c (debug_prefixed_vprintf): New function.
1634 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1635 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1636
1eb8556f
SM
16372020-08-24 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * infrun.h (infrun_debug_printf_1): New function declaration.
1640 (infrun_debug_printf): New macro.
1641 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1642 throughout.
1643 (infrun_debug_printf): New function.
1644 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1645 (handle_jit_event): Likewise.
1646
b8fff44e
MW
16472020-08-21 Mark Wielaard <mark@klomp.org>
1648
1649 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1650
d19c3068
SM
16512020-08-22 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * frame.c (enum class frame_id_status): New.
1654 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1655 (fprintf_frame): Update.
1656 (compute_frame_id): Set frame id status to "computing" on entry.
1657 Set it back to "not_computed" on failure and to "computed" on
1658 success.
1659 (get_frame_id): Assert the frame id is not being computed.
1660 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1661 (create_new_frame): Likewise.
1662 (frame_cleanup_after_sniffer): Update assert.
1663
b70e516e
SM
16642020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * regcache.c (pid_ptid_regcache_map): New type.
1667 (target_ptid_regcache_map): Remove.
1668 (target_pid_ptid_regcache_map): New type.
1669 (regcaches): Change type to target_pid_ptid_regcache_map.
1670 (get_thread_arch_aspace_regcache): Update.
1671 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1672 case.
1673 (regcaches_size): Update.
1674 (regcache_count): Update.
1675 (registers_changed_ptid_target_pid_test): New.
1676 (_initialize_regcache): Register new test.
1677
cdd9148a
SM
16782020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * regcache.c (regcache_count): New.
1681 (struct regcache_test_data): New.
1682 (regcache_test_data_up): New.
1683 (populate_regcaches_for_test): New.
1684 (regcaches_test): Remove.
1685 (get_thread_arch_aspace_regcache_test): New.
1686 (registers_changed_ptid_all_test): New.
1687 (registers_changed_ptid_target_test): New.
1688 (registers_changed_ptid_target_ptid_test): New.
1689 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1690 (_initialize_regcache): Register new tests.
1691
dd125343
SM
16922020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1693
1694 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1695 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1696 gdbarch and aspace parameter. Use current inferior's aspace.
1697 Validate regcache's arch value.
1698 (regcaches_test): Update.
1699
3ee93972
SM
17002020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1701
1702 * regcache.c (regcaches_test): Call registers_changed.
1703
33bf4c5c
TBA
17042020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1705
1706 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1707
c2fd7fae
AKS
17082020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1709
1710 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1711 to find the end of prologue for flang compiled binaries.
1712 * arm-tdep.c (arm_skip_prologue): Likewise.
1713 * i386-tdep.c (i386_skip_prologue): Likewise.
1714 * producer.c (producer_is_llvm): New function.
1715 (producer_parsing_tests): Added new tests for clang/flang.
1716 * producer.h (producer_is_llvm): New declaration.
1717
9327494e
SM
17182020-08-18 Simon Marchi <simon.marchi@efficios.com>
1719
1720 * linux-nat.c (linux_nat_debug_printf): New function.
1721 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1722
d138725a
AM
17232020-08-18 Aaron Merey <amerey@redhat.com>
1724
1725 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1726 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1727 (CLIBS): Add DEBUGINFOD_LIBS.
1728
f9b11e6b
ST
17292020-08-17 Sergei Trofimovich <siarheit@google.com>
1730
1731 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1732 'gdbarch_num_regs'.
1733
3ae7ab99
TT
17342020-08-17 Tom Tromey <tromey@adacore.com>
1735
1736 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1737 ada_get_decoded_value returns NULL.
1738
b017825f
TT
17392020-08-17 Tom Tromey <tromey@adacore.com>
1740
1741 * python/py-inferior.c (infpy_search_memory): Use
1742 gdb_py_object_from_ulongest.
1743 * python/py-infevents.c (create_inferior_call_event_object)
1744 (create_memory_changed_event_object): Use
1745 gdb_py_object_from_ulongest.
1746 * python/py-linetable.c (ltpy_entry_get_pc): Use
1747 gdb_py_object_from_ulongest.
1748
7635cf79
SM
17492020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * loc.c (class symbol_needs_eval_context): Fix indentation.
1752
f54be24b
SM
17532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1756 bool.
1757
53d5a2a5
TV
17582020-08-17 Tom de Vries <tdevries@suse.de>
1759
1760 PR gdb/26393
1761 * gdbtypes.c (dump_dynamic_prop): New function.
1762 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1763
547ce8f0
TV
17642020-08-15 Tom de Vries <tdevries@suse.de>
1765
1766 PR backtrace/26390
1767 * stack.c (print_frame_args): Temporarily set the selected
1768 frame to FRAME while printing the frame's arguments.
1769
6ea815e7
PFC
17702020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1771
1772 PR breakpoints/26385
1773 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1774 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1775
6e562fa3
PFC
17762020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1777
1778 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1779 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1780 and >= to check return value instead of == -1 and != -1.
1781
d369b608
SM
17822020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1783
1784 * utils.h (class gdb_argv) <as_array_view>: New method.
1785 * utils.c (gdb_argv_as_array_view_test): New.
1786 (_initialize_utils): Register selftest.
1787 * maint.c (maintenance_selftest): Use the new method.
1788
b31488a3
KR
17892020-08-13 Kamil Rytarowski <n54@gmx.com>
1790
1791 * target.h (supports_dumpcore, dumpcore): New
1792 function declarations.
1793 * target.c (supports_dumpcore, dumpcore): New
1794 functions.
1795 * target-delegates.c: Rebuild.
1796 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1797 and target_dumpcore ().
1798
002a3166
AM
17992020-08-13 Aaron Merey <amerey@redhat.com>
1800
1801 * debuginfod-support.c: Replace global variables with user_data.
1802
ece5bc8a
SM
18032020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * maint.c (maintenance_selftest): Split args and pass array_view
1806 to run_tests.
1807
6d8a0a5e
LM
18082020-08-12 Luis Machado <luis.machado@linaro.org>
1809
1810 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1811 type's length.
1812 Use %s and pulongest to print the length.
1813
7cf663a9
PA
18142020-08-12 Pedro Alves <palves@redhat.com>
1815
1816 * NEWS: Move "Multi-target debugging support" item to the
1817 "Changes since GDB 9" section.
1818
27c7b875
PA
18192020-08-12 Pedro Alves <palves@redhat.com>
1820
1821 PR gdb/26336
1822 * progspace.c (program_space::remove_objfile): Invalidate the
1823 frame cache.
1824
1796a2a1
TV
18252020-08-11 Tom de Vries <tdevries@suse.de>
1826
1827 * MAINTAINERS: Mark ms1 as deleted.
1828
f8e3fe0d
LM
18292020-08-10 Luis Machado <luis.machado@linaro.org>
1830
1831 PR gdb/26310
1832
1833 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1834 act accordingly.
1835 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1836 movz/str/stur/stp skipping behavior.
1837
cc308722
LM
18382020-08-10 Luis Machado <luis.machado@linaro.org>
1839
1840 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1841 struct user_sve_header instead of struct sve_context.
1842
041d9819
SM
18432020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 * read.h (dwarf2_fetch_die_loc_sect_off,
1846 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1847 `void *` parameter with function_view.
1848 * read.c (dwarf2_fetch_die_loc_sect_off,
1849 dwarf2_fetch_die_loc_cu_off): Likewise.
1850 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1851 (per_cu_dwarf_call): Adjust.
1852 (get_frame_address_in_block_wrapper): Remove.
1853 (indirect_synthetic_pointer): Adjust.
1854 (get_ax_pc): Remove.
1855 (dwarf2_compile_expr_to_ax): Adjust.
1856
38f8aa06
TV
18572020-08-08 Tom de Vries <tdevries@suse.de>
1858
1859 PR build/26344
1860 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1861 constructor.
1862 * regcache.c (get_thread_arch_aspace_regcache): Same.
1863
a52b3ae2
TT
18642020-08-07 Tom Tromey <tromey@adacore.com>
1865
1866 * ravenscar-thread.c
1867 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1868 New method.
1869 (ravenscar_thread_target::wait): Check
1870 runtime_initialized.
1871 (ravenscar_thread_target::prepare_to_store)
1872 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1873 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1874 (ravenscar_thread_target::stopped_by_watchpoint)
1875 (ravenscar_thread_target::stopped_data_address)
1876 (ravenscar_thread_target::core_of_thread): Use
1877 scoped_restore_current_thread and
1878 set_base_thread_from_ravenscar_task.
1879
0e29517d
TT
18802020-08-07 Tom Tromey <tromey@adacore.com>
1881
1882 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1883
592f9bd7
TT
18842020-08-07 Tom Tromey <tromey@adacore.com>
1885
1886 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1887 update_inferior_ptid before update_thread_list.
1888 (temporarily_change_regcache_ptid): New class.
1889 (ravenscar_thread_target::fetch_registers)
1890 (ravenscar_thread_target::store_registers)
1891 (ravenscar_thread_target::prepare_to_store): Use base thread when
1892 forwarding operation.
1893
39e2018a
TT
18942020-08-07 Tom Tromey <tromey@adacore.com>
1895
1896 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1897 "is_pid" case.
1898
2080266b
TT
18992020-08-07 Tom Tromey <tromey@adacore.com>
1900
1901 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1902 New methods.
1903 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1904 first.
1905 (ravenscar_thread_target::add_thread): Rename from
1906 ravenscar_add_thread.
1907 (ravenscar_thread_target::update_thread_list): Use a lambda.
1908 (ravenscar_thread_target::xfer_partial): New method.
1909
78c02f21
TT
19102020-08-07 Tom Tromey <tromey@adacore.com>
1911
1912 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1913 gdb::function_view.
1914 (iterate_over_live_ada_tasks): Change type of argument.
1915 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1916 of argument.
1917
d5d833af
TT
19182020-08-07 Tom Tromey <tromey@adacore.com>
1919
1920 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1921 Remove.
1922 (ravenscar_thread_target::extra_thread_info): Remove.
1923 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1924 defer to target beneath for non-Ravenscar threads.
1925
a8ac85bb
TT
19262020-08-07 Tom Tromey <tromey@adacore.com>
1927
1928 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1929 get_base_thread_from_ravenscar_task>: Now methods.
1930 <m_cpu_map>: New member.
1931 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1932 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1933 (ravenscar_thread_target::task_is_currently_active): Update.
1934 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1935 Now a method.
1936 (ravenscar_thread_target::add_active_thread): Put initial thread
1937 into the m_cpu_map.
1938
550ab58d
TT
19392020-08-07 Tom Tromey <tromey@adacore.com>
1940
1941 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1942 event_ptid.
1943
e9546579
TT
19442020-08-07 Tom Tromey <tromey@adacore.com>
1945
1946 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1947 runtime_initialized.
1948
3d4470e5
TT
19492020-08-07 Tom Tromey <tromey@adacore.com>
1950
1951 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1952 add_active_thread.
1953 (ravenscar_thread_target::add_active_thread): Now public.
1954 (ravenscar_inferior_created): Call add_active_thread after pushing
1955 the target.
1956
888bdb2b
SM
19572020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1958
1959 * regcache.c (ptid_regcache_map): New type.
1960 (target_ptid_regcache_map): New type.
1961 (regcaches): Change type to target_ptid_regcache_map.
1962 (get_thread_arch_aspace_regcache): Update to regcaches' new
1963 type.
1964 (regcache_thread_ptid_changed): Likewise.
1965 (registers_changed_ptid): Likewise.
1966 (regcaches_size): Likewise.
1967 (regcaches_test): Update.
1968 (regcache_thread_ptid_changed): Update.
1969 * regcache.h (regcache_up): New type.
1970 * gdbsupport/ptid.h (hash_ptid): New struct.
1971
b161a60d
SM
19722020-08-07 Simon Marchi <simon.marchi@efficios.com>
1973
1974 * observable.h (thread_ptid_changed): Add parameter
1975 `process_stratum_target *`.
1976 * infrun.c (infrun_thread_ptid_changed): Add parameter
1977 `process_stratum_target *` and use it.
1978 (selftests): New namespace.
1979 (infrun_thread_ptid_changed): New function.
1980 (_initialize_infrun): Register selftest.
1981 * regcache.c (regcache_thread_ptid_changed): Add parameter
1982 `process_stratum_target *` and use it.
1983 (regcache_thread_ptid_changed): New function.
1984 (_initialize_regcache): Register selftest.
1985 * thread.c (thread_change_ptid): Pass target to
1986 thread_ptid_changed observable.
1987
d2854d8d
CT
19882020-08-06 Caroline Tice <cmtice@google.com>
1989
fe4c3d43
SM
1990 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1991 (struct dwp_sections): Update field comments. Add loclists and
1992 rnglists fields.
1993 (struct virtual_v2_dwo_sections): Rename struct to
1994 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1995 size & offset fields for loclists and rnglists.
1996 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1997 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1998 skipping dummy type units.
1999 (create_dwp_hash_table): Update the large comment above the function to
2000 discuss Version 5 DWP files as well, with references. Update all the
2001 version checks in the function to check for version 5 as well. Add new
2002 section at the end to create dwp hash table for version 5.
2003 (create_dwp_v2_section): Rename function to
2004 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2005 Add V5 to error message text.
2006 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2007 into calls to create_dwp_v2_or_v5_section.
2008 (create_dwo_unit_in_dwp_v5): New function.
2009 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2010 check for version2; add else clause to handle version 5.
2011 (open_and_init_dwo_file): Add code to check dwarf version & only call
2012 create_debug_types_hash_table (with sections.types) if version is not 5;
2013 else call create_debug_type_hash_table, with sections.info.
2014 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2015 version 5.
2016 (dwarf2_locate_v5_dwp_sections): New function.
2017 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2018 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2019
159ed7d9
SM
20202020-08-06 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * regcache.h (class regcache): Remove friend
2023 registers_changed_ptid.
2024 <regcache_thread_ptid_changed>: Remove.
2025 <regcaches>: Remove.
2026 * regcache.c (regcache::regcaches): Rename to...
2027 (regcaches): ... this. Make static.
2028 (get_thread_arch_aspace_regcache): Update.
2029 (regcache::regcache_thread_ptid_changed): Rename to...
2030 (regcache_thread_ptid_changed): ... this. Update.
2031 (class regcache_access): Remove.
2032 (regcaches_test): Update.
2033 (_initialize_regcache): Update.
2034 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2035 <forward_list>.
2036
174981ae
SM
20372020-08-06 Simon Marchi <simon.marchi@efficios.com>
2038
2039 * regcache.h (class regcache) <current_regcache>: Rename to...
2040 <regcaches>: ... this. Move doc here.
2041 * regcache.c (regcache::current_regcache) Rename to...
2042 (regcache::regcaches): ... this. Move doc to header.
2043 (get_thread_arch_aspace_regcache): Update.
2044 (regcache::regcache_thread_ptid_changed): Update.
2045 (registers_changed_ptid): Update.
2046 (class regcache_access) <current_regcache_size>: Rename to...
2047 <regcaches_size>: ... this.
2048 (current_regcache_test): Rename to...
2049 (regcaches_test): ... this.
2050 (_initialize_regcache): Update.
2051
ed908db6
VC
20522020-08-06 Victor Collod <vcollod@nvidia.com>
2053
2054 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2055
b5582ab7
KB
20562020-08-05 Kevin Buettner <kevinb@redhat.com>
2057
2058 * corelow.c (core_target::build_file_mappings): Don't output
2059 null pathname in warning.
2060
ea946b86
SM
20612020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2064 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2065 gdb.dwarf2/dw2-single-line-discriminators.exp,
2066 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2067
57d02173
TT
20682020-08-05 Tom Tromey <tromey@adacore.com>
2069
2070 PR rust/26197:
2071 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2072 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2073 Fix off-by-one and type size errors in ordinary case.
2074
5555c86d
TV
20752020-08-05 Tom de Vries <tdevries@suse.de>
2076
2077 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2078 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2079
97916bfe
SM
20802020-08-04 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * frame.h (frame_id_p): Return bool.
2083 (frame_id_artificial_p): Return bool.
2084 (frame_id_eq): Return bool.
2085 (has_stack_frames): Return bool.
2086 (get_selected_frame): Fix typo in comment.
2087 (get_frame_pc_if_available): Return bool.
2088 (get_frame_address_in_block_if_available): Return bool.
2089 (get_frame_func_if_available): Return bool.
2090 (read_frame_register_unsigned): Return bool.
2091 (get_frame_register_bytes): Return bool.
2092 (safe_frame_unwind_memory): Return bool.
2093 (deprecated_frame_register_read): Return bool.
2094 (frame_unwinder_is): Return bool.
2095 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2096 bool.
2097 <this_id::p>: Likewise.
2098 <prev_p>: Likewise.
2099 (frame_stash_add): Return bool.
2100 (get_frame_id): Use bool.
2101 (frame_id_build_special) Use bool.
2102 (frame_id_build_unavailable_stack): Use bool.
2103 (frame_id_build): Use bool.
2104 (frame_id_p): Return bool, use true/false instead of 1/0.
2105 (frame_id_artificial_p): Likewise.
2106 (frame_id_eq): Likewise.
2107 (frame_id_inner): Likewise.
2108 (get_frame_func_if_available): Likewise.
2109 (read_frame_register_unsigned): Likewise.
2110 (deprecated_frame_register_read): Likewise.
2111 (get_frame_register_bytes): Likewise.
2112 (has_stack_frames): Likewise.
2113 (inside_main_func): Likewise.
2114 (inside_entry_func): Likewise.
2115 (get_frame_pc_if_available): Likewise.
2116 (get_frame_address_in_block_if_available): Likewise.
2117 (frame_unwinder_is): Likewise.
2118 (safe_frame_unwind_memory): Likewise.
2119 (frame_unwind_arch): Likewise.
2120
fedfee88
SM
21212020-08-04 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2124 type to cached_copy_status.
2125 (fprintf_frame): Adjust.
2126 (get_frame_func_if_available): Adjust.
2127 (frame_cleanup_after_sniffer): Adjust.
2128
6cfa9b59
MW
21292020-08-04 Mark Wielaard <mark@klomp.org>
2130
2131 * MAINTAINERS (Write After Approval): Update email address.
2132
66d6346b
SM
21332020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2136 dynamic_prop::const_val.
2137
8a6d5e35
SM
21382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2139
2140 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2141 dynamic_prop::kind.
2142
51d6067d
SM
21432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2146
b26e2ae7
JM
21472020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2148
2149 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2150
39791af2
JM
21512020-08-04 Weimin Pan <weimin.pan@oracle.com>
2152 Jose E. Marchesi <jose.marchesi@oracle.com>
2153
2154 * configure.tgt: Add entry for bpf-*-*.
2155 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2156 (ALLDEPFILES): Add bpf-tdep.c.
2157 * bpf-tdep.c: New file.
2158 * MAINTAINERS: Add bpf target and maintainer.
2159 * NEWS: Mention the support for the new target.
2160
521894aa
TV
21612020-08-04 Tom de Vries <tdevries@suse.de>
2162
2163 PR symtab/23270
2164 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2165 Error.
2166
5d6356e9
JB
21672020-08-03 John Baldwin <jhb@FreeBSD.org>
2168
2169 * syscalls/freebsd.xml: Regenerate.
2170
0cf82b81
JB
21712020-08-03 John Baldwin <jhb@FreeBSD.org>
2172
2173 * syscalls/update-freebsd.sh: Fix usage and year range.
2174
8f34b746
TV
21752020-08-03 Tom de Vries <tdevries@suse.de>
2176
2177 PR symtab/26333
2178 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2179 DW_LNE_lo_user/DW_LNE_hi_user range.
2180
5e500d33
SM
21812020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2182
2183 PR ada/26318
2184 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2185 kind.
2186
78319c15
TBA
21872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2188
2189 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2190
4c55e970
TBA
21912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2192
2193 * breakpoint.c (set_breakpoint_condition): Update the condition
2194 expressions after checking that the input condition string parses
2195 successfully and does not contain junk at the end.
2196
1e620590
TBA
21972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2198
2199 * breakpoint.c (set_breakpoint_condition): Update the
2200 condition string after parsing the new condition successfully.
2201
c8693053
RO
22022020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2203
2204 * proc-api.c (_STRUCTURED_PROC): Don't define.
2205 * proc-events.c: Likewise.
2206 * proc-flags.c: Likewise.
2207 * proc-why.c: Likewise.
2208 * procfs.c: Likewise.
2209
2210 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2211 * configure, config.in: Regenerate.
2212
5a99adb8
TV
22132020-07-30 Tom de Vries <tdevries@suse.de>
2214
2215 PR build/26320
2216 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2217 m_red/m_green/m_blue in a union.
2218
8ba83e91
TV
22192020-07-29 Tom de Vries <tdevries@suse.de>
2220
2221 PR tdep/26280
2222 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2223
f75a0693
AB
22242020-07-28 Tom Tromey <tromey@adacore.com>
2225
2226 PR symtab/26270:
2227 * symtab.h (find_pc_partial_function_sym): Declare.
2228 * cli/cli-cmds.c (disassemble_command): Use
2229 find_pc_partial_function_sym. Check asm_demangle.
2230 * blockframe.c (cache_pc_function_sym): New global.
2231 (cache_pc_function_name): Remove.
2232 (clear_pc_function_cache): Update.
2233 (find_pc_partial_function_sym): New function, from
2234 find_pc_partial_function.
2235 (find_pc_partial_function): Rewrite using
2236 find_pc_partial_function_sym.
2237
16f3242c
TT
22382020-07-28 Tom Tromey <tromey@adacore.com>
2239
2240 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2241 help. Add usage.
2242
4888741a
TT
22432020-07-28 Tom Tromey <tromey@adacore.com>
2244
2245 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2246 <DW_OP_GNU_variable_value>: Cast to address type.
2247
4d46f402
KR
22482020-07-28 Kamil Rytarowski <n54@gmx.com>
2249
2250 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2251 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2252 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2253 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2254 (nbsd_get_siginfo_type): New.
2255 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2256 (_initialize_nbsd_tdep): New.
2257
d70f978b
L
22582020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2259
2260 PR binutils/26301
2261 * configure: Regenerated.
2262
377170fa
L
22632020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2264
2265 PR binutils/26301
2266 * configure: Regenerated.
2267
43d5901d
AB
22682020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2269
2270 * python/py-frame.c: Remove 'user-regs.h' include.
2271 (frapy_read_register): Rewrite to make use of
2272 gdbpy_parse_register_id.
2273 * python/py-registers.c (gdbpy_parse_register_id): New function,
2274 moved here from python/py-unwind.c. Updated the return type, and
2275 also accepts register descriptor objects.
2276 * python/py-unwind.c: Remove 'user-regs.h' include.
2277 (pyuw_parse_register_id): Moved to python/py-registers.c.
2278 (unwind_infopy_add_saved_register): Update to use
2279 gdbpy_parse_register_id.
2280 (pending_framepy_read_register): Likewise.
2281 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2282
14fa8fb3
AB
22832020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * python/py-registers.c: Add 'user-regs.h' include.
2286 (register_descriptor_iter_find): New function.
2287 (register_descriptor_iterator_object_methods): New static global
2288 methods array.
2289 (register_descriptor_iterator_object_type): Add pointer to methods
2290 array.
2291
ddce1758
JB
22922020-07-27 John Baldwin <jhb@FreeBSD.org>
2293
2294 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2295 for all architectures on FreeBSD 11.3 and later.
2296
a4089f52
TT
22972020-07-27 Tom Tromey <tromey@adacore.com>
2298
2299 * gcore.h (load_corefile): Don't declare.
2300
95420d30
TV
23012020-07-27 Tom de Vries <tdevries@suse.de>
2302
2303 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2304 * config.in: Regenerate.
2305 * configure: Regenerate.
2306
05a6b8c2
EZ
23072020-07-26 Eli Zaretskii <eliz@gnu.org>
2308
2309 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2310 ws2tcpip.h. When checking whether socklen_t type is defined, use
2311 ws2tcpip.h if it is available and sys/socket.h isn't.
2312 * configure: Regenerate.
2313 * config.in: Regenerate.
2314
e79eb02f
AB
23152020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 PR fortran/23051
2318 PR fortran/26139
2319 * valops.c (value_ind): Pass address to
2320 readjust_indirect_value_type.
2321 * value.c (readjust_indirect_value_type): Make parameter
2322 non-const, and add extra address parameter. Resolve original type
2323 before using it.
2324 * value.h (readjust_indirect_value_type): Update function
2325 signature and comment.
2326
876518dd
TV
23272020-07-25 Tom de Vries <tdevries@suse.de>
2328
2329 PR symtab/26243
2330 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2331 entries.
2332
f6720b1c
AM
23332020-07-24 Aaron Merey <amerey@redhat.com>
2334
2335 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2336 * configure: Rebuild.
2337
513487e1
KB
23382020-07-23 Kevin Buettner <kevinb@redhat.com>
2339
2340 PR corefiles/26294
2341 * corelow.c (_initialize_corelow): Add period to help text
2342 for "maintenance print core-file-backed-mappings".
2343
e7bc9db8
PA
23442020-07-23 Pedro Alves <pedro@palves.net>
2345
2346 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2347 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2348 meanwhile.
2349 * frame.c (frame_cache_generation, get_frame_cache_generation):
2350 New.
2351 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2352 (get_prev_frame_if_no_cycle): On exception, don't touch
2353 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2354 * frame.h (get_frame_cache_generation): Declare.
2355
90fcc466
TV
23562020-07-23 Tom de Vries <tdevries@suse.de>
2357
2358 PR tui/26282
2359 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2360 New default constructor.
2361
78344df7
AB
23622020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2363
2364 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2365 exclude non-statement entries.
2366
b089853a
KB
23672020-07-22 Kevin Buettner <kevinb@redhat.com>
2368
2369 * NEWS (New commands): Mention new command
2370 "maintenance print core-file-backed-mappings".
2371
09c2f5d4
KB
23722020-07-22 Kevin Buettner <kevinb@redhat.com>
2373
2374 * corelow.c (gdbcmd.h): Include.
2375 (core_target::info_proc_mappings): New method.
2376 (get_current_core_target): New function.
2377 (maintenance_print_core_file_backed_mappings): New function.
2378 (_initialize_corelow): Add core-file-backed-mappings to
2379 "maint print" commands.
2380
9c5ec5c2 23812020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2382
9c5ec5c2
KB
2383 * linux-tdep.c (dump_note_entry_p): New function.
2384 (linux_dump_mapping_p_ftype): New typedef.
2385 (linux_find_memory_regions_full): Add new parameter,
2386 should_dump_mapping_p.
2387 (linux_find_memory_regions): Adjust call to
2388 linux_find_memory_regions_full.
2389 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2390 call to linux_find_memory_regions_full.
2391
db082f59
KB
23922020-07-22 Kevin Buettner <kevinb@redhat.com>
2393
2394 * corelow.c (solist.h, unordered_map): Include.
2395 (class core_target): Add field m_core_file_mappings and
2396 method build_file_mappings.
2397 (core_target::core_target): Call build_file_mappings.
2398 (core_target::~core_target): Free memory associated with
2399 m_core_file_mappings.
2400 (core_target::build_file_mappings): New method.
2401 (core_target::xfer_partial): Use m_core_file_mappings
2402 for memory transfers.
2403 * linux-tdep.c (linux_read_core_file_mappings): New
2404 function.
2405 (linux_core_info_proc_mappings): Rewrite to use
2406 linux_read_core_file_mappings.
2407 (linux_init_abi): Register linux_read_core_file_mappings.
2408
7e183d27
KB
24092020-07-22 Kevin Buettner <kevinb@redhat.com>
2410
2411 * arch-utils.c (default_read_core_file_mappings): New function.
2412 * arch-utils.c (default_read_core_file_mappings): Declare.
2413 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2414 * gdbarch.h, gdbarch.c: Regenerate.
2415
2735d421
KB
24162020-07-22 Kevin Buettner <kevinb@redhat.com>
2417
2418 PR corefiles/25631
2419 * corelow.c (core_target:xfer_partial): Revise
2420 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2421 case after first checking the stratum beneath the core
2422 target.
2423 (has_all_memory): Return true.
2424 * target.c (raw_memory_xfer_partial): Revise comment
2425 regarding use of has_all_memory.
2426
e56cb451
KB
24272020-07-22 Kevin Buettner <kevinb@redhat.com>
2428
2429 * exec.h (section_table_xfer_memory): Revise declaration,
2430 replacing section name parameter with an optional callback
2431 predicate.
2432 * exec.c (section_table_xfer_memory): Likewise.
2433 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2434 of section_table_xfer_memory.
2435
32fa152e
TT
24362020-07-22 Tom Tromey <tromey@adacore.com>
2437
2438 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2439 lookup_symbol_search_name.
2440
a67a1c41
AB
24412020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2444 redundant local variable.
2445 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2446 reference, not pointer, update code accordingly.
2447
a7b4ff4f
SM
24482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2449 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2450
2451 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2452 * jit.c (jit_breakpoint_re_set_internal): Use the
2453 `skip_jit_symbol_lookup` field.
2454
2340e834
SM
24552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2456 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2457
2458 * jit.c (jit_read_descriptor): Define the descriptor address once,
2459 use twice.
2460 (jit_breakpoint_deleted): Move the declaration of the loop variable
2461 `iter` into the loop header.
2462 (jit_breakpoint_re_set_internal): Move the declaration of the local
2463 variable `objf_data` to the first point of definition.
2464 (jit_event_handler): Move the declaration of local variables
2465 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2466 Rename `objf` to `jited`.
2467
c1072906
SM
24682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2471 Remove.
2472 * jit.c (get_jiter_objfile_data): Update.
2473
c8474dc3
TBA
24742020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2475 Simon Marchi <simon.marchi@polymtl.ca>
2476
2477 * jit.c (struct jit_program_space_data): Remove.
2478 (jit_program_space_key): Remove.
2479 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2480 stuff.
2481 (get_jit_program_space_data): Remove.
2482 (jit_breakpoint_deleted): Iterate on all of the program space's
2483 objfiles.
2484 (jit_inferior_init): Likewise.
2485 (jit_breakpoint_re_set_internal): Likewise. Also change return
2486 type to void.
2487 (jit_breakpoint_re_set): Pass current_program_space to
2488 jit_breakpoint_re_set_internal.
2489
77208eb7
SM
24902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * jit.h (struct jiter_objfile_data) <cached_code_address,
2493 jit_breakpoint>: Move to here from ...
2494 * jit.c (jit_program_space_data): ... here.
2495 (jiter_objfile_data::~jiter_objfile_data): Update.
2496 (jit_breakpoint_deleted): Update.
2497 (jit_breakpoint_re_set_internal): Update.
2498
8c1c720f
SM
24992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2500
2501 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2502 checks.
2503 (jit_read_descriptor): Remove NULL check.
2504 (jit_event_handler): Add an assertion.
2505
0e74a041
SM
25062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * jit.h (struct jit_objfile_data): Split into...
2509 (struct jiter_objfile_data): ... this ...
2510 (struct jited_objfile_data): ... and this.
2511 * objfiles.h (struct objfile) <jit_data>: Remove.
2512 <jiter_data, jited_data>: New fields.
2513 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2514 (jiter_objfile_data::~jiter_objfile_data): ... this.
2515 (get_jit_objfile_data): Rename to ...
2516 (get_jiter_objfile_data): ... this.
2517 (add_objfile_entry): Update.
2518 (jit_read_descriptor): Use get_jiter_objfile_data.
2519 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2520 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2521 (jit_inferior_exit_hook): Use objfile's jited_data field.
2522
238b5c9f
SM
25232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * jit.h: Forward-declare `struct minimal_symbol`.
2526 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2527 constructor, destructor, and an objfile* field.
2528 * jit.c (jit_objfile_data): Remove.
2529 (struct jit_objfile_data): Migrate from here to jit.h.
2530 (jit_objfile_data::~jit_objfile_data): New destructor
2531 implementation with code moved from free_objfile_data.
2532 (free_objfile_data): Delete.
2533 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2534 (jit_find_objf_with_entry_addr): Ditto.
2535 (jit_inferior_exit_hook): Ditto.
2536 (_initialize_jit): Remove the call to
2537 register_objfile_data_with_cleanup.
2538 * objfiles.h (struct objfile) <jit_data>: New field.
2539
fe053b9e
TBA
25402020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2541
2542 * jit.h: Forward-declare `struct objfile`.
2543 (jit_event_handler): Add a second parameter, the JITer objfile.
2544 * jit.c (jit_read_descriptor): Change the signature to take the
2545 JITer objfile as an argument instead of the jit_program_space_data.
2546 (jit_inferior_init): Update the call to jit_read_descriptor.
2547 (jit_event_handler): Use the new JITer objfile argument when calling
2548 jit_read_descriptor.
2549 * breakpoint.c (handle_jit_event): Update the call to
2550 jit_event_handler to pass the JITer objfile.
2551
4cec0c66
JB
25522020-07-21 John Baldwin <jhb@FreeBSD.org>
2553
2554 * gdbarch.c: Regenerate.
2555 * gdbarch.h: Regenerate.
2556 * gdbarch.sh (handle_segmentation_fault): Remove method.
2557 * infrun.c (handle_segmentation_fault): Remove.
2558 (print_signal_received_reason): Remove call to
2559 handle_segmentation_fault.
2560
0e42f66a
JB
25612020-07-21 John Baldwin <jhb@FreeBSD.org>
2562
2563 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2564 Rename to sparc64_linux_report_signal_info and add siggnal
2565 argument.
2566 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2567 instead of sparc64_linux_handle_segmentation_fault.
2568
77bdfeb2
JB
25692020-07-21 John Baldwin <jhb@FreeBSD.org>
2570
2571 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2572 i386_linux_report_signal_info instead of
2573 i386_linux_handle_segmentation_fault.
2574 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2575 to i386_linux_report_signal_info and add siggnal argument.
2576 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2577 of i386_linux_handle_segmentation_fault.
2578 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2579 to i386_linux_report_signal_info and add siggnal argument.
2580
ad97bfc5
JB
25812020-07-21 John Baldwin <jhb@FreeBSD.org>
2582
2583 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2584 hook if present.
2585
272bb05c
JB
25862020-07-21 John Baldwin <jhb@FreeBSD.org>
2587
2588 * gdbarch.c: Regenerate.
2589 * gdbarch.h: Regenerate.
2590 * gdbarch.sh (report_signal_info): New method.
2591 * infrun.c (print_signal_received_reason): Invoke gdbarch
2592 report_signal_info hook if present.
2593
baf8791e
AB
25942020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * python/py-registers.c : Add 'unordered_map' include.
2597 (gdbpy_new_reggroup): Renamed to...
2598 (gdbpy_get_reggroup): ...this. Update to only create register
2599 group descriptors when needed.
2600 (gdbpy_reggroup_iter_next): Update.
2601
f7306dac
AB
26022020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * python/py-registers.c (gdbpy_register_object_data): New static
2605 global.
2606 (gdbpy_register_object_data_init): New function.
2607 (gdbpy_new_register_descriptor): Renamed to...
2608 (gdbpy_get_register_descriptor): ...this, and update to reuse
2609 existing register descriptors where possible.
2610 (gdbpy_register_descriptor_iter_next): Update.
2611 (gdbpy_initialize_registers): Register new gdbarch data.
2612
05c309a8
SM
26132020-07-21 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * linux-nat.c (stopped_pids): Make static.
2616
d1fd641e
SM
26172020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 PR ada/26235
2620 * gdbtypes.c (ada_discrete_type_low_bound,
2621 ada_discrete_type_high_bound): Handle undefined bounds.
2622
1de14d77
KR
26232020-07-21 Kamil Rytarowski <n54@gmx.com>
2624
2625 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2626 declaration.
2627 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2628 function.
2629
ed810cc7
JB
26302020-07-20 John Baldwin <jhb@FreeBSD.org>
2631
2632 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2633 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2634 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2635 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2636 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2637 method.
2638
ae5369e7
LC
26392020-07-20 Ludovic Courtès <ludo@gnu.org>
2640
2641 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2642 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2643 which are deprecated in Guile 3.0.
2644 * configure.ac (try_guile_versions): Add "guile-3.0".
2645 * configure (try_guile_versions): Regenerate.
2646 * NEWS: Update entry.
2647
68cf161c
LC
26482020-07-20 Ludovic Courtès <ludo@gnu.org>
2649 Doug Evans <dje@google.com>
2650
2651 PR gdb/21104
2652 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2653 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2654 USING_GUILE_BEFORE_2_2.
2655 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2656 Change type to 'scm_t_port_type *'.
2657 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2658 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2659 parameter and honor it. Update callers.
2660 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2661 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2662 functions.
2663 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2664 USING_GUILE_BEFORE_2_2.
2665 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2666 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2667 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2668 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2669 and 'SCM_PORT_TYPE'.
2670 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2671 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2672 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2673 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2674 [!USING_GUILE_BEFORE_2_2]: New functions.
2675 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2676 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2677 'gdbscm_memory_port_read'.
2678 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2679 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2680 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2681 function.
2682 (ioscm_init_memory_port): Remove.
2683 (ioscm_init_memory_port_stream): New function
2684 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2685 function.
2686 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2687 Return scm_from_uint (0).
2688 (gdbscm_set_memory_port_read_buffer_size_x)
2689 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2690 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2691 Return scm_from_uint (0).
2692 (gdbscm_set_memory_port_write_buffer_size_x)
2693 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2694 * configure.ac (try_guile_versions): Add "guile-2.2".
2695 * configure: Regenerate.
2696 * NEWS: Add entry.
2697
aee91db3
TT
26982020-07-18 Tom Tromey <tom@tromey.com>
2699
2700 * linux-nat.c (linux_multi_process): Remove.
2701 (linux_nat_target::supports_multi_process): Return true.
2702
0e267416
AB
27032020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2706 (riscv_lookup_target_description): Return pointer out of
2707 unique_ptr.
2708 * target-descriptions.c (allocate_target_description): Add
2709 comment.
2710 (target_desc_deleter::operator()): Likewise.
2711 * target-descriptions.h (struct target_desc_deleter): Moved to
2712 gdbsupport/tdesc.h.
2713 (target_desc_up): Likewise.
2714
f80c8ec4
TT
27152020-07-17 Tom Tromey <tromey@adacore.com>
2716
2717 * linux-nat.c (linux_nat_target::supports_non_stop)
2718 (linux_nat_target::always_non_stop_p): Use "true".
2719 (linux_nat_target::supports_disable_randomization): Use "true" and
2720 "false".
2721
d0ce17d8
CT
27222020-07-16 Caroline Tice <cmtice@google.com>
2723
2724 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2725 (RNGLIST_HEADER_SIZE64): New constant definition.
2726 (struct dwop_section_names): Add rnglists_dwo.
2727 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2728 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2729 (struct dwo_sections): Add rnglists field.
2730 (read_attribut_reprocess): Add tag parameter.
2731 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2732 (cu_debug_rnglists_section): New function (decl & definition).
2733 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2734 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2735 die whose range is being checked; get rnglist section from
2736 cu_debug_rnglists_section, to get from either objfile or dwo file as
2737 appropriate. Add cases for DW_RLE_base_addressx,
2738 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2739 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2740 test inside if-condition and updating complaint message.
2741 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2742 dwarf2_rnglists_process.
2743 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2744 dwarf2_ranges_process.
2745 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2746 need_ranges_base and update comment appropriately. Also pass die tag
2747 to dwarf2_ranges_read.
2748 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2749 need_ranges_base and update comment appropriately. Also pass die tag
2750 to dwarf2_ranges_process.
2751 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2752 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2753 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2754 need_ranges_base and update comment appropriately. Also pass die tag
2755 to read_attribute_reprocess and dwarf2_ranges_read.
2756 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2757 and update function comment appropriately.
2758 (read_loclist_index): Call read_loclists_rnglists_header instead of
2759 read_loclist_header.
2760 (read_rnglist_index): New function.
2761 (read_attribute_reprocess): Add tag parameter. Add code for
2762 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2763 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2764
3dcc261c
AB
27652020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2766
2767 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2768 being resolved.
2769
ccb9eba6
AB
27702020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2771
2772 * arch-utils.c (show_architecture): Update formatting of messages.
2773
cf88be68
SM
27742020-07-12 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * gdbtypes.h (struct type) <bounds>: Handle array and string
2777 types.
2778 * ada-lang.c (assign_aggregate): Use type::bounds on
2779 array/string type.
2780 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2781 * c-varobj.c (c_number_of_children): Likewise.
2782 (c_describe_child): Likewise.
2783 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2784 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2785 (f_type_print_base): Likewise.
2786 * f-valprint.c (f77_array_offset_tbl): Likewise.
2787 (f77_get_upperbound): Likewise.
2788 (f77_print_array_1): Likewise.
2789 * guile/scm-type.c (gdbscm_type_range): Likewise.
2790 * m2-typeprint.c (m2_array): Likewise.
2791 (m2_is_long_set_of_type): Likewise.
2792 * m2-valprint.c (get_long_set_bounds): Likewise.
2793 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2794 * python/py-type.c (typy_range): Likewise.
2795 * rust-lang.c (rust_internal_print_type): Likewise.
2796 * type-stack.c (type_stack::follow_types): Likewise.
2797 * valarith.c (value_subscripted_rvalue): Likewise.
2798 * valops.c (value_cast): Likewise.
2799
509971ae
SM
28002020-07-12 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2803 callers to use the equivalent accessor methods.
2804
107406b7
SM
28052020-07-12 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2808 (struct type) <bit_stride>: New method.
2809 (TYPE_BIT_STRIDE): Remove.
2810 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2811
bb789949
SM
28122020-07-12 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2815 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2816 callers to use the equivalent accessor methods instead.
2817
39498edb
SM
28182020-07-12 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2821 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2822 callers to use the equivalent accessor methods instead.
2823
3b606f38
SM
28242020-07-12 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2827 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2828 to use dynamic_prop::kind.
2829
064d9cb9
SM
28302020-07-12 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2833 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2834 to get the bound property's kind and check against
2835 PROP_UNDEFINED.
2836
5537ddd0
SM
28372020-07-12 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2840 all callers to use type::range_bounds followed by
2841 dynamic_prop::{low,high}.
2842
8c2e4e06
SM
28432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2844
2845 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2846 const_val, set_const_val, baton, set_locexpr, set_loclist,
2847 set_addr_offset, variant_parts, set_variant_parts,
2848 original_type, set_original_type>: New methods.
2849 <kind>: Rename to...
2850 <m_kind>: ... this. Update all users to use the new methods
2851 instead.
2852 <data>: Rename to...
2853 <m_data>: ... this. Update all users to use the new methods
2854 instead.
2855
7c6f2712
SM
28562020-07-12 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * gdbtypes.c (get_discrete_bounds): Return failure if
2859 the range type's bounds are not both defined and constant
2860 values.
2861 (get_array_bounds): Update comment. Remove undefined bound check.
2862
599088e3
SM
28632020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2864
2865 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2866 the type::bounds method directly.
2867
c4dfcb36
SM
28682020-07-12 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2871 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2872 are used to set the range type's bounds to use set_bounds.
2873
0a278aa7
PW
28742020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2875
2876 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2877
cce20f10
PA
28782020-07-10 Pedro Alves <pedro@palves.net>
2879
2880 * gdbthread.h (inferior_ref): Define.
2881 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2882 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2883 * thread.c
2884 (scoped_restore_current_thread::restore):
2885 Adjust to gdb::ref_ptr.
2886 (scoped_restore_current_thread::~scoped_restore_current_thread):
2887 Remove manual decref handling.
2888 (scoped_restore_current_thread::scoped_restore_current_thread):
2889 Adjust to use
2890 inferior_ref::new_reference/thread_info_ref::new_reference.
2891 Incref the thread before calling get_frame_id instead of after.
2892 Let TARGET_CLOSE_ERROR propagate.
2893
6d7aa592
PA
28942020-07-10 Pedro Alves <pedro@palves.net>
2895
2896 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2897 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2898 NOT_AVAILABLE_ERROR.
2899 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2900 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2901
b3e3a4c1
SM
29022020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2903 Pedro Alves <pedro@palves.net>
2904
2905 PR gdb/26199
2906 * infrun.c (threads_are_resumed_pending_p): Delete.
2907 (do_target_wait): Remove threads_are_executing and
2908 threads_are_resumed_pending_p checks from the inferior_matches
2909 lambda. Update comments.
2910
d6cc5d98
PA
29112020-07-10 Pedro Alves <pedro@palves.net>
2912
2913 PR gdb/26199
2914 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2915 executing threads.
2916
7d3badc6
PA
29172020-07-10 Pedro Alves <pedro@palves.net>
2918
2919 PR gdb/26199
2920 * infrun.c (handle_no_resumed): Handle multiple targets.
2921
42bd97a6
PA
29222020-07-10 Pedro Alves <pedro@palves.net>
2923
2924 PR gdb/26199
2925 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2926 target_is_async_p.
2927
43667cc6
PA
29282020-07-10 Pedro Alves <pedro@palves.net>
2929
2930 PR gdb/26199
2931 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2932 threads, not all threads.
2933
96118d11
PA
29342020-07-10 Pedro Alves <pedro@palves.net>
2935
2936 PR gdb/26199
2937 * remote.c (remote_target::open_1): Pass remote target pointer as
2938 data to create_async_event_handler.
2939 (remote_async_inferior_event_handler): Mark async event handler
2940 before returning if the remote target still has either pending
2941 events or unacknowledged notifications.
2942
54904d81
JB
29432020-07-10 John Baldwin <jhb@FreeBSD.org>
2944
2945 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2946 declaration.
2947 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2948 function.
2949
f37e5866
JB
29502020-07-09 John Baldwin <jhb@FreeBSD.org>
2951
2952 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2953 inferior_ptid.
2954
fc238d4a
JB
29552020-07-09 John Baldwin <jhb@FreeBSD.org>
2956
2957 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2958 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2959 AT_FREEBSD_PS_STRINGS.
2960
6e2469ff
HD
29612020-07-08 Hannes Domani <ssbssa@yahoo.de>
2962
2963 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2964 of debugfile path on Windows.
2965
d1076c41
JB
29662020-07-08 John Baldwin <jhb@FreeBSD.org>
2967
2968 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2969 argument to 'data'.
2970
15f3b077
TT
29712020-07-08 Tom Tromey <tromey@adacore.com>
2972
2973 * ada-lang.c (ada_exception_message_1): Use read_memory.
2974
9fc501fd
AB
29752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 PR python/22748
2978 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2979 special handling for inline frames.
2980 * findvar.c (value_of_register_lazy): Skip inline frames when
2981 creating lazy register values.
2982 * frame.c (frame_id_computed_p): Delete definition.
2983 * frame.h (frame_id_computed_p): Delete declaration.
2984
64cb3757
AB
29852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2986
2987 * NEWS: Mention additions to Python API.
2988 * python/py-arch.c (archpy_register_groups): New function.
2989 (arch_object_methods): Add 'register_groups' method.
2990 * python/py-registers.c (reggroup_iterator_object): New struct.
2991 (reggroup_object): New struct.
2992 (gdbpy_new_reggroup): New function.
2993 (gdbpy_reggroup_to_string): New function.
2994 (gdbpy_reggroup_name): New function.
2995 (gdbpy_reggroup_iter): New function.
2996 (gdbpy_reggroup_iter_next): New function.
2997 (gdbpy_new_reggroup_iterator): New function
2998 (gdbpy_initialize_registers): Register new types.
2999 (reggroup_iterator_object_type): Define new Python type.
3000 (gdbpy_reggroup_getset): New static global.
3001 (reggroup_object_type): Define new Python type.
3002 * python/python-internal.h
3003
0f767f94
AB
30042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3007 * python/py-arch.c (archpy_registers): New function.
3008 (arch_object_methods): Add 'registers' method.
3009 * python/py-registers.c: New file.
3010 * python/python-internal.h
3011 (gdbpy_new_register_descriptor_iterator): Declare.
3012 (gdbpy_initialize_registers): Declare.
3013 * python/python.c (do_start_initialization): Call
3014 gdbpy_initialize_registers.
3015 * NEWS: Mention additions to the Python API.
3016
87dbc774
AB
30172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * NEWS: Mention new Python API method.
3020 * python/py-unwind.c (pending_framepy_architecture): New function.
3021 (pending_frame_object_methods): Add architecture method.
3022
3bc98c0c
AB
30232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * gdbarch.c: Regenerate.
3026 * gdbarch.h: Regenerate.
3027 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3028 (gdbarch_data): Use internal_error for the case where
3029 deprecated_set_gdbarch_data was originally needed.
3030 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3031 and use passed in obstack.
3032 (libunwind_frame_set_descr): Should no longer get back NULL from
3033 gdbarch_data.
3034 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3035 type.
3036 * user-regs.c (user_regs_init): Update parameters, and use passed
3037 in obstack.
3038 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3039 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3040
d8cc8af6
TV
30412020-07-06 Tom de Vries <tdevries@suse.de>
3042
3043 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3044 End-Of-Sequence in lte_is_less_than.
3045 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3046 "gdb: Don't reorder line table entries too much when sorting".
3047
947f7597
TV
30482020-07-06 Tom de Vries <tdevries@suse.de>
3049
3050 PR tui/26205
3051 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3052
1e7c1b22
TV
30532020-07-05 Tom de Vries <tdevries@suse.de>
3054
3055 PR build/26187
3056 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3057 std::uncaught_exceptions instead of deprecated
3058 std::uncaught_exception.
3059
a36158ec
SM
30602020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * macroexp.h (macro_stringify): Return
3063 gdb::unique_xmalloc_ptr<char>.
3064 * macroexp.c (macro_stringify): Likewise.
3065 * macrotab.c (fixup_definition): Update.
3066
14d960c8
SM
30672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3070 (lex_one_token): Update.
3071 * macroexp.c (struct macro_buffer) <release>: Return
3072 gdb::unique_xmalloc_ptr<char>.
3073 (macro_stringify): Update.
3074 (macro_expand): Update.
3075 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3076 * macroexp.h (macro_expand_next): Likewise.
3077
211d5b1c
SM
30782020-07-02 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * macroexp.h (macro_lookup_ftype): Remove.
3081 (macro_expand, macro_expand_once, macro_expand_next): Remove
3082 lookup function parameters, add scope parameter.
3083 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3084 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3085 * macroscope.h (standard_macro_lookup): Change parameter type
3086 to macro_scope.
3087 * macroscope.c (standard_macro_lookup): Likewise.
3088 * c-exp.y (lex_one_token): Update.
3089 * macrocmd.c (macro_expand_command): Likewise.
3090 (macro_expand_once_command): Likewise.
3091
b1a35af2
SM
30922020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * inf-loop.c (inferior_event_handler): Remove client_data param.
3095 * inf-loop.h (inferior_event_handler): Likewise.
3096 * infcmd.c (step_1): Adjust.
3097 * infrun.c (proceed): Adjust.
3098 (fetch_inferior_event): Remove client_data param.
3099 (infrun_async_inferior_event_handler): Adjust.
3100 * infrun.h (fetch_inferior_event): Remove `void *` param.
3101 * linux-nat.c (handle_target_event): Adjust.
3102 * record-btrace.c (record_btrace_handle_async_inferior_event):
3103 Adjust.
3104 * record-full.c (record_full_async_inferior_event_handler):
3105 Adjust.
3106 * remote.c (remote_async_inferior_event_handler): Adjust.
3107
1cdf9e33
TT
31082020-07-01 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3111 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3112
32c1e210
TT
31132020-07-01 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3116 tui_gen_win_info.
3117 (tui_win_info::make_window): Merge with
3118 tui_gen_win_info::make_window.
3119 (tui_win_info::make_visible): Move from tui_gen_win_info.
3120 * tui/tui-win.c (tui_win_info::max_width): Move from
3121 tui_gen_win_info.
3122 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3123 type.
3124 <window_factory>: Likewise.
3125 * tui/tui-layout.c (tui_win_info::resize): Move from
3126 tui_gen_win_info.
3127 (make_standard_window): Change return type.
3128 (get_locator_window, tui_get_window_by_name): Likewise.
3129 (tui_layout_window::apply): Remove a cast.
3130 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3131 (struct tui_win_info): Merge with tui_gen_win_info.
3132 (struct tui_gen_win_info): Remove.
3133
a30cb6da
TT
31342020-07-01 Tom Tromey <tom@tromey.com>
3135
3136 * tui/tui-stack.h (struct tui_locator_window): Derive from
3137 tui_win_info.
3138 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3139 <can_box>: New method.
3140
1eb2161f
TT
31412020-07-01 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3144
7134f2eb
TT
31452020-07-01 Tom Tromey <tom@tromey.com>
3146
3147 * tui/tui-regs.c (tui_data_window::display_registers_from)
3148 (tui_data_window::display_registers_from)
3149 (tui_data_window::first_data_item_displayed)
3150 (tui_data_window::delete_data_content_windows): Update.
3151 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3152 Remove.
3153 (tui_data_window::check_register_values): Update.
3154 (tui_data_item_window::rerender): Add parameters. Update.
3155 (tui_data_item_window::refresh_window): Remove.
3156 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3157 virtual.
3158 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3159 tui_gen_win_info.
3160 <refresh_window, max_height, min_height>: Remove.
3161 <rerender>: Add parameters.
3162 <x, y, visible>: New members.
3163 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3164 <m_item_width>: New member.
3165
22b7b041
TT
31662020-07-01 Tom Tromey <tom@tromey.com>
3167
3168 * tui/tui-regs.c (tui_data_window::show_register_group)
3169 (tui_data_window::check_register_values): Update.
3170 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3171 from item_no.
3172
c9753adb
TT
31732020-07-01 Tom Tromey <tom@tromey.com>
3174
3175 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3176 useless "if".
3177
9ab26b4a
TT
31782020-07-01 Tom Tromey <tom@tromey.com>
3179
3180 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3181 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3182
e555083f
TT
31832020-07-01 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3186 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3187 (struct tui_line_or_address): Move from tui-data.h.
3188 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3189 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3190 (tui_cmd_window, tui_source_window_base, tui_source_window)
3191 (tui_disasm_window): Don't declare.
3192 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3193 to tui-winsource.h.
3194 (SINGLE_KEY): Move to tui-stack.c.
3195
7a02bab7
TT
31962020-07-01 Tom Tromey <tom@tromey.com>
3197
3198 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3199 std::string.
3200 * tui/tui-regs.c (class tab_expansion_file): New.
3201 (tab_expansion_file::write): New method.
3202 (tui_register_format): Change return type. Use
3203 tab_expansion_file.
3204 (tui_get_register, tui_data_window::display_registers_from)
3205 (tui_data_item_window::rerender): Update.
3206 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3207 * tui/tui-io.c (tui_expand_tabs): Remove.
3208
ea68593b
TT
32092020-07-01 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3212
a8caed5d
FS
32132020-07-01 Fangrui Song <maskray@google.com>
3214
3215 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3216
9cdf9820
AKS
32172020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3218
3219 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3220 forms for DW_AT_associated and DW_AT_allocated attributes,
3221 which is already checked in function attr_to_dynamic_prop.
3222
a1520ad8
TT
32232020-06-30 Tom Tromey <tromey@adacore.com>
3224
3225 * dwarf2/read.c (quirk_rust_enum): Correctly call
3226 alloc_rust_variant for default-less enum.
3227
5ac58899
TT
32282020-06-30 Tom Tromey <tromey@adacore.com>
3229
3230 PR build/26183:
3231 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3232 gdb::to_string.
3233
19b187a9
SM
32342020-06-29 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3237 * gdbarch.h: Re-generate.
3238
cd4c4c07
TT
32392020-06-28 Tom Tromey <tom@tromey.com>
3240
3241 * command.h (cmd_types): Remove.
3242 (cmd_type): Don't declare.
3243 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3244 typedef.
3245 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3246 * cli/cli-decode.c (cmd_type): Remove.
3247
05779d57
PA
32482020-06-27 Pedro Alves <palves@redhat.com>
3249
3250 * fork-child.c (prefork_hook): Adjust.
3251 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3252 Delete.
3253 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3254 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3255 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3256 Remove declarations.
3257 (struct inferior) <set_tty, tty>: New methods.
3258 (struct inferior) <terminal>: Rename to ...
3259 (struct inferior) <m_terminal>: ... this and make private.
3260 * main.c (captured_main_1): Adjust.
3261 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3262 (mi_cmd_inferior_tty_show): Adjust.
3263 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3264 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3265
1776e3e5
NA
32662020-06-26 Nick Alcock <nick.alcock@oracle.com>
3267
3268 * configure.ac: Add --enable-libctf: handle --disable-static
3269 properly.
3270 * acinclude.m4: sinclude ../config/enable.m4.
3271 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3272 (LIBCTF): Substitute in.
3273 (CTF_DEPS): New, likewise.
3274 (CLIBS): libctf needs symbols from libbfd: move earlier.
3275 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3276 flags.
3277 * ctfread.c: Surround in ENABLE_LIBCTF.
3278 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3279 * configure: Regenerate.
3280 * config.in: Likewise.
3281
58373b80
SM
32822020-06-25 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3285
277474ee
SM
32862020-06-25 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * inferior.h (struct inferior) <terminal>: Change type to
3289 gdb::unique_xmalloc_ptr<char>.
3290 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3291 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3292 field, adjust to unique pointer.
3293 (get_inferior_io_terminal): Adjust to unique pointer.
3294
6d74da72
AB
32952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3298 registers, not just the known core set of registers.
3299
2e52d038
AB
33002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3303 fflags, frm, and fcsr registers.
3304 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3305 restore groups.
3306 (riscv_tdesc_unknown_reg): New function.
3307 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3308 tdesc_use_registers.
3309 * riscv-tdep.h (struct gdbarch_tdep): Add
3310 unknown_csrs_first_regnum, unknown_csrs_count,
3311 duplicate_fflags_regnum, duplicate_frm_regnum, and
3312 duplicate_fcsr_regnum fields.
3313
be64fd07
AB
33142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3317 callback, use the callback (when not null) to help number unknown
3318 registers.
3319 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3320 (tdesc_use_registers): Add extra parameter to declaration.
3321
3b9fce96
AB
33222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3325 in the file.
3326 (class riscv_pending_register_alias): Likewise.
3327 (riscv_register_feature::register_info): Change 'required_p' field
3328 to 'required', and change its type. Add 'check' member function.
3329 (riscv_register_feature::register_info::check): Define new member
3330 function.
3331 (riscv_xreg_feature): Change initialisation of 'required' field.
3332 (riscv_freg_feature): Likewise.
3333 (riscv_virtual_feature): Likewise.
3334 (riscv_csr_feature): Likewise.
3335 (riscv_check_tdesc_feature): Take extra parameter, the csr
3336 tdesc_feature, rewrite the function to use the new
3337 riscv_register_feature::register_info::check function.
3338 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3339
865bad26
AB
33402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * features/Makefile: Remove all references to the deleted files
3343 below.
3344 * features/riscv/32bit-csr.c: Deleted.
3345 * features/riscv/32bit-csr.xml: Deleted.
3346 * features/riscv/64bit-csr.c: Deleted.
3347 * features/riscv/64bit-csr.xml: Deleted.
3348 * features/riscv/rebuild-csr-xml.sh: Deleted.
3349
ed69cbc8
AB
33502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3353 whitespace error for declaration of names member variable.
3354 (struct riscv_register_feature): Add new prefer_first_name member
3355 variable, and fix whitespace error in declaration of registers.
3356 (riscv_xreg_feature): Initialize prefer_first_name field.
3357 (riscv_freg_feature): Likewise.
3358 (riscv_virtual_feature): Likewise.
3359 (riscv_csr_feature): Likewise.
3360 (riscv_register_name): Expand on comments. Remove register name
3361 modifications for CSR and virtual registers.
3362
4445e8f5
AB
33632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3366 errors.
3367
767a879e
AB
33682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3371 riscv-opc.h.
3372 (class riscv_pending_register_alias): New class.
3373 (riscv_check_tdesc_feature): Take vector of pending aliases and
3374 populate it as appropriate.
3375 (riscv_setup_register_aliases): Delete.
3376 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3377 to riscv_check_tdesc_feature in all cases. Use the vector to
3378 create the register aliases.
3379
bb6e55f3
RO
33802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3381
3382 * sol2-tdep.c (sol2_static_transform_name): Remove.
3383 (sol2_init_abi): Don't register it.
3384 * gdbarch.sh (static_transform_name): Remove.
3385 * gdbarch.c, gdbarch.h: Regenerate.
3386
3387 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3388 gdbarch_static_transform_name.
3389 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3390 * stabsread.c (define_symbol) <'X'>: Remove.
3391 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3392 handling.
3393 <'V'>: Likewise.
3394 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3395 <'S'>: Remove call to gdbarch_static_transform_name.
3396
c6d36836
RO
33972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3398
3399 * procfs.c (procfs_pre_trace): New function.
3400 (procfs_target::create_inferior): Pass it to fork_inferior.
3401
a7e6196b
RO
34022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3403
3404 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3405 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3406 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3407 sol2-tdep.o, sparc-sol2-tdep.o.
3408 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3409 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3410 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3411 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3412
d412e696
RO
34132020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3414
3415 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3416 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3417 Call sol2_init_abi.
3418 Remove calls to set_gdbarch_skip_solib_resolver,
3419 set_gdbarch_core_pid_to_str.
3420 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3421 (i386_sol2_static_transform_name): Remove.
3422 (i386_sol2_init_abi): Call sol2_init_abi.
3423 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3424 set_gdbarch_static_transform_name,
3425 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3426 Use sol2_sigtramp_p.
3427 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3428 (sol2_sigtramp_p): New function.
3429 (sol2_static_transform_name): New function.
3430 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3431 (sol2_init_abi): New function.
3432 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3433 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3434 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3435 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3436 (sparc_sol2_static_transform_name): Remove.
3437 (sparc32_sol2_init_abi): Call sol2_init_abi.
3438 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3439 set_gdbarch_static_transform_name,
3440 set_gdbarch_skip_solib_resolver,
3441 set_gdbarch_core_pid_to_str.
3442 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3443 (sparc_sol2_static_transform_name): Remove
3444 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3445 call sol2_sigtramp_p.
3446 (sparc64_sol2_init_abi): Call sol2_init_abi.
3447 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3448 set_gdbarch_static_transform_name,
3449 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3450
a8654e7d
PW
34512020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3452
3453 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3454 * exec.c (validate_exec_file): If from_tty, set both
3455 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3456 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3457 and from_tty, unconditionally ask a confirmation.
3458
caa7fd04
AB
34592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * target-descriptions.c (tdesc_architecture_name): Protect against
3462 NULL pointer dereference.
3463 (maint_print_xml_tdesc_cmd): New function.
3464 (_initialize_target_descriptions): Register new 'maint print
3465 xml-tdesc' command and give it the filename completer.
3466 * NEWS: Mention new 'maint print xml-tdesc' command.
3467
fbf42f4e
AB
34682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * target-descriptions.c (class tdesc_compatible_info): New class.
3471 (struct target_desc): Change type of compatible vector.
3472 (tdesc_compatible_p): Update for change in type of
3473 target_desc::compatible.
3474 (tdesc_compatible_info_list): New function.
3475 (tdesc_compatible_info_arch_name): New function.
3476 (tdesc_add_compatible): Update for change in type of
3477 target_desc::compatible.
3478 (print_c_tdesc::visit_pre): Likewise.
3479
20821f4e
AB
34802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3483 whitespace to underscore.
3484 (maint_print_c_tdesc_cmd): Use fake filename for target
3485 descriptions that came from the target.
3486 (_initialize_target_descriptions): Add filename command completion
3487 for 'maint print c-tdesc'.
3488
1fb5ee62
SM
34892020-06-23 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3492 lines.
3493
fc3ecb3e
SM
34942020-06-23 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3497 lines.
3498 (dwarf2_find_location_expression): Likewise.
3499 (call_site_parameter_matches): Likewise.
3500 (dwarf2_compile_expr_to_ax): Likewise.
3501 (disassemble_dwarf_expression): Likewise.
3502 (loclist_describe_location): Likewise.
3503
236ef034
PA
35042020-06-23 Pedro Alves <palves@redhat.com>
3505
3506 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3507 progspace-and-thread.h. Include scoped-mock-context.h instead.
3508 (register_to_value_test): Use scoped_mock_context.
3509 * regcache.c: Include "scoped-mock-context.h".
3510 (cooked_read_test): Don't error out if a target is already pushed.
3511 Use scoped_mock_context. Adjust.
3512 * scoped-mock-context.h: New file.
3513
39e7ecca
AB
35142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3517 initializer.
3518 (ada_language::is_string_type_p): New member function.
3519 * c-lang.c (c_language_data): Delete la_is_string_type_p
3520 initializer.
3521 (cplus_language_data): Likewise.
3522 (asm_language_data): Likewise.
3523 (minimal_language_data): Likewise.
3524 * d-lang.c (d_language_data): Likewise.
3525 * f-lang.c (f_is_string_type_p): Delete function, implementation
3526 moved to f_language::is_string_type_p.
3527 (f_language_data): Delete la_is_string_type_p initializer.
3528 (f_language::is_string_type_p): New member function,
3529 implementation from f_is_string_type_p.
3530 * go-lang.c (go_is_string_type_p): Delete function, implementation
3531 moved to go_language::is_string_type_p.
3532 (go_language_data): Delete la_is_string_type_p initializer.
3533 (go_language::is_string_type_p): New member function,
3534 implementation from go_is_string_type_p.
3535 * language.c (language_defn::is_string_type_p): Define new member
3536 function.
3537 (default_is_string_type_p): Make static, add comment copied from
3538 header file.
3539 (unknown_language_data): Delete la_is_string_type_p initializer.
3540 (unknown_language::is_string_type_p): New member function.
3541 (auto_language_data): Delete la_is_string_type_p initializer.
3542 (auto_language::is_string_type_p): New member function.
3543 * language.h (language_data): Delete la_is_string_type_p field.
3544 (language_defn::is_string_type_p): Declare new function.
3545 (default_is_string_type_p): Delete desclaration, move comment to
3546 definition.
3547 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3548 moved to m2_language::is_string_type_p.
3549 (m2_language_data): Delete la_is_string_type_p initializer.
3550 (m2_language::is_string_type_p): New member function,
3551 implementation from m2_is_string_type_p.
3552 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3553 initializer.
3554 * opencl-lang.c (opencl_language_data): Likewise.
3555 * p-lang.c (pascal_is_string_type_p): Delete function,
3556 implementation moved to pascal_language::is_string_type_p.
3557 (pascal_language_data): Delete la_is_string_type_p initializer.
3558 (pascal_language::is_string_type_p): New member function,
3559 implementation from pascal_is_string_type_p.
3560 * rust-lang.c (rust_is_string_type_p): Delete function,
3561 implementation moved to rust_language::is_string_type_p.
3562 (rust_language_data): Delete la_is_string_type_p initializer.
3563 (rust_language::is_string_type_p): New member function,
3564 implementation from rust_is_string_type_p.
3565 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3566 is_string_type_p.
3567
4ffc13fb
AB
35682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3569
3570 * ada-lang.c (ada_language_data): Delete la_print_typedef
3571 initializer.
3572 (ada_language::print_typedef): New member function.
3573 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3574 (cplus_language_data): Likewise.
3575 (asm_language_data): Likewise.
3576 (minimal_language_data): Likewise.
3577 * d-lang.c (d_language_data): Likewise.
3578 * f-lang.c (f_language_data): Likewise.
3579 (f_language::print_typedef): New member function.
3580 * go-lang.c (go_language_data): Delete la_print_typedef
3581 initializer.
3582 * language.c (language_defn::print_typedef): Define member
3583 function.
3584 (unknown_language_data): Delete la_print_typedef initializer.
3585 (unknown_language::print_typedef): New member function.
3586 (auto_language_data): Delete la_print_typedef initializer.
3587 (auto_language::print_typedef): New member function.
3588 * language.h (language_data): Delete la_print_typedef field.
3589 (language_defn::print_typedef): Declare new member function.
3590 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3591 (default_print_typedef): Delete declaration.
3592 * m2-lang.c (m2_language_data): Delete la_print_typedef
3593 initializer.
3594 (m2_language::print_typedef): New member function.
3595 * objc-lang.c (objc_language_data): Delete la_print_typedef
3596 initializer.
3597 * opencl-lang.c (opencl_language_data): Likewise.
3598 * p-lang.c (pascal_language_data): Likewise.
3599 (pascal_language::print_typedef): New member function.
3600 * rust-lang.c (rust_print_typedef): Delete function,
3601 implementation moved to rust_language::print_typedef.
3602 (rust_language): Delete la_print_typedef initializer.
3603 (rust_language::print_typedef): New member function,
3604 implementation from rust_print_typedef.
3605 * typeprint.c (default_print_typedef): Delete.
3606
d711ee67
AB
36072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3610 (ada_language::printstr): New member function.
3611 * c-lang.c (c_language_data): Delete la_printstr initializer.
3612 (cplus_language_data): Likewise.
3613 (asm_language_data): Likewise.
3614 (minimal_language_data): Likewise.
3615 * d-lang.c (d_language_data): Likewise.
3616 * f-lang.c (f_printstr): Rename to f_language::printstr.
3617 (f_language_data): Delete la_printstr initializer.
3618 (f_language::printstr): New member function, implementation from
3619 f_printstr.
3620 * go-lang.c (go_language_data): Delete la_printstr initializer.
3621 * language.c (language_defn::printstr): Define new member
3622 function.
3623 (unk_lang_printstr): Delete.
3624 (unknown_language_data): Delete la_printstr initializer.
3625 (unknown_language::printstr): New member function.
3626 (auto_language_data): Delete la_printstr initializer.
3627 (auto_language::printstr): New member function.
3628 * language.h (language_data): Delete la_printstr field.
3629 (language_defn::printstr): Declare new member function.
3630 (LA_PRINT_STRING): Update call to printstr.
3631 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3632 (m2_language_data): Delete la_printstr initializer.
3633 (m2_language::printstr): New member function, implementation from
3634 m2_printstr.
3635 * objc-lang.c (objc_language_data): Delete la_printstr
3636 initializer.
3637 * opencl-lang.c (opencl_language_data): Likewise.
3638 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3639 (pascal_language_data): Delete la_printstr initializer.
3640 (pascal_language::printstr): New member function, implementation
3641 from pascal_printstr.
3642 * p-lang.h (pascal_printstr): Delete declaration.
3643 * rust-lang.c (rust_printstr): Update header comment.
3644 (rust_language_data): Delete la_printstr initializer.
3645 (rust_language::printstr): New member function.
3646
52b50f2c
AB
36472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3650 (ada_language::printchar): New member function.
3651 * c-lang.c (c_language_data): Delete la_printchar initializer.
3652 (cplus_language_data): Likewise.
3653 (asm_language_data): Likewise.
3654 (minimal_language_data): Likewise.
3655 * d-lang.c (d_language_data): Likewise.
3656 * f-lang.c (f_printchar): Rename to f_language::printchar.
3657 (f_language_data): Delete la_printchar initializer.
3658 (f_language::printchar): New member function, implementation from
3659 f_printchar.
3660 * go-lang.c (go_language_data): Delete la_printchar initializer.
3661 * language.c (unk_lang_printchar): Delete.
3662 (language_defn::printchar): Define new member function.
3663 (unknown_language_data): Delete la_printchar initializer.
3664 (unknown_language::printchar): New member function.
3665 (auto_language_data): Delete la_printchar initializer.
3666 (auto_language::printchar): New member function.
3667 * language.h (language_data): Delete la_printchar field.
3668 (language_defn::printchar): Declare new member function.
3669 (LA_PRINT_CHAR): Update call to printchar.
3670 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3671 (m2_language::printchar): New member function.
3672 * objc-lang.c (objc_language_data): Delete la_printchar
3673 initializer.
3674 * opencl-lang.c (opencl_language_data): Likewise.
3675 * p-lang.c (pascal_language_data): Delete la_printchar
3676 initializer.
3677 (pascal_language::printchar): New member function.
3678 * rust-lang.c (rust_printchar): Rename to
3679 rust_language::printchar.
3680 (rust_language_data): Delete la_printchar initializer.
3681 (rust_language::printchar): New member function, implementation
3682 from rust_printchar.
3683
ec8cec5b
AB
36842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3687 (ada_language_data): Delete la_emitchar initializer.
3688 (ada_language::emitchar): New member function, implementation from
3689 emit_char.
3690 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3691 (cplus_language_data): Likewise.
3692 (asm_language_data): Likewise.
3693 (minimal_language_data): Likewise.
3694 * d-lang.c (d_language_data): Likewise.
3695 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3696 (f_language_data): Delete la_emitchar initializer.
3697 (f_language::emitchar): New member function, implementation from
3698 f_emit_char.
3699 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3700 * language.c (unk_lang_emit_char): Delete.
3701 (language_defn::emitchar): New member function definition.
3702 (unknown_language_data): Delete la_emitchar initializer.
3703 (unknown_language::emitchar): New member function.
3704 (auto_language_data): Delete la_emitchar initializer.
3705 (auto_language::emitchar): New member function.
3706 * language.h (language_data): Delete la_emitchar field.
3707 (language_defn::emitchar): New member field declaration.
3708 (LA_EMIT_CHAR): Update call to emitchar.
3709 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3710 (m2_language_data): Delete la_emitchar initializer.
3711 (m2_language::emitchar): New member function, implementation from
3712 m2_emit_char.
3713 * objc-lang.c (objc_language_data): Delete la_emitchar
3714 initializer.
3715 * opencl-lang.c (opencl_language_data): Likewise.
3716 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3717 (pascal_language_data): Delete la_emitchar initializer.
3718 (pascal_language::emitchar): New member function, implementation
3719 from pascal_emit_char.
3720 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3721 (rust_language_data): Delete la_emitchar initializer.
3722 (rust_language::emitchar): New member function, implementation
3723 from rust_emitchar.
3724
1bf9c363
AB
37252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3728 (ada_language_data): Delete la_post_parser initializer.
3729 (ada_language::post_parser): New member function.
3730 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3731 (cplus_language_data): Likewise.
3732 (asm_language_data): Likewise.
3733 (minimal_language_data): Likewise.
3734 * d-lang.c (d_language_data): Likewise.
3735 * f-lang.c (f_language_data): Likewise.
3736 * go-lang.c (go_language_data): Likewise.
3737 * language.c (unknown_language_data): Likewise.
3738 (auto_language_data): Likewise.
3739 * language.h (language_data): Delete la_post_parser field.
3740 (language_defn::post_parser): New member function.
3741 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3742 * objc-lang.c (objc_language_data): Likewise.
3743 * opencl-lang.c (opencl_language_data): Likewise.
3744 * p-lang.c (pascal_language_data): Likewise.
3745 * parse.c (parse_exp_in_context): Update call to post_parser.
3746 (null_post_parser): Delete definition.
3747 * parser-defs.h (null_post_parser): Delete declaration.
3748 * rust-lang.c (rust_language_data): Delete la_post_parser
3749 initializer.
3750
87afa652
AB
37512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * ada-lang.c (parse): Rename to ada_language::parser.
3754 (ada_language_data): Delete la_parser initializer.
3755 (ada_language::parser): New member function, implementation from
3756 parse.
3757 * c-lang.c (c_language_data): Delete la_parser initializer.
3758 (cplus_language_data): Likewise.
3759 (asm_language_data): Likewise.
3760 (minimal_language_data): Likewise.
3761 * d-lang.c (d_language_data): Likewise.
3762 (d_language::parser): New member function.
3763 * f-lang.c (f_language_data): Delete la_parser initializer.
3764 (f_language::parser): New member function.
3765 * go-lang.c (go_language_data): Delete la_parser initializer.
3766 (go_language::parser): New member function.
3767 * language.c (unk_lang_parser): Delete.
3768 (language_defn::parser): Define new member function.
3769 (unknown_language_data): Delete la_parser initializer.
3770 (unknown_language::parser): New member function.
3771 (auto_language_data): Delete la_parser initializer.
3772 (auto_language::parser): New member function.
3773 * language.h (language_data): Delete la_parser field.
3774 (language_defn::parser): Declare new member function.
3775 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3776 (m2_language::parser): New member function.
3777 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3778 * opencl-lang.c (opencl_language_data): Likewise.
3779 * p-lang.c (pascal_language_data): Likewise.
3780 (pascal_language::parser): New member function.
3781 * parse.c (parse_exp_in_context): Update call to parser.
3782 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3783 (rust_language::parser): New member function.
3784
37825800
AB
37852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * top.c (print_gdb_configuration): Print --with-python-libdir
3788 configuration value.
3789
5b860c93
PW
37902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3791
3792 * NEWS: Mention change to the alias command.
3793
cf00cd6f
PW
37942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3795
3796 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3797 (alias_command_completer)
3798 (make_alias_options_def_group): New functions.
3799 (alias_opts, alias_option_defs): New struct and array.
3800 (alias_usage_error): Update usage.
3801 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3802 Use option framework.
3803 (_initialize_cli_cmds): Update alias command help.
3804 Update aliases command help.
3805 (show_user):
3806 Add NULL for new default_args lookup_cmd argument.
3807 (valid_command_p): Rename to validate_aliased_command.
3808 Add NULL for new default_args lookup_cmd argument. Verify that the
3809 aliased_command has no default args.
3810 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3811 (lookup_cmd_1, lookup_cmd): New argument default_args.
3812 (add_alias_cmd):
3813 Add NULL for new default_args lookup_cmd argument.
3814 (print_help_for_command): Show default args under the layout
3815 alias some_alias = some_aliased_cmd some_alias_default_arg.
3816 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3817 xfree default_args in destructor.
3818 * cli/cli-script.c (process_next_line, do_define_command):
3819 Add NULL for new default_args lookup_cmd argument.
3820 * command.h: Declare new default_args argument in lookup_cmd
3821 and lookup_cmd_1.
3822 * completer.c (complete_line_internal_1):
3823 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3824 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3825 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3826 Likewise.
3827 * infcmd.c (_initialize_infcmd): Likewise.
3828 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3829 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3830 * python/py-param.c (add_setshow_generic): Likewise.
3831 * remote.c (_initialize_remote): Likewise.
3832 * top.c (execute_command): Prepend default_args if command has some.
3833 (set_verbose):
3834 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3835 * tracepoint.c (validate_actionline, encode_actions_1):
3836 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3837
bd920864
TBA
38382020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 * jit.c (jit_read_descriptor): Use bool as the return type.
3841 (jit_breakpoint_re_set_internal): Use bool as the return type.
3842 Invert the return value logic; return true if the jit breakpoint
3843 has been successfully initialized.
3844 (jit_inferior_init): Update the call to
3845 jit_breakpoint_re_set_internal.
3846
f8098322
PA
38472020-06-22 Pedro Alves <palves@redhat.com>
3848
3849 PR gdb/25939
3850 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3851 Use the current inferior instead. Don't return
3852 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3853 wait again.
3854 * sol-thread.c (sol_thread_target::wait): Don't reference
3855 inferior_ptid.
3856 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3857 (sol_update_thread_list_callback): Use the current inferior's pid
3858 instead of inferior_ptid.
3859
196535a6
RO
38602020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3861
3862 * procfs.c: Cleanup many comments.
3863
3864 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3865 (AFTER_WATCHFLAG): Replace by value.
3866
3867 (MAIN_PROC_NAME_FORMAT): Inline ...
3868 (create_procinfo): ... here.
3869
3870 (procfs_debug_inferior): Remove SYS_exec handling.
3871 (syscall_is_exec): Likewise.
3872 (procfs_set_exec_trap): Likewise.
3873
3874 (syscall_is_lwp_exit): Inline in callers.
3875 (syscall_is_exit): Likewise.
3876 (syscall_is_exec): Likewise.
3877 (syscall_is_lwp_create): Likewise.
3878
3879 (invalidate_cache): Remove #if 0 code.
3880
3881 (make_signal_thread_runnable): Remove.
3882 (procfs_target::resume): Remove #if 0 code.
3883
cf6f3e86
RO
38842020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3885
3886 PR gdb/25939
3887 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3888 call ...
3889 (procfs_target::create_inferior): ... here.
3890
48e9cc84
PW
38912020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3892
3893 * exec.c (validate_exec_file): Ensure the build-id is up to
3894 date by calling reopen_exec_file (that checks file timestamp
3895 to decide to re-read the file).
3896
3922b302
PA
38972020-06-18 Pedro Alves <palves@redhat.com>
3898
3899 PR gdb/25412
3900 * gdbthread.h (delete_thread, delete_thread_silent)
3901 (find_thread_ptid): Update comments.
3902 * thread.c (current_thread_): New global.
3903 (is_current_thread): Move higher, and reimplement.
3904 (inferior_thread): Reimplement.
3905 (set_thread_exited): Use bool. Add assertions.
3906 (add_thread_silent): Simplify thread-reuse handling by always
3907 calling delete_thread.
3908 (delete_thread): Remove intro comment.
3909 (find_thread_ptid): Skip exited threads.
3910 (switch_to_thread_no_regs): Write to current_thread_.
3911 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3912 INFERIOR_PTID. Clear current_thread_.
3913
6dbdab44
PA
39142020-06-18 Pedro Alves <palves@redhat.com>
3915
3916 * aix-thread.c (pd_update): Use switch_to_thread.
3917
2da4b788
PA
39182020-06-18 Pedro Alves <palves@redhat.com>
3919
3920 * ravenscar-thread.c (ravenscar_thread_target): Update.
3921 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3922 (ravenscar_thread_target::add_active_thread): ... this. Don't
3923 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3924 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3925
50838d1b
PA
39262020-06-18 Pedro Alves <palves@redhat.com>
3927
3928 * nat/windows-nat.c (current_windows_thread): Remove.
3929 * nat/windows-nat.h (current_windows_thread): Remove.
3930 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3931 Adjust.
3932 (display_selectors): Adjust to fetch the current
3933 windows_thread_info based on inferior_ptid.
3934 (fake_create_process): No longer write to current_windows_thread.
3935 (windows_nat_target::get_windows_debug_event):
3936 Don't set inferior_ptid or current_windows_thread.
3937 (windows_nat_target::wait): Adjust to not rely on
3938 current_windows_thread.
3939 (do_initial_windows_stuff): Now a method of windows_nat_target.
3940 Switch to the last_ptid thread.
3941 (windows_nat_target::attach): Adjust.
3942 (windows_nat_target::detach): Use switch_to_no_thread instead of
3943 writing to inferior_ptid directly.
3944 (windows_nat_target::create_inferior): Adjust.
3945
31ce04e9
PA
39462020-06-18 Pedro Alves <palves@redhat.com>
3947
3948 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3949
1ee1a363
PA
39502020-06-18 Pedro Alves <palves@redhat.com>
3951
3952 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3953 after creating it, instead of writing to inferior_ptid. Don't
3954 write to inferior_ptid.
3955
6d350754
PA
39562020-06-18 Pedro Alves <palves@redhat.com>
3957
3958 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3959
5d971d48
PA
39602020-06-18 Pedro Alves <palves@redhat.com>
3961
3962 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3963 it, instead of writing to inferior_ptid.
3964
86e57d1b
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3968 to inferior_ptid.
3969
f2e1c129
PA
39702020-06-18 Pedro Alves <palves@redhat.com>
3971
3972 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3973 instead of writing to inferior_ptid directly.
3974
60db1b85
PA
39752020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * corelow.c (core_target::close): Use switch_to_no_thread instead
3978 of writing to inferior_ptid directly.
3979 (add_to_thread_list, core_target_open): Use switch_to_thread
3980 instead of writing to inferior_ptid directly.
3981
fe7d6a8d
PA
39822020-06-18 Pedro Alves <palves@redhat.com>
3983
3984 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3985 inferior_ptid.
3986 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3987 inferior_ptid.
3988 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3989 inferior_ptid directly.
3990 (darwin_nat_target::init_thread_list): Switch to thread, instead
3991 of writing to inferior_ptid.
3992 (darwin_nat_target::attach): Don't write to inferior_ptid.
3993 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3994
975f8708
PA
39952020-06-18 Pedro Alves <palves@redhat.com>
3996
3997 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3998 thread.
3999 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4000 Instead use switch_to_thread.
4001 (gnu_nat_target::detach): Use switch_to_no_thread
4002 instead of writing to inferior_ptid directly. Used passed-in
4003 inferior instead of looking up the inferior by pid.
4004
1a204730
PA
40052020-06-18 Pedro Alves <palves@redhat.com>
4006
4007 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4008 inferior_ptid.
4009
ebe84f23
PA
40102020-06-18 Pedro Alves <palves@redhat.com>
4011
4012 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4013 inferior_ptid.
4014 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4015 thread.
4016 (nto_procfs_target::detach): Avoid referencing
4017 inferior_ptid. Use switch_to_no_thread instead of writing to
4018 inferior_ptid directly.
4019 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4020 instead of writing to inferior_ptid directly.
4021 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4022 to thread.
4023
191f02e5
PA
40242020-06-18 Pedro Alves <palves@redhat.com>
4025
4026 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4027 after creating it, instead of writing to inferior_ptid.
4028 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4029 to inferior_ptid directly.
4030 (gdbsim_target::wait): Don't write to inferior_ptid.
4031
0ac55310
PA
40322020-06-18 Pedro Alves <palves@redhat.com>
4033
4034 * remote.c (remote_target::remote_notice_new_inferior): Use
4035 switch_to_thread instead of writing to inferior_ptid directly.
4036 (remote_target::add_current_inferior_and_thread): Use
4037 switch_to_no_thread instead of writing to inferior_ptid directly.
4038 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4039 and switch_to_thread instead of using set_current_inferior or
4040 writing to inferior_ptid directly.
4041
5233f39b
PA
40422020-06-18 Pedro Alves <palves@redhat.com>
4043
4044 * tracectf.c (ctf_target_open): Switch to added thread instead of
4045 writing to inferior_ptid directly.
4046 (ctf_target::close): Use switch_to_no_thread instead of writing to
4047 inferior_ptid directly.
4048
087e161b
PA
40492020-06-18 Pedro Alves <palves@redhat.com>
4050
4051 * tracefile-tfile.c (tfile_target_open): Don't write to
4052 inferior_ptid directly, instead switch to added thread.
4053 (tfile_target::close): Use switch_to_no_thread instead of writing
4054 to inferior_ptid directly.
4055
7fb43e53
PA
40562020-06-18 Pedro Alves <palves@redhat.com>
4057
4058 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4059 (procfs_target::detach): Use switch_to_no_thread
4060 instead of writing to inferior_ptid directly.
4061 (do_attach): Change return type to void. Switch to the added
4062 thread.
4063 (procfs_target::create_inferior): Switch to the added thread.
4064 (procfs_do_thread_registers): Don't write to inferior_ptid.
4065
18493a00
PA
40662020-06-18 Pedro Alves <palves@redhat.com>
4067
4068 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4069 of writing to inferior_ptid.
4070 (scoped_restore_exited_inferior): Delete.
4071 (handle_vfork_child_exec_or_exit): Simplify using
4072 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4073 instead of writing to inferior_ptid.
4074 (THREAD_STOPPED_BY): Delete.
4075 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4076 (thread_stopped_by_hw_breakpoint): Delete.
4077 (save_waitstatus): Use
4078 scoped_restore_current_thread+switch_to_thread, and call
4079 target_stopped_by_watchpoint instead of
4080 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4081 instead of thread_stopped_by_sw_breakpoint, and
4082 target_stopped_by_hw_breakpoint instead of
4083 thread_stopped_by_hw_breakpoint.
4084 (handle_inferior_event)
4085 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4086 inferior_ptid directly, nor
4087 set_current_inferior/set_current_program_space. Use
4088 switch_to_thread / switch_to_inferior_no_thread instead.
4089
a0776b13
PA
40902020-06-18 Pedro Alves <palves@redhat.com>
4091
4092 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4093 instead of writing to inferior_ptid.
4094
6155c136
PA
40952020-06-18 Pedro Alves <palves@redhat.com>
4096
4097 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4098 added thread.
4099 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4100 to the added thread.
4101 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4102 instead of writing to inferior_ptid.
4103
c5316fc6
PA
41042020-06-18 Pedro Alves <palves@redhat.com>
4105
4106 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4107 (register_to_value_test): Mock a program_space too. Heap-allocate
4108 the address space. Don't write to inferior_ptid. Use
4109 switch_to_thread instead.
4110
8df01799
PA
41112020-06-18 Pedro Alves <palves@redhat.com>
4112
4113 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4114 Delete.
4115 (find_signalled_thread()): New, factored out from
4116 linux_make_corefile_notes and adjusted to handle exited threads.
4117 (linux_make_corefile_notes): Adjust to use the new
4118 find_signalled_thread.
4119
41792d68
PA
41202020-06-18 Pedro Alves <palves@redhat.com>
4121
4122 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4123 of saving/restoring inferior_ptid.
4124
612f258a
TT
41252020-06-17 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4128 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4129 declare.
4130 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4131
efb763a5
SM
41322020-06-15 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4135 of partial symtabs.
4136
2951f6c0
SM
41372020-06-17 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * regformats/reg-arm.dat: Remove.
4140 * regformats/reg-bfin.dat: Remove.
4141 * regformats/reg-cris.dat: Remove.
4142 * regformats/reg-crisv32.dat: Remove.
4143 * regformats/reg-m32r.dat: Remove.
4144 * regformats/reg-tilegx.dat: Remove.
4145 * regformats/reg-tilegx32.dat: Remove.
4146
7d458ea5
SM
41472020-06-17 Simon Marchi <simon.marchi@efficios.com>
4148
4149 * features/Makefile (WHICH): Remove arm files.
4150 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4151 * regformats/arm/arm-with-neon.dat: Remove.
4152 * regformats/arm/arm-with-vfpv2.dat: Remove.
4153 * regformats/arm/arm-with-vfpv3.dat: Remove.
4154
3af96c0d
SM
41552020-06-17 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * features/Makefile (XMLTOC): Remove rx.xml.
4158
b25e22fd
PA
41592020-06-17 Pedro Alves <palves@redhat.com>
4160
4161 * gdbthread.h (thread_control_state) <trap_expected> Update
4162 comments.
4163
a78a19b1
AB
41642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4165
4166 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4167 ada_language::lookup_symbol_nonlocal.
4168 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4169 (ada_language::lookup_symbol_nonlocal): New member function,
4170 implementation from ada_lookup_symbol_nonlocal.
4171 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4172 initializer.
4173 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4174 initializer.
4175 (cplus_language::lookup_symbol_nonlocal): New member function.
4176 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4177 (minimal_language_data) Likewise.
4178 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4179 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4180 initializer.
4181 (d_language::lookup_symbol_nonlocal): New member function.
4182 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4183 initializer.
4184 (f_language::lookup_symbol_nonlocal): New member function.
4185 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4186 initializer.
4187 * language.c (unknown_language_data): Likewise.
4188 (auto_language_data): Likewise.
4189 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4190 field.
4191 (language_defn::lookup_symbol_nonlocal): New member function.
4192 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4193 initializer.
4194 * objc-lang.c (objc_language_data): Likewise.
4195 * opencl-lang.c (opencl_language_data): Likewise.
4196 * p-lang.c (pascal_language_data): Likewise.
4197 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4198 rust_language::lookup_symbol_nonlocal.
4199 (rust_language_data): Delete la_lookup_symbol_nonlocal
4200 initializer.
4201 (rust_language::lookup_symbol_nonlocal): New member function,
4202 implementation from rust_lookup_symbol_nonlocal.
4203 * symtab.c (lookup_symbol_aux): Update call to
4204 lookup_symbol_nonlocal.
4205 (basic_lookup_symbol_nonlocal): Rename to...
4206 (language_defn::lookup_symbol_nonlocal): ...this, and update
4207 header comment. Remove language_defn parameter, and replace with
4208 uses of `this'.
4209 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4210
ebe2334e
AB
42112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4212
4213 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4214 initializer.
4215 (ada_language::value_print_inner): New member function.
4216 * c-lang.c (c_language_data): Delete la_value_print_inner
4217 initializer.
4218 (cplus_language_data): Likewise.
4219 (asm_language_data): Likewise.
4220 (minimal_language_data): Likewise.
4221 * d-lang.c (d_language_data): Likewise.
4222 (d_language::value_print_inner): New member function.
4223 * f-lang.c (f_language_data): Delete la_value_print_inner
4224 initializer.
4225 (f_language::value_print_inner): New member function.
4226 * f-lang.h (f_value_print_innner): Rename to...
4227 (f_value_print_inner): ...this (note spelling of 'inner').
4228 * f-valprint.c (f_value_print_innner): Rename to...
4229 (f_value_print_inner): ...this (note spelling of 'inner').
4230 * go-lang.c (go_language_data): Delete la_value_print_inner
4231 initializer.
4232 (go_language::value_print_inner): New member function.
4233 * language.c (language_defn::value_print_inner): Define new member
4234 function.
4235 (unk_lang_value_print_inner): Delete.
4236 (unknown_language_data): Delete la_value_print_inner initializer.
4237 (unknown_language::value_print_inner): New member function.
4238 (auto_language_data): Delete la_value_print_inner initializer.
4239 (auto_language::value_print_inner): New member function.
4240 * language.h (language_data): Delete la_value_print_inner field.
4241 (language_defn::value_print_inner): Delcare new member function.
4242 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4243 initializer.
4244 (m2_language::value_print_inner): New member function.
4245 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4246 initializer.
4247 * opencl-lang.c (opencl_language_data): Likewise.
4248 * p-lang.c (pascal_language_data): Likewise.
4249 (pascal_language::value_print_inner): New member function.
4250 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4251 initializer.
4252 (rust_language::value_print_inner): New member function.
4253 * valprint.c (do_val_print): Update call to value_print_inner.
4254
a1d1fa3e
AB
42552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * ada-lang.c (ada_language_data): Delete la_value_print
4258 initializer.
4259 (ada_language::value_print): New member function.
4260 * c-lang.c (c_language_data): Delete la_value_print initializer.
4261 (cplus_language_data): Likewise.
4262 (asm_language_data): Likewise.
4263 (minimal_language_data): Likewise.
4264 * d-lang.c (d_language_data): Likewise.
4265 * f-lang.c (f_language_data): Likewise.
4266 * go-lang.c (go_language_data): Likewise.
4267 * language.c (unk_lang_value_print): Delete.
4268 (language_defn::value_print): Define new member function.
4269 (unknown_language_data): Delete la_value_print initializer.
4270 (unknown_language::value_print): New member function.
4271 (auto_language_data): Delete la_value_print initializer.
4272 (auto_language::value_print): New member function.
4273 * language.h (language_data): Delete la_value_print field.
4274 (language_defn::value_print): Declare new member function.
4275 (LA_VALUE_PRINT): Update call to value_print.
4276 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4277 * objc-lang.c (objc_language_data): Likewise.
4278 * opencl-lang.c (opencl_language_data): Likewise.
4279 * p-lang.c (pascal_language_data): Likewise.
4280 (pascal_language::value_print): New member function.
4281 * rust-lang.c (rust_language_data): Delete la_value_print
4282 initializer.
4283
f16a9f57
AB
42842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * ada-lang.c (ada_watch_location_expression): Rename to
4287 ada_language::watch_location_expression.
4288 (ada_language_data): Delete la_watch_location_expression
4289 initializer.
4290 (ada_language::watch_location_expression): New member function,
4291 implementation from ada_watch_location_expression.
4292 * breakpoint.c (watch_command_1): Update call to
4293 watch_location_expression.
4294 * c-lang.c (c_watch_location_expression): Rename to
4295 language_defn::watch_location_expression.
4296 (c_language_data): Delete la_watch_location_expression
4297 initializer.
4298 (cplus_language_data): Likewise.
4299 (asm_language_data): Likewise.
4300 (minimal_language_data): Likewise.
4301 * c-lang.h (c_watch_location_expression): Delete declaration.
4302 * d-lang.c (d_language_data): Delete la_watch_location_expression
4303 initializer.
4304 * f-lang.c (f_language_data): Likewise.
4305 * go-lang.c (go_language_data): Likewise.
4306 * language.c (language_defn::watch_location_expression): Member
4307 function implementation from c_watch_location_expression.
4308 (unknown_language_data): Delete la_watch_location_expression
4309 initializer.
4310 (auto_language_data): Likewise.
4311 * language.h (language_data): Delete la_watch_location_expression
4312 field.
4313 (language_defn::watch_location_expression): Declare new member
4314 function.
4315 * m2-lang.c (m2_language_data): Delete
4316 la_watch_location_expression initializer.
4317 * objc-lang.c (objc_language_data): Likewise.
4318 * opencl-lang.c (opencl_language_data): Likewise.
4319 * p-lang.c (pascal_language_data): Likewise.
4320 * rust-lang.c (rust_watch_location_expression): Rename to
4321 rust_language::watch_location_expression.
4322 (rust_language_data): Delete la_watch_location_expression
4323 initializer.
4324 (rust_language::watch_location_expression): New member function,
4325 implementation from rust_watch_location_expression.
4326
7e56227d
AB
43272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4328
4329 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4330 ada_language::collect_symbol_completion_matches.
4331 (ada_language_data): Delete la_collect_symbol_completion_matches
4332 initializer.
4333 (ada_language::collect_symbol_completion_matches): New member
4334 function, implementation from
4335 ada_collect_symbol_completion_matches.
4336 * c-lang.c (c_language_data): Delete
4337 la_collect_symbol_completion_matches initializer.
4338 (cplus_language_data): Likewise.
4339 (asm_language_data): Likewise.
4340 (minimal_language_data): Likewise.
4341 * d-lang.c (d_language_data): Likewise.
4342 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4343 f_language::collect_symbol_completion_matches.
4344 (f_language_data): Delete la_collect_symbol_completion_matches
4345 initializer.
4346 (f_language::collect_symbol_completion_matches) New member
4347 function, implementation from f_collect_symbol_completion_matches.
4348 * go-lang.c (go_language_data): Delete
4349 la_collect_symbol_completion_matches initializer.
4350 * language.c (unknown_language_data): Likewise.
4351 (auto_language_data): Likewise.
4352 * language.h (language_data): Delete
4353 la_collect_symbol_completion_matches field.
4354 (language_defn::collect_symbol_completion_matches): New member
4355 function.
4356 * m2-lang.c (m2_language_data): Delete
4357 la_collect_symbol_completion_matches initializer.
4358 * objc-lang.c (objc_language_data): Likewise.
4359 * opencl-lang.c (opencl_language_data): Likewise.
4360 * p-lang.c (pascal_language_data): Likewise.
4361 * rust-lang.c (rust_language_data): Likewise.
4362 * symtab.c (default_collect_symbol_completion_matches): Delete.
4363 (collect_symbol_completion_matches): Update call to
4364 collect_symbol_completion_matches.
4365 (collect_symbol_completion_matches_type): Likewise.
4366 * symtab.h (default_collect_symbol_completion_matches): Delete
4367 declaration.
4368
53fc67f8
AB
43692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4372 (ada_language_data): Delete la_word_break_characters initializer.
4373 (ada_language::word_break_characters): New member function.
4374 * c-lang.c (c_language_data): Delete la_word_break_characters
4375 initializer.
4376 (cplus_language_data): Likewise.
4377 (asm_language_data): Likewise.
4378 (minimal_language_data): Likewise.
4379 * completer.c: Update global comment.
4380 (advance_to_expression_complete_word_point): Update call to
4381 word_break_characters.
4382 (complete_files_symbols): Likewise.
4383 (complete_line_internal_1): Likewise.
4384 (default_completer_handle_brkchars): Likewise.
4385 (skip_quoted_chars): Likewise.
4386 * d-lang.c (d_language_data): Delete la_word_break_characters
4387 initializer.
4388 * f-lang.c (f_word_break_characters): Delete.
4389 (f_language_data): Delete la_word_break_characters initializer.
4390 (f_language::word_break_characters): New member function.
4391 * go-lang.c (go_language_data): Delete la_word_break_characters
4392 initializer.
4393 * language.c (unknown_language_data): Likewise.
4394 (auto_language_data): Likewise.
4395 * language.h (default_word_break_characters): Move declaration to
4396 earlier in the file.
4397 (language_data): Delete la_word_break_characters field.
4398 (language_defn::word_break_characters): New member function.
4399 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4400 initializer.
4401 * objc-lang.c (objc_language_data): Likewise.
4402 * opencl-lang.c (opencl_language_data): Likewise.
4403 * p-lang.c (pascal_language_data): Likewise.
4404 * rust-lang.c (rust_language_data): Likewise.
4405
c9debfb9
AB
44062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4407
4408 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4409 (ada_language_data): Delete la_get_symbol_name_matcher
4410 initializer.
4411 (language_defn::get_symbol_name_matcher_inner): New member
4412 function.
4413 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4414 initializer.
4415 (cplus_language_data): Likewise.
4416 (cplus_language::get_symbol_name_matcher_inner): New member
4417 function.
4418 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4419 (minimal_language_data): Likewise.
4420 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4421 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4422 initializer.
4423 * dictionary.c (iter_match_first_hashed): Update call to
4424 get_symbol_name_matcher.
4425 (iter_match_next_hashed): Likewise.
4426 (iter_match_next_linear): Likewise.
4427 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4428 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4429 initializer.
4430 (f_language::get_symbol_name_matcher_inner): New member function.
4431 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4432 initializer.
4433 * language.c (default_symbol_name_matcher): Update header comment,
4434 make static.
4435 (language_defn::get_symbol_name_matcher): New definition.
4436 (language_defn::get_symbol_name_matcher_inner): Likewise.
4437 (get_symbol_name_matcher): Delete.
4438 (unknown_language_data): Delete la_get_symbol_name_matcher
4439 initializer.
4440 (auto_language_data): Likewise.
4441 * language.h (language_data): Delete la_get_symbol_name_matcher
4442 field.
4443 (language_defn::get_symbol_name_matcher): New member function.
4444 (language_defn::get_symbol_name_matcher_inner): Likewise.
4445 (default_symbol_name_matcher): Delete declaration.
4446 * linespec.c (find_methods): Update call to
4447 get_symbol_name_matcher.
4448 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4449 initializer.
4450 * minsyms.c (lookup_minimal_symbol): Update call to
4451 get_symbol_name_matcher.
4452 (iterate_over_minimal_symbols): Likewise.
4453 * objc-lang.c (objc_language_data): Delete
4454 la_get_symbol_name_matcher initializer.
4455 * opencl-lang.c (opencl_language_data): Likewise.
4456 * p-lang.c (pascal_language_data): Likewise.
4457 * psymtab.c (psymbol_name_matches): Update call to
4458 get_symbol_name_matcher.
4459 * rust-lang.c (rust_language_data): Delete
4460 la_get_symbol_name_matcher initializer.
4461 * symtab.c (symbol_matches_search_name): Update call to
4462 get_symbol_name_matcher.
4463 (compare_symbol_name): Likewise.
4464
9a49ad8c
AB
44652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4466
4467 * ada-lang.c (ada_language_data): Delete la_compute_program
4468 initializer.
4469 * c-lang.c (c_language_data): Likewise.
4470 (c_language::compute_program): New member function.
4471 (cplus_language_data): Delete la_compute_program initializer.
4472 (cplus_language::compute_program): New member function.
4473 (asm_language_data): Delete la_compute_program initializer.
4474 (minimal_language_data): Likewise.
4475 * c-lang.h (c_compute_program): Update comment.
4476 (cplus_compute_program): Likewise.
4477 * compile/compile-c-support.c (c_compute_program): Likewise.
4478 (cplus_compute_program): Likewise.
4479 * compile/compile.c (compile_to_object): Update call to
4480 la_compute_program.
4481 * d-lang.c (d_language_data): Delete la_compute_program
4482 initializer.
4483 * f-lang.c (f_language_data): Likewise.
4484 * go-lang.c (go_language_data): Likewise.
4485 * language.c (unknown_language_data): Likewise.
4486 (auto_language_data): Likewise.
4487 * language.h (language_data): Delete la_compute_program field.
4488 (language_defn::compute_program): New member function.
4489 * m2-lang.c (m2_language_data): Delete la_compute_program
4490 initializer.
4491 * objc-lang.c (objc_language_data): Likewise.
4492 * opencl-lang.c (opencl_language_data): Likewise.
4493 * p-lang.c (pascal_language_data): Likewise.
4494 * rust-lang.c (rust_language_data): Likewise.
4495
eff93b4d
AB
44962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ada-lang.c (ada_language_data) Delete
4499 la_class_name_from_physname initializer.
4500 * c-lang.c (c_language_data): Likewise.
4501 (cplus_language_data): Likewise.
4502 (cplus_language::class_name_from_physname): New member function.
4503 (asm_language_data): Delete la_class_name_from_physname
4504 initializer.
4505 (minimal_language_data): Likewise.
4506 * d-lang.c (d_language_data): Likewise.
4507 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4508 method on language_defn class.
4509 (guess_full_die_structure_name): Likewise.
4510 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4511 initializer.
4512 * go-lang.c (go_language_data): Likewise.
4513 * language.c (language_class_name_from_physname): Delete.
4514 (unk_lang_class_name): Delete.
4515 (unknown_language_data): Delete la_class_name_from_physname
4516 initializer.
4517 (auto_language_data): Likewise.
4518 * language.h (language_data): Delete la_class_name_from_physname
4519 field.
4520 (language_defn::class_name_from_physname): New function.
4521 (language_class_name_from_physname): Delete declaration.
4522 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4523 initializer.
4524 * objc-lang.c (objc_language_data): Likewise.
4525 * opencl-lang.c (opencl_language_data): Likewise.
4526 * p-lang.c (pascal_language_data): Likewise.
4527 * rust-lang.c (rust_language_data): Likewise.
4528
de543742
TT
45292020-06-16 Tom Tromey <tom@tromey.com>
4530
4531 * tui/tui-data.h (STATUS_NAME): New macro.
4532 * tui/tui-layout.c (tui_remove_some_windows)
4533 (initialize_known_windows, tui_register_window)
4534 (tui_layout_split::remove_windows, initialize_layouts)
4535 (tui_new_layout_command): Don't use hard-coded window names.
4536
a350efd4
TT
45372020-06-16 Tom Tromey <tom@tromey.com>
4538
4539 PR tui/25348:
4540 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4541 tui_initialize_readline. Only run once. Call rl_initialize.
4542 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4543 tui_initialize_readline.
4544 * tui/tui-io.c (tui_setup_io): Call
4545 tui_ensure_readline_initialized.
4546 * tui/tui-interp.c (tui_interp::init): Update.
4547
39ec0490
TT
45482020-06-16 Tom Tromey <tom@tromey.com>
4549
4550 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4551 Also preserve the status window.
4552
d2d1ea20
TT
45532020-06-16 Tom Tromey <tom@tromey.com>
4554
4555 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4556 where m_window==nullptr.
4557
66920317
TT
45582020-06-15 Tom Tromey <tromey@adacore.com>
4559
4560 * windows-nat.c (windows_nat::handle_output_debug_string):
4561 Update.
4562 (windows_nat::handle_ms_vc_exception): Update.
4563 * target.h (target_read_string): Change API.
4564 * target.c (target_read_string): Change API.
4565 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4566 Update.
4567 * solib-frv.c (frv_current_sos): Update.
4568 * solib-dsbt.c (dsbt_current_sos): Update.
4569 * solib-darwin.c (darwin_current_sos): Update.
4570 * linux-thread-db.c (inferior_has_bug): Update.
4571 * expprint.c (print_subexp_standard): Update.
4572 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4573 (ada_exception_message_1): Update.
4574
a5d871dd
TT
45752020-06-15 Tom Tromey <tromey@adacore.com>
4576
4577 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4578
670e35fa
TT
45792020-06-15 Tom Tromey <tromey@adacore.com>
4580
4581 * valprint.c (read_string): Update comment.
4582 * target.c (MIN): Remove.
4583 (target_read_string): Rewrite.
4584
f5272a3b
TT
45852020-06-15 Tom Tromey <tromey@adacore.com>
4586
4587 * corefile.c (read_memory_string): Remove.
4588 * ada-valprint.c (ada_value_print_ptr): Update.
4589 * ada-lang.h (ada_tag_name): Change return type.
4590 * ada-lang.c (type_from_tag): Update.
4591 (ada_tag_name_from_tsd): Change return type. Use
4592 target_read_string.
4593 (ada_tag_name): Likewise.
4594 * gdbcore.h (read_memory_string): Don't declare.
4595
2c074f49
HD
45962020-06-14 Hannes Domani <ssbssa@yahoo.de>
4597
4598 * symtab.c (rbreak_command): Ignore Windows drive colon.
4599
6a17d503
SM
46002020-06-12 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * NEWS: Mention removed GDBserver host support.
4603
453c733f
NC
46042020-06-12 Nelson Chu <nelson.chu@sifive.com>
4605
4606 * features/riscv/rebuild-csr-xml.sh: Updated.
4607
2b4e6a3f
TT
46082020-06-11 Tom Tromey <tom@tromey.com>
4609
4610 PR gdb/18318:
4611 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4612
4412332f
JG
46132020-06-09 Jonny Grant <jg@jguk.org>
46142020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4615
4616 * main.c (captured_main_1): Don't print new line after help.
4617 (print_gdb_help): add mailing list and IRC channel information
4618 to --help. Add new lines between items in the footer. Remove
4619 quotes around bug url.
4620
2f33032a
KS
46212020-06-11 Keith Seitz <keiths@redhat.com>
4622
4623 PR gdb/21356
4624 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4625 Resolve typedefs for type length calculations.
4626
7ab96794
TV
46272020-06-10 Tom de Vries <tdevries@suse.de>
4628
4629 PR ada/24713
4630 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4631 (write_psymbols): Enable .gdb_index for ada.
4632 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4633 ada.
4634
e5f3ece2
TV
46352020-06-10 Tom de Vries <tdevries@suse.de>
4636
4637 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4638 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4639 namei" instead of "const char *name" argument.
4640 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4641 dw2_symtab_iter_init.
4642
940da03e
SM
46432020-06-08 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4646 to use type::field and field::type instead.
4647
b6cdac4b
SM
46482020-06-08 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4651 to use field::type instead.
4652
5d14b6e5
SM
46532020-06-08 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (struct field) <type, set_type>: New methods.
4656 Rename `type` field to...
4657 <m_type>: ... this. Change references throughout to use type or
4658 set_type methods.
4659 (FIELD_TYPE): Use field::type. Change call sites that modify
4660 the field's type to use field::set_type instead.
4661
3d967001
SM
46622020-06-08 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4665 to use type::index_type instead.
4666
262abc0d
SM
46672020-06-08 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4670 methods.
4671 (TYPE_INDEX_TYPE): Use type::index_type.
4672 * gdbtypes.c (create_array_type_with_stride): Likewise.
4673
82836c92
TT
46742020-06-07 Tom Tromey <tom@tromey.com>
4675
4676 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4677 parameter.
4678 (generic_value_print): Update.
4679
940dace9
AB
46802020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 Revert commit 982a38f60b0.
4683 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4684
982a38f6
AB
46852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4688 avoid use after free.
4689
82f06518
TV
46902020-06-05 Tom de Vries <tdevries@suse.de>
4691
4692 * NEWS: Fix typos.
4693
f8c41851
SM
46942020-06-04 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4697 the per_bfd object.
4698 (dwarf2_read_debug_names): Likewise.
4699 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4700 object when re-using a per_bfd object with an index.
4701
f9b5d5ea
TV
47022020-06-03 Tom de Vries <tdevries@suse.de>
4703
4704 PR symtab/26046
4705 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4706 children for C++.
4707 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4708 DW_TAG_subprogram.
4709
f6eee2d0
AB
47102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * ada-lang.c (ada_language_data): Delete skip_trampoline
4713 initializer.
4714 * c-lang.c (c_language_data): Likewise.
4715 (cplus_language_data): Likewise.
4716 (cplus_language::skip_trampoline): New member function.
4717 (asm_language_data): Delete skip_trampoline initializer.
4718 (minimal_language_data): Likewise.
4719 * d-lang.c (d_language_data): Likewise.
4720 * f-lang.c (f_language_data): Likewise.
4721 * go-lang.c (go_language_data): Likewise.
4722 * language.c (unk_lang_trampoline): Delete function.
4723 (skip_language_trampoline): Update.
4724 (unknown_language_data): Delete skip_trampoline initializer.
4725 (auto_language_data): Likewise.
4726 * language.h (language_data): Delete skip_trampoline field.
4727 (language_defn::skip_trampoline): New function.
4728 * m2-lang.c (m2_language_data): Delete skip_trampoline
4729 initializer.
4730 * objc-lang.c (objc_skip_trampoline): Delete function, move
4731 implementation to objc_language::skip_trampoline.
4732 (objc_language_data): Delete skip_trampoline initializer.
4733 (objc_language::skip_trampoline): New member function with
4734 implementation from objc_skip_trampoline.
4735 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4736 initializer.
4737 * p-lang.c (pascal_language_data): Likewise.
4738 * rust-lang.c (rust_language_data): Likewise.
4739
0a50df5d
AB
47402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4743 (ada_language::demangle): New member function.
4744 * c-lang.c (c_language_data): Delete la_demangle initializer.
4745 (cplus_language_data): Delete la_demangle initializer.
4746 (cplus_language::demangle): New member function.
4747 (asm_language_data): Delete la_demangle initializer.
4748 (minimal_language_data): Delete la_demangle initializer.
4749 * d-lang.c (d_language_data): Delete la_demangle initializer.
4750 (d_language::demangle): New member function.
4751 * f-lang.c (f_language_data): Delete la_demangle initializer.
4752 (f_language::demangle): New member function.
4753 * go-lang.c (go_language_data): Delete la_demangle initializer.
4754 (go_language::demangle): New member function.
4755 * language.c (language_demangle): Update.
4756 (unk_lang_demangle): Delete.
4757 (unknown_language_data): Delete la_demangle initializer.
4758 (unknown_language::demangle): New member function.
4759 (auto_language_data): Delete la_demangle initializer.
4760 (auto_language::demangle): New member function.
4761 * language.h (language_data): Delete la_demangle field.
4762 (language_defn::demangle): New function.
4763 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4764 * objc-lang.c (objc_language_data): Delete la_demangle
4765 initializer.
4766 (objc_language::demangle): New member function.
4767 * opencl-lang.c (opencl_language_data): Delete la_demangle
4768 initializer.
4769 * p-lang.c (pascal_language_data): Likewise.
4770 * rust-lang.c (rust_language_data): Likewise.
4771 (rust_language::demangle): New member function.
4772
fbfb0a46
AB
47732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * ada-lang.c (ada_language_data): Delete la_print_type
4776 initializer.
4777 (ada_language::print_type): New member function.
4778 * c-lang.c (c_language_data): Delete la_print_type initializer.
4779 (c_language::print_type): New member function.
4780 (cplus_language_data): Delete la_print_type initializer.
4781 (cplus_language::print_type): New member function.
4782 (asm_language_data): Delete la_print_type initializer.
4783 (asm_language::print_type): New member function.
4784 (minimal_language_data): Delete la_print_type initializer.
4785 (minimal_language::print_type): New member function.
4786 * d-lang.c (d_language_data): Delete la_print_type initializer.
4787 (d_language::print_type): New member function.
4788 * f-lang.c (f_language_data): Delete la_print_type initializer.
4789 (f_language::print_type): New member function.
4790 * go-lang.c (go_language_data): Delete la_print_type initializer.
4791 (go_language::print_type): New member function.
4792 * language.c (unk_lang_print_type): Delete.
4793 (unknown_language_data): Delete la_print_type initializer.
4794 (unknown_language::print_type): New member function.
4795 (auto_language_data): Delete la_print_type initializer.
4796 (auto_language::print_type): New member function.
4797 * language.h (language_data): Delete la_print_type field.
4798 (language_defn::print_type): New function.
4799 (LA_PRINT_TYPE): Update.
4800 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4801 (m2_language::print_type): New member function.
4802 * objc-lang.c (objc_language_data): Delete la_print_type
4803 initializer.
4804 (objc_language::print_type): New member function.
4805 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4806 to opencl_language::print_type.
4807 (opencl_language_data): Delete la_print_type initializer.
4808 (opencl_language::print_type): New member function, implementation
4809 from opencl_print_type.
4810 * p-lang.c (pascal_language_data): Delete la_print_type
4811 initializer.
4812 (pascal_language::print_type): New member function.
4813 * rust-lang.c (rust_print_type): Delete, implementation moved to
4814 rust_language::print_type.
4815 (rust_language_data): Delete la_print_type initializer.
4816 (rust_language::print_type): New member function, implementation
4817 from rust_print_type.
4818
6f827019
AB
48192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4822 implementation moves to...
4823 (ada_language::sniff_from_mangled_name): ...here. Update return
4824 type.
4825 (ada_language_data): Delete la_sniff_from_mangled_name
4826 initializer.
4827 * c-lang.c (c_language_data): Likewise.
4828 (cplus_language_data): Likewise.
4829 (cplus_language::sniff_from_mangled_name): New member function,
4830 implementation taken from gdb_sniff_from_mangled_name.
4831 (asm_language_data): Delete la_sniff_from_mangled_name
4832 initializer.
4833 (minimal_language_data): Likewise.
4834 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4835 implementation moves to cplus_language::sniff_from_mangled_name.
4836 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4837 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4838 moves to...
4839 (d_language::sniff_from_mangled_name): ...here.
4840 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4841 * f-lang.c (f_language_data): Likewise.
4842 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4843 moves to...
4844 (go_language::sniff_from_mangled_name): ...here.
4845 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4846 * language.c (language_sniff_from_mangled_name): Delete.
4847 (unknown_language_data): Delete la_sniff_from_mangled_name
4848 initializer.
4849 (auto_language_data): Likewise.
4850 * language.h (language_data): Delete la_sniff_from_mangled_name
4851 field.
4852 (language_defn::sniff_from_mangled_name): New function.
4853 (language_sniff_from_mangled_name): Delete declaration.
4854 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4855 field.
4856 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4857 implementation moves to...
4858 (objc_language::sniff_from_mangled_name): ...here.
4859 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4860 * opencl-lang.c (opencl_language_data): Likewise.
4861 * p-lang.c (pascal_language_data): Likewise.
4862 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4863 implementation moves to...
4864 (rust_language::sniff_from_mangled_name): ...here.
4865 (rust_language_data): Delete la_sniff_from_mangled_name
4866 initializer.
4867 * symtab.c (symbol_find_demangled_name): Call
4868 sniff_from_mangled_name member function.
4869
fb8006fd
AB
48702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4873 initializer.
4874 * c-lang.c (c_language_data): Likewise.
4875 (cplus_language_data): Likewise.
4876 (cplus_language::search_name_hash): New member function.
4877 (asm_language_data): Delete la_search_name_hash initializer.
4878 (minimal_language_data): Likewise.
4879 * d-lang.c (d_language_data): Likewise.
4880 * dictionary.c (default_search_name_hash): Rename to...
4881 (language_defn::search_name_hash): ...this.
4882 * f-lang.c (f_language_data): Likewise.
4883 (f_language::search_name_hash): New member function.
4884 * go-lang.c (go_language_data): Delete la_search_name_hash
4885 initializer.
4886 * language.c (unknown_language_data): Likewise.
4887 (auto_language_data): Likewise.
4888 * language.h (struct language_data): Delete la_search_name_hash
4889 field.
4890 (language_defn::search_name_hash): Declare new member function.
4891 (default_search_name_hash): Delete declaration.
4892 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4893 initializer.
4894 * objc-lang.c (objc_language_data): Likewise.
4895 * opencl-lang.c (opencl_language_data): Likewise.
4896 * p-lang.c (pascal_language_data): Likewise.
4897 * rust-lang.c (rust_language_data): Likewise.
4898 * symtab.c (search_name_hash): Update call.
4899
8e25bafe
AB
49002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4903 initializer.
4904 * c-lang.c (class compile_instance): Declare.
4905 (c_language_data): Delete la_get_compile_instance initializer.
4906 (c_language::get_compile_instance): New member function.
4907 (cplus_language_data): Delete la_get_compile_instance initializer.
4908 (cplus_language::get_compile_instance): New member function.
4909 (asm_language_data): Delete la_get_compile_instance initializer.
4910 (minimal_language_data): Likewise.
4911 * c-lang.h (c_get_compile_context): Update comment.
4912 (cplus_get_compile_context): Update comment.
4913 * compile/compile.c (compile_to_object): Update calls, don't rely
4914 on function pointer being NULL.
4915 * d-lang.c (d_language_data): Delete la_get_compile_instance
4916 initializer.
4917 * f-lang.c (f_language_data): Likewise.
4918 * go-lang.c (go_language_data): Likewise.
4919 * language.c (unknown_language_data): Likewise.
4920 (auto_language_data): Likewise.
4921 * language.h (language_data): Delete la_get_compile_instance field.
4922 (language_defn::get_compile_instance): New member function.
4923 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4924 initializer.
4925 * objc-lang.c (objc_language_data): Likewise.
4926 * opencl-lang.c (opencl_language_data): Likewise.
4927 * p-lang.c (pascal_language_data): Likewise.
4928 * rust-lang.c (rust_language_data): Likewise.
4929
4009ee92
AB
49302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * ada-lang.c (ada_add_all_symbols): Update comment.
4933 (ada_iterate_over_symbols): Delete, move implementation to...
4934 (ada_language::iterate_over_symbols): ...here, a new member
4935 function, rewrite to use range based for loop.
4936 (ada_language_data): Delete la_iterate_over_symbols initializer.
4937 * c-lang.c (c_language_data): Likewise.
4938 (cplus_language_data): Likewise.
4939 (asm_language_data): Likewise.
4940 (minimal_language_data): Likewise.
4941 * d-lang.c (d_language_data): Likewise.
4942 * f-lang.c (f_language_data): Likewise.
4943 * go-lang.c (go_language_data): Likewise.
4944 * language.c (unknown_language_data): Likewise.
4945 (auto_language_data): Likewise.
4946 * language.h (language_data): Delete la_iterate_over_symbols field.
4947 (language_defn::iterate_over_symbols): New member function.
4948 (LA_ITERATE_OVER_SYMBOLS): Update.
4949 * linespec.c (iterate_over_all_matching_symtabs): Update.
4950 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4951 initializer.
4952 * objc-lang.c (objc_language_data): Likewise.
4953 * opencl-lang.c (opencl_language_data): Likewise.
4954 * p-lang.c (pascal_language_data): Likewise.
4955 * rust-lang.c (rust_language_data): Likewise.
4956
54f4ca46
AB
49572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * ada-lang.c (ada_language_data): Delete
4960 la_lookup_transparent_type initializer.
4961 * c-lang.c (c_language_data): Likewise.
4962 (cplus_language_data): Likewise.
4963 (cplus_language::lookup_transparent_type): New member function.
4964 (asm_language_data): Delete la_lookup_transparent_type
4965 initializer.
4966 (minimal_language_data): Likewise.
4967 * d-lang.c (d_language_data): Likewise.
4968 * f-lang.c (f_language_data): Likewise.
4969 * go-lang.c (go_language_data): Likewise.
4970 * language.c (unknown_language_data): Likewise.
4971 (auto_language_data): Likewise.
4972 * language.h (struct language_data): Delete
4973 la_lookup_transparent_type field.
4974 (language_defn::lookup_transparent_type): New member function.
4975 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4976 initializer.
4977 * objc-lang.c (objc_language_data): Likewise.
4978 * opencl-lang.c (opencl_language_data): Likewise.
4979 * p-lang.c (pascal_language_data): Likewise.
4980 * rust-lang.c (rust_language_data): Likewise.
4981 * symtab.c (symbol_matches_domain): Update call.
4982
1fb314aa
AB
49832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4984
4985 * ada-lang.c (ada_language_arch_info): Delete function, move
4986 implementation to...
4987 (ada_language::language_arch_info): ...here, a new member
4988 function.
4989 (ada_language_data): Delete la_language_arch_info.
4990 * c-lang.c (c_language_data): Likewise.
4991 (c_language::language_arch_info): New member function.
4992 (cplus_language_arch_info): Delete function, move
4993 implementation to...
4994 (cplus_language::language_arch_info): ...here, a new member
4995 function.
4996 (cplus_language_data): Delete la_language_arch_info.
4997 (asm_language_data): Likewise.
4998 (asm_language::language_arch_info): New member function.
4999 (minimal_language_data): Delete la_language_arch_info.
5000 (minimal_language::language_arch_info): New member function.
5001 * d-lang.c (d_language_arch_info): Delete function, move
5002 implementation to...
5003 (d_language::language_arch_info): ...here, a new member
5004 function.
5005 (d_language_data): Delete la_language_arch_info.
5006 * f-lang.c (f_language_arch_info): Delete function, move
5007 implementation to...
5008 (f_language::language_arch_info): ...here, a new member
5009 function.
5010 (f_language_data): Delete la_language_arch_info.
5011 * go-lang.c (go_language_arch_info): Delete function, move
5012 implementation to...
5013 (go_language::language_arch_info): ...here, a new member
5014 function.
5015 (go_language_data): Delete la_language_arch_info.
5016 * language.c (unknown_language_data): Likewise.
5017 (unknown_language::language_arch_info): New member function.
5018 (auto_language_data): Delete la_language_arch_info.
5019 (auto_language::language_arch_info): New member function.
5020 (language_gdbarch_post_init): Update call to
5021 la_language_arch_info.
5022 * language.h (language_data): Delete la_language_arch_info
5023 function pointer.
5024 (language_defn::language_arch_info): New function.
5025 * m2-lang.c (m2_language_arch_info): Delete function, move
5026 implementation to...
5027 (m2_language::language_arch_info): ...here, a new member
5028 function.
5029 (m2_language_data): Delete la_language_arch_info.
5030 * objc-lang.c (objc_language_arch_info): Delete function, move
5031 implementation to...
5032 (objc_language::language_arch_info): ...here, a new member
5033 function.
5034 (objc_language_data): Delete la_language_arch_info.
5035 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5036 implementation to...
5037 (opencl_language::language_arch_info): ...here, a new member
5038 function.
5039 (opencl_language_data): Delete la_language_arch_info.
5040 * p-lang.c (pascal_language_arch_info): Delete function, move
5041 implementation to...
5042 (pascal_language::language_arch_info): ...here, a new member
5043 function.
5044 (pascal_language_data): Delete la_language_arch_info.
5045 * rust-lang.c (rust_language_arch_info): Delete function, move
5046 implementation to...
5047 (rust_language::language_arch_info): ...here, a new member
5048 function.
5049 (rust_language_data): Delete la_language_arch_info.
5050
48448202
AB
50512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5054 initializer.
5055 * c-lang.c (c_language_data): Likewise.
5056 (cplus_language_data): Likewise.
5057 (cplus_language::pass_by_reference_info): New method.
5058 (asm_language_data): Delete la_pass_by_reference initializer.
5059 (minimal_language_data): Likewise.
5060 * cp-abi.c (cp_pass_by_reference): Remove use of
5061 default_pass_by_reference.
5062 * d-lang.c (d_language_data): Likewise.
5063 * f-lang.c (f_language_data): Likewise.
5064 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5065 default_pass_by_reference.
5066 * go-lang.c (go_language_data): Likewise.
5067 * language.c (language_pass_by_reference): Update.
5068 (default_pass_by_reference): Delete.
5069 (unknown_language_data): Delete la_pass_by_reference
5070 initializer.
5071 (auto_language_data): Likewise.
5072 * language.h (struct language_data): Delete la_pass_by_reference
5073 field.
5074 (language_defn::pass_by_reference_info): New member function.
5075 (default_pass_by_reference): Delete declaration.
5076 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5077 initializer.
5078 * objc-lang.c (objc_language_data): Likewise.
5079 * opencl-lang.c (opencl_language_data): Likewise.
5080 * p-lang.c (pascal_language_data): Likewise.
5081 * rust-lang.c (rust_language_data): Likewise.
5082
15e5fd35
AB
50832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * ada-lang.c (ada_read_var_value): Delete function, move
5086 implementation to...
5087 (ada_language::read_var_value): ...here.
5088 (ada_language_data): Delete la_read_var_value initializer.
5089 * c-lang.c (c_language_data): Likewise.
5090 (cplus_language_data): Likewise.
5091 (minimal_language_data): Likewise.
5092 * d-lang.c (d_language_data): Likewise.
5093 * f-lang.c (f_language_data): Likewise.
5094 * findvar.c (default_read_var_value): Rename to...
5095 (language_defn::read_var_value): ...this.
5096 * findvar.c (read_var_value): Update header comment, and change to
5097 call member function instead of function pointer.
5098 * go-lang.c (go_language_data): Likewise.
5099 * language.c (unknown_language_data): Delete la_read_var_value
5100 initializer.
5101 (auto_language_data): Likewise.
5102 * language.h (struct language_data): Delete la_read_var_value
5103 field.
5104 (language_defn::read_var_value): New member function.
5105 (default_read_var_value): Delete declaration.
5106 * m2-lang.c (m2_language_data): Delete la_read_var_value
5107 initializer.
5108 * objc-lang.c (objc_language_data): Likewise.
5109 * opencl-lang.c (opencl_language_data): Likewise.
5110 * p-lang.c (pascal_language_data): Likewise.
5111 * rust-lang.c (rust_language_data): Likewise.
5112 * value.h (default_read_var_value): Delete declaration.
5113
5bd40f2a
AB
51142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5115
5116 * ada-lang.c (ada_print_array_index): Delete function, move
5117 implementation to...
5118 (ada_language::print_array_index): ...here.
5119 (ada_language_data): Delete la_print_array_index initializer.
5120 * c-lang.c (c_language_data): Likewise.
5121 (cplus_language_data): Likewise.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 * f-lang.c (f_language_data): Likewise.
5125 * go-lang.c (go_language_data): Likewise.
5126 * language.c (default_print_array_index): Delete function, move
5127 implementation to...
5128 (language_defn::print_array_index): ...here.
5129 (unknown_language_data): Delete la_print_array_index initializer.
5130 (auto_language_data): Likewise.
5131 * language.h (struct language_data): Delete la_print_array_index
5132 field.
5133 (language_defn::print_array_index): New member function.
5134 (LA_PRINT_ARRAY_INDEX): Update.
5135 (default_print_array_index): Delete declaration.
5136 * m2-lang.c (m2_language_data): Delete la_print_array_index
5137 initializer.
5138 * objc-lang.c (objc_language_data): Likewise.
5139 * opencl-lang.c (opencl_language_data): Likewise.
5140 * p-lang.c (pascal_language_data): Likewise.
5141 * rust-lang.c (rust_language_data): Likewise.
5142
0874fd07
AB
51432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * gdb/ada-lang.c (ada_language_defn): Convert to...
5146 (ada_language_data): ...this.
5147 (class ada_language): New class.
5148 (ada_language_defn): New static global.
5149 * gdb/c-lang.c (c_language_defn): Convert to...
5150 (c_language_data): ...this.
5151 (class c_language): New class.
5152 (c_language_defn): New static global.
5153 (cplus_language_defn): Convert to...
5154 (cplus_language_data): ...this.
5155 (class cplus_language): New class.
5156 (cplus_language_defn): New static global.
5157 (asm_language_defn): Convert to...
5158 (asm_language_data): ...this.
5159 (class asm_language): New class.
5160 (asm_language_defn): New static global.
5161 (minimal_language_defn): Convert to...
5162 (minimal_language_data): ...this.
5163 (class minimal_language): New class.
5164 (minimal_language_defn): New static global.
5165 * gdb/d-lang.c (d_language_defn): Convert to...
5166 (d_language_data): ...this.
5167 (class d_language): New class.
5168 (d_language_defn): New static global.
5169 * gdb/f-lang.c (f_language_defn): Convert to...
5170 (f_language_data): ...this.
5171 (class f_language): New class.
5172 (f_language_defn): New static global.
5173 * gdb/go-lang.c (go_language_defn): Convert to...
5174 (go_language_data): ...this.
5175 (class go_language): New class.
5176 (go_language_defn): New static global.
5177 * gdb/language.c (unknown_language_defn): Remove declaration.
5178 (current_language): Initialize to nullptr, real initialization is
5179 moved to _initialize_language.
5180 (languages): Delete global.
5181 (language_defn::languages): Define.
5182 (set_language_command): Use language_defn::languages.
5183 (set_language): Likewise.
5184 (range_error): Likewise.
5185 (language_enum): Likewise.
5186 (language_def): Likewise.
5187 (add_set_language_command): Use language_def::languages for the
5188 language list, and language_def to lookup language pointers.
5189 (skip_language_trampoline): Use language_defn::languages.
5190 (unknown_language_defn): Convert to...
5191 (unknown_language_data): ...this.
5192 (class unknown_language): New class.
5193 (unknown_language_defn): New static global.
5194 (auto_language_defn): Convert to...
5195 (auto_language_data): ...this.
5196 (class auto_language): New class.
5197 (auto_language_defn): New static global.
5198 (language_gdbarch_post_init): Use language_defn::languages.
5199 (_initialize_language): Initialize current_language.
5200 * gdb/language.h (struct language_defn): Rename to...
5201 (struct language_data): ...this.
5202 (struct language_defn): New.
5203 (auto_language_defn): Delete.
5204 (unknown_language_defn): Delete.
5205 (minimal_language_defn): Delete.
5206 (ada_language_defn): Delete.
5207 (asm_language_defn): Delete.
5208 (c_language_defn): Delete.
5209 (cplus_language_defn): Delete.
5210 (d_language_defn): Delete.
5211 (f_language_defn): Delete.
5212 (go_language_defn): Delete.
5213 (m2_language_defn): Delete.
5214 (objc_language_defn): Delete.
5215 (opencl_language_defn): Delete.
5216 (pascal_language_defn): Delete.
5217 (rust_language_defn): Delete.
5218 * gdb/m2-lang.c (m2_language_defn): Convert to...
5219 (m2_language_data): ...this.
5220 (class m2_language): New class.
5221 (m2_language_defn): New static global.
5222 * gdb/objc-lang.c (objc_language_defn): Convert to...
5223 (objc_language_data): ...this.
5224 (class objc_language): New class.
5225 (objc_language_defn): New static global.
5226 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5227 (opencl_language_data): ...this.
5228 (class opencl_language): New class.
5229 (opencl_language_defn): New static global.
5230 * gdb/p-lang.c (pascal_language_defn): Convert to...
5231 (pascal_language_data): ...this.
5232 (class pascal_language): New class.
5233 (pascal_language_defn): New static global.
5234 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5235 language pointer, update comment format.
5236 * gdb/rust-lang.c (rust_language_defn): Convert to...
5237 (rust_language_data): ...this.
5238 (class rust_language): New class.
5239 (rust_language_defn): New static global.
5240
1313c56e
AB
52412020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5244 member variable.
5245 <m_stmt_at_address>: New member variable.
5246 (lnp_state_machine::record_line): Don't record some lines, update
5247 tracking of is_stmt at the same address.
5248 (lnp_state_machine::lnp_state_machine): Initialise new member
5249 variables.
5250
b7ed9f3d
ST
52512020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5252
5253 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5254 "-include gnu-nat-mig.h".
5255 * gnu-nat-mig.h: New file.
5256 * gnu-nat.c: Include "gnu-nat-mig.h".
5257 (exc_server, msg_reply_server, notify_server,
5258 process_reply_server): Remove declarations.
5259
14a8ad62
ST
52602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5261
5262 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5263 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5264 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5265 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5266 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5267 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5268 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5269 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5270 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5271 to gnu_nat_target class.
5272 * gnu-nat.c: Likewise.
5273 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5274 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5275 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5276 object.
5277 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5278 instead of `gnu_target'.
5279
0af5e106
ST
52802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5281
5282 * i386-gnu-tdep.c: Include "gdbcore.h"
5283 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5284 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5285 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5286 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5287 i386_gnu_sigcontext_addr): New functions
5288 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5289 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5290 tdep.
5291
078f2fc9
ST
52922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5293
5294 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5295 before fork_inferior call. Avoid calling it if target_is_pushed returns
5296 true.
5297
53dff92c
ST
52982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5299
5300 * gnu-nat.h (gnu_target): New variable declaration.
5301 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5302 gnu_target.
5303 * gnu-nat.c (gnu_target): New variable.
5304 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5305 add_thread_silent, and add_thread calls.
5306 (gnu_nat_target::create_inferior): Pass gnu_target to
5307 add_thread_silent, thread_change_ptid call.
5308 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5309 call.
5310
5a8b8627
ST
53112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5312
5313 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5314 (gnu_nat_target::find_memory_regions): Remove unused
5315 `old_address' variable.
5316
366f550a
ST
53172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5318
5319 * gnu-nat.c: Include "gdbarch.h".
5320
f14871bf
ST
53212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5322
5323 * reply_mig_hack.awk (Error return): Cast function through
5324 void *, to bypass compiler function call check.
5325
c6887cfb
ST
53262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5327
5328 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5329 $(srcdir)/reply_mig_hack.awk.
5330
6930bffe
ST
53312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5332
5333 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5334
112c22ed
JG
53352020-05-30 Jonny Grant <jg@jguk.org>
5336
5337 * configure.ac (ACX_BUGURL): change bug URL to https.
5338
f68f85b5
PA
53392020-05-30 Pedro Alves <palves@redhat.com>
5340
5341 * cp-support.c (replace_typedefs_template): New.
5342 (replace_typedefs_qualified_name): Handle
5343 DEMANGLE_COMPONENT_TEMPLATE.
5344
976ca316
SM
53452020-05-29 Simon Marchi <simon.marchi@efficios.com>
5346
5347 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5348 dwarf2/index-cache.h, dwarf2/index-write.c,
5349 dwarf2/index-write.h, dwarf2/line-header.c,
5350 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5351 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5352 variables and fields from `dwarf2_per_objfile` to just
5353 `per_objfile` throughout.
5354
989ade05
SM
53552020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5358 <push_dwarf_reg_entry_value>: Add comment.
5359
c47bae85
KB
53602020-05-28 Kevin Buettner <kevinb@redhat.com>
5361 Keith Seitz <keiths@redhat.com>
5362
5363 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5364 instead of PyEval_ReleaseLock.
5365 (class gdbpy_gil): Move to earlier in file.
5366 (finalize_python): Set gdb_python_initialized.
5367 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5368 when not initialized.
5369
44486dcf
SM
53702020-05-28 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5373 <push_dwarf_reg_entry_value>: Remove assert. Override
5374 per_objfile with caller_per_objfile.
5375
f030440d
TV
53762020-05-28 Tom de Vries <tdevries@suse.de>
5377
5378 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5379 PR gold/15646 workaround to symbol kind "type".
5380
f0fbb768
TT
53812020-05-27 Tom Tromey <tromey@adacore.com>
5382
5383 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5384
af0b2a3e
TT
53852020-05-27 Tom Tromey <tromey@adacore.com>
5386
5387 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5388 Use htab_find_with_hash.
5389 <add_abbrev>: Remove "abbrev_number" parameter.
5390 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5391 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5392 (hash_abbrev): Add comment.
5393 (abbrev_table::lookup_abbrev): Move to header file.
5394 (abbrev_table::read): Update.
5395
7d00ffec
TT
53962020-05-27 Tom Tromey <tromey@adacore.com>
5397
5398 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5399 method.
5400 <canonical_name>: New member.
5401 <raw_name>: Rename from "name".
5402 (partial_die_info): Initialize canonical_name.
5403 (scan_partial_symbols): Check raw_name.
5404 (partial_die_parent_scope, partial_die_full_name)
5405 (add_partial_symbol, add_partial_subprogram)
5406 (add_partial_enumeration, load_partial_dies): Use "name" method.
5407 (partial_die_info::name): New method.
5408 (partial_die_info::read, guess_partial_die_structure_name)
5409 (partial_die_info::fixup): Update.
5410
697bba18
TT
54112020-05-27 Tom Tromey <tromey@adacore.com>
5412
5413 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5414 <get_ref_die_offset>: Inline.
5415 <get_ref_die_offset_complaint>: New method.
5416 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5417 (attribute::get_ref_die_offset_complaint): Rename from
5418 get_ref_die_offset. Just issue complaint.
5419
c17ace43
HD
54202020-05-27 Hannes Domani <ssbssa@yahoo.de>
5421
5422 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5423
96445f0b
HD
54242020-05-27 Hannes Domani <ssbssa@yahoo.de>
5425
5426 * exec.c (exec_file_attach): Use errno value of first openp failure.
5427
ac637ec3
HD
54282020-05-27 Hannes Domani <ssbssa@yahoo.de>
5429
5430 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5431 Don't close thread handle.
5432
17ee85fc
TT
54332020-05-27 Tom Tromey <tom@tromey.com>
5434 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5437 shared_ptr.
5438 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5439 member.
5440 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5441 dwarf2_per_bfd_objfile_data_key>: New globals.
5442 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5443 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5444 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5445 shared.
5446 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5447 short-circuit when sharing.
5448 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5449 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5450
39b16f87
SM
54512020-05-27 Simon Marchi <simon.marchi@efficios.com>
5452
5453 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5454 to...
5455 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5456 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5457
fcf23d5b
SM
54582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5461 build_name_components, find_name_components_bounds>:
5462 Add per_objfile parameter.
5463 (struct mapped_index) <symbol_name_at>: Likewise.
5464 (struct mapped_debug_names): Remove constructor.
5465 <dwarf2_per_objfile>: Remove field.
5466 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5467 (mapped_index_base::find_name_components_bounds,
5468 mapped_index_base::build_name_components,
5469 dw2_expand_symtabs_matching_symbol): Likewise.
5470 (class mock_mapped_index) <symbol_name_at>: Likewise.
5471 (check_match): Likewise.
5472 (check_find_bounds_finds): Likewise.
5473 (test_mapped_index_find_name_component_bounds): Update.
5474 (CHECK_MATCH): Update.
5475 (dw2_expand_symtabs_matching): Update.
5476 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5477 per_objfile parameter.
5478 <find_vec_in_debug_names>: Likewise.
5479 <m_per_objfile>: New field.
5480 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5481 parameter.
5482 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5483 (dw2_debug_names_iterator::next): Update.
5484 (dw2_debug_names_lookup_symbol): Update.
5485 (dw2_debug_names_expand_symtabs_for_function): Update.
5486 (dw2_debug_names_map_matching_symbols): Update.
5487 (dw2_debug_names_expand_symtabs_matching): Update.
5488 (dwarf2_read_debug_names): Update.
5489
7188ed02
SM
54902020-05-27 Simon Marchi <simon.marchi@efficios.com>
5491
5492 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5493 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5494 move to dwarf2_per_objfile.
5495 <read_in_chain>: Remove.
5496 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5497 remove_all_cus, age_comp_units>: New methods.
5498 <m_dwarf2_cus>: New member.
5499 (struct dwarf2_per_cu_data) <cu>: Remove.
5500 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5501 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5502 moved to methods of dwarf2_per_objfile.
5503 (dwarf2_clear_marks): Remove.
5504 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5505 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5506 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5507 (dwarf2_per_objfile::remove_all_cus): New.
5508 (class free_cached_comp_units) <~free_cached_comp_units>:
5509 Update.
5510 (load_cu): Update.
5511 (dw2_do_instantiate_symtab): Adjust.
5512 (fill_in_sig_entry_from_dwo_entry): Adjust.
5513 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5514 (cutu_reader::cutu_reader): Likewise.
5515 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5516 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5517 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5518 and dwarf2_per_objfile::age_comp_units.
5519 (load_partial_comp_unit): Update.
5520 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5521 (process_queue): Likewise.
5522 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5523 backlink.
5524 (dwarf2_read_addr_index): Likewise.
5525 (follow_die_offset): Likewise.
5526 (dwarf2_fetch_die_loc_sect_off): Likewise.
5527 (dwarf2_fetch_constant_bytes): Likewise.
5528 (dwarf2_fetch_die_type_sect_off): Likewise.
5529 (follow_die_sig_1): Likewise.
5530 (load_full_type_unit): Likewise.
5531 (read_signatured_type): Likewise.
5532 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5533 (dwarf2_cu::~dwarf2_cu): Remove.
5534 (dwarf2_per_objfile::get_cu): New.
5535 (dwarf2_per_objfile::set_cu): New.
5536 (age_cached_comp_units): Rename to...
5537 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5538 to std::unordered_map.
5539 (free_one_cached_comp_unit): Rename to...
5540 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5541 to std::unordered_map.
5542 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5543 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5544 a dwarf2_per_objfile in data.
5545 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5546 (dwarf2_clear_marks): Remove.
5547
2e671100
SM
55482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5551 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5552 (init_tu_and_read_dwo_dies): Likewise.
5553 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5554 (cutu_reader::cutu_reader): Likewise.
5555 (load_partial_comp_unit): Likewise.
5556 (process_psymtab_comp_unit): Update.
5557 (build_type_psymtabs_1): Update.
5558 (process_skeletonless_type_unit): Update.
5559 (load_full_comp_unit): Update.
5560 (find_partial_die): Update.
5561 (dwarf2_read_addr_index): Update.
5562 (read_signatured_type): Update.
5563
2e6a9f79
SM
55642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5565
5566 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5567 m_header_read_in>: New fields.
5568 <get_header>: New method.
5569 * dwarf2/read.c (per_cu_header_read_in): Remove.
5570 (dwarf2_per_cu_data::get_header): New.
5571 (dwarf2_per_cu_data::addr_size): Update.
5572 (dwarf2_per_cu_data::offset_size): Update.
5573 (dwarf2_per_cu_data::ref_addr_size): Update.
5574
1b555f17
SM
55752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5576
5577 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5578 (dw2_do_instantiate_symtab): Update.
5579 (queue_and_load_all_dwo_tus): Change parameter from
5580 dwarf2_per_cu_data to dwarf2_cu.
5581 (dwarf2_fetch_die_loc_sect_off): Update.
5582 (dwarf2_fetch_constant_bytes): Update.
5583 (dwarf2_fetch_die_type_sect_off): Update.
5584
8fc0b21d
SM
55852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5586
5587 * dwarf2/read.c (process_full_comp_unit,
5588 process_full_type_unit): Remove per_cu, per_objfile paramters.
5589 Add dwarf2_cu parameter.
5590 (process_queue): Update.
5591
168c9250
SM
55922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * dwarf2/read.c (create_cu_from_index_list): Replace
5595 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5596 (create_cus_from_index_list): Likewise.
5597 (create_cus_from_index): Likewise.
5598 (create_signatured_type_table_from_index): Likewise.
5599 (create_cus_from_debug_names_list): Likewise.
5600 (create_cus_from_debug_names): Likewise.
5601 (dwarf2_read_gdb_index): Update.
5602 (dwarf2_read_debug_names): Update.
5603
e286671b
TT
56042020-05-27 Tom Tromey <tom@tromey.com>
5605 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * dwarf2/read.h (struct dwarf2_per_objfile)
5608 <get_type_for_signatured_type, set_type_for_signatured_type>:
5609 New methods.
5610 <m_type_map>: New member.
5611 (struct signatured_type) <type>: Remove.
5612 * dwarf2/read.c
5613 (dwarf2_per_objfile::get_type_for_signatured_type,
5614 dwarf2_per_objfile::set_type_for_signatured_type): New.
5615 (get_signatured_type): Use new methods.
5616
8adb8487
TT
56172020-05-27 Tom Tromey <tom@tromey.com>
5618 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5621 (struct dwarf2_per_objfile) <type_units>: New member.
5622 <get_type_unit_group_unshareable>: New method.
5623 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5624 num_symtabs, symtabs>: Remove; move to
5625 type_unit_group_unshareable.
5626 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5627 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5628 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5629
127bbf4b
SM
56302020-05-27 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * dwarf2/read.h (struct dwarf2_per_cu_data):
5633 <dwarf2_per_objfile>: Remove.
5634 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5635 dwarf2_per_objfile.
5636 (create_signatured_type_table_from_index): Likewise.
5637 (create_signatured_type_table_from_debug_names): Likewise.
5638 (create_debug_type_hash_table): Likewise.
5639 (fill_in_sig_entry_from_dwo_entry): Likewise.
5640 (create_type_unit_group): Likewise.
5641 (read_comp_units_from_section): Likewise.
5642 (create_cus_hash_table): Likewise.
5643
f6e649dd
SM
56442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5647 dwarf2_per_cu_data::dwarf2_per_objfile.
5648 (compute_compunit_symtab_includes): Likewise.
5649 (dwarf2_cu::start_symtab): Likewise.
5650
aa66c379
SM
56512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5654 parameter.
5655 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5656 (read_namespace_alias): Update.
5657 (lookup_die_type): Update.
5658 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5659 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5660 Update.
5661 (disassemble_dwarf_expression): Update.
5662
120ce1b5
SM
56632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * dwarf2/read.h (struct dwarf2_queue_item): Add
5666 dwarf2_per_objfile parameter, assign new parameter.
5667 <per_objfile>: New field.
5668 * dwarf2/read.c (free_one_cached_comp_unit): Add
5669 dwarf2_per_objfile parameter.
5670 (queue_comp_unit): Likewise.
5671 (dw2_do_instantiate_symtab): Update.
5672 (process_psymtab_comp_unit): Update.
5673 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5674 (process_imported_unit_die): Update.
5675 (queue_and_load_dwo_tu): Update.
5676 (follow_die_offset): Update.
5677 (follow_die_sig_1): Update.
5678
9f47c707
SM
56792020-05-27 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5682 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5683 (read_call_site_scope): Assign per_objfile.
5684 (dwarf2_per_cu_data::objfile): Remove.
5685 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5686 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5687 dwarf2_per_objfile parameter.
5688 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5689 dwarf2_per_objfile parameter.
5690 (dwarf_expr_reg_to_entry_parameter): Add output
5691 dwarf2_per_objfile parameter.
5692 (locexpr_get_frame_base): Update.
5693 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5694 <push_dwarf_reg_entry_value>: Update.
5695 <call_site_to_target_addr>: Update.
5696 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5697 parameter.
5698 (value_of_dwarf_reg_entry): Update.
5699 (rw_pieced_value): Update.
5700 (indirect_synthetic_pointer): Update.
5701 (dwarf2_evaluate_property): Update.
5702 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5703 parameter.
5704 (locexpr_read_variable): Update.
5705 (locexpr_get_symbol_read_needs): Update.
5706 (loclist_read_variable): Update.
5707
14095eb3
SM
57082020-05-27 Simon Marchi <simon.marchi@efficios.com>
5709
5710 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5711 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5712 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5713 parameter.
5714 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5715 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5716 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5717 parameter.
5718 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5719 sect_variable_value): Add dwarf2_per_objfile parameter.
5720 (class dwarf_evaluate_loc_desc) <dwarf_call,
5721 dwarf_variable_value>: Update.
5722 (fetch_const_value_from_synthetic_pointer): Add
5723 dwarf2_per_objfile parameter.
5724 (fetch_const_value_from_synthetic_pointer): Update.
5725 (coerced_pieced_ref): Update.
5726 (class symbol_needs_eval_context) <dwarf_call,
5727 dwarf_variable_value>: Update.
5728 (dwarf2_compile_expr_to_ax): Update.
5729
3c3cd3d4
SM
57302020-05-27 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5733 parameter.
5734 (dwarf2_evaluate_loc_desc_full): Update.
5735
82ca3f51
SM
57362020-05-27 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5739 parameter.
5740 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5741 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5742 dwarf2_per_objfile parameter.
5743 (decode_debug_loc_dwo_addresses): Likewise.
5744 (dwarf2_find_location_expression): Update.
5745 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5746 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5747 parameter.
5748 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5749 parameter.
5750 (locexpr_describe_location_1): Likewise.
5751 (locexpr_describe_location): Update.
5752
4b167ea1
SM
57532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5754
5755 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5756 Remove.
5757 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5758 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5759 (dwarf2_compile_property_to_c): Update.
5760 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5761 use text offset from objfile.
5762 (locexpr_tracepoint_var_ref): Update.
5763 (locexpr_generate_c_location): Update.
5764 (loclist_describe_location): Update.
5765 (loclist_tracepoint_var_ref): Update.
5766 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5767 dwarf2_per_objfile parameter.
5768 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5769 use text offset from objfile.
5770 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5771
89b07335
SM
57722020-05-27 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * dwarf2/expr.h (struct dwarf_expr_context)
5775 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5776 <offset>: Remove.
5777 <per_objfile>: New member.
5778 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5779 dwarf2_per_objfile parameter. Don't set offset, set
5780 per_objfile.
5781 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5782 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5783 a dwarf2_per_objfile object instead of an offset.
5784 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5785 constructor.
5786 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5787 to dwarf2_expr_executor constructor. Don't set offset.
5788 (dwarf2_fetch_cfa_info): Update.
5789 (struct dwarf2_frame_cache) <text_offset>: Remove.
5790 <per_objfile>: New field.
5791 (dwarf2_frame_cache): Update.
5792 (dwarf2_frame_prev_register): Update.
5793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5794 <dwarf_evaluate_loc_desc>: Add constructor.
5795 (dwarf2_evaluate_loc_desc_full): Update.
5796 (dwarf2_locexpr_baton_eval): Update.
5797 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5798 Add constructor.
5799 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5800
293e7e51
SM
58012020-05-27 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5804 addr_sized_int_type>: Move to dwarf2_cu.
5805 <int_type>: Move to dwarf2_per_objfile.
5806 (struct dwarf2_per_objfile) <int_type>: Move here.
5807 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5808 addr_sized_int_type>: Move here.
5809 (read_func_scope): Update.
5810 (read_array_type): Update.
5811 (read_tag_string_type): Update.
5812 (attr_to_dynamic_prop): Update.
5813 (dwarf2_per_cu_data::int_type): Rename to...
5814 (dwarf2_per_objfile::int_type): ... this.
5815 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5816 (dwarf2_cu::addr_sized_int_type): ... this.
5817 (read_subrange_type): Update.
5818 (dwarf2_per_cu_data::addr_type): Rename to...
5819 (dwarf2_cu::addr_type): ... this.
5820 (set_die_type): Update.
5821
64874a40
SM
58222020-05-27 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5825 data through per_cu->cu.
5826
4ab09049
SM
58272020-05-27 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5830 dwarf2_per_cu_data parameter fo dwarf2_cu.
5831 (lookup_dwo_type_unit): Likewise.
5832 (read_cutu_die_from_dwo): Likewise.
5833 (lookup_dwo_unit): Likewise.
5834 (open_and_init_dwo_file): Likewise.
5835 (lookup_dwo_cutu): Likewise.
5836 (lookup_dwo_comp_unit): Likewise.
5837 (lookup_dwo_type_unit): Likewise.
5838 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5839 (cutu_reader::cutu_reader): Update.
5840
47b14e86
SM
58412020-05-27 Simon Marchi <simon.marchi@efficios.com>
5842
5843 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5844 parameter.
5845 (process_full_type_unit): Likewise.
5846 (process_queue): Update.
5847
43182c09
SM
58482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5849
5850 * dwarf2/read.c (recursively_compute_inclusions): Add
5851 dwarf2_per_objfile parameter.
5852 (compute_compunit_symtab_includes): Likewise.
5853 (process_cu_includes): Update.
5854
7aa104c4
SM
58552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5858 parameter.
5859 (create_type_unit_group): Update.
5860 (process_psymtab_comp_unit_reader): Update.
5861 (build_type_psymtabs_reader): Update.
5862
e3beb21d
SM
58632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5866 object through m_this_cu->cu.
5867
d460f660
SM
58682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5871 the info parameter.
5872 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5873
ab432490
SM
58742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5877 per_objfile parameter.
5878 (load_full_type_unit): Add per_objfile parameter.
5879 (read_signatured_type): Likewise.
5880 (load_full_comp_unit): Likewise.
5881 (load_cu): Likewise.
5882 (dw2_do_instantiate_symtab): Likewise.
5883 (dw2_get_file_names): Likewise.
5884 (dw2_map_symtabs_matching_filename): Update.
5885 (dw_expand_symtabs_matching_file_matcher): Update.
5886 (dw2_map_symbol_filenames): Update.
5887 (process_psymtab_comp_unit): Add per_objfile parameter.
5888 (build_type_psymtabs_1): Update.
5889 (process_skeletonless_type_unit): Update.
5890 (dwarf2_build_psymtabs_hard): Update.
5891 (load_partial_comp_unit): Add per_objfile parameter.
5892 (scan_partial_symbols): Update.
5893 (load_full_comp_unit): Add per_objfile parameter.
5894 (process_imported_unit_die): Update.
5895 (create_cus_hash_table): Update.
5896 (find_partial_die): Update.
5897 (dwarf2_read_addr_index): Update.
5898 (follow_die_offset): Update.
5899 (dwarf2_fetch_die_loc_sect_off): Update.
5900 (dwarf2_fetch_constant_bytes): Update.
5901 (dwarf2_fetch_die_type_sect_off): Update.
5902 (follow_die_sig_1): Update.
5903 (load_full_type_unit): Add per_objfile parameter.
5904 (read_signatured_type): Likewise.
5905
313bad1b
SM
59062020-05-27 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5909 of objfile_name.
5910
c3699833
SM
59112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5914 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5915 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5916 field.
5917 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5918 (create_cus_from_index): Update.
5919 (dwarf2_read_gdb_index): Update.
5920 (create_cus_from_debug_names): Update.
5921 (dwarf2_read_debug_names): Update.
5922 (get_abbrev_section_for_cu): Update.
5923 (create_all_comp_units): Update.
5924 (read_attribute_value): Update.
5925 (get_debug_line_section): Update.
5926 * dwarf2/index-cache.c (index_cache::store): Update.
5927 * dwarf2/index-write.c (save_gdb_index_command): Update.
5928 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5929
1859c670
SM
59302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5933 member.
5934 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5935 dwarf2_per_cu_data::per_bfd.
5936 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5937 (create_type_unit_group): Likewise.
5938 (queue_comp_unit): Remove reference to
5939 per_cu->dwarf2_per_objfile.
5940 (maybe_queue_comp_unit): Likewise.
5941 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5942 (create_cus_hash_table): Assign new field.
5943
5e22e966
SM
59442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * dwarf2/read.c: Replace
5947 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5948 dwarf2_cu->per_objfile throughout.
5949
97a1449a
SM
59502020-05-27 Simon Marchi <simon.marchi@efficios.com>
5951
5952 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5953 parameter, don't use per_cu->dwarf2_per_objfile.
5954 (dw2_instantiate_symtab): Likewise.
5955 (dw2_find_last_source_symtab): Update.
5956 (dw2_map_expand_apply): Update.
5957 (dw2_lookup_symbol): Update.
5958 (dw2_expand_symtabs_for_function): Update.
5959 (dw2_expand_all_symtabs): Update.
5960 (dw2_expand_symtabs_with_fullname): Update.
5961 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5962 don't use per_cu->dwarf2_per_objfile.
5963 (dw2_expand_marked_cus): Update.
5964 (dw2_find_pc_sect_compunit_symtab): Update.
5965 (dw2_debug_names_lookup_symbol): Update.
5966 (dw2_debug_names_expand_symtabs_for_function): Update.
5967 (dw2_debug_names_map_matching_symbols): Update.
5968 (dwarf2_psymtab::expand_psymtab): Update.
5969
9e021579
SM
59702020-05-27 Simon Marchi <simon.marchi@efficios.com>
5971
5972 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5973 <per_objfile>: New member.
5974 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5975 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5976 call to dwarf2_cu.
5977 (cutu_reader::cutu_reader): Update.
5978 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5979
ae090bdb
SM
59802020-05-27 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5983 struct dwarf2_per_objfile.
5984 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5985 dwarf2_per_bfd.
5986 * dwarf2/read.c (set_die_type): Update.
5987 (get_die_type_at_offset): Update.
5988
af758d11
SM
59892020-05-27 Tom Tromey <tom@tromey.com>
5990 Simon Marchi <simon.marchi@efficios.com>
5991
5992 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5993 method.
5994 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5995 get_symtab, set_symtab>: New methods.
5996 <m_symtabs>: New field.
5997 (struct dwarf2_psymtab): Derive from partial_symtab.
5998 <readin_p, get_compunit_symtab>: Declare methods.
5999 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6000 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6001 New methods.
6002 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6003 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6004 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6005 (dw2_symtab_iter_next, dw2_print_stats)
6006 (dw2_expand_symtabs_with_fullname)
6007 (dw2_expand_symtabs_matching_one)
6008 (dw_expand_symtabs_matching_file_matcher)
6009 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6010 (dw2_debug_names_iterator::next)
6011 (dw2_debug_names_map_matching_symbols)
6012 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6013 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6014 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6015 New methods.
6016 (get_compunit_symtab, process_full_comp_unit)
6017 (process_full_type_unit): Update.
6018 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6019
5989a64e
SM
60202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6021
6022 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6023 then introduce a new dwarf2_per_objfile type.
6024 <read_line_string>: Move to the new dwarf2_per_objfile type.
6025 <objfile>: Likewise.
6026 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6027 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6028 dwarf2_per_objfile->per_bfd.
6029 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6030 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6031 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6032 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6033 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6034 (dwarf2_per_objfile::locate_sections): Rename to...
6035 (dwarf2_per_bfd::locate_sections): ... this.
6036 (dwarf2_per_objfile::get_cutu): Rename to...
6037 (dwarf2_per_bfd::get_cutu): ... this.
6038 (dwarf2_per_objfile::get_cu): Rename to...
6039 (dwarf2_per_bfd::get_cu): ... this.
6040 (dwarf2_per_objfile::get_tu): Rename to...
6041 (dwarf2_per_bfd::get_tu): ... this.
6042 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6043 (dwarf2_per_bfd::allocate_per_cu): ... this.
6044 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6045 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6046 (get_gdb_index_contents_ftype): Change parameter from
6047 dwarf2_per_objfile to dwarf2_per_bfd.
6048 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6049 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6050
a50264ba
TT
60512020-05-27 Tom Tromey <tom@tromey.com>
6052 Simon Marchi <simon.marchi@efficios.com>
6053
6054 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6055 (allocate_piece_closure): Set "per_objfile" member.
6056 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6057 (locexpr_describe_location, loclist_describe_location): Use new
6058 member.
6059 * dwarf2/read.c (read_call_site_scope)
6060 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6061 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6062 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6063 handle_data_member_location): Set per_objfile member.
6064 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6065 member.
6066 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6067
d3473f0c
TT
60682020-05-27 Tom Tromey <tom@tromey.com>
6069
6070 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6071 allocate_signatured_type>: Declare new methods.
6072 <m_num_psymtabs>: New member.
6073 (struct dwarf2_per_cu_data) <index>: New member.
6074 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6075 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6076 (create_cu_from_index_list): Use allocate_per_cu.
6077 (create_signatured_type_table_from_index)
6078 (create_signatured_type_table_from_debug_names)
6079 (create_debug_type_hash_table, add_type_unit)
6080 (read_comp_units_from_section): Use allocate_signatured_type.
6081
5717c425
TT
60822020-05-27 Tom Tromey <tom@tromey.com>
6083
6084 * psymtab.c (partial_map_expand_apply)
6085 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6086 (psym_lookup_global_symbol_language)
6087 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6088 (psym_print_stats, psym_expand_symtabs_for_function)
6089 (psym_map_symbol_filenames, psym_map_matching_symbols)
6090 (psym_expand_symtabs_matching)
6091 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6092 (maintenance_check_psymtabs): Update.
6093 * psympriv.h (struct partial_symtab) <readin_p,
6094 get_compunit_symtab>: Add objfile parameter.
6095 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6096 Likewise.
6097 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6098 get_compunit_symtab>: Likewise.
6099 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6100
45940949
TT
61012020-05-27 Tom Tromey <tom@tromey.com>
6102
6103 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6104 member.
6105 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6106 (create_cu_from_index_list)
6107 (create_signatured_type_table_from_index)
6108 (create_signatured_type_table_from_debug_names)
6109 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6110 (dwarf2_create_include_psymtab)
6111 (create_debug_type_hash_table, add_type_unit)
6112 (create_type_unit_group, read_comp_units_from_section)
6113 (dwarf2_compute_name, create_cus_hash_table)
6114 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6115 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6116 obstack.
6117 (dw2_get_real_path): Likewise. Change argument to
6118 dwarf2_per_objfile.
6119
f8c6d152
LM
61202020-05-27 Luis Machado <luis.machado@linaro.org>
6121
6122 PR tdep/26000
6123 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6124 for ldrd (immediate).
6125
e98d2e6d
PW
61262020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6127
6128 * command.h: Add comment giving the name of class_tui.
6129 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6130 create the fake command for the help for class_tui.
6131
53a47a3e
TT
61322020-05-26 Tom Tromey <tromey@adacore.com>
6133
6134 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6135 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6136 (val_atr): New function.
6137 (value_val_atr): Use it.
6138 * ada-valprint.c (print_optional_low_bound): Change low bound
6139 handling for enums.
6140 (val_print_packed_array_elements): Don't call discrete_position.
6141 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6142 discrete_position for enum types.
6143 * language.c (default_print_array_index): Change type.
6144 * language.h (struct language_defn) <la_print_array_index>: Add
6145 index_type parameter, change type of index_value.
6146 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6147 (default_print_array_index): Update.
6148 * valprint.c (maybe_print_array_index): Don't call
6149 value_from_longest. Update.
6150 (value_print_array_elements): Don't call discrete_position.
6151
0bc2354b
TT
61522020-05-26 Tom Tromey <tromey@adacore.com>
6153
6154 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6155 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6156
1218a4bf
CDA
61572020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6158
6159 PR gdb/13519
6160 * avr-tdep.c (avr_integer_to_address): Return data or code
6161 address accordingly to the second 'type' argument of the
6162 function.
6163
92651b1d
MW
61642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6165
6166 * infcmd.c, inferior.h: (construct_inferior_arguments):
6167 Moved function from here to gdbsupport/common-inferior.{h,cc}
6168
0a4f5f8c
TT
61692020-05-23 Tom Tromey <tom@tromey.com>
6170
6171 Revert commit eca1f90c:
6172 * NEWS: Remove entry for completion styling.
6173 * completer.c (_rl_completion_prefix_display_length): Move
6174 declaration later.
6175 (gdb_fnprint): Revert.
6176 (gdb_display_match_list_1): Likewise.
6177 * cli/cli-style.c (completion_prefix_style)
6178 (completion_difference_style, completion_suffix_style): Remove.
6179 (_initialize_cli_style): Revert.
6180 * cli/cli-style.h (completion_prefix_style)
6181 (completion_difference_style, completion_suffix_style): Don't
6182 declare.
6183
e08bd6c5
PA
61842020-05-24 Pedro Alves <palves@redhat.com>
6185
6186 * symtab.c (completion_list_add_name): Return boolean indication
6187 of whether the symbol matched.
6188 (completion_list_add_symbol): Don't try to remove C++ aliases if
6189 the symbol didn't match in the first place.
6190 * symtab.h (completion_list_add_name): Return bool.
6191
ceacbf6e
SM
61922020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6195 type::field.
6196
26f16254
JB
61972020-05-23 Joel Brobecker <brobecker@adacore.com>
6198
6199 GDB 9.2 released.
6200
eca1f90c
TT
62012020-05-23 Tom Tromey <tom@tromey.com>
6202
6203 * NEWS: Add entry for completion styling.
6204 * completer.c (_rl_completion_prefix_display_length): Move
6205 declaration earlier.
6206 (gdb_fnprint): Use completion_style.
6207 (gdb_display_match_list_1): Likewise.
6208 * cli/cli-style.c (completion_prefix_style)
6209 (completion_difference_style, completion_suffix_style): New
6210 globals.
6211 (_initialize_cli_style): Register new globals.
6212 * cli/cli-style.h (completion_prefix_style)
6213 (completion_difference_style, completion_suffix_style): Declare.
6214
51e2cfa2
PA
62152020-05-23 Pedro Alves <palves@redhat.com>
6216
6217 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6218 (parse_escape): Use ISDIGIT instead of isdigit.
6219 (puts_debug): Use gdb_isprint instead of isprint.
6220 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6221 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6222 ISSPACE instead of isspace.
6223 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6224 instead of isspace.
6225 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6226 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6227 instead of isxdigit and ISDIGIT instead of isdigit.
6228
80fc5e77
SM
62292020-05-22 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * gdbtypes.h (struct type) <field>: New method.
6232 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6233 or type::field.
6234
3cabb6b0
SM
62352020-05-22 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6238 (TYPE_FIELDS): Use type::fields. Change all call sites that
6239 modify the propery to use type::set_fields instead.
6240
1f704f76
SM
62412020-05-22 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6244 type::num_fields instead.
6245
5e33d5f4
SM
62462020-05-22 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6249 methods.
6250 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6251 that modify the number of fields to use type::set_num_fields
6252 instead.
6253
9392ebb3
TT
62542020-05-22 Tom Tromey <tromey@adacore.com>
6255
6256 * compile/compile-object-load.h (munmap_list_free): Don't
6257 declare.
6258
7c13f4e8
AB
62592020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * annotate.c (annotate_source_line): Update return type, add call
6262 to update current symtab and line.
6263 * annotate.h (annotate_source_line): Update return type, and
6264 extend header comment.
6265 * source.c (info_line_command): Check annotation_level before
6266 calling annotate_source_line.
6267 * stack.c (print_frame_info): If calling annotate_source_line
6268 returns true, then don't print any other source line information.
6269
aa370940
SM
62702020-05-21 Simon Marchi <simon.marchi@efficios.com>
6271
6272 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6273
84d53fa9
SM
62742020-05-21 Simon Marchi <simon.marchi@efficios.com>
6275
6276 * coffread.c (patch_type): Remove NULL check before xfree.
6277 * corefile.c (set_gnutarget): Likewise.
6278 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6279 * exec.c (build_section_table): Likewise.
6280 * remote.c (remote_target::pass_signals): Likewise.
6281 * utils.c (n_spaces): Likewise.
6282 * cli/cli-script.c (document_command): Likewise.
6283 * i386-windows-tdep.c (core_process_module_section): Likewise.
6284 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6285
9d428aae
SM
62862020-05-20 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * symfile.c (reread_symbols): Clear objfile's section_offsets
6289 vector and section indices, re-compute them by calling
6290 sym_offsets.
6291
250106a7
TT
62922020-05-20 Tom Tromey <tromey@adacore.com>
6293
6294 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6295 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6296
9a0bacfb
TV
62972020-05-20 Tom de Vries <tdevries@suse.de>
6298
6299 PR symtab/25833
6300 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6301
7b958a48
AM
63022020-05-20 Alan Modra <amodra@gmail.com>
6303
6304 PR 25993
6305 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6306 bfd_set_filename.
6307 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6308 passed to bfd_set_filename.
6309 * symfile-mem.c (add_vsyscall_page): Likewise for string
6310 passed to symbol_file_add_from_memory.
6311 (symbol_file_add_from_memory): Make name param a const char* and
6312 don't strdup.
6313
c7e97679
AM
63142020-05-20 Alan Modra <amodra@gmail.com>
6315
6316 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6317 rather than accessing bfd->filename directly.
6318 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6319 and use bfd_section_name.
6320 * dwarf2/frame.c (decode_frame_entry): Likewise.
6321 * exec.c (exec_set_section_address): Likewise.
6322 * solib-aix.c (solib_aix_bfd_open): Likewise.
6323 * stap-probe.c (get_stap_base_address): Likewise.
6324 * symfile.c (reread_symbols): Likewise.
6325
563c591b
TT
63262020-05-19 Tom Tromey <tromey@adacore.com>
6327
6328 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6329
f408d82c
SM
63302020-05-19 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6333
98c59b52
PA
63342020-05-19 Pedro Alves <palves@redhat.com>
6335
6336 * NEWS (set exec-file-mismatch): Adjust entry.
6337 * exec.c: Include "build-id.h".
6338 (validate_exec_file): Try to match build IDs instead of filenames.
6339 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6340 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6341 and pass down 'warn_if_slow'.
6342 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6343 gdb_bfd_open_closure to pass it down.
6344 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6345
4111f652
PA
63462020-05-19 Pedro Alves <palves@redhat.com>
6347
6348 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6349 * target.c (target_fileio_open_1): Rename to target_fileio_open
6350 and make extern. Use bool.
6351 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6352 (target_fileio_read_alloc_1): Adjust.
6353 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6354 (target_fileio_open_warn_if_slow): Delete declaration.
6355
ad80db5b
PA
63562020-05-19 Pedro Alves <palves@redhat.com>
6357
6358 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6359 Adjust all callers.
6360
1d6ce4d3
YS
63612020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6362
6363 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6364 whether disp is negative.
6365
9005fbbb
SM
63662020-05-19 Simon Marchi <simon.marchi@efficios.com>
6367
6368 * symfile.h (struct symfile_segment_data)
6369 <~symfile_segment_data>: Remove.
6370 <segment_info>: Change to std::vector.
6371 * symfile.c (default_symfile_segments): Update.
6372 * elfread.c (elf_symfile_segments): Update.
6373
68b888ff
SM
63742020-05-19 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6377 <segments>: New.
6378 <segment_bases, segment_sizes>: Remove.
6379 * symfile.c (default_symfile_segments): Update.
6380 * elfread.c (elf_symfile_segments): Update.
6381 * remote.c (remote_target::get_offsets): Update.
6382 * solib-target.c (solib_target_relocate_section_addresses):
6383 Update.
6384
62982abd
SM
63852020-05-19 Simon Marchi <simon.marchi@efficios.com>
6386
6387 * symfile.h (struct symfile_segment_data): Initialize fields.
6388 <~symfile_segment_data>: Add.
6389 (symfile_segment_data_up): New.
6390 (struct sym_fns) <sym_segments>: Return a
6391 symfile_segment_data_up.
6392 (default_symfile_segments): Return a symfile_segment_data_up.
6393 (free_symfile_segment_data): Remove.
6394 (get_symfile_segment_data): Return a symfile_segment_data_up.
6395 * symfile.c (default_symfile_segments): Likewise.
6396 (get_symfile_segment_data): Likewise.
6397 (free_symfile_segment_data): Remove.
6398 (symfile_find_segment_sections): Update.
6399 * elfread.c (elf_symfile_segments): Return a
6400 symfile_segment_data_up.
6401 * remote.c (remote_target::get_offsets): Update.
6402 * solib-target.c (solib_target_relocate_section_addresses):
6403 Update.
6404 * symfile-debug.c (debug_sym_segments): Return a
6405 symfile_segment_data_up.
6406
7f204339
RO
64072020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6408
e52a0f1b
RO
6409 PR build/25981
6410 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6411 Hardcode register numbers.
6412
7f204339
RO
6413 PR build/25981
6414 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6415 procfs_find_LDT_entry): Remove.
6416 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6417 procfs_find_LDT_entry): Remove.
6418 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6419 Remove.
6420
7f32a4d5
PA
64212020-05-17 Pedro Alves <palves@redhat.com>
6422 Andrew Burgess <andrew.burgess@embecosm.com>
6423 Keno Fischer <keno@juliacomputing.com>
6424
6425 PR gdb/25741
6426 * breakpoint.c (build_target_condition_list): Update comments.
6427 (build_target_command_list): Update comments and skip matching
6428 locations.
6429 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6430 a separate function. Simplify "set breakpoint auto-hw off"
6431 handling.
6432 (insert_breakpoints): Update comment.
6433 (tracepoint_locations_match): New parameter. For breakpoints,
6434 compare location types too, if the caller wants to.
6435 (handle_automatic_hardware_breakpoints): New functions.
6436 (bp_location_is_less_than): Also sort by location type and
6437 hardware breakpoint length.
6438 (update_global_location_list): Handle "set breakpoint auto-hw on"
6439 here.
6440 (update_breakpoint_locations): Ask breakpoint_locations_match to
6441 ignore location types.
6442
7d93a1e0
SM
64432020-05-16 Simon Marchi <simon.marchi@efficios.com>
6444
6445 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6446 type::name instead.
6447
d0e39ea2
SM
64482020-05-16 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * gdbtypes.h (struct type) <name, set_name>: New methods.
6451 (TYPE_CODE): Use type::name. Change all call sites used to set
6452 the name to use type::set_name instead.
6453
2dab0c7b
TT
64542020-05-16 Tom Tromey <tom@tromey.com>
6455
6456 * top.c (quit_force): Update.
6457 * infrun.c (handle_no_resumed): Update.
6458 * top.h (all_uis): New function.
6459 (ALL_UIS): Remove.
6460
59f7bd8d
SM
64612020-05-16 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6464
9bf058f0
PA
64652020-05-16 Pedro Alves <palves@redhat.com>
6466
6467 * ia64-linux-nat.c
6468 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6469 Declare method.
6470 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6471
8f86ae1a
SM
64722020-05-15 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6475 (sparc64_adi_info): Likewise.
6476
d6bc0792
TT
64772020-05-15 Tom Tromey <tom@tromey.com>
6478
6479 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6480 block_objfile.
6481 (lookup_objfile_from_block): Remove.
6482 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6483 (lookup_global_symbol): Use block_objfile.
6484 * symtab.h (lookup_objfile_from_block): Don't declare.
6485 * printcmd.c (clear_dangling_display_expressions): Use
6486 block_objfile.
6487 * parse.c (operator_check_standard): Use block_objfile.
6488
8c14c3a3
TT
64892020-05-15 Tom Tromey <tom@tromey.com>
6490
6491 * language.c (language_alloc_type_symbol): Set
6492 SYMBOL_SECTION.
6493 * symtab.c (initialize_objfile_symbol): Remove.
6494 (allocate_symbol): Remove.
6495 (allocate_template_symbol): Remove.
6496 * dwarf2/read.c (fixup_go_packaging): Use "new".
6497 (new_symbol): Use "new".
6498 (read_variable): Don't call initialize_objfile_symbol. Use
6499 "new".
6500 (read_func_scope): Use "new".
6501 * xcoffread.c (process_xcoff_symbol): Don't call
6502 initialize_objfile_symbol.
6503 (SYMBOL_DUP): Remove.
6504 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6505 "new".
6506 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6507 (allocate_template_symbol): Don't declare.
6508 (struct symbol): Add copy constructor. Change defaults.
6509 * jit.c (finalize_symtab): Use "new".
6510 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6511 Use "new".
6512 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6513 (common_block_end): Use "new".
6514 * mdebugread.c (parse_symbol): Use "new".
6515 (new_symbol): Likewise.
6516
5b4a1a8d
PW
65172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6518
6519 * NEWS: Mention changes to help and apropos.
6520
57b4f16e
PW
65212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6522
6523 * command.h (enum command_class): Improve comments, document
6524 that class_alias is for user-defined aliases, give the class
6525 name for each class, remove unused class_xdb.
6526 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6527 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6528 by a precise class.
6529 * infcmd.c (_initialize_infcmd): Likewise.
6530 * reverse.c (_initialize_reverse): Likewise.
6531 * stack.c (_initialize_stack): Likewise.
6532 * symfile.c (_initialize_symfile): Likewise.
6533 * tracepoint.c (_initialize_tracepoint): Likewise.
6534
7c05caf7
PW
65352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6536
6537 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6538 when their aliased command is traversed.
6539 (help_cmd): Add fput_command_names_styled call to
6540 output command name and aliases when command has an alias.
6541
3b3aaacb
PW
65422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6543
6544 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6545 * cli/cli-decode.c (help_cmd_list): Declare as static,
6546 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6547 a command together with the command.
6548 (fput_command_name_styled, fput_command_names_styled): New functions.
6549 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6550 fput_command_name_styled.
6551 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6552 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6553
7aa1b46f
PW
65542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6555
6556 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6557 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6558 * command.h (cmd_show_list): Likewise.
6559 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6560 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6561
89bcba74
PW
65622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6563
6564 * unittests/command-def-selftests.c (traverse_command_structure):
6565 Verify all commands of a list have the same prefix command and
6566 that only the top cmdlist commands have a null prefix.
6567
3f4d92eb
PW
65682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6569
6570 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6571 as prefix, not one of its aliases.
6572 (set_cmd_prefix): Remove.
6573 (do_add_cmd): Centralize the setting of the prefix of a command, when
6574 command is defined after its full chain of prefix commands.
6575 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6576 (add_setshow_cmd_full): Likewise.
6577 (update_prefix_field_of_prefixed_commands): New function.
6578 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6579 update_prefix_field_of_prefixed_commands.
6580 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6581 addresses of remote_set_cmdlist and remote_show_cmdlist given
6582 as argument, not the address of an argument.
6583 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6584 * gdb/remote.c (_initialize_remote): Likewise.
6585
0605465f
PW
65862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6587
6588 * cli/cli-cmds.c (alias_command): Check for an existing alias
6589 using lookup_cmd_composition, as valid_command_p is too strict
6590 and forbids aliases that are the prefix of an existing alias
6591 or command.
6592 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6593 command is properly recognised as a valid command.
6594
58e6ac70
PW
65952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6596
6597 * unittests/help-doc-selftests.c: Rename to
6598 unittests/command-def-selftests.c
6599 * unittests/command-def-selftests.c (help_doc_tests): Update some
6600 comments.
6601 (command_structure_tests, traverse_command_structure): New namespace
6602 and function.
6603 (command_structure_invariants_tests): New function.
6604 (_initialize_command_def_selftests) Renamed from
6605 _initialize_help_doc_selftests, register command_structure_invariants
6606 selftest.
6607
a7b9ceb8
PW
66082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6609
6610 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6611 an alias of 'show'.
6612
b2188a06
JB
66132020-05-15 Joel Brobecker <brobecker@adacore.com>
6614
6615 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6616 ada_is_fixed_point_type. Update all callers.
6617 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6618 all callers.
6619 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6620 Update all callers.
6621 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6622 print_fixed_point_type. Update all callers.
6623 * ada-valprint.c (ada_value_print_num): Replace call to
6624 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6625
a51951c2
KB
66262020-05-14 Kevin Buettner <kevinb@redhat.com>
6627
6628 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6629 processors.
6630 (cpu_supports_bts): Add CV_AMD case.
6631
29d6859f
LM
66322020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6633 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * infrun.c (stop_all_threads): Collect multiple wait events at
6636 each pass.
6637
78134374
SM
66382020-05-14 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6641 type::code instead.
6642
67607e24
SM
66432020-05-14 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * gdbtypes.h (struct type) <code, set_code>: New methods.
6646 (TYPE_CODE): Use type::code. Change all call sites used to set
6647 the code to use type::set_code instead.
6648
a05575d3
TBA
66492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6650 Tom de Vries <tdevries@suse.de>
6651 Pedro Alves <palves@redhat.com>
6652
6653 PR threads/25478
6654 * infrun.c (stop_all_threads): Do NOT ignore
6655 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6656 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6657 received.
6658 (handle_no_resumed): Remove code handling a live inferior with no
6659 threads.
6660 * remote.c (has_single_non_exited_thread): New.
6661 (remote_target::update_thread_list): Do not delete a thread if is
6662 the last thread of the process.
6663 * thread.c (thread_select): Call delete_exited_threads instead of
6664 prune_threads.
6665
6ad82919
TBA
66662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6667
6668 * infrun.c (stop_all_threads): Enable/disable thread events of all
6669 targets. Move a debug message denoting the end of the function
6670 into the SCOPED_EXIT block.
6671
d890404b
TBA
66722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6673
6674 * process-stratum-target.h: Include <set>.
6675 (all_non_exited_process_targets, switch_to_target_no_thread): New
6676 function declarations.
6677 * process-stratum-target.c (all_non_exited_process_targets)
6678 (switch_to_target_no_thread): New function implementations.
6679
293b3ebc
TBA
66802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6681
6682 * infrun.c (handle_inferior_event): Extract out a piece of code
6683 into...
6684 (mark_non_executing_threads): ...this new function.
6685
7ca9b62a
TBA
66862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6687
6688 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6689 use.
6690
fc75c28b
TBA
66912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6692
6693 * regcache.c (regcache_read_pc_protected): New function
6694 implementation that returns 0 if the PC cannot read via
6695 'regcache_read_pc'.
6696 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6697 instead of 'regcache_read_pc'.
6698 (keep_going_pass_signal): Ditto.
6699
a89febbd
TT
67002020-05-13 Tom Tromey <tromey@adacore.com>
6701
6702 * ada-lang.c (align_value): Remove.
6703 (ada_template_to_fixed_record_type_1): Use align_up.
6704
f7e23710
TBA
67052020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6706
6707 * async-event.c: Update the copyright year.
6708 * async-event.h: Update the copyright year.
6709
02ff80c2
SM
67102020-05-12 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * objfiles.h (is_addr_in_objfile,
6713 shared_objfile_contains_address_p): Return bool.
6714 * objfile.c (is_addr_in_objfile,
6715 shared_objfile_contains_address_p): Return bool.
6716
4fd6c7e8
TT
67172020-05-11 Tom Tromey <tromey@adacore.com>
6718
6719 * cli/cli-cmds.c (info_command): Restore.
6720 (_initialize_cli_cmds): Use add_prefix_command for "info".
6721 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6722
5eb68a39
TT
67232020-05-11 Tom Tromey <tromey@adacore.com>
6724
6725 * ada-lang.c (ada_value_primitive_field): Now public.
6726 * ada-lang.h (ada_value_primitive_field): Declare.
6727 * ada-valprint.c (print_field_values): Use
6728 ada_value_primitive_field for wrapper fields.
6729
7666722f
TV
67302020-05-11 Tom de Vries <tdevries@suse.de>
6731
6732 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6733 MODULE_DOMAIN.
6734
3ee6bb11
TV
67352020-05-11 Tom de Vries <tdevries@suse.de>
6736
6737 PR symtab/25941
6738 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6739 with length 0, if not gdb-produced.
6740 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6741
43434996
TV
67422020-05-09 Tom de Vries <tdevries@suse.de>
6743
6744 PR gdb/25955
6745 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6746 calculation.
6747
2f78cffc
TT
67482020-05-09 Tom Tromey <tom@tromey.com>
6749
6750 * top.c (server_command): Now bool.
6751 * top.h (server_command): Now bool.
6752
4f7bc5ed
TT
67532020-05-08 Tom Tromey <tromey@adacore.com>
6754
6755 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6756 already being processed.
6757
8be4b118
TT
67582020-05-08 Tom Tromey <tom@tromey.com>
6759
6760 * printcmd.c (struct display) <next>: Remove.
6761 <display>: New constructor.
6762 <exp_string>: Now a std::string.
6763 <enabled_p>: Now a bool.
6764 (display_number): Move definition earlier.
6765 (displays): Rename from display_chain. Now a std::vector.
6766 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6767 (display_command): Update.
6768 (do_one_display, disable_display)
6769 (enable_disable_display_command, do_enable_disable_display):
6770 Update.
6771 (free_display): Remove.
6772 (clear_displays): Rewrite.
6773 (delete_display): Update.
6774 (map_display_numbers): Use function_view. Remove "data"
6775 parameter. Update.
6776 (do_delete_display): Remove.
6777 (undisplay_command): Update.
6778 (do_one_display, do_displays, disable_display)
6779 (info_display_command): Update.
6780 (do_enable_disable_display): Remove.
6781 (enable_disable_display_command)
6782 (clear_dangling_display_expressions): Update.
6783
94c93c35
TT
67842020-05-08 Tom Tromey <tom@tromey.com>
6785
6786 * symtab.c (set_symbol_cache_size)
6787 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6788 (maintenance_print_symbol_cache_statistics): Update.
6789 * symmisc.c (print_symbol_bcache_statistics)
6790 (print_objfile_statistics, maintenance_print_objfiles)
6791 (maintenance_info_symtabs, maintenance_check_symtabs)
6792 (maintenance_expand_symtabs, maintenance_info_line_tables):
6793 Update.
6794 * symfile-debug.c (set_debug_symfile): Update.
6795 * source.c (forget_cached_source_info): Update.
6796 * python/python.c (gdbpy_progspaces): Update.
6797 * psymtab.c (maintenance_info_psymtabs): Update.
6798 * probe.c (parse_probes): Update.
6799 * linespec.c (iterate_over_all_matching_symtabs)
6800 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6801 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6802 * exec.c (exec_target::close): Update.
6803 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6804 * breakpoint.c (print_one_breakpoint_location)
6805 (create_longjmp_master_breakpoint)
6806 (create_std_terminate_master_breakpoint): Update.
6807 * progspace.c (program_spaces): Now a std::vector.
6808 (maybe_new_address_space): Update.
6809 (add_program_space): Remove.
6810 (program_space::program_space): Update.
6811 (remove_program_space): Update.
6812 (number_of_program_spaces): Remove.
6813 (print_program_space, update_address_spaces): Update.
6814 * progspace.h (program_spaces): Change type.
6815 (ALL_PSPACES): Remove.
6816 (number_of_program_spaces): Don't declare.
6817 (struct program_space) <next>: Remove.
6818
a1fd1ac9
TT
68192020-05-08 Tom Tromey <tom@tromey.com>
6820
6821 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6822 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6823 (enable_break): Update.
6824 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6825 (frv_fdpic_find_canonical_descriptor): Update.
6826 (frv_fetch_objfile_link_map): Update.
6827 * progspace.c (program_space::free_all_objfiles): Update.
6828 (program_space::solibs): New method.
6829 * progspace.h (struct program_space) <solibs>: New method.
6830 * solist.h (master_so_list): Don't declare.
6831 (ALL_SO_LIBS): Remove.
6832 * solib.h (so_list_head): Remove.
6833 (update_solib_list): Update comment.
6834 * solib.c (master_so_list): Remove.
6835 (solib_used, update_solib_list, solib_add)
6836 (info_sharedlibrary_command, clear_solib)
6837 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6838
38eae084
TT
68392020-05-08 Tom Tromey <tom@tromey.com>
6840
6841 * extension.c (extension_languages): Now a std::array.
6842 (ALL_EXTENSION_LANGUAGES): Remove.
6843 (get_ext_lang_defn, get_ext_lang_of_file)
6844 (eval_ext_lang_from_control_command): Update.
6845 (finish_ext_lang_initialization)
6846 (auto_load_ext_lang_scripts_for_objfile)
6847 (ext_lang_type_printers::ext_lang_type_printers)
6848 (apply_ext_lang_type_printers)
6849 (ext_lang_type_printers::~ext_lang_type_printers)
6850 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6851 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6852 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6853 (get_matching_xmethod_workers, ext_lang_colorize)
6854 (ext_lang_before_prompt): Update.
6855 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6856
596dc4ad
TT
68572020-05-08 Tom Tromey <tom@tromey.com>
6858
6859 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6860 overload.
6861 <swap_string, m_string>: Remove.
6862 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6863 Update.
6864 * stabsread.c (define_symbol, read_type): Update.
6865 * linespec.c (find_linespec_symbols): Update.
6866 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6867 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6868 * dbxread.c (read_dbx_symtab): Update.
6869 * cp-support.h (cp_canonicalize_string_full)
6870 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6871 Return unique_xmalloc_ptr.
6872 * cp-support.c (inspect_type): Update.
6873 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6874 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6875 Likewise.
6876 * c-typeprint.c (print_name_maybe_canonical): Update.
6877 * break-catch-throw.c (check_status_exception_catchpoint):
6878 Update.
6879
bf4cb9be
TV
68802020-05-08 Tom de Vries <tdevries@suse.de>
6881
6882 * infrun.c (follow_fork): Copy current_line and current_symtab to
6883 child thread.
6884
a1b68f28
SM
68852020-05-07 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * async-event.c (struct async_signal_handler, struct
6888 async_event_handler): Reformat, remove typedef.
6889
98d48915
SM
68902020-05-07 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6893 access thistype->main_type->dyn_prop_list directly.
6894
7aa91313
SM
68952020-05-07 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6898 (remove_dyn_prop): Remove. Update all users to use
6899 type::remove_dyn_prop.
6900 * gdbtypes.c (remove_dyn_prop): Rename to...
6901 (type::remove_dyn_prop): ... this.
6902
5c54719c
SM
69032020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6904
6905 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6906 (add_dyn_prop): Remove. Update all users to use
6907 type::add_dyn_prop.
6908 * gdbtypes.c (add_dyn_prop): Rename to...
6909 (type::add_dyn_prop): ... this.
6910
24e99c6c
SM
69112020-05-07 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6914 (get_dyn_prop): Remove. Update all users to use
6915 type::dyn_prop.
6916 * gdbtypes.c (get_dyn_prop): Rename to...
6917 (type::dyn_prop): ... this.
6918
0d4bf016
SM
69192020-05-06 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6922
ac4a4f1c
SM
69232020-05-06 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6926 instruction, skip it if it's there.
6927
a3bbacc1
SM
69282020-05-05 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6931
c3236f84
SM
69322020-05-04 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6935 * gdbtypes.c (recursive_dump_type): Remove use of
6936 TYPE_INCOMPLETE.
6937
3b6acaee
TT
69382020-05-03 Tom Tromey <tom@tromey.com>
6939
6940 * breakpoint.c (catch_command, tcatch_command): Remove.
6941 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6942 add_show_prefix_cmd.
6943 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6944 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6945 Remove.
6946 (add_internal_problem_command): Use add_basic_prefix_cmd,
6947 add_show_prefix_cmd.
6948 * mips-tdep.c (set_mipsfpu_command): Remove.
6949 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6950 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6951 (_initialize_index_cache): Use add_basic_prefix_cmd.
6952 * memattr.c (dummy_cmd): Remove.
6953 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6954 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6955 (_initialize_tui_win): Use add_basic_prefix_cmd,
6956 add_show_prefix_cmd.
6957 * cli/cli-logging.c (set_logging_command): Remove.
6958 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6959 add_show_prefix_cmd.
6960 (show_logging_command): Remove.
6961 * target.c (target_command): Remove.
6962 (add_target): Use add_basic_prefix_cmd.
6963
a51119cd
HD
69642020-05-02 Hannes Domani <ssbssa@yahoo.de>
6965
6966 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6967
652fc23a 69682020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6969
652fc23a
PW
6970 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6971 info_command.
6972
117539e6
KR
69732020-04-30 Kamil Rytarowski <n54@gmx.com>
6974
6975 * nbsd-nat.c (nbsd_enable_proc_events)
6976 (nbsd_nat_target::post_startup_inferior): Add.
6977 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6978 (nbsd_nat_target::update_thread_list): Rewrite.
6979 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6980 "PTRACE_LWP_CREATE".
6981 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6982
102e38eb 69832020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6984
102e38eb
PW
6985 * stack.c (_initialize_stack): Remove duplicated creation
6986 of "frame" command and "f" alias.
6987
ee9d1e5f
HD
69882020-04-30 Hannes Domani <ssbssa@yahoo.de>
6989
6990 PR gdb/18706
6991 * gdbtypes.c (check_typedef): Calculate size of array of
6992 stubbed type.
6993
627c7fb8
HD
69942020-04-30 Hannes Domani <ssbssa@yahoo.de>
6995
6996 PR gdb/15559
6997 * i386-tdep.c (i386_push_dummy_call): Call
6998 i386_thiscall_push_dummy_call.
6999 (i386_thiscall_push_dummy_call): New function.
7000 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7001 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7002 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7003
ffc2844e
SM
70042020-04-29 Simon Marchi <simon.marchi@efficios.com>
7005
7006 * gdbarch.sh (do_read): Add shellcheck disable directive for
7007 warning SC2162.
7008
1207375d
SM
70092020-04-29 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7012 "referenced but not assigned" warning.
7013
9fdb2916
SM
70142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * gdbarch.sh: Remove code that sets fallbackdefault.
7017
759cea5e
SM
70182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * gdbarch.sh: Use shell operators && and || instead of
7021 -a and -o.
7022
cb02ab24
SM
70232020-04-29 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * gdbarch.sh: Use $(...) instead of `...`.
7026
a6fc5ffc
SM
70272020-04-29 Simon Marchi <simon.marchi@efficios.com>
7028
7029 * gdbarch.sh: Use double quotes around variables.
7030
8d113d13
SM
70312020-04-29 Simon Marchi <simon.marchi@efficios.com>
7032
7033 * gdbarch.sh: Use %s with printf, instead of variables in the
7034 format string.
7035
ed6acedd
TT
70362020-04-29 Tom Tromey <tromey@adacore.com>
7037
7038 PR ada/25875:
7039 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7040 type fields here.
7041 (read_enumeration_type): Call
7042 update_enumeration_type_from_children later. Update comments.
7043 (process_enumeration_scope): Don't create type fields.
7044
b68b1b58
KR
70452020-04-29 Kamil Rytarowski <n54@gmx.com>
7046
7047 * nbsd-tdep.c: Include "xml-syscall.h".
7048 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7049
f94b2e03
KR
70502020-04-29 Kamil Rytarowski <n54@gmx.com>
7051
7052 * nbsd-nat.c: Include "sys/wait.h".
7053 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7054 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7055 (nbsd_nat_target::remove_exec_catchpoint)
7056 (nbsd_nat_target::set_syscall_catchpoint): Add.
7057 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7058 (nbsd_nat_target::insert_exec_catchpoint)
7059 (nbsd_nat_target::remove_exec_catchpoint)
7060 (nbsd_nat_target::set_syscall_catchpoint): Add.
7061 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7062 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7063 `nbsd_get_syscall_number'.
7064
fc49bc72
TT
70652020-04-29 Tom Tromey <tom@tromey.com>
7066
7067 * stack.c (print_block_frame_labels): Remove.
7068
d642b692
HD
70692020-04-29 Hannes Domani <ssbssa@yahoo.de>
7070
7071 PR gdb/17320
7072 * ada-valprint.c (val_print_packed_array_elements): Move array
7073 end bracket to new line.
7074 (ada_val_print_string): Remove extra spaces before first array
7075 element.
7076 * c-valprint.c (c_value_print_array): Likewise.
7077 * m2-valprint.c (m2_print_array_contents): Likewise.
7078 (m2_value_print_inner): Likewise.
7079 * p-valprint.c (pascal_value_print_inner): Likewise.
7080 * valprint.c (generic_val_print_array): Likewise.
7081 (value_print_array_elements): Move first array element and array
7082 end bracket to new line.
7083
ea90f227
TV
70842020-04-29 Tom de Vries <tdevries@suse.de>
7085
7086 PR symtab/25889
7087 * linespec.c (find_method): Fix ix calculation.
7088
4498ef4f
KR
70892020-04-28 Kamil Rytarowski <n54@gmx.com>
7090
7091 * syscalls/update-netbsd.sh: New file.
7092 * syscalls/netbsd.xml: Regenerate.
7093 * data-directory/Makefile.in: Register `netbsd.xml' in
7094 `SYSCALLS_FILES'.
7095
a55e30b5
SM
70962020-04-28 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * syscalls/update-freebsd.sh: Add double quotes.
7099
2b2fbab8
TT
71002020-04-28 Tom Tromey <tom@tromey.com>
7101
7102 * NEWS: Update.
7103 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7104 (cmdpy_init): Allow class_tui.
7105
a65189c9
TV
71062020-04-28 Mark Williams <mark@myosotissp.com>
7107
7108 PR gdb/24480
7109 * dwarf2read.c: Add missing assingments to list_in_scope when
7110 start_symtab was already called.
7111
1b95cdb7
SM
71122020-04-28 Simon Marchi <simon.marchi@efficios.com>
7113
7114 PR gdb/25881
7115 * dwarf2/read.c (offset_map_type): Use
7116 gdb:hash_enum<sect_offset> as hash function.
7117
15cd93d0
TV
71182020-04-28 Tom de Vries <tdevries@suse.de>
7119
7120 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7121 with DW_AT_signature.
7122
1eb39914
SM
71232020-04-27 Simon Marchi <simon.marchi@efficios.com>
7124
7125 * configure.ac: Remove check for fs_base/gs_base in
7126 user_regs_struct.
7127 * configure: Re-generate.
7128 * config.in: Re-generate.
7129 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7130 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7131 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7132
991a3e2e
LM
71332020-04-27 Luis Machado <luis.machado@linaro.org>
7134
7135 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7136 problematic inline frame unwinding situation.
7137 * frame.c (frame_id_computed_p): New function.
7138 * frame.h (frame_id_computed_p): New prototype.
7139
361ba0e8
TT
71402020-04-26 Tom Tromey <tom@tromey.com>
7141
7142 * command.h (enum command_class) <class_pseudo>: Remove.
7143
bc3609fd
PW
71442020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7145
7146 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7147 and whitespace.
7148
b9771db7
KR
71492020-04-25 Kamil Rytarowski <n54@gmx.com>
7150
ec16513e
SM
7151 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7152 `PT_GET_PROCESS_STATE' block.
b9771db7 7153
7151c1af
TT
71542020-04-24 Tom Tromey <tom@tromey.com>
7155
7156 * symtab.h (symbol_get_demangled_name): Don't declare.
7157 * symtab.c (symbol_get_demangled_name): Remove.
7158 (general_symbol_info::natural_name)
7159 (general_symbol_info::demangled_name): Update.
7160
906bb4c5
TT
71612020-04-24 Tom Tromey <tom@tromey.com>
7162
7163 PR rust/25025:
7164 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7165
bcfe6157
TT
71662020-04-24 Tom Tromey <tom@tromey.com>
7167
7168 PR symtab/12707:
7169 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7170 exists.
7171 (new_symbol): Likewise.
7172 * compile/compile-object-load.c (get_out_value_type): Use
7173 symbol_matches_search_name.
7174
f049a313
TT
71752020-04-24 Tom Tromey <tom@tromey.com>
7176
7177 * dwarf2/read.c (add_partial_symbol): Do not call
7178 compute_and_set_names.
7179
76e288d1
TT
71802020-04-24 Tom Tromey <tom@tromey.com>
7181
7182 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7183 overload.
7184
2467f4f6
TT
71852020-04-24 Tom Tromey <tom@tromey.com>
7186
7187 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7188 (add_psymbol_to_list): New overload. Make old overload call new
7189 one.
7190 * psympriv.h (add_psymbol_to_list): New overload.
7191
e61108c9
TT
71922020-04-24 Tom Tromey <tom@tromey.com>
7193
7194 * dwarf2/read.c (partial_die_info::read) <case
7195 DW_AT_linkage_name>: Use value_as_string.
7196 (dwarf2_string_attr): Use value_as_string.
7197 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7198 method.
7199 * dwarf2/attribute.c (attribute::value_as_string): New method.
7200
8c87a452
TT
72012020-04-24 Tom Tromey <tom@tromey.com>
7202
7203 * symtab.c (general_symbol_info::natural_name)
7204 (general_symbol_info::demangled_name): Check for language_rust.
7205
787de330
TT
72062020-04-24 Tom Tromey <tom@tromey.com>
7207
7208 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7209 (dwarf2_physname): ... from here.
7210 (partial_die_info::read): Add Rust "{" hack.
7211
ff985671
TT
72122020-04-24 Tom Tromey <tom@tromey.com>
7213
7214 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7215 method.
7216 (symbol_set_demangled_name): Don't declare.
7217 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7218 symbol_set_demangled_name.
7219 (general_symbol_info::set_language)
7220 (general_symbol_info::compute_and_set_names): Update.
7221 * minsyms.c (minimal_symbol_reader::install): Update.
7222 * dwarf2/read.c (new_symbol): Update.
7223
1acda803
TT
72242020-04-24 Tom Tromey <tromey@adacore.com>
7225
7226 PR python/23662:
7227 * python/py-type.c (convert_field): Handle
7228 FIELD_LOC_KIND_DWARF_BLOCK.
7229 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7230 (typy_get_dynamic): Nw function.
7231 (type_object_getset): Add "dynamic".
7232 * NEWS: Add entry.
7233
d656f129
TT
72342020-04-24 Tom Tromey <tromey@adacore.com>
7235
7236 * ada-typeprint.c (print_choices, print_variant_part)
7237 (print_record_field_types_dynamic): New functions.
7238 (print_record_field_types): Use print_record_field_types_dynamic.
7239
7d79de9a
TT
72402020-04-24 Tom Tromey <tromey@adacore.com>
7241
7242 * dwarf2/read.c (handle_data_member_location): New overload.
7243 (dwarf2_add_field): Use it.
7244 (decode_locdesc): Add "computed" parameter. Update comment.
7245 * gdbtypes.c (is_dynamic_type_internal): Also look for
7246 FIELD_LOC_KIND_DWARF_BLOCK.
7247 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7248 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7249 virtual base classes.
7250 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7251 FIELD_LOC_KIND_DWARF_BLOCK.
7252
f8e89861
TT
72532020-04-24 Tom Tromey <tromey@adacore.com>
7254
7255 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7256 * gdbtypes.c (is_dynamic_type_internal): Check
7257 TYPE_HAS_DYNAMIC_LENGTH.
7258 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7259 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7260 New macros.
7261 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7262 constant.
7263
9c6a1327
TT
72642020-04-24 Tom Tromey <tromey@adacore.com>
7265
7266 * dwarf2/read.c (struct variant_field): Rewrite.
7267 (struct variant_part_builder): New.
7268 (struct nextfield): Remove "variant" field. Add "offset".
7269 (struct field_info): Add "current_variant_part" and
7270 "variant_parts".
7271 (alloc_discriminant_info): Remove.
7272 (alloc_rust_variant): New function.
7273 (quirk_rust_enum): Update.
7274 (dwarf2_add_field): Set "offset" member. Don't handle
7275 DW_TAG_variant_part.
7276 (offset_map_type): New typedef.
7277 (convert_variant_range, create_one_variant)
7278 (create_one_variant_part, create_variant_parts)
7279 (add_variant_property): New functions.
7280 (dwarf2_attach_fields_to_type): Call add_variant_property.
7281 (read_structure_type): Don't handle DW_TAG_variant_part.
7282 (handle_variant_part, handle_variant): New functions.
7283 (handle_struct_member_die): Use them.
7284 (process_structure_scope): Don't handle variant parts.
7285 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7286 (struct discriminant_info): Remove.
7287 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7288 (struct main_type) <flag_discriminated_union>: Remove.
7289 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7290 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7291 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7292 Update.
7293 * valops.c (value_union_variant): Remove.
7294 * value.h (value_union_variant): Don't declare.
7295
b249d2c2
TT
72962020-04-24 Tom Tromey <tromey@adacore.com>
7297
7298 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7299 (ada_value_primitive_packed_val): Update.
7300 * ada-valprint.c (ada_value_print_1): Update.
7301 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7302 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7303 just an address. Use evaluate_for_locexpr_baton.
7304 (dwarf2_evaluate_property): Update.
7305 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7306 array_view.
7307 * findvar.c (default_read_var_value): Update.
7308 * gdbtypes.c (compute_variant_fields_inner)
7309 (resolve_dynamic_type_internal): Update.
7310 (resolve_dynamic_type): Change type of valaddr parameter.
7311 * gdbtypes.h (resolve_dynamic_type): Update.
7312 * valarith.c (value_subscripted_rvalue): Update.
7313 * value.c (value_from_contents_and_address): Update.
7314
61122aa9
TT
73152020-04-24 Tom Tromey <tromey@adacore.com>
7316
7317 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7318 "push_initial_value" parameter.
7319 (dwarf2_evaluate_property): Likewise.
7320 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7321
ef83a141
TT
73222020-04-24 Tom Tromey <tromey@adacore.com>
7323
7324 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7325 (variant::matches, compute_variant_fields_recurse)
7326 (compute_variant_fields_inner, compute_variant_fields): New
7327 functions.
7328 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7329 Use resolved_type after type is made.
7330 (operator==): Add new cases.
7331 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7332 (struct discriminant_range, struct variant, struct variant_part):
7333 New.
7334 (union dynamic_prop_data) <variant_parts, original_type>: New
7335 members.
7336 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7337 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7338 constants.
7339 * value.c (unpack_bits_as_long): Now public.
7340 * value.h (unpack_bits_as_long): Declare.
7341
675127ec
TT
73422020-04-24 Tom Tromey <tromey@adacore.com>
7343
7344 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7345 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7346
9852ceef
HD
73472020-04-24 Hannes Domani <ssbssa@yahoo.de>
7348
7349 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7350
7632c6ce
KR
73512020-04-24 Kamil Rytarowski <n54@gmx.com>
7352
7353 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7354 (remove_fork_catchpoint, post_startup_inferior)
7355 (post_attach): Move...
7356 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7357 (remove_fork_catchpoint, post_startup_inferior)
7358 (post_attach): ...here.
7359 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7360 (remove_fork_catchpoint, post_startup_inferior)
7361 (post_attach): Move...
7362 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7363 (remove_fork_catchpoint, post_startup_inferior)
7364 (post_attach): ...here.
7365
7be2bb4f
TT
73662020-04-24 Tom Tromey <tromey@adacore.com>
7367
7368 * nat/windows-nat.h (struct windows_thread_info)
7369 <pc_adjusted>: New member.
7370 * windows-nat.c (windows_fetch_one_register): Check
7371 pc_adjusted.
7372 (windows_nat_target::get_windows_debug_event)
7373 (windows_nat_target::wait): Set pc_adjusted.
7374
f80cb3b4
TV
73752020-04-24 Tom de Vries <tdevries@suse.de>
7376
7377 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7378 Run gdb-add-index inside temp dir.
7379
29514b87
TT
73802020-04-23 Tom Tromey <tromey@adacore.com>
7381
7382 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7383 in loop.
7384
5939967b
LM
73852020-04-23 Luis Machado <luis.machado@linaro.org>
7386
7387 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7388 get_frame_register instead of gdbarch_unwind_pc.
7389
70bc38f5
TV
73902020-04-23 Tom de Vries <tdevries@suse.de>
7391
7392 * symtab.c (lookup_global_symbol): Prefer def over decl.
7393
de82891c
TV
73942020-04-23 Tom de Vries <tdevries@suse.de>
7395
7396 PR symtab/25807
7397 * block.c (best_symbol, better_symbol): Promote to external.
7398 * block.h (best_symbol, better_symbol): Declare.
7399 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7400 decl.
7401
ecc6c606
TT
74022020-04-23 Tom Tromey <tromey@adacore.com>
7403
7404 PR ada/25837:
7405 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7406 "const char *", not a "const std::string &".
7407 <name_and_matcher::operator==>: Update.
7408 * unittests/lookup_name_info-selftests.c: Change type of
7409 "result".
7410
740480b8
TT
74112020-04-23 Tom Tromey <tom@tromey.com>
7412
7413 * inferior.h (iterate_over_inferiors): Don't declare.
7414 * inferior.c (iterate_over_inferiors): Remove.
7415 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7416 Remove.
7417 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7418 use iterate_over_inferiors.
7419 (darwin_resume_inferior_it)
7420 (struct resume_inferior_threads_param)
7421 (darwin_resume_inferior_threads_it): Remove.
7422 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7423
ae3ab1f0
TV
74242020-04-23 Tom de Vries <tdevries@suse.de>
7425
7426 * blockframe.c (find_pc_partial_function): Use
7427 find_pc_sect_compunit_symtab rather than
7428 objfile->sf->qf->find_pc_sect_compunit_symtab.
7429
317d2668
TV
74302020-04-22 Tom de Vries <tdevries@suse.de>
7431
7432 PR symtab/25764
7433 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7434 in psymtabs.
7435
eea9e357
TV
74362020-04-22 Tom de Vries <tdevries@suse.de>
7437
7438 PR symtab/25801
7439 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7440 symtabs.
7441
3d5afab3
TV
74422020-04-22 Tom de Vries <tdevries@suse.de>
7443
7444 PR symtab/25700
7445 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7446 CU if already created.
7447
d43b7a2d
TBA
74482020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7449
7450 * infrun.c (displaced_step_fixup): Switch to the event_thread
7451 before calling displaced_step_restore, not after.
7452
d89edf9b
MM
74532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7454
7455 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7456 its inferior is not recorded by us.
7457 (record_btrace_target_open): Replace call to
7458 all_non_exited_threads () with call to current_inferior
7459 ()->non_exited_threads ().
7460 (record_btrace_target::stop_recording): Likewise.
7461 (record_btrace_target::close): Likewise.
7462 (record_btrace_target::wait): Likewise.
7463 (record_btrace_target::record_stop_replaying): Likewise.
7464
5897fd49
MM
74652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7466
7467 * btrace.c (btrace_enable): Throw an error on double enables and
7468 when enabling recording fails.
7469 (btrace_disable): Throw an error if the thread is not recorded.
7470
1a476b6d
MM
74712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7472
7473 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7474 request if we do not have a thread_info.
7475
4778a5f8
TV
74762020-04-21 Tom de Vries <tdevries@suse.de>
7477
7478 PR gdb/25471
7479 * thread.c
7480 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7481 exception in get_frame_id.
7482
0fa7617d
TT
74832020-04-20 Tom Tromey <tromey@adacore.com>
7484
7485 * python/python.c (struct gdbpy_event): Mark move constructor as
7486 noexcept.
7487 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7488 constructor as noexcept.
7489 * completer.h (struct completion_result): Mark move constructor as
7490 noexcept.
7491 * completer.c (completion_result::completion_result): Use
7492 initialization style. Don't call reset_match_list.
7493
ad23bda0
MS
74942020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7495
7496 * MAINTAINERS (Write After Approval): Add myself.
7497
45e1f031
TT
74982020-04-18 Tom Tromey <tom@tromey.com>
7499
7500 * windows-tdep.c (init_w32_command_list)
7501 (w32_prefix_command_valid): Restore.
7502 (_initialize_windows_tdep): Call init_w32_command_list.
7503
08feed99
TT
75042020-04-18 Tom Tromey <tom@tromey.com>
7505
7506 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7507 * value.c (value_fn_field): Update.
7508 * valops.c (find_function_in_inferior)
7509 (value_allocate_space_in_inferior): Update.
7510 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7511 Update.
7512 * tui/tui-source.c (tui_source_window::set_contents): Update.
7513 * symtab.c (lookup_global_or_static_symbol)
7514 (find_function_start_sal_1, skip_prologue_sal)
7515 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7516 * symmisc.c (dump_msymbols, dump_symtab_1)
7517 (maintenance_print_one_line_table): Update.
7518 * symfile.c (init_entry_point_info, section_is_mapped)
7519 (list_overlays_command, simple_read_overlay_table)
7520 (simple_overlay_update_1): Update.
7521 * stap-probe.c (handle_stap_probe): Update.
7522 * stabsread.c (dbx_init_float_type, define_symbol)
7523 (read_one_struct_field, read_enum_type, read_range_type): Update.
7524 * source.c (info_line_command): Update.
7525 * python/python.c (gdbpy_source_objfile_script)
7526 (gdbpy_execute_objfile_script): Update.
7527 * python/py-type.c (save_objfile_types): Update.
7528 * python/py-objfile.c (py_free_objfile): Update.
7529 * python/py-inferior.c (python_new_objfile): Update.
7530 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7531 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7532 (maintenance_check_psymtabs): Update.
7533 * printcmd.c (info_address_command): Update.
7534 * objfiles.h (struct objfile) <arch>: New method, from
7535 get_objfile_arch.
7536 (get_objfile_arch): Don't declare.
7537 * objfiles.c (get_objfile_arch): Remove.
7538 (filter_overlapping_sections): Update.
7539 * minsyms.c (msymbol_is_function): Update.
7540 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7541 (output_nondebug_symbol): Update.
7542 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7543 (mdebug_expand_psymtab): Update.
7544 * machoread.c (macho_add_oso_symfile): Update.
7545 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7546 Update.
7547 * linux-fork.c (checkpoint_command): Update.
7548 * linespec.c (convert_linespec_to_sals): Update.
7549 * jit.c (finalize_symtab): Update.
7550 * infrun.c (insert_exception_resume_from_probe): Update.
7551 * ia64-tdep.c (ia64_find_unwind_table): Update.
7552 * hppa-tdep.c (internalize_unwinds): Update.
7553 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7554 Update.
7555 * gcore.c (call_target_sbrk): Update.
7556 * elfread.c (record_minimal_symbol, elf_symtab_read)
7557 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7558 (elf_gnu_ifunc_resolve_by_got): Update.
7559 * dwarf2/read.c (create_addrmap_from_index)
7560 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7561 (read_debug_names_from_section)
7562 (process_psymtab_comp_unit_reader, add_partial_symbol)
7563 (add_partial_subprogram, process_full_comp_unit)
7564 (read_file_scope, read_func_scope, read_lexical_block_scope)
7565 (read_call_site_scope, dwarf2_ranges_read)
7566 (dwarf2_record_block_ranges, dwarf2_add_field)
7567 (mark_common_block_symbol_computed, read_tag_pointer_type)
7568 (read_tag_string_type, dwarf2_init_float_type)
7569 (dwarf2_init_complex_target_type, read_base_type)
7570 (partial_die_info::read, partial_die_info::read)
7571 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7572 (dwarf2_fetch_die_loc_sect_off): Update.
7573 * dwarf2/loc.c (dwarf2_find_location_expression)
7574 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7575 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7576 (dwarf2_loc_desc_get_symbol_read_needs)
7577 (locexpr_describe_location_piece, locexpr_describe_location_1)
7578 (loclist_describe_location): Update.
7579 * dwarf2/index-write.c (write_debug_names): Update.
7580 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7581 * dtrace-probe.c (dtrace_process_dof): Update.
7582 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7583 (process_one_symbol): Update.
7584 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7585 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7586 (coff_read_enum_type): Update.
7587 * cli/cli-cmds.c (edit_command, list_command): Update.
7588 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7589 * breakpoint.c (create_overlay_event_breakpoint)
7590 (create_longjmp_master_breakpoint)
7591 (create_std_terminate_master_breakpoint)
7592 (create_exception_master_breakpoint, get_sal_arch): Update.
7593 * block.c (block_gdbarch): Update.
7594 * annotate.c (annotate_source_line): Update.
7595
0743fc83
TT
75962020-04-17 Tom Tromey <tromey@adacore.com>
7597
7598 * auto-load.c (show_auto_load_cmd): Remove.
7599 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7600 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7601 (maintenance_print_arc_command): Remove.
7602 * tui/tui-win.c (tui_command): Remove.
7603 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7604 * tui/tui-layout.c (tui_layout_command): Remove.
7605 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7606 * python/python.c (user_set_python, user_show_python): Remove.
7607 (_initialize_python): Use add_basic_prefix_cmd,
7608 add_show_prefix_cmd.
7609 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7610 (install_gdb_commands): Use add_basic_prefix_cmd,
7611 add_show_prefix_cmd.
7612 (info_guile_command): Remove.
7613 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7614 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7615 add_show_prefix_cmd.
7616 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7617 Remove do_set and do_show parameters.
7618 * cli/cli-style.c (set_style, show_style): Remove.
7619 (_initialize_cli_style): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 (cli_style_option::add_setshow_commands): Remove do_set and
7622 do_show parameters.
7623 (cli_style_option::add_setshow_commands): Use
7624 add_basic_prefix_cmd, add_show_prefix_cmd.
7625 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7626 (set_style_name): Remove.
7627 * cli/cli-dump.c (dump_command, append_command): Remove.
7628 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7629 (tekhex_dump_command, binary_dump_command)
7630 (binary_append_command): Remove.
7631 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7632 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7633 (init_w32_command_list): Remove; move into ...
7634 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7635 * valprint.c (set_print, show_print, set_print_raw)
7636 (show_print_raw): Remove.
7637 (_initialize_valprint): Use add_basic_prefix_cmd,
7638 add_show_prefix_cmd.
7639 * typeprint.c (set_print_type, show_print_type): Remove.
7640 (_initialize_typeprint): Use add_basic_prefix_cmd,
7641 add_show_prefix_cmd.
7642 * record.c (set_record_command, show_record_command): Remove.
7643 (_initialize_record): Use add_basic_prefix_cmd,
7644 add_show_prefix_cmd.
7645 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7646 add_show_prefix_cmd.
7647 (info_command, show_command, set_debug, show_debug): Remove.
7648 * top.h (set_history, show_history): Don't declare.
7649 * top.c (set_history, show_history): Remove.
7650 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7651 (unset_tdesc_cmd): Remove.
7652 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7653 add_show_prefix_cmd.
7654 * symtab.c (info_module_command): Remove.
7655 (_initialize_symtab): Use add_basic_prefix_cmd.
7656 * symfile.c (overlay_command): Remove.
7657 (_initialize_symfile): Use add_basic_prefix_cmd.
7658 * sparc64-tdep.c (info_adi_command): Remove.
7659 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7660 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7661 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7664 (_initialize_serial): Use add_basic_prefix_cmd,
7665 add_show_prefix_cmd.
7666 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7667 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7668 add_show_prefix_cmd.
7669 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7670 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7671 add_show_prefix_cmd.
7672 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7673 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7674 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7675 add_show_prefix_cmd.
7676 * remote.c (remote_command, set_remote_cmd): Remove.
7677 (_initialize_remote): Use add_basic_prefix_cmd.
7678 * record-full.c (set_record_full_command)
7679 (show_record_full_command): Remove.
7680 (_initialize_record_full): Use add_basic_prefix_cmd,
7681 add_show_prefix_cmd.
7682 * record-btrace.c (cmd_set_record_btrace)
7683 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7684 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7685 (cmd_show_record_btrace_pt): Remove.
7686 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7687 add_show_prefix_cmd.
7688 * ravenscar-thread.c (set_ravenscar_command)
7689 (show_ravenscar_command): Remove.
7690 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7691 add_show_prefix_cmd.
7692 * mips-tdep.c (show_mips_command, set_mips_command)
7693 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7694 add_show_prefix_cmd.
7695 * maint.c (maintenance_command, maintenance_info_command)
7696 (maintenance_check_command, maintenance_print_command)
7697 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7698 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7699 add_show_prefix_cmd.
7700 (show_per_command_cmd): Remove.
7701 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7702 Remove.
7703 (maintenance_show_test_settings_cmd): Remove.
7704 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7705 add_show_prefix_cmd.
7706 * maint-test-options.c (maintenance_test_options_command):
7707 Remove.
7708 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7709 * macrocmd.c (macro_command): Remove
7710 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7711 * language.c (set_check, show_check): Remove.
7712 (_initialize_language): Use add_basic_prefix_cmd,
7713 add_show_prefix_cmd.
7714 * infcmd.c (unset_command): Remove.
7715 (_initialize_infcmd): Use add_basic_prefix_cmd.
7716 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7717 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7718 add_show_prefix_cmd.
7719 * go32-nat.c (go32_info_dos_command): Remove.
7720 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7721 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7722 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7723 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7724 (_initialize_frame): Use add_basic_prefix_cmd,
7725 add_show_prefix_cmd.
7726 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7727 (_initialize_dcache): Use add_basic_prefix_cmd,
7728 add_show_prefix_cmd.
7729 * cp-support.c (maint_cplus_command): Remove.
7730 (_initialize_cp_support): Use add_basic_prefix_cmd.
7731 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7732 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7733 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7734 add_basic_prefix_cmd, add_show_prefix_cmd.
7735 * breakpoint.c (save_command): Remove.
7736 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7737 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7738 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7739 add_show_prefix_cmd.
7740 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7741 (set_ada_command, show_ada_command): Remove.
7742 (_initialize_ada_language): Use add_basic_prefix_cmd,
7743 add_show_prefix_cmd.
7744 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7745
3557f442
KR
77462020-04-16 Kamil Rytarowski <n54@gmx.com>
7747
7748 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7749 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7750
16197208
SM
77512020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7752
7753 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7754 warning messages.
7755
00ac85d3
SM
77562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7757
7758 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7759 import table is not at beginning of .idata section.
7760
381ce63f
PA
77612020-04-16 Pedro Alves <palves@redhat.com>
7762
7763 * inferior.c (delete_inferior): Use delete operator directly
7764 instead of delete_program_space.
7765 * progspace.c (add_program_space): New, factored out from
7766 program_space::program_space.
7767 (remove_program_space): New, factored out from
7768 delete_program_space.
7769 (program_space::program_space): Remove intro comment. Rewrite.
7770 (program_space::~program_space): Remove intro comment. Call
7771 remove_program_space.
7772 (delete_program_space): Delete.
7773 * progspace.h (program_space::program_space): Make explicit. Move
7774 intro comment here, adjusted.
7775 (program_space::~program_space): Move intro comment here,
7776 adjusted.
7777 (delete_program_space): Remove.
7778
a010605f
TT
77792020-04-16 Tom Tromey <tromey@adacore.com>
7780
7781 * windows-nat.c (windows_nat::handle_access_violation): New
7782 function.
7783 * nat/windows-nat.h (handle_access_violation): Declare.
7784 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7785 windows-nat.c. Call handle_access_violation.
7786
efba5c23
TV
77872020-04-16 Tom de Vries <tdevries@suse.de>
7788
7789 PR symtab/25791
7790 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7791 CUs without psymtab.
7792
97ed802d
KB
77932020-04-16 Kevin Buettner <kevinb@redhat.com>
7794
7795 * python/python.c (do_start_initialization): Don't call
7796 PyEval_InitThreads for Python 3.9 and beyond.
7797
c7d64809
KR
77982020-04-15 Kamil Rytarowski <n54@gmx.com>
7799
7800 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7801 thread functions.
7802 (obsd_nat_target::wait): Likewise.
7803
ce127a96
TT
78042020-04-15 Tom Tromey <tromey@adacore.com>
7805
7806 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7807 (DEBUG_EXCEPT): Use debug_printf.
7808
99f1bc6a
AB
78092020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7810
7811 * completer.c (class completion_tracker::completion_hash_entry)
7812 <hash_name>: New member function.
7813 (completion_tracker::discard_completions): New callback to hash a
7814 completion_hash_entry, pass this to htab_create_alloc.
7815
a0e9b532
JT
78162016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7817
7818 * windows-nat.c (windows_make_so): Warn rather than stopping with
7819 an error if realpath() fails.
7820
06ca5dd4
KR
78212020-04-14 Kamil Rytarowski <n54@gmx.com>
7822
7823 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7824 (nbsd_nat_target::info_proc): Add do_status.
7825
194d088f
TV
78262020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7827 Tom de Vries <tdevries@suse.de>
7828
7829 PR symtab/25718
7830 * psympriv.h (struct partial_symtab::read_symtab)
7831 (struct partial_symtab::expand_psymtab)
7832 (struct partial_symtab::read_dependencies): Update comments.
7833 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7834 read_symtab for includer.
7835 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7836 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7837 (struct dwarf2_include_psymtab::m_readin): Remove.
7838 (struct dwarf2_include_psymtab::includer): New member function.
7839 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7840
c1a66c06
TV
78412020-04-14 Tom de Vries <tdevries@suse.de>
7842
7843 PR symtab/25720
7844 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7845 with NULL symbol_matcher and lookup_name.
7846 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7847 and lookup_name.
7848 * dwarf2/read.c (dw2_expand_symtabs_matching)
7849 (dw2_debug_names_expand_symtabs_matching): Same.
7850 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7851 Make lookup_name a pointer. Update comment.
7852 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7853 lookup_name being a pointer.
7854 * symfile.c (expand_symtabs_matching): Same.
7855 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7856 * linespec.c (iterate_over_all_matching_symtabs): Same.
7857
400b5eca
TT
78582020-04-13 Tom Tromey <tom@tromey.com>
7859
7860 * run-on-main-thread.c: Update include.
7861 * unittests/main-thread-selftests.c: Update include.
7862 * tui/tui-win.c: Update include.
7863 * tui/tui-io.c: Update include.
7864 * tui/tui-interp.c: Update include.
7865 * tui/tui-hooks.c: Update include.
7866 * top.h: Update include.
7867 * top.c: Update include.
7868 * ser-base.c: Update include.
7869 * remote.c: Update include.
7870 * remote-notif.c: Update include.
7871 * remote-fileio.c: Update include.
7872 * record-full.c: Update include.
7873 * record-btrace.c: Update include.
7874 * python/python.c: Update include.
7875 * posix-hdep.c: Update include.
7876 * mingw-hdep.c: Update include.
7877 * mi/mi-main.c: Update include.
7878 * mi/mi-interp.c: Update include.
7879 * main.c: Update include.
7880 * linux-nat.c: Update include.
7881 * interps.c: Update include.
7882 * infrun.c: Update include.
7883 * inf-loop.c: Update include.
7884 * event-top.c: Update include.
7885 * event-loop.c: Move to ../gdbsupport/.
7886 * event-loop.h: Move to ../gdbsupport/.
7887 * async-event.h: Update include.
7888 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7889
93b54c8e
TT
78902020-04-13 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-win.c: Include async-event.h.
7893 * remote.c: Include async-event.h.
7894 * remote-notif.c: Include async-event.h.
7895 * record-full.c: Include async-event.h.
7896 * record-btrace.c: Include async-event.h.
7897 * infrun.c: Include async-event.h.
7898 * event-top.c: Include async-event.h.
7899 * event-loop.h: Move some declarations to async-event.h.
7900 * event-loop.c: Don't include ser-event.h or top.h. Move some
7901 code to async-event.c.
7902 * async-event.h: New file.
7903 * async-event.c: New file.
7904 * Makefile.in (COMMON_SFILES): Add async-event.c.
7905 (HFILES_NO_SRCDIR): Add async-event.h.
7906
c1cd3163
TT
79072020-04-13 Tom Tromey <tom@tromey.com>
7908
7909 * utils.c (flush_streams): New function.
7910 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7911
29f2bf4f
TT
79122020-04-13 Tom Tromey <tom@tromey.com>
7913
7914 * event-loop.c (handle_file_event): Use warning, not
7915 printf_unfiltered.
7916
98029d02
TT
79172020-04-13 Tom Tromey <tom@tromey.com>
7918
7919 * event-loop.c: Include <chrono>.
7920
06cc9596
TT
79212020-04-13 Tom Tromey <tom@tromey.com>
7922
7923 * gdb_select.h: Move to ../gdbsupport/.
7924 * event-loop.c: Update include path.
7925 * top.c: Update include path.
7926 * ser-base.c: Update include path.
7927 * ui-file.c: Update include path.
7928 * ser-tcp.c: Update include path.
7929 * guile/scm-ports.c: Update include path.
7930 * posix-hdep.c: Update include path.
7931 * ser-unix.c: Update include path.
7932 * gdb_usleep.c: Update include path.
7933 * mingw-hdep.c: Update include path.
7934 * inflow.c: Update include path.
7935 * infrun.c: Update include path.
7936 * event-top.c: Update include path.
7937
8ae8e197
TT
79382020-04-13 Tom Tromey <tom@tromey.com>
7939
7940 * configure: Rebuild.
7941 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7942
58cf28e8
TT
79432020-04-13 Tom Tromey <tom@tromey.com>
7944
7945 * event-loop.h (start_event_loop): Don't declare.
7946 * event-loop.c (start_event_loop): Move...
7947 * main.c (start_event_loop): ...here. Now static.
7948
b7f999ae
SDJ
79492020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7950
7951 * MAINTAINERS: Update my email address.
7952
1085dfd4
KR
79532020-04-12 Kamil Rytarowski <n54@gmx.com>
7954
7955 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7956 IP_ALL.
7957
49d1d1f5
KR
79582020-04-12 Kamil Rytarowski <n54@gmx.com>
7959
7960 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7961 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7962
b4848d2a
KR
79632020-04-12 Kamil Rytarowski <n54@gmx.com>
7964
7965 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7966 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7967
51c133d5
KR
79682020-04-12 Kamil Rytarowski <n54@gmx.com>
7969
7970 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7971
54b8cbd0
KR
79722020-04-11 Kamil Rytarowski <n54@gmx.com>
7973
7974 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7975 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7976 (nbsd_nat_target::info_proc): New functions.
7977 * nbsd-nat.c (kinfo_get_vmmap): New function.
7978 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7979 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7980 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7981 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7982 functions.
7983 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7984 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7985 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7986 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7987 (KINFO_VME_FLAG_GROWS_DOWN): New.
7988
cf83625d
AS
79892020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7990
7991 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7992 bit shift.
7993
0c4311ab
TT
79942020-04-10 Tom Tromey <tromey@adacore.com>
7995
7996 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7997
3e65b3e9
TT
79982020-04-10 Tom Tromey <tromey@adacore.com>
7999
8000 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8001 separate debug files.
8002
13302e95
HD
80032020-04-10 Hannes Domani <ssbssa@yahoo.de>
8004
8005 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8006 Move to...
8007 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8008 ... here.
8009 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8010 Check for STATUS_WX86_BREAKPOINT.
8011 (windows_nat_target::wait): Same.
8012
bdfc1e8a
TV
80132020-04-10 Tom de Vries <tdevries@suse.de>
8014
8015 PR cli/25808
8016 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8017
f4460aec
SM
80182020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8019
8020 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8021 (Write After Approval): Remove Tom de Vries.
8022
a25198bb
BE
80232020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8024
8025 revert partially:
8026 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8027
aac66a4c
SM
8028 * buildsym.c (record_line): Fix undefined behavior and preserve
8029 lines at eof.
a25198bb 8030
206c98a6
KR
80312020-04-09 Kamil Rytarowski <n54@gmx.com>
8032
8033 * auxv.h (svr4_auxv_parse): New.
8034 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8035 and generic_auxv_parse.
8036 (svr4_auxv_parse): Add.
8037 * obsd-tdep.c: Include "auxv.h".
8038 (obsd_auxv_parse): Remove.
8039 (obsd_init_abi): Remove comment.
8040 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8041 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8042 * nbsd-tdep.c: Include "auxv.h".
8043 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8044
71fbdbaf
TT
80452020-04-08 Tom Tromey <tromey@adacore.com>
8046
8047 * nat/windows-nat.h (last_wait_event): Don't declare.
8048 (wait_for_debug_event): Update comment.
8049 * nat/windows-nat.c (last_wait_event): Now static.
8050
2c1d95e8
TT
80512020-04-08 Tom Tromey <tromey@adacore.com>
8052
8053 * windows-nat.c (wait_for_debug_event): Move to
8054 nat/windows-nat.c.
8055 * nat/windows-nat.h (wait_for_debug_event): Declare.
8056 * nat/windows-nat.c (wait_for_debug_event): Move from
8057 windows-nat.c. No longer static.
8058
d2977bc4
TT
80592020-04-08 Tom Tromey <tromey@adacore.com>
8060
8061 * windows-nat.c (get_windows_debug_event): Use
8062 fetch_pending_stop.
8063 * nat/windows-nat.h (fetch_pending_stop): Declare.
8064 * nat/windows-nat.c (fetch_pending_stop): New function.
8065
e758e19c
TT
80662020-04-08 Tom Tromey <tromey@adacore.com>
8067
8068 * windows-nat.c (windows_continue): Use matching_pending_stop and
8069 continue_last_debug_event.
8070 * nat/windows-nat.h (matching_pending_stop)
8071 (continue_last_debug_event): Declare.
8072 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8073 (matching_pending_stop, continue_last_debug_event): New
8074 functions.
8075
8d30e395
TT
80762020-04-08 Tom Tromey <tromey@adacore.com>
8077
8078 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8079 (handle_exception_result): Move to nat/windows-nat.h.
8080 (DEBUG_EXCEPTION_SIMPLE): Remove.
8081 (windows_nat::handle_ms_vc_exception): New function.
8082 (handle_exception): Move to nat/windows-nat.c.
8083 (get_windows_debug_event): Update.
8084 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8085 nat/windows-nat.c.
8086 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8087 (handle_exception_result): Move from windows-nat.c.
8088 (handle_exception): Declare.
8089 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8090 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8091 windows-nat.c.
8092
29de418d
TT
80932020-04-08 Tom Tromey <tromey@adacore.com>
8094
8095 * windows-nat.c (exception_count, event_count): Remove.
8096 (handle_exception, get_windows_debug_event)
8097 (do_initial_windows_stuff): Update.
8098
a816ba18
TT
80992020-04-08 Tom Tromey <tromey@adacore.com>
8100
8101 * windows-nat.c (windows_nat::handle_load_dll)
8102 (windows_nat::handle_unload_dll): Rename. No longer static.
8103 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8104 Declare.
8105
a00caa12
TT
81062020-04-08 Tom Tromey <tromey@adacore.com>
8107
8108 * complaints.h (stop_whining): Declare at top-level.
8109 (complaint): Don't declare stop_whining.
8110
d41b524f
TT
81112020-04-08 Tom Tromey <tromey@adacore.com>
8112
8113 * windows-nat.c (windows_nat::handle_output_debug_string):
8114 Rename. No longer static.
8115 * nat/windows-nat.h (handle_output_debug_string): Declare.
8116
3c76026d
TT
81172020-04-08 Tom Tromey <tromey@adacore.com>
8118
8119 * windows-nat.c (current_process_handle, current_process_id)
8120 (main_thread_id, last_sig, current_event, last_wait_event)
8121 (current_windows_thread, desired_stop_thread_id, pending_stops)
8122 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8123 (display_selectors, fake_create_process)
8124 (get_windows_debug_event): Update.
8125 * nat/windows-nat.h (current_process_handle, current_process_id)
8126 (main_thread_id, last_sig, current_event, last_wait_event)
8127 (current_windows_thread, desired_stop_thread_id, pending_stops)
8128 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8129 * nat/windows-nat.c (current_process_handle, current_process_id)
8130 (main_thread_id, last_sig, current_event, last_wait_event)
8131 (current_windows_thread, desired_stop_thread_id, pending_stops)
8132 (siginfo_er): New globals. Move from windows-nat.c.
8133
9d8679cc
TT
81342020-04-08 Tom Tromey <tromey@adacore.com>
8135
8136 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8137 (handle_load_dll): Update.
8138 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8139
28688adf
TT
81402020-04-08 Tom Tromey <tromey@adacore.com>
8141
8142 * windows-nat.c (enum thread_disposition_type): Move to
8143 nat/windows-nat.h.
8144 (windows_nat::thread_rec): Rename from thread_rec. No longer
8145 static.
8146 (windows_add_thread, windows_nat_target::fetch_registers)
8147 (windows_nat_target::store_registers, handle_exception)
8148 (windows_nat_target::resume, get_windows_debug_event)
8149 (windows_nat_target::get_tib_address)
8150 (windows_nat_target::thread_name)
8151 (windows_nat_target::thread_alive): Update.
8152 * nat/windows-nat.h (enum thread_disposition_type): Move from
8153 windows-nat.c.
8154 (thread_rec): Declare.
8155
4834dad0
TT
81562020-04-08 Tom Tromey <tromey@adacore.com>
8157
8158 * windows-nat.c: Add "using namespace".
8159 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8160 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8161
65bafd5b
TT
81622020-04-08 Tom Tromey <tromey@adacore.com>
8163
8164 * nat/windows-nat.h (struct windows_thread_info): Declare
8165 destructor.
8166 * nat/windows-nat.c (~windows_thread_info): New.
8167
0a4afda3
TT
81682020-04-08 Tom Tromey <tromey@adacore.com>
8169
8170 PR gdb/22992
8171 * windows-nat.c (current_event): Update comment.
8172 (last_wait_event, desired_stop_thread_id): New globals.
8173 (struct pending_stop): New.
8174 (pending_stops): New global.
8175 (windows_nat_target) <stopped_by_sw_breakpoint>
8176 <supports_stopped_by_sw_breakpoint>: New methods.
8177 (windows_fetch_one_register): Add assertions. Adjust PC.
8178 (windows_continue): Handle pending stops. Suspend other threads
8179 when stepping. Use last_wait_event
8180 (wait_for_debug_event): New function.
8181 (get_windows_debug_event): Use wait_for_debug_event. Handle
8182 pending stops. Queue spurious stops.
8183 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8184 (windows_nat_target::kill): Use wait_for_debug_event.
8185 * nat/windows-nat.h (struct windows_thread_info)
8186 <stopped_at_software_breakpoint>: New field.
8187 * nat/windows-nat.c (windows_thread_info::resume): Clear
8188 stopped_at_software_breakpoint.
8189
8e61ebec
TT
81902020-04-08 Tom Tromey <tromey@adacore.com>
8191
8192 * windows-nat.c (enum thread_disposition_type): New.
8193 (thread_rec): Replace "get_context" parameter with "disposition";
8194 change type.
8195 (windows_add_thread, windows_nat_target::fetch_registers)
8196 (windows_nat_target::store_registers, handle_exception)
8197 (windows_nat_target::resume, get_windows_debug_event)
8198 (windows_nat_target::get_tib_address)
8199 (windows_nat_target::thread_name)
8200 (windows_nat_target::thread_alive): Update.
8201
98a03287
TT
82022020-04-08 Tom Tromey <tromey@adacore.com>
8203
8204 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8205 (windows_continue): Use windows_continue::resume.
8206 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8207 resume>: Declare new methods.
8208 * nat/windows-nat.c: New file.
8209 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8210
7c7411bc
TT
82112020-04-08 Tom Tromey <tromey@adacore.com>
8212
8213 * windows-nat.c (windows_add_thread, windows_delete_thread)
8214 (windows_nat_target::fetch_registers)
8215 (windows_nat_target::store_registers, fake_create_process)
8216 (windows_nat_target::resume, windows_nat_target::resume)
8217 (get_windows_debug_event, windows_nat_target::wait)
8218 (windows_nat_target::pid_to_str)
8219 (windows_nat_target::get_tib_address)
8220 (windows_nat_target::get_ada_task_ptid)
8221 (windows_nat_target::thread_name)
8222 (windows_nat_target::thread_alive): Use lwp, not tid.
8223
2950fdf7
TT
82242020-04-08 Tom Tromey <tromey@adacore.com>
8225
8226 * windows-nat.c (handle_exception)
8227 (windows_nat_target::thread_name): Update.
8228 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8229 <name>: Now unique_xmalloc_ptr.
8230
62fe396b
TT
82312020-04-08 Tom Tromey <tromey@adacore.com>
8232
8233 * windows-nat.c (thread_rec)
8234 (windows_nat_target::fetch_registers): Update.
8235 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8236 Update comment.
8237 <debug_registers_changed, reload_context>: Now bool.
8238
e9534bd2
TT
82392020-04-08 Tom Tromey <tromey@adacore.com>
8240
8241 * windows-nat.c (windows_add_thread): Use new.
8242 (windows_init_thread_list, windows_delete_thread): Use delete.
8243 (get_windows_debug_event): Update.
8244 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8245 destructor, and initializers.
8246
ae1f8880
TT
82472020-04-08 Tom Tromey <tromey@adacore.com>
8248
8249 * windows-nat.c (struct windows_thread_info): Remove.
8250 * nat/windows-nat.h: New file.
8251
55a1e039
TT
82522020-04-08 Tom Tromey <tromey@adacore.com>
8253
8254 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8255 (thread_rec, windows_add_thread, windows_delete_thread)
8256 (windows_continue): Update.
8257
93366324
TT
82582020-04-08 Tom Tromey <tromey@adacore.com>
8259
8260 * windows-nat.c (struct windows_thread_info): Remove typedef.
8261 (thread_head): Remove.
8262 (thread_list): New global.
8263 (thread_rec, windows_add_thread, windows_init_thread_list)
8264 (windows_delete_thread, windows_continue): Update.
8265
0f2265e2
SM
82662020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * windows-tdep.h (windows_init_abi): Add comment.
8269 (cygwin_init_abi): New declaration.
8270 * windows-tdep.c: Split signal enumeration in two, one for
8271 Windows and one for Cygwin.
8272 (windows_gdb_signal_to_target): Only deal with signal of the
8273 Windows OS ABI.
8274 (cygwin_gdb_signal_to_target): New function.
8275 (windows_init_abi): Rename to windows_init_abi_common, don't set
8276 gdb_signal_to_target gdbarch method. Add new new function with
8277 this name.
8278 (cygwin_init_abi): New function.
8279 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8280 comment. Don't call windows_init_abi.
8281 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8282 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8283 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8284 i386_windows_init_abi_common, don't call windows_init_abi. Add
8285 a new function of this name.
8286 (i386_cygwin_init_abi): New function.
8287 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8288 OS ABI Cygwin.
8289
3810f182
SM
82902020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8291
8292 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8293 parameter.c.
8294 (dwarf2_read_gdb_index): Update.
8295
063f8e80
KR
82962020-04-07 Kamil Rytarowski <n54@gmx.com>
8297
8298 * nbsd-tdep.c: Include "objfiles.h".
8299 (nbsd_skip_solib_resolver): New.
8300 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8301
85a9510c 83022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8303
8304 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8305 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8306 with DW_LLE_base_addressx are being emitted in DWARFv5.
8307 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8308 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8309 unsigned integer.
8310
9fc3eaae 83112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8312
8313 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8314 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8315 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8316 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8317 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8318 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8319 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8320
8321
41144253 83222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8323
8324 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8325 (read_loclist_index): New function definition.
8326 (lookup_loclist_base): New function definition.
8327 (read_loclist_header): New function definition.
8328 (dwarf2_cu): Add loclist_base and loclist_header field.
8329 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8330 (read_full_die_1): Read the value of DW_AT_loclists_base.
8331 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8332 (read_attribute_value): Handle DW_FORM_loclistx.
8333 (skip_one_die): Handle DW_FORM_loclistx.
8334 (loclist_header): New structure declaration.
8335 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8336
9f4e76a4
SM
83372020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8340 constructor. Remove `addr` parameter from other constructor and
8341 add `per_cu` parameter.
8342 * dwarf2/read.c (create_partial_symtab): Update.
8343
25c11aca
TV
83442020-04-07 Tom de Vries <tdevries@suse.de>
8345
8346 PR symtab/25796
8347 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8348 (partial_die_info::fixup): Inherit has_const_value.
8349
5707e24b
TV
83502020-04-07 Tom de Vries <tdevries@suse.de>
8351
8352 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8353 symbols without address.
8354
05f00e22
KR
83552020-04-06 Kamil Rytarowski <n54@gmx.com>
8356
8357 * nbsd-nat.h (struct thread_info): Add forward declaration.
8358 (nbsd_nat_target::thread_alive): Add.
8359 (nbsd_nat_target::thread_name): Likewise.
8360 (nbsd_nat_target::update_thread_list): Likewise.
8361 (update_thread_list::post_attach): Likewise.
8362 (post_attach::pid_to_str): Likewise.
8363 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8364 (nbsd_thread_lister): Add.
8365 (nbsd_nat_target::thread_alive): Likewise.
8366 (nbsd_nat_target::thread_name): Likewise.
8367 (nbsd_add_threads): Likewise.
8368 (update_thread_list::post_attach): Likewise.
8369 (nbsd_nat_target::update_thread_list): Likewise.
8370 (post_attach::pid_to_str): Likewise.
8371
6ee448cc
TT
83722020-04-06 Tom Tromey <tromey@adacore.com>
8373
8374 * ada-valprint.c (print_variant_part): Extract the variant field.
8375 (print_field_values): Use the field as the outer value when
8376 recursing.
8377
dea34e8c
TT
83782020-04-06 Tom Tromey <tromey@adacore.com>
8379
8380 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8381 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8382 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8383 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8384 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8385
93689ce9
TT
83862020-04-06 Tom Tromey <tromey@adacore.com>
8387
8388 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8389 TYPE_CODE_ERROR.
8390
79743962
KR
83912020-04-06 Kamil Rytarowski <n54@gmx.com>
8392
8393 * nbsd-tdep.c: Include "gdbarch.h".
8394 Define enum with NetBSD signal numbers.
8395 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8396 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8397 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8398 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8399 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8400 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8401 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8402 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8403 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8404 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8405 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8406 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8407
9e7c9a03
HD
84082020-04-03 Hannes Domani <ssbssa@yahoo.de>
8409
8410 PR gdb/25325
8411 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8412
d9e49b61
TT
84132020-04-03 Tom Tromey <tromey@adacore.com>
8414
8415 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8416 Read constant block.
8417
e0fc5c3f
SM
84182020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8419
8420 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8421 (gdb_bfd_get_full_section_contents): New declaration.
8422 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8423 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8424 gdb_bfd_get_full_section_contents.
8425
e2ff18a0
SM
84262020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8427
8428 * exec.c (build_section_table): Replace internal_error with
8429 gdb_assert.
8430 (section_table_xfer_memory_partial): Likewise.
8431 * mdebugread.c (parse_partial_symbols): Likewise.
8432 * psymtab.c (lookup_partial_symbol): Likewise.
8433 * utils.c (wrap_here): Likewise.
8434
0830d301
TT
84352020-04-02 Tom Tromey <tromey@adacore.com>
8436
8437 * f-lang.c (build_fortran_types): Use arch_type to initialize
8438 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8439
e7da7f8f
TT
84402020-04-02 Tom Tromey <tromey@adacore.com>
8441
8442 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8443 of attributes.
8444
c90d28ac
AB
84452020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8446 Bernd Edlinger <bernd.edlinger@hotmail.de>
8447 Tom Tromey <tromey@adacore.com>
8448
8449 * buildsym.c (buildsym_compunit::record_line): Remove
8450 deduplication code.
8451
1aa98955
TV
84522020-04-02 Tom de Vries <tdevries@suse.de>
8453
8454 PR ada/24671
8455 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8456
d3214198
TV
84572020-04-02 Tom de Vries <tdevries@suse.de>
8458
8459 * dwarf2/read.c (dwarf2_gdb_index_functions,
8460 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8461 NULL.
8462 * psymtab.c (psym_lookup_global_symbol_language): New function.
8463 (psym_functions): Init psym_lookup_global_symbol_language with
8464 psym_lookup_global_symbol_language.
8465 * symfile-debug.c (debug_sym_quick_functions): Init
8466 lookup_global_symbol_language with NULL.
8467 * symfile.c (set_initial_language): Remove fixme comment.
8468 * symfile.h (struct quick_symbol_functions): Add
8469 lookup_global_symbol_language.
8470 * symtab.c (find_quick_global_symbol_language): New function.
8471 (find_main_name): Use find_quick_global_symbol_language.
8472
2836752f
SM
84732020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8474
8475 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8476
64dc2d4b
BE
84772020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8478
8479 * buildsym.c (record_line): Fix undefined behavior and preserve
8480 lines at eof.
8481
bbe3dc41
BE
84822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8483
8484 * buildsym.c (record_line): Fix the resizing condition.
8485
6b4a335b
TT
84862020-04-01 Tom Tromey <tom@tromey.com>
8487
8488 * value.h (value_literal_complex): Add comment.
8489 * valops.c (value_literal_complex): Refer to value.h.
8490
3638a098
TT
84912020-04-01 Tom Tromey <tom@tromey.com>
8492
8493 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8494 (scalar_type): New rule, from typebase.
8495 (typebase): Use scalar_type. Recognize complex types.
8496 (field_name): Handle FLOAT_KEYWORD.
8497 (ident_tokens): Add _Complex and __complex__.
8498
c34e8714
TT
84992020-04-01 Tom Tromey <tom@tromey.com>
8500
8501 PR exp/25299:
8502 * valarith.c (promotion_type, complex_binop): New functions.
8503 (scalar_binop): Handle complex numbers. Use promotion_type.
8504 (value_pos, value_neg, value_complement): Handle complex numbers.
8505
fa649bb7
TT
85062020-04-01 Tom Tromey <tom@tromey.com>
8507
8508 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8509 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8510 (parse_number): Handle complex numbers.
8511
981c08ce
TT
85122020-04-01 Tom Tromey <tom@tromey.com>
8513
8514 * c-valprint.c (c_decorations): Change complex suffix to "i".
8515
4c99290d
TT
85162020-04-01 Tom Tromey <tom@tromey.com>
8517
8518 * valprint.c (generic_value_print_complex): Use accessors.
8519 * value.h (value_real_part, value_imaginary_part): Declare.
8520 * valops.c (value_real_part, value_imaginary_part): New
8521 functions.
8522 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8523
5b930b45
TT
85242020-04-01 Tom Tromey <tom@tromey.com>
8525
8526 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8527 (read_range_type): Update.
8528 * mdebugread.c (basic_type): Update.
8529 * go-lang.c (build_go_types): Use init_complex_type.
8530 * gdbtypes.h (struct main_type) <complex_type>: New member.
8531 (init_complex_type): Update.
8532 (arch_complex_type): Don't declare.
8533 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8534 Make name if none given. Use alloc_type_copy. Look for cached
8535 complex type.
8536 (arch_complex_type): Remove.
8537 (gdbtypes_post_init): Use init_complex_type.
8538 * f-lang.c (build_fortran_types): Use init_complex_type.
8539 * dwarf2/read.c (read_base_type): Update.
8540 * d-lang.c (build_d_types): Use init_complex_type.
8541 * ctfread.c (read_base_type): Update.
8542
53cccef1
TBA
85432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8544
8545 * infrun.c (stop_all_threads): Update assertion, plus when
8546 stopping threads, take into account that we might be trying
8547 to stop an all-stop target.
8548 (stop_waiting): Call 'stop_all_threads' if there exists a
8549 non-stop target.
8550
a0714d30
TBA
85512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8552
8553 * target.h (exists_non_stop_target): New function declaration.
8554 * target.c (exists_non_stop_target): New function.
8555
60e22c1e
HD
85562020-04-01 Hannes Domani <ssbssa@yahoo.de>
8557
8558 PR gdb/24789
8559 * eval.c (is_integral_or_integral_reference): New function.
8560 (evaluate_subexp_standard): Allow integer references in
8561 pointer arithmetic.
8562
e139a727
TBA
85632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8564
8565 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8566 check for no ptid in the stop reply when the target is non-stop.
8567
e0802d59
TT
85682020-04-01 Tom Tromey <tromey@adacore.com>
8569
8570 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8571 "name" parameter to rvalue reference. Initialize m_name_holder.
8572 <lookup_name_info>: New overloads.
8573 <name>: Return gdb::string_view.
8574 <c_str>: New method.
8575 <make_ignore_params>: Update.
8576 <search_name_hash>: Update.
8577 <language_lookup_name>: Return const char *.
8578 <m_name>: Change type.
8579 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8580 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8581 (lookup_name_info::match_any): Update.
8582 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8583 Update.
8584 * minsyms.c (linkage_name_str): Update.
8585 * language.c (default_symbol_name_matcher): Update.
8586 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8587 Update.
8588 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8589 (ada_lookup_name_info::ada_lookup_name_info): Update.
8590 (literal_symbol_name_matcher): Update.
8591
8c072cb6
TT
85922020-04-01 Tom Tromey <tromey@adacore.com>
8593
8594 * psymtab.c (psymtab_search_name): Remove function.
8595 (psym_lookup_symbol): Create search name and lookup name here.
8596 (lookup_partial_symbol): Remove "name" parameter; add
8597 lookup_name.
8598 (psym_expand_symtabs_for_function): Update.
8599
6f29a534
TT
86002020-03-31 Joel Jones <joelkevinjones@gmail.com>
8601
8602 PR tui/25597:
8603 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8604
af62665e
TT
86052020-03-31 Tom Tromey <tromey@adacore.com>
8606
8607 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8608 memcpy.
8609
d1a89da5
NC
86102020-03-30 Nelson Chu <nelson.chu@sifive.com>
8611
8612 * features/riscv/32bit-csr.xml: Regenerated.
8613 * features/riscv/64bit-csr.xml: Regenerated.
8614
d8af9068
TT
86152020-03-30 Tom Tromey <tromey@adacore.com>
8616
8617 * ada-valprint.c (print_variant_part): Update.
8618 * ada-lang.h (ada_which_variant_applies): Update.
8619 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8620 outer_valaddr parameters; replace with "outer" value parameter.
8621 (to_fixed_variant_branch_type): Update.
8622
227c0bf4
PFC
86232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8624
8625 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8626 <list>. Remove inclusion of observable.h.
8627 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8628 (struct arch_lwp_info): New struct.
8629 (class ppc_linux_dreg_interface): New class.
8630 (struct ppc_linux_process_info): New struct.
8631 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8632 <low_new_clone, low_forget_process, low_prepare_to_resume>
8633 <copy_thread_dreg_state, mark_thread_stale>
8634 <mark_debug_registers_changed, register_hw_breakpoint>
8635 <clear_hw_breakpoint, register_wp, clear_wp>
8636 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8637 <num_memory_accesses, get_trigger_type>
8638 <create_watchpoint_request, hwdebug_point_cmp>
8639 <init_arch_lwp_info, get_arch_lwp_info>
8640 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8641 methods.
8642 <struct ptid_hash>: New inner struct.
8643 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8644 members.
8645 (saved_dabr_value, hwdebug_info, max_slots_number)
8646 (struct hw_break_tuple, struct thread_points, ppc_threads)
8647 (have_ptrace_hwdebug_interface)
8648 (hwdebug_find_thread_points_by_tid)
8649 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8650 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8651 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8652 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8653 use m_dreg_interface.
8654 (hwdebug_point_cmp): Change to...
8655 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8656 reference arguments instead of pointers.
8657 (ppc_linux_nat_target::ranged_break_num_registers): Use
8658 m_dreg_interface.
8659 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8660 m_dreg_interface. Call register_hw_breakpoint.
8661 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8662 m_dreg_interface. Call clear_hw_breakpoint.
8663 (get_trigger_type): Change to...
8664 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8665 comment.
8666 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8667 use m_dreg_interface. Call register_hw_breakpoint.
8668 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8669 use m_dreg_interface. Call clear_hw_breakpoint.
8670 (can_use_watchpoint_cond_accel): Change to...
8671 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8672 method. Update comment, use m_dreg_interface and
8673 m_process_info.
8674 (calculate_dvc): Change to...
8675 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8676 m_dreg_interface.
8677 (num_memory_accesses): Change to...
8678 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8679 (check_condition): Change to...
8680 (ppc_linux_nat_target::check_condition): ...this method.
8681 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8682 comment, use m_dreg_interface.
8683 (create_watchpoint_request): Change to...
8684 (ppc_linux_nat_target::create_watchpoint_request): ...this
8685 method. Use m_dreg_interface.
8686 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8687 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8688 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8689 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8690 (ppc_linux_nat_target::low_forget_process)
8691 (ppc_linux_nat_target::low_new_fork)
8692 (ppc_linux_nat_target::low_new_clone)
8693 (ppc_linux_nat_target::low_delete_thread)
8694 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8695 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8696 only call mark_thread_stale.
8697 (ppc_linux_thread_exit): Remove.
8698 (ppc_linux_nat_target::stopped_data_address): Change to...
8699 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8700 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8701 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8702 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8703 comment. Call low_stopped_data_address.
8704 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8705 m_dreg_interface.
8706 (ppc_linux_nat_target::masked_watch_num_registers): Use
8707 m_dreg_interface.
8708 (ppc_linux_nat_target::copy_thread_dreg_state)
8709 (ppc_linux_nat_target::mark_thread_stale)
8710 (ppc_linux_nat_target::mark_debug_registers_changed)
8711 (ppc_linux_nat_target::register_hw_breakpoint)
8712 (ppc_linux_nat_target::clear_hw_breakpoint)
8713 (ppc_linux_nat_target::register_wp)
8714 (ppc_linux_nat_target::clear_wp)
8715 (ppc_linux_nat_target::init_arch_lwp_info)
8716 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8717 (_initialize_ppc_linux_nat): Remove observer callback.
8718
4db10d8f
PFC
87192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8720
8721 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8722 (ppc_linux_nat_target::auxv_parse)
8723 (ppc_linux_nat_target::read_description)
8724 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8725 Move up.
8726
1310c1b0
PFC
87272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8728
8729 * linux-nat.h (low_new_clone): New method.
8730 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8731
69b037c3
SM
87322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8733
8734 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8735 (dbx_expand_psymtab): ... this.
8736 (start_psymtab): Update.
8737 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8738 (mdebug_expand_psymtab): ... this.
8739 (parse_partial_symbols): Update.
8740 (new_psymtab): Update.
8741 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8742 (xcoff_expand_psymtab): ... this.
8743 (xcoff_start_psymtab): Update.
8744
48993951
SM
87452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8746
8747 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8748 <expand_dependencies>: ... this.
8749 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8750 (partial_symtab::expand_dependencies): ... this.
8751 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8752 Update.
8753 (dwarf2_psymtab::expand_psymtab): Update.
8754 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8755 * mdebugread.c (psymtab_to_symtab_1): Update.
8756 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8757
3ad83046
SM
87582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * psympriv.h (discard_psymtab): Remove.
8761 * dbxread.c (dbx_end_psymtab): Update.
8762 * xcoffread.c (xcoff_end_psymtab): Update.
8763
4d1b9ab6
TT
87642020-03-28 Tom Tromey <tom@tromey.com>
8765
8766 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8767 comment.
8768
f1749218
TT
87692020-03-28 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8772
ebea7626
HD
87732020-03-27 Hannes Domani <ssbssa@yahoo.de>
8774
8775 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8776
a879b4d5
JB
87772020-03-26 John Baldwin <jhb@FreeBSD.org>
8778
8779 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8780
0826b30a
TT
87812020-03-26 Tom Tromey <tom@tromey.com>
8782
8783 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8784 (mark_common_block_symbol_computed, read_tag_string_type)
8785 (attr_to_dynamic_prop, read_subrange_type): Update.
8786 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8787 to be methods on struct attribute.
8788 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8789 (read_call_site_scope, partial_die_info::read)
8790 (partial_die_info::read, lookup_die_type, follow_die_ref):
8791 Update.
8792 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8793 from dwarf2_get_ref_die_offset.
8794 (attribute::constant_value): New method, from
8795 dwarf2_get_attr_constant_value.
8796 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8797 Declare method.
8798 <constant_value>: New method.
8799
2b2558bf
TT
88002020-03-26 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8803 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8804 (dwarf_type_encoding_name): Move to stringify.c.
8805 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8806 * dwarf2/stringify.c: New file.
8807 * dwarf2/stringify.h: New file.
8808
eeb64781
TT
88092020-03-26 Tom Tromey <tom@tromey.com>
8810
8811 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8812 Rewrite.
8813
a39fdb41
TT
88142020-03-26 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8817 methods.
8818 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8819 (lookup_ranges_base): Likewise.
8820 (read_cutu_die_from_dwo, read_full_die_1): Update.
8821
436c571c
TT
88222020-03-26 Tom Tromey <tom@tromey.com>
8823
8824 * dwarf2/read.c (read_import_statement, read_file_scope)
8825 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8826 (read_lexical_block_scope, read_call_site_scope)
8827 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8828 (handle_struct_member_die, process_structure_scope)
8829 (update_enumeration_type_from_children)
8830 (process_enumeration_scope, read_array_type, read_common_block)
8831 (read_namespace, read_module, read_subroutine_type): Update.
8832 (sibling_die): Remove.
8833
052c8bb8
TT
88342020-03-26 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8837 (build_type_psymtabs_reader, read_structure_type)
8838 (read_enumeration_type, read_full_die_1): Update.
8839 (dwarf2_attr_no_follow): Move to die.h.
8840 * dwarf2/die.h (struct die_info) <attr>: New method.
8841
2b24b6e4
TT
88422020-03-26 Tom Tromey <tom@tromey.com>
8843
8844 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8845 <base_address>: Now an optional.
8846 (dwarf2_find_base_address, dwarf2_rnglists_process)
8847 (dwarf2_ranges_process, fill_in_loclist_baton)
8848 (dwarf2_symbol_mark_computed): Update.
8849
c2d50fd0
TT
88502020-03-26 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/read.c (struct die_info): Move to die.h.
8853 * dwarf2/die.h: New file.
8854
0df7ad3a
TT
88552020-03-26 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8858 * dwarf2/read.c
8859 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8860 Move to line-header.c.
8861 (read_checked_initial_length_and_offset, read_formatted_entries):
8862 Likewise.
8863 (dwarf_decode_line_header): Split into two.
8864 * dwarf2/line-header.c
8865 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8866 Move from read.c.
8867 (read_checked_initial_length_and_offset, read_formatted_entries):
8868 Likewise.
8869 (dwarf_decode_line_header): New function, split from read.c.
8870
86c0bb4c
TT
88712020-03-26 Tom Tromey <tom@tromey.com>
8872
8873 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8874 Declare method.
8875 * dwarf2/read.c (read_attribute_value): Update.
8876 (dwarf2_per_objfile::read_line_string): Rename from
8877 read_indirect_line_string.
8878 (read_formatted_entries): Update.
8879
2ef46c2f
TT
88802020-03-26 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8883 variable.
8884
4f9c1eda
TT
88852020-03-26 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8888 const.
8889 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8890 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8891 parameter const.
8892
5a0e026f
TT
88932020-03-26 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8896 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8897 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8898 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8899
8844c11b
TT
89002020-03-26 Tom Tromey <tom@tromey.com>
8901
8902 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8903 file_names_size, file_full_name, file_file_name>: Use const.
8904 <file_name_at, file_names>: Add const overload.
8905 * dwarf2/line-header.c (line_header::file_file_name)
8906 (line_header::file_full_name): Update.
8907
c90ec28a
TT
89082020-03-26 Tom Tromey <tom@tromey.com>
8909
8910 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8911 (macro_start_file, consume_improper_spaces)
8912 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8913 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8914 (dwarf_decode_macros): Move to macro.c.
8915 * dwarf2/macro.c: New file.
8916 * dwarf2/macro.h: New file.
8917 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8918
4f44ae6c
TT
89192020-03-26 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8922 method.
8923 * dwarf2/section.c: New method. From
8924 read_indirect_string_at_offset_from.
8925 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8926 (read_indirect_string_at_offset_from): Move to section.c.
8927 (read_indirect_string_at_offset): Rewrite.
8928 (read_indirect_line_string_at_offset): Remove.
8929 (read_indirect_string, read_indirect_line_string)
8930 (dwarf_decode_macro_bytes): Update.
8931
a0194fa8
TT
89322020-03-26 Tom Tromey <tom@tromey.com>
8933
8934 * dwarf2/section.h (struct dwarf2_section_info)
8935 <overload_complaint>: Declare.
8936 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8937 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8938 Rename from dwarf2_section_buffer_overflow_complaint.
8939 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8940 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8941
3d27bbdb
TT
89422020-03-26 Tom Tromey <tom@tromey.com>
8943
8944 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8945 Declare.
8946 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8947 Move from read.c.
8948 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8949 to section.c.
8950
9eac9650
TT
89512020-03-26 Tom Tromey <tom@tromey.com>
8952
8953 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8954
bf80d710
TT
89552020-03-26 Tom Tromey <tom@tromey.com>
8956
8957 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8958 "builder".
8959 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8960 parameter.
8961 (dwarf_decode_macros): Update.
8962
0314b390
TT
89632020-03-26 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/read.c (read_attribute_value): Update.
8966 (read_indirect_string_from_dwz): Move to dwz.c; change into
8967 method.
8968 (dwarf_decode_macro_bytes): Update.
8969 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8970 * dwarf2/dwz.c: New file.
8971 * Makefile.in (COMMON_SFILES): Add dwz.c.
8972
9fda78b6
TT
89732020-03-26 Tom Tromey <tom@tromey.com>
8974
8975 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8976 * dwarf2/read.c: Add include.
8977 * dwarf2/index-write.c: Add include.
8978 * dwarf2/index-cache.c: Add include.
8979 * dwarf2/dwz.h: New file.
8980
33aa3c10
TT
89812020-03-25 Tom Tromey <tom@tromey.com>
8982
8983 * compile/compile-object-load.c (get_out_value_type): Mention
8984 correct symbol name in error message.
8985
d503b685
HD
89862020-03-25 Hannes Domani <ssbssa@yahoo.de>
8987
8988 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8989
7b1eff95
TV
89902020-03-25 Tom de Vries <tdevries@suse.de>
8991
8992 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8993 * symmisc.c (dump_symtab_1): Print user and includes fields.
8994 (maintenance_info_symtabs): Same.
8995
dd895392
AB
89962020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 PR gdb/25534
8999 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9000 (riscv_regcache_cooked_write): New function.
9001 (riscv_push_dummy_call): Use new function.
9002 (riscv_return_value): Likewise.
9003
5ab2fbf1
SM
90042020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9005
9006 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9007 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9008 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9009 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9010 * infrun.c (follow_fork): Likewise.
9011 (follow_fork_inferior): Likewise.
9012 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9013 * linux-nat.h (class linux_nat_target): Likewise.
9014 * remote.c (class remote_target) <follow_fork>: Likewise.
9015 (remote_target::follow_fork): Likewise.
9016 * target-delegates.c: Re-generate.
9017 * target.c (default_follow_fork): Likewise.
9018 (target_follow_fork): Likewise.
9019 * target.h (struct target_ops) <follow_fork>: Likewise.
9020 (target_follow_fork): Likewise.
9021
a64fafb5
TV
90222020-03-24 Tom de Vries <tdevries@suse.de>
9023
9024 * psymtab.c (maintenance_info_psymtabs): Print user field.
9025
fe26d3a3
TT
90262020-03-20 Tom Tromey <tromey@adacore.com>
9027
9028 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9029 const.
9030 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9031 const.
9032
c884cc46
SM
90332020-03-20 Simon Marchi <simon.marchi@efficios.com>
9034
9035 * ptrace.m4: Don't check for ptrace declaration.
9036 * config.in: Re-generate.
9037 * configure: Re-generate.
9038 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9039 not defined.
9040
1ff700c2
KR
90412020-03-20 Kamil Rytarowski <n54@gmx.com>
9042
9043 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9044 `PTRACE_TYPE_RET'.
9045 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9046 * sparc-nat.c (gdb_ptrace): Likewise.
9047 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9048
f7d4f0b1
TT
90492020-03-20 Tom Tromey <tromey@adacore.com>
9050
9051 * c-exp.y (lex_one_token): Fix assert.
9052
f67210ff
TT
90532020-03-20 Tom Tromey <tromey@adacore.com>
9054
9055 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9056 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9057 strncpy call.
9058
1773be9e
TT
90592020-03-20 Tom Tromey <tromey@adacore.com>
9060
9061 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9062
70304be9
TT
90632020-03-20 Tom Tromey <tromey@adacore.com>
9064
9065 * ada-valprint.c (print_variant_part): Remove parameters; switch
9066 to value-based API.
9067 (print_field_values): Likewise.
9068 (ada_val_print_struct_union): Likewise.
9069 (ada_value_print_1): Update.
9070
9faa006d
KR
90712020-03-20 Kamil Rytarowski <n54@gmx.com>
9072
9073 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9074 nbsd_nat_target instead of inf_ptrace_target.
9075 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9076 nbsd_nat_target.
9077
4a90f062
KR
90782020-03-20 Kamil Rytarowski <n54@gmx.com>
9079
9080 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9081 it to the ptrace call.
9082 * (store_registers): Likewise.
9083
90842020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9085
9086 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9087 it to the ptrace call.
9088 * (store_registers): Likewise.
9089
2d07da27
LM
90902020-03-19 Luis Machado <luis.machado@linaro.org>
9091
9092 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9093 valid, fetch vg value from ptrace.
9094
f09db380
KR
90952020-03-19 Kamil Rytarowski <n54@gmx.com>
9096 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9097 * inf-ptrace.c: Likewise.
9098 * (gdb_ptrace): Add.
9099 * (inf_ptrace_target::resume): Update.
9100 * (inf_ptrace_target::xfer_partial): Likewise.
9101 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9102 * (inf_ptrace_peek_poke): Update.
9103
fcc7376e
KR
91042020-03-19 Kamil Rytarowski <n54@gmx.com>
9105
9106 * x86-bsd-nat.c (gdb_ptrace): New.
9107 * (x86bsd_dr_set): Add new argument `ptid'.
9108 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9109 x86bsd_dr_set_addr): Update.
9110
cada5fc9
AB
91112020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9112
9113 * remote.c (remote_target::process_stop_reply): Handle events for
9114 all threads differently.
9115
19a2740f
AB
91162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * completer.c (completion_tracker::remove_completion): Define new
9119 function.
9120 * completer.h (completion_tracker::remove_completion): Declare new
9121 function.
9122 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9123 when adding a C++ function symbol.
9124
724fd9ba
AB
91252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9126
9127 * completer.c (completion_tracker::completion_hash_entry): Define
9128 new class.
9129 (advance_to_filename_complete_word_point): Call
9130 recompute_lowest_common_denominator.
9131 (completion_tracker::completion_tracker): Call discard_completions
9132 to setup the hash table.
9133 (completion_tracker::discard_completions): Allow for being called
9134 from the constructor, pass new equal function, and element deleter
9135 when constructing the hash table. Initialise new class member
9136 variables.
9137 (completion_tracker::maybe_add_completion): Remove use of
9138 m_entries_vec, and store more information into m_entries_hash.
9139 (completion_tracker::recompute_lcd_visitor): New function, most
9140 content taken from...
9141 (completion_tracker::recompute_lowest_common_denominator):
9142 ...here, this now just visits each item in the hash calling the
9143 above visitor.
9144 (completion_tracker::build_completion_result): Remove use of
9145 m_entries_vec, call recompute_lowest_common_denominator.
9146 * completer.h (completion_tracker::have_completions): Remove use
9147 of m_entries_vec.
9148 (completion_tracker::completion_hash_entry): Declare new class.
9149 (completion_tracker::recompute_lowest_common_denominator): Change
9150 function signature.
9151 (completion_tracker::recompute_lcd_visitor): Declare new function.
9152 (completion_tracker::m_entries_vec): Delete.
9153 (completion_tracker::m_entries_hash): Initialize to NULL.
9154 (completion_tracker::m_lowest_common_denominator_valid): New
9155 member variable.
9156 (completion_tracker::m_lowest_common_denominator_max_length): New
9157 member variable.
9158
5a82b8a1
KR
91592020-03-17 Kamil Rytarowski <n54@gmx.com>
9160
9161 * regformats/regdef.h: Put reg in gdb namespace.
9162
fb516a69
KR
91632020-03-17 Kamil Rytarowski <n54@gmx.com>
9164
9165 * i386-bsd-nat.c (gdb_ptrace): New.
9166 * (i386bsd_fetch_inferior_registers,
9167 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9168 * (i386bsd_fetch_inferior_registers,
9169 i386bsd_store_inferior_registers) Use gdb_ptrace.
9170
1c0aa1fb
KR
91712020-03-17 Kamil Rytarowski <n54@gmx.com>
9172
9173 * amd64-bsd-nat.c (gdb_ptrace): New.
9174 * (amd64bsd_fetch_inferior_registers,
9175 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9176 * (amd64bsd_fetch_inferior_registers,
9177 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9178
5ccd2fb7
KR
91792020-03-17 Kamil Rytarowski <n54@gmx.com>
9180
9181 * user-regs.c (user_reg::read): Rename to...
9182 (user_reg::xread): ...this.
9183 * (append_user_reg): Rename argument `read' to `xread'.
9184 * (user_reg_add_builtin): Likewise.
9185 * (user_reg_add): Likewise.
9186 * (value_of_user_reg): Likewise.
9187
2108a63a
KR
91882020-03-17 Kamil Rytarowski <n54@gmx.com>
9189
9190 * sparc-nat.c (gdb_ptrace): New.
9191 * sparc-nat.c (sparc_fetch_inferior_registers)
9192 (sparc_store_inferior_registers) Remove obsolete comment.
9193 * sparc-nat.c (sparc_fetch_inferior_registers)
9194 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9195 * sparc-nat.c (sparc_fetch_inferior_registers)
9196 (sparc_store_inferior_registers) Use gdb_ptrace.
9197
a225c9a8
KR
91982020-03-17 Kamil Rytarowski <n54@gmx.com>
9199
9200 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9201 it to the ptrace call.
9202 * sh-nbsd-nat.c (store_registers): Likewise.
9203
98097623
KR
92042020-03-17 Kamil Rytarowski <n54@gmx.com>
9205
9206 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9207 nbsd_nat_target instead of inf_ptrace_target.
9208 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9209 nbsd_nat_target.
9210
9e38d619
KR
92112020-03-17 Kamil Rytarowski <n54@gmx.com>
9212
9213 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9214
a2ecbe9f
KR
92152020-03-17 Kamil Rytarowski <n54@gmx.com>
9216
9217 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9218 <sys/sysctl.h>.
9219 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9220
58990295
TV
92212020-03-17 Tom de Vries <tdevries@suse.de>
9222
9223 PR gdb/23710
9224 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9225 fields.
9226 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9227 fields.
9228 (process_imported_unit_die): Skip import of c++ CUs.
9229
771dd3a8
TT
92302020-03-16 Tom Tromey <tom@tromey.com>
9231
9232 * p-valprint.c (pascal_object_print_value): Initialize
9233 base_value.
9234
817a7585
AK
92352020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9236 Shahab Vahedi <shahab@synopsys.com>
9237
9238 * Makefile.in: Add arch/arc.o
9239 * configure.tgt: Likewise.
9240 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9241 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9242 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9243 * arc-tdep.h (arc_read_description): Add proto type.
9244 * arch/arc.c: New file.
9245 * arch/arc.h: Likewise.
9246 * features/Makefile: Replace old target descriptions with new.
9247 * features/arc-arcompact.c: Remove.
9248 * features/arc-arcompact.xml: Likewise.
9249 * features/arc-v2.c: Likewise
9250 * features/arc-v2.xml: Likewise
9251 * features/arc/aux-arcompact.xml: New file.
9252 * features/arc/aux-v2.xml: Likewise.
9253 * features/arc/core-arcompact.xml: Likewise.
9254 * features/arc/core-v2.xml: Likewise.
9255 * features/arc/aux-arcompact.c: Generate.
9256 * features/arc/aux-v2.c: Likewise.
9257 * features/arc/core-arcompact.c: Likewise.
9258 * features/arc/core-v2.c: Likewise.
9259 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9260
67430cd0
TT
92612020-03-16 Tom Tromey <tromey@adacore.com>
9262
9263 PR gdb/25663:
9264 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9265 putting value into bcache.
9266
30efb6c7
SM
92672020-03-16 Simon Marchi <simon.marchi@efficios.com>
9268
9269 PR gdb/21500
9270 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9271 to...
9272 (amd64_windows_init_abi_common): ... this. Don't set size of
9273 long type.
9274 (amd64_windows_init_abi): New function.
9275 (amd64_cygwin_init_abi): New function.
9276 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9277 the Cygwin OS ABI.
9278 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9279 comment.
9280
8db52437
SM
92812020-03-16 Simon Marchi <simon.marchi@efficios.com>
9282
9283 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9284 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9285 (pe_import_directory_entry): New struct type.
9286 (is_linked_with_cygwin_dll): New function.
9287 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9288 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9289 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9290
5982a56a
SM
92912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9294 i386_cygwin_core_osabi_sniffer.
9295
7a1998df
SM
92962020-03-16 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * i386-cygwin-tdep.c: Rename to...
9299 * i386-windows-tdep.c: ... this.
9300 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9301 i386-windows-tdep.c.
9302 * configure.tgt: Likewise.
9303
053205cc
SM
93042020-03-16 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9307 * osabi.c (gdb_osabi_names): Add "Windows".
9308 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9309 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9310 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9311 i386_cygwin_osabi_sniffer.
9312 (_initialize_i386_cygwin_tdep): Register OS ABI
9313 GDB_OSABI_WINDOWS for i386.
9314 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9315 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9316 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9317 for x86-64.
9318 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9319 when the target matches '*-*-mingw*'.
9320
fe4b2ee6
SM
93212020-03-16 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * defs.h (enum gdb_osabi): Move to...
9324 * osabi.h (enum gdb_osabi): ... here.
9325 * gdbarch.sh: Include osabi.h in gdbarch.h.
9326 * gdbarch.h: Re-generate.
9327
cb9b645d
SM
93282020-03-16 Simon Marchi <simon.marchi@efficios.com>
9329
9330 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9331 function.
9332 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9333
3293bbaf
TT
93342020-03-14 Tom Tromey <tom@tromey.com>
9335
9336 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9337 for C++.
9338 (c_type_print_modifier): Likewise. Add "language" parameter.
9339 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9340 (c_type_print_base_1): Update.
9341 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9342 constants.
9343 * type-stack.c (type_stack::insert): Handle tp_atomic and
9344 tp_restrict.
9345 (type_stack::follow_type_instance_flags): Likewise.
9346 (type_stack::follow_types): Likewise. Merge type-following code.
9347 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9348 (space_identifier, cv_with_space_id)
9349 (const_or_volatile_or_space_identifier_noopt)
9350 (const_or_volatile_or_space_identifier): Remove.
9351 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9352 rules.
9353 (ptr_operator, typebase): Update.
9354 (enum token_flag) <FLAG_C>: New constant.
9355 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9356 "_Atomic".
9357 (lex_one_token): Handle FLAG_C.
9358
154151a6
KR
93592020-03-14 Kamil Rytarowski <n54@gmx.com>
9360
9361 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9362 it to the ptrace call.
9363 * m68k-bsd-nat.c (store_registers): Likewise.
9364
bc107784
KR
93652020-03-14 Kamil Rytarowski <n54@gmx.com>
9366
9367 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9368 gdb_byte *.
9369 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9370 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9371 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9372
01a80117
KR
93732020-03-14 Kamil Rytarowski <n54@gmx.com>
9374
9375 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9376 nbsd_nat_target instead of inf_ptrace_target.
9377 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9378 nbsd_nat_target.
9379
f90280ca
KR
93802020-03-14 Kamil Rytarowski <n54@gmx.com>
9381
9382 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9383 register_t.
9384
6def66f1
KR
93852020-03-14 Kamil Rytarowski <n54@gmx.com>
9386
9387 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9388 it to the ptrace call.
9389 * alpha-bsd-nat.c (store_registers): Likewise.
9390
66eaca97
KR
93912020-03-14 Kamil Rytarowski <n54@gmx.com>
9392
9393 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9394 includes.
9395 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9396 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9397 fill_fpregset): Likewise.
9398
4fed520b
KR
93992020-03-14 Kamil Rytarowski <n54@gmx.com>
9400
9401 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9402 nbsd_nat_target instead of inf_ptrace_target.
9403 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9404 nbsd_nat_target.
9405
2190cf06
KR
94062020-03-14 Kamil Rytarowski <n54@gmx.com>
9407
9408 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9409 register_t.
9410
75c56d3d
KR
94112020-03-14 Kamil Rytarowski <n54@gmx.com>
9412
9413 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9414 it to the ptrace call.
9415 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9416 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9417 * arm-nbsd-nat.c (store_register): Likewise.
9418 * arm-nbsd-nat.c (store_regs): Likewise.
9419 * arm-nbsd-nat.c (store_fp_register): Likewise.
9420 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9421
6018d381
KR
94222020-03-14 Kamil Rytarowski <n54@gmx.com>
9423
9424 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9425 nbsd_nat_target instead of inf_ptrace_target.
9426 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9427 nbsd_nat_target.
9428
013f99f0
KR
94292020-03-14 Kamil Rytarowski <n54@gmx.com>
9430
9431 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9432 it to the ptrace call.
9433 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9434
12753073
KR
94352020-03-14 Kamil Rytarowski <n54@gmx.com>
9436
6227b330
KR
9437 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9438 it to the ptrace call.
9439 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9440
94412020-03-14 Kamil Rytarowski <n54@gmx.com>
9442
9443 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9444 gdb_byte *.
12753073
KR
9445 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9446
d5be5fa4
KR
94472020-03-14 Kamil Rytarowski <n54@gmx.com>
9448
9449 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9450 instead of inf_ptrace_target.
9451 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9452 nbsd_nat_target.
9453
8110f842
KR
94542020-03-14 Kamil Rytarowski <n54@gmx.com>
9455
9456 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9457 register_t.
9458
52feded7
KR
94592020-03-14 Kamil Rytarowski <n54@gmx.com>
9460
9461 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9462 register_t.
9463
25567eee
KR
94642020-03-14 Kamil Rytarowski <n54@gmx.com>
9465
9466 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9467 register_t.
9468
426a9c18
TT
94692020-03-13 Tom Tromey <tom@tromey.com>
9470
9471 * value.h (val_print): Don't declare.
9472 * valprint.h (val_print_array_elements)
9473 (val_print_scalar_formatted, generic_val_print): Don't declare.
9474 * valprint.c (generic_val_print_array): Take a struct value.
9475 (generic_val_print_ptr, generic_val_print_memberptr)
9476 (generic_val_print_bool, generic_val_print_int)
9477 (generic_val_print_char, generic_val_print_complex)
9478 (generic_val_print): Remove.
9479 (generic_value_print): Update.
9480 (do_val_print): Remove unused parameters. Don't call
9481 la_val_print.
9482 (val_print): Remove.
9483 (common_val_print): Update. Don't call value_check_printable.
9484 (val_print_scalar_formatted, val_print_array_elements): Remove.
9485 * rust-lang.c (rust_val_print): Remove.
9486 (rust_language_defn): Update.
9487 * p-valprint.c (pascal_val_print): Remove.
9488 (pascal_value_print_inner): Update.
9489 (pascal_object_print_val_fields, pascal_object_print_val):
9490 Remove.
9491 (pascal_object_print_static_field): Update.
9492 * p-lang.h (pascal_val_print): Don't declare.
9493 * p-lang.c (pascal_language_defn): Update.
9494 * opencl-lang.c (opencl_language_defn): Update.
9495 * objc-lang.c (objc_language_defn): Update.
9496 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9497 * m2-lang.h (m2_val_print): Don't declare.
9498 * m2-lang.c (m2_language_defn): Update.
9499 * language.h (struct language_defn) <la_val_print>: Remove.
9500 * language.c (unk_lang_value_print_inner): Rename. Change
9501 argument types.
9502 (unknown_language_defn, auto_language_defn): Update.
9503 * go-valprint.c (go_val_print): Remove.
9504 * go-lang.h (go_val_print): Don't declare.
9505 * go-lang.c (go_language_defn): Update.
9506 * f-valprint.c (f_val_print): Remove.
9507 * f-lang.h (f_value_print): Don't declare.
9508 * f-lang.c (f_language_defn): Update.
9509 * d-valprint.c (d_val_print): Remove.
9510 * d-lang.h (d_value_print): Don't declare.
9511 * d-lang.c (d_language_defn): Update.
9512 * cp-valprint.c (cp_print_value_fields)
9513 (cp_print_value_fields_rtti, cp_print_value): Remove.
9514 (cp_print_static_field): Update.
9515 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9516 (c_val_print_struct, c_val_print_union, c_val_print_int)
9517 (c_val_print_memberptr, c_val_print): Remove.
9518 * c-lang.h (c_val_print_array, cp_print_value_fields)
9519 (cp_print_value_fields_rtti): Don't declare.
9520 * c-lang.c (c_language_defn, cplus_language_defn)
9521 (asm_language_defn, minimal_language_defn): Update.
9522 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9523 (ada_val_print_enum): Take a struct value.
9524 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9525 (ada_val_print): Remove.
9526 (ada_value_print_1): Update.
9527 (printable_val_type): Remove.
9528 * ada-lang.h (ada_val_print): Don't declare.
9529 * ada-lang.c (ada_language_defn): Update.
9530
42331a1e
TT
95312020-03-13 Tom Tromey <tom@tromey.com>
9532
9533 * valprint.c (do_val_print): Update.
9534 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9535 a struct value.
9536 (value_to_value_object_no_release): Declare.
9537 * python/py-value.c (value_to_value_object_no_release): New
9538 function.
9539 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9540 struct value.
9541 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9542 function.
9543 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9544 a struct value.
9545 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9546 Declare.
9547 (gdbscm_apply_val_pretty_printer): Take a struct value.
9548 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9549 value.
9550 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9551 value.
9552 * extension-priv.h (struct extension_language_ops)
9553 <apply_val_pretty_printer>: Take a struct value.
9554 * cp-valprint.c (cp_print_value): Create a struct value.
9555 (cp_print_value): Update.
9556
3a916a97
TT
95572020-03-13 Tom Tromey <tom@tromey.com>
9558
9559 * ada-valprint.c (print_field_values): Call common_val_print.
9560
b59eac37
TT
95612020-03-13 Tom Tromey <tom@tromey.com>
9562
9563 * ada-valprint.c (val_print_packed_array_elements): Remove
9564 bitoffset and val parameters. Call common_val_print.
9565 (ada_val_print_string): Remove offset, address, and original_value
9566 parameters.
9567 (ada_val_print_array): Update.
9568 (ada_value_print_array): New function.
9569 (ada_value_print_1): Call it.
9570
03371129
TT
95712020-03-13 Tom Tromey <tom@tromey.com>
9572
9573 * ada-valprint.c (ada_value_print): Use common_val_print.
9574
2e088f8b
TT
95752020-03-13 Tom Tromey <tom@tromey.com>
9576
9577 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9578
39ef85a8
TT
95792020-03-13 Tom Tromey <tom@tromey.com>
9580
9581 * ada-valprint.c (ada_value_print_num): New function.
9582 (ada_value_print_1): Use it.
9583
b9fa6e07
TT
95842020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9587
416595d6
TT
95882020-03-13 Tom Tromey <tom@tromey.com>
9589
9590 * ada-valprint.c (ada_value_print_ptr): New function.
9591 (ada_value_print_1): Use it.
9592
5b5e15ec
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9596 call common_val_print.
9597 (ada_val_print_1): Update.
9598 (ada_value_print_1): New function.
9599 (ada_value_print_inner): Rewrite.
9600
fbf54e75
TT
96012020-03-13 Tom Tromey <tom@tromey.com>
9602
9603 * cp-valprint.c (cp_print_value_fields): Update.
9604 (cp_print_value): New function.
9605
64b653ca
TT
96062020-03-13 Tom Tromey <tom@tromey.com>
9607
9608 * m2-valprint.c (m2_value_print_inner): Use
9609 cp_print_value_fields.
9610 * cp-valprint.c (cp_print_value_fields): New function.
9611 * c-valprint.c (c_value_print_struct): New function.
9612 (c_value_print_inner): Use c_value_print_struct.
9613 * c-lang.h (cp_print_value_fields): Declare.
9614
6999f067
TT
96152020-03-13 Tom Tromey <tom@tromey.com>
9616
9617 * c-valprint.c (c_value_print_array): New function.
9618 (c_value_print_inner): Use it.
9619
ce80b8bd
TT
96202020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * c-valprint.c (c_value_print_memberptr): New function.
9623 (c_value_print_inner): Use it.
9624
2faac269
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * c-valprint.c (c_value_print_int): New function.
9628 (c_value_print_inner): Use it.
9629
da3e2c29
TT
96302020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * c-valprint.c (c_value_print_ptr): New function.
9633 (c_value_print_inner): Use it.
9634
50836231
TT
96352020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * c-valprint.c (c_value_print_inner): Rewrite.
9638
4f412b6e
TT
96392020-03-13 Tom Tromey <tom@tromey.com>
9640
9641 * valprint.c (generic_value_print_complex): New function.
9642 (generic_value_print): Use it.
9643
f5354008
TT
96442020-03-13 Tom Tromey <tom@tromey.com>
9645
9646 * valprint.c (generic_val_print_float): Don't call
9647 val_print_scalar_formatted.
9648 (generic_val_print, generic_value_print): Update.
9649
3eec3b05
TT
96502020-03-13 Tom Tromey <tom@tromey.com>
9651
9652 * valprint.c (generic_value_print_char): New function
9653 (generic_value_print): Use it.
9654
fdddfccb
TT
96552020-03-13 Tom Tromey <tom@tromey.com>
9656
9657 * valprint.c (generic_value_print_int): New function.
9658 (generic_value_print): Use it.
9659
6dde7521
TT
96602020-03-13 Tom Tromey <tom@tromey.com>
9661
9662 * valprint.c (generic_value_print_bool): New function.
9663 (generic_value_print): Use it.
9664
4112d2e6
TT
96652020-03-13 Tom Tromey <tom@tromey.com>
9666
9667 * valprint.c (generic_val_print_func): Simplify.
9668 (generic_val_print, generic_value_print): Update.
9669
65786af6
TT
96702020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * valprint.c (generic_val_print_flags): Remove.
9673 (generic_val_print, generic_value_print): Update.
9674 (val_print_type_code_flags): Add original_value parameter.
9675
40f3ce18
TT
96762020-03-13 Tom Tromey <tom@tromey.com>
9677
9678 * valprint.c (generic_val_print): Update.
9679 (generic_value_print): Update.
9680 * valprint.c (generic_val_print_enum): Don't call
9681 val_print_scalar_formatted.
9682
2a5b130b
TT
96832020-03-13 Tom Tromey <tom@tromey.com>
9684
9685 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9686 * valprint.c (generic_value_print_ptr): New function.
9687
abc66ce9
TT
96882020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * valprint.c (generic_value_print): Rewrite.
9691
07a32858
TT
96922020-03-13 Tom Tromey <tom@tromey.com>
9693
9694 * p-valprint.c (pascal_object_print_value_fields)
9695 (pascal_object_print_value): New functions.
9696
64d64d3a
TT
96972020-03-13 Tom Tromey <tom@tromey.com>
9698
9699 * p-valprint.c (pascal_value_print_inner): Rewrite.
9700
6a95a1f5
TT
97012020-03-13 Tom Tromey <tom@tromey.com>
9702
9703 * f-valprint.c (f_value_print_innner): Rewrite.
9704
59fcdac6
TT
97052020-03-13 Tom Tromey <tom@tromey.com>
9706
9707 * m2-valprint.c (m2_print_unbounded_array): New overload.
9708 (m2_print_unbounded_array): Update.
9709 (m2_print_array_contents): Take a struct value.
9710 (m2_value_print_inner): Rewrite.
9711
d133c3e1
TT
97122020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9715 (d_value_print_inner): New function.
9716 * d-lang.h (d_value_print_inner): Declare.
9717 * d-lang.c (d_language_defn): Use d_value_print_inner.
9718
23b0f06b
TT
97192020-03-13 Tom Tromey <tom@tromey.com>
9720
9721 * go-valprint.c (go_value_print_inner): New function.
9722 * go-lang.h (go_value_print_inner): Declare.
9723 * go-lang.c (go_language_defn): Use go_value_print_inner.
9724
5f56f7cb
TT
97252020-03-13 Tom Tromey <tom@tromey.com>
9726
9727 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9728 API.
9729 (rust_val_print): Rewrite.
9730 (rust_value_print_inner): New function, from rust_val_print.
9731 (rust_language_defn): Use rust_value_print_inner.
9732
26792ee0
TT
97332020-03-13 Tom Tromey <tom@tromey.com>
9734
9735 * ada-valprint.c (ada_value_print_inner): New function.
9736 * ada-lang.h (ada_value_print_inner): Declare.
9737 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9738
24051bbe
TT
97392020-03-13 Tom Tromey <tom@tromey.com>
9740
9741 * f-valprint.c (f_value_print_innner): New function.
9742 * f-lang.h (f_value_print_innner): Declare.
9743 * f-lang.c (f_language_defn): Use f_value_print_innner.
9744
c0941be6
TT
97452020-03-13 Tom Tromey <tom@tromey.com>
9746
9747 * p-valprint.c (pascal_value_print_inner): New function.
9748 * p-lang.h (pascal_value_print_inner): Declare.
9749 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9750
62c4663d
TT
97512020-03-13 Tom Tromey <tom@tromey.com>
9752
9753 * m2-valprint.c (m2_value_print_inner): New function.
9754 * m2-lang.h (m2_value_print_inner): Declare.
9755 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9756
62182190
TT
97572020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9760 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9761 * c-valprint.c (c_value_print_inner): New function.
9762 * c-lang.h (c_value_print_inner): Declare.
9763 * c-lang.c (c_language_defn, cplus_language_defn)
9764 (asm_language_defn, minimal_language_defn): Use
9765 c_value_print_inner.
9766
1e592a8a
TT
97672020-03-13 Tom Tromey <tom@tromey.com>
9768
9769 * p-valprint.c (pascal_object_print_value_fields): Now static.
9770 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9771
7fe471e9
TT
97722020-03-13 Tom Tromey <tom@tromey.com>
9773
9774 * c-valprint.c (c_val_print_array): Simplify.
9775
d121c6ce
TT
97762020-03-13 Tom Tromey <tom@tromey.com>
9777
9778 * valprint.c (value_print_array_elements): New function.
9779 * valprint.h (value_print_array_elements): Declare.
9780
4dba70ee
TT
97812020-03-13 Tom Tromey <tom@tromey.com>
9782
9783 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9784 * mips-tdep.c (mips_print_register): Use
9785 value_print_scalar_formatted.
9786
4f9ae810
TT
97872020-03-13 Tom Tromey <tom@tromey.com>
9788
9789 * valprint.h (value_print_scalar_formatted): Declare.
9790 * valprint.c (value_print_scalar_formatted): New function.
9791
156bfec9
TT
97922020-03-13 Tom Tromey <tom@tromey.com>
9793
9794 * valprint.h (generic_value_print): Declare.
9795 * valprint.c (generic_value_print): New function.
9796
2b4e573d
TT
97972020-03-13 Tom Tromey <tom@tromey.com>
9798
9799 * valprint.c (do_val_print): Call la_value_print_inner, if
9800 available.
9801 * rust-lang.c (rust_language_defn): Update.
9802 * p-lang.c (pascal_language_defn): Update.
9803 * opencl-lang.c (opencl_language_defn): Update.
9804 * objc-lang.c (objc_language_defn): Update.
9805 * m2-lang.c (m2_language_defn): Update.
9806 * language.h (struct language_defn) <la_value_print_inner>: New
9807 member.
9808 * language.c (unknown_language_defn, auto_language_defn): Update.
9809 * go-lang.c (go_language_defn): Update.
9810 * f-lang.c (f_language_defn): Update.
9811 * d-lang.c (d_language_defn): Update.
9812 * c-lang.c (c_language_defn, cplus_language_defn)
9813 (asm_language_defn, minimal_language_defn): Update.
9814 * ada-lang.c (ada_language_defn): Update.
9815
a1f6a07c
TT
98162020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * c-valprint.c (c_value_print): Use common_val_print.
9819
410cf315
TT
98202020-03-13 Tom Tromey <tom@tromey.com>
9821
9822 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9823
72a45c93
TT
98242020-03-13 Tom Tromey <tom@tromey.com>
9825
9826 * f-valprint.c (f77_print_array_1, f_val_print): Use
9827 common_val_print.
9828
040f66bd
TT
98292020-03-13 Tom Tromey <tom@tromey.com>
9830
9831 * riscv-tdep.c (riscv_print_one_register_info): Use
9832 common_val_print.
9833
a6e05a6c
TT
98342020-03-13 Tom Tromey <tom@tromey.com>
9835
9836 * mi/mi-main.c (output_register): Use common_val_print.
9837
3444c526
TT
98382020-03-13 Tom Tromey <tom@tromey.com>
9839
9840 * infcmd.c (default_print_one_register_info): Use
9841 common_val_print.
9842
c2a44efe
TT
98432020-03-13 Tom Tromey <tom@tromey.com>
9844
9845 * valprint.h (common_val_print_checked): Declare.
9846 * valprint.c (common_val_print_checked): New function.
9847 * stack.c (print_frame_arg): Use common_val_print_checked.
9848
b0c26e99
TT
98492020-03-13 Tom Tromey <tom@tromey.com>
9850
9851 * valprint.c (do_val_print): New function, from val_print.
9852 (val_print): Use do_val_print.
9853 (common_val_print): Use do_val_print.
9854
ce3acbe9
TT
98552020-03-13 Tom Tromey <tom@tromey.com>
9856
9857 * valprint.c (value_print): Use scoped_value_mark.
9858
96c7f873
TV
98592020-03-13 Tom de Vries <tdevries@suse.de>
9860
9861 PR symtab/25646
9862 * psymtab.c (partial_symtab::partial_symtab): Don't set
9863 globals_offset and statics_offset. Push element onto
9864 current_global_psymbols and current_static_psymbols stacks.
9865 (concat): New function.
9866 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9867 element from current_global_psymbols and current_static_psymbols
9868 stacks. Concat popped elements to global_psymbols and
9869 static_symbols.
9870 (add_psymbol_to_list): Use current_global_psymbols and
9871 current_static_psymbols stacks.
9872 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9873 current_static_psymbols fields.
9874
6ba0a321
CB
98752020-03-12 Christian Biesinger <cbiesinger@google.com>
9876
9877 * corelow.c (sniff_core_bfd): Remove.
9878 (class core_target) <m_core_vec>: Remove.
9879 (core_target::core_target): Update.
9880 (core_file_fns): Remove.
9881 (deprecated_add_core_fns): Remove.
9882 (default_core_sniffer): Remove.
9883 (sniff_core_bfd): Remove.
9884 (default_check_format): Remove.
9885 (gdb_check_format): Remove.
9886 (core_target_open): Update.
9887 (core_target::get_core_register_section): Update.
9888 (get_core_registers_cb): Update.
9889 (core_target::fetch_registers): Update.
9890 * gdbcore.h (struct core_fns): Remove.
9891 (deprecated_add_core_fns): Remove.
9892 (default_core_sniffer): Remove.
9893 (default_check_format): Remove.
9894
227031b2
TT
98952020-03-12 Tom Tromey <tom@tromey.com>
9896
9897 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9898 CORE_ADDR.
9899 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9900
53807e9f
TT
99012020-03-12 Tom Tromey <tom@tromey.com>
9902
9903 * remote.c (remote_target::download_tracepoint)
9904 (remote_target::enable_tracepoint)
9905 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9906 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9907 sprintf_vma.
9908
64f25102
TT
99092020-03-12 Tom Tromey <tom@tromey.com>
9910
9911 * symfile-mem.c: Update CORE_ADDR size assert.
9912
272cd5a3
SM
99132020-03-12 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * selftest.m4: Move to gdbsupport/.
9916 * acinclude.m4: Update path to selftest.m4.
9917
74cd3f9d
SM
99182020-03-12 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9921 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9922 gdbarch-selfselftests.c and selftest-arch.c.
9923 (SUBDIR_UNITTESTS_OBS): Rename to...
9924 (SELFTESTS_OBS): ... this.
9925 (COMMON_SFILES): Remove disasm-selftests.c and
9926 gdbarch-selftests.c.
9927 * configure.ac: Don't add selftest-arch.{c,o} to
9928 CONFIG_{SRCS,OBS}.
9929 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9930 preprocessor conditions.
9931
db6878ac
SM
99322020-03-12 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * configure.ac: Don't source bfd/development.sh.
9935 * selftest.m4: Modify comment.
9936 * configure: Re-generate.
9937
4d696a5c
SM
99382020-03-12 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9941 not "true" or "false".
9942 * configure: Re-generate.
9943
8dd8e1c7
CB
99442020-03-12 Christian Biesinger <cbiesinger@google.com>
9945
9946 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9947 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9948 renamed to arm_nbsd_supply_gregset.
9949 (fetch_register): Update to call arm_nbsd_supply_gregset.
9950 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9951 (arm_netbsd_nat_target::fetch_registers): Update.
9952 (fetch_elfcore_registers): Removed.
9953 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9954 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9955 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9956 not require NetBSD system headers.
9957 (arm_nbsd_regset): New struct.
9958 (arm_nbsd_iterate_over_regset_sections): New function.
9959 (arm_netbsd_init_abi_common): Updated to call
9960 set_gdbarch_iterate_over_regset_sections.
9961 * arm-nbsd-tdep.h: New file.
9962
dd69bf7a
KB
99632020-03-11 Kevin Buettner <kevinb@redhat.com>
9964
9965 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9966 recursion.
9967
a0761e34
SM
99682020-03-11 Simon Marchi <simon.marchi@efficios.com>
9969
9970 * configure: Re-generate.
9971
e7a82140
TT
99722020-03-11 Tom Tromey <tromey@adacore.com>
9973
9974 * ada-typeprint.c (print_choices): Fix comment.
9975
dcc050c8
AB
99762020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9979 previous item in the list, when the list has no items.
9980
1c33af77
TV
99812020-03-11 Tom de Vries <tdevries@suse.de>
9982
9983 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9984 PROP_LOCLIST handling code.
9985
8c95582d
AB
99862020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9987
9988 * buildsym-legacy.c (record_line): Pass extra parameter to
9989 record_line.
9990 * buildsym.c (buildsym_compunit::record_line): Take an extra
9991 parameter, reduce duplication in the line table, and record the
9992 is_stmt flag in the line table.
9993 * buildsym.h (buildsym_compunit::record_line): Add extra
9994 parameter.
9995 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9996 non-statement lines.
9997 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9998 this to the symtab builder.
9999 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10000 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10001 through to dwarf_record_line_1.
10002 * infrun.c (process_event_stop_test): When stepping, don't stop at
10003 a non-statement instruction, and only refresh the step info when
10004 we land in the middle of a line's range. Also add an extra
10005 comment.
10006 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10007 field.
10008 * record-btrace.c (btrace_find_line_range): Only record lines
10009 marked as is-statement.
10010 * stack.c (frame_show_address): Show the frame address if we are
10011 in a non-statement sal.
10012 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10013 (maintenance_print_one_line_table): Print a header for the is_stmt
10014 column, and include is_stmt information in the output.
10015 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10016 preference to non-statements.
10017 (find_pcs_for_symtab_line): Prefer is-statement entries.
10018 (find_line_common): Likewise.
10019 * symtab.h (struct linetable_entry): Add is_stmt field.
10020 (struct symtab_and_line): Likewise.
10021 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10022 arranging the line table.
10023
e4003a34
TV
100242020-03-07 Tom de Vries <tdevries@suse.de>
10025
10026 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10027 DIE.
10028
e8932576
TT
100292020-03-07 Tom Tromey <tom@tromey.com>
10030
10031 * valops.c (value_literal_complex): Remove obsolete comment.
10032 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10033 comment.
10034
29734269
SM
100352020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10036
10037 * infrun.h: Forward-declare thread_info.
10038 (set_step_info): Add thread_info parameter, add doc.
10039 * infrun.c (set_step_info): Add thread_info parameter, move doc
10040 to header.
10041 * infrun.c (process_event_stop_test): Pass thread to
10042 set_step_info call.
10043 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10044 set_step_info.
10045 (prepare_one_step): Add thread_info parameter, pass it to
10046 set_step_frame and prepare_one_step (recursive) call.
10047 (step_1): Pass thread to prepare_one_step call.
10048 (step_command_fsm::should_stop): Pass thread to
10049 prepare_one_step.
10050 (until_next_fsm): Pass thread to set_step_frame call.
10051 (finish_command): Pass thread to set_step_info call.
10052
b7d64b29
HD
100532020-03-06 Hannes Domani <ssbssa@yahoo.de>
10054
10055 * windows-tdep.c (windows_solib_create_inferior_hook):
10056 Check if inferior is running.
10057
09f2921c
TV
100582020-03-06 Tom de Vries <tdevries@suse.de>
10059
10060 * NEWS: Fix "the the".
10061 * ctfread.c: Same.
10062
fd760e79
TV
100632020-03-06 Tom de Vries <tdevries@suse.de>
10064
10065 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10066
20ea4a60
AB
100672020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10068
10069 * .dir-locals.el: Add a comment referencing the other copies of
10070 this file.
10071
0afbabf0
JB
100722020-03-05 John Baldwin <jhb@FreeBSD.org>
10073
10074 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10075 psargs.
10076
842806cb
TBA
100772020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10078
10079 * .gitattributes: New file.
10080
be1e3d3e
TT
100812020-03-04 Tom Tromey <tom@tromey.com>
10082
10083 * symmisc.c (print_symbol_bcache_statistics)
10084 (print_objfile_statistics): Update.
10085 * symfile.c (allocate_symtab): Use intern.
10086 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10087 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10088 macro_cache>: Remove.
10089 <string_cache>: New member.
10090 (struct objfile) <intern>: New methods.
10091 * elfread.c (elf_symtab_read): Use intern.
10092 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10093 (dwarf2_compute_name, dwarf2_physname)
10094 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10095 names.
10096 (guess_partial_die_structure_name): Update.
10097 (partial_die_info::fixup): Intern name.
10098 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10099 name.
10100 (dwarf2_name): Intern name. Update.
10101 * buildsym.c (buildsym_compunit::get_macro_table): Use
10102 string_cache.
10103
4e7625fd
TT
101042020-03-04 Tom Tromey <tom@tromey.com>
10105
10106 * jit.c (bfd_open_from_target_memory): Make "target" const.
10107 * corefile.c (gnutarget): Now const.
10108 * gdbcore.h (gnutarget): Now const.
10109
46f9f931
HD
101102020-03-04 Hannes Domani <ssbssa@yahoo.de>
10111
10112 * NEWS: Mention support for WOW64 processes.
10113 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10114 (amd64_windows_segment_register_p): Remove static.
10115 (_initialize_amd64_windows_nat): Update.
10116 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10117 * i386-windows-nat.c (context_offset): Update.
10118 (i386_mappings): Rename and remove static.
10119 (i386_windows_segment_register_p): Remove static.
10120 (_initialize_i386_windows_nat): Update.
10121 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10122 (STATUS_WX86_SINGLE_STEP): New macro.
10123 (EnumProcessModulesEx): New macro.
10124 (Wow64SuspendThread): New macro.
10125 (Wow64GetThreadContext): New macro.
10126 (Wow64SetThreadContext): New macro.
10127 (Wow64GetThreadSelectorEntry): New macro.
10128 (windows_set_context_register_offsets): Add static.
10129 (windows_set_segment_register_p): Likewise.
10130 (windows_add_thread): Adapt for WOW64 processes.
10131 (windows_fetch_one_register): Likewise.
10132 (windows_nat_target::fetch_registers): Likewise.
10133 (windows_store_one_register): Likewise.
10134 (display_selector): Likewise.
10135 (display_selectors): Likewise.
10136 (handle_exception): Likewise.
10137 (windows_continue): Likewise.
10138 (windows_nat_target::resume): Likewise.
10139 (windows_add_all_dlls): Likewise.
10140 (do_initial_windows_stuff): Likewise.
10141 (windows_nat_target::attach): Likewise.
10142 (windows_get_exec_module_filename): Likewise.
10143 (windows_nat_target::create_inferior): Likewise.
10144 (windows_xfer_siginfo): Likewise.
10145 (_initialize_loadable): Initialize Wow64SuspendThread,
10146 Wow64GetThreadContext, Wow64SetThreadContext,
10147 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10148 * windows-nat.h (windows_set_context_register_offsets):
10149 Remove declaration.
10150 (windows_set_segment_register_p): Likewise.
10151 (i386_windows_segment_register_p): Add declaration.
10152 (amd64_windows_segment_register_p): Likewise.
10153
440cf44e
LM
101542020-03-04 Luis Machado <luis.machado@linaro.org>
10155
10156 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10157 in "info registers" for AArch64/ARM.
10158
10159 The change caused "info registers" to not print GPR's.
10160
10161 gdb/ChangeLog:
10162
10163 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10164
10165 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10166 when reg->group is empty and reggroup is not.
10167
1009d92f
TT
101682020-03-03 Tom Tromey <tromey@adacore.com>
10169
10170 * dwarf2/frame.c (struct dwarf2_frame_cache)
10171 <checked_tailcall_bottom, entry_cfa_sp_offset,
10172 entry_cfa_sp_offset_p>: Remove members.
10173 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10174 (dwarf2_frame_prev_register): Don't call
10175 dwarf2_tailcall_sniffer_first.
10176 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10177 * frame-unwind.c (add_unwinder): New fuction.
10178 (frame_unwind_init): Use it. Add tailcall unwinder.
10179
5e5d66b6
AB
101802020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10181 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10182
10183 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10184 value should be printed as true.
10185
584cf46d
HD
101862020-03-03 Hannes Domani <ssbssa@yahoo.de>
10187
10188 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10189 (windows_init_abi): Set and use windows_so_ops.
10190
7b973adc
SDJ
101912020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10192
10193 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10194 when verifying if dealing with a convenience variable.
10195
bb7b70ab
LM
101962020-03-03 Luis Machado <luis.machado@linaro.org>
10197
10198 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10199
9822cb57
SM
102002020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 * infrun.c (gdbarch_supports_displaced_stepping): New.
10203 (use_displaced_stepping): Break up conditions in smaller pieces.
10204 Use gdbarch_supports_displaced_stepping.
10205 (displaced_step_prepare_throw): Use
10206 gdbarch_supports_displaced_stepping.
10207
63e163f2
AB
102082020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10209
10210 * NEWS: Mention new behaviour of the history filename.
10211 * top.c (write_history_p): Add comment.
10212 (show_write_history_p): Add header comment, give a different
10213 message when history writing is on, but the history filename is
10214 empty.
10215 (history_filename): Add comment.
10216 (history_filename_empty): New function.
10217 (show_history_filename): Add header comment, give a different
10218 message when the filename is empty.
10219 (init_history): Compare history_filename against nullptr, and only
10220 read history if the filename is not empty.
10221 (set_history_filename): Add header comment, and only make
10222 non-empty filenames absolute.
10223 (init_main): Make the filename argument to 'set history filename'
10224 optional.
10225
81b86b97
CB
102262020-03-02 Christian Biesinger <cbiesinger@google.com>
10227
10228 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10229 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10230 (fetch_fp_register): Update.
10231 (fetch_fp_regs): Update.
10232 (store_fp_register): Update.
10233 (store_fp_regs): Update.
10234 (arm_netbsd_nat_target::read_description): New function.
10235 (fetch_elfcore_registers): Update.
10236
24ed6739
AB
102372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10238
10239 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10240 general_thread if the stop reply is missing a thread-id.
10241 (remote_target::process_stop_reply): Use the first non-exited
10242 thread if the target didn't pass a thread-id.
10243 * infrun.c (do_target_wait): Move call to
10244 switch_to_inferior_no_thread to ....
10245 (do_target_wait_1): ... here.
10246
a84bb2a0
JT
102472020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10248
10249 * debuginfod-support.c: Include defs.h first.
10250
658dadf0
TV
102512020-02-28 Tom de Vries <tdevries@suse.de>
10252
10253 * symfile.c (set_initial_language): Use default language for lookup.
10254
4ebe4877
SM
102552020-02-28 Simon Marchi <simon.marchi@efficios.com>
10256
10257 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10258 reader variable, pass `this` to read_cutu_die_from_dwo.
10259
e5da1139
AM
102602020-02-27 Aaron Merey <amerey@redhat.com>
10261
10262 * source.c (open_source_file): Check for nullptr when computing
10263 srcpath.
10264
317f7127
TT
102652020-02-27 Tom Tromey <tromey@adacore.com>
10266
10267 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10268 member.
10269 (dwarf2_add_field): Don't update nfields.
10270 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10271
3104d9ee
AB
102722020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10275 abs.
10276
b83470bf
TT
102772020-02-26 Tom Tromey <tom@tromey.com>
10278
10279 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10280 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10281 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10282 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10283 per_cu_data.
10284
edfe0a0c
TT
102852020-02-26 Tom Tromey <tom@tromey.com>
10286
10287 * dwarf2/index-write.c (psym_index_map): Change type.
10288 (add_address_entry_worker, write_one_signatured_type)
10289 (recursively_count_psymbols, recursively_write_psymbols)
10290 (class debug_names, psyms_seen_size, write_gdbindex)
10291 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10292
0d79cdc4
AM
102932020-02-26 Aaron Merey <amerey@redhat.com>
10294
10295 * Makefile.in: Handle optional debuginfod support.
10296 * NEWS: Update.
10297 * README: Add --with-debuginfod summary.
10298 * config.in: Regenerate.
10299 * configure: Regenerate.
10300 * configure.ac: Handle optional debuginfod support.
10301 * debuginfod-support.c: debuginfod helper functions.
10302 * debuginfod-support.h: Ditto.
10303 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10304 summary.
10305 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10306 when a dwz file cannot be found.
10307 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10308 debuginfo file cannot be found.
10309 * source.c (open_source_file): Query debuginfod servers when a
10310 source file cannot be found.
10311 * top.c (print_gdb_configuration): Include
10312 --{with,without}-debuginfod in the output.
10313
b65ce565
JG
103142020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10315
10316 * thread.c (thr_try_catch_cmd): Print thread name.
10317
d4c9a4f8
SM
103182020-02-26 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10321 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10322 dwarf2_fetch_die_type_sect_off): Move to...
10323 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10324 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10325 dwarf2_fetch_die_type_sect_off): ... here.
10326 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10327 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10328 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10329
0dce4280
TV
103302020-02-26 Tom de Vries <tdevries@suse.de>
10331
10332 PR gdb/25603
10333 * symfile.c (set_initial_language): Exit-early if
10334 language_mode == language_mode_manual.
10335
450a1bfc
SM
103362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10339 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10340 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10341
9e80cfa1
AB
103422020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10343
10344 * gdbtypes.c (create_array_type_with_stride): Handle negative
10345 array strides.
10346 * valarith.c (value_subscripted_rvalue): Likewise.
10347
09624f1f
LM
103482020-02-25 Luis Machado <luis.machado@linaro.org>
10349
10350 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10351
8cb5117c
SM
103522020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10353
10354 * loc.h (dwarf2_get_die_type): Move to...
10355 * read.h (dwarf2_get_die_type): ... here.
10356 * read.c (dwarf2_get_die_type): Move doc to header.
10357
c325c44e
JB
103582020-02-25 Joel Brobecker <brobecker@adacore.com>
10359
10360 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10361 'gnulib/Makefile.in' to the list.
10362
4ac93832
TT
103632020-02-24 Tom Tromey <tom@tromey.com>
10364
10365 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10366 Remove.
10367 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10368 XOBNEWVEC.
10369
197400e8
TT
103702020-02-24 Tom Tromey <tom@tromey.com>
10371
10372 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10373 New method.
10374 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10375 (dw2_do_instantiate_symtab, dw2_get_file_names)
10376 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10377
76935768
TT
103782020-02-24 Tom Tromey <tom@tromey.com>
10379
10380 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10381 make_scoped_restore.
10382 (dwarf2_psymtab::read_symtab): Don't clear
10383 reading_partial_symbols.
10384
a88ef40d
TV
103852020-02-24 Tom de Vries <tdevries@suse.de>
10386
10387 PR gdb/25592
10388 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10389
c9af6521
TV
103902020-02-24 Tom de Vries <tdevries@suse.de>
10391
10392 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10393 commands layout next/prev/regs.
10394
5707a07a
TT
103952020-02-22 Tom Tromey <tom@tromey.com>
10396
10397 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10398 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10399
3b0fb49e
TT
104002020-02-22 Tom Tromey <tom@tromey.com>
10401
10402 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10403
283be8bf
TT
104042020-02-22 Tom Tromey <tom@tromey.com>
10405
10406 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10407 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10408 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10409 * tui/tui.c (_initialize_tui): Add usage text.
10410
ca793b96
TT
104112020-02-22 Tom Tromey <tom@tromey.com>
10412
10413 * tui/tui-win.c (tui_set_focus_command)
10414 (tui_set_win_height_command): Use error_no_arg.
10415 (_initialize_tui_win): Update help text.
10416 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10417
432b5c40
TT
104182020-02-22 Tom Tromey <tom@tromey.com>
10419
10420 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10421 * tui/tui-disasm.h (struct tui_disasm_window)
10422 <display_start_addr>: Declare.
10423 * tui/tui-source.h (struct tui_source_window)
10424 <display_start_addr>: Declare.
10425 * tui/tui-winsource.h (struct tui_source_window_base)
10426 <show_source_line, display_start_addr>: New methods.
10427 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10428 Rename and move to protected section.
10429 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10430 (tui_source_window_base::do_erase_source_content): Update.
10431 (tui_source_window_base::show_source_line): Now a method.
10432 (tui_source_window_base::show_source_content)
10433 (tui_source_window_base::tui_source_window_base)
10434 (tui_source_window_base::rerender)
10435 (tui_source_window_base::refill)
10436 (tui_source_window_base::do_scroll_horizontal)
10437 (tui_source_window_base::set_is_exec_point_at)
10438 (tui_source_window_base::update_breakpoint_info)
10439 (tui_source_window_base::update_exec_info): Update.
10440 * tui/tui-source.c (tui_source_window::set_contents)
10441 (tui_source_window::showing_source_p)
10442 (tui_source_window::do_scroll_vertical)
10443 (tui_source_window::location_matches_p)
10444 (tui_source_window::line_is_displayed): Update.
10445 (tui_source_window::display_start_addr): New method.
10446 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10447 (tui_disasm_window::do_scroll_vertical)
10448 (tui_disasm_window::location_matches_p): Update.
10449 (tui_disasm_window::display_start_addr): New method.
10450
01b1af32
TT
104512020-02-22 Tom Tromey <tom@tromey.com>
10452
10453 * NEWS: Add entry for gdb.register_window_type.
10454 * tui/tui-layout.h (window_factory): New typedef.
10455 (tui_register_window): Declare.
10456 * tui/tui-layout.c (saved_tui_windows): New global.
10457 (tui_apply_current_layout): Use it.
10458 (tui_register_window): New function.
10459 * python/python.c (do_start_initialization): Call
10460 gdbpy_initialize_tui.
10461 (python_GdbMethods): Add "register_window_type" function.
10462 * python/python-internal.h (gdbpy_register_tui_window)
10463 (gdbpy_initialize_tui): Declare.
10464 * python/py-tui.c: New file.
10465 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10466
fc96d20b
TT
104672020-02-22 Tom Tromey <tom@tromey.com>
10468
10469 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10470
935c78c0
TT
104712020-02-22 Tom Tromey <tom@tromey.com>
10472
10473 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10474 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10475 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10476 (tui_set_win_focus_to): Move from tui-win.c.
10477
0240c8f1
TT
104782020-02-22 Tom Tromey <tom@tromey.com>
10479
10480 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10481 functions.
10482 (known_window_types): New global.
10483 (tui_get_window_by_name): Reimplement.
10484 (initialize_known_windows): New function.
10485 (validate_window_name): Rewrite.
10486 (_initialize_tui_layout): Call initialize_known_windows.
10487
fdb01f0c
TT
104882020-02-22 Tom Tromey <tom@tromey.com>
10489
10490 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10491 Remove constants.
10492 * tui/tui-winsource.h (struct tui_source_window_base)
10493 <tui_source_window_base>: Remove parameter.
10494 * tui/tui-winsource.c
10495 (tui_source_window_base::tui_source_window_base): Remove
10496 parameter.
10497 (tui_source_window_base::refill): Update.
10498 * tui/tui-stack.h (struct tui_locator_window)
10499 <tui_locator_window>: Update.
10500 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10501 Default the constructor.
10502 * tui/tui-regs.h (struct tui_data_item_window)
10503 <tui_data_item_window>: Default the constructor.
10504 (struct tui_data_window) <tui_data_window>: Likewise.
10505 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10506 Default the constructor.
10507 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10508 Default the constructor.
10509 <type>: Remove.
10510 (struct tui_win_info) <tui_win_info>: Default the constructor.
10511 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10512 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10513 Default the constructor.
10514
865a5aec
TT
105152020-02-22 Tom Tromey <tom@tromey.com>
10516
10517 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10518 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10519 * tui/tui-win.c (tui_resize_all): Don't call
10520 tui_delete_invisible_windows.
10521 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10522 done.
10523 (tui_set_layout): Update.
10524 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10525 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10526 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10527
e098d18c
TT
105282020-02-22 Tom Tromey <tom@tromey.com>
10529
10530 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10531 correctly.
10532
eb9c8874
TT
105332020-02-22 Tom Tromey <tom@tromey.com>
10534
10535 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10536
7eed1a8e
TT
105372020-02-22 Tom Tromey <tom@tromey.com>
10538
10539 * tui/tui-winsource.h (struct tui_source_window_iterator)
10540 <inner_iterator>: New etytypedef.
10541 <tui_source_window_iterator>: Take "end" parameter.
10542 <tui_source_window_iterator>: Take iterator.
10543 <operator*, advance>: Update.
10544 <m_iter>: Change type.
10545 <m_end>: New field.
10546 (struct tui_source_windows) <begin, end>: Update.
10547 * tui/tui-layout.c (tui_windows): New global.
10548 (tui_apply_current_layout): Clear tui_windows.
10549 (tui_layout_window::apply): Update tui_windows.
10550 * tui/tui-data.h (tui_windows): Declare.
10551 (all_tui_windows): Now inline function.
10552 (class tui_window_iterator, struct all_tui_windows): Remove.
10553
7c043ba6
TT
105542020-02-22 Tom Tromey <tom@tromey.com>
10555
10556 PR tui/17850:
10557 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10558 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10559 "height" argument.
10560 (class tui_layout_window) <get_sizes>: Likewise.
10561 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10562 argument.
10563 <get_sizes>: Add "height" argument.
10564 <m_vertical>: New field.
10565 * tui/tui-layout.c (tui_layout_split::clone): Update.
10566 (tui_layout_split::get_sizes): Add "height" argument.
10567 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10568 (tui_new_layout_command): Parse "-horizontal".
10569 (_initialize_tui_layout): Update help string.
10570 (tui_layout_split::specification): Add "-horizontal" when needed.
10571 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10572 argument.
10573 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10574 New methods.
10575
6bc56648
TT
105762020-02-22 Tom Tromey <tom@tromey.com>
10577
10578 * tui/tui-layout.h (enum tui_adjust_result): New.
10579 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10580 (class tui_layout_window) <adjust_size>: Return
10581 tui_adjust_result. Rewrite.
10582 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10583 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10584
c22fef7e
TT
105852020-02-22 Tom Tromey <tom@tromey.com>
10586
10587 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10588 parameter and return types.
10589 (class tui_layout_base) <specification>: Add "depth".
10590 (class tui_layout_window) <specification>: Add "depth".
10591 (class tui_layout_split) <specification>: Add "depth".
10592 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10593 and return types.
10594 (tui_new_layout_command): Parse sub-layouts.
10595 (_initialize_tui_layout): Update help string.
10596 (tui_layout_window::specification): Add "depth".
10597 (add_layout_command): Update.
10598
ee325b61
TT
105992020-02-22 Tom Tromey <tom@tromey.com>
10600
10601 * NEWS: Add "tui new-layout" item.
10602 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10603 Add new-layout command to help text.
10604 (validate_window_name): New function.
10605 (tui_new_layout_command): New function.
10606 (_initialize_tui_layout): Register "new-layout".
10607 (tui_layout_window::specification): New method.
10608 (tui_layout_window::specification): New method.
10609 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10610 method.
10611 (class tui_layout_window) <specification>: New method.
10612 (class tui_layout_split) <specification>: New method.
10613
416eb92d
TT
106142020-02-22 Tom Tromey <tom@tromey.com>
10615
10616 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10617 * tui/tui-win.c (window_name_completer): Update comment.
10618 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10619 Declare method.
10620 (class tui_layout_window) <replace_window>: Likewise.
10621 (class tui_layout_split) <replace_window>: Likewise.
10622 (tui_set_layout): Don't declare.
10623 (tui_set_initial_layout): Declare function.
10624 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10625 (asm_regs_layout): New globals.
10626 (tui_current_layout, show_layout): Remove.
10627 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10628 (find_layout, tui_apply_layout): New function.
10629 (layout_completer): Remove.
10630 (tui_next_layout): Reimplement.
10631 (tui_next_layout_command): New function.
10632 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10633 (tui_regs_layout): Reimplement.
10634 (tui_regs_layout_command): New function.
10635 (extract_display_start_addr): Rewrite.
10636 (next_layout, prev_layout): Remove.
10637 (tui_layout_window::replace_window): New method.
10638 (tui_layout_split::replace_window): New method.
10639 (destroy_layout): New function.
10640 (layout_list): New global.
10641 (add_layout_command): New function.
10642 (initialize_layouts): Update.
10643 (tui_layout_command): New function.
10644 (_initialize_tui_layout): Install "layout" commands.
10645 * tui/tui-data.h (enum tui_layout_type): Remove.
10646 (tui_current_layout): Don't declare.
10647
0dbc2fc7
TT
106482020-02-22 Tom Tromey <tom@tromey.com>
10649
10650 * tui/tui-regs.c (tui_reg_layout): Remove.
10651 (tui_reg_command): Use tui_regs_layout.
10652 * tui/tui-layout.h (tui_reg_command): Declare.
10653 * tui/tui-layout.c (tui_reg_command): New function.
10654
5afe342e
TT
106552020-02-22 Tom Tromey <tom@tromey.com>
10656
10657 * tui/tui.c (tui_rl_delete_other_windows): Call
10658 tui_remove_some_windows.
10659 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10660 Declare method.
10661 (class tui_layout_window) <remove_windows>: New method.
10662 (class tui_layout_split) <remove_windows>: Declare.
10663 (tui_remove_some_windows): Declare.
10664 * tui/tui-layout.c (tui_remove_some_windows): New function.
10665 (tui_layout_split::remove_windows): New method.
10666
427326a8
TT
106672020-02-22 Tom Tromey <tom@tromey.com>
10668
10669 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10670 * tui/tui-layout.h (tui_next_layout): Declare.
10671 * tui/tui-layout.c (tui_next_layout): New function.
10672
3fe12b6d
TT
106732020-02-22 Tom Tromey <tom@tromey.com>
10674
10675 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10676 correct coordinates.
10677
59b8b5d2
TT
106782020-02-22 Tom Tromey <tom@tromey.com>
10679
10680 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10681 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10682 DATA_WIN case.
10683
2a3d458b
TT
106842020-02-22 Tom Tromey <tom@tromey.com>
10685
10686 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10687 TUI_DISASM_WIN, not tui_win_list.
10688
3f0cbb04
TT
106892020-02-22 Tom Tromey <tom@tromey.com>
10690
10691 * valprint.c (generic_val_print_enum_1)
10692 (val_print_type_code_flags): Style member names.
10693 * rust-lang.c (val_print_struct, rust_print_enum)
10694 (rust_print_struct_def, rust_internal_print_type): Style member
10695 names.
10696 * p-valprint.c (pascal_object_print_value_fields): Style member
10697 names. Only call fprintf_symbol_filtered for static members.
10698 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10699 * f-valprint.c (f_val_print): Style member names.
10700 * f-typeprint.c (f_type_print_base): Style member names.
10701 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10702 call fprintf_symbol_filtered for static members.
10703 (cp_print_class_member): Style member names.
10704 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10705 member names.
10706 * ada-valprint.c (ada_print_scalar): Style enum names.
10707 (ada_val_print_enum): Likewise.
10708 * ada-typeprint.c (print_enum_type): Style enum names.
10709
d4d947ae
TT
107102020-02-21 Tom Tromey <tom@tromey.com>
10711
10712 * psympriv.h (struct partial_symtab): Update comment.
10713
e94e944b
TT
107142020-02-21 Tom Tromey <tromey@adacore.com>
10715
10716 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10717 type is CORE_ADDR.
10718
1eb73179
TV
107192020-02-21 Tom de Vries <tdevries@suse.de>
10720
10721 PR gdb/25534
10722 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10723 if dependencies[i]->user != NULL.
10724
4f180d53
AT
107252020-02-21 Ali Tamur <tamur@google.com>
10726
10727 * dwarf2/read.c (dwarf2_name): Add null check.
10728
22b6cd70
TT
107292020-02-20 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10732 ">=", in binary search.
10733 (dwarf2_find_containing_comp_unit): New overload.
10734 (run_test): New self-test.
10735 (_initialize_dwarf2_read): Register new test.
10736
bd0cf5a6
NC
107372020-02-20 Nelson Chu <nelson.chu@sifive.com>
10738
10739 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10740 * riscv-tdep.h: Likewise.
10741 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10742 rv32-only CSR.
10743 * features/riscv/64bit-csr.xml: Regenerated.
10744
3f702acd
SDJ
107452020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10746 Tom Tromey <tom@tromey.com>
10747
10748 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10749 of 'fputc_unfiltered'.
10750 (putchar_unfiltered): Call 'fputc_unfiltered'.
10751 (fputc_unfiltered): Call 'fputs_unfiltered'.
10752
d13c7322
AB
107532020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * config.in: Regenerate.
10756 * configure: Regenerate.
10757 * configure.ac: Add --with-python-libdir option.
10758 * main.c: Use WITH_PYTHON_LIBDIR.
10759
869d8950
TT
107602020-02-19 Tom Tromey <tom@tromey.com>
10761
10762 * symtab.c (general_symbol_info::compute_and_set_names): Use
10763 obstack_strndup. Simplify call to symbol_set_demangled_name.
10764
298e9637
SM
107652020-02-19 Simon Marchi <simon.marchi@efficios.com>
10766
10767 * dwarf2/read.c (allocate_signatured_type_table,
10768 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10769 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10770 Remove objfile parameter, update all callers.
10771
08410482
DE
107722020-02-19 Doug Evans <dje@google.com>
10773
10774 PR rust/25535
10775 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10776 rust_enum_variant calculation.
10777
dfdeeca1
TT
107782020-02-19 Tom Tromey <tromey@adacore.com>
10779
10780 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10781
2ef5453b
TT
107822020-02-19 Tom Tromey <tromey@adacore.com>
10783
10784 * ada-lang.c (cache_symbol): Use obstack_strdup.
10785
9f1528a1
AB
107862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * configure: Regenerate.
10789
d3c22fa8
TT
107902020-02-19 Tom Tromey <tromey@adacore.com>
10791
10792 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10793 NULL check.
10794
bf84f706
MR
107952020-02-19 Maciej W. Rozycki <macro@wdc.com>
10796
10797 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10798
d1c9b20f
AB
107992020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10802 if GDBSERVER is not defined.
10803 (riscv_tdesc_cache): Likewise, also store const target_desc.
10804 (STATIC_IN_GDB): Define.
10805 (riscv_create_target_description): Update declaration with
10806 STATIC_IN_GDB.
10807 (riscv_lookup_target_description): New function, only define if
10808 GDBSERVER is not defined.
10809 * arch/riscv.h (riscv_create_target_description): Declare only
10810 when GDBSERVER is defined.
10811 (riscv_lookup_target_description): New declaration when GDBSERVER
10812 is not defined.
10813 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10814 (riscv_linux_read_features): ...this, and return
10815 riscv_gdbarch_features instead of target_desc.
10816 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10817 (riscv_linux_read_description): Rename to...
10818 (riscv_linux_read_features): ...this.
10819 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10820 Update to use riscv_gdbarch_features and
10821 riscv_lookup_target_description.
10822 * riscv-tdep.c (riscv_find_default_target_description): Use
10823 riscv_lookup_target_description instead of
10824 riscv_create_target_description.
10825
373d7ac0
SM
108262020-02-18 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * valprint.c (generic_val_print_enum_1): When printing a flag
10829 enum with value 0 and there is no enumerator with value 0, print
10830 just "0" instead of "(unknown: 0x0)".
10831
b29a2df0
SM
108322020-02-18 Simon Marchi <simon.marchi@efficios.com>
10833
10834 * valprint.c (generic_val_print_enum_1): Print unknown part of
10835 flag enum in hex.
10836
6740f0cc
SM
108372020-02-18 Simon Marchi <simon.marchi@efficios.com>
10838
10839 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10840 flag enums to contain duplicate enumerators.
10841 * valprint.c (generic_val_print_enum_1): Update comment.
10842
edd45eb0
SM
108432020-02-18 Simon Marchi <simon.marchi@efficios.com>
10844
10845 * dwarf2/read.c: Include "count-one-bits.h".
10846 (update_enumeration_type_from_children): If an enumerator has
10847 multiple bits set, don't treat the enumeration as a "flag enum".
10848 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10849 of flag enums have 0 or 1 bit set.
10850
6d0cf446
BE
108512020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10852
10853 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10854 conversion.
10855 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10856 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10857 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10858 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10859 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10860
7001c1b7
SM
108612020-02-18 Simon Marchi <simon.marchi@efficios.com>
10862
10863 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10864
fdb61c6c
SM
108652020-02-14 Simon Marchi <simon.marchi@efficios.com>
10866
10867 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10868 displaced_step_closure_up.
10869 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10870 (struct displaced_step_closure_up):
10871 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10872 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10873 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10874 Likewise.
10875 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10876 * gdbarch.c, gdbarch.h: Re-generate.
10877 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10878 displaced_step_closure_up.
10879 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10880 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10881 * infrun.h (displaced_step_closure_up): New type alias.
10882 (struct displaced_step_inferior_state) <step_closure>: Change
10883 type to displaced_step_closure_up.
10884 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10885 displaced_step_closure_up.
10886 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10887
a4a38eb4
TT
108882020-02-14 Tom Tromey <tom@tromey.com>
10889
10890 * minidebug.c (gnu_debug_key): New global.
10891 (find_separate_debug_file_in_section): Use it.
10892
e8217e61
SM
108932020-02-14 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10896 std::unique_ptr.
10897 * gdbarch.c: Re-generate.
10898 * gdbarch.h: Re-generate.
10899 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10900 change.
10901 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10902 type to std::unique_ptr.
10903 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10904 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10905 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10906 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10907 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10908 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10909 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10910 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10911 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10912
d8d83535
SM
109132020-02-14 Simon Marchi <simon.marchi@efficios.com>
10914
10915 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10916 std::unique_ptr.
10917 (displaced_step_clear): Rename to...
10918 (displaced_step_reset): ... this. Just call displaced->reset ().
10919 (displaced_step_clear_cleanup): Rename to...
10920 (displaced_step_reset_cleanup): ... this.
10921 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10922 (displaced_step_fixup): Likewise.
10923 (resume_1): Likewise.
10924 (handle_inferior_event): Restore child's memory before calling
10925 displaced_step_fixup on the parent.
10926 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10927 to std::unique_ptr.
10928 <step_closure>: Change type to std::unique_ptr.
10929
5f661e03
SM
109302020-02-14 Simon Marchi <simon.marchi@efficios.com>
10931
10932 * arm-tdep.c: Include count-one-bits.h.
10933 (cleanup_block_store_pc): Use count_one_bits.
10934 (cleanup_block_load_pc): Use count_one_bits.
10935 (arm_copy_block_xfer): Use count_one_bits.
10936 (thumb2_copy_block_xfer): Use count_one_bits.
10937 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10938 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10939 (thumb_get_next_pcs_raw): Use count_one_bits.
10940 (arm_get_next_pcs_raw): Use count_one_bits_l.
10941 * arch/arm.c (bitcount): Remove.
10942 * arch/arm.h (bitcount): Remove.
10943
8084e579
TT
109442020-02-14 Tom Tromey <tromey@adacore.com>
10945
10946 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10947 Update.
10948 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10949 * dwarf2/loc.c (call_site_find_chain_1): Return
10950 unique_xmalloc_ptr.
10951 (call_site_find_chain): Likewise.
10952
258bf0ee
RB
109532020-02-14 Richard Biener <rguenther@suse.de>
10954
10955 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10956 on expression with division operators.
10957
f98a8458
AKS
109582020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10959
10960 * MAINTAINERS (Write After Approval): Adding myself.
10961
d1437c0e
TT
109622020-02-12 Tom Tromey <tom@tromey.com>
10963
10964 * event-loop.c (event_data, gdb_event, event_handler_func):
10965 Remove.
10966
3d4560f7
TT
109672020-02-12 Tom Tromey <tom@tromey.com>
10968
10969 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10970 (dwarf2_frame_objfile_data): Add comment.
10971 (find_comp_unit, set_comp_unit): New functions.
10972 (dwarf2_frame_find_fde): Use find_comp_unit.
10973 (dwarf2_build_frame_info): Use set_comp_unit.
10974
21982304
TT
109752020-02-12 Tom Tromey <tom@tromey.com>
10976
10977 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10978 (comp_unit): Don't initialize objfile.
10979 (execute_cfa_program): Add text_offset parameter.
10980 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10981 (dwarf2_frame_cache): Update.
10982 (dwarf2_build_frame_info): Don't set "objfile" member.
10983
4debb237
TT
109842020-02-12 Tom Tromey <tom@tromey.com>
10985
10986 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10987 (decode_frame_entry): Likewise.
10988 (dwarf2_build_frame_info): Update.
10989
0d404d44
TT
109902020-02-12 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10993 (decode_frame_entry_1): Use the comp_unit obstack.
10994
a7a3ae5c
TT
109952020-02-12 Tom Tromey <tom@tromey.com>
10996
10997 * dwarf2/frame.c (struct comp_unit): Add initializers and
10998 constructor.
10999 (dwarf2_frame_objfile_data): Store a comp_unit.
11000 (dwarf2_frame_find_fde): Update.
11001 (dwarf2_build_frame_info): Use "new".
11002
a9d65418
TT
110032020-02-12 Tom Tromey <tom@tromey.com>
11004
11005 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11006 (dwarf2_fde_table): Typedef for std::vector.
11007 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11008 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11009 (decode_frame_entry): Update.
11010 (dwarf2_build_frame_info): Use "new".
11011
7559c217
CB
110122020-02-12 Christian Biesinger <cbiesinger@google.com>
11013
11014 * arm-tdep.c (arm_gdbarch_init): Update.
11015 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11016 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11017 have_neon, is_m>: Change to bool.
11018
aeefc73c
CB
110192020-02-12 Christian Biesinger <cbiesinger@google.com>
11020
11021 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11022
d27b8e5f
TT
110232020-02-12 Tom Tromey <tom@tromey.com>
11024
11025 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11026
cd5900f3
HD
110272020-02-12 Hannes Domani <ssbssa@yahoo.de>
11028
11029 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11030 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11031
f056b22b
TT
110322020-02-11 Tom Tromey <tom@tromey.com>
11033
11034 * psymtab.h: Update comment.
11035
f92ff6b5
TT
110362020-02-11 Tom Tromey <tom@tromey.com>
11037
11038 * gdb_obstack.h (struct auto_obstack): Use
11039 DISABLE_COPY_AND_ASSIGN.
11040
3fd6912b
TT
110412020-02-11 Tom Tromey <tom@tromey.com>
11042
11043 * dwarf2/frame.h (struct objfile): Don't forward declare.
11044
69ed9b74
CB
110452020-02-11 Christian Biesinger <cbiesinger@google.com>
11046
11047 * cris-tdep.c (cris_supply_gregset): Change signature to match
11048 what struct regset expects.
11049 (cris_regset): New struct.
11050 (fetch_core_registers): Remove.
11051 (cris_iterate_over_regset_sections): New function.
11052 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11053 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11054
bda874f6
CB
110552020-02-11 Christian Biesinger <cbiesinger@google.com>
11056
11057 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11058 registers.
11059
754e1564
CB
110602020-02-11 Christian Biesinger <cbiesinger@google.com>
11061
11062 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11063
8ddd8e0e
SM
110642020-02-11 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * configure: Re-generate.
11067
898e7f60
SM
110682020-02-11 Simon Marchi <simon.marchi@efficios.com>
11069
11070 * configure: Re-generate.
11071
58df732b
SM
110722020-02-11 Simon Marchi <simon.marchi@efficios.com>
11073
11074 * acinclude: Update warning.m4 path.
11075 * warning.m4: Move to gdbsupport.
11076
da5bd37e
TT
110772020-02-11 Tom Tromey <tromey@adacore.com>
11078
11079 * remote.c (remote_console_output): Update.
11080 * printcmd.c (printf_command): Update.
11081 * event-loop.c (gdb_wait_for_event): Update.
11082 * linux-nat.c (sigchld_handler): Update.
11083 * remote-sim.c (gdb_os_write_stdout): Update.
11084 (gdb_os_flush_stdout): Update.
11085 (gdb_os_flush_stderr): Update.
11086 (gdb_os_write_stderr): Update.
11087 * exceptions.c (print_exception): Update.
11088 * remote-fileio.c (remote_fileio_func_read): Update.
11089 (remote_fileio_func_write): Update.
11090 * tui/tui.c (tui_enable): Update.
11091 * tui/tui-interp.c (tui_interp::init): Update.
11092 * utils.c (init_page_info): Update.
11093 (putchar_unfiltered, fputc_unfiltered): Update.
11094 (gdb_flush): Update.
11095 (emit_style_escape): Update.
11096 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11097 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11098 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11099 (stderr_file::write): Update.
11100 (stderr_file::puts): Update.
11101 * ui-file.h (ui_file_isatty, ui_file_write)
11102 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11103 (ui_file_puts): Don't declare.
11104
85f0dd3c
TV
111052020-02-10 Tom de Vries <tdevries@suse.de>
11106
11107 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11108 sentinel to char *.
11109
2e927613
TV
111102020-02-09 Tom de Vries <tdevries@suse.de>
11111
11112 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11113 filename if it matches "<artificial>".
11114
6bafc845
HD
111152020-02-09 Hannes Domani <ssbssa@yahoo.de>
11116
11117 * windows-tdep.c (struct enum_value_name): New struct.
11118 (create_enum): New function.
11119 (windows_get_siginfo_type): Create and use enum types.
11120
7928d571
HD
111212020-02-09 Hannes Domani <ssbssa@yahoo.de>
11122
11123 * NEWS: Mention $_siginfo support for Windows.
11124 * windows-nat.c (handle_exception): Set siginfo_er.
11125 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11126 (windows_xfer_siginfo): New function.
11127 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11128 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11129 (init_windows_gdbarch_data): New function.
11130 (get_windows_gdbarch_data): New function.
11131 (windows_get_siginfo_type): New function.
11132 (windows_init_abi): Register windows_get_siginfo_type.
11133 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11134
6751ebae
TT
111352020-02-08 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11138 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11139 <keep>: Declare method.
11140 <m_keep>: Remove member.
11141 <~cutu_reader>: Remove.
11142 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11143 (cutu_reader::cutu_reader): Update.
11144 (cutu_reader::keep): Rename from ~cutu_reader.
11145 (process_psymtab_comp_unit, build_type_psymtabs_1)
11146 (process_skeletonless_type_unit, load_partial_comp_unit)
11147 (load_full_comp_unit, dwarf2_read_addr_index)
11148 (read_signatured_type): Update.
11149
135f5437
TT
111502020-02-08 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11153 "want_partial_unit" parameter.
11154 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11155 Inline check for DW_TAG_partial_unit.
11156 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11157
9f66ff1c
TT
111582020-02-08 Tom Tromey <tom@tromey.com>
11159
11160 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11161 read.c.
11162 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11163 read.c.
11164
c8a7a66f
TT
111652020-02-08 Tom Tromey <tom@tromey.com>
11166
11167 * dwarf2/read.c (read_address): Move to comp-unit.c.
11168 (dwarf2_rnglists_process, dwarf2_ranges_process)
11169 (read_attribute_value, dwarf_decode_lines_1)
11170 (var_decode_location, decode_locdesc): Update.
11171 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11172 read.c. Remove "cu" parameter.
11173 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11174 method.
11175
8266302d
TT
111762020-02-08 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11179 (read_indirect_line_string): Update.
11180 * dwarf2/comp-unit.c (read_offset): Remove.
11181 (read_comp_unit_head): Update.
11182 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11183 method.
11184 (read_offset): Don't declare.
11185
4057dfde
TT
111862020-02-08 Tom Tromey <tom@tromey.com>
11187
11188 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11189 * dwarf2/read.c (struct comp_unit_head): Move to
11190 dwarf2/comp-unit.h.
11191 (enum class rcuh_kind): Move to comp-unit.h.
11192 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11193 (read_comp_unit_head, error_check_comp_unit_head)
11194 (read_and_check_comp_unit_head): Move to comp-unit.c.
11195 (read_offset, dwarf_unit_type_name): Likewise.
11196 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11197 (cutu_reader::cutu_reader, read_call_site_scope)
11198 (find_partial_die, follow_die_offset): Update.
11199 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11200
24aa364d
TT
112012020-02-08 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/read.c (read_offset_1): Move to leb.c.
11204 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11205 (dwarf_decode_macro_bytes): Update.
11206 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11207 * dwarf2/leb.h (read_offset): Declare.
11208
2c7d5afc
TT
112092020-02-08 Tom Tromey <tom@tromey.com>
11210
11211 * dwarf2/read.c (dwarf2_section_size): Remove.
11212 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11213 Update.
11214 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11215
4075cb26
TT
112162020-02-08 Tom Tromey <tom@tromey.com>
11217
11218 * dwarf2/read.c (read_initial_length): Move to leb.c.
11219 * dwarf2/leb.h (read_initial_length): Declare.
11220 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11221 handle_nonstd parameter.
11222 * dwarf2/frame.c (read_initial_length): Remove.
11223 (decode_frame_entry_1): Update.
11224
09ba997f
TT
112252020-02-08 Tom Tromey <tom@tromey.com>
11226
11227 * dwarf2/loc.c (dwarf2_find_location_expression)
11228 (dwarf_evaluate_loc_desc::get_tls_address)
11229 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11230 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11231 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11232 (dwarf2_compile_property_to_c)
11233 (dwarf2_loc_desc_get_symbol_read_needs)
11234 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11235 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11236 (loclist_describe_location, loclist_tracepoint_var_ref)
11237 (loclist_generate_c_location): Update.
11238 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11239 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11240 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11241 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11242 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11243 (dwarf2_per_cu_data::addr_size)
11244 (dwarf2_per_cu_data::ref_addr_size)
11245 (dwarf2_per_cu_data::text_offset)
11246 (dwarf2_per_cu_data::addr_type): Now methods.
11247 (per_cu_header_read_in): Make per_cu "const".
11248 (dwarf2_version): Remove.
11249 (dwarf2_per_cu_data::int_type): Now a method.
11250 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11251 (set_die_type, read_array_type, read_subrange_index_type)
11252 (read_tag_string_type, read_subrange_type): Update.
11253 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11254 offset_size, ref_addr_size, text_offset, addr_type, version,
11255 objfile, int_type, addr_sized_int_type>: Declare methods.
11256
96c738c0
TT
112572020-02-08 Tom Tromey <tom@tromey.com>
11258
11259 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11260 Move earlier.
11261
8fdd972c
TT
112622020-02-08 Tom Tromey <tom@tromey.com>
11263
11264 * dwarf2/read.h (dwarf_line_debug): Declare.
11265 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11266 * dwarf2/read.c: Move line_header code to new files.
11267 (dwarf_line_debug): No longer static.
11268 * dwarf2/line-header.c: New file.
11269 * dwarf2/line-header.h: New file.
11270
03075812
TT
112712020-02-08 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/read.c (struct line_header) <file_full_name,
11274 file_file_name>: Return unique_xmalloc_ptr.
11275 (line_header::file_file_name): Update.
11276 (line_header::file_full_name): Update.
11277 (dw2_get_file_names_reader): Update.
11278 (macro_start_file): Update.
11279
bb822404
TT
112802020-02-08 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2/read.c (struct line_header) <file_full_name,
11283 file_file_name>: Declare methods.
11284 (dw2_get_file_names_reader): Update.
11285 (file_file_name): Now a method.
11286 (file_full_name): Likewise.
11287 (macro_start_file): Update.
11288
009b64fc
TT
112892020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/read.c (dwarf_always_disassemble)
11292 (show_dwarf_always_disassemble): Move to loc.c.
11293 (_initialize_dwarf2_read): Move "always-disassemble" registration
11294 to loc.c.
11295 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11296 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11297 static.
11298 (show_dwarf_always_disassemble): Move from read.c.
11299 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11300
5895093f
TT
113012020-02-08 Tom Tromey <tom@tromey.com>
11302
11303 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11304 (create_quick_file_names_table): Return htab_up.
11305 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11306 Update.
11307 * dwarf2/read.h (struct dwarf2_per_objfile)
11308 <quick_file_names_table>: Now htab_up.
11309
b3b32279
TT
113102020-02-08 Tom Tromey <tom@tromey.com>
11311
11312 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11313
1d33d811
TT
113142020-02-08 Tom Tromey <tom@tromey.com>
11315
11316 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11317 Rewrite.
11318 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11319 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11320 (abbrev_table::abbrev_table): No longer inline.
11321 (ABBREV_HASH_SIZE): Remove.
11322 (abbrev_table::m_abbrevs): Now an htab_up.
11323
86de1d91
TT
113242020-02-08 Tom Tromey <tom@tromey.com>
11325
11326 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11327 (cutu_reader): Update.
11328 (build_type_psymtabs_1): Update.
11329 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11330 (abbrev_table::alloc_abbrev): Update.
11331 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11332 (abbrev_table::read): New static method, renamed from
11333 abbrev_table_read_table.
11334 (abbrev_table::alloc_abbrev)
11335 (abbrev_table::add_abbrev): Now private.
11336 (abbrev_table::abbrev_table): Now private.
11337 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11338
0335378b
TT
113392020-02-08 Tom Tromey <tom@tromey.com>
11340
11341 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11342 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11343 htab_up.
11344
48b490f2
TT
113452020-02-08 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11348 htab_up.
11349 (lookup_dwo_unit_in_dwp): Update.
11350 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11351 on obstack.
11352
bc68fb19
TT
113532020-02-08 Tom Tromey <tom@tromey.com>
11354
11355 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11356 obstack.
11357
d15acc42
TT
113582020-02-08 Tom Tromey <tom@tromey.com>
11359
11360 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11361 line_header_hash.
11362 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11363 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11364 Change type to htab_up.
11365
eaa5fa8b
TT
113662020-02-08 Tom Tromey <tom@tromey.com>
11367
11368 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11369 htab_up. Don't allocate on obstack.
11370 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11371 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11372 Change type to htab_up.
11373
b0b6a987
TT
113742020-02-08 Tom Tromey <tom@tromey.com>
11375
11376 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11377 Change type to htab_up.
11378 * dwarf2/read.c (create_signatured_type_table_from_index)
11379 (create_signatured_type_table_from_debug_names)
11380 (create_all_type_units, add_type_unit)
11381 (lookup_dwo_signatured_type, lookup_signatured_type)
11382 (process_skeletonless_type_unit): Update.
11383 (create_debug_type_hash_table, create_debug_types_hash_table):
11384 Change type of types_htab.
11385 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11386 htab_up. Don't allocate on obstack.
11387 (create_cus_hash_table): Change type of cus_htab parameter.
11388 (struct dwo_file) <cus, tus>: Now htab_up.
11389 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11390 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11391 (queue_and_load_all_dwo_tus): Update.
11392 * dwarf2/index-write.c (write_gdbindex): Update.
11393 (write_debug_names): Update.
11394
39856def
TT
113952020-02-08 Tom Tromey <tom@tromey.com>
11396
11397 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11398 dwarf2/read.c. Remove "next" member. Add constructor ntad
11399 destructor.
11400 (struct dwarf2_per_objfile) <queue>: New member.
11401 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11402 dwarf2/read.h.
11403 (dwarf2_queue, dwarf2_queue_tail): Remove.
11404 (class dwarf2_queue_guard): Add parameter to constructor. Use
11405 DISABLE_COPY_AND_ASSIGN.
11406 <m_per_objfile>: New member.
11407 <~dwarf2_queue_guard>: Rewrite.
11408 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11409 Update.
11410 (~dwarf2_queue_item): New.
11411
3e225074
TT
114122020-02-08 Tom Tromey <tom@tromey.com>
11413
11414 * dwarf2/read.c (struct die_info) <has_children>: New member.
11415 (dw2_get_file_names_reader): Remove has_children.
11416 (dw2_get_file_names): Update.
11417 (read_cutu_die_from_dwo): Remove has_children.
11418 (cutu_reader::init_tu_and_read_dwo_dies)
11419 (cutu_reader::cutu_reader): Update.
11420 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11421 Remove has_children.
11422 (build_type_psymtabs_1, process_skeletonless_type_unit)
11423 (load_partial_comp_unit, load_full_comp_unit): Update.
11424 (create_dwo_cu_reader): Remove has_children.
11425 (create_cus_hash_table, read_die_and_children): Update.
11426 (read_full_die_1,read_full_die): Remove has_children.
11427 (read_signatured_type): Update.
11428 (class cutu_reader) <has_children>: Remove.
11429
82ca8957
TT
114302020-02-08 Tom Tromey <tom@tromey.com>
11431
11432 * dwarf2/expr.c: Rename from dwarf2expr.c.
11433 * dwarf2/expr.h: Rename from dwarf2expr.h.
11434 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11435 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11436 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11437 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11438 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11439 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11440 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11441 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11442 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11443 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11444 * dwarf2/loc.c: Rename from dwarf2loc.c.
11445 * dwarf2/loc.h: Rename from dwarf2loc.h.
11446 * dwarf2/read.c: Rename from dwarf2read.c.
11447 * dwarf2/read.h: Rename from dwarf2read.h.
11448 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11449 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11450 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11451 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11452 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11453 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11454 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11455 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11456 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11457 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11458 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11459 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11460 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11461 Update.
11462 * Makefile.in (COMMON_SFILES): Update.
11463 (HFILES_NO_SRCDIR): Update.
11464
9e35d499
TT
114652020-02-08 Tom Tromey <tom@tromey.com>
11466
11467 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11468 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11469
1eba2311
TT
114702020-02-08 Tom Tromey <tom@tromey.com>
11471
11472 * dwarf2read.h (struct die_info): Don't declare.
11473
e41c2da2
TT
114742020-02-08 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2read.h (die_info_ptr): Remove typedef.
11477
4fc6c0d5
TT
114782020-02-08 Tom Tromey <tom@tromey.com>
11479
11480 * dwarf2read.c (read_call_site_scope)
11481 (handle_data_member_location, dwarf2_add_member_fn)
11482 (mark_common_block_symbol_computed, read_common_block)
11483 (attr_to_dynamic_prop, partial_die_info::read)
11484 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11485 (dwarf2_symbol_mark_computed, set_die_type): Update.
11486 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11487 method.
11488 (attr_form_is_block): Don't declare.
11489 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11490
cd6c91b4
TT
114912020-02-08 Tom Tromey <tom@tromey.com>
11492
11493 * dwarf2read.c (dwarf2_find_base_address, )
11494 (read_call_site_scope, rust_containing_type)
11495 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11496 (handle_data_member_location, dwarf2_add_member_fn)
11497 (get_alignment, read_structure_type, process_structure_scope)
11498 (mark_common_block_symbol_computed, read_common_block)
11499 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11500 (partial_die_info::read, read_attribute_value, new_symbol)
11501 (lookup_die_type, dwarf2_get_ref_die_offset)
11502 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11503 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11504 (dwarf2_symbol_mark_computed): Update.
11505 * dwarf2/attribute.h (struct attribute) <value_as_address,
11506 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11507 methods.
11508 (value_as_address, attr_form_is_section_offset)
11509 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11510 * dwarf2/attribute.c (attribute::value_as_address)
11511 (attribute::form_is_section_offset, attribute::form_is_constant)
11512 (attribute::form_is_ref): Now methods.
11513
162dce55
TT
115142020-02-08 Tom Tromey <tom@tromey.com>
11515
11516 * dwarf2read.c (struct attribute, DW_STRING)
11517 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11518 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11519 (attr_form_is_block, attr_form_is_section_offset)
11520 (attr_form_is_constant, attr_form_is_ref): Move.
11521 * dwarf2/attribute.h: New file.
11522 * dwarf2/attribute.c: New file, from dwarf2read.c.
11523 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11524
3054dd54
TT
115252020-02-08 Tom Tromey <tom@tromey.com>
11526
11527 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11528 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11529 Move.
11530 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11531 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11532 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11533 abbrev.c.
11534 * dwarf2/abbrev.h: New file.
11535 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11536 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11537
96b79293
TT
115382020-02-08 Tom Tromey <tom@tromey.com>
11539
11540 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11541 (dwarf2_section_size, dwarf2_get_section_info)
11542 (create_signatured_type_table_from_debug_names)
11543 (create_addrmap_from_aranges, read_debug_names_from_section)
11544 (get_gdb_index_contents_from_section, read_comp_unit_head)
11545 (error_check_comp_unit_head, read_abbrev_offset)
11546 (create_debug_type_hash_table, init_cu_die_reader)
11547 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11548 (read_comp_units_from_section, create_cus_hash_table)
11549 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11550 (create_dwp_v2_section, dwarf2_rnglists_process)
11551 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11552 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11553 (read_indirect_string_from_dwz, read_addr_index_1)
11554 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11555 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11556 (fill_in_loclist_baton): Update.
11557 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11558 get_containing_section, get_bfd_owner, get_bfd_section,
11559 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11560 (dwarf2_read_section, get_section_name, get_section_file_name)
11561 (get_containing_section, get_section_bfd_owner)
11562 (get_section_bfd_section, get_section_name, get_section_file_name)
11563 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11564 declare.
11565 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11566 (dwarf2_section_info::get_bfd_owner)
11567 (dwarf2_section_info::get_bfd_section)
11568 (dwarf2_section_info::get_name)
11569 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11570 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11571 (dwarf2_section_info::read): Now methods.
11572 * dwarf-index-write.c (class debug_names): Update.
11573
2c86cff9
TT
115742020-02-08 Tom Tromey <tom@tromey.com>
11575
11576 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11577 Move to dwarf2/section.h.
11578 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11579 (get_section_bfd_section, get_section_name)
11580 (get_section_file_name, get_section_id, get_section_flags)
11581 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11582 dwarf2/section.c.
11583 * dwarf2/section.h: New file.
11584 * dwarf2/section.c: New file, from dwarf2read.c.
11585 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11586
f4382c45
TT
115872020-02-08 Tom Tromey <tom@tromey.com>
11588
11589 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11590 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11591 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11592 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11593 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11594 * dwarf2/leb.h: New file, from dwarf2read.c.
11595 * dwarf2/leb.c: New file, from dwarf2read.c.
11596 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11597 Remove.
11598 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11599 (COMMON_SFILES): Add dwarf2/leb.c.
11600
01840b7a
JB
116012020-02-08 Joel Brobecker <brobecker@adacore.com>
11602
11603 GDB 9.1 released.
11604
dfcb27e4
IB
116052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11606
11607 PR gdb/25190:
aac66a4c
SM
11608 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11609 * gdb/remote.c (remote_console_output): Update.
11610 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11611 (ui_file_puts): ...this.
11612 * gdb/ui-file.h (ui_file_puts): Add declaration.
11613 * gdb/utils.c (emit_style_escape): Update.
11614 (flush_wrap_buffer): Update.
11615 (fputs_maybe_filtered): Update.
11616 (fputs_unfiltered): Add function.
dfcb27e4 11617
faa17681
IB
116182020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11619
aac66a4c
SM
11620 * gdb/event-loop.c (gdb_wait_for_event): Update.
11621 * gdb/printcmd.c (printf_command): Update.
11622 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11623 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11624 (gdb_os_flush_stderr): Update.
11625 * gdb/remote.c (remote_console_output): Update.
11626 * gdb/ui-file.c (gdb_flush): Rename to...
11627 (ui_file_flush): ...this.
11628 (stderr_file::write): Update.
11629 (stderr_file::puts): Update.
11630 * gdb/ui-file.h (gdb_flush): Rename to...
11631 (ui_file_flush): ...this.
11632 * gdb/utils.c (gdb_flush): Add function.
11633 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11634
5abbbe1d
TT
116352020-02-07 Tom Tromey <tromey@adacore.com>
11636
11637 PR breakpoints/24915:
11638 * source.c (find_and_open_source): Do not check basenames_may_differ.
11639
919adfe8
TT
116402020-02-07 Tom Tromey <tom@tromey.com>
11641
11642 * README: Update gdbserver documentation.
11643 * gdbserver: Move to top level.
11644 * configure.tgt (build_gdbserver): Remove.
11645 * configure.ac: Remove --enable-gdbserver.
11646 * configure: Rebuild.
11647 * Makefile.in (distclean): Don't mention gdbserver.
11648
1d5d29e7
SV
116492020-02-06 Shahab Vahedi <shahab@synopsys.com>
11650
11651 * source-cache.c (source_cache::ensure): Surround
11652 get_plain_source_lines with a try/catch.
11653 (source_cache::get_line_charpos): Get rid of try/catch
11654 and only check for the return value of "ensure".
11655 * tui/tui-source.c (tui_source_window::set_contents):
11656 Simplify "nlines" calculation.
11657
6eb1129c
SV
116582020-02-06 Shahab Vahedi <shahab@synopsys.com>
11659
11660 * MAINTAINERS (Write After Approval): Add myself.
11661
c6a42d11
CB
116622020-02-05 Christian Biesinger <cbiesinger@google.com>
11663
11664 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11665 function call.
11666
c8ecdda6
CB
116672020-02-05 Christian Biesinger <cbiesinger@google.com>
11668
11669 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11670
f6480e70
MR
116712020-02-05 Maciej W. Rozycki <macro@wdc.com>
11672
11673 * nat/riscv-linux-tdesc.h: New file.
11674 * nat/riscv-linux-tdesc.c: New file, taking code from...
11675 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11676 ... here.
11677 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11678 NATDEPFILES.
11679
dcc9fbc6
AB
116802020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11681
11682 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11683 we don't set the fake simulator ptid to the null_ptid.
11684
719546c4
SM
116852020-02-03 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11688 * gdbthread.h (class thread_info) <resumed>: Likewise.
11689 * infrun.c (resume_1): Likewise.
11690 (proceed): Likewise.
11691 (infrun_thread_stop_requested): Likewise.
11692 (stop_all_threads): Likewise.
11693 (handle_inferior_event): Likewise.
11694 (restart_threads): Likewise.
11695 (finish_step_over): Likewise.
11696 (keep_going_stepped_thread): Likewise.
11697 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11698 (linux_handle_extended_wait): Likewise.
11699 * record-btrace.c (get_thread_current_frame_id): Likewise.
11700 * record-full.c (record_full_wait_1): Likewise.
11701 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11702 * target.c (target_resume): Likewise.
11703 * thread.c (set_running_thread): Likewise.
11704
e409c542
AKS
117052020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11706
11707 * f-valprint.c (f77_print_array_1): Changed datatype of index
11708 variable to LONGEST from int to enable it to contain bound
11709 values correctly.
11710
ee98c0da
MR
117112020-02-03 Maciej W. Rozycki <macro@wdc.com>
11712
11713 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11714 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11715 offsets according to FLEN determined.
11716 (riscv_linux_nat_target::read_description): Determine FLEN
11717 dynamically.
11718 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11719 according to FLEN determined.
11720 (riscv_linux_nat_target::store_registers): Likewise.
11721
aa66aac4
SV
117222020-02-01 Shahab Vahedi <shahab@synopsys.com>
11723
11724 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11725 when reg->group is empty and reggroup is not.
11726
fd9faca8
TT
117272020-01-31 Tom Tromey <tromey@adacore.com>
11728
11729 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11730 Call beneath target's mourn_inferior after unpushing.
11731
42330a68
AB
117322020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11733
11734 PR tui/9765
11735 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11736 have enough lines to fill the screen, still return the lowest
11737 address we found.
11738
7a27a45b
AB
117392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11740
11741 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11742 '-', '<', and '>' commands.
11743
c47f70e2
PA
117442020-01-29 Pedro Alves <palves@redhat.com>
11745 Sergio Durigan Junior <sergiodj@redhat.com>
11746
11747 * infcmd.c (construct_inferior_arguments): Assert that
11748 'argc' is greater than 0.
11749
5133a315
LM
117502020-01-29 Luis Machado <luis.machado@linaro.org>
11751
11752 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11753 (BRK_INSN_MASK): Define to 0xd4200000.
11754 (aarch64_program_breakpoint_here_p): New function.
11755 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11756 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11757 breakpoint.c.
11758 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11759 breakpoint.h
11760 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11761 call gdbarch_program_breakpoint_here_p.
11762 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11763 default_program_breakpoint_here_p, changed return type to bool and
11764 simplified.
11765 * breakpoint.h (program_breakpoint_here): Moved prototype to
11766 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11767 return type to bool.
11768 * gdbarch.c: Regenerate.
11769 * gdbarch.h: Regenerate.
11770 * gdbarch.sh (program_breakpoint_here_p): New method.
11771 * infrun.c (handle_signal_stop): Call
11772 gdbarch_program_breakpoint_here_p.
11773
168f8c6b
TT
117742020-01-26 Tom Tromey <tom@tromey.com>
11775
11776 * ctfread.c (struct ctf_fp_info): Reindent.
11777 (_initialize_ctfread): Remove.
11778
128a391f
TT
117792020-01-26 Tom Tromey <tom@tromey.com>
11780
11781 * psymtab.c (partial_map_expand_apply)
11782 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11783 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11784 (psym_print_stats, psym_expand_symtabs_for_function)
11785 (psym_map_symbol_filenames, psym_map_matching_symbols)
11786 (psym_expand_symtabs_matching)
11787 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11788 (maintenance_check_psymtabs): Use new methods.
11789 * psympriv.h (struct partial_symtab) <readin_p,
11790 get_compunit_symtab>: New methods.
11791 <readin, compunit_symtab>: Remove members.
11792 (struct standard_psymtab): New.
11793 (struct legacy_psymtab): Derive from standard_psymtab.
11794 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11795 standard_psymtab.
11796 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11797
0494dbec
TT
117982020-01-26 Tom Tromey <tom@tromey.com>
11799
11800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11801 read_dependencies. Add assert.
11802 * psymtab.c (partial_symtab::read_dependencies): New method.
11803 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11804 method.
11805 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11806 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11807 read_dependencies.
11808 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11809 Add assert.
11810
8566b89b
TT
118112020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11814 Call expand_psymtab.
11815 (xcoff_read_symtab): Call expand_psymtab.
11816 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11817 legacy_expand_psymtab.
11818 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11819 method.
11820 (struct legacy_psymtab) <expand_psymtab>: Implement.
11821 <legacy_expand_psymtab>: New member.
11822 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11823 (parse_partial_symbols): Set legacy_expand_psymtab.
11824 (psymtab_to_symtab_1): Change argument order. Call
11825 expand_psymtab.
11826 (new_psymtab): Set legacy_expand_psymtab.
11827 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11828 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11829 expand_psymtab.
11830 (dwarf2_psymtab::expand_psymtab): Rename from
11831 psymtab_to_symtab_1. Call expand_psymtab.
11832 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11833 (dbx_end_psymtab): Likewise.
11834 (dbx_psymtab_to_symtab_1): Change argument order. Call
11835 expand_psymtab.
11836 (dbx_read_symtab): Call expand_psymtab.
11837 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11838 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11839 (ctf_psymtab::read_symtab): Call expand_psymtab.
11840
077cbab2
TT
118412020-01-26 Tom Tromey <tom@tromey.com>
11842
11843 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11844 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11845 messages.
11846 * mdebugread.c (mdebug_read_symtab): Remove prints.
11847 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11848 assert.
11849 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11850
891813be
TT
118512020-01-26 Tom Tromey <tom@tromey.com>
11852
11853 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11854 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11855 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11856 legacy_symtab.
11857 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11858 * psymtab.c (psymtab_to_symtab): Call method.
11859 (dump_psymtab): Update.
11860 * psympriv.h (struct partial_symtab): Add virtual destructor.
11861 <read_symtab>: New method.
11862 (struct legacy_symtab): New.
11863 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11864 (struct pst_map) <pst>: Now a legacy_psymtab.
11865 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11866 (new_psymtab): Use legacy_psymtab.
11867 * dwarf2read.h (struct dwarf2_psymtab): New.
11868 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11869 * dwarf2read.c (dwarf2_create_include_psymtab)
11870 (dwarf2_build_include_psymtabs, create_type_unit_group)
11871 (create_partial_symtab, process_psymtab_comp_unit_reader)
11872 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11873 (set_partial_user): Use dwarf2_psymtab.
11874 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11875 (psymtab_to_symtab_1, process_full_comp_unit)
11876 (process_full_type_unit, dwarf2_ranges_read)
11877 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11878 (dwarf_decode_lines): Use dwarf2_psymtab.
11879 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11880 (add_address_entry_worker, write_one_signatured_type)
11881 (recursively_count_psymbols, recursively_write_psymbols)
11882 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11883 (write_debug_names): Likewise.
11884 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11885 <pst>: Now a legacy_psymtab.
11886 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11887 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11888 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11889 * ctfread.c (struct ctf_psymtab): New.
11890 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11891 ctf_psymtab.
11892 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11893 (create_partial_symtab): Return a ctf_psymtab.
11894 (scan_partial_symbols): Update.
11895
c3693a1d
TT
118962020-01-26 Tom Tromey <tom@tromey.com>
11897
11898 * xcoffread.c (xcoff_start_psymtab): Use new.
11899 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11900 renamed from start_psymtab_common.
11901 * psympriv.h (struct partial_symtab): Add new constructor.
11902 (start_psymtab_common): Don't declare.
11903 * mdebugread.c (parse_partial_symbols): Use new.
11904 * dwarf2read.c (create_partial_symtab): Use new.
11905 * dbxread.c (start_psymtab): Use new.
11906 * ctfread.c (create_partial_symtab): Use new.
11907
32caafd0
TT
119082020-01-26 Tom Tromey <tom@tromey.com>
11909
11910 * xcoffread.c (xcoff_end_psymtab): Use new.
11911 * psymtab.c (start_psymtab_common): Use new.
11912 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11913 Update.
11914 * psympriv.h (struct partial_symtab): Add parameters to
11915 constructor. Don't inline.
11916 (allocate_psymtab): Don't declare.
11917 * mdebugread.c (new_psymtab): Use new.
11918 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11919 * dbxread.c (dbx_end_psymtab): Use new.
11920
abaa2f23
TT
119212020-01-26 Tom Tromey <tom@tromey.com>
11922
11923 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11924 allocate_psymtab. Update documentation.
11925 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11926 allocate_psymtab. Do not use new.
11927 (allocate_psymtab): Use new. Update.
11928
6d94535f
TT
119292020-01-26 Tom Tromey <tom@tromey.com>
11930
11931 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11932 * psymtab.c (psym_print_stats): Update.
11933 * psympriv.h (struct partial_symtab) <readin,
11934 psymtabs_addrmap_supported, anonymous>: Now bool.
11935 * mdebugread.c (psymtab_to_symtab_1): Update.
11936 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11937 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11938 (process_full_comp_unit, process_full_type_unit): Update.
11939 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11940 * ctfread.c (psymtab_to_symtab): Update.
11941
6f17252b
TT
119422020-01-26 Tom Tromey <tom@tromey.com>
11943
11944 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11945 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11946 * psymtab.c (psymtab_storage): Delete psymtabs.
11947 (psymtab_storage::allocate_psymtab): Use new.
11948 (psymtab_storage::discard_psymtab): Use delete.
11949 * psympriv.h (struct partial_symtab): Add constructor and
11950 initializers.
11951
f6f1cebc
TT
119522020-01-26 Tom Tromey <tom@tromey.com>
11953
11954 * machoread.c: Do not include psympriv.h.
11955
e47e48f6
PW
119562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11957
11958 * NEWS: Mention the new option and the set/show commands.
11959
a2fedca9
PW
119602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11961
11962 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11963 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11964 (validate_exec_file): New variables, enums, functions.
11965 (exec_file_locate_attach, print_section_info): Style the filenames.
11966 (_initialize_exec): Install show_exec_file_mismatch_command and
11967 set_exec_file_mismatch_command.
11968 * gdbcore.h (validate_exec_file): Declare.
11969 * infcmd.c (attach_command): Call validate_exec_file.
11970 * remote.c ( remote_target::remote_add_inferior): Likewise.
11971
7ffa82e1
AB
119722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11973
11974 * frame.c (find_frame_sal): Move call to get_next_frame into more
11975 inner scope.
11976 * inline-frame.c (inilne_state) <inline_state>: Update argument
11977 types.
11978 (inilne_state) <skipped_symbol>: Rename to...
11979 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11980 (skip_inline_frames): Build vector of skipped symbols and use this
11981 to reate the inline_state.
11982 (inline_skipped_symbol): Add a comment and some assertions, fetch
11983 skipped symbol from the list.
11984
3d92a3e3
AB
119852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11986
11987 * buildsym.c (lte_is_less_than): Delete.
11988 (buildsym_compunit::end_symtab_with_blockvector): Create local
11989 lambda function to sort line table entries, and use
11990 std::stable_sort instead of std::sort.
11991 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11992 markers when looking for a previous line.
11993
94a72be7
AB
119942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * dwarf2read.c (lnp_state_machine::record_line): Include
11997 end_sequence parameter in debug print out. Record the line if we
11998 are at an end_sequence marker even if it's not the start of a
11999 statement.
12000 * symmisc.c (maintenance_print_one_line_table): Print end of
12001 sequence markers with 'END' not '0'.
12002
53af73bf
PA
120032020-01-24 Pedro Alves <palves@redhat.com>
12004
12005 PR gdb/25410
12006 * thread.c (scoped_restore_current_thread::restore): Use
12007 switch_to_inferior_no_thread.
12008 * exec.c: Include "progspace-and-thread.h".
12009 (add_target_sections, remove_target_sections):
12010 scoped_restore_current_pspace_and_thread instead of
12011 scoped_restore_current_thread.
12012 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12013 and aspace to the inferior before calling clone_program_space.
12014 Remove stale comment.
12015
3050c6f4
CB
120162020-01-24 Christian Biesinger <cbiesinger@google.com>
12017
12018 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12019 (arm_netbsd_nat_target::fetch_registers): ...this.
12020 (arm_nbsd_nat_target::store_registers): Rename to...
12021 (arm_netbsd_nat_target::store_registers): ...this.
12022
73685c7e
CB
120232020-01-24 Christian Biesinger <cbiesinger@google.com>
12024
12025 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12026 register_t.
12027
89203d40
CB
120282020-01-24 Christian Biesinger <cbiesinger@google.com>
12029
12030 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12031 Update comment.
12032 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12033 Likewise.
12034 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12035 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12036 the correct replacement (iterate_over_regset_sections).
12037 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12038 Update comment.
12039
1ba1ac88
AB
120402020-01-24 Graham Markall <graham.markall@embecosm.com>
12041
12042 PR gdb/23718
12043 * gdb/python/python.c (execute_gdb_command): Call
12044 async_enable_stdin in catch block.
12045
f3364a6d
AB
120462020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12047
12048 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12049 SWITCH_THRU_ALL_UIS.
12050
733d0a67
AB
120512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 PR tui/9765
12054 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12055 comment, add extra parameter, and update to store previous symbol
12056 when appropriate.
12057 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12058 add extra parameter.
12059 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12060 remove unneeded parameter, add try/catch around gdb_print_insn,
12061 rewrite to add items to asm_lines vector.
12062 (tui_find_backward_disassembly_start_address): New function.
12063 (tui_find_disassembly_address): Updated throughout.
12064 (tui_disasm_window::set_contents): Update for changes to
12065 tui_disassemble.
12066 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12067 number of lines to scroll.
12068
b3b3bada
SM
120692020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12070
12071 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12072 (SECT_OFF_DATA): Likewise.
12073 (SECT_OFF_RODATA): Likewise.
12074 (SECT_OFF_TEXT): Likewise.
12075 (SECT_OFF_BSS): Likewise.
12076 (struct objfile) <text_section_offset, data_section_offset>: New
12077 methods.
12078 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12079 objfile::text_section_offset.
12080 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12081 * coffread.c (coff_symtab_read): Likewise.
12082 (enter_linenos): Likewise.
12083 (process_coff_symbol): Likewise.
12084 * ctfread.c (get_objfile_text_range): Likewise.
12085 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12086 Use objfile::data_section_offset.
12087 * dwarf2-frame.c (execute_cfa_program): Use
12088 objfile::text_section_offset.
12089 (dwarf2_frame_find_fde): Likewise.
12090 * dwarf2read.c (create_addrmap_from_index): Likewise.
12091 (create_addrmap_from_aranges): Likewise.
12092 (dw2_find_pc_sect_compunit_symtab): Likewise.
12093 (process_psymtab_comp_unit_reader): Likewise.
12094 (add_partial_symbol): Likewise.
12095 (add_partial_subprogram): Likewise.
12096 (process_full_comp_unit): Likewise.
12097 (read_file_scope): Likewise.
12098 (read_func_scope): Likewise.
12099 (read_lexical_block_scope): Likewise.
12100 (read_call_site_scope): Likewise.
12101 (dwarf2_rnglists_process): Likewise.
12102 (dwarf2_ranges_process): Likewise.
12103 (dwarf2_ranges_read): Likewise.
12104 (dwarf_decode_lines_1): Likewise.
12105 (new_symbol): Likewise.
12106 (dwarf2_fetch_die_loc_sect_off): Likewise.
12107 (dwarf2_per_cu_text_offset): Likewise.
12108 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12109 * hppa-tdep.c (read_unwind_info): Likewise.
12110 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12111 * psympriv.h (struct partial_symtab): Likewise.
12112 * psymtab.c (find_pc_sect_psymtab): Likewise.
12113 * solib-svr4.c (enable_break): Likewise.
12114 * stap-probe.c (relocate_address): Use
12115 objfile::data_section_offset.
12116 * xcoffread.c (enter_line_range): Use
12117 objfile::text_section_offset.
12118 (read_xcoff_symtab): Likewise.
12119
ab53f382
SM
121202020-01-23 Simon Marchi <simon.marchi@efficios.com>
12121
12122 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12123 declaration to narrower scopes.
12124
e7eee665
SM
121252020-01-23 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * darwin-nat.h (struct darwin_exception_msg, enum
12128 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12129 Move up.
12130 (class darwin_nat_target) <wait_1, check_new_threads,
12131 decode_exception_message, decode_message, stop_inferior,
12132 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12133 * darwin-nat.c (darwin_check_new_threads): Rename to...
12134 (darwin_nat_target::check_new_threads): ... this.
12135 (darwin_suspend_inferior_it): Remove.
12136 (darwin_decode_exception_message): Rename to...
12137 (darwin_nat_target::decode_exception_message): ... this.
12138 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12139 (darwin_decode_message): Rename to...
12140 (darwin_nat_target::decode_message): ... this.
12141 (cancel_breakpoint): Rename to...
12142 (darwin_nat_target::cancel_breakpoint): ... this.
12143 (darwin_wait): Rename to...
12144 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12145 instead of iterate_over_inferiors.
12146 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12147 (darwin_stop_inferior): Rename to...
12148 (darwin_nat_target::stop_inferior): ... this.
12149 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12150 (darwin_init_thread_list): Rename to...
12151 (darwin_nat_target::init_thread_list): ... this.
12152 (darwin_ptrace_him): Rename to...
12153 (darwin_nat_target::ptrace_him): ... this.
12154 (darwin_nat_target::create_inferior): Pass lambda function to
12155 fork_inferior.
12156 (darwin_nat_target::detach): Call stop_inferior instead of
12157 darwin_stop_inferior.
12158 * fork-inferior.h (fork_inferior): Change init_trace_fun
12159 parameter to gdb::function_view.
12160 * fork-inferior.c (fork_inferior): Likewise.
12161
c162ed3e
HD
121622020-01-23 Hannes Domani <ssbssa@yahoo.de>
12163
12164 * i386-cygwin-tdep.c (core_process_module_section): Update.
12165 * windows-nat.c (struct lm_info_windows): Add text_offset.
12166 (windows_xfer_shared_libraries): Update.
12167 * windows-tdep.c (windows_xfer_shared_library):
12168 Add text_offset_cached argument.
12169 * windows-tdep.h (windows_xfer_shared_library): Update.
12170
a1237872
SM
121712020-01-21 Simon Marchi <simon.marchi@efficios.com>
12172
12173 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12174
b3ee6dd9
SM
121752020-01-21 Simon Marchi <simon.marchi@efficios.com>
12176
12177 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12178 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12179 replace with range-based for.
12180 (gdbsim_interrupt_inferior): Remove.
12181 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12182 with a range-based for. Inline code from
12183 gdbsim_interrupt_inferior.
12184
f9fac3c8
SM
121852020-01-21 Simon Marchi <simon.marchi@efficios.com>
12186
12187 * infrun.c (proceed): Fix indentation.
12188
f6474de9
TT
121892020-01-21 Tom Tromey <tromey@adacore.com>
12190
12191 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12192 * python/python.c (python_extension_ops): Update.
12193 (gdbpy_colorize): New function.
12194 * python/lib/gdb/__init__.py (colorize): New function.
12195 * extension.h (ext_lang_colorize): Declare.
12196 * extension.c (ext_lang_colorize): New function.
12197 * extension-priv.h (struct extension_language_ops) <colorize>: New
12198 member.
12199 * cli/cli-style.c (_initialize_cli_style): Update help text.
12200
f0c702d4
LM
122012020-01-21 Luis Machado <luis.machado@linaro.org>
12202
12203 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12204 <cond>: Change type to bool.
12205 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12206 (aarch64_displaced_step_cb): Likewise.
12207 (aarch64_displaced_step_tb): Likewise.
12208
1ab139e5
LM
122092020-01-21 Luis Machado <luis.machado@linaro.org>
12210
12211 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12212 output.
12213
0c271889
LM
122142020-01-21 Luis Machado <luis.machado@linaro.org>
12215
12216 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12217 <pc_adjust>: Adjust the documentation.
12218 (aarch64_displaced_step_fixup): Check if PC really moved before
12219 adjusting it.
12220
4d89c1c7
TT
122212020-01-19 Tom Tromey <tom@tromey.com>
12222
12223 * disasm.c (~gdb_disassembler): New destructor.
12224 (gdb_buffered_insn_length): Call disassemble_free_target.
12225 * disasm.h (class gdb_disassembler): Declare destructor. Use
12226 DISABLE_COPY_AND_ASSIGN.
12227
c0ab21c2
TT
122282020-01-19 Tom Tromey <tom@tromey.com>
12229
12230 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12231 (die_reader_func_ftype): Remove.
12232 (cutu_reader): New class.
12233 (dw2_get_file_names_reader): Remove "data" parameter.
12234 (dw2_get_file_names): Use cutu_reader.
12235 (create_debug_type_hash_table): Update.
12236 (read_cutu_die_from_dwo): Update comment.
12237 (lookup_dwo_unit): Add dwo_name parameter.
12238 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12239 die_reader_func_ftype and data parameters.
12240 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12241 Remove die_reader_func_ftype and data parameters.
12242 (~cutu_reader): New; from init_cutu_and_read_dies.
12243 (cutu_reader::cutu_reader): Rename from
12244 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12245 and data parameters.
12246 (init_cutu_and_read_dies_simple): Remove.
12247 (struct process_psymtab_comp_unit_data): Remove.
12248 (process_psymtab_comp_unit_reader): Remove data parameter; add
12249 want_partial_unit and pretend_language parameters.
12250 (process_psymtab_comp_unit): Use cutu_reader.
12251 (build_type_psymtabs_reader): Remove data parameter.
12252 (build_type_psymtabs_1): Use cutu_reader.
12253 (process_skeletonless_type_unit): Likewise.
12254 (load_partial_comp_unit_reader): Remove.
12255 (load_partial_comp_unit): Use cutu_reader.
12256 (load_full_comp_unit_reader): Remove.
12257 (load_full_comp_unit): Use cutu_reader.
12258 (struct create_dwo_cu_data): Remove.
12259 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12260 dwo_unit parameters.
12261 (create_cus_hash_table): Use cutu_reader.
12262 (struct dwarf2_read_addr_index_data): Remove.
12263 (dwarf2_read_addr_index_reader): Remove.
12264 (dwarf2_read_addr_index): Use cutu_reader.
12265 (read_signatured_type_reader): Remove.
12266 (read_signatured_type): Use cutu_reader.
12267
45bbae5c
TT
122682020-01-19 Tom Tromey <tom@tromey.com>
12269
12270 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12271 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12272 (tui_wrefresh): Declare.
12273 * tui/tui-wingeneral.c (suppress_output): New global.
12274 (tui_suppress_output, ~tui_suppress_output): New constructor and
12275 destructor.
12276 (tui_wrefresh): New function.
12277 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12278 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12279 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12280 method.
12281 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12282 tui_wrefresh.
12283 (tui_data_window::no_refresh): New method.
12284 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12285 (tui_reg_command): Use tui_suppress_output
12286 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12287 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12288 method.
12289 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12290
4f13c1c0
TT
122912020-01-19 Tom Tromey <tom@tromey.com>
12292
12293 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12294 Handle case where symtab is null.
12295
fa47e446
SM
122962020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12297
12298 * linux-fork.c (one_fork_p): Simplify.
12299
26f42329
SM
123002020-01-17 Simon Marchi <simon.marchi@efficios.com>
12301
12302 * top.c (struct qt_args): Remove.
12303 (kill_or_detach): Change return type to void, replace `void *`
12304 parameter with a proper one.
12305 (print_inferior_quit_action): Likewise.
12306 (quit_confirm): Use range-based for loop to iterate over inferiors.
12307 (quit_force): Likewise.
12308
a9ac81b1
SM
123092020-01-17 Simon Marchi <simon.marchi@efficios.com>
12310
12311 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12312 `void *` parameter with proper parameters.
12313 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12314 (print_one_inferior): Change return type to void, replace `void *`
12315 parameter with proper parameters.
12316 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12317 inferiors.
12318 (get_other_inferior): Remove.
12319 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12320 inferiors.
12321
788eca49
SM
123222020-01-17 Simon Marchi <simon.marchi@efficios.com>
12323
12324 * mi/mi-interp.c (report_initial_inferior): Remove.
12325 (mi_interp::init): Use range-based for to iterate over inferiors.
12326
d9bc85b6
SM
123272020-01-17 Simon Marchi <simon.marchi@efficios.com>
12328
12329 * python/py-inferior.c (build_inferior_list): Remove.
12330 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12331
40c94099
CB
123322020-01-16 Christian Biesinger <cbiesinger@google.com>
12333
12334 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12335 (btrace_stitch_trace): Likewise.
12336 * charset.c (intermediate_encoding): Likewise (vaild).
12337 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12338 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12339 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12340
e0cdfe3c
HD
123412020-01-16 Hannes Domani <ssbssa@yahoo.de>
12342
12343 * windows-tdep.c (windows_get_tlb_type):
12344 Add rtl_user_process_parameters type.
12345
790f1718 123462020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12347 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12348
12349 PR build/24805
12350 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12351 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12352 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12353 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12354 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12355 (ps_plog): Redeclare exported functions with default visibility.
12356
3112ed97
NA
123572020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12358
12359 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12360 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12361
8dc3273e
SM
123622020-01-15 Simon Marchi <simon.marchi@efficios.com>
12363
12364 * infcmd.c (post_create_inferior): Use get_thread_regcache
12365 instead of get_current_regcache.
12366
ff47f4f0
TT
123672020-01-14 Tom Tromey <tom@tromey.com>
12368
12369 PR symtab/12535:
12370 * python/python.c (gdbpy_decode_line): Treat empty string the same
12371 as no argument.
12372
975f45b7
TT
123732020-01-14 Tom Tromey <tom@tromey.com>
12374
12375 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12376
25e57356
TT
123772020-01-14 Tom Tromey <tom@tromey.com>
12378
12379 * nat/linux-btrace.c: Don't include <config.h>.
12380 * nat/linux-ptrace.c: Don't include <config.h>.
12381 * nat/x86-linux-dregs.c: Don't include <config.h>.
12382
05ea2a05
TT
123832020-01-14 Tom Tromey <tom@tromey.com>
12384
12385 * configure: Rebuild.
12386 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12387
01027315
TT
123882020-01-14 Tom Tromey <tom@tromey.com>
12389
12390 * nat/x86-linux-dregs.c: Include configh.h.
12391 * nat/linux-ptrace.c: Include configh.h.
12392 * nat/linux-btrace.c: Include configh.h.
12393 * defs.h: Include config.h, bfd.h.
12394 * configure.ac: Don't source common.host.
12395 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12396 * configure: Rebuild.
12397 * acinclude.m4: Update path.
12398 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12399 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12400 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12401 (CLIBS): Add LIBSUPPORT.
12402 (CDEPS): Likewise.
12403 (COMMON_SFILES): Remove gdbsupport files.
12404 (HFILES_NO_SRCDIR): Likewise.
12405 (stamp-version): Update path to create-version.sh.
12406 (ALLDEPFILES): Remove gdbsupport files.
12407
b2ceabe8
TT
124082020-01-14 Tom Tromey <tom@tromey.com>
12409
12410 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12411 USE_WIN32API when needed.
12412 * configure.ac (USE_WIN32API): Don't define.
12413 (WIN32LIBS): Use WIN32APILIBS.
12414 * configure: Rebuild.
12415
25c51f71
TT
124162020-01-14 Tom Tromey <tom@tromey.com>
12417
12418 * configure: Rebuild.
12419 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12420
717c684d
BE
124212020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12422
12423 * skip.c (skip_function_command): Make skip w/o arguments use the
12424 name of the inlined function if pc is inside any inlined function.
12425
7da6a5b9
LM
124262020-01-14 Luis Machado <luis.machado@linaro.org>
12427
12428 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12429 * infrun.c (resume_1): Likewise.
12430 (handle_inferior_event): Remove stale comment.
12431 * linux-nat.c (linux_nat_target::resume): Update comments.
12432 (save_stop_reason): Likewise.
12433 (linux_nat_filter_event): Likewise.
12434 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12435
44e4c775
AB
124362020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12437
12438 * elfread.c (record_minimal_symbol): Set section index to 0 for
12439 non-allocatable sections.
12440
18a8505e
AT
12441
124422020-01-13 Ali Tamur <tamur@google.com>
12443
12444 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12445 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12446 to gdb::optional. Update comments.
12447 (dwo_file): Update comments.
12448 (read_attribute): Update API to take an additional out parameter,
12449 need_reprocess. This is used to mark attributes that need other
12450 attributes (e.g. str_offsets_base) for correct computation which may not
12451 have been read yet.
12452 (read_attribute_reprocess): New function declaration.
12453 (read_addr_index): Likewise.
12454 (read_dwo_str_index): Likewise.
12455 (read_stub_str_index): Likewise.
12456 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12457 (lookup_addr_base): New function definition.
12458 (lookup_ranges_base): Likewise.
12459 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12460 lookup_ranges_base.
12461 (init_cutu_and_read_dies): Update comments.
12462 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12463 unit. This is used to inherit parent's str_offsets_base and addr_base.
12464 Update comments.
12465 (init_cutu_and_read_dies_simple): Reflect API changes.
12466 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12467 (create_cus_hash_table): Change API to take parent compile unit.
12468 Reflect API changes.
12469 (open_and_init_dwo_file): Reflect API changes.
12470 (dwarf2_get_pc_bounds): Update comments.
12471 (dwarf2_record_block_ranges): Likewise.
12472 (read_full_die_1): Change implementation to reprocess attributes that
12473 need str_offsets_base and addr_base.
12474 (partial_die_info::read): Likewise.
12475 (read_attribute_reprocess): New function definition.
12476 (read_attribute_value): Change API to take an additional out parameter,
12477 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12478 when a non-dwo compile unit has index based attributes.
12479 (read_attribute): Reflect API changes.
12480 (read_addr_index_1): Reflect API changes. Update comments.
12481 (dwarf2_read_addr_index_data): Reflect API changes.
12482 (dwarf2_read_addr_index): Likewise.
12483 (read_str_index): Change API and implementation. This becomes a helper
12484 to be used by the new string index related methods. Update error
12485 message and comments.
12486 (read_dwo_str_index): New function definition.
12487 (read_stub_str_index): Likewise.
12488 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12489 * symfile.h (dwarf2_debug_sections): Likewise.
12490 * xcoffread.c (dwarf2_debug_sections): Likewise.
12491
0cac9354
SM
124922020-01-13 Simon Marchi <simon.marchi@efficios.com>
12493
12494 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12495 core_reg_sect type to gdb_byte *.
12496 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12497 * cris-tdep.c (fetch_core_registers): Likewise.
12498 * corelow.c (core_target::get_core_register_section): Change
12499 type of `contents` to gdb::byte_vector.
12500
9a6d629c
AB
125012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12502
12503 * tui/tui-wingeneral.c (box_win): Position the title in the center
12504 of the border.
12505
d8b2f9e3
SM
125062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12507
12508 * corelow.c (core_target::get_core_register_section): Use
12509 std::vector instead of alloca.
12510
bb564c58
SM
125112020-01-13 Simon Marchi <simon.marchi@efficios.com>
12512
12513 * warning.m4: Add -Wmissing-declarations to build_warnings.
12514 * configure: Re-generate.
12515
6b366111
SM
125162020-01-13 Simon Marchi <simon.marchi@efficios.com>
12517
12518 * python/python.c (init__gdb_module): Add declaration.
12519
6c265988
SM
125202020-01-13 Simon Marchi <simon.marchi@efficios.com>
12521
12522 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12523 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12524 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12525 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12526 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12527 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12528 * ada-exp.y (_initialize_ada_exp): Add declaration.
12529 * ada-lang.c (_initialize_ada_language): Add declaration.
12530 * ada-tasks.c (_initialize_tasks): Add declaration.
12531 * agent.c (_initialize_agent): Add declaration.
12532 * aix-thread.c (_initialize_aix_thread): Add declaration.
12533 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12534 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12535 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12536 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12537 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12538 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12539 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12540 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12541 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12542 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12543 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12544 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12545 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12546 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12547 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12548 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12549 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12550 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12551 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12552 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12553 * annotate.c (_initialize_annotate): Add declaration.
12554 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12555 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12556 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12557 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12558 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12559 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12560 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12561 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12562 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12563 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12564 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12565 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12566 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12567 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12568 * auto-load.c (_initialize_auto_load): Add declaration.
12569 * auxv.c (_initialize_auxv): Add declaration.
12570 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12571 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12572 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12573 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12574 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12575 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12576 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12577 * breakpoint.c (_initialize_breakpoint): Add declaration.
12578 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12579 * btrace.c (_initialize_btrace): Add declaration.
12580 * charset.c (_initialize_charset): Add declaration.
12581 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12582 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12583 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12584 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12585 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12586 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12587 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12588 * coffread.c (_initialize_coffread): Add declaration.
12589 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12590 * compile/compile.c (_initialize_compile): Add declaration.
12591 * complaints.c (_initialize_complaints): Add declaration.
12592 * completer.c (_initialize_completer): Add declaration.
12593 * copying.c (_initialize_copying): Add declaration.
12594 * corefile.c (_initialize_core): Add declaration.
12595 * corelow.c (_initialize_corelow): Add declaration.
12596 * cp-abi.c (_initialize_cp_abi): Add declaration.
12597 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12598 * cp-support.c (_initialize_cp_support): Add declaration.
12599 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12600 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12601 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12602 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12603 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12604 * ctfread.c (_initialize_ctfread): Add declaration.
12605 * d-lang.c (_initialize_d_language): Add declaration.
12606 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12607 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12608 * dbxread.c (_initialize_dbxread): Add declaration.
12609 * dcache.c (_initialize_dcache): Add declaration.
12610 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12611 * disasm.c (_initialize_disasm): Add declaration.
12612 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12613 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12614 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12615 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12616 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12617 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12618 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12619 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12620 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12621 * elfread.c (_initialize_elfread): Add declaration.
12622 * exec.c (_initialize_exec): Add declaration.
12623 * extension.c (_initialize_extension): Add declaration.
12624 * f-lang.c (_initialize_f_language): Add declaration.
12625 * f-valprint.c (_initialize_f_valprint): Add declaration.
12626 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12627 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12628 * filesystem.c (_initialize_filesystem): Add declaration.
12629 * findcmd.c (_initialize_mem_search): Add declaration.
12630 * findvar.c (_initialize_findvar): Add declaration.
12631 * fork-child.c (_initialize_fork_child): Add declaration.
12632 * frame-base.c (_initialize_frame_base): Add declaration.
12633 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12634 * frame.c (_initialize_frame): Add declaration.
12635 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12636 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12637 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12638 * gcore.c (_initialize_gcore): Add declaration.
12639 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12640 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12641 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12642 * gdbarch.c (_initialize_gdbarch): Add declaration.
12643 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12644 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12645 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12646 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12647 * go-lang.c (_initialize_go_language): Add declaration.
12648 * go32-nat.c (_initialize_go32_nat): Add declaration.
12649 * guile/guile.c (_initialize_guile): Add declaration.
12650 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12651 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12652 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12653 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12654 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12655 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12656 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12657 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12658 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12659 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12660 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12661 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12662 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12663 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12664 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12665 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12666 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12667 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12668 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12669 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12670 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12671 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12672 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12673 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12674 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12675 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12676 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12677 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12678 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12679 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12680 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12681 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12682 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12683 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12684 * infcall.c (_initialize_infcall): Add declaration.
12685 * infcmd.c (_initialize_infcmd): Add declaration.
12686 * inflow.c (_initialize_inflow): Add declaration.
12687 * infrun.c (_initialize_infrun): Add declaration.
12688 * interps.c (_initialize_interpreter): Add declaration.
12689 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12690 * jit.c (_initialize_jit): Add declaration.
12691 * language.c (_initialize_language): Add declaration.
12692 * linux-fork.c (_initialize_linux_fork): Add declaration.
12693 * linux-nat.c (_initialize_linux_nat): Add declaration.
12694 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12695 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12696 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12697 * m2-lang.c (_initialize_m2_language): Add declaration.
12698 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12699 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12700 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12701 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12702 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12703 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12704 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12705 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12706 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12707 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12708 * machoread.c (_initialize_machoread): Add declaration.
12709 * macrocmd.c (_initialize_macrocmd): Add declaration.
12710 * macroscope.c (_initialize_macroscope): Add declaration.
12711 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12712 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12713 * maint.c (_initialize_maint_cmds): Add declaration.
12714 * mdebugread.c (_initialize_mdebugread): Add declaration.
12715 * memattr.c (_initialize_mem): Add declaration.
12716 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12717 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12718 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12719 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12720 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12721 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12722 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12723 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12724 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12725 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12726 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12727 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12728 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12729 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12730 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12731 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12732 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12733 * mipsread.c (_initialize_mipsread): Add declaration.
12734 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12735 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12736 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12737 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12738 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12739 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12740 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12741 * nto-procfs.c (_initialize_procfs): Add declaration.
12742 * objc-lang.c (_initialize_objc_language): Add declaration.
12743 * observable.c (_initialize_observer): Add declaration.
12744 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12745 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12746 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12747 * osabi.c (_initialize_gdb_osabi): Add declaration.
12748 * osdata.c (_initialize_osdata): Add declaration.
12749 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12750 * parse.c (_initialize_parse): Add declaration.
12751 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12752 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12753 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12754 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12755 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12756 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12757 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12758 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12759 * printcmd.c (_initialize_printcmd): Add declaration.
12760 * probe.c (_initialize_probe): Add declaration.
12761 * proc-api.c (_initialize_proc_api): Add declaration.
12762 * proc-events.c (_initialize_proc_events): Add declaration.
12763 * proc-service.c (_initialize_proc_service): Add declaration.
12764 * procfs.c (_initialize_procfs): Add declaration.
12765 * producer.c (_initialize_producer): Add declaration.
12766 * psymtab.c (_initialize_psymtab): Add declaration.
12767 * python/python.c (_initialize_python): Add declaration.
12768 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12769 * record-btrace.c (_initialize_record_btrace): Add declaration.
12770 * record-full.c (_initialize_record_full): Add declaration.
12771 * record.c (_initialize_record): Add declaration.
12772 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12773 * regcache.c (_initialize_regcache): Add declaration.
12774 * reggroups.c (_initialize_reggroup): Add declaration.
12775 * remote-notif.c (_initialize_notif): Add declaration.
12776 * remote-sim.c (_initialize_remote_sim): Add declaration.
12777 * remote.c (_initialize_remote): Add declaration.
12778 * reverse.c (_initialize_reverse): Add declaration.
12779 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12780 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12781 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12782 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12783 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12784 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12785 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12786 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12787 Add declaration.
12788 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12789 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12790 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12791 * rust-exp.y (_initialize_rust_exp): Add declaration.
12792 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12793 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12794 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12795 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12796 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12797 * score-tdep.c (_initialize_score_tdep): Add declaration.
12798 * ser-go32.c (_initialize_ser_dos): Add declaration.
12799 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12800 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12801 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12802 * ser-uds.c (_initialize_ser_socket): Add declaration.
12803 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12804 * serial.c (_initialize_serial): Add declaration.
12805 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12806 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12807 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12808 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12809 * skip.c (_initialize_step_skip): Add declaration.
12810 * sol-thread.c (_initialize_sol_thread): Add declaration.
12811 * solib-aix.c (_initialize_solib_aix): Add declaration.
12812 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12813 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12814 * solib-frv.c (_initialize_frv_solib): Add declaration.
12815 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12816 * solib-target.c (_initialize_solib_target): Add declaration.
12817 * solib.c (_initialize_solib): Add declaration.
12818 * source-cache.c (_initialize_source_cache): Add declaration.
12819 * source.c (_initialize_source): Add declaration.
12820 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12821 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12822 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12823 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12824 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12825 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12826 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12827 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12828 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12829 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12830 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12831 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12832 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12833 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12834 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12835 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12836 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12837 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12838 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12839 * stabsread.c (_initialize_stabsread): Add declaration.
12840 * stack.c (_initialize_stack): Add declaration.
12841 * stap-probe.c (_initialize_stap_probe): Add declaration.
12842 * std-regs.c (_initialize_frame_reg): Add declaration.
12843 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12844 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12845 * symfile.c (_initialize_symfile): Add declaration.
12846 * symmisc.c (_initialize_symmisc): Add declaration.
12847 * symtab.c (_initialize_symtab): Add declaration.
12848 * target.c (_initialize_target): Add declaration.
12849 * target-connection.c (_initialize_target_connection): Add
12850 declaration.
12851 * target-dcache.c (_initialize_target_dcache): Add declaration.
12852 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12853 * thread.c (_initialize_thread): Add declaration.
12854 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12855 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12856 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12857 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12858 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12859 * tracectf.c (_initialize_ctf): Add declaration.
12860 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12861 * tracefile.c (_initialize_tracefile): Add declaration.
12862 * tracepoint.c (_initialize_tracepoint): Add declaration.
12863 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12864 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12865 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12866 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12867 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12868 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12869 * tui/tui.c (_initialize_tui): Add declaration.
12870 * typeprint.c (_initialize_typeprint): Add declaration.
12871 * ui-style.c (_initialize_ui_style): Add declaration.
12872 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12873 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12874 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12875 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12876 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12877 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12878 * unittests/filtered_iterator-selftests.c
12879 (_initialize_filtered_iterator_selftests): Add declaration.
12880 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12881 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12882 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12883 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12884 * unittests/main-thread-selftests.c
12885 (_initialize_main_thread_selftests): Add declaration.
12886 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12887 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12888 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12889 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12890 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12891 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12892 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12893 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12894 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12895 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12896 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12897 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12898 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12899 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12900 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12901 declaration.
12902 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12903 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12904 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12905 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12906 * user-regs.c (_initialize_user_regs): Add declaration.
12907 * utils.c (_initialize_utils): Add declaration.
12908 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12909 * valops.c (_initialize_valops): Add declaration.
12910 * valprint.c (_initialize_valprint): Add declaration.
12911 * value.c (_initialize_values): Add declaration.
12912 * varobj.c (_initialize_varobj): Add declaration.
12913 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12914 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12915 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12916 * windows-nat.c (_initialize_windows_nat): Add declaration.
12917 (_initialize_check_for_gdb_ini): Add declaration.
12918 (_initialize_loadable): Add declaration.
12919 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12920 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12921 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12922 * xcoffread.c (_initialize_xcoffread): Add declaration.
12923 * xml-support.c (_initialize_xml_support): Add declaration.
12924 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12925 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12926 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12927 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12928
e2de1eec
SM
129292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12930
12931 * regformats/regdat.sh: Generate declaration for init function.
12932
e0037b4c
SM
129332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12934
12935 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12936 up.
12937 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12938 close_one_inferior>: New methods.
12939 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12940 pass down target to find_inferior_pid.
12941 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12942 Pass down target to find_inferior_ptid.
12943 (gdbsim_target::create_inferior): Pass down target to
12944 add_thread_silent.
12945 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12946 target down to find_inferior_ptid and switch_to_thread.
12947 (gdbsim_target::close): Update to call close_one_inferior.
12948 (struct resume_data): Remove.
12949 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12950 directly, rather than through a void pointer.
12951 (gdbsim_target::resume): Update to call resume_one_inferior.
12952
58920b5b
SM
129532020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12954
12955 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12956
4ec89149
PA
129572020-01-12 Pedro Alves <palves@redhat.com>
12958
12959 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12960 directly for the current inferior instead of
12961 discard_all_inferiors.
12962 (discard_all_inferiors): Delete.
12963
7c392d1d
TT
129642020-01-11 Tom Tromey <tom@tromey.com>
12965
12966 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12967 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12968 deprecated_safe_get_selected_frame.
12969
d9ebdab7
TBA
129702020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12971
12972 * inferior.c (print_inferior): Switch inferior before printing it.
12973
f3c469b9
PA
129742020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12975 Pedro Alves <palves@redhat.com>
12976
12977 * progspace-and-thread.c (switch_to_program_space_and_thread):
12978 Assert there's an inferior for PSPACE. Use
12979 switch_to_inferior_no_thread to switch the inferior too.
12980 * progspace.c (program_space::~program_space): Call
12981 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12982 (program_space::free_all_objfiles): Don't call clear_symtab_users
12983 here.
12984 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12985
65c574f6
PA
129862020-01-10 Pedro Alves <palves@redhat.com>
12987
12988 * NEWS: Mention multi-target debugging, "info connections", and
12989 "add-inferior -no-connection".
12990
2f4fcf00
PA
129912020-01-10 Pedro Alves <palves@redhat.com>
12992
12993 * infrun.c: Include "target-connection.h".
12994 (check_multi_target_resumption): New.
12995 (proceed): Call it.
12996 * target-connection.c (make_target_connection_string): Make
12997 extern.
12998 * target-connection.h (make_target_connection_string): Declare.
12999
121b3efd
PA
130002020-01-10 Pedro Alves <palves@redhat.com>
13001
13002 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13003 * inferior.c (uiout_field_connection): New function.
13004 (print_inferior): Add new "connection-id" column.
13005 (add_inferior_command): Show connection number/string of added
13006 inferior.
13007 * process-stratum-target.h
13008 (process_stratum_target::connection_string): New virtual method.
13009 (process_stratum_target::connection_number): New field.
13010 * remote.c (remote_target::connection_string): New override.
13011 * target-connection.c: New file.
13012 * target-connection.h: New file.
13013 * target.c (decref_target): Remove process_stratum targets from
13014 the connection list.
13015 (target_stack::push): Add process_stratum targets to the
13016 connection list.
13017
4f837581
PA
130182020-01-10 Pedro Alves <palves@redhat.com>
13019
13020 Revert:
13021 2016-04-12 Pedro Alves <palves@redhat.com>
13022 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13023 Remove references to name.
13024 * serial.h (struct serial) <name>: Delete.
13025
f4ec508e
PA
130262020-01-10 Pedro Alves <palves@redhat.com>
13027
13028 * gdbarch-selftests.c (register_to_value_test): Remove "target
13029 already pushed" check.
13030
5b6d1e4f
PA
130312020-01-10 Pedro Alves <palves@redhat.com>
13032 John Baldwin <jhb@FreeBSD.org>
13033
13034 * aarch64-linux-nat.c
13035 (aarch64_linux_nat_target::thread_architecture): Adjust.
13036 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13037 (task_command_1): Likewise.
13038 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13039 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13040 (aix_thread_target::store_registers)
13041 (aix_thread_target::thread_alive): Adjust.
13042 * amd64-fbsd-tdep.c: Include "inferior.h".
13043 (amd64fbsd_get_thread_local_address): Pass down target.
13044 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13045 thread's gdbarch instead of target_gdbarch.
13046 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13047 get_last_target_status.
13048 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13049 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13050 inferiors.
13051 (update_inserted_breakpoint_locations): Skip if inferiors with no
13052 execution.
13053 (update_global_location_list): When handling moribund locations,
13054 find representative inferior for location's pspace, and use thread
13055 count of its process_stratum target.
13056 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13057 * bsd-uthread.c (bsd_uthread_target::wait): Use
13058 as_process_stratum_target and adjust thread_change_ptid and
13059 add_thread calls.
13060 (bsd_uthread_target::update_thread_list): Use
13061 as_process_stratum_target and adjust find_thread_ptid,
13062 thread_change_ptid and add_thread calls.
13063 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13064 find_thread_ptid call.
13065 * corelow.c (add_to_thread_list): Adjust add_thread call.
13066 (core_target_open): Adjust add_thread_silent and thread_count
13067 calls.
13068 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13069 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13070 * event-top.c (async_disconnect): Pop targets from all inferiors.
13071 * exec.c (add_target_sections): Push exec target on all inferiors
13072 sharing the program space.
13073 (remove_target_sections): Remove the exec target from all
13074 inferiors sharing the program space.
13075 (exec_on_vfork): New.
13076 * exec.h (exec_on_vfork): Declare.
13077 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13078 Pass it down.
13079 (fbsd_nat_target::update_thread_list): Adjust.
13080 (fbsd_nat_target::resume): Adjust.
13081 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13082 down.
13083 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13084 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13085 get_thread_arch_regcache call.
13086 * fork-child.c (gdb_startup_inferior): Pass target down to
13087 startup_inferior and set_executing.
13088 * gdbthread.h (struct process_stratum_target): Forward declare.
13089 (add_thread, add_thread_silent, add_thread_with_info)
13090 (in_thread_list): Add process_stratum_target parameter.
13091 (find_thread_ptid(inferior*, ptid_t)): New overload.
13092 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13093 parameter.
13094 (all_threads()): Delete overload.
13095 (all_threads, all_non_exited_threads): Add process_stratum_target
13096 parameter.
13097 (all_threads_safe): Use brace initialization.
13098 (thread_count): Add process_stratum_target parameter.
13099 (set_resumed, set_running, set_stop_requested, set_executing)
13100 (threads_are_executing, finish_thread_state): Add
13101 process_stratum_target parameter.
13102 (switch_to_thread): Use is_current_thread.
13103 * i386-fbsd-tdep.c: Include "inferior.h".
13104 (i386fbsd_get_thread_local_address): Pass down target.
13105 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13106 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13107 have_inferiors check.
13108 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13109 (inf_ptrace_target::attach): Adjust.
13110 * infcall.c (run_inferior_call): Adjust.
13111 * infcmd.c (run_command_1): Pass target to
13112 scoped_finish_thread_state.
13113 (proceed_thread_callback): Skip inferiors with no execution.
13114 (continue_command): Rename 'all_threads' local to avoid hiding
13115 'all_threads' function. Adjust get_last_target_status call.
13116 (prepare_one_step): Adjust set_running call.
13117 (signal_command): Use user_visible_resume_target. Compare thread
13118 pointers instead of inferior_ptid.
13119 (info_program_command): Adjust to pass down target.
13120 (attach_command): Mark target's 'thread_executing' flag.
13121 (stop_current_target_threads_ns): New, factored out from ...
13122 (interrupt_target_1): ... this. Switch inferior before making
13123 target calls.
13124 * inferior-iter.h
13125 (struct all_inferiors_iterator, struct all_inferiors_range)
13126 (struct all_inferiors_safe_range)
13127 (struct all_non_exited_inferiors_range): Filter on
13128 process_stratum_target too. Remove explicit.
13129 * inferior.c (inferior::inferior): Push dummy target on target
13130 stack.
13131 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13132 Add process_stratum_target parameter, and pass it down.
13133 (have_live_inferiors): Adjust.
13134 (switch_to_inferior_and_push_target): New.
13135 (add_inferior_command, clone_inferior_command): Handle
13136 "-no-connection" parameter. Use
13137 switch_to_inferior_and_push_target.
13138 (_initialize_inferior): Mention "-no-connection" option in
13139 the help of "add-inferior" and "clone-inferior" commands.
13140 * inferior.h: Include "process-stratum-target.h".
13141 (interrupt_target_1): Use bool.
13142 (struct inferior) <push_target, unpush_target, target_is_pushed,
13143 find_target_beneath, top_target, process_target, target_at,
13144 m_stack>: New.
13145 (discard_all_inferiors): Delete.
13146 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13147 (all_inferiors, all_non_exited_inferiors): Add
13148 process_stratum_target parameter.
13149 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13150 (target_last_proc_target): New global.
13151 (follow_fork_inferior): Push target on new inferior. Pass target
13152 to add_thread_silent. Call exec_on_vfork. Handle target's
13153 reference count.
13154 (follow_fork): Adjust get_last_target_status call. Also consider
13155 target.
13156 (follow_exec): Push target on new inferior.
13157 (struct execution_control_state) <target>: New field.
13158 (user_visible_resume_target): New.
13159 (do_target_resume): Call target_async.
13160 (resume_1): Set target's threads_executing flag. Consider resume
13161 target.
13162 (commit_resume_all_targets): New.
13163 (proceed): Also consider resume target. Skip threads of inferiors
13164 with no execution. Commit resumtion in all targets.
13165 (start_remote): Pass current inferior to wait_for_inferior.
13166 (infrun_thread_stop_requested): Consider target as well. Pass
13167 thread_info pointer to clear_inline_frame_state instead of ptid.
13168 (infrun_thread_thread_exit): Consider target as well.
13169 (random_pending_event_thread): New inferior parameter. Use it.
13170 (do_target_wait): Rename to ...
13171 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13172 down.
13173 (threads_are_resumed_pending_p, do_target_wait): New.
13174 (prepare_for_detach): Adjust calls.
13175 (wait_for_inferior): New inferior parameter. Handle it. Use
13176 do_target_wait_1 instead of do_target_wait.
13177 (fetch_inferior_event): Adjust. Switch to representative
13178 inferior. Pass target down.
13179 (set_last_target_status): Add process_stratum_target parameter.
13180 Save target in global.
13181 (get_last_target_status): Add process_stratum_target parameter and
13182 handle it.
13183 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13184 (context_switch): Check inferior_ptid == null_ptid before calling
13185 inferior_thread().
13186 (get_inferior_stop_soon): Pass down target.
13187 (wait_one): Rename to ...
13188 (poll_one_curr_target): ... this.
13189 (struct wait_one_event): New.
13190 (wait_one): New.
13191 (stop_all_threads): Adjust.
13192 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13193 event's target.
13194 (switch_back_to_stepped_thread): Also consider target.
13195 (print_stop_event): Update.
13196 (normal_stop): Update. Also consider the resume target.
13197 * infrun.h (wait_for_inferior): Remove declaration.
13198 (user_visible_resume_target): New declaration.
13199 (get_last_target_status, set_last_target_status): New
13200 process_stratum_target parameter.
13201 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13202 process_stratum_target parameter, and use it.
13203 (clear_inline_frame_state (thread_info*)): New.
13204 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13205 process_stratum_target parameter.
13206 (clear_inline_frame_state (thread_info*)): Declare.
13207 * linux-fork.c (delete_checkpoint_command): Pass target down to
13208 find_thread_ptid.
13209 (checkpoint_command): Adjust.
13210 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13211 instead of just tweaking inferior_ptid.
13212 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13213 (exit_lwp): Pass target down to find_thread_ptid.
13214 (attach_proc_task_lwp_callback): Pass target down to
13215 add_thread/set_running/set_executing.
13216 (linux_nat_target::attach): Pass target down to
13217 thread_change_ptid.
13218 (get_detach_signal): Pass target down to find_thread_ptid.
13219 Consider last target status's target.
13220 (linux_resume_one_lwp_throw, resume_lwp)
13221 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13222 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13223 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13224 (linux_nat_target::async_wait_fd): New.
13225 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13226 target down.
13227 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13228 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13229 * linux-thread-db.c (struct thread_db_info::process_target): New
13230 field.
13231 (add_thread_db_info): Save target.
13232 (get_thread_db_info): New process_stratum_target parameter. Also
13233 match target.
13234 (delete_thread_db_info): New process_stratum_target parameter.
13235 Also match target.
13236 (thread_from_lwp): Adjust to pass down target.
13237 (thread_db_notice_clone): Pass down target.
13238 (check_thread_db_callback): Pass down target.
13239 (try_thread_db_load_1): Always push the thread_db target.
13240 (try_thread_db_load, record_thread): Pass target down.
13241 (thread_db_target::detach): Pass target down. Always unpush the
13242 thread_db target.
13243 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13244 target down. Always unpush the thread_db target.
13245 (find_new_threads_callback, thread_db_find_new_threads_2)
13246 (thread_db_target::update_thread_list): Pass target down.
13247 (thread_db_target::pid_to_str): Pass current inferior down.
13248 (thread_db_target::get_thread_local_address): Pass target down.
13249 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13250 target down.
13251 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13252 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13253 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13254 (procfs_init_inferior): Rename to ...
13255 (procfs_target::procfs_init_inferior): ... this and adjust.
13256 (procfs_target::create_inferior, procfs_notice_thread)
13257 (procfs_do_thread_registers): Adjust.
13258 * ppc-fbsd-tdep.c: Include "inferior.h".
13259 (ppcfbsd_get_thread_local_address): Pass down target.
13260 * proc-service.c (ps_xfer_memory): Switch current inferior and
13261 program space as well.
13262 (get_ps_regcache): Pass target down.
13263 * process-stratum-target.c
13264 (process_stratum_target::thread_address_space)
13265 (process_stratum_target::thread_architecture): Pass target down.
13266 * process-stratum-target.h
13267 (process_stratum_target::threads_executing): New field.
13268 (as_process_stratum_target): New.
13269 * ravenscar-thread.c
13270 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13271 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13272 down.
13273 * record-btrace.c (record_btrace_target::info_record): Adjust.
13274 (record_btrace_target::record_method)
13275 (record_btrace_target::record_is_replaying)
13276 (record_btrace_target::fetch_registers)
13277 (get_thread_current_frame_id, record_btrace_target::resume)
13278 (record_btrace_target::wait, record_btrace_target::stop): Pass
13279 target down.
13280 * record-full.c (record_full_wait_1): Switch to event thread.
13281 Pass target down.
13282 * regcache.c (regcache::regcache)
13283 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13284 process_stratum_target parameter and handle it.
13285 (current_thread_target): New global.
13286 (get_thread_regcache): Add process_stratum_target parameter and
13287 handle it. Switch inferior before calling target method.
13288 (get_thread_regcache): Pass target down.
13289 (get_thread_regcache_for_ptid): Pass target down.
13290 (registers_changed_ptid): Add process_stratum_target parameter and
13291 handle it.
13292 (registers_changed_thread, registers_changed): Pass target down.
13293 (test_get_thread_arch_aspace_regcache): New.
13294 (current_regcache_test): Define a couple local test_target_ops
13295 instances and use them for testing.
13296 (readwrite_regcache): Pass process_stratum_target parameter.
13297 (cooked_read_test, cooked_write_test): Pass mock_target down.
13298 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13299 (get_thread_arch_aspace_regcache): Add process_stratum_target
13300 parameter.
13301 (regcache::target): New method.
13302 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13303 (regcache::registers_changed_ptid): Add process_stratum_target
13304 parameter.
13305 (regcache::m_target): New field.
13306 (registers_changed_ptid): Add process_stratum_target parameter.
13307 * remote.c (remote_state::supports_vCont_probed): New field.
13308 (remote_target::async_wait_fd): New method.
13309 (remote_unpush_and_throw): Add remote_target parameter.
13310 (get_current_remote_target): Adjust.
13311 (remote_target::remote_add_inferior): Push target.
13312 (remote_target::remote_add_thread)
13313 (remote_target::remote_notice_new_inferior)
13314 (get_remote_thread_info): Pass target down.
13315 (remote_target::update_thread_list): Skip threads of inferiors
13316 bound to other targets. (remote_target::close): Don't discard
13317 inferiors. (remote_target::add_current_inferior_and_thread)
13318 (remote_target::process_initial_stop_replies)
13319 (remote_target::start_remote)
13320 (remote_target::remote_serial_quit_handler): Pass down target.
13321 (remote_target::remote_unpush_target): New remote_target
13322 parameter. Unpush the target from all inferiors.
13323 (remote_target::remote_unpush_and_throw): New remote_target
13324 parameter. Pass it down.
13325 (remote_target::open_1): Check whether the current inferior has
13326 execution instead of checking whether any inferior is live. Pass
13327 target down.
13328 (remote_target::remote_detach_1): Pass down target. Use
13329 remote_unpush_target.
13330 (extended_remote_target::attach): Pass down target.
13331 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13332 (remote_target::append_resumption): Pass down target.
13333 (remote_target::append_pending_thread_resumptions)
13334 (remote_target::remote_resume_with_hc, remote_target::resume)
13335 (remote_target::commit_resume): Pass down target.
13336 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13337 (remote_target::interrupt_query)
13338 (remote_target::remove_new_fork_children)
13339 (remote_target::check_pending_events_prevent_wildcard_vcont)
13340 (remote_target::remote_parse_stop_reply)
13341 (remote_target::process_stop_reply): Pass down target.
13342 (first_remote_resumed_thread): New remote_target parameter. Pass
13343 it down.
13344 (remote_target::wait_as): Pass down target.
13345 (unpush_and_perror): New remote_target parameter. Pass it down.
13346 (remote_target::readchar, remote_target::remote_serial_write)
13347 (remote_target::getpkt_or_notif_sane_1)
13348 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13349 down target.
13350 (remote_target::mourn_inferior): Pass down target. Use
13351 remote_unpush_target.
13352 (remote_target::core_of_thread)
13353 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13354 (remote_target::pid_to_exec_file)
13355 (remote_target::thread_handle_to_thread_info): Pass down target.
13356 (remote_target::async_wait_fd): New.
13357 * riscv-fbsd-tdep.c: Include "inferior.h".
13358 (riscv_fbsd_get_thread_local_address): Pass down target.
13359 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13360 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13361 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13362 Adjust.
13363 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13364 * solib-svr4.c (enable_break): Pass down target.
13365 * spu-multiarch.c (parse_spufs_run): Pass down target.
13366 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13367 * target-delegates.c: Regenerate.
13368 * target.c (g_target_stack): Delete.
13369 (current_top_target): Return the current inferior's top target.
13370 (target_has_execution_1): Refer to the passed-in inferior's top
13371 target.
13372 (target_supports_terminal_ours): Check whether the initial
13373 inferior was already created.
13374 (decref_target): New.
13375 (target_stack::push): Incref/decref the target.
13376 (push_target, push_target, unpush_target): Adjust.
13377 (target_stack::unpush): Defref target.
13378 (target_is_pushed): Return bool. Adjust to refer to the current
13379 inferior's target stack.
13380 (dispose_inferior): Delete, and inline parts ...
13381 (target_preopen): ... here. Only dispose of the current inferior.
13382 (target_detach): Hold strong target reference while detaching.
13383 Pass target down.
13384 (target_thread_name): Add assertion.
13385 (target_resume): Pass down target.
13386 (target_ops::beneath, find_target_at): Adjust to refer to the
13387 current inferior's target stack.
13388 (get_dummy_target): New.
13389 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13390 has a thread running.
13391 (initialize_targets): Rename to ...
13392 (_initialize_target): ... this.
13393 * target.h: Include "gdbsupport/refcounted-object.h".
13394 (struct target_ops): Inherit refcounted_object.
13395 (target_ops::shortname, target_ops::longname): Make const.
13396 (target_ops::async_wait_fd): New method.
13397 (decref_target): Declare.
13398 (struct target_ops_ref_policy): New.
13399 (target_ops_ref): New typedef.
13400 (get_dummy_target): Declare function.
13401 (target_is_pushed): Return bool.
13402 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13403 (all_matching_threads_iterator::all_matching_threads_iterator):
13404 Handle filter target.
13405 * thread-iter.h (struct all_matching_threads_iterator, struct
13406 all_matching_threads_range, class all_non_exited_threads_range):
13407 Filter by target too. Remove explicit.
13408 * thread.c (threads_executing): Delete.
13409 (inferior_thread): Pass down current inferior.
13410 (clear_thread_inferior_resources): Pass down thread pointer
13411 instead of ptid_t.
13412 (add_thread_silent, add_thread_with_info, add_thread): Add
13413 process_stratum_target parameter. Use it for thread and inferior
13414 searches.
13415 (is_current_thread): New.
13416 (thread_info::deletable): Use it.
13417 (find_thread_ptid, thread_count, in_thread_list)
13418 (thread_change_ptid, set_resumed, set_running): New
13419 process_stratum_target parameter. Pass it down.
13420 (set_executing): New process_stratum_target parameter. Pass it
13421 down. Adjust reference to 'threads_executing'.
13422 (threads_are_executing): New process_stratum_target parameter.
13423 Adjust reference to 'threads_executing'.
13424 (set_stop_requested, finish_thread_state): New
13425 process_stratum_target parameter. Pass it down.
13426 (switch_to_thread): Also match inferior.
13427 (switch_to_thread): New process_stratum_target parameter. Pass it
13428 down.
13429 (update_threads_executing): Reimplement.
13430 * top.c (quit_force): Pop targets from all inferior.
13431 (gdb_init): Don't call initialize_targets.
13432 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13433 Declare.
13434 (windows_add_thread, windows_delete_thread): Adjust.
13435 (get_windows_debug_event): Rename to ...
13436 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13437 * tracefile-tfile.c (tfile_target_open): Pass down target.
13438 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13439 Forward declare.
13440 (switch_to_thread): Add process_stratum_target parameter.
13441 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13442 parameter. Use it.
13443 (mi_on_resume): Pass target down.
13444 * nat/fork-inferior.c (startup_inferior): Add
13445 process_stratum_target parameter. Pass it down.
13446 * nat/fork-inferior.h (startup_inferior): Add
13447 process_stratum_target parameter.
13448 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13449
75c6c844
PA
134502020-01-10 Pedro Alves <palves@redhat.com>
13451
13452 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13453 directly. Instead find the first thread in the thread list and
13454 use switch_to_thread.
13455
78f2c40a
PA
134562020-01-10 Pedro Alves <palves@redhat.com>
13457
13458 * remote.c (remote_target::remote_add_inferior): Don't bind a
13459 process to the current inferior if the current inferior is already
13460 bound to a process.
13461
e7af6c70
TBA
134622020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13463 Pedro Alves <palves@redhat.com>
13464
13465 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13466 If no process is specified, return null_ptid instead of
13467 inferior_ptid.
13468 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13469 TARGET_WAITKIND_SIGNALLED with no pid.
13470
31ba933e
PA
134712020-01-10 Pedro Alves <palves@redhat.com>
13472
13473 * remote.c (first_remote_resumed_thread): New.
13474 (remote_target::wait_as): Use it as default event_ptid instead of
13475 inferior_ptid.
13476
735fc2ca
PA
134772020-01-10 Pedro Alves <palves@redhat.com>
13478
13479 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13480
c17e02e1
PA
134812020-01-10 Pedro Alves <palves@redhat.com>
13482
13483 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13484 not -1.
13485
ab1ddbcf
PA
134862020-01-10 Pedro Alves <palves@redhat.com>
13487
13488 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13489 ptid to get_last_target_status.
13490 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13491 ptid to get_last_target_status.
13492 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13493 get_last_target_status.
13494 (info_program_command): Don't pass a target_waitstatus to
13495 get_last_target_status.
13496 * infrun.c (init_wait_for_inferior): Use
13497 nullify_last_target_wait_ptid.
13498 (get_last_target_status): Handle nullptr arguments.
13499 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13500 (print_stop_event): Don't pass a ptid to get_last_target_status.
13501 (normal_stop): Don't pass a ptid to get_last_target_status.
13502 * infrun.h (get_last_target_status, set_last_target_status): Move
13503 comments here and update.
13504 (nullify_last_target_wait_ptid): Declare.
13505 * linux-fork.c (fork_load_infrun_state): Remove local extern
13506 declaration of nullify_last_target_wait_ptid.
13507 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13508 to get_last_target_status.
13509
f3f8ece4
PA
135102020-01-10 Pedro Alves <palves@redhat.com>
13511
13512 * gdbthread.h (scoped_restore_current_thread)
13513 <dont_restore, restore, m_dont_restore>: Declare.
13514 * thread.c (thread_alive): Add assertion. Return bool.
13515 (switch_to_thread_if_alive): New.
13516 (prune_threads): Switch inferior/thread.
13517 (print_thread_info_1): Switch thread before calling target methods.
13518 (scoped_restore_current_thread::restore): New, factored out from
13519 ...
13520 (scoped_restore_current_thread::~scoped_restore_current_thread):
13521 ... this.
13522 (scoped_restore_current_thread::scoped_restore_current_thread):
13523 Add assertion.
13524 (thread_apply_all_command, thread_select): Use
13525 switch_to_thread_if_alive.
13526 * infrun.c (proceed, restart_threads, handle_signal_stop)
13527 (switch_back_to_stepped_thread): Switch current thread before
13528 calling target methods.
13529
db2d40f7
PA
135302020-01-10 Pedro Alves <palves@redhat.com>
13531
13532 * inferior.c (switch_to_inferior_no_thread): New function,
13533 factored out from ...
13534 (inferior_command): ... here.
13535 * inferior.h (switch_to_inferior_no_thread): Declare.
13536 * mi/mi-main.c (run_one_inferior): Use
13537 switch_to_inferior_no_thread.
13538
bd420a2d
PA
135392020-01-10 Pedro Alves <palves@redhat.com>
13540
13541 * infcmd.c (kill_command): Remove dead code.
13542
ddf5db90
PA
135432020-01-10 Pedro Alves <palves@redhat.com>
13544
13545 * remote.c (remote_target::mourn_inferior): No longer check
13546 whether the target is running.
13547
5018ce90
PA
135482020-01-10 Pedro Alves <palves@redhat.com>
13549
13550 * corelow.c (core_target::has_execution): Change parameter type to
13551 inferior pointer.
13552 * inferior.c (number_of_live_inferiors): Use
13553 inferior::has_execution instead of target_has_execution_1.
13554 * inferior.h (inferior::has_execution): New.
13555 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13556 inferior::has_execution instead of target_has_execution_1.
13557 * process-stratum-target.c
13558 (process_stratum_target::has_execution): Change parameter type to
13559 inferior pointer. Check the inferior's PID instead of
13560 inferior_ptid.
13561 * process-stratum-target.h
13562 (process_stratum_target::has_execution): Change parameter type to
13563 inferior pointer.
13564 * record-full.c (record_full_core_target::has_execution): Change
13565 parameter type to inferior pointer.
13566 * target.c (target_has_execution_1): Change parameter type to
13567 inferior pointer.
13568 (target_has_execution_current): Adjust.
13569 * target.h (target_ops::has_execution): Change parameter type to
13570 inferior pointer.
13571 (target_has_execution_1): Change parameter type to inferior
13572 pointer. Change return type to bool.
13573 * tracefile.h (tracefile_target::has_execution): Change parameter
13574 type to inferior pointer.
13575
74375d18
PA
135762020-01-10 Pedro Alves <palves@redhat.com>
13577
13578 * exceptions.c (print_flush): Remove current_top_target() check.
13579
acdf84a6
PA
135802020-01-10 Pedro Alves <palves@redhat.com>
13581
13582 * remote.c (show_remote_exec_file): Show the current inferior's
13583 exec-file instead of the command variable's value.
13584
ec506636
PA
135852020-01-10 Pedro Alves <palves@redhat.com>
13586
13587 * record-full.c (record_full_resume_ptid): New global.
13588 (record_full_target::resume): Set it.
13589 (record_full_wait_1): Use record_full_resume_ptid instead of
13590 inferior_ptid.
13591
873657b9
PA
135922020-01-10 Pedro Alves <palves@redhat.com>
13593
13594 * gdbthread.h (scoped_restore_current_thread)
13595 <dont_restore, restore, m_dont_restore>: Declare.
13596 * thread.c (thread_alive): Add assertion. Return bool.
13597 (switch_to_thread_if_alive): New.
13598 (prune_threads): Switch inferior/thread.
13599 (print_thread_info_1): Switch thread before calling target methods.
13600 (scoped_restore_current_thread::restore): New, factored out from
13601 ...
13602 (scoped_restore_current_thread::~scoped_restore_current_thread):
13603 ... this.
13604 (scoped_restore_current_thread::scoped_restore_current_thread):
13605 Add assertion.
13606 (thread_apply_all_command, thread_select): Use
13607 switch_to_thread_if_alive.
13608
7f0ae84c
GB
136092020-01-10 George Barrett <bob@bob131.so>
13610
13611 * stap-probe.c (stap_modify_semaphore): Don't check for null
13612 semaphores.
13613 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13614 for null semaphores.
13615
f5a7c406
AB
136162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13617
13618 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13619 all source windows, and maintain horizontal scroll status while
13620 doing so.
13621
9ae6bf64
TT
136222020-01-09 Tom Tromey <tom@tromey.com>
13623
13624 PR tui/18932:
13625 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13626 update_source_window, not print_source_lines.
13627
b2efe70c
AB
136282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13629
13630 * tui/tui.c (tui_enable): Register tui hooks after calling
13631 tui_display_main.
13632
5f23a082
CB
136332020-01-09 Christian Biesinger <cbiesinger@google.com>
13634
13635 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13636
3061113b
SM
136372020-01-08 Simon Marchi <simon.marchi@efficios.com>
13638
13639 * thread.c (print_thread_info_1): Fix indentation.
13640
57d75002
CB
136412020-01-09 Christian Biesinger <cbiesinger@google.com>
13642
13643 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13644 unique_xmalloc_ptr outside the if to always free the demangled name.
13645
6a053cb1
TT
136462020-01-08 Tom Tromey <tromey@adacore.com>
13647
13648 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13649 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13650 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13651 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13652 Remove.
13653 (section_offsets): New typedef.
13654 * symtab.c (fixup_section, get_msymbol_address): Update.
13655 * symmisc.c (dump_msymbols): Update.
13656 * symfile.h (relative_addr_info_to_section_offsets)
13657 (symfile_map_offsets_to_segments): Update.
13658 * symfile.c (build_section_addr_info_from_objfile)
13659 (init_objfile_sect_indices): Update.
13660 (struct place_section_arg): Change type of "offsets".
13661 (place_section): Update.
13662 (relative_addr_info_to_section_offsets): Change type of
13663 "section_offsets". Remove "num_sections" parameter.
13664 (default_symfile_offsets, syms_from_objfile_1)
13665 (set_objfile_default_section_offset): Update.
13666 (reread_symbols): No need to preserve section offsets by hand.
13667 (symfile_map_offsets_to_segments): Change type of "offsets".
13668 * stap-probe.c (relocate_address): Update.
13669 * stabsread.h (process_one_symbol): Update.
13670 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13671 (solib_target_relocate_section_addresses): Update.
13672 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13673 Update.
13674 * solib-frv.c (frv_relocate_main_executable): Update.
13675 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13676 * solib-aix.c (solib_aix_get_section_offsets): Change return
13677 type.
13678 (solib_aix_solib_create_inferior_hook): Update.
13679 * remote.c (remote_target::get_offsets): Update.
13680 * psymtab.c (find_pc_sect_psymtab): Update.
13681 * psympriv.h (struct partial_symbol) <address, text_low,
13682 text_high>: Update.
13683 * objfiles.h (obj_section_offset): Update.
13684 (struct objfile) <section_offsets>: Change type.
13685 <num_sections>: Remove.
13686 (objfile_relocate): Update.
13687 * objfiles.c (entry_point_address_query): Update
13688 (relocate_one_symbol): Change type of "section_offsets".
13689 (objfile_relocate1, objfile_relocate1): Change type of
13690 "new_offsets".
13691 (objfile_rebase1): Update.
13692 * mipsread.c (mipscoff_symfile_read): Update.
13693 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13694 parameter.
13695 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13696 (parse_external, psymtab_to_symtab_1): Update.
13697 * machoread.c (macho_symfile_offsets): Update.
13698 * ia64-tdep.c (ia64_find_unwind_table): Update.
13699 * hppa-tdep.c (read_unwind_info): Update.
13700 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13701 * dwarf2read.c (create_addrmap_from_index)
13702 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13703 (process_psymtab_comp_unit_reader, add_partial_symbol)
13704 (add_partial_subprogram, process_full_comp_unit)
13705 (read_file_scope, read_func_scope, read_lexical_block_scope)
13706 (read_call_site_scope, dwarf2_rnglists_process)
13707 (dwarf2_ranges_process, dwarf2_ranges_read)
13708 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13709 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13710 Update.
13711 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13712 Update.
13713 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13714 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13715 (process_one_symbol): Change type of "section_offsets".
13716 * ctfread.c (get_objfile_text_range): Update.
13717 * coffread.c (coff_symtab_read, enter_linenos)
13718 (process_coff_symbol): Update.
13719 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13720 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13721
456e800a
TT
137222020-01-08 Tom Tromey <tromey@adacore.com>
13723
13724 * dwarf2read.c (parse_macro_definition): Use std::string.
13725 (parse_macro_definition): Likewise.
13726
6dfa2fc2
TT
137272020-01-08 Tom Tromey <tromey@adacore.com>
13728
13729 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13730 (ATTR_ALLOC_CHUNK): Remove.
13731
421d1616
TT
137322020-01-08 Tom Tromey <tromey@adacore.com>
13733
13734 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13735
43816ebc
TT
137362020-01-08 Tom Tromey <tromey@adacore.com>
13737
13738 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13739 (dwarf2_compute_name, open_dwo_file): Likewise.
13740 (process_enumeration_scope): Use std::vector.
13741 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13742 (partial_die_info::fixup, dwarf2_start_subfile)
13743 (guess_full_die_structure_name, dwarf2_name): Likewise.
13744 (determine_prefix): Update.
13745 (guess_full_die_structure_name): Make return type const.
13746 (partial_die_full_name): Return unique_xmalloc_ptr.
13747 (DW_FIELD_ALLOC_CHUNK): Remove.
13748
4212d509
TT
137492020-01-07 Tom Tromey <tromey@adacore.com>
13750
13751 PR build/24937:
13752 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13753
06a6207a
JT
137542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13755
13756 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13757
153d79c4
AB
137582020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13759
13760 * stack.c (print_frame_info): Move disassemble_next_line code
13761 inside source_print block.
13762
66182876
EZ
137632020-01-06 Eli Zaretskii <eliz@gnu.org>
13764
13765 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13766 gdb/signals.h, as we are now using native signal symbols.
13767
cbfa8581
SV
137682020-01-06 Shahab Vahedi <shahab@synopsys.com>
13769
13770 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13771 overflow by an early check of content vs threshold.
aac66a4c 13772 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13773 Likewise.
13774
3f602821
EZ
137752020-01-06 Eli Zaretskii <eliz@gnu.org>
13776
13777 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13778
a08c904d
JT
137792020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13780
13781 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13782 export table if no section contains it's RVA.
13783
89a65580
EZ
137842020-01-06 Eli Zaretskii <eliz@gnu.org>
13785
13786 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13787
8b7fcda2
HD
137882020-01-06 Hannes Domani <ssbssa@yahoo.de>
13789
13790 * source.c (print_source_lines_base): Set last_line_listed.
13791
a61b4f69
SV
137922020-01-06 Shahab Vahedi <shahab@synopsys.com>
13793
13794 * tui/tui-disasm.c: Remove trailing spaces.
13795
559e7e50
EZ
137962020-01-06 Eli Zaretskii <eliz@gnu.org>
13797 Pedro Alves <palves@redhat.com>
13798
13799 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13800 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13801 (windows_gdb_signal_to_target): New function, uses the above
13802 enumeration to convert GDB internal signal codes to equivalent
13803 Windows codes.
13804 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13805 * windows-nat.c: Include "gdb_wait.h".
13806 (get_windows_debug_event): Extract the fatal exception from the
13807 exit status and convert to the equivalent Posix signal number.
13808 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13809 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13810 * gdbsupport/gdb_wait.c: New file, implements
13811 windows_status_to_termsig.
13812 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13813 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13814
f2302a34
AB
138152020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13816
13817 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13818 show_layout.
13819
6a5206eb
LM
138202020-01-05 Luis Machado <luis.machado@linaro.org>
13821
13822 * aarch64-linux-nat.c
13823 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13824 and bfd_mach_aarch64.
13825
6ec1d75e
PW
138262020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13827
13828 * ui-file.c (stdio_file::can_emit_style_escape)
13829 (tee_file::can_emit_style_escape): Ensure style is used also on
13830 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13831 to gdb_stdout.
13832 * main.c (set_gdb_data_directory): Use file style to output the
13833 warning that the given pathname is not a directory.
13834 * top.c (show_history_filename, gdb_safe_append_history)
13835 (show_gdb_datadir): Use file style.
13836
44f81a76
HD
138372020-01-03 Hannes Domani <ssbssa@yahoo.de>
13838
13839 * solib-target.c (struct lm_info_target):
13840 Change offsets to be a unique_xmalloc_ptr.
13841 (solib_target_relocate_section_addresses): Update.
13842
25057eb0
HD
138432020-01-03 Hannes Domani <ssbssa@yahoo.de>
13844
13845 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13846
6e2118f5
BE
138472020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13848
13849 * MAINTAINERS (Write After Approval): Add myself.
13850
8133c7dc
LM
138512020-01-02 Luis Machado <luis.machado@linaro.org>
13852
13853 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13854 Cell BE architecture.
13855 * target.h (struct target_ops) <thread_architecture>: Likewise.
13856
48189bec
HD
138572020-01-01 Hannes Domani <ssbssa@yahoo.de>
13858
13859 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13860
ead1063b
HD
138612020-01-01 Hannes Domani <ssbssa@yahoo.de>
13862
13863 * MAINTAINERS (Write After Approval): Add myself.
13864
e5d78223
JB
138652020-01-01 Joel Brobecker <brobecker@adacore.com>
13866
13867 * gdbarch.sh: Update copyright year range of generated files.
13868
b811d2c2
JB
138692020-01-01 Joel Brobecker <brobecker@adacore.com>
13870
13871 Update copyright year range in all GDB files.
13872
5f4def5c
JB
138732020-01-01 Joel Brobecker <brobecker@adacore.com>
13874
13875 * copyright.py: Convert to Python 3.
13876
51fd4002
JB
138772020-01-01 Joel Brobecker <brobecker@adacore.com>
13878
13879 * copyright.py: Adapt after move of gnulib directory from gdb
13880 directory to toplevel directory.
13881
5fb651f2
JB
138822020-01-01 Joel Brobecker <brobecker@adacore.com>
13883
13884 * copyright.py (main): Exit if run from the wrong directory.
13885
5dd8bf88
JB
138862020-01-01 Joel Brobecker <brobecker@adacore.com>
13887
13888 * top.c (print_gdb_version): Change copyright year to 2020.
13889
9f71dacb 138902020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13891
9f71dacb 13892 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13893
9f71dacb 13894For older changes see ChangeLog-2019.
c906108c
SS
13895\f
13896Local Variables:
13897mode: change-log
13898left-margin: 8
13899fill-column: 74
13900version-control: never
57da7796 13901coding: utf-8
c906108c 13902End: