]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix ctrl-c when debugging WOW64 processes
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0363df3d
HD
12020-09-17 Hannes Domani <ssbssa@yahoo.de>
2
3 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4 for WOW64 processes.
5
280a9412
TT
62020-09-17 Tom Tromey <tom@tromey.com>
7
8 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
9
6108fd18
TT
102020-09-17 Tom Tromey <tom@tromey.com>
11
12 * value.c (preserve_values): Update.
13 * python/py-type.c (save_objfile_types): Update.
14 * guile/scm-type.c (save_objfile_types): Update.
15 * gdbtypes.h (create_copied_types_hash): Return htab_up.
16 * gdbtypes.c (create_copied_types_hash): Return htab_up.
17 * compile/compile-object-run.c (compile_object_run): Update.
18
fa9b1164
TT
192020-09-17 Tom Tromey <tom@tromey.com>
20
21 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
22 Remove.
23 <m_table>: Now htab_up.
24 * typeprint.c (typedef_hash_table::recursively_update)
25 (typedef_hash_table::add_template_parameters)
26 (typedef_hash_table::typedef_hash_table): Update.
27 (typedef_hash_table::~typedef_hash_table): Remove.
28 (typedef_hash_table::typedef_hash_table)
29 (typedef_hash_table::find_global_typedef)
30 (typedef_hash_table::find_typedef): Update.
31
eb53f105
TT
322020-09-17 Tom Tromey <tom@tromey.com>
33
34 * target-descriptions.c (tdesc_use_registers): Use htab_up.
35
7a8a5d47
TT
362020-09-17 Tom Tromey <tom@tromey.com>
37
38 * linespec.c (class decode_compound_collector)
39 <~decode_compound_collector>: Remove.
40 <m_unique_syms>: Now htab_up.
41 (decode_compound_collector::operator ()): Update.
42 (class symtab_collector) <~symtab_collector>: Remove.
43 <m_symtab_table>: Now htab_up.
44 (symtab_collector::operator ()): Update.
45
99032cfc
TT
462020-09-17 Tom Tromey <tom@tromey.com>
47
48 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
49 (filename_seen_cache::clear): Update.
50 (~filename_seen_cache): Remove.
51 (filename_seen_cache::seen): Update.
52 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
53 htab_up.
54 <~filename_seen_cache>: Remove.
55 <traverse>: Update.
56
32580f6d
TT
572020-09-17 Tom Tromey <tom@tromey.com>
58
59 * completer.c (completion_tracker::discard_completions)
60 (completion_tracker::~completion_tracker)
61 (completion_tracker::maybe_add_completion)
62 (completion_tracker::remove_completion)
63 (completion_tracker::recompute_lowest_common_denominator)
64 (completion_tracker::build_completion_result): Update.
65 * completer.h (class completion_tracker) <have_completions>:
66 Update.
67 <m_entries_hash>: Now htab_up.
68
c1fb9836
TT
692020-09-17 Tom Tromey <tom@tromey.com>
70
71 * breakpoint.c (ambiguous_names_p): Use htab_up.
72
88f07206
TT
732020-09-17 Tom Tromey <tom@tromey.com>
74
75 * auto-load.c (struct auto_load_pspace_info)
76 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
77 <loaded_script_files, loaded_script_texts>: Change type to
78 htab_up.
79 (~auto_load_pspace_info) Remove.
80 (init_loaded_scripts_info, maybe_add_script_file)
81 (maybe_add_script_text, auto_load_info_scripts): Update.
82
9519b2ee
TT
832020-09-17 Tom Tromey <tromey@adacore.com>
84
85 * c-exp.y (name_obstack): Now static.
86
d2cd4113
CC
872020-09-17 Chungyi Chi <demonic@csie.io>
88
89 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
90
b650a282
SM
912020-09-16 Simon Marchi <simon.marchi@efficios.com>
92
93 * breakpoint.h (init_catchpoint): Change int parameter to bool.
94 (add_solib_catchpoint): Likewise.
95 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
96 to bool.
97 (add_solib_catchpoint): Change int parameter/variable to bool.
98 (catch_load_or_unload): Likewise.
99 (init_catchpoint): Likewise.
100 (create_fork_vfork_event_catchpoint): Likewise.
101 (catch_fork_command_1): Likewise.
102 (catch_exec_command_1): Likewise.
103
4d0bcfcf
SM
1042020-09-16 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
107 Change instance_flags to m_instance_flags.
108
fe830662
TT
1092020-09-16 Tom Tromey <tromey@adacore.com>
110
111 PR gdb/26598:
112 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
113
fe5ddfc3
JB
1142020-09-16 John Baldwin <jhb@FreeBSD.org>
115
116 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
117 PL_FLAG_EXEC.
118 (fbsd_nat_target::insert_exec_catchpoint)
119 (fbsd_nat_target::remove_exec_catchpoint): Always define.
120 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
121 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
122
e911c666
JB
1232020-09-16 John Baldwin <jhb@FreeBSD.org>
124
125 * configure.ac: Remove check for kinfo_getvmmap().
126 * configure, config.in: Regenerate.
127 * fbsd-nat.c (fbsd_read_mapping): Remove
128 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
129 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
130 kinfo_get_vmmap() are always present.
131
1f17d372
JB
1322020-09-16 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-nat.c: Always include support for
135 TARGET_OBJECT_SIGNAL_INFO.
136
bcb1da7f
JB
1372020-09-16 John Baldwin <jhb@FreeBSD.org>
138
139 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
140 sysctl and remove procfs fallback.
141
5515f729
JB
1422020-09-16 John Baldwin <jhb@FreeBSD.org>
143
144 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
145 * fbsd-nat.h: Likewise.
146
da1df1db
TBA
1472020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
148
149 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
150 argument.
151
0e25e767
AB
1522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * ada-lang.c (ada_language_data): Delete.
155 (ada_language): Remove references to ada_language_data.
156 * c-lang.c (c_language_data): Delete.
157 (c_language): Remove references to c_language_data.
158 (cplus_language_data): Delete.
159 (cplus_language): Remove references to cplus_language_data.
160 (asm_language_data): Delete.
161 (asm_language): Remove references to asm_language_data.
162 (minimal_language_data): Delete.
163 (minimal_language): Remove references to minimal_language_data.
164 * d-lang.c (d_language_data): Delete.
165 (d_language): Remove references to d_language_data.
166 * f-lang.c (f_language_data): Delete.
167 (f_language): Remove references to f_language_data.
168 * go-lang.c (go_language_data): Delete.
169 (go_language): Remove references to go_language_data.
170 * language.c (unknown_language_data): Delete.
171 (unknown_language): Remove references to unknown_language_data.
172 (auto_language_data): Delete.
173 (auto_language): Remove references to auto_language_data.
174 * language.h (language_data): Delete struct.
175 (language_defn): No longer inherit from language_data.
176 * m2-lang.c (m2_language_data): Delete.
177 (m2_language): Remove references to m2_language_data.
178 * objc-lang.c (objc_language_data): Delete.
179 (objc_language): Remove references to objc_language_data.
180 * opencl-lang.c (opencl_language_data): Delete.
181 (opencl_language): Remove references to opencl_language_data.
182 * p-lang.c (pascal_language_data): Delete.
183 (pascal_language): Remove references to pascal_language_data.
184 * rust-lang.c (rust_language_data): Delete.
185 (rust_language): Remove references to rust_language_data.
186
b7c6e27d
AB
1872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * ada-lang.c (ada_language_data): Remove la_op_print_tab
190 initializer.
191 (ada_language::opcode_print_table): New member function.
192 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
193 (c_language::opcode_print_table): New member function.
194 (cplus_language_data): Remove la_op_print_tab initializer.
195 (cplus_language::opcode_print_table): New member function.
196 (asm_language_data): Remove la_op_print_tab initializer.
197 (asm_language::opcode_print_table): New member function.
198 (minimal_language_data): Remove la_op_print_tab initializer.
199 (minimal_language::opcode_print_table): New member function.
200 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
201 (d_language::opcode_print_table): New member function.
202 * expprint.c (print_subexp_standard): Update call to
203 opcode_print_table.
204 (op_string): Likewise.
205 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
206 (f_language::opcode_print_table): New member function.
207 * go-lang.c (go_language_data): Remove la_op_print_tab
208 initializer.
209 (go_language::opcode_print_table): New member function.
210 * language.c (unknown_language_data): Remove la_op_print_tab
211 initializer.
212 (unknown_language::opcode_print_table): New member function.
213 (auto_language_data): Remove la_op_print_tab initializer.
214 (auto_language::opcode_print_table): New member function.
215 * language.h (language_data): Remove la_op_print_tab field.
216 (language_defn::opcode_print_table): Declare new member function.
217 * m2-lang.c (m2_language_data): Remove la_op_print_tab
218 initializer.
219 (m2_language::opcode_print_table): New member function.
220 * objc-lang.c (objc_language_data): Remove la_op_print_tab
221 initializer.
222 (objc_language::opcode_print_table): New member function.
223 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
224 initializer.
225 (opencl_language::opcode_print_table): New member function.
226 * p-lang.c (pascal_language_data): Remove la_op_print_tab
227 initializer.
228 (pascal_language::opcode_print_table): New member function.
229 * rust-lang.c (rust_language_data): Remove la_op_print_tab
230 initializer.
231 (rust_language::opcode_print_table): New member function.
232
5aba6ebe
AB
2332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
236 (ada_language::expression_ops): New member function.
237 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
238 (c_language::expression_ops): New member function.
239 (cplus_language_data): Remove la_exp_desc initializer.
240 (cplus_language::expression_ops): New member function.
241 (asm_language_data): Remove la_exp_desc initializer.
242 (asm_language::expression_ops): New member function.
243 (minimal_language_data): Remove la_exp_desc initializer.
244 (minimal_language::expression_ops): New member function.
245 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
246 (d_language::expression_ops): New member function.
247 * eval.c (evaluate_subexp): Update call to expression_ops.
248 * expprint.c (print_subexp): Likewise.
249 (op_name): Likewise.
250 (dump_subexp_body): Likewise.
251 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
252 (f_language::expression_ops): New member function.
253 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
254 (go_language::expression_ops): New member function.
255 * language.c (language_defn::expression_ops): New function.
256 (unknown_language_data): Remove la_exp_desc initializer.
257 (auto_language_data): Likewise.
258 * language.h (language_data): Remove la_exp_desc field.
259 (language_defn::expression_ops): Declare new member function.
260 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
261 (m2_language::expression_ops): New member function.
262 * objc-lang.c (objc_language_data): Remove la_exp_desc
263 initializer.
264 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
265 initializer.
266 (opencl_language::expression_ops): New member function.
267 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
268 * parse.c (operator_length): Update call to expression_ops.
269 (exp_iterate): Likewise.
270 * rust-lang.c (rust_language_data): Remove la_exp_desc
271 initializer.
272 (ruse_language::expression_ops): New member function.
273
b63a3f3f
AB
2742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * ada-lang.c (ada_language_data): Remove la_varobj_ops
277 initializer.
278 (ada_language::varobj_ops): New member function.
279 * c-lang.c (c_language_data): Remove la_varobj_ops
280 initializer.
281 (cplus_language_data): Likewise.
282 (cplus_language::varobj_ops): New member function.
283 (asm_language_data): Remove la_varobj_ops initializer.
284 (minimal_language_data): Likewise.
285 * d-lang.c (d_language_data): Likewise.
286 * f-lang.c (f_language_data): Likewise.
287 * go-lang.c (go_language_data): Likewise.
288 * language.c (language_defn::varobj_ops): New function.
289 (unknown_language_data): Remove la_varobj_ops
290 initializer.
291 (auto_language_data): Likewise.
292 * language.h (language_data): Remove la_varobj_ops field.
293 (language_defn::varobj_ops): Declare new member function.
294 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
295 * objc-lang.c (objc_language_data): Likewise.
296 * opencl-lang.c (opencl_language_data): Likewise.
297 * p-lang.c (pascal_language_data): Likewise.
298 * rust-lang.c (rust_language_data): Likewise.
299 * varobj.c (varobj_create): Update call to varobj_ops.
300 * varobj.h (default_varobj_ops): Delete define.
301
1ac14a04
AB
3022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * ada-lang.c (ada_language_data): Remove la_macro_expansion
305 initializer.
306 * c-lang.c (c_language_data): Likewise.
307 (c_language::macro_expansion): New member function.
308 (cplus_language_data): Likewise.
309 (cplus_language::macro_expansion): New member function.
310 (asm_language_data): Likewise.
311 (asm_language::macro_expansion): New member function.
312 (minimal_language_data): Likewise.
313 (minimal_language::macro_expansion): New member function.
314 * d-lang.c (d_language_data): Remove la_macro_expansion
315 initializer.
316 * f-lang.c (f_language_data): Likewise.
317 * go-lang.c (go_language_data): Likewise.
318 * language.c (unknown_language_data): Likewise.
319 (auto_language_data): Likewise.
320 * language.h (language_data): Remove la_macro_expansion field.
321 (language_defn::macro_expansion): New member function.
322 * m2-lang.c (m2_language_data): Remove la_macro_expansion
323 initializer.
324 * objc-lang.c (objc_language_data): Likewise.
325 (objc_language::macro_expansion): New member function.
326 * opencl-lang.c (opencl_language_data): Likewise.
327 (opencl_language::macro_expansion): New member function.
328 * p-lang.c (pascal_language_data): Remove la_macro_expansion
329 initializer.
330 * rust-lang.c (rust_language_data): Likewise.
331 * symtab.c (default_collect_symbol_completion_matches_break_on):
332 Update call to macro_expansion.
333
3a3440fb
AB
3342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * ada-lang.c (ada_language_data): Remove la_array_ordering
337 initializer.
338 * c-lang.c (c_language_data): Likewise.
339 (cplus_language_data): Likewise.
340 (asm_language_data): Likewise.
341 (minimal_language_data): Likewise.
342 * d-lang.c (d_language_data): Likewise.
343 * dwarf2/read.c (read_array_order): Update for call to
344 array_ordering.
345 * f-lang.c (f_language_data): Remove la_array_ordering
346 initializer.
347 (f_language::array_ordering): New member function.
348 * go-lang.c (go_language_data): Remove la_array_ordering
349 initializer.
350 * language.c (unknown_language_data): Likewise.
351 (auto_language_data): Likewise.
352 * language.h (language_data): Delete la_array_ordering field.
353 (language_defn::array_ordering): New member function.
354 * m2-lang.c (m2_language_data): Remove la_array_ordering
355 initializer.
356 * objc-lang.c (objc_language_data): Likewise.
357 * opencl-lang.c (opencl_language_data): Likewise.
358 * p-lang.c (pascal_language_data): Likewise.
359 * rust-lang.c (rust_language_data): Likewise.
360
0d201fa4
AB
3612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
364 initializer.
365 * c-lang.c (c_language_data): Likewise.
366 (cplus_language_data): Likewise.
367 (asm_language_data): Likewise.
368 (minimal_language_data): Likewise.
369 * d-lang.c (d_language_data): Likewise.
370 * f-lang.c (f_language_data): Likewise.
371 (f_language::case_sensitivity): New member function.
372 * go-lang.c (go_language_data): Remove la_case_sensitivity
373 initializer.
374 * language.c (enum case_mode): Moved here from language.h.
375 (case_mode): Make static.
376 (show_case_command): Update for case_sensitivity being a method.
377 (set_case_command): Likewise.
378 (set_range_case): Likewise.
379 (unknown_language_data): Remove la_case_sensitivity initializer.
380 (auto_language_data): Likewise.
381 * language.h (case_mode): Delete, move enum declaration to
382 language.c.
383 (language_data): Delete la_case_sensitivity field.
384 (language_defn::case_sensitivity): New member function.
385 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
386 initializer.
387 * objc-lang.c (objc_language_data): Likewise.
388 * opencl-lang.c (opencl_language_data): Likewise.
389 * p-lang.c (pascal_language_data): Likewise.
390 * rust-lang.c (rust_language_data): Likewise.
391
efdf6a73
AB
3922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * ada-lang.c (ada_language_data): Remove la_range_check
395 initializer.
396 * c-lang.c (c_language_data): Likewise.
397 (cplus_language_data): Likewise.
398 (asm_language_data): Likewise.
399 (minimal_language_data): Likewise.
400 * d-lang.c (d_language_data): Likewise.
401 * f-lang.c (f_language_data): Likewise.
402 (f_language::range_checking_on_by_default): New member function.
403 * go-lang.c (go_language_data): Remove la_range_check initializer.
404 * language.c (enum range_mode): Moved here from language.h.
405 (range_mode): Made static.
406 (show_range_command): Update to use
407 range_checking_on_by_default.
408 (set_range_command): Likewise.
409 (set_range_case): Likewise.
410 (unknown_language_data): Remove la_range_check initializer.
411 (auto_language_data): Likewise.
412 * language.h (range_mode): Delete. Enum definition moved to
413 language.c.
414 (language_data): Remove la_range_check field.
415 (language_defn::range_checking_on_by_default): New member
416 function.
417 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
418 (m2_language::range_checking_on_by_default): New member function.
419 * objc-lang.c (objc_language_data): Remove la_range_check
420 initializer.
421 * opencl-lang.c (opencl_language_data): Likewise.
422 * p-lang.c (pascal_language_data): Likewise.
423 (pascal_language::range_checking_on_by_default): New member
424 function.
425 * rust-lang.c (rust_language_data): Remove la_range_check
426 initializer.
427 (rust_language::range_checking_on_by_default): New member
428 function.
429
bf92aec5
AB
4302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
431
432 * dwarf2/read.c (dwarf2_physname): Remove special case for
433 language_go.
434 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
435 member function.
436
d3355e4d
AB
4372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * ada-lang.c (ada_language_data): Remove
440 la_store_sym_names_in_linkage_form_p initializer.
441 (ada_language::store_sym_names_in_linkage_form_p): New member
442 function.
443 * c-lang.c (c_language_data): Remove
444 la_store_sym_names_in_linkage_form_p initializer.
445 (c_language::store_sym_names_in_linkage_form_p): New member
446 function.
447 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
448 initializer.
449 (asm_language_data): Likewise.
450 (asm_language::store_sym_names_in_linkage_form_p): New member
451 function.
452 (minimal_language_data): Remove
453 la_store_sym_names_in_linkage_form_p initializer.
454 (minimal_language::store_sym_names_in_linkage_form_p): New member
455 function.
456 * d-lang.c (d_language_data): Remove
457 la_store_sym_names_in_linkage_form_p initializer.
458 * dwarf2/read.c (dwarf2_physname): Update call to
459 store_sym_names_in_linkage_form_p.
460 * f-lang.c (f_language_data): Remove
461 la_store_sym_names_in_linkage_form_p initializer.
462 * go-lang.c (go_language_data): Remove
463 la_store_sym_names_in_linkage_form_p initializer.
464 * language.c (unknown_language_data): Remove
465 la_store_sym_names_in_linkage_form_p initializer.
466 (unknown_language::store_sym_names_in_linkage_form_p): New member
467 function.
468 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
469 initializer.
470 (auto_language::store_sym_names_in_linkage_form_p): New member
471 function.
472 * language.h (language_data): Remove
473 la_store_sym_names_in_linkage_form_p member variable.
474 (language_defn::store_sym_names_in_linkage_form_p): New member
475 function.
476 * m2-lang.c (m2_language_data): Remove
477 la_store_sym_names_in_linkage_form_p initializer.
478 * objc-lang.c (objc_language_data): Likewise.
479 * opencl-lang.c (opencl_language_data): Likewise.
480 * p-lang.c (pascal_language_data): Likewise.
481 * rust-lang.c (rust_language_data): Likewise.
482
22c12a6c
AB
4832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * ada-lang.c (ada_language_data): Remove string_lower_bound
486 initializer.
487 * c-lang.c (c_language_data): Likewise.
488 (cplus_language_data): Likewise.
489 (asm_language_data): Likewise.
490 (minimal_language_data): Likewise.
491 * d-lang.c (d_language_data): Likewise.
492 * f-lang.c (f_language_data): Likewise.
493 * go-lang.c (go_language_data): Likewise.
494 * language.c (unknown_language_data): Likewise.
495 (auto_language_data): Likewise.
496 * language.h (language_data): Remove string_lower_bound field.
497 (language_defn::string_lower_bound): New member function.
498 * m2-lang.c (m2_language_data): Remove string_lower_bound
499 initializer.
500 (m2_language::string_lower_bound): New member function.
501 * objc-lang.c (objc_language_data): Remove string_lower_bound
502 initializer.
503 * opencl-lang.c (opencl_language_data): Likewise.
504 * p-lang.c (pascal_language_data): Likewise.
505 * rust-lang.c (rust_language_data): Likewise.
506 * valops.c (value_cstring): Update call to string_lower_bound.
507 (value_string): Likewise.
508 * value.c (allocate_repeated_value): Likewise.
509
1c236ddd
AB
5102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * valops.c (value_repeat): Fix incorrect argument name in comment.
513
67bd3fd5
AB
5142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * ada-lang.c (ada_language_data): Remove c_style_arrays
517 initializer.
518 (ada_language::c_style_arrays_p): New member fuction.
519 * c-lang.c (c_language_data): Remove c_style_arrays
520 initializer.
521 (cplus_language_data): Likewise.
522 (asm_language_data): Likewise.
523 (minimal_language_data): Likewise.
524 * d-lang.c (d_language_data): Likewise.
525 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
526 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
527 (f_language::c_style_arrays_p): New member function.
528 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
529 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
530 * language.c (unknown_language_data): Remove c_style_arrays
531 initializer.
532 (auto_language_data): Likewise.
533 * language.h (language_data): Remove c_style_arrays field.
534 (language_defn::c_style_arrays_p): New member function.
535 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
536 (m2_language::c_style_arrays_p): New member function.
537 * objc-lang.c (objc_language_data): Remove c_style_arrays
538 initializer.
539 * opencl-lang.c (opencl_language_data): Likewise.
540 * p-lang.c (pascal_language_data): Likewise.
541 * rust-lang.c (rust_language_data): Likewise.
542 * valarith.c (value_subscript): Update call to c_style_arrays_p,
543 and update local variable to a bool.
544 * valops.c (value_cast): Update call to c_style_arrays_p.
545 (value_array): Likewise.
546 * value.c (coerce_array): Likewise.
547
85967615
AB
5482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * ada-lang.c (ada_language_data): Remove la_language initializer.
551 * c-lang.c (c_language_data): Likewise.
552 (cplus_language_data): Likewise.
553 (asm_language_data): Likewise.
554 (minimal_language_data): Likewise.
555 * d-lang.c (d_language_data): Likewise.
556 * f-lang.c (f_language_data): Likewise.
557 * go-lang.c (go_language_data): Likewise.
558 * language.c (unknown_language_data): Likewise.
559 (auto_language_data): Likewise.
560 * language.h (language_data): Remove la_language field.
561 (language_defn::language_defn): Initialise la_language field.
562 (language_defn::la_language): New member variable.
563 * m2-lang.c (m2_language_data): Remove la_language field.
564 * objc-lang.c (objc_language_data): Likewise.
565 * opencl-lang.c (opencl_language_data): Likewise.
566 * p-lang.c (pascal_language_data): Likewise.
567 * rust-lang.c (rust_language_data): Likewise.
568
e171d6f1
AB
5692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * ada-lang.c (ada_extensions): Delete, moved into
572 ada_language::filename_extensions.
573 (ada_language_data): Remove la_filename_extensions initializer.
574 (ada_language::filename_extensions): New member function.
575 * c-lang.c (c_extensions): Delete, moved into
576 c_language::filename_extensions.
577 (c_language_data): Remove la_filename_extensions initializer.
578 (c_language::filename_extensions): New member function.
579 (cplus_extensions): Delete, moved into
580 cplus_language::filename_extensions.
581 (cplus_language_data): Remove la_filename_extensions initializer.
582 (cplus_language::filename_extensions): New member function.
583 (asm_extensions): Delete, moved into
584 asm_language::filename_extensions.
585 (asm_language_data): Remove la_filename_extensions initializer.
586 (asm_language::filename_extensions): New member function.
587 (minimal_language_data): Remove la_filename_extensions
588 initializer.
589 * d-lang.c (d_extensions): Delete, moved into
590 d_language::filename_extensions.
591 (d_language_data): Remove la_filename_extensions initializer.
592 (d_language::filename_extensions): New member function.
593 * f-lang.c (f_extensions): Delete, moved into
594 f_language::filename_extensions.
595 (f_language_data): Remove la_filename_extensions initializer.
596 (f_language::filename_extensions): New member function.
597 * go-lang.c (go_language_data): Remove la_filename_extensions
598 initializer.
599 * language.c (add_set_language_command): Update now that
600 filename_extensions returns a vector.
601 (unknown_language_data): Remove la_filename_extensions
602 initializer.
603 (auto_language_data): Likewise.
604 * language.h (language_data): Remove la_filename_extensions field.
605 (language_defn::filename_extensions): New member function.
606 * m2-lang.c (m2_language_data): Remove la_filename_extensions
607 initializer.
608 * objc-lang.c (objc_extensions): Delete, moved into
609 objc_language::filename_extensions.
610 (objc_language_data): Remove la_filename_extensions initializer.
611 (objc_language::filename_extensions): New member function.
612 * opencl-lang.c (opencl_language_data): Remove
613 la_filename_extensions initializer.
614 * p-lang.c (pascal_extensions): Delete, moved into
615 pascal_language::filename_extensions.
616 (pascal_language_data): Remove la_filename_extensions initializer.
617 (pascal_language::filename_extensions): New member function.
618 * rust-lang.c (rust_extensions): Delete, moved into
619 rust_language::filename_extensions.
620 (rust_language_data): Remove la_filename_extensions initializer.
621 (rust_language::filename_extensions): New member function.
622 * symfile.c (add_filename_language): Add new assert.
623
6f7664a9
AB
6242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * ada-lang.c (ada_language_data): Remove la_name and
627 la_natural_name initializers.
628 (ada_language::name): New member function.
629 (ada_language::natural_name): New member function.
630 * c-lang.c (c_language_data): Remove la_name and
631 la_natural_name initializers.
632 (c_language::name): New member function.
633 (c_language::natural_name): New member function.
634 (cplus_language_data): Remove la_name and
635 la_natural_name initializers.
636 (cplus_language::name): New member function.
637 (cplus_language::natural_name): New member function.
638 (asm_language_data): Remove la_name and
639 la_natural_name initializers.
640 (asm_language::name): New member function.
641 (asm_language::natural_name): New member function.
642 (minimal_language_data): Remove la_name and
643 la_natural_name initializers.
644 (minimal_language::name): New member function.
645 (minimal_language::natural_name): New member function.
646 * compile/compile.c (compile_to_object): Update call to
647 lanugage_defn::name.
648 * d-lang.c (d_language_data): Remove la_name and
649 la_natural_name initializers.
650 (d_language::name): New member function.
651 (d_language::natural_name): New member function.
652 * expprint.c (print_subexp_standard): Update call to
653 language_defn::name.
654 (dump_raw_expression): Likewise
655 (dump_prefix_expression): Likewise.
656 * f-lang.c (f_language_data): Remove la_name and
657 la_natural_name initializers.
658 (f_language::name): New member function.
659 (f_language::natural_name): New member function.
660 * go-lang.c (go_language_data): Remove la_name and
661 la_natural_name initializers.
662 (go_language::name): New member function.
663 (go_language::natural_name): New member function.
664 * language.c (show_language_command): Update call to
665 language_defn::name.
666 (set_language_command): Likewise.
667 (language_enum): Likewise.
668 (language_str): Likewise.
669 (add_set_language_command): Likewise, use
670 language_defn::natural_name in the doc string.
671 (unknown_language_data): Remove la_name and
672 la_natural_name initializers.
673 (unknown_language::name): New member function.
674 (unknown_language::natural_name): New member function.
675 (auto_language_data): Remove la_name and
676 la_natural_name initializers.
677 (auto_language::name): New member function.
678 (auto_language::natural_name): New member function.
679 (language_lookup_primitive_type_as_symbol): Update call to
680 language_defn::name.
681 * language.h (language_data): Remove la_name and la_natural_name
682 member variables.
683 (language_defn::name): New member function.
684 (language_defn::natural_name): New member function.
685 * m2-lang.c (m2_language_data): Remove la_name and
686 la_natural_name initializers.
687 (m2_language::name): New member function.
688 (m2_language::natural_name): New member function.
689 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
690 language_defn::natural_name.
691 * objc-lang.c (objc_language_data): Remove la_name and
692 la_natural_name initializers.
693 (objc_language::name): New member function.
694 (objc_language::natural_name): New member function.
695 * opencl-lang.c (opencl_language_data): Remove la_name and
696 la_natural_name initializers.
697 (opencl_language::name): New member function.
698 (opencl_language::natural_name): New member function.
699 * p-lang.c (pascal_language_data): Remove la_name and
700 la_natural_name initializers.
701 (pascal_language::name): New member function.
702 (pascal_language::natural_name): New member function.
703 * rust-lang.c (rust_language_data): Remove la_name and
704 la_natural_name initializers.
705 (rust_language::name): New member function.
706 (rust_language::natural_name): New member function.
707 * symtab.c (lookup_language_this): Update call to
708 language_defn::name.
709
5bae7c4e
AB
7102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * ada-lang.c (ada_language_data): Remove la_name_of_this
713 initializer.
714 * ax-gdb.c (gen_expr): Update call to name_of_this.
715 * c-exp.y (classify_name): Likewise.
716 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
717 (cplus_language_data): Likewise.
718 (cplus_language::name_of_this): New member function.
719 (asm_language_data): Remove la_name_of_this initializer.
720 (minimal_language_data): Likewise.
721 * d-lang.c (d_language_data): Likewise.
722 (d_language::name_of_this): New member function.
723 * expprint.c (print_subexp_standard): Update call to name_of_this.
724 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
725 * go-lang.c (go_language_data): Likewise.
726 * language.c (unknown_language_data): Likewise.
727 (unknown_language::name_of_this): New member function.
728 (auto_language_data): Remove la_name_of_this initializer.
729 (auto_language::name_of_this): New member function.
730 * language.h (language_data): Delete la_name_of_this member
731 variable.
732 (language_defn::name_of_this): New member function.
733 * m2-lang.c (m2_language_data): Remove la_name_of_this
734 initializer.
735 * objc-lang.c (objc_language_data): Likewise.
736 (objc_language::name_of_this): New member function.
737 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
738 initializer.
739 * p-lang.c (pascal_language_data): Likewise.
740 (pascal_language::name_of_this): New member function.
741 * rust-lang.c (rust_language_data): Remove la_name_of_this
742 initializer.
743 * symtab.c (lookup_language_this): Update call to name_of_this.
744 (lookup_symbol_aux): Likewise.
745 * valops.c (value_of_this): Likewise.
746
22e3f3ed
AB
7472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * ada-lang.c (ada_language_data): Remove
750 la_struct_too_deep_ellipsis initializer.
751 (ada_language::struct_too_deep_ellipsis): New member function.
752 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
753 initializer.
754 (cplus_language_data): Likewise.
755 (asm_language_data): Likewise.
756 (minimal_language_data): Likewise.
757 * cp-valprint.c (cp_print_value): Update call to
758 struct_too_deep_ellipsis.
759 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
760 initializer.
761 * f-lang.c (f_language_data): Likewise.
762 (f_language::struct_too_deep_ellipsis): New member function.
763 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
764 initializer.
765 * language.c (unknown_language_data): Likewise.
766 (auto_language_data): Likewise.
767 * language.h (language_data): Delete la_struct_too_deep_ellipsis
768 member variable.
769 (language_defn::struct_too_deep_ellipsis): New member function.
770 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
771 initializer.Q
772 * objc-lang.c (objc_language_data): Likewise.
773 * opencl-lang.c (opencl_language_data): Likewise.
774 * p-lang.c (pascal_language_data): Likewise.
775 * rust-lang.c (rust_language_data): Likewise.
776 * valprint.c (val_print_check_max_depth): Update call to
777 struct_too_deep_ellipsis.
778
ed29e1c7
FW
7792020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
780
781 * MAINTAINERS (Write After Approval): Add myself.
782
12d8f940
TT
7832020-09-15 Tom Tromey <tom@tromey.com>
784
785 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
786 Remove.
787
6b5a7bc7
TT
7882020-09-15 Tom Tromey <tom@tromey.com>
789
790 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
791 and TYPE_CODE_METHODPTR cases.
792 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
793 (c_value_print_inner): Update.
794 * valprint.c (generic_value_print_memberptr): New function, from
795 c_value_print_memberptr.
796 (generic_value_print): Use it. Call cplus_print_method_ptr.
797
47f0e2ff
TT
7982020-09-15 Tom Tromey <tromey@adacore.com>
799
800 * python/python-internal.h (PyInt_FromLong): Remove define.
801 * python/py-value.c (convert_value_from_python): Use
802 gdb_py_object_from_longest.
803 * python/py-type.c (typy_get_code): Use
804 gdb_py_object_from_longest.
805 * python/py-symtab.c (salpy_get_line): Use
806 gdb_py_object_from_longest.
807 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
808 gdb_py_object_from_longest.
809 * python/py-record.c (recpy_gap_reason_code): Use
810 gdb_py_object_from_longest.
811 * python/py-record-btrace.c (recpy_bt_insn_size)
812 (recpy_bt_func_level, btpy_list_count): Use
813 gdb_py_object_from_longest.
814 * python/py-infthread.c (gdbpy_create_ptid_object): Use
815 gdb_py_object_from_longest. Fix error handling.
816 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
817 gdb_py_object_from_longest.
818 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
819 gdb_py_object_from_longest.
820 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
821 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
822 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
823
512116ce
TT
8242020-09-15 Tom Tromey <tromey@adacore.com>
825
826 * python/python.c (gdbpy_parameter_value): Use
827 gdb_py_object_from_ulongest.
828
4ab1029c
TT
8292020-09-15 Tom Tromey <tromey@adacore.com>
830
831 * python/py-infevents.c (create_register_changed_event_object):
832 Use gdb_py_object_from_longest.
833 * python/py-exitedevent.c (create_exited_event_object): Use
834 gdb_py_object_from_longest.
835
062534d4
TT
8362020-09-15 Tom Tromey <tromey@adacore.com>
837
838 * python/python.c (gdbpy_parameter_value): Use
839 gdb_py_object_from_longest.
840 * python/py-type.c (convert_field, typy_range): Use
841 gdb_py_object_from_longest.
842 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
843 gdb_py_object_from_longest.
844 * python/py-lazy-string.c (stpy_get_length): Use
845 gdb_py_object_from_longest.
846 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
847 gdb_py_object_from_longest.
848 * python/py-infevents.c (create_memory_changed_event_object): Use
849 gdb_py_object_from_longest.
850 * python/py-inferior.c (infpy_get_num): Use
851 gdb_py_object_from_longest.
852 (infpy_get_pid): Likewise.
853
d1cab987
TT
8542020-09-15 Tom Tromey <tromey@adacore.com>
855
856 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
857 defines.
858 * python/py-value.c (valpy_long): Use
859 gdb_py_object_from_ulongest.
860 * python/py-symtab.c (salpy_get_pc): Use
861 gdb_py_object_from_ulongest.
862 (salpy_get_last): Likewise.
863 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
864 gdb_py_object_from_ulongest.
865 * python/py-lazy-string.c (stpy_get_address): Use
866 gdb_py_object_from_ulongest.
867 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
868 * python/py-arch.c (archpy_disassemble): Use
869 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
870 error handling.
871
4bde49dc
TT
8722020-09-15 Tom Tromey <tromey@adacore.com>
873
874 * python/python-internal.h (gdb_py_long_from_longest): Remove
875 defines.
876 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
877 * python/py-type.c (convert_field, typy_get_sizeof): Use
878 gdb_py_object_from_longest.
879 * python/py-record-btrace.c (btpy_list_index): Use
880 gdb_py_object_from_longest.
881
37431074
TT
8822020-09-15 Tom Tromey <tromey@adacore.com>
883
884 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
885 * python/py-record.c (recpy_element_number): Use
886 gdb_py_object_from_longest.
887 (recpy_gap_number): Likewise.
888
cbe25684
TT
8892020-09-15 Tom Tromey <tromey@adacore.com>
890
891 * top.c (ui::ui): Update.
892 (highest_ui_num): Remove.
893 * top.h (struct ui) <num>: Remove.
894
db92ac45
TT
8952020-09-15 Tom Tromey <tromey@adacore.com>
896
897 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
898 * ui-style.c (ansi_regex_text): Now array.
899 * rust-exp.y (number_regex_text): Now array.
900 * linespec.c (linespec_quote_characters): Now array.
901 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
902 Now arrays.
903
d2b31b67
SM
9042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * debuginfod-support.c (debuginfod_client_deleter): New.
907 (debuginfod_client_up): New.
908 (debuginfod_init): Return debuginfod_client_up.
909 (debuginfod_source_query): Adjust.
910 (debuginfod_debuginfo_query): Adjust.
911
3246bd8e
SM
9122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * debuginfod-support.c (debuginfod_source_query): Use
915 make_unique_xstrdup.
916
10242f36
SM
9172020-09-14 Simon Marchi <simon.marchi@efficios.com>
918
919 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
920 with `type::instance_flags`.
921
e1044e6a
MM
9222020-09-14 Michael Mullin <masmullin@gmail.com>
923
924 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
925 Remove baton parameter.
926
04902b09
PA
9272020-09-14 Pedro Alves <pedro@palves.net>
928
929 * Makefile.in (SELFTESTS_SRCS): Add
930 unittests/enum-flags-selftests.c.
931 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
932 btrace_function_flags instead of enum btrace_function_flag.
933 * compile/compile-c-types.c (convert_qualified): Use
934 enum_flags::raw.
935 * compile/compile-cplus-symbols.c (convert_one_symbol)
936 (convert_symbol_bmsym):
937 * compile/compile-cplus-types.c (compile_cplus_convert_method)
938 (compile_cplus_convert_struct_or_union_methods)
939 (compile_cplus_instance::convert_qualified_base):
940 * go-exp.y (parse_string_or_char): Add cast to int.
941 * unittests/enum-flags-selftests.c: New file.
942 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
943 type to btrace_thread_flags from btrace_thread_flag.
944 (record_btrace_cancel_resume, record_btrace_step_thread): Change
945 local's type to btrace_thread_flags from btrace_thread_flag. Add
946 cast in DEBUG call.
947
69896a2c
PA
9482020-09-14 Pedro Alves <pedro@palves.net>
949
950 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
951 * gdbtypes.c (address_space_name_to_int): Rename to ...
952 (address_space_name_to_type_instance_flags): ... this.
953 (address_space_int_to_name): Rename to ...
954 (address_space_type_instance_flags_to_name): ... this.
955 * gdbtypes.h (address_space_name_to_int): Rename to ...
956 (address_space_name_to_type_instance_flags): ... this.
957 (address_space_int_to_name): Rename to ...
958 (address_space_type_instance_flags_to_name): ... this.
959 * type-stack.c (type_stack::insert): Adjust to rename.
960 * type-stack.h (type_stack::insert): Likewise.
961
314ad88d
PA
9622020-09-14 Pedro Alves <pedro@palves.net>
963 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * avr-tdep.c (avr_address_class_type_flags): Return
966 type_instance_flags.
967 (avr_address_class_type_flags_to_name): Take a
968 type_instance_flags.
969 (avr_address_class_name_to_type_flags): Return bool and take a
970 type_instance_flags.
971 * d-lang.c (build_d_types): Use type::set_instance_flags.
972 * ft32-tdep.c (ft32_address_class_type_flags): Return
973 type_instance_flags.
974 (ft32_address_class_type_flags_to_name): Take a
975 type_instance_flags.
976 (ft32_address_class_name_to_type_flags): Return bool and take a
977 type_instance_flags.
978 (ft32_gdbarch_init): Use type::set_instance_flags.
979 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
980 * gdbarch.h, gdbarch.c: Regenerate.
981 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
982 (address_class_name_to_type_flags): Use type_instance_flags and
983 bool.
984 * gdbtypes.c (address_space_name_to_int)
985 (address_space_int_to_name, make_qualified_type): Use
986 type_instance_flags.
987 (make_qualified_type): Use type_instance_flags and
988 type::set_instance_flags.
989 (make_type_with_address_space, make_cv_type, make_vector_type)
990 (check_typedef): Use type_instance_flags.
991 (recursive_dump_type): Cast type_instance_flags to unsigned for
992 printing.
993 (copy_type_recursive): Use type::set_instance_flags.
994 (gdbtypes_post_init): Use type::set_instance_flags.
995 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
996 <m_instance_flags>: ... this.
997 <instance_flags, set_instance_flags>: New methods.
998 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
999 (SET_TYPE_INSTANCE_FLAGS): New.
1000 (address_space_name_to_int, address_space_int_to_name)
1001 (make_type_with_address_space): Pass flags using
1002 type_instance_flags instead of int.
1003 * stabsread.c (cleanup_undefined_types_noname): Use
1004 type::set_instance_flags.
1005 * s390-tdep.c (s390_address_class_type_flags): Return
1006 type_instance_flags.
1007 (s390_address_class_type_flags_to_name): Take a
1008 type_instance_flags.
1009 (s390_address_class_name_to_type_flags): Return bool and take a
1010 type_instance_flags.
1011 * type-stack.c (type_stack::follow_types): Use
1012 type_instance_flags.
1013 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1014
27087b7f
TT
10152020-09-14 Tom Tromey <tromey@adacore.com>
1016
1017 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1018 * x86-tdep.c (x86_is_thunk_register_name)
1019 (x86_in_indirect_branch_thunk): Update.
1020 * sparc64-tdep.c (sparc64_fpu_register_names)
1021 (sparc64_cp0_register_names, sparc64_register_names)
1022 (sparc64_pseudo_register_names): Now const.
1023 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1024 cp0_registers_num>: Now const.
1025 * sparc-tdep.c (sparc_core_register_names)
1026 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1027 (sparc32_pseudo_register_names): Now const.
1028 (validate_tdesc_registers): Update.
1029 * rust-lang.c (rust_extensions): Now const.
1030 * p-lang.c (p_extensions): Now const.
1031 * objc-lang.c (objc_extensions): Now const.
1032 * nto-tdep.c (nto_thread_state_str): Now const.
1033 * moxie-tdep.c (moxie_register_names): Now const.
1034 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1035 Now const.
1036 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1037 (mips_linux_reg_names): Now const.
1038 (mips_gdbarch_init): Update.
1039 * microblaze-tdep.c (microblaze_register_names): Now const.
1040 * m68k-tdep.c (m68k_register_names): Now const.
1041 * m32r-tdep.c (m32r_register_names): Now const.
1042 * ia64-tdep.c (ia64_register_names): Now const.
1043 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1044 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1045 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1046 ymm_avx512_register_names, pkeys_register_names>: Now const.
1047 * i386-tdep.c (i386_register_names, i386_zmm_names)
1048 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1049 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1050 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1051 * f-lang.c (f_extensions): Now const.
1052 * d-lang.c (d_extensions): Now const.
1053 * csky-tdep.c (csky_register_names): Now const.
1054 * charset.c (default_charset_names, charset_enum): Now const.
1055 (_initialize_charset): Update.
1056 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1057 const.
1058 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1059 (bsd_uthread_solib_loaded): Update.
1060 (bsd_uthread_state): Now const.
1061 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1062 (amd64_ymm_avx512_names, amd64_ymmh_names)
1063 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1064 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1065 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1066 (amd64_dword_names): Now const.
1067 * agent.c (can_use_agent_enum): Now const.
1068 * ada-tasks.c (task_states, long_task_states): Now const.
1069 * ada-lang.c (known_runtime_file_name_patterns)
1070 (known_auxiliary_function_name_patterns, attribute_names)
1071 (standard_exc, ada_extensions): Now const.
1072
89806626
SM
10732020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * bcache.h (struct bcache) <bcache>: Remove constructor.
1076 <m_hash_function, m_compare_function>: Remove.
1077 <~bcache>: Make virtual.
1078 <compare>: Remove static method, introduce virtual method.
1079 <default_hash>: Remove.
1080 <hash>: New virtual method.
1081 * bcache.c (bcache::expand_hash_table): Update.
1082 (bcache::insert): Update.
1083 (bcache::hash): New.
1084 (bcache::compare): Update comment and parameter names.
1085 * gdbtypes.c (types_deeply_equal): Update.
1086 * psymtab.h (struct psymbol_bcache): New struct.
1087 (class psymtab_storage) <psymtab_storage>: Make default.
1088 <psymbol_cache>: Change type to psymbol_bcache.
1089 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1090 (psymbol_hash): Change to...
1091 (psymbol_bcache::hash): ... this.
1092 (psymbol_compare): Change to...
1093 (psymbol_bcache::compare): ... this.
1094
677c92fe
SM
10952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1098 checking for initial lwp.
1099
3eba3a01
TT
11002020-09-14 Tom Tromey <tromey@adacore.com>
1101
1102 * m68k-tdep.c (m68k_extract_return_value): Use
1103 pointer_result_regnum.
1104 (m68k_store_return_value): Likewise.
1105 (m68k_reg_struct_return_p): Handle vectors and arrays.
1106 (m68k_return_value): Handle arrays.
1107 (m68k_svr4_return_value): Fix single-element aggregate handling.
1108 Handle long double. Adjust for embedded ABI.
1109 (m68k_svr4_init_abi): Set pointer_result_regnum.
1110 (m68k_embedded_init_abi): New function.
1111 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1112 (m68k_osabi_sniffer): New function.
1113 (_initialize_m68k_tdep): Register osabi sniffer.
1114 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1115 member.
1116
33f4dd48
SM
11172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1118
1119 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1120 with gdb::unique_xmalloc_ptr<char>.
1121
8400a90d
SM
11222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 * xml-support.h (xml_fetch_another): Change type to be a
1125 function_view.
1126 (xml_process_xincludes): Remove baton parameter.
1127 (xml_fetch_content_from_file): Change baton parameter to
1128 dirname.
1129 * xml-support.c (struct xinclude_parsing_data)
1130 <xinclude_parsing_data>: Remove baton parameter.
1131 <fetcher_baton>: Remove.
1132 (xinclude_start_include): Adjust.
1133 (xml_process_xincludes): Adjust.
1134 (xml_fetch_content_from_file): Replace baton parameter with
1135 dirname.
1136 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1137 (xml_init_syscalls_info): Use a lambda.
1138 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1139 (file_read_description_xml): Use a lambda.
1140 (fetch_available_features_from_target): Change baton parameter
1141 to target_ops.
1142 (target_read_description_xml): Use a lambda.
1143 (target_fetch_description_xml): Use a lambda.
1144 (string_read_description_xml): Update.
1145
04f5bab2
SM
11462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1147
1148 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1149 uses with type::endianity_is_not_default.
1150
db558e34
SM
11512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1152
1153 * gdbtypes.h (struct type) <endianity_is_not_default,
1154 set_endianity_is_not_default>: New methods.
1155 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1156 type::endianity_is_not_default, change all write call sites to
1157 use type::set_endianity_is_not_default.
1158
22c4c60c
SM
11592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1160
1161 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1162 uses with type::is_fixed_instance.
1163
9cdd0d12
SM
11642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (struct type) <is_fixed_instance,
1167 set_is_fixed_instance>: New methods.
1168 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1169 write call sites to use type::set_is_fixed_instance.
1170
0becda7a
SM
11712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1174 uses with type::is_gnu_ifunc.
1175
03cc7249
SM
11762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1177
1178 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1179 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1180 use type::set_is_gnu_ifunc.
1181
3f46044c
SM
11822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1185 uses with type::stub_is_supported.
1186
9baccff6
SM
11872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1188
1189 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1190 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1191 use type::set_stub_is_supported.
1192
bd63c870
SM
11932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1196 uses with type::is_vector.
1197
2062087b
SM
11982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1201 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1202 use type::set_is_vector.
1203
a409645d
SM
12042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1207 uses with type::has_varargs.
1208
1d6286ed
SM
12092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1210
1211 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1212 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1213 use type::set_has_varargs.
1214
7f9f399b
SM
12152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1218 uses with type::is_prototyped.
1219
27e69b7a
SM
12202020-09-14 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1223 New methods.
1224 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1225 call sites to use type::set_is_prototyped.
1226
d2183968
SM
12272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1230 uses with type::target_is_stub.
1231
8f53807e
SM
12322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1235 New methods.
1236 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1237 sites to use type::set_target_is_stub.
1238
e46d3488
SM
12392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1240
1241 * gdbtypes.h (TYPE_STUB): Remove, replace all
1242 uses with type::is_stub.
1243
b4b73759
SM
12442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1245
1246 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1247 (TYPE_STUB): Use type::is_stub, change all write call sites to
1248 use type::set_is_stub.
1249
20ce4123
SM
12502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1253 type::has_no_signedness.
1254
15152a54
SM
12552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * gdbtypes.h (struct type) <has_no_signedness,
1258 set_has_no_signedness>: New methods.
1259 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1260 call sites to use type::set_has_no_signedness.
1261
c6d940a9
SM
12622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1265 type::is_unsigned.
1266
653223d3
SM
12672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1270 methods.
1271 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1272 sites to use type::set_is_unsigned.
1273
55ea94da
FH
12742020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1275 Adam Renquinha <arenquinha@cimeq.qc.ca>
1276
1277 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1278 pointer and stack frame offset when unwinding.
1279
6791b117
PA
12802020-09-13 Pedro Alves <pedro@palves.net>
1281
1282 * NEWS: Document "-break-insert --qualified".
1283 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1284
77f2120b
PA
12852020-09-13 Pedro Alves <pedro@palves.net>
1286
1287 * linespec.c (classify_mtype, compare_msyms): Delete.
1288 (search_minsyms_for_name): Remove classification logic. Instead
1289 filter out trampoline symbols if we also found an external
1290 function of the same name.
1291
ed6a896c
JB
12922020-09-13 Joel Brobecker <brobecker@adacore.com>
1293
1294 * NEWS: Create a new section for the next release branch.
1295 Rename the section of the current branch, now that it has
1296 been cut.
1297
32aea73e
JB
12982020-09-13 Joel Brobecker <brobecker@adacore.com>
1299
1300 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1301 * version.in: Bump version to 11.0.50.DATE-git.
1302
8087c3fa
JB
13032020-09-12 Joel Brobecker <brobecker@adacore.com>
1304
1305 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1306
2a67f09d
FW
13072020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1308 Felix Willgerodt <Felix.Willgerodt@intel.com>
1309
1310 * gdbarch.sh: Added bfloat16 type.
1311 * gdbarch.c: Regenerated.
1312 * gdbarch.h: Regenerated.
1313 * gdbtypes.c (floatformats_bfloat16): New struct.
1314 (gdbtypes_post_init): Add builtin_bfloat16.
1315 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1316 (floatformats_bfloat16): New struct.
1317 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1318 (i386_ymm_type): Add field "v16_bfloat16"
1319 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1320 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1321 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1322 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1323 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1324 * features/i386/64bit-avx512.c: Regenerated.
1325 * features/i386/64bit-sse.xml: Add bfloat16 type.
1326 * features/i386/64bit-sse.c: Regenerated.
1327
1347d111
FW
13282020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1329
1330 * i386-tdep.c (i386_zmm_type): Fix field names.
1331 (i386_ymm_type): Fix field names.
1332
7a4e8e7d
TBA
13332020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 * breakpoint.c: Fix typo in the help message of the
1336 "set breakpoint condition-evaluation" command.
1337
cf4ac4be
KR
13382020-09-10 Kamil Rytarowski <n54@gmx.com>
1339
1340 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1341 * (nbsd_nat_target::pid_to_exec_file)
1342 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1343 (nbsd_nat_target::post_startup_inferior)
1344 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1345 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1346 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1347 * (nbsd_thread_lister): Remove.
1348
f404573e
KR
13492020-09-10 Kamil Rytarowski <n54@gmx.com>
1350
1351 * fork-inferior.c (startup_inferior): Avoid double free.
1352
1ccb2c17
KR
13532020-09-10 Kamil Rytarowski <n54@gmx.com>
1354
1355 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1356 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1357
feedfcc7
KR
13582020-09-10 Kamil Rytarowski <n54@gmx.com>
1359
1360 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1361 * netbsd-nat.c: Include <sys/ptrace.h>.
1362 * (netbsd_nat::enable_proc_events): Add.
1363
c489f8c6
KR
13642020-09-10 Kamil Rytarowski <n54@gmx.com>
1365
1366 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1367 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1368 (netbsd_nat::for_each_thread): Add.
1369 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1370 "gdbsupport/common-debug.h".
1371 * (netbsd_nat::netbsd_thread_lister)
1372 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1373 (netbsd_nat::for_each_thread): Add.
1374
330662f6
KR
13752020-09-10 Kamil Rytarowski <n54@gmx.com>
1376
1377 * netbsd-nat.h: Include <unistd.h>.
1378 * (netbsd_nat::pid_to_exec_file): Add.
1379 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1380 * (netbsd_nat::pid_to_exec_file) Add.
1381
70b67307
KR
13822020-09-10 Kamil Rytarowski <n54@gmx.com>
1383
1384 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1385
99cf6da6
KR
13862020-09-10 Kamil Rytarowski <n54@gmx.com>
1387
1388 * netbsd-nat.h: New file.
1389 * netbsd-nat.c: Likewise.
1390
1b788fb6
TT
13912020-09-09 Tom Tromey <tromey@adacore.com>
1392
1393 * ada-lang.c (remove_extra_symbols): Do not increment when
1394 removing an element
1395
03b0a45f
TT
13962020-09-08 Tom Tromey <tromey@adacore.com>
1397
1398 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1399
3cae4447
TT
14002020-09-08 Tom Tromey <tromey@adacore.com>
1401
1402 PR win32/25302:
1403 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1404 (gdb_bfd_init_data): New function.
1405 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1406
7f08fd51
TBA
14072020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408
1409 * infrun.c (fetch_inferior_event): Use
1410 `switch_to_target_no_thread` to switch the target.
1411
3e6ff933
TT
14122020-09-06 Tom Tromey <tom@tromey.com>
1413
1414 * symfile.h (dwarf2_free_objfile): Don't declare.
1415
e56798df
AKS
14162020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1417
1418 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1419 to match 16 byte real/complex type generated by Flang compiler.
1420
8f5c6526
TV
14212020-09-03 Tom de Vries <tdevries@suse.de>
1422
1423 PR breakpoint/26546
1424 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1425 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1426
c5065df0
SM
14272020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1428
1429 * maint.c (index_digits): New function.
1430 (struct maint_print_section_data): Remove.
1431 (print_bfd_section_info): Remove print_data parameter, add arg
1432 and index_digits.
1433 (print_objfile_section_info): Likewise.
1434 (print_bfd_section_info_maybe_relocated): Likewise (plus
1435 objfile).
1436 (maintenance_info_sections): Adjust calls.
1437
02c6f3f1
TT
14382020-09-02 Tom Tromey <tromey@adacore.com>
1439
1440 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1441 for null pointers.
1442 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1443
ef5e5b0b
SM
14442020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * bcache.h (struct bcache) <insert>: Change type of `added` to
1447 pointer to bool.
1448 * bcache.c (bcache::insert): Likewise.
1449 * gdbtypes.c (check_types_worklist): Adjust.
1450 * psymtab.c (add_psymbol_to_bcache): Adjust.
1451
973695d6
KB
14522020-08-31 Kevin Buettner <kevinb@redhat.com>
1453
1454 * corelow.c (unordered_set): Include.
1455 (class core_target): Add field 'm_core_unavailable_mappings'.
1456 (core_target::build_file_mappings): Print only one warning
1457 per inaccessible file. Add unavailable/broken mappings
1458 to m_core_unavailable_mappings.
1459 (core_target::xfer_partial): Call...
1460 (core_target::xfer_memory_via_mappings): New method.
1461
264fc0e2
SM
14622020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1465 type to bool.
1466
2de01bdb
SM
14672020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 * dwarf2/read.c (struct field_info): Fix indentation.
1470
f3bd50f1
SM
14712020-08-31 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1474 ordering in comment.
1475 * frame.c (frame_id_eq): Fix indentation.
1476
22b9b4b0
SL
14772020-08-31 Scott Linder <scott@scottlinder.com>
1478 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1481 inline frame ids in outer frame.
1482
84154d16
SM
14832020-08-31 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1486 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1487 (outer_frame_id): Use FID_STACK_OUTER instead of
1488 FID_STACK_INVALID.
1489 (frame_id_p): Don't check for outer_frame_id.
1490
8efaf6b3
SM
14912020-08-31 Simon Marchi <simon.marchi@efficios.com>
1492
1493 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1494 regnum/frame in value. Call allocate_value_lazy.
1495 * frame.c (frame_unwind_register_value): Use
1496 val_print_not_saved.
1497
fe1fe7ea
SM
14982020-08-31 Simon Marchi <simon.marchi@efficios.com>
1499
1500 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1501
f7c7700d
PA
15022020-08-29 Pedro Alves <pedro@palves.net>
1503
1504 * progspace.c (print_program_space): Use all_inferiors. Switch to
1505 the inferior before calling target_pid_to_str.
1506
e0814aae
TT
15072020-08-28 Tom Tromey <tom@tromey.com>
1508
1509 * xcoffread.c (xcoff_end_psymtab): Update comment.
1510 * dbxread.c (dbx_end_psymtab): Update comment.
1511
626d2320
TV
15122020-08-28 Tom de Vries <tdevries@suse.de>
1513
1514 PR breakpoint/26544
1515 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1516 event_location.
1517 (create_breakpoint): Same.
1518 (base_breakpoint_decode_location): Same.
1519 (bkpt_create_sals_from_location): Same.
1520 (bkpt_decode_location): Same.
1521 (bkpt_probe_create_sals_from_location): Same.
1522 (bkpt_probe_decode_location): Same.
1523 (tracepoint_create_sals_from_location): Same.
1524 (tracepoint_decode_location): Same.
1525 (tracepoint_probe_decode_location): Same.
1526 (strace_marker_create_sals_from_location): Same.
1527 (strace_marker_decode_location): Same.
1528 (create_sals_from_location_default): Same.
1529 (decode_location_default): Same.
1530 * breakpoint.h (struct breakpoint_ops): Same.
1531 (create_breakpoint): Same.
1532 * linespec.h (decode_line_full): Same.
1533 * linespec.c (decode_line_full): Same. Throw error if
1534 result.size () == 0.
1535
df631783
PA
15362020-08-27 Pedro Alves <pedro@palves.net>
1537
1538 PR gdb/26524
1539 * breakpoint.c (until_break_fsm) <location_breakpoint,
1540 caller_breakpoint>: Delete fields.
1541 <breakpoints>: New field.
1542 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1543 two individual breakpoints.
1544 (until_break_fsm::should_stop): Loop over breakpoints in the
1545 breakpoint vector.
1546 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1547 vector.
1548 (until_break_command): Handle location expanding into multiple
1549 sals.
1550
b2b38aa4
PA
15512020-08-27 Pedro Alves <pedro@palves.net>
1552
1553 PR gdb/26523
1554 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1555 bp_until breakpoints user-specified locations. Update intro
1556 comment.
1557
b886559f
SM
15582020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1559
1560 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1561 gdb_bfd_sections): New.
1562 * maint.c (print_bfd_section_info): Change param type to
1563 maint_print_section_data.
1564 (print_objfile_section_info): Likewise.
1565 (print_bfd_section_info_maybe_relocated): Likewise.
1566 (maintenance_info_sections): Use gdb_bfd_sections.
1567
4c6e63bf
SV
15682020-08-25 Shahab Vahedi <shahab@synopsys.com>
1569
1570 * MAINTAINERS: Add ARC target and maintainer.
1571
8d7f0635
AK
15722020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1573
1574 * configure.tgt: ARC support for GNU/Linux.
1575 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1576 * arc-linux-tdep.c: New file.
1577 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1578 * arc-tdep.c (arc_write_pc): Use it.
1579
fdd8731b
SV
15802020-08-25 Shahab Vahedi <shahab@synopsys.com>
1581
1582 * arc-tdep.c (arc_check_for_hardware_loop): New.
1583 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1584
22459524
SV
15852020-08-25 Shahab Vahedi <shahab@synopsys.com>
1586
1587 * arc-tdep.h: Include "gdbarch.h".
1588
995d3a19
SV
15892020-08-25 Shahab Vahedi <shahab@synopsys.com>
1590
1591 * arch/arc.h
1592 (arc_gdbarch_features): New class to stir the selection of target XML.
1593 (arc_create_target_description): Use FEATURES to choose XML target.
1594 (arc_lookup_target_description): Use arc_create_target_description
1595 to create _new_ target descriptions or return the already created
1596 ones if the FEATURES is the same.
1597 * arch/arc.c: Implementation of prototypes described above.
1598 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1599 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1600 * arc-tdep.c (*_feature_name): Make feature names consistent.
1601 (arc_register_feature): A new struct to hold information about
1602 registers of a particular target/feature.
1603 (arc_check_tdesc_feature): Check if XML provides registers in
1604 compliance with ARC_REGISTER_FEATURE structs.
1605 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1606 (determine_*_reg_feature_set): Which feature name to look for.
1607 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1608 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1609 to expected ISA enums to be used in arc_gdbarch_features structs.
1610 * features/Makefile (FEATURE_XMLFILES): Add new files.
1611 * gdb/features/arc/v1-aux.c: New file.
1612 * gdb/features/arc/v1-aux.xml: Likewise.
1613 * gdb/features/arc/v1-core.c: Likewise.
1614 * gdb/features/arc/v1-core.xml: Likewise.
1615 * gdb/features/arc/v2-aux.c: Likewise.
1616 * gdb/features/arc/v2-aux.xml: Likewise.
1617 * gdb/features/arc/v2-core.c: Likewise.
1618 * gdb/features/arc/v2-core.xml: Likewise.
1619 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1620
3945d2d7
GM
16212020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1622 Andrew Burgess <andrew.burgess@embecosm.com>
1623
1624 PR m2/26372
fc5d6901 1625 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1626 an assert. Remove single element array indexing pattern as the
1627 MULTI_SUBSCRIPT support will handle this case too.
1628
2677f2d3
SM
16292020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * value.h (valprint_check_validity): Move declaration from
1632 here...
1633 * valprint.h (valprint_check_validity): ... to here.
1634
c426fddb
SM
16352020-08-24 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * debug.h: New file.
1638 * debug.c (debug_prefixed_vprintf): New function.
1639 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1640 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1641
1eb8556f
SM
16422020-08-24 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * infrun.h (infrun_debug_printf_1): New function declaration.
1645 (infrun_debug_printf): New macro.
1646 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1647 throughout.
1648 (infrun_debug_printf): New function.
1649 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1650 (handle_jit_event): Likewise.
1651
b8fff44e
MW
16522020-08-21 Mark Wielaard <mark@klomp.org>
1653
1654 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1655
d19c3068
SM
16562020-08-22 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * frame.c (enum class frame_id_status): New.
1659 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1660 (fprintf_frame): Update.
1661 (compute_frame_id): Set frame id status to "computing" on entry.
1662 Set it back to "not_computed" on failure and to "computed" on
1663 success.
1664 (get_frame_id): Assert the frame id is not being computed.
1665 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1666 (create_new_frame): Likewise.
1667 (frame_cleanup_after_sniffer): Update assert.
1668
b70e516e
SM
16692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * regcache.c (pid_ptid_regcache_map): New type.
1672 (target_ptid_regcache_map): Remove.
1673 (target_pid_ptid_regcache_map): New type.
1674 (regcaches): Change type to target_pid_ptid_regcache_map.
1675 (get_thread_arch_aspace_regcache): Update.
1676 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1677 case.
1678 (regcaches_size): Update.
1679 (regcache_count): Update.
1680 (registers_changed_ptid_target_pid_test): New.
1681 (_initialize_regcache): Register new test.
1682
cdd9148a
SM
16832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * regcache.c (regcache_count): New.
1686 (struct regcache_test_data): New.
1687 (regcache_test_data_up): New.
1688 (populate_regcaches_for_test): New.
1689 (regcaches_test): Remove.
1690 (get_thread_arch_aspace_regcache_test): New.
1691 (registers_changed_ptid_all_test): New.
1692 (registers_changed_ptid_target_test): New.
1693 (registers_changed_ptid_target_ptid_test): New.
1694 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1695 (_initialize_regcache): Register new tests.
1696
dd125343
SM
16972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1698
1699 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1700 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1701 gdbarch and aspace parameter. Use current inferior's aspace.
1702 Validate regcache's arch value.
1703 (regcaches_test): Update.
1704
3ee93972
SM
17052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * regcache.c (regcaches_test): Call registers_changed.
1708
33bf4c5c
TBA
17092020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1710
1711 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1712
c2fd7fae
AKS
17132020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1714
1715 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1716 to find the end of prologue for flang compiled binaries.
1717 * arm-tdep.c (arm_skip_prologue): Likewise.
1718 * i386-tdep.c (i386_skip_prologue): Likewise.
1719 * producer.c (producer_is_llvm): New function.
1720 (producer_parsing_tests): Added new tests for clang/flang.
1721 * producer.h (producer_is_llvm): New declaration.
1722
9327494e
SM
17232020-08-18 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * linux-nat.c (linux_nat_debug_printf): New function.
1726 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1727
d138725a
AM
17282020-08-18 Aaron Merey <amerey@redhat.com>
1729
1730 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1731 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1732 (CLIBS): Add DEBUGINFOD_LIBS.
1733
f9b11e6b
ST
17342020-08-17 Sergei Trofimovich <siarheit@google.com>
1735
1736 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1737 'gdbarch_num_regs'.
1738
3ae7ab99
TT
17392020-08-17 Tom Tromey <tromey@adacore.com>
1740
1741 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1742 ada_get_decoded_value returns NULL.
1743
b017825f
TT
17442020-08-17 Tom Tromey <tromey@adacore.com>
1745
1746 * python/py-inferior.c (infpy_search_memory): Use
1747 gdb_py_object_from_ulongest.
1748 * python/py-infevents.c (create_inferior_call_event_object)
1749 (create_memory_changed_event_object): Use
1750 gdb_py_object_from_ulongest.
1751 * python/py-linetable.c (ltpy_entry_get_pc): Use
1752 gdb_py_object_from_ulongest.
1753
7635cf79
SM
17542020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * loc.c (class symbol_needs_eval_context): Fix indentation.
1757
f54be24b
SM
17582020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1759
1760 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1761 bool.
1762
53d5a2a5
TV
17632020-08-17 Tom de Vries <tdevries@suse.de>
1764
1765 PR gdb/26393
1766 * gdbtypes.c (dump_dynamic_prop): New function.
1767 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1768
547ce8f0
TV
17692020-08-15 Tom de Vries <tdevries@suse.de>
1770
1771 PR backtrace/26390
1772 * stack.c (print_frame_args): Temporarily set the selected
1773 frame to FRAME while printing the frame's arguments.
1774
6ea815e7
PFC
17752020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1776
1777 PR breakpoints/26385
1778 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1779 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1780
6e562fa3
PFC
17812020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1782
1783 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1784 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1785 and >= to check return value instead of == -1 and != -1.
1786
d369b608
SM
17872020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * utils.h (class gdb_argv) <as_array_view>: New method.
1790 * utils.c (gdb_argv_as_array_view_test): New.
1791 (_initialize_utils): Register selftest.
1792 * maint.c (maintenance_selftest): Use the new method.
1793
b31488a3
KR
17942020-08-13 Kamil Rytarowski <n54@gmx.com>
1795
1796 * target.h (supports_dumpcore, dumpcore): New
1797 function declarations.
1798 * target.c (supports_dumpcore, dumpcore): New
1799 functions.
1800 * target-delegates.c: Rebuild.
1801 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1802 and target_dumpcore ().
1803
002a3166
AM
18042020-08-13 Aaron Merey <amerey@redhat.com>
1805
1806 * debuginfod-support.c: Replace global variables with user_data.
1807
ece5bc8a
SM
18082020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * maint.c (maintenance_selftest): Split args and pass array_view
1811 to run_tests.
1812
6d8a0a5e
LM
18132020-08-12 Luis Machado <luis.machado@linaro.org>
1814
1815 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1816 type's length.
1817 Use %s and pulongest to print the length.
1818
7cf663a9
PA
18192020-08-12 Pedro Alves <palves@redhat.com>
1820
1821 * NEWS: Move "Multi-target debugging support" item to the
1822 "Changes since GDB 9" section.
1823
27c7b875
PA
18242020-08-12 Pedro Alves <palves@redhat.com>
1825
1826 PR gdb/26336
1827 * progspace.c (program_space::remove_objfile): Invalidate the
1828 frame cache.
1829
1796a2a1
TV
18302020-08-11 Tom de Vries <tdevries@suse.de>
1831
1832 * MAINTAINERS: Mark ms1 as deleted.
1833
f8e3fe0d
LM
18342020-08-10 Luis Machado <luis.machado@linaro.org>
1835
1836 PR gdb/26310
1837
1838 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1839 act accordingly.
1840 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1841 movz/str/stur/stp skipping behavior.
1842
cc308722
LM
18432020-08-10 Luis Machado <luis.machado@linaro.org>
1844
1845 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1846 struct user_sve_header instead of struct sve_context.
1847
041d9819
SM
18482020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1849
1850 * read.h (dwarf2_fetch_die_loc_sect_off,
1851 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1852 `void *` parameter with function_view.
1853 * read.c (dwarf2_fetch_die_loc_sect_off,
1854 dwarf2_fetch_die_loc_cu_off): Likewise.
1855 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1856 (per_cu_dwarf_call): Adjust.
1857 (get_frame_address_in_block_wrapper): Remove.
1858 (indirect_synthetic_pointer): Adjust.
1859 (get_ax_pc): Remove.
1860 (dwarf2_compile_expr_to_ax): Adjust.
1861
38f8aa06
TV
18622020-08-08 Tom de Vries <tdevries@suse.de>
1863
1864 PR build/26344
1865 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1866 constructor.
1867 * regcache.c (get_thread_arch_aspace_regcache): Same.
1868
a52b3ae2
TT
18692020-08-07 Tom Tromey <tromey@adacore.com>
1870
1871 * ravenscar-thread.c
1872 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1873 New method.
1874 (ravenscar_thread_target::wait): Check
1875 runtime_initialized.
1876 (ravenscar_thread_target::prepare_to_store)
1877 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1878 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1879 (ravenscar_thread_target::stopped_by_watchpoint)
1880 (ravenscar_thread_target::stopped_data_address)
1881 (ravenscar_thread_target::core_of_thread): Use
1882 scoped_restore_current_thread and
1883 set_base_thread_from_ravenscar_task.
1884
0e29517d
TT
18852020-08-07 Tom Tromey <tromey@adacore.com>
1886
1887 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1888
592f9bd7
TT
18892020-08-07 Tom Tromey <tromey@adacore.com>
1890
1891 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1892 update_inferior_ptid before update_thread_list.
1893 (temporarily_change_regcache_ptid): New class.
1894 (ravenscar_thread_target::fetch_registers)
1895 (ravenscar_thread_target::store_registers)
1896 (ravenscar_thread_target::prepare_to_store): Use base thread when
1897 forwarding operation.
1898
39e2018a
TT
18992020-08-07 Tom Tromey <tromey@adacore.com>
1900
1901 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1902 "is_pid" case.
1903
2080266b
TT
19042020-08-07 Tom Tromey <tromey@adacore.com>
1905
1906 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1907 New methods.
1908 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1909 first.
1910 (ravenscar_thread_target::add_thread): Rename from
1911 ravenscar_add_thread.
1912 (ravenscar_thread_target::update_thread_list): Use a lambda.
1913 (ravenscar_thread_target::xfer_partial): New method.
1914
78c02f21
TT
19152020-08-07 Tom Tromey <tromey@adacore.com>
1916
1917 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1918 gdb::function_view.
1919 (iterate_over_live_ada_tasks): Change type of argument.
1920 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1921 of argument.
1922
d5d833af
TT
19232020-08-07 Tom Tromey <tromey@adacore.com>
1924
1925 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1926 Remove.
1927 (ravenscar_thread_target::extra_thread_info): Remove.
1928 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1929 defer to target beneath for non-Ravenscar threads.
1930
a8ac85bb
TT
19312020-08-07 Tom Tromey <tromey@adacore.com>
1932
1933 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1934 get_base_thread_from_ravenscar_task>: Now methods.
1935 <m_cpu_map>: New member.
1936 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1937 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1938 (ravenscar_thread_target::task_is_currently_active): Update.
1939 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1940 Now a method.
1941 (ravenscar_thread_target::add_active_thread): Put initial thread
1942 into the m_cpu_map.
1943
550ab58d
TT
19442020-08-07 Tom Tromey <tromey@adacore.com>
1945
1946 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1947 event_ptid.
1948
e9546579
TT
19492020-08-07 Tom Tromey <tromey@adacore.com>
1950
1951 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1952 runtime_initialized.
1953
3d4470e5
TT
19542020-08-07 Tom Tromey <tromey@adacore.com>
1955
1956 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1957 add_active_thread.
1958 (ravenscar_thread_target::add_active_thread): Now public.
1959 (ravenscar_inferior_created): Call add_active_thread after pushing
1960 the target.
1961
888bdb2b
SM
19622020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1963
1964 * regcache.c (ptid_regcache_map): New type.
1965 (target_ptid_regcache_map): New type.
1966 (regcaches): Change type to target_ptid_regcache_map.
1967 (get_thread_arch_aspace_regcache): Update to regcaches' new
1968 type.
1969 (regcache_thread_ptid_changed): Likewise.
1970 (registers_changed_ptid): Likewise.
1971 (regcaches_size): Likewise.
1972 (regcaches_test): Update.
1973 (regcache_thread_ptid_changed): Update.
1974 * regcache.h (regcache_up): New type.
1975 * gdbsupport/ptid.h (hash_ptid): New struct.
1976
b161a60d
SM
19772020-08-07 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * observable.h (thread_ptid_changed): Add parameter
1980 `process_stratum_target *`.
1981 * infrun.c (infrun_thread_ptid_changed): Add parameter
1982 `process_stratum_target *` and use it.
1983 (selftests): New namespace.
1984 (infrun_thread_ptid_changed): New function.
1985 (_initialize_infrun): Register selftest.
1986 * regcache.c (regcache_thread_ptid_changed): Add parameter
1987 `process_stratum_target *` and use it.
1988 (regcache_thread_ptid_changed): New function.
1989 (_initialize_regcache): Register selftest.
1990 * thread.c (thread_change_ptid): Pass target to
1991 thread_ptid_changed observable.
1992
d2854d8d
CT
19932020-08-06 Caroline Tice <cmtice@google.com>
1994
fe4c3d43
SM
1995 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1996 (struct dwp_sections): Update field comments. Add loclists and
1997 rnglists fields.
1998 (struct virtual_v2_dwo_sections): Rename struct to
1999 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2000 size & offset fields for loclists and rnglists.
2001 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2002 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2003 skipping dummy type units.
2004 (create_dwp_hash_table): Update the large comment above the function to
2005 discuss Version 5 DWP files as well, with references. Update all the
2006 version checks in the function to check for version 5 as well. Add new
2007 section at the end to create dwp hash table for version 5.
2008 (create_dwp_v2_section): Rename function to
2009 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2010 Add V5 to error message text.
2011 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2012 into calls to create_dwp_v2_or_v5_section.
2013 (create_dwo_unit_in_dwp_v5): New function.
2014 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2015 check for version2; add else clause to handle version 5.
2016 (open_and_init_dwo_file): Add code to check dwarf version & only call
2017 create_debug_types_hash_table (with sections.types) if version is not 5;
2018 else call create_debug_type_hash_table, with sections.info.
2019 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2020 version 5.
2021 (dwarf2_locate_v5_dwp_sections): New function.
2022 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2023 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2024
159ed7d9
SM
20252020-08-06 Simon Marchi <simon.marchi@efficios.com>
2026
2027 * regcache.h (class regcache): Remove friend
2028 registers_changed_ptid.
2029 <regcache_thread_ptid_changed>: Remove.
2030 <regcaches>: Remove.
2031 * regcache.c (regcache::regcaches): Rename to...
2032 (regcaches): ... this. Make static.
2033 (get_thread_arch_aspace_regcache): Update.
2034 (regcache::regcache_thread_ptid_changed): Rename to...
2035 (regcache_thread_ptid_changed): ... this. Update.
2036 (class regcache_access): Remove.
2037 (regcaches_test): Update.
2038 (_initialize_regcache): Update.
2039 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2040 <forward_list>.
2041
174981ae
SM
20422020-08-06 Simon Marchi <simon.marchi@efficios.com>
2043
2044 * regcache.h (class regcache) <current_regcache>: Rename to...
2045 <regcaches>: ... this. Move doc here.
2046 * regcache.c (regcache::current_regcache) Rename to...
2047 (regcache::regcaches): ... this. Move doc to header.
2048 (get_thread_arch_aspace_regcache): Update.
2049 (regcache::regcache_thread_ptid_changed): Update.
2050 (registers_changed_ptid): Update.
2051 (class regcache_access) <current_regcache_size>: Rename to...
2052 <regcaches_size>: ... this.
2053 (current_regcache_test): Rename to...
2054 (regcaches_test): ... this.
2055 (_initialize_regcache): Update.
2056
ed908db6
VC
20572020-08-06 Victor Collod <vcollod@nvidia.com>
2058
2059 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2060
b5582ab7
KB
20612020-08-05 Kevin Buettner <kevinb@redhat.com>
2062
2063 * corelow.c (core_target::build_file_mappings): Don't output
2064 null pathname in warning.
2065
ea946b86
SM
20662020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2069 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2070 gdb.dwarf2/dw2-single-line-discriminators.exp,
2071 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2072
57d02173
TT
20732020-08-05 Tom Tromey <tromey@adacore.com>
2074
2075 PR rust/26197:
2076 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2077 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2078 Fix off-by-one and type size errors in ordinary case.
2079
5555c86d
TV
20802020-08-05 Tom de Vries <tdevries@suse.de>
2081
2082 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2083 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2084
97916bfe
SM
20852020-08-04 Simon Marchi <simon.marchi@efficios.com>
2086
2087 * frame.h (frame_id_p): Return bool.
2088 (frame_id_artificial_p): Return bool.
2089 (frame_id_eq): Return bool.
2090 (has_stack_frames): Return bool.
2091 (get_selected_frame): Fix typo in comment.
2092 (get_frame_pc_if_available): Return bool.
2093 (get_frame_address_in_block_if_available): Return bool.
2094 (get_frame_func_if_available): Return bool.
2095 (read_frame_register_unsigned): Return bool.
2096 (get_frame_register_bytes): Return bool.
2097 (safe_frame_unwind_memory): Return bool.
2098 (deprecated_frame_register_read): Return bool.
2099 (frame_unwinder_is): Return bool.
2100 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2101 bool.
2102 <this_id::p>: Likewise.
2103 <prev_p>: Likewise.
2104 (frame_stash_add): Return bool.
2105 (get_frame_id): Use bool.
2106 (frame_id_build_special) Use bool.
2107 (frame_id_build_unavailable_stack): Use bool.
2108 (frame_id_build): Use bool.
2109 (frame_id_p): Return bool, use true/false instead of 1/0.
2110 (frame_id_artificial_p): Likewise.
2111 (frame_id_eq): Likewise.
2112 (frame_id_inner): Likewise.
2113 (get_frame_func_if_available): Likewise.
2114 (read_frame_register_unsigned): Likewise.
2115 (deprecated_frame_register_read): Likewise.
2116 (get_frame_register_bytes): Likewise.
2117 (has_stack_frames): Likewise.
2118 (inside_main_func): Likewise.
2119 (inside_entry_func): Likewise.
2120 (get_frame_pc_if_available): Likewise.
2121 (get_frame_address_in_block_if_available): Likewise.
2122 (frame_unwinder_is): Likewise.
2123 (safe_frame_unwind_memory): Likewise.
2124 (frame_unwind_arch): Likewise.
2125
fedfee88
SM
21262020-08-04 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2129 type to cached_copy_status.
2130 (fprintf_frame): Adjust.
2131 (get_frame_func_if_available): Adjust.
2132 (frame_cleanup_after_sniffer): Adjust.
2133
6cfa9b59
MW
21342020-08-04 Mark Wielaard <mark@klomp.org>
2135
2136 * MAINTAINERS (Write After Approval): Update email address.
2137
66d6346b
SM
21382020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2139
2140 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2141 dynamic_prop::const_val.
2142
8a6d5e35
SM
21432020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2146 dynamic_prop::kind.
2147
51d6067d
SM
21482020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2151
b26e2ae7
JM
21522020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2153
2154 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2155
39791af2
JM
21562020-08-04 Weimin Pan <weimin.pan@oracle.com>
2157 Jose E. Marchesi <jose.marchesi@oracle.com>
2158
2159 * configure.tgt: Add entry for bpf-*-*.
2160 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2161 (ALLDEPFILES): Add bpf-tdep.c.
2162 * bpf-tdep.c: New file.
2163 * MAINTAINERS: Add bpf target and maintainer.
2164 * NEWS: Mention the support for the new target.
2165
521894aa
TV
21662020-08-04 Tom de Vries <tdevries@suse.de>
2167
2168 PR symtab/23270
2169 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2170 Error.
2171
5d6356e9
JB
21722020-08-03 John Baldwin <jhb@FreeBSD.org>
2173
2174 * syscalls/freebsd.xml: Regenerate.
2175
0cf82b81
JB
21762020-08-03 John Baldwin <jhb@FreeBSD.org>
2177
2178 * syscalls/update-freebsd.sh: Fix usage and year range.
2179
8f34b746
TV
21802020-08-03 Tom de Vries <tdevries@suse.de>
2181
2182 PR symtab/26333
2183 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2184 DW_LNE_lo_user/DW_LNE_hi_user range.
2185
5e500d33
SM
21862020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2187
2188 PR ada/26318
2189 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2190 kind.
2191
78319c15
TBA
21922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2193
2194 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2195
4c55e970
TBA
21962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2197
2198 * breakpoint.c (set_breakpoint_condition): Update the condition
2199 expressions after checking that the input condition string parses
2200 successfully and does not contain junk at the end.
2201
1e620590
TBA
22022020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2203
2204 * breakpoint.c (set_breakpoint_condition): Update the
2205 condition string after parsing the new condition successfully.
2206
c8693053
RO
22072020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2208
2209 * proc-api.c (_STRUCTURED_PROC): Don't define.
2210 * proc-events.c: Likewise.
2211 * proc-flags.c: Likewise.
2212 * proc-why.c: Likewise.
2213 * procfs.c: Likewise.
2214
2215 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2216 * configure, config.in: Regenerate.
2217
5a99adb8
TV
22182020-07-30 Tom de Vries <tdevries@suse.de>
2219
2220 PR build/26320
2221 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2222 m_red/m_green/m_blue in a union.
2223
8ba83e91
TV
22242020-07-29 Tom de Vries <tdevries@suse.de>
2225
2226 PR tdep/26280
2227 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2228
f75a0693
AB
22292020-07-28 Tom Tromey <tromey@adacore.com>
2230
2231 PR symtab/26270:
2232 * symtab.h (find_pc_partial_function_sym): Declare.
2233 * cli/cli-cmds.c (disassemble_command): Use
2234 find_pc_partial_function_sym. Check asm_demangle.
2235 * blockframe.c (cache_pc_function_sym): New global.
2236 (cache_pc_function_name): Remove.
2237 (clear_pc_function_cache): Update.
2238 (find_pc_partial_function_sym): New function, from
2239 find_pc_partial_function.
2240 (find_pc_partial_function): Rewrite using
2241 find_pc_partial_function_sym.
2242
16f3242c
TT
22432020-07-28 Tom Tromey <tromey@adacore.com>
2244
2245 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2246 help. Add usage.
2247
4888741a
TT
22482020-07-28 Tom Tromey <tromey@adacore.com>
2249
2250 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2251 <DW_OP_GNU_variable_value>: Cast to address type.
2252
4d46f402
KR
22532020-07-28 Kamil Rytarowski <n54@gmx.com>
2254
2255 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2256 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2257 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2258 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2259 (nbsd_get_siginfo_type): New.
2260 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2261 (_initialize_nbsd_tdep): New.
2262
d70f978b
L
22632020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2264
2265 PR binutils/26301
2266 * configure: Regenerated.
2267
377170fa
L
22682020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2269
2270 PR binutils/26301
2271 * configure: Regenerated.
2272
43d5901d
AB
22732020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * python/py-frame.c: Remove 'user-regs.h' include.
2276 (frapy_read_register): Rewrite to make use of
2277 gdbpy_parse_register_id.
2278 * python/py-registers.c (gdbpy_parse_register_id): New function,
2279 moved here from python/py-unwind.c. Updated the return type, and
2280 also accepts register descriptor objects.
2281 * python/py-unwind.c: Remove 'user-regs.h' include.
2282 (pyuw_parse_register_id): Moved to python/py-registers.c.
2283 (unwind_infopy_add_saved_register): Update to use
2284 gdbpy_parse_register_id.
2285 (pending_framepy_read_register): Likewise.
2286 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2287
14fa8fb3
AB
22882020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * python/py-registers.c: Add 'user-regs.h' include.
2291 (register_descriptor_iter_find): New function.
2292 (register_descriptor_iterator_object_methods): New static global
2293 methods array.
2294 (register_descriptor_iterator_object_type): Add pointer to methods
2295 array.
2296
ddce1758
JB
22972020-07-27 John Baldwin <jhb@FreeBSD.org>
2298
2299 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2300 for all architectures on FreeBSD 11.3 and later.
2301
a4089f52
TT
23022020-07-27 Tom Tromey <tromey@adacore.com>
2303
2304 * gcore.h (load_corefile): Don't declare.
2305
95420d30
TV
23062020-07-27 Tom de Vries <tdevries@suse.de>
2307
2308 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2309 * config.in: Regenerate.
2310 * configure: Regenerate.
2311
05a6b8c2
EZ
23122020-07-26 Eli Zaretskii <eliz@gnu.org>
2313
2314 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2315 ws2tcpip.h. When checking whether socklen_t type is defined, use
2316 ws2tcpip.h if it is available and sys/socket.h isn't.
2317 * configure: Regenerate.
2318 * config.in: Regenerate.
2319
e79eb02f
AB
23202020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 PR fortran/23051
2323 PR fortran/26139
2324 * valops.c (value_ind): Pass address to
2325 readjust_indirect_value_type.
2326 * value.c (readjust_indirect_value_type): Make parameter
2327 non-const, and add extra address parameter. Resolve original type
2328 before using it.
2329 * value.h (readjust_indirect_value_type): Update function
2330 signature and comment.
2331
876518dd
TV
23322020-07-25 Tom de Vries <tdevries@suse.de>
2333
2334 PR symtab/26243
2335 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2336 entries.
2337
f6720b1c
AM
23382020-07-24 Aaron Merey <amerey@redhat.com>
2339
2340 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2341 * configure: Rebuild.
2342
513487e1
KB
23432020-07-23 Kevin Buettner <kevinb@redhat.com>
2344
2345 PR corefiles/26294
2346 * corelow.c (_initialize_corelow): Add period to help text
2347 for "maintenance print core-file-backed-mappings".
2348
e7bc9db8
PA
23492020-07-23 Pedro Alves <pedro@palves.net>
2350
2351 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2352 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2353 meanwhile.
2354 * frame.c (frame_cache_generation, get_frame_cache_generation):
2355 New.
2356 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2357 (get_prev_frame_if_no_cycle): On exception, don't touch
2358 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2359 * frame.h (get_frame_cache_generation): Declare.
2360
90fcc466
TV
23612020-07-23 Tom de Vries <tdevries@suse.de>
2362
2363 PR tui/26282
2364 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2365 New default constructor.
2366
78344df7
AB
23672020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2370 exclude non-statement entries.
2371
b089853a
KB
23722020-07-22 Kevin Buettner <kevinb@redhat.com>
2373
2374 * NEWS (New commands): Mention new command
2375 "maintenance print core-file-backed-mappings".
2376
09c2f5d4
KB
23772020-07-22 Kevin Buettner <kevinb@redhat.com>
2378
2379 * corelow.c (gdbcmd.h): Include.
2380 (core_target::info_proc_mappings): New method.
2381 (get_current_core_target): New function.
2382 (maintenance_print_core_file_backed_mappings): New function.
2383 (_initialize_corelow): Add core-file-backed-mappings to
2384 "maint print" commands.
2385
9c5ec5c2 23862020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2387
9c5ec5c2
KB
2388 * linux-tdep.c (dump_note_entry_p): New function.
2389 (linux_dump_mapping_p_ftype): New typedef.
2390 (linux_find_memory_regions_full): Add new parameter,
2391 should_dump_mapping_p.
2392 (linux_find_memory_regions): Adjust call to
2393 linux_find_memory_regions_full.
2394 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2395 call to linux_find_memory_regions_full.
2396
db082f59
KB
23972020-07-22 Kevin Buettner <kevinb@redhat.com>
2398
2399 * corelow.c (solist.h, unordered_map): Include.
2400 (class core_target): Add field m_core_file_mappings and
2401 method build_file_mappings.
2402 (core_target::core_target): Call build_file_mappings.
2403 (core_target::~core_target): Free memory associated with
2404 m_core_file_mappings.
2405 (core_target::build_file_mappings): New method.
2406 (core_target::xfer_partial): Use m_core_file_mappings
2407 for memory transfers.
2408 * linux-tdep.c (linux_read_core_file_mappings): New
2409 function.
2410 (linux_core_info_proc_mappings): Rewrite to use
2411 linux_read_core_file_mappings.
2412 (linux_init_abi): Register linux_read_core_file_mappings.
2413
7e183d27
KB
24142020-07-22 Kevin Buettner <kevinb@redhat.com>
2415
2416 * arch-utils.c (default_read_core_file_mappings): New function.
2417 * arch-utils.c (default_read_core_file_mappings): Declare.
2418 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2419 * gdbarch.h, gdbarch.c: Regenerate.
2420
2735d421
KB
24212020-07-22 Kevin Buettner <kevinb@redhat.com>
2422
2423 PR corefiles/25631
2424 * corelow.c (core_target:xfer_partial): Revise
2425 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2426 case after first checking the stratum beneath the core
2427 target.
2428 (has_all_memory): Return true.
2429 * target.c (raw_memory_xfer_partial): Revise comment
2430 regarding use of has_all_memory.
2431
e56cb451
KB
24322020-07-22 Kevin Buettner <kevinb@redhat.com>
2433
2434 * exec.h (section_table_xfer_memory): Revise declaration,
2435 replacing section name parameter with an optional callback
2436 predicate.
2437 * exec.c (section_table_xfer_memory): Likewise.
2438 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2439 of section_table_xfer_memory.
2440
32fa152e
TT
24412020-07-22 Tom Tromey <tromey@adacore.com>
2442
2443 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2444 lookup_symbol_search_name.
2445
a67a1c41
AB
24462020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2449 redundant local variable.
2450 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2451 reference, not pointer, update code accordingly.
2452
a7b4ff4f
SM
24532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2454 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455
2456 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2457 * jit.c (jit_breakpoint_re_set_internal): Use the
2458 `skip_jit_symbol_lookup` field.
2459
2340e834
SM
24602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2461 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462
2463 * jit.c (jit_read_descriptor): Define the descriptor address once,
2464 use twice.
2465 (jit_breakpoint_deleted): Move the declaration of the loop variable
2466 `iter` into the loop header.
2467 (jit_breakpoint_re_set_internal): Move the declaration of the local
2468 variable `objf_data` to the first point of definition.
2469 (jit_event_handler): Move the declaration of local variables
2470 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2471 Rename `objf` to `jited`.
2472
c1072906
SM
24732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2474
2475 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2476 Remove.
2477 * jit.c (get_jiter_objfile_data): Update.
2478
c8474dc3
TBA
24792020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2480 Simon Marchi <simon.marchi@polymtl.ca>
2481
2482 * jit.c (struct jit_program_space_data): Remove.
2483 (jit_program_space_key): Remove.
2484 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2485 stuff.
2486 (get_jit_program_space_data): Remove.
2487 (jit_breakpoint_deleted): Iterate on all of the program space's
2488 objfiles.
2489 (jit_inferior_init): Likewise.
2490 (jit_breakpoint_re_set_internal): Likewise. Also change return
2491 type to void.
2492 (jit_breakpoint_re_set): Pass current_program_space to
2493 jit_breakpoint_re_set_internal.
2494
77208eb7
SM
24952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2496
2497 * jit.h (struct jiter_objfile_data) <cached_code_address,
2498 jit_breakpoint>: Move to here from ...
2499 * jit.c (jit_program_space_data): ... here.
2500 (jiter_objfile_data::~jiter_objfile_data): Update.
2501 (jit_breakpoint_deleted): Update.
2502 (jit_breakpoint_re_set_internal): Update.
2503
8c1c720f
SM
25042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2505
2506 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2507 checks.
2508 (jit_read_descriptor): Remove NULL check.
2509 (jit_event_handler): Add an assertion.
2510
0e74a041
SM
25112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * jit.h (struct jit_objfile_data): Split into...
2514 (struct jiter_objfile_data): ... this ...
2515 (struct jited_objfile_data): ... and this.
2516 * objfiles.h (struct objfile) <jit_data>: Remove.
2517 <jiter_data, jited_data>: New fields.
2518 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2519 (jiter_objfile_data::~jiter_objfile_data): ... this.
2520 (get_jit_objfile_data): Rename to ...
2521 (get_jiter_objfile_data): ... this.
2522 (add_objfile_entry): Update.
2523 (jit_read_descriptor): Use get_jiter_objfile_data.
2524 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2525 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2526 (jit_inferior_exit_hook): Use objfile's jited_data field.
2527
238b5c9f
SM
25282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * jit.h: Forward-declare `struct minimal_symbol`.
2531 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2532 constructor, destructor, and an objfile* field.
2533 * jit.c (jit_objfile_data): Remove.
2534 (struct jit_objfile_data): Migrate from here to jit.h.
2535 (jit_objfile_data::~jit_objfile_data): New destructor
2536 implementation with code moved from free_objfile_data.
2537 (free_objfile_data): Delete.
2538 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2539 (jit_find_objf_with_entry_addr): Ditto.
2540 (jit_inferior_exit_hook): Ditto.
2541 (_initialize_jit): Remove the call to
2542 register_objfile_data_with_cleanup.
2543 * objfiles.h (struct objfile) <jit_data>: New field.
2544
fe053b9e
TBA
25452020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2546
2547 * jit.h: Forward-declare `struct objfile`.
2548 (jit_event_handler): Add a second parameter, the JITer objfile.
2549 * jit.c (jit_read_descriptor): Change the signature to take the
2550 JITer objfile as an argument instead of the jit_program_space_data.
2551 (jit_inferior_init): Update the call to jit_read_descriptor.
2552 (jit_event_handler): Use the new JITer objfile argument when calling
2553 jit_read_descriptor.
2554 * breakpoint.c (handle_jit_event): Update the call to
2555 jit_event_handler to pass the JITer objfile.
2556
4cec0c66
JB
25572020-07-21 John Baldwin <jhb@FreeBSD.org>
2558
2559 * gdbarch.c: Regenerate.
2560 * gdbarch.h: Regenerate.
2561 * gdbarch.sh (handle_segmentation_fault): Remove method.
2562 * infrun.c (handle_segmentation_fault): Remove.
2563 (print_signal_received_reason): Remove call to
2564 handle_segmentation_fault.
2565
0e42f66a
JB
25662020-07-21 John Baldwin <jhb@FreeBSD.org>
2567
2568 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2569 Rename to sparc64_linux_report_signal_info and add siggnal
2570 argument.
2571 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2572 instead of sparc64_linux_handle_segmentation_fault.
2573
77bdfeb2
JB
25742020-07-21 John Baldwin <jhb@FreeBSD.org>
2575
2576 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2577 i386_linux_report_signal_info instead of
2578 i386_linux_handle_segmentation_fault.
2579 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2580 to i386_linux_report_signal_info and add siggnal argument.
2581 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2582 of i386_linux_handle_segmentation_fault.
2583 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2584 to i386_linux_report_signal_info and add siggnal argument.
2585
ad97bfc5
JB
25862020-07-21 John Baldwin <jhb@FreeBSD.org>
2587
2588 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2589 hook if present.
2590
272bb05c
JB
25912020-07-21 John Baldwin <jhb@FreeBSD.org>
2592
2593 * gdbarch.c: Regenerate.
2594 * gdbarch.h: Regenerate.
2595 * gdbarch.sh (report_signal_info): New method.
2596 * infrun.c (print_signal_received_reason): Invoke gdbarch
2597 report_signal_info hook if present.
2598
baf8791e
AB
25992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * python/py-registers.c : Add 'unordered_map' include.
2602 (gdbpy_new_reggroup): Renamed to...
2603 (gdbpy_get_reggroup): ...this. Update to only create register
2604 group descriptors when needed.
2605 (gdbpy_reggroup_iter_next): Update.
2606
f7306dac
AB
26072020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * python/py-registers.c (gdbpy_register_object_data): New static
2610 global.
2611 (gdbpy_register_object_data_init): New function.
2612 (gdbpy_new_register_descriptor): Renamed to...
2613 (gdbpy_get_register_descriptor): ...this, and update to reuse
2614 existing register descriptors where possible.
2615 (gdbpy_register_descriptor_iter_next): Update.
2616 (gdbpy_initialize_registers): Register new gdbarch data.
2617
05c309a8
SM
26182020-07-21 Simon Marchi <simon.marchi@efficios.com>
2619
2620 * linux-nat.c (stopped_pids): Make static.
2621
d1fd641e
SM
26222020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 PR ada/26235
2625 * gdbtypes.c (ada_discrete_type_low_bound,
2626 ada_discrete_type_high_bound): Handle undefined bounds.
2627
1de14d77
KR
26282020-07-21 Kamil Rytarowski <n54@gmx.com>
2629
2630 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2631 declaration.
2632 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2633 function.
2634
ed810cc7
JB
26352020-07-20 John Baldwin <jhb@FreeBSD.org>
2636
2637 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2638 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2639 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2640 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2641 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2642 method.
2643
ae5369e7
LC
26442020-07-20 Ludovic Courtès <ludo@gnu.org>
2645
2646 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2647 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2648 which are deprecated in Guile 3.0.
2649 * configure.ac (try_guile_versions): Add "guile-3.0".
2650 * configure (try_guile_versions): Regenerate.
2651 * NEWS: Update entry.
2652
68cf161c
LC
26532020-07-20 Ludovic Courtès <ludo@gnu.org>
2654 Doug Evans <dje@google.com>
2655
2656 PR gdb/21104
2657 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2658 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2659 USING_GUILE_BEFORE_2_2.
2660 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2661 Change type to 'scm_t_port_type *'.
2662 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2663 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2664 parameter and honor it. Update callers.
2665 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2666 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2667 functions.
2668 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2669 USING_GUILE_BEFORE_2_2.
2670 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2671 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2672 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2673 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2674 and 'SCM_PORT_TYPE'.
2675 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2676 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2677 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2678 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2679 [!USING_GUILE_BEFORE_2_2]: New functions.
2680 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2681 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2682 'gdbscm_memory_port_read'.
2683 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2684 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2685 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2686 function.
2687 (ioscm_init_memory_port): Remove.
2688 (ioscm_init_memory_port_stream): New function
2689 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2690 function.
2691 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2692 Return scm_from_uint (0).
2693 (gdbscm_set_memory_port_read_buffer_size_x)
2694 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2695 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2696 Return scm_from_uint (0).
2697 (gdbscm_set_memory_port_write_buffer_size_x)
2698 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2699 * configure.ac (try_guile_versions): Add "guile-2.2".
2700 * configure: Regenerate.
2701 * NEWS: Add entry.
2702
aee91db3
TT
27032020-07-18 Tom Tromey <tom@tromey.com>
2704
2705 * linux-nat.c (linux_multi_process): Remove.
2706 (linux_nat_target::supports_multi_process): Return true.
2707
0e267416
AB
27082020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2711 (riscv_lookup_target_description): Return pointer out of
2712 unique_ptr.
2713 * target-descriptions.c (allocate_target_description): Add
2714 comment.
2715 (target_desc_deleter::operator()): Likewise.
2716 * target-descriptions.h (struct target_desc_deleter): Moved to
2717 gdbsupport/tdesc.h.
2718 (target_desc_up): Likewise.
2719
f80c8ec4
TT
27202020-07-17 Tom Tromey <tromey@adacore.com>
2721
2722 * linux-nat.c (linux_nat_target::supports_non_stop)
2723 (linux_nat_target::always_non_stop_p): Use "true".
2724 (linux_nat_target::supports_disable_randomization): Use "true" and
2725 "false".
2726
d0ce17d8
CT
27272020-07-16 Caroline Tice <cmtice@google.com>
2728
2729 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2730 (RNGLIST_HEADER_SIZE64): New constant definition.
2731 (struct dwop_section_names): Add rnglists_dwo.
2732 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2733 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2734 (struct dwo_sections): Add rnglists field.
2735 (read_attribut_reprocess): Add tag parameter.
2736 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2737 (cu_debug_rnglists_section): New function (decl & definition).
2738 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2739 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2740 die whose range is being checked; get rnglist section from
2741 cu_debug_rnglists_section, to get from either objfile or dwo file as
2742 appropriate. Add cases for DW_RLE_base_addressx,
2743 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2744 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2745 test inside if-condition and updating complaint message.
2746 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2747 dwarf2_rnglists_process.
2748 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2749 dwarf2_ranges_process.
2750 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2751 need_ranges_base and update comment appropriately. Also pass die tag
2752 to dwarf2_ranges_read.
2753 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2754 need_ranges_base and update comment appropriately. Also pass die tag
2755 to dwarf2_ranges_process.
2756 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2757 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2758 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2759 need_ranges_base and update comment appropriately. Also pass die tag
2760 to read_attribute_reprocess and dwarf2_ranges_read.
2761 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2762 and update function comment appropriately.
2763 (read_loclist_index): Call read_loclists_rnglists_header instead of
2764 read_loclist_header.
2765 (read_rnglist_index): New function.
2766 (read_attribute_reprocess): Add tag parameter. Add code for
2767 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2768 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2769
3dcc261c
AB
27702020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2771
2772 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2773 being resolved.
2774
ccb9eba6
AB
27752020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2776
2777 * arch-utils.c (show_architecture): Update formatting of messages.
2778
cf88be68
SM
27792020-07-12 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * gdbtypes.h (struct type) <bounds>: Handle array and string
2782 types.
2783 * ada-lang.c (assign_aggregate): Use type::bounds on
2784 array/string type.
2785 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2786 * c-varobj.c (c_number_of_children): Likewise.
2787 (c_describe_child): Likewise.
2788 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2789 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2790 (f_type_print_base): Likewise.
2791 * f-valprint.c (f77_array_offset_tbl): Likewise.
2792 (f77_get_upperbound): Likewise.
2793 (f77_print_array_1): Likewise.
2794 * guile/scm-type.c (gdbscm_type_range): Likewise.
2795 * m2-typeprint.c (m2_array): Likewise.
2796 (m2_is_long_set_of_type): Likewise.
2797 * m2-valprint.c (get_long_set_bounds): Likewise.
2798 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2799 * python/py-type.c (typy_range): Likewise.
2800 * rust-lang.c (rust_internal_print_type): Likewise.
2801 * type-stack.c (type_stack::follow_types): Likewise.
2802 * valarith.c (value_subscripted_rvalue): Likewise.
2803 * valops.c (value_cast): Likewise.
2804
509971ae
SM
28052020-07-12 Simon Marchi <simon.marchi@efficios.com>
2806
2807 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2808 callers to use the equivalent accessor methods.
2809
107406b7
SM
28102020-07-12 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2813 (struct type) <bit_stride>: New method.
2814 (TYPE_BIT_STRIDE): Remove.
2815 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2816
bb789949
SM
28172020-07-12 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2820 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2821 callers to use the equivalent accessor methods instead.
2822
39498edb
SM
28232020-07-12 Simon Marchi <simon.marchi@efficios.com>
2824
2825 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2826 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2827 callers to use the equivalent accessor methods instead.
2828
3b606f38
SM
28292020-07-12 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2832 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2833 to use dynamic_prop::kind.
2834
064d9cb9
SM
28352020-07-12 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2838 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2839 to get the bound property's kind and check against
2840 PROP_UNDEFINED.
2841
5537ddd0
SM
28422020-07-12 Simon Marchi <simon.marchi@efficios.com>
2843
2844 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2845 all callers to use type::range_bounds followed by
2846 dynamic_prop::{low,high}.
2847
8c2e4e06
SM
28482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2851 const_val, set_const_val, baton, set_locexpr, set_loclist,
2852 set_addr_offset, variant_parts, set_variant_parts,
2853 original_type, set_original_type>: New methods.
2854 <kind>: Rename to...
2855 <m_kind>: ... this. Update all users to use the new methods
2856 instead.
2857 <data>: Rename to...
2858 <m_data>: ... this. Update all users to use the new methods
2859 instead.
2860
7c6f2712
SM
28612020-07-12 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * gdbtypes.c (get_discrete_bounds): Return failure if
2864 the range type's bounds are not both defined and constant
2865 values.
2866 (get_array_bounds): Update comment. Remove undefined bound check.
2867
599088e3
SM
28682020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2869
2870 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2871 the type::bounds method directly.
2872
c4dfcb36
SM
28732020-07-12 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2876 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2877 are used to set the range type's bounds to use set_bounds.
2878
0a278aa7
PW
28792020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2880
2881 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2882
cce20f10
PA
28832020-07-10 Pedro Alves <pedro@palves.net>
2884
2885 * gdbthread.h (inferior_ref): Define.
2886 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2887 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2888 * thread.c
2889 (scoped_restore_current_thread::restore):
2890 Adjust to gdb::ref_ptr.
2891 (scoped_restore_current_thread::~scoped_restore_current_thread):
2892 Remove manual decref handling.
2893 (scoped_restore_current_thread::scoped_restore_current_thread):
2894 Adjust to use
2895 inferior_ref::new_reference/thread_info_ref::new_reference.
2896 Incref the thread before calling get_frame_id instead of after.
2897 Let TARGET_CLOSE_ERROR propagate.
2898
6d7aa592
PA
28992020-07-10 Pedro Alves <pedro@palves.net>
2900
2901 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2902 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2903 NOT_AVAILABLE_ERROR.
2904 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2905 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2906
b3e3a4c1
SM
29072020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2908 Pedro Alves <pedro@palves.net>
2909
2910 PR gdb/26199
2911 * infrun.c (threads_are_resumed_pending_p): Delete.
2912 (do_target_wait): Remove threads_are_executing and
2913 threads_are_resumed_pending_p checks from the inferior_matches
2914 lambda. Update comments.
2915
d6cc5d98
PA
29162020-07-10 Pedro Alves <pedro@palves.net>
2917
2918 PR gdb/26199
2919 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2920 executing threads.
2921
7d3badc6
PA
29222020-07-10 Pedro Alves <pedro@palves.net>
2923
2924 PR gdb/26199
2925 * infrun.c (handle_no_resumed): Handle multiple targets.
2926
42bd97a6
PA
29272020-07-10 Pedro Alves <pedro@palves.net>
2928
2929 PR gdb/26199
2930 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2931 target_is_async_p.
2932
43667cc6
PA
29332020-07-10 Pedro Alves <pedro@palves.net>
2934
2935 PR gdb/26199
2936 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2937 threads, not all threads.
2938
96118d11
PA
29392020-07-10 Pedro Alves <pedro@palves.net>
2940
2941 PR gdb/26199
2942 * remote.c (remote_target::open_1): Pass remote target pointer as
2943 data to create_async_event_handler.
2944 (remote_async_inferior_event_handler): Mark async event handler
2945 before returning if the remote target still has either pending
2946 events or unacknowledged notifications.
2947
54904d81
JB
29482020-07-10 John Baldwin <jhb@FreeBSD.org>
2949
2950 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2951 declaration.
2952 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2953 function.
2954
f37e5866
JB
29552020-07-09 John Baldwin <jhb@FreeBSD.org>
2956
2957 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2958 inferior_ptid.
2959
fc238d4a
JB
29602020-07-09 John Baldwin <jhb@FreeBSD.org>
2961
2962 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2963 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2964 AT_FREEBSD_PS_STRINGS.
2965
6e2469ff
HD
29662020-07-08 Hannes Domani <ssbssa@yahoo.de>
2967
2968 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2969 of debugfile path on Windows.
2970
d1076c41
JB
29712020-07-08 John Baldwin <jhb@FreeBSD.org>
2972
2973 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2974 argument to 'data'.
2975
15f3b077
TT
29762020-07-08 Tom Tromey <tromey@adacore.com>
2977
2978 * ada-lang.c (ada_exception_message_1): Use read_memory.
2979
9fc501fd
AB
29802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 PR python/22748
2983 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2984 special handling for inline frames.
2985 * findvar.c (value_of_register_lazy): Skip inline frames when
2986 creating lazy register values.
2987 * frame.c (frame_id_computed_p): Delete definition.
2988 * frame.h (frame_id_computed_p): Delete declaration.
2989
64cb3757
AB
29902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * NEWS: Mention additions to Python API.
2993 * python/py-arch.c (archpy_register_groups): New function.
2994 (arch_object_methods): Add 'register_groups' method.
2995 * python/py-registers.c (reggroup_iterator_object): New struct.
2996 (reggroup_object): New struct.
2997 (gdbpy_new_reggroup): New function.
2998 (gdbpy_reggroup_to_string): New function.
2999 (gdbpy_reggroup_name): New function.
3000 (gdbpy_reggroup_iter): New function.
3001 (gdbpy_reggroup_iter_next): New function.
3002 (gdbpy_new_reggroup_iterator): New function
3003 (gdbpy_initialize_registers): Register new types.
3004 (reggroup_iterator_object_type): Define new Python type.
3005 (gdbpy_reggroup_getset): New static global.
3006 (reggroup_object_type): Define new Python type.
3007 * python/python-internal.h
3008
0f767f94
AB
30092020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3012 * python/py-arch.c (archpy_registers): New function.
3013 (arch_object_methods): Add 'registers' method.
3014 * python/py-registers.c: New file.
3015 * python/python-internal.h
3016 (gdbpy_new_register_descriptor_iterator): Declare.
3017 (gdbpy_initialize_registers): Declare.
3018 * python/python.c (do_start_initialization): Call
3019 gdbpy_initialize_registers.
3020 * NEWS: Mention additions to the Python API.
3021
87dbc774
AB
30222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3023
3024 * NEWS: Mention new Python API method.
3025 * python/py-unwind.c (pending_framepy_architecture): New function.
3026 (pending_frame_object_methods): Add architecture method.
3027
3bc98c0c
AB
30282020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3029
3030 * gdbarch.c: Regenerate.
3031 * gdbarch.h: Regenerate.
3032 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3033 (gdbarch_data): Use internal_error for the case where
3034 deprecated_set_gdbarch_data was originally needed.
3035 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3036 and use passed in obstack.
3037 (libunwind_frame_set_descr): Should no longer get back NULL from
3038 gdbarch_data.
3039 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3040 type.
3041 * user-regs.c (user_regs_init): Update parameters, and use passed
3042 in obstack.
3043 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3044 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3045
d8cc8af6
TV
30462020-07-06 Tom de Vries <tdevries@suse.de>
3047
3048 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3049 End-Of-Sequence in lte_is_less_than.
3050 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3051 "gdb: Don't reorder line table entries too much when sorting".
3052
947f7597
TV
30532020-07-06 Tom de Vries <tdevries@suse.de>
3054
3055 PR tui/26205
3056 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3057
1e7c1b22
TV
30582020-07-05 Tom de Vries <tdevries@suse.de>
3059
3060 PR build/26187
3061 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3062 std::uncaught_exceptions instead of deprecated
3063 std::uncaught_exception.
3064
a36158ec
SM
30652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3066
3067 * macroexp.h (macro_stringify): Return
3068 gdb::unique_xmalloc_ptr<char>.
3069 * macroexp.c (macro_stringify): Likewise.
3070 * macrotab.c (fixup_definition): Update.
3071
14d960c8
SM
30722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3073
3074 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3075 (lex_one_token): Update.
3076 * macroexp.c (struct macro_buffer) <release>: Return
3077 gdb::unique_xmalloc_ptr<char>.
3078 (macro_stringify): Update.
3079 (macro_expand): Update.
3080 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3081 * macroexp.h (macro_expand_next): Likewise.
3082
211d5b1c
SM
30832020-07-02 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * macroexp.h (macro_lookup_ftype): Remove.
3086 (macro_expand, macro_expand_once, macro_expand_next): Remove
3087 lookup function parameters, add scope parameter.
3088 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3089 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3090 * macroscope.h (standard_macro_lookup): Change parameter type
3091 to macro_scope.
3092 * macroscope.c (standard_macro_lookup): Likewise.
3093 * c-exp.y (lex_one_token): Update.
3094 * macrocmd.c (macro_expand_command): Likewise.
3095 (macro_expand_once_command): Likewise.
3096
b1a35af2
SM
30972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * inf-loop.c (inferior_event_handler): Remove client_data param.
3100 * inf-loop.h (inferior_event_handler): Likewise.
3101 * infcmd.c (step_1): Adjust.
3102 * infrun.c (proceed): Adjust.
3103 (fetch_inferior_event): Remove client_data param.
3104 (infrun_async_inferior_event_handler): Adjust.
3105 * infrun.h (fetch_inferior_event): Remove `void *` param.
3106 * linux-nat.c (handle_target_event): Adjust.
3107 * record-btrace.c (record_btrace_handle_async_inferior_event):
3108 Adjust.
3109 * record-full.c (record_full_async_inferior_event_handler):
3110 Adjust.
3111 * remote.c (remote_async_inferior_event_handler): Adjust.
3112
1cdf9e33
TT
31132020-07-01 Tom Tromey <tom@tromey.com>
3114
3115 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3116 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3117
32c1e210
TT
31182020-07-01 Tom Tromey <tom@tromey.com>
3119
3120 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3121 tui_gen_win_info.
3122 (tui_win_info::make_window): Merge with
3123 tui_gen_win_info::make_window.
3124 (tui_win_info::make_visible): Move from tui_gen_win_info.
3125 * tui/tui-win.c (tui_win_info::max_width): Move from
3126 tui_gen_win_info.
3127 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3128 type.
3129 <window_factory>: Likewise.
3130 * tui/tui-layout.c (tui_win_info::resize): Move from
3131 tui_gen_win_info.
3132 (make_standard_window): Change return type.
3133 (get_locator_window, tui_get_window_by_name): Likewise.
3134 (tui_layout_window::apply): Remove a cast.
3135 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3136 (struct tui_win_info): Merge with tui_gen_win_info.
3137 (struct tui_gen_win_info): Remove.
3138
a30cb6da
TT
31392020-07-01 Tom Tromey <tom@tromey.com>
3140
3141 * tui/tui-stack.h (struct tui_locator_window): Derive from
3142 tui_win_info.
3143 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3144 <can_box>: New method.
3145
1eb2161f
TT
31462020-07-01 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3149
7134f2eb
TT
31502020-07-01 Tom Tromey <tom@tromey.com>
3151
3152 * tui/tui-regs.c (tui_data_window::display_registers_from)
3153 (tui_data_window::display_registers_from)
3154 (tui_data_window::first_data_item_displayed)
3155 (tui_data_window::delete_data_content_windows): Update.
3156 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3157 Remove.
3158 (tui_data_window::check_register_values): Update.
3159 (tui_data_item_window::rerender): Add parameters. Update.
3160 (tui_data_item_window::refresh_window): Remove.
3161 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3162 virtual.
3163 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3164 tui_gen_win_info.
3165 <refresh_window, max_height, min_height>: Remove.
3166 <rerender>: Add parameters.
3167 <x, y, visible>: New members.
3168 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3169 <m_item_width>: New member.
3170
22b7b041
TT
31712020-07-01 Tom Tromey <tom@tromey.com>
3172
3173 * tui/tui-regs.c (tui_data_window::show_register_group)
3174 (tui_data_window::check_register_values): Update.
3175 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3176 from item_no.
3177
c9753adb
TT
31782020-07-01 Tom Tromey <tom@tromey.com>
3179
3180 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3181 useless "if".
3182
9ab26b4a
TT
31832020-07-01 Tom Tromey <tom@tromey.com>
3184
3185 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3186 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3187
e555083f
TT
31882020-07-01 Tom Tromey <tom@tromey.com>
3189
3190 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3191 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3192 (struct tui_line_or_address): Move from tui-data.h.
3193 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3194 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3195 (tui_cmd_window, tui_source_window_base, tui_source_window)
3196 (tui_disasm_window): Don't declare.
3197 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3198 to tui-winsource.h.
3199 (SINGLE_KEY): Move to tui-stack.c.
3200
7a02bab7
TT
32012020-07-01 Tom Tromey <tom@tromey.com>
3202
3203 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3204 std::string.
3205 * tui/tui-regs.c (class tab_expansion_file): New.
3206 (tab_expansion_file::write): New method.
3207 (tui_register_format): Change return type. Use
3208 tab_expansion_file.
3209 (tui_get_register, tui_data_window::display_registers_from)
3210 (tui_data_item_window::rerender): Update.
3211 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3212 * tui/tui-io.c (tui_expand_tabs): Remove.
3213
ea68593b
TT
32142020-07-01 Tom Tromey <tom@tromey.com>
3215
3216 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3217
a8caed5d
FS
32182020-07-01 Fangrui Song <maskray@google.com>
3219
3220 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3221
9cdf9820
AKS
32222020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3223
3224 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3225 forms for DW_AT_associated and DW_AT_allocated attributes,
3226 which is already checked in function attr_to_dynamic_prop.
3227
a1520ad8
TT
32282020-06-30 Tom Tromey <tromey@adacore.com>
3229
3230 * dwarf2/read.c (quirk_rust_enum): Correctly call
3231 alloc_rust_variant for default-less enum.
3232
5ac58899
TT
32332020-06-30 Tom Tromey <tromey@adacore.com>
3234
3235 PR build/26183:
3236 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3237 gdb::to_string.
3238
19b187a9
SM
32392020-06-29 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3242 * gdbarch.h: Re-generate.
3243
cd4c4c07
TT
32442020-06-28 Tom Tromey <tom@tromey.com>
3245
3246 * command.h (cmd_types): Remove.
3247 (cmd_type): Don't declare.
3248 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3249 typedef.
3250 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3251 * cli/cli-decode.c (cmd_type): Remove.
3252
05779d57
PA
32532020-06-27 Pedro Alves <palves@redhat.com>
3254
3255 * fork-child.c (prefork_hook): Adjust.
3256 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3257 Delete.
3258 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3259 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3260 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3261 Remove declarations.
3262 (struct inferior) <set_tty, tty>: New methods.
3263 (struct inferior) <terminal>: Rename to ...
3264 (struct inferior) <m_terminal>: ... this and make private.
3265 * main.c (captured_main_1): Adjust.
3266 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3267 (mi_cmd_inferior_tty_show): Adjust.
3268 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3269 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3270
1776e3e5
NA
32712020-06-26 Nick Alcock <nick.alcock@oracle.com>
3272
3273 * configure.ac: Add --enable-libctf: handle --disable-static
3274 properly.
3275 * acinclude.m4: sinclude ../config/enable.m4.
3276 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3277 (LIBCTF): Substitute in.
3278 (CTF_DEPS): New, likewise.
3279 (CLIBS): libctf needs symbols from libbfd: move earlier.
3280 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3281 flags.
3282 * ctfread.c: Surround in ENABLE_LIBCTF.
3283 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3284 * configure: Regenerate.
3285 * config.in: Likewise.
3286
58373b80
SM
32872020-06-25 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3290
277474ee
SM
32912020-06-25 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * inferior.h (struct inferior) <terminal>: Change type to
3294 gdb::unique_xmalloc_ptr<char>.
3295 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3296 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3297 field, adjust to unique pointer.
3298 (get_inferior_io_terminal): Adjust to unique pointer.
3299
6d74da72
AB
33002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3303 registers, not just the known core set of registers.
3304
2e52d038
AB
33052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3308 fflags, frm, and fcsr registers.
3309 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3310 restore groups.
3311 (riscv_tdesc_unknown_reg): New function.
3312 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3313 tdesc_use_registers.
3314 * riscv-tdep.h (struct gdbarch_tdep): Add
3315 unknown_csrs_first_regnum, unknown_csrs_count,
3316 duplicate_fflags_regnum, duplicate_frm_regnum, and
3317 duplicate_fcsr_regnum fields.
3318
be64fd07
AB
33192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3322 callback, use the callback (when not null) to help number unknown
3323 registers.
3324 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3325 (tdesc_use_registers): Add extra parameter to declaration.
3326
3b9fce96
AB
33272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3330 in the file.
3331 (class riscv_pending_register_alias): Likewise.
3332 (riscv_register_feature::register_info): Change 'required_p' field
3333 to 'required', and change its type. Add 'check' member function.
3334 (riscv_register_feature::register_info::check): Define new member
3335 function.
3336 (riscv_xreg_feature): Change initialisation of 'required' field.
3337 (riscv_freg_feature): Likewise.
3338 (riscv_virtual_feature): Likewise.
3339 (riscv_csr_feature): Likewise.
3340 (riscv_check_tdesc_feature): Take extra parameter, the csr
3341 tdesc_feature, rewrite the function to use the new
3342 riscv_register_feature::register_info::check function.
3343 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3344
865bad26
AB
33452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * features/Makefile: Remove all references to the deleted files
3348 below.
3349 * features/riscv/32bit-csr.c: Deleted.
3350 * features/riscv/32bit-csr.xml: Deleted.
3351 * features/riscv/64bit-csr.c: Deleted.
3352 * features/riscv/64bit-csr.xml: Deleted.
3353 * features/riscv/rebuild-csr-xml.sh: Deleted.
3354
ed69cbc8
AB
33552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3358 whitespace error for declaration of names member variable.
3359 (struct riscv_register_feature): Add new prefer_first_name member
3360 variable, and fix whitespace error in declaration of registers.
3361 (riscv_xreg_feature): Initialize prefer_first_name field.
3362 (riscv_freg_feature): Likewise.
3363 (riscv_virtual_feature): Likewise.
3364 (riscv_csr_feature): Likewise.
3365 (riscv_register_name): Expand on comments. Remove register name
3366 modifications for CSR and virtual registers.
3367
4445e8f5
AB
33682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3371 errors.
3372
767a879e
AB
33732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3374
3375 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3376 riscv-opc.h.
3377 (class riscv_pending_register_alias): New class.
3378 (riscv_check_tdesc_feature): Take vector of pending aliases and
3379 populate it as appropriate.
3380 (riscv_setup_register_aliases): Delete.
3381 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3382 to riscv_check_tdesc_feature in all cases. Use the vector to
3383 create the register aliases.
3384
bb6e55f3
RO
33852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3386
3387 * sol2-tdep.c (sol2_static_transform_name): Remove.
3388 (sol2_init_abi): Don't register it.
3389 * gdbarch.sh (static_transform_name): Remove.
3390 * gdbarch.c, gdbarch.h: Regenerate.
3391
3392 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3393 gdbarch_static_transform_name.
3394 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3395 * stabsread.c (define_symbol) <'X'>: Remove.
3396 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3397 handling.
3398 <'V'>: Likewise.
3399 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3400 <'S'>: Remove call to gdbarch_static_transform_name.
3401
c6d36836
RO
34022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3403
3404 * procfs.c (procfs_pre_trace): New function.
3405 (procfs_target::create_inferior): Pass it to fork_inferior.
3406
a7e6196b
RO
34072020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3410 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3411 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3412 sol2-tdep.o, sparc-sol2-tdep.o.
3413 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3414 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3415 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3416 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3417
d412e696
RO
34182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3419
3420 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3421 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3422 Call sol2_init_abi.
3423 Remove calls to set_gdbarch_skip_solib_resolver,
3424 set_gdbarch_core_pid_to_str.
3425 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3426 (i386_sol2_static_transform_name): Remove.
3427 (i386_sol2_init_abi): Call sol2_init_abi.
3428 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3429 set_gdbarch_static_transform_name,
3430 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3431 Use sol2_sigtramp_p.
3432 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3433 (sol2_sigtramp_p): New function.
3434 (sol2_static_transform_name): New function.
3435 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3436 (sol2_init_abi): New function.
3437 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3438 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3439 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3440 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3441 (sparc_sol2_static_transform_name): Remove.
3442 (sparc32_sol2_init_abi): Call sol2_init_abi.
3443 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3444 set_gdbarch_static_transform_name,
3445 set_gdbarch_skip_solib_resolver,
3446 set_gdbarch_core_pid_to_str.
3447 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3448 (sparc_sol2_static_transform_name): Remove
3449 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3450 call sol2_sigtramp_p.
3451 (sparc64_sol2_init_abi): Call sol2_init_abi.
3452 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3453 set_gdbarch_static_transform_name,
3454 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3455
a8654e7d
PW
34562020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3457
3458 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3459 * exec.c (validate_exec_file): If from_tty, set both
3460 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3461 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3462 and from_tty, unconditionally ask a confirmation.
3463
caa7fd04
AB
34642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * target-descriptions.c (tdesc_architecture_name): Protect against
3467 NULL pointer dereference.
3468 (maint_print_xml_tdesc_cmd): New function.
3469 (_initialize_target_descriptions): Register new 'maint print
3470 xml-tdesc' command and give it the filename completer.
3471 * NEWS: Mention new 'maint print xml-tdesc' command.
3472
fbf42f4e
AB
34732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * target-descriptions.c (class tdesc_compatible_info): New class.
3476 (struct target_desc): Change type of compatible vector.
3477 (tdesc_compatible_p): Update for change in type of
3478 target_desc::compatible.
3479 (tdesc_compatible_info_list): New function.
3480 (tdesc_compatible_info_arch_name): New function.
3481 (tdesc_add_compatible): Update for change in type of
3482 target_desc::compatible.
3483 (print_c_tdesc::visit_pre): Likewise.
3484
20821f4e
AB
34852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3488 whitespace to underscore.
3489 (maint_print_c_tdesc_cmd): Use fake filename for target
3490 descriptions that came from the target.
3491 (_initialize_target_descriptions): Add filename command completion
3492 for 'maint print c-tdesc'.
3493
1fb5ee62
SM
34942020-06-23 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3497 lines.
3498
fc3ecb3e
SM
34992020-06-23 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3502 lines.
3503 (dwarf2_find_location_expression): Likewise.
3504 (call_site_parameter_matches): Likewise.
3505 (dwarf2_compile_expr_to_ax): Likewise.
3506 (disassemble_dwarf_expression): Likewise.
3507 (loclist_describe_location): Likewise.
3508
236ef034
PA
35092020-06-23 Pedro Alves <palves@redhat.com>
3510
3511 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3512 progspace-and-thread.h. Include scoped-mock-context.h instead.
3513 (register_to_value_test): Use scoped_mock_context.
3514 * regcache.c: Include "scoped-mock-context.h".
3515 (cooked_read_test): Don't error out if a target is already pushed.
3516 Use scoped_mock_context. Adjust.
3517 * scoped-mock-context.h: New file.
3518
39e7ecca
AB
35192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3522 initializer.
3523 (ada_language::is_string_type_p): New member function.
3524 * c-lang.c (c_language_data): Delete la_is_string_type_p
3525 initializer.
3526 (cplus_language_data): Likewise.
3527 (asm_language_data): Likewise.
3528 (minimal_language_data): Likewise.
3529 * d-lang.c (d_language_data): Likewise.
3530 * f-lang.c (f_is_string_type_p): Delete function, implementation
3531 moved to f_language::is_string_type_p.
3532 (f_language_data): Delete la_is_string_type_p initializer.
3533 (f_language::is_string_type_p): New member function,
3534 implementation from f_is_string_type_p.
3535 * go-lang.c (go_is_string_type_p): Delete function, implementation
3536 moved to go_language::is_string_type_p.
3537 (go_language_data): Delete la_is_string_type_p initializer.
3538 (go_language::is_string_type_p): New member function,
3539 implementation from go_is_string_type_p.
3540 * language.c (language_defn::is_string_type_p): Define new member
3541 function.
3542 (default_is_string_type_p): Make static, add comment copied from
3543 header file.
3544 (unknown_language_data): Delete la_is_string_type_p initializer.
3545 (unknown_language::is_string_type_p): New member function.
3546 (auto_language_data): Delete la_is_string_type_p initializer.
3547 (auto_language::is_string_type_p): New member function.
3548 * language.h (language_data): Delete la_is_string_type_p field.
3549 (language_defn::is_string_type_p): Declare new function.
3550 (default_is_string_type_p): Delete desclaration, move comment to
3551 definition.
3552 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3553 moved to m2_language::is_string_type_p.
3554 (m2_language_data): Delete la_is_string_type_p initializer.
3555 (m2_language::is_string_type_p): New member function,
3556 implementation from m2_is_string_type_p.
3557 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3558 initializer.
3559 * opencl-lang.c (opencl_language_data): Likewise.
3560 * p-lang.c (pascal_is_string_type_p): Delete function,
3561 implementation moved to pascal_language::is_string_type_p.
3562 (pascal_language_data): Delete la_is_string_type_p initializer.
3563 (pascal_language::is_string_type_p): New member function,
3564 implementation from pascal_is_string_type_p.
3565 * rust-lang.c (rust_is_string_type_p): Delete function,
3566 implementation moved to rust_language::is_string_type_p.
3567 (rust_language_data): Delete la_is_string_type_p initializer.
3568 (rust_language::is_string_type_p): New member function,
3569 implementation from rust_is_string_type_p.
3570 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3571 is_string_type_p.
3572
4ffc13fb
AB
35732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * ada-lang.c (ada_language_data): Delete la_print_typedef
3576 initializer.
3577 (ada_language::print_typedef): New member function.
3578 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3579 (cplus_language_data): Likewise.
3580 (asm_language_data): Likewise.
3581 (minimal_language_data): Likewise.
3582 * d-lang.c (d_language_data): Likewise.
3583 * f-lang.c (f_language_data): Likewise.
3584 (f_language::print_typedef): New member function.
3585 * go-lang.c (go_language_data): Delete la_print_typedef
3586 initializer.
3587 * language.c (language_defn::print_typedef): Define member
3588 function.
3589 (unknown_language_data): Delete la_print_typedef initializer.
3590 (unknown_language::print_typedef): New member function.
3591 (auto_language_data): Delete la_print_typedef initializer.
3592 (auto_language::print_typedef): New member function.
3593 * language.h (language_data): Delete la_print_typedef field.
3594 (language_defn::print_typedef): Declare new member function.
3595 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3596 (default_print_typedef): Delete declaration.
3597 * m2-lang.c (m2_language_data): Delete la_print_typedef
3598 initializer.
3599 (m2_language::print_typedef): New member function.
3600 * objc-lang.c (objc_language_data): Delete la_print_typedef
3601 initializer.
3602 * opencl-lang.c (opencl_language_data): Likewise.
3603 * p-lang.c (pascal_language_data): Likewise.
3604 (pascal_language::print_typedef): New member function.
3605 * rust-lang.c (rust_print_typedef): Delete function,
3606 implementation moved to rust_language::print_typedef.
3607 (rust_language): Delete la_print_typedef initializer.
3608 (rust_language::print_typedef): New member function,
3609 implementation from rust_print_typedef.
3610 * typeprint.c (default_print_typedef): Delete.
3611
d711ee67
AB
36122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3615 (ada_language::printstr): New member function.
3616 * c-lang.c (c_language_data): Delete la_printstr initializer.
3617 (cplus_language_data): Likewise.
3618 (asm_language_data): Likewise.
3619 (minimal_language_data): Likewise.
3620 * d-lang.c (d_language_data): Likewise.
3621 * f-lang.c (f_printstr): Rename to f_language::printstr.
3622 (f_language_data): Delete la_printstr initializer.
3623 (f_language::printstr): New member function, implementation from
3624 f_printstr.
3625 * go-lang.c (go_language_data): Delete la_printstr initializer.
3626 * language.c (language_defn::printstr): Define new member
3627 function.
3628 (unk_lang_printstr): Delete.
3629 (unknown_language_data): Delete la_printstr initializer.
3630 (unknown_language::printstr): New member function.
3631 (auto_language_data): Delete la_printstr initializer.
3632 (auto_language::printstr): New member function.
3633 * language.h (language_data): Delete la_printstr field.
3634 (language_defn::printstr): Declare new member function.
3635 (LA_PRINT_STRING): Update call to printstr.
3636 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3637 (m2_language_data): Delete la_printstr initializer.
3638 (m2_language::printstr): New member function, implementation from
3639 m2_printstr.
3640 * objc-lang.c (objc_language_data): Delete la_printstr
3641 initializer.
3642 * opencl-lang.c (opencl_language_data): Likewise.
3643 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3644 (pascal_language_data): Delete la_printstr initializer.
3645 (pascal_language::printstr): New member function, implementation
3646 from pascal_printstr.
3647 * p-lang.h (pascal_printstr): Delete declaration.
3648 * rust-lang.c (rust_printstr): Update header comment.
3649 (rust_language_data): Delete la_printstr initializer.
3650 (rust_language::printstr): New member function.
3651
52b50f2c
AB
36522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3653
3654 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3655 (ada_language::printchar): New member function.
3656 * c-lang.c (c_language_data): Delete la_printchar initializer.
3657 (cplus_language_data): Likewise.
3658 (asm_language_data): Likewise.
3659 (minimal_language_data): Likewise.
3660 * d-lang.c (d_language_data): Likewise.
3661 * f-lang.c (f_printchar): Rename to f_language::printchar.
3662 (f_language_data): Delete la_printchar initializer.
3663 (f_language::printchar): New member function, implementation from
3664 f_printchar.
3665 * go-lang.c (go_language_data): Delete la_printchar initializer.
3666 * language.c (unk_lang_printchar): Delete.
3667 (language_defn::printchar): Define new member function.
3668 (unknown_language_data): Delete la_printchar initializer.
3669 (unknown_language::printchar): New member function.
3670 (auto_language_data): Delete la_printchar initializer.
3671 (auto_language::printchar): New member function.
3672 * language.h (language_data): Delete la_printchar field.
3673 (language_defn::printchar): Declare new member function.
3674 (LA_PRINT_CHAR): Update call to printchar.
3675 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3676 (m2_language::printchar): New member function.
3677 * objc-lang.c (objc_language_data): Delete la_printchar
3678 initializer.
3679 * opencl-lang.c (opencl_language_data): Likewise.
3680 * p-lang.c (pascal_language_data): Delete la_printchar
3681 initializer.
3682 (pascal_language::printchar): New member function.
3683 * rust-lang.c (rust_printchar): Rename to
3684 rust_language::printchar.
3685 (rust_language_data): Delete la_printchar initializer.
3686 (rust_language::printchar): New member function, implementation
3687 from rust_printchar.
3688
ec8cec5b
AB
36892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3692 (ada_language_data): Delete la_emitchar initializer.
3693 (ada_language::emitchar): New member function, implementation from
3694 emit_char.
3695 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3696 (cplus_language_data): Likewise.
3697 (asm_language_data): Likewise.
3698 (minimal_language_data): Likewise.
3699 * d-lang.c (d_language_data): Likewise.
3700 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3701 (f_language_data): Delete la_emitchar initializer.
3702 (f_language::emitchar): New member function, implementation from
3703 f_emit_char.
3704 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3705 * language.c (unk_lang_emit_char): Delete.
3706 (language_defn::emitchar): New member function definition.
3707 (unknown_language_data): Delete la_emitchar initializer.
3708 (unknown_language::emitchar): New member function.
3709 (auto_language_data): Delete la_emitchar initializer.
3710 (auto_language::emitchar): New member function.
3711 * language.h (language_data): Delete la_emitchar field.
3712 (language_defn::emitchar): New member field declaration.
3713 (LA_EMIT_CHAR): Update call to emitchar.
3714 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3715 (m2_language_data): Delete la_emitchar initializer.
3716 (m2_language::emitchar): New member function, implementation from
3717 m2_emit_char.
3718 * objc-lang.c (objc_language_data): Delete la_emitchar
3719 initializer.
3720 * opencl-lang.c (opencl_language_data): Likewise.
3721 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3722 (pascal_language_data): Delete la_emitchar initializer.
3723 (pascal_language::emitchar): New member function, implementation
3724 from pascal_emit_char.
3725 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3726 (rust_language_data): Delete la_emitchar initializer.
3727 (rust_language::emitchar): New member function, implementation
3728 from rust_emitchar.
3729
1bf9c363
AB
37302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3733 (ada_language_data): Delete la_post_parser initializer.
3734 (ada_language::post_parser): New member function.
3735 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3736 (cplus_language_data): Likewise.
3737 (asm_language_data): Likewise.
3738 (minimal_language_data): Likewise.
3739 * d-lang.c (d_language_data): Likewise.
3740 * f-lang.c (f_language_data): Likewise.
3741 * go-lang.c (go_language_data): Likewise.
3742 * language.c (unknown_language_data): Likewise.
3743 (auto_language_data): Likewise.
3744 * language.h (language_data): Delete la_post_parser field.
3745 (language_defn::post_parser): New member function.
3746 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3747 * objc-lang.c (objc_language_data): Likewise.
3748 * opencl-lang.c (opencl_language_data): Likewise.
3749 * p-lang.c (pascal_language_data): Likewise.
3750 * parse.c (parse_exp_in_context): Update call to post_parser.
3751 (null_post_parser): Delete definition.
3752 * parser-defs.h (null_post_parser): Delete declaration.
3753 * rust-lang.c (rust_language_data): Delete la_post_parser
3754 initializer.
3755
87afa652
AB
37562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * ada-lang.c (parse): Rename to ada_language::parser.
3759 (ada_language_data): Delete la_parser initializer.
3760 (ada_language::parser): New member function, implementation from
3761 parse.
3762 * c-lang.c (c_language_data): Delete la_parser initializer.
3763 (cplus_language_data): Likewise.
3764 (asm_language_data): Likewise.
3765 (minimal_language_data): Likewise.
3766 * d-lang.c (d_language_data): Likewise.
3767 (d_language::parser): New member function.
3768 * f-lang.c (f_language_data): Delete la_parser initializer.
3769 (f_language::parser): New member function.
3770 * go-lang.c (go_language_data): Delete la_parser initializer.
3771 (go_language::parser): New member function.
3772 * language.c (unk_lang_parser): Delete.
3773 (language_defn::parser): Define new member function.
3774 (unknown_language_data): Delete la_parser initializer.
3775 (unknown_language::parser): New member function.
3776 (auto_language_data): Delete la_parser initializer.
3777 (auto_language::parser): New member function.
3778 * language.h (language_data): Delete la_parser field.
3779 (language_defn::parser): Declare new member function.
3780 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3781 (m2_language::parser): New member function.
3782 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3783 * opencl-lang.c (opencl_language_data): Likewise.
3784 * p-lang.c (pascal_language_data): Likewise.
3785 (pascal_language::parser): New member function.
3786 * parse.c (parse_exp_in_context): Update call to parser.
3787 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3788 (rust_language::parser): New member function.
3789
37825800
AB
37902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * top.c (print_gdb_configuration): Print --with-python-libdir
3793 configuration value.
3794
5b860c93
PW
37952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3796
3797 * NEWS: Mention change to the alias command.
3798
cf00cd6f
PW
37992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3800
3801 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3802 (alias_command_completer)
3803 (make_alias_options_def_group): New functions.
3804 (alias_opts, alias_option_defs): New struct and array.
3805 (alias_usage_error): Update usage.
3806 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3807 Use option framework.
3808 (_initialize_cli_cmds): Update alias command help.
3809 Update aliases command help.
3810 (show_user):
3811 Add NULL for new default_args lookup_cmd argument.
3812 (valid_command_p): Rename to validate_aliased_command.
3813 Add NULL for new default_args lookup_cmd argument. Verify that the
3814 aliased_command has no default args.
3815 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3816 (lookup_cmd_1, lookup_cmd): New argument default_args.
3817 (add_alias_cmd):
3818 Add NULL for new default_args lookup_cmd argument.
3819 (print_help_for_command): Show default args under the layout
3820 alias some_alias = some_aliased_cmd some_alias_default_arg.
3821 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3822 xfree default_args in destructor.
3823 * cli/cli-script.c (process_next_line, do_define_command):
3824 Add NULL for new default_args lookup_cmd argument.
3825 * command.h: Declare new default_args argument in lookup_cmd
3826 and lookup_cmd_1.
3827 * completer.c (complete_line_internal_1):
3828 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3829 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3830 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3831 Likewise.
3832 * infcmd.c (_initialize_infcmd): Likewise.
3833 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3834 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3835 * python/py-param.c (add_setshow_generic): Likewise.
3836 * remote.c (_initialize_remote): Likewise.
3837 * top.c (execute_command): Prepend default_args if command has some.
3838 (set_verbose):
3839 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3840 * tracepoint.c (validate_actionline, encode_actions_1):
3841 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3842
bd920864
TBA
38432020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 * jit.c (jit_read_descriptor): Use bool as the return type.
3846 (jit_breakpoint_re_set_internal): Use bool as the return type.
3847 Invert the return value logic; return true if the jit breakpoint
3848 has been successfully initialized.
3849 (jit_inferior_init): Update the call to
3850 jit_breakpoint_re_set_internal.
3851
f8098322
PA
38522020-06-22 Pedro Alves <palves@redhat.com>
3853
3854 PR gdb/25939
3855 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3856 Use the current inferior instead. Don't return
3857 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3858 wait again.
3859 * sol-thread.c (sol_thread_target::wait): Don't reference
3860 inferior_ptid.
3861 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3862 (sol_update_thread_list_callback): Use the current inferior's pid
3863 instead of inferior_ptid.
3864
196535a6
RO
38652020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3866
3867 * procfs.c: Cleanup many comments.
3868
3869 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3870 (AFTER_WATCHFLAG): Replace by value.
3871
3872 (MAIN_PROC_NAME_FORMAT): Inline ...
3873 (create_procinfo): ... here.
3874
3875 (procfs_debug_inferior): Remove SYS_exec handling.
3876 (syscall_is_exec): Likewise.
3877 (procfs_set_exec_trap): Likewise.
3878
3879 (syscall_is_lwp_exit): Inline in callers.
3880 (syscall_is_exit): Likewise.
3881 (syscall_is_exec): Likewise.
3882 (syscall_is_lwp_create): Likewise.
3883
3884 (invalidate_cache): Remove #if 0 code.
3885
3886 (make_signal_thread_runnable): Remove.
3887 (procfs_target::resume): Remove #if 0 code.
3888
cf6f3e86
RO
38892020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3890
3891 PR gdb/25939
3892 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3893 call ...
3894 (procfs_target::create_inferior): ... here.
3895
48e9cc84
PW
38962020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3897
3898 * exec.c (validate_exec_file): Ensure the build-id is up to
3899 date by calling reopen_exec_file (that checks file timestamp
3900 to decide to re-read the file).
3901
3922b302
PA
39022020-06-18 Pedro Alves <palves@redhat.com>
3903
3904 PR gdb/25412
3905 * gdbthread.h (delete_thread, delete_thread_silent)
3906 (find_thread_ptid): Update comments.
3907 * thread.c (current_thread_): New global.
3908 (is_current_thread): Move higher, and reimplement.
3909 (inferior_thread): Reimplement.
3910 (set_thread_exited): Use bool. Add assertions.
3911 (add_thread_silent): Simplify thread-reuse handling by always
3912 calling delete_thread.
3913 (delete_thread): Remove intro comment.
3914 (find_thread_ptid): Skip exited threads.
3915 (switch_to_thread_no_regs): Write to current_thread_.
3916 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3917 INFERIOR_PTID. Clear current_thread_.
3918
6dbdab44
PA
39192020-06-18 Pedro Alves <palves@redhat.com>
3920
3921 * aix-thread.c (pd_update): Use switch_to_thread.
3922
2da4b788
PA
39232020-06-18 Pedro Alves <palves@redhat.com>
3924
3925 * ravenscar-thread.c (ravenscar_thread_target): Update.
3926 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3927 (ravenscar_thread_target::add_active_thread): ... this. Don't
3928 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3929 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3930
50838d1b
PA
39312020-06-18 Pedro Alves <palves@redhat.com>
3932
3933 * nat/windows-nat.c (current_windows_thread): Remove.
3934 * nat/windows-nat.h (current_windows_thread): Remove.
3935 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3936 Adjust.
3937 (display_selectors): Adjust to fetch the current
3938 windows_thread_info based on inferior_ptid.
3939 (fake_create_process): No longer write to current_windows_thread.
3940 (windows_nat_target::get_windows_debug_event):
3941 Don't set inferior_ptid or current_windows_thread.
3942 (windows_nat_target::wait): Adjust to not rely on
3943 current_windows_thread.
3944 (do_initial_windows_stuff): Now a method of windows_nat_target.
3945 Switch to the last_ptid thread.
3946 (windows_nat_target::attach): Adjust.
3947 (windows_nat_target::detach): Use switch_to_no_thread instead of
3948 writing to inferior_ptid directly.
3949 (windows_nat_target::create_inferior): Adjust.
3950
31ce04e9
PA
39512020-06-18 Pedro Alves <palves@redhat.com>
3952
3953 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3954
1ee1a363
PA
39552020-06-18 Pedro Alves <palves@redhat.com>
3956
3957 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3958 after creating it, instead of writing to inferior_ptid. Don't
3959 write to inferior_ptid.
3960
6d350754
PA
39612020-06-18 Pedro Alves <palves@redhat.com>
3962
3963 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3964
5d971d48
PA
39652020-06-18 Pedro Alves <palves@redhat.com>
3966
3967 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3968 it, instead of writing to inferior_ptid.
3969
86e57d1b
PA
39702020-06-18 Pedro Alves <palves@redhat.com>
3971
3972 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3973 to inferior_ptid.
3974
f2e1c129
PA
39752020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3978 instead of writing to inferior_ptid directly.
3979
60db1b85
PA
39802020-06-18 Pedro Alves <palves@redhat.com>
3981
3982 * corelow.c (core_target::close): Use switch_to_no_thread instead
3983 of writing to inferior_ptid directly.
3984 (add_to_thread_list, core_target_open): Use switch_to_thread
3985 instead of writing to inferior_ptid directly.
3986
fe7d6a8d
PA
39872020-06-18 Pedro Alves <palves@redhat.com>
3988
3989 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3990 inferior_ptid.
3991 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3992 inferior_ptid.
3993 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3994 inferior_ptid directly.
3995 (darwin_nat_target::init_thread_list): Switch to thread, instead
3996 of writing to inferior_ptid.
3997 (darwin_nat_target::attach): Don't write to inferior_ptid.
3998 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3999
975f8708
PA
40002020-06-18 Pedro Alves <palves@redhat.com>
4001
4002 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4003 thread.
4004 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4005 Instead use switch_to_thread.
4006 (gnu_nat_target::detach): Use switch_to_no_thread
4007 instead of writing to inferior_ptid directly. Used passed-in
4008 inferior instead of looking up the inferior by pid.
4009
1a204730
PA
40102020-06-18 Pedro Alves <palves@redhat.com>
4011
4012 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4013 inferior_ptid.
4014
ebe84f23
PA
40152020-06-18 Pedro Alves <palves@redhat.com>
4016
4017 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4018 inferior_ptid.
4019 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4020 thread.
4021 (nto_procfs_target::detach): Avoid referencing
4022 inferior_ptid. Use switch_to_no_thread instead of writing to
4023 inferior_ptid directly.
4024 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4025 instead of writing to inferior_ptid directly.
4026 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4027 to thread.
4028
191f02e5
PA
40292020-06-18 Pedro Alves <palves@redhat.com>
4030
4031 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4032 after creating it, instead of writing to inferior_ptid.
4033 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4034 to inferior_ptid directly.
4035 (gdbsim_target::wait): Don't write to inferior_ptid.
4036
0ac55310
PA
40372020-06-18 Pedro Alves <palves@redhat.com>
4038
4039 * remote.c (remote_target::remote_notice_new_inferior): Use
4040 switch_to_thread instead of writing to inferior_ptid directly.
4041 (remote_target::add_current_inferior_and_thread): Use
4042 switch_to_no_thread instead of writing to inferior_ptid directly.
4043 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4044 and switch_to_thread instead of using set_current_inferior or
4045 writing to inferior_ptid directly.
4046
5233f39b
PA
40472020-06-18 Pedro Alves <palves@redhat.com>
4048
4049 * tracectf.c (ctf_target_open): Switch to added thread instead of
4050 writing to inferior_ptid directly.
4051 (ctf_target::close): Use switch_to_no_thread instead of writing to
4052 inferior_ptid directly.
4053
087e161b
PA
40542020-06-18 Pedro Alves <palves@redhat.com>
4055
4056 * tracefile-tfile.c (tfile_target_open): Don't write to
4057 inferior_ptid directly, instead switch to added thread.
4058 (tfile_target::close): Use switch_to_no_thread instead of writing
4059 to inferior_ptid directly.
4060
7fb43e53
PA
40612020-06-18 Pedro Alves <palves@redhat.com>
4062
4063 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4064 (procfs_target::detach): Use switch_to_no_thread
4065 instead of writing to inferior_ptid directly.
4066 (do_attach): Change return type to void. Switch to the added
4067 thread.
4068 (procfs_target::create_inferior): Switch to the added thread.
4069 (procfs_do_thread_registers): Don't write to inferior_ptid.
4070
18493a00
PA
40712020-06-18 Pedro Alves <palves@redhat.com>
4072
4073 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4074 of writing to inferior_ptid.
4075 (scoped_restore_exited_inferior): Delete.
4076 (handle_vfork_child_exec_or_exit): Simplify using
4077 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4078 instead of writing to inferior_ptid.
4079 (THREAD_STOPPED_BY): Delete.
4080 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4081 (thread_stopped_by_hw_breakpoint): Delete.
4082 (save_waitstatus): Use
4083 scoped_restore_current_thread+switch_to_thread, and call
4084 target_stopped_by_watchpoint instead of
4085 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4086 instead of thread_stopped_by_sw_breakpoint, and
4087 target_stopped_by_hw_breakpoint instead of
4088 thread_stopped_by_hw_breakpoint.
4089 (handle_inferior_event)
4090 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4091 inferior_ptid directly, nor
4092 set_current_inferior/set_current_program_space. Use
4093 switch_to_thread / switch_to_inferior_no_thread instead.
4094
a0776b13
PA
40952020-06-18 Pedro Alves <palves@redhat.com>
4096
4097 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4098 instead of writing to inferior_ptid.
4099
6155c136
PA
41002020-06-18 Pedro Alves <palves@redhat.com>
4101
4102 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4103 added thread.
4104 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4105 to the added thread.
4106 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4107 instead of writing to inferior_ptid.
4108
c5316fc6
PA
41092020-06-18 Pedro Alves <palves@redhat.com>
4110
4111 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4112 (register_to_value_test): Mock a program_space too. Heap-allocate
4113 the address space. Don't write to inferior_ptid. Use
4114 switch_to_thread instead.
4115
8df01799
PA
41162020-06-18 Pedro Alves <palves@redhat.com>
4117
4118 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4119 Delete.
4120 (find_signalled_thread()): New, factored out from
4121 linux_make_corefile_notes and adjusted to handle exited threads.
4122 (linux_make_corefile_notes): Adjust to use the new
4123 find_signalled_thread.
4124
41792d68
PA
41252020-06-18 Pedro Alves <palves@redhat.com>
4126
4127 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4128 of saving/restoring inferior_ptid.
4129
612f258a
TT
41302020-06-17 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4133 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4134 declare.
4135 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4136
efb763a5
SM
41372020-06-15 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4140 of partial symtabs.
4141
2951f6c0
SM
41422020-06-17 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * regformats/reg-arm.dat: Remove.
4145 * regformats/reg-bfin.dat: Remove.
4146 * regformats/reg-cris.dat: Remove.
4147 * regformats/reg-crisv32.dat: Remove.
4148 * regformats/reg-m32r.dat: Remove.
4149 * regformats/reg-tilegx.dat: Remove.
4150 * regformats/reg-tilegx32.dat: Remove.
4151
7d458ea5
SM
41522020-06-17 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * features/Makefile (WHICH): Remove arm files.
4155 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4156 * regformats/arm/arm-with-neon.dat: Remove.
4157 * regformats/arm/arm-with-vfpv2.dat: Remove.
4158 * regformats/arm/arm-with-vfpv3.dat: Remove.
4159
3af96c0d
SM
41602020-06-17 Simon Marchi <simon.marchi@efficios.com>
4161
4162 * features/Makefile (XMLTOC): Remove rx.xml.
4163
b25e22fd
PA
41642020-06-17 Pedro Alves <palves@redhat.com>
4165
4166 * gdbthread.h (thread_control_state) <trap_expected> Update
4167 comments.
4168
a78a19b1
AB
41692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4172 ada_language::lookup_symbol_nonlocal.
4173 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4174 (ada_language::lookup_symbol_nonlocal): New member function,
4175 implementation from ada_lookup_symbol_nonlocal.
4176 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4177 initializer.
4178 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4179 initializer.
4180 (cplus_language::lookup_symbol_nonlocal): New member function.
4181 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4182 (minimal_language_data) Likewise.
4183 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4184 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4185 initializer.
4186 (d_language::lookup_symbol_nonlocal): New member function.
4187 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4188 initializer.
4189 (f_language::lookup_symbol_nonlocal): New member function.
4190 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4191 initializer.
4192 * language.c (unknown_language_data): Likewise.
4193 (auto_language_data): Likewise.
4194 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4195 field.
4196 (language_defn::lookup_symbol_nonlocal): New member function.
4197 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4198 initializer.
4199 * objc-lang.c (objc_language_data): Likewise.
4200 * opencl-lang.c (opencl_language_data): Likewise.
4201 * p-lang.c (pascal_language_data): Likewise.
4202 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4203 rust_language::lookup_symbol_nonlocal.
4204 (rust_language_data): Delete la_lookup_symbol_nonlocal
4205 initializer.
4206 (rust_language::lookup_symbol_nonlocal): New member function,
4207 implementation from rust_lookup_symbol_nonlocal.
4208 * symtab.c (lookup_symbol_aux): Update call to
4209 lookup_symbol_nonlocal.
4210 (basic_lookup_symbol_nonlocal): Rename to...
4211 (language_defn::lookup_symbol_nonlocal): ...this, and update
4212 header comment. Remove language_defn parameter, and replace with
4213 uses of `this'.
4214 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4215
ebe2334e
AB
42162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4217
4218 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4219 initializer.
4220 (ada_language::value_print_inner): New member function.
4221 * c-lang.c (c_language_data): Delete la_value_print_inner
4222 initializer.
4223 (cplus_language_data): Likewise.
4224 (asm_language_data): Likewise.
4225 (minimal_language_data): Likewise.
4226 * d-lang.c (d_language_data): Likewise.
4227 (d_language::value_print_inner): New member function.
4228 * f-lang.c (f_language_data): Delete la_value_print_inner
4229 initializer.
4230 (f_language::value_print_inner): New member function.
4231 * f-lang.h (f_value_print_innner): Rename to...
4232 (f_value_print_inner): ...this (note spelling of 'inner').
4233 * f-valprint.c (f_value_print_innner): Rename to...
4234 (f_value_print_inner): ...this (note spelling of 'inner').
4235 * go-lang.c (go_language_data): Delete la_value_print_inner
4236 initializer.
4237 (go_language::value_print_inner): New member function.
4238 * language.c (language_defn::value_print_inner): Define new member
4239 function.
4240 (unk_lang_value_print_inner): Delete.
4241 (unknown_language_data): Delete la_value_print_inner initializer.
4242 (unknown_language::value_print_inner): New member function.
4243 (auto_language_data): Delete la_value_print_inner initializer.
4244 (auto_language::value_print_inner): New member function.
4245 * language.h (language_data): Delete la_value_print_inner field.
4246 (language_defn::value_print_inner): Delcare new member function.
4247 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4248 initializer.
4249 (m2_language::value_print_inner): New member function.
4250 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4251 initializer.
4252 * opencl-lang.c (opencl_language_data): Likewise.
4253 * p-lang.c (pascal_language_data): Likewise.
4254 (pascal_language::value_print_inner): New member function.
4255 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4256 initializer.
4257 (rust_language::value_print_inner): New member function.
4258 * valprint.c (do_val_print): Update call to value_print_inner.
4259
a1d1fa3e
AB
42602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_language_data): Delete la_value_print
4263 initializer.
4264 (ada_language::value_print): New member function.
4265 * c-lang.c (c_language_data): Delete la_value_print initializer.
4266 (cplus_language_data): Likewise.
4267 (asm_language_data): Likewise.
4268 (minimal_language_data): Likewise.
4269 * d-lang.c (d_language_data): Likewise.
4270 * f-lang.c (f_language_data): Likewise.
4271 * go-lang.c (go_language_data): Likewise.
4272 * language.c (unk_lang_value_print): Delete.
4273 (language_defn::value_print): Define new member function.
4274 (unknown_language_data): Delete la_value_print initializer.
4275 (unknown_language::value_print): New member function.
4276 (auto_language_data): Delete la_value_print initializer.
4277 (auto_language::value_print): New member function.
4278 * language.h (language_data): Delete la_value_print field.
4279 (language_defn::value_print): Declare new member function.
4280 (LA_VALUE_PRINT): Update call to value_print.
4281 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4282 * objc-lang.c (objc_language_data): Likewise.
4283 * opencl-lang.c (opencl_language_data): Likewise.
4284 * p-lang.c (pascal_language_data): Likewise.
4285 (pascal_language::value_print): New member function.
4286 * rust-lang.c (rust_language_data): Delete la_value_print
4287 initializer.
4288
f16a9f57
AB
42892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4290
4291 * ada-lang.c (ada_watch_location_expression): Rename to
4292 ada_language::watch_location_expression.
4293 (ada_language_data): Delete la_watch_location_expression
4294 initializer.
4295 (ada_language::watch_location_expression): New member function,
4296 implementation from ada_watch_location_expression.
4297 * breakpoint.c (watch_command_1): Update call to
4298 watch_location_expression.
4299 * c-lang.c (c_watch_location_expression): Rename to
4300 language_defn::watch_location_expression.
4301 (c_language_data): Delete la_watch_location_expression
4302 initializer.
4303 (cplus_language_data): Likewise.
4304 (asm_language_data): Likewise.
4305 (minimal_language_data): Likewise.
4306 * c-lang.h (c_watch_location_expression): Delete declaration.
4307 * d-lang.c (d_language_data): Delete la_watch_location_expression
4308 initializer.
4309 * f-lang.c (f_language_data): Likewise.
4310 * go-lang.c (go_language_data): Likewise.
4311 * language.c (language_defn::watch_location_expression): Member
4312 function implementation from c_watch_location_expression.
4313 (unknown_language_data): Delete la_watch_location_expression
4314 initializer.
4315 (auto_language_data): Likewise.
4316 * language.h (language_data): Delete la_watch_location_expression
4317 field.
4318 (language_defn::watch_location_expression): Declare new member
4319 function.
4320 * m2-lang.c (m2_language_data): Delete
4321 la_watch_location_expression initializer.
4322 * objc-lang.c (objc_language_data): Likewise.
4323 * opencl-lang.c (opencl_language_data): Likewise.
4324 * p-lang.c (pascal_language_data): Likewise.
4325 * rust-lang.c (rust_watch_location_expression): Rename to
4326 rust_language::watch_location_expression.
4327 (rust_language_data): Delete la_watch_location_expression
4328 initializer.
4329 (rust_language::watch_location_expression): New member function,
4330 implementation from rust_watch_location_expression.
4331
7e56227d
AB
43322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4333
4334 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4335 ada_language::collect_symbol_completion_matches.
4336 (ada_language_data): Delete la_collect_symbol_completion_matches
4337 initializer.
4338 (ada_language::collect_symbol_completion_matches): New member
4339 function, implementation from
4340 ada_collect_symbol_completion_matches.
4341 * c-lang.c (c_language_data): Delete
4342 la_collect_symbol_completion_matches initializer.
4343 (cplus_language_data): Likewise.
4344 (asm_language_data): Likewise.
4345 (minimal_language_data): Likewise.
4346 * d-lang.c (d_language_data): Likewise.
4347 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4348 f_language::collect_symbol_completion_matches.
4349 (f_language_data): Delete la_collect_symbol_completion_matches
4350 initializer.
4351 (f_language::collect_symbol_completion_matches) New member
4352 function, implementation from f_collect_symbol_completion_matches.
4353 * go-lang.c (go_language_data): Delete
4354 la_collect_symbol_completion_matches initializer.
4355 * language.c (unknown_language_data): Likewise.
4356 (auto_language_data): Likewise.
4357 * language.h (language_data): Delete
4358 la_collect_symbol_completion_matches field.
4359 (language_defn::collect_symbol_completion_matches): New member
4360 function.
4361 * m2-lang.c (m2_language_data): Delete
4362 la_collect_symbol_completion_matches initializer.
4363 * objc-lang.c (objc_language_data): Likewise.
4364 * opencl-lang.c (opencl_language_data): Likewise.
4365 * p-lang.c (pascal_language_data): Likewise.
4366 * rust-lang.c (rust_language_data): Likewise.
4367 * symtab.c (default_collect_symbol_completion_matches): Delete.
4368 (collect_symbol_completion_matches): Update call to
4369 collect_symbol_completion_matches.
4370 (collect_symbol_completion_matches_type): Likewise.
4371 * symtab.h (default_collect_symbol_completion_matches): Delete
4372 declaration.
4373
53fc67f8
AB
43742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4375
4376 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4377 (ada_language_data): Delete la_word_break_characters initializer.
4378 (ada_language::word_break_characters): New member function.
4379 * c-lang.c (c_language_data): Delete la_word_break_characters
4380 initializer.
4381 (cplus_language_data): Likewise.
4382 (asm_language_data): Likewise.
4383 (minimal_language_data): Likewise.
4384 * completer.c: Update global comment.
4385 (advance_to_expression_complete_word_point): Update call to
4386 word_break_characters.
4387 (complete_files_symbols): Likewise.
4388 (complete_line_internal_1): Likewise.
4389 (default_completer_handle_brkchars): Likewise.
4390 (skip_quoted_chars): Likewise.
4391 * d-lang.c (d_language_data): Delete la_word_break_characters
4392 initializer.
4393 * f-lang.c (f_word_break_characters): Delete.
4394 (f_language_data): Delete la_word_break_characters initializer.
4395 (f_language::word_break_characters): New member function.
4396 * go-lang.c (go_language_data): Delete la_word_break_characters
4397 initializer.
4398 * language.c (unknown_language_data): Likewise.
4399 (auto_language_data): Likewise.
4400 * language.h (default_word_break_characters): Move declaration to
4401 earlier in the file.
4402 (language_data): Delete la_word_break_characters field.
4403 (language_defn::word_break_characters): New member function.
4404 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4405 initializer.
4406 * objc-lang.c (objc_language_data): Likewise.
4407 * opencl-lang.c (opencl_language_data): Likewise.
4408 * p-lang.c (pascal_language_data): Likewise.
4409 * rust-lang.c (rust_language_data): Likewise.
4410
c9debfb9
AB
44112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4414 (ada_language_data): Delete la_get_symbol_name_matcher
4415 initializer.
4416 (language_defn::get_symbol_name_matcher_inner): New member
4417 function.
4418 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4419 initializer.
4420 (cplus_language_data): Likewise.
4421 (cplus_language::get_symbol_name_matcher_inner): New member
4422 function.
4423 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4424 (minimal_language_data): Likewise.
4425 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4426 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4427 initializer.
4428 * dictionary.c (iter_match_first_hashed): Update call to
4429 get_symbol_name_matcher.
4430 (iter_match_next_hashed): Likewise.
4431 (iter_match_next_linear): Likewise.
4432 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4433 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4434 initializer.
4435 (f_language::get_symbol_name_matcher_inner): New member function.
4436 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4437 initializer.
4438 * language.c (default_symbol_name_matcher): Update header comment,
4439 make static.
4440 (language_defn::get_symbol_name_matcher): New definition.
4441 (language_defn::get_symbol_name_matcher_inner): Likewise.
4442 (get_symbol_name_matcher): Delete.
4443 (unknown_language_data): Delete la_get_symbol_name_matcher
4444 initializer.
4445 (auto_language_data): Likewise.
4446 * language.h (language_data): Delete la_get_symbol_name_matcher
4447 field.
4448 (language_defn::get_symbol_name_matcher): New member function.
4449 (language_defn::get_symbol_name_matcher_inner): Likewise.
4450 (default_symbol_name_matcher): Delete declaration.
4451 * linespec.c (find_methods): Update call to
4452 get_symbol_name_matcher.
4453 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4454 initializer.
4455 * minsyms.c (lookup_minimal_symbol): Update call to
4456 get_symbol_name_matcher.
4457 (iterate_over_minimal_symbols): Likewise.
4458 * objc-lang.c (objc_language_data): Delete
4459 la_get_symbol_name_matcher initializer.
4460 * opencl-lang.c (opencl_language_data): Likewise.
4461 * p-lang.c (pascal_language_data): Likewise.
4462 * psymtab.c (psymbol_name_matches): Update call to
4463 get_symbol_name_matcher.
4464 * rust-lang.c (rust_language_data): Delete
4465 la_get_symbol_name_matcher initializer.
4466 * symtab.c (symbol_matches_search_name): Update call to
4467 get_symbol_name_matcher.
4468 (compare_symbol_name): Likewise.
4469
9a49ad8c
AB
44702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * ada-lang.c (ada_language_data): Delete la_compute_program
4473 initializer.
4474 * c-lang.c (c_language_data): Likewise.
4475 (c_language::compute_program): New member function.
4476 (cplus_language_data): Delete la_compute_program initializer.
4477 (cplus_language::compute_program): New member function.
4478 (asm_language_data): Delete la_compute_program initializer.
4479 (minimal_language_data): Likewise.
4480 * c-lang.h (c_compute_program): Update comment.
4481 (cplus_compute_program): Likewise.
4482 * compile/compile-c-support.c (c_compute_program): Likewise.
4483 (cplus_compute_program): Likewise.
4484 * compile/compile.c (compile_to_object): Update call to
4485 la_compute_program.
4486 * d-lang.c (d_language_data): Delete la_compute_program
4487 initializer.
4488 * f-lang.c (f_language_data): Likewise.
4489 * go-lang.c (go_language_data): Likewise.
4490 * language.c (unknown_language_data): Likewise.
4491 (auto_language_data): Likewise.
4492 * language.h (language_data): Delete la_compute_program field.
4493 (language_defn::compute_program): New member function.
4494 * m2-lang.c (m2_language_data): Delete la_compute_program
4495 initializer.
4496 * objc-lang.c (objc_language_data): Likewise.
4497 * opencl-lang.c (opencl_language_data): Likewise.
4498 * p-lang.c (pascal_language_data): Likewise.
4499 * rust-lang.c (rust_language_data): Likewise.
4500
eff93b4d
AB
45012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_language_data) Delete
4504 la_class_name_from_physname initializer.
4505 * c-lang.c (c_language_data): Likewise.
4506 (cplus_language_data): Likewise.
4507 (cplus_language::class_name_from_physname): New member function.
4508 (asm_language_data): Delete la_class_name_from_physname
4509 initializer.
4510 (minimal_language_data): Likewise.
4511 * d-lang.c (d_language_data): Likewise.
4512 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4513 method on language_defn class.
4514 (guess_full_die_structure_name): Likewise.
4515 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4516 initializer.
4517 * go-lang.c (go_language_data): Likewise.
4518 * language.c (language_class_name_from_physname): Delete.
4519 (unk_lang_class_name): Delete.
4520 (unknown_language_data): Delete la_class_name_from_physname
4521 initializer.
4522 (auto_language_data): Likewise.
4523 * language.h (language_data): Delete la_class_name_from_physname
4524 field.
4525 (language_defn::class_name_from_physname): New function.
4526 (language_class_name_from_physname): Delete declaration.
4527 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4528 initializer.
4529 * objc-lang.c (objc_language_data): Likewise.
4530 * opencl-lang.c (opencl_language_data): Likewise.
4531 * p-lang.c (pascal_language_data): Likewise.
4532 * rust-lang.c (rust_language_data): Likewise.
4533
de543742
TT
45342020-06-16 Tom Tromey <tom@tromey.com>
4535
4536 * tui/tui-data.h (STATUS_NAME): New macro.
4537 * tui/tui-layout.c (tui_remove_some_windows)
4538 (initialize_known_windows, tui_register_window)
4539 (tui_layout_split::remove_windows, initialize_layouts)
4540 (tui_new_layout_command): Don't use hard-coded window names.
4541
a350efd4
TT
45422020-06-16 Tom Tromey <tom@tromey.com>
4543
4544 PR tui/25348:
4545 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4546 tui_initialize_readline. Only run once. Call rl_initialize.
4547 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4548 tui_initialize_readline.
4549 * tui/tui-io.c (tui_setup_io): Call
4550 tui_ensure_readline_initialized.
4551 * tui/tui-interp.c (tui_interp::init): Update.
4552
39ec0490
TT
45532020-06-16 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4556 Also preserve the status window.
4557
d2d1ea20
TT
45582020-06-16 Tom Tromey <tom@tromey.com>
4559
4560 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4561 where m_window==nullptr.
4562
66920317
TT
45632020-06-15 Tom Tromey <tromey@adacore.com>
4564
4565 * windows-nat.c (windows_nat::handle_output_debug_string):
4566 Update.
4567 (windows_nat::handle_ms_vc_exception): Update.
4568 * target.h (target_read_string): Change API.
4569 * target.c (target_read_string): Change API.
4570 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4571 Update.
4572 * solib-frv.c (frv_current_sos): Update.
4573 * solib-dsbt.c (dsbt_current_sos): Update.
4574 * solib-darwin.c (darwin_current_sos): Update.
4575 * linux-thread-db.c (inferior_has_bug): Update.
4576 * expprint.c (print_subexp_standard): Update.
4577 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4578 (ada_exception_message_1): Update.
4579
a5d871dd
TT
45802020-06-15 Tom Tromey <tromey@adacore.com>
4581
4582 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4583
670e35fa
TT
45842020-06-15 Tom Tromey <tromey@adacore.com>
4585
4586 * valprint.c (read_string): Update comment.
4587 * target.c (MIN): Remove.
4588 (target_read_string): Rewrite.
4589
f5272a3b
TT
45902020-06-15 Tom Tromey <tromey@adacore.com>
4591
4592 * corefile.c (read_memory_string): Remove.
4593 * ada-valprint.c (ada_value_print_ptr): Update.
4594 * ada-lang.h (ada_tag_name): Change return type.
4595 * ada-lang.c (type_from_tag): Update.
4596 (ada_tag_name_from_tsd): Change return type. Use
4597 target_read_string.
4598 (ada_tag_name): Likewise.
4599 * gdbcore.h (read_memory_string): Don't declare.
4600
2c074f49
HD
46012020-06-14 Hannes Domani <ssbssa@yahoo.de>
4602
4603 * symtab.c (rbreak_command): Ignore Windows drive colon.
4604
6a17d503
SM
46052020-06-12 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * NEWS: Mention removed GDBserver host support.
4608
453c733f
NC
46092020-06-12 Nelson Chu <nelson.chu@sifive.com>
4610
4611 * features/riscv/rebuild-csr-xml.sh: Updated.
4612
2b4e6a3f
TT
46132020-06-11 Tom Tromey <tom@tromey.com>
4614
4615 PR gdb/18318:
4616 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4617
4412332f
JG
46182020-06-09 Jonny Grant <jg@jguk.org>
46192020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4620
4621 * main.c (captured_main_1): Don't print new line after help.
4622 (print_gdb_help): add mailing list and IRC channel information
4623 to --help. Add new lines between items in the footer. Remove
4624 quotes around bug url.
4625
2f33032a
KS
46262020-06-11 Keith Seitz <keiths@redhat.com>
4627
4628 PR gdb/21356
4629 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4630 Resolve typedefs for type length calculations.
4631
7ab96794
TV
46322020-06-10 Tom de Vries <tdevries@suse.de>
4633
4634 PR ada/24713
4635 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4636 (write_psymbols): Enable .gdb_index for ada.
4637 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4638 ada.
4639
e5f3ece2
TV
46402020-06-10 Tom de Vries <tdevries@suse.de>
4641
4642 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4643 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4644 namei" instead of "const char *name" argument.
4645 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4646 dw2_symtab_iter_init.
4647
940da03e
SM
46482020-06-08 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4651 to use type::field and field::type instead.
4652
b6cdac4b
SM
46532020-06-08 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4656 to use field::type instead.
4657
5d14b6e5
SM
46582020-06-08 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (struct field) <type, set_type>: New methods.
4661 Rename `type` field to...
4662 <m_type>: ... this. Change references throughout to use type or
4663 set_type methods.
4664 (FIELD_TYPE): Use field::type. Change call sites that modify
4665 the field's type to use field::set_type instead.
4666
3d967001
SM
46672020-06-08 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4670 to use type::index_type instead.
4671
262abc0d
SM
46722020-06-08 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4675 methods.
4676 (TYPE_INDEX_TYPE): Use type::index_type.
4677 * gdbtypes.c (create_array_type_with_stride): Likewise.
4678
82836c92
TT
46792020-06-07 Tom Tromey <tom@tromey.com>
4680
4681 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4682 parameter.
4683 (generic_value_print): Update.
4684
940dace9
AB
46852020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 Revert commit 982a38f60b0.
4688 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4689
982a38f6
AB
46902020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4693 avoid use after free.
4694
82f06518
TV
46952020-06-05 Tom de Vries <tdevries@suse.de>
4696
4697 * NEWS: Fix typos.
4698
f8c41851
SM
46992020-06-04 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4702 the per_bfd object.
4703 (dwarf2_read_debug_names): Likewise.
4704 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4705 object when re-using a per_bfd object with an index.
4706
f9b5d5ea
TV
47072020-06-03 Tom de Vries <tdevries@suse.de>
4708
4709 PR symtab/26046
4710 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4711 children for C++.
4712 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4713 DW_TAG_subprogram.
4714
f6eee2d0
AB
47152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * ada-lang.c (ada_language_data): Delete skip_trampoline
4718 initializer.
4719 * c-lang.c (c_language_data): Likewise.
4720 (cplus_language_data): Likewise.
4721 (cplus_language::skip_trampoline): New member function.
4722 (asm_language_data): Delete skip_trampoline initializer.
4723 (minimal_language_data): Likewise.
4724 * d-lang.c (d_language_data): Likewise.
4725 * f-lang.c (f_language_data): Likewise.
4726 * go-lang.c (go_language_data): Likewise.
4727 * language.c (unk_lang_trampoline): Delete function.
4728 (skip_language_trampoline): Update.
4729 (unknown_language_data): Delete skip_trampoline initializer.
4730 (auto_language_data): Likewise.
4731 * language.h (language_data): Delete skip_trampoline field.
4732 (language_defn::skip_trampoline): New function.
4733 * m2-lang.c (m2_language_data): Delete skip_trampoline
4734 initializer.
4735 * objc-lang.c (objc_skip_trampoline): Delete function, move
4736 implementation to objc_language::skip_trampoline.
4737 (objc_language_data): Delete skip_trampoline initializer.
4738 (objc_language::skip_trampoline): New member function with
4739 implementation from objc_skip_trampoline.
4740 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4741 initializer.
4742 * p-lang.c (pascal_language_data): Likewise.
4743 * rust-lang.c (rust_language_data): Likewise.
4744
0a50df5d
AB
47452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4746
4747 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4748 (ada_language::demangle): New member function.
4749 * c-lang.c (c_language_data): Delete la_demangle initializer.
4750 (cplus_language_data): Delete la_demangle initializer.
4751 (cplus_language::demangle): New member function.
4752 (asm_language_data): Delete la_demangle initializer.
4753 (minimal_language_data): Delete la_demangle initializer.
4754 * d-lang.c (d_language_data): Delete la_demangle initializer.
4755 (d_language::demangle): New member function.
4756 * f-lang.c (f_language_data): Delete la_demangle initializer.
4757 (f_language::demangle): New member function.
4758 * go-lang.c (go_language_data): Delete la_demangle initializer.
4759 (go_language::demangle): New member function.
4760 * language.c (language_demangle): Update.
4761 (unk_lang_demangle): Delete.
4762 (unknown_language_data): Delete la_demangle initializer.
4763 (unknown_language::demangle): New member function.
4764 (auto_language_data): Delete la_demangle initializer.
4765 (auto_language::demangle): New member function.
4766 * language.h (language_data): Delete la_demangle field.
4767 (language_defn::demangle): New function.
4768 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4769 * objc-lang.c (objc_language_data): Delete la_demangle
4770 initializer.
4771 (objc_language::demangle): New member function.
4772 * opencl-lang.c (opencl_language_data): Delete la_demangle
4773 initializer.
4774 * p-lang.c (pascal_language_data): Likewise.
4775 * rust-lang.c (rust_language_data): Likewise.
4776 (rust_language::demangle): New member function.
4777
fbfb0a46
AB
47782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4779
4780 * ada-lang.c (ada_language_data): Delete la_print_type
4781 initializer.
4782 (ada_language::print_type): New member function.
4783 * c-lang.c (c_language_data): Delete la_print_type initializer.
4784 (c_language::print_type): New member function.
4785 (cplus_language_data): Delete la_print_type initializer.
4786 (cplus_language::print_type): New member function.
4787 (asm_language_data): Delete la_print_type initializer.
4788 (asm_language::print_type): New member function.
4789 (minimal_language_data): Delete la_print_type initializer.
4790 (minimal_language::print_type): New member function.
4791 * d-lang.c (d_language_data): Delete la_print_type initializer.
4792 (d_language::print_type): New member function.
4793 * f-lang.c (f_language_data): Delete la_print_type initializer.
4794 (f_language::print_type): New member function.
4795 * go-lang.c (go_language_data): Delete la_print_type initializer.
4796 (go_language::print_type): New member function.
4797 * language.c (unk_lang_print_type): Delete.
4798 (unknown_language_data): Delete la_print_type initializer.
4799 (unknown_language::print_type): New member function.
4800 (auto_language_data): Delete la_print_type initializer.
4801 (auto_language::print_type): New member function.
4802 * language.h (language_data): Delete la_print_type field.
4803 (language_defn::print_type): New function.
4804 (LA_PRINT_TYPE): Update.
4805 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4806 (m2_language::print_type): New member function.
4807 * objc-lang.c (objc_language_data): Delete la_print_type
4808 initializer.
4809 (objc_language::print_type): New member function.
4810 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4811 to opencl_language::print_type.
4812 (opencl_language_data): Delete la_print_type initializer.
4813 (opencl_language::print_type): New member function, implementation
4814 from opencl_print_type.
4815 * p-lang.c (pascal_language_data): Delete la_print_type
4816 initializer.
4817 (pascal_language::print_type): New member function.
4818 * rust-lang.c (rust_print_type): Delete, implementation moved to
4819 rust_language::print_type.
4820 (rust_language_data): Delete la_print_type initializer.
4821 (rust_language::print_type): New member function, implementation
4822 from rust_print_type.
4823
6f827019
AB
48242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4827 implementation moves to...
4828 (ada_language::sniff_from_mangled_name): ...here. Update return
4829 type.
4830 (ada_language_data): Delete la_sniff_from_mangled_name
4831 initializer.
4832 * c-lang.c (c_language_data): Likewise.
4833 (cplus_language_data): Likewise.
4834 (cplus_language::sniff_from_mangled_name): New member function,
4835 implementation taken from gdb_sniff_from_mangled_name.
4836 (asm_language_data): Delete la_sniff_from_mangled_name
4837 initializer.
4838 (minimal_language_data): Likewise.
4839 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4840 implementation moves to cplus_language::sniff_from_mangled_name.
4841 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4842 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4843 moves to...
4844 (d_language::sniff_from_mangled_name): ...here.
4845 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4846 * f-lang.c (f_language_data): Likewise.
4847 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4848 moves to...
4849 (go_language::sniff_from_mangled_name): ...here.
4850 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4851 * language.c (language_sniff_from_mangled_name): Delete.
4852 (unknown_language_data): Delete la_sniff_from_mangled_name
4853 initializer.
4854 (auto_language_data): Likewise.
4855 * language.h (language_data): Delete la_sniff_from_mangled_name
4856 field.
4857 (language_defn::sniff_from_mangled_name): New function.
4858 (language_sniff_from_mangled_name): Delete declaration.
4859 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4860 field.
4861 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4862 implementation moves to...
4863 (objc_language::sniff_from_mangled_name): ...here.
4864 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4865 * opencl-lang.c (opencl_language_data): Likewise.
4866 * p-lang.c (pascal_language_data): Likewise.
4867 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4868 implementation moves to...
4869 (rust_language::sniff_from_mangled_name): ...here.
4870 (rust_language_data): Delete la_sniff_from_mangled_name
4871 initializer.
4872 * symtab.c (symbol_find_demangled_name): Call
4873 sniff_from_mangled_name member function.
4874
fb8006fd
AB
48752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4876
4877 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4878 initializer.
4879 * c-lang.c (c_language_data): Likewise.
4880 (cplus_language_data): Likewise.
4881 (cplus_language::search_name_hash): New member function.
4882 (asm_language_data): Delete la_search_name_hash initializer.
4883 (minimal_language_data): Likewise.
4884 * d-lang.c (d_language_data): Likewise.
4885 * dictionary.c (default_search_name_hash): Rename to...
4886 (language_defn::search_name_hash): ...this.
4887 * f-lang.c (f_language_data): Likewise.
4888 (f_language::search_name_hash): New member function.
4889 * go-lang.c (go_language_data): Delete la_search_name_hash
4890 initializer.
4891 * language.c (unknown_language_data): Likewise.
4892 (auto_language_data): Likewise.
4893 * language.h (struct language_data): Delete la_search_name_hash
4894 field.
4895 (language_defn::search_name_hash): Declare new member function.
4896 (default_search_name_hash): Delete declaration.
4897 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4898 initializer.
4899 * objc-lang.c (objc_language_data): Likewise.
4900 * opencl-lang.c (opencl_language_data): Likewise.
4901 * p-lang.c (pascal_language_data): Likewise.
4902 * rust-lang.c (rust_language_data): Likewise.
4903 * symtab.c (search_name_hash): Update call.
4904
8e25bafe
AB
49052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4908 initializer.
4909 * c-lang.c (class compile_instance): Declare.
4910 (c_language_data): Delete la_get_compile_instance initializer.
4911 (c_language::get_compile_instance): New member function.
4912 (cplus_language_data): Delete la_get_compile_instance initializer.
4913 (cplus_language::get_compile_instance): New member function.
4914 (asm_language_data): Delete la_get_compile_instance initializer.
4915 (minimal_language_data): Likewise.
4916 * c-lang.h (c_get_compile_context): Update comment.
4917 (cplus_get_compile_context): Update comment.
4918 * compile/compile.c (compile_to_object): Update calls, don't rely
4919 on function pointer being NULL.
4920 * d-lang.c (d_language_data): Delete la_get_compile_instance
4921 initializer.
4922 * f-lang.c (f_language_data): Likewise.
4923 * go-lang.c (go_language_data): Likewise.
4924 * language.c (unknown_language_data): Likewise.
4925 (auto_language_data): Likewise.
4926 * language.h (language_data): Delete la_get_compile_instance field.
4927 (language_defn::get_compile_instance): New member function.
4928 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4929 initializer.
4930 * objc-lang.c (objc_language_data): Likewise.
4931 * opencl-lang.c (opencl_language_data): Likewise.
4932 * p-lang.c (pascal_language_data): Likewise.
4933 * rust-lang.c (rust_language_data): Likewise.
4934
4009ee92
AB
49352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4936
4937 * ada-lang.c (ada_add_all_symbols): Update comment.
4938 (ada_iterate_over_symbols): Delete, move implementation to...
4939 (ada_language::iterate_over_symbols): ...here, a new member
4940 function, rewrite to use range based for loop.
4941 (ada_language_data): Delete la_iterate_over_symbols initializer.
4942 * c-lang.c (c_language_data): Likewise.
4943 (cplus_language_data): Likewise.
4944 (asm_language_data): Likewise.
4945 (minimal_language_data): Likewise.
4946 * d-lang.c (d_language_data): Likewise.
4947 * f-lang.c (f_language_data): Likewise.
4948 * go-lang.c (go_language_data): Likewise.
4949 * language.c (unknown_language_data): Likewise.
4950 (auto_language_data): Likewise.
4951 * language.h (language_data): Delete la_iterate_over_symbols field.
4952 (language_defn::iterate_over_symbols): New member function.
4953 (LA_ITERATE_OVER_SYMBOLS): Update.
4954 * linespec.c (iterate_over_all_matching_symtabs): Update.
4955 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4956 initializer.
4957 * objc-lang.c (objc_language_data): Likewise.
4958 * opencl-lang.c (opencl_language_data): Likewise.
4959 * p-lang.c (pascal_language_data): Likewise.
4960 * rust-lang.c (rust_language_data): Likewise.
4961
54f4ca46
AB
49622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * ada-lang.c (ada_language_data): Delete
4965 la_lookup_transparent_type initializer.
4966 * c-lang.c (c_language_data): Likewise.
4967 (cplus_language_data): Likewise.
4968 (cplus_language::lookup_transparent_type): New member function.
4969 (asm_language_data): Delete la_lookup_transparent_type
4970 initializer.
4971 (minimal_language_data): Likewise.
4972 * d-lang.c (d_language_data): Likewise.
4973 * f-lang.c (f_language_data): Likewise.
4974 * go-lang.c (go_language_data): Likewise.
4975 * language.c (unknown_language_data): Likewise.
4976 (auto_language_data): Likewise.
4977 * language.h (struct language_data): Delete
4978 la_lookup_transparent_type field.
4979 (language_defn::lookup_transparent_type): New member function.
4980 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4981 initializer.
4982 * objc-lang.c (objc_language_data): Likewise.
4983 * opencl-lang.c (opencl_language_data): Likewise.
4984 * p-lang.c (pascal_language_data): Likewise.
4985 * rust-lang.c (rust_language_data): Likewise.
4986 * symtab.c (symbol_matches_domain): Update call.
4987
1fb314aa
AB
49882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4989
4990 * ada-lang.c (ada_language_arch_info): Delete function, move
4991 implementation to...
4992 (ada_language::language_arch_info): ...here, a new member
4993 function.
4994 (ada_language_data): Delete la_language_arch_info.
4995 * c-lang.c (c_language_data): Likewise.
4996 (c_language::language_arch_info): New member function.
4997 (cplus_language_arch_info): Delete function, move
4998 implementation to...
4999 (cplus_language::language_arch_info): ...here, a new member
5000 function.
5001 (cplus_language_data): Delete la_language_arch_info.
5002 (asm_language_data): Likewise.
5003 (asm_language::language_arch_info): New member function.
5004 (minimal_language_data): Delete la_language_arch_info.
5005 (minimal_language::language_arch_info): New member function.
5006 * d-lang.c (d_language_arch_info): Delete function, move
5007 implementation to...
5008 (d_language::language_arch_info): ...here, a new member
5009 function.
5010 (d_language_data): Delete la_language_arch_info.
5011 * f-lang.c (f_language_arch_info): Delete function, move
5012 implementation to...
5013 (f_language::language_arch_info): ...here, a new member
5014 function.
5015 (f_language_data): Delete la_language_arch_info.
5016 * go-lang.c (go_language_arch_info): Delete function, move
5017 implementation to...
5018 (go_language::language_arch_info): ...here, a new member
5019 function.
5020 (go_language_data): Delete la_language_arch_info.
5021 * language.c (unknown_language_data): Likewise.
5022 (unknown_language::language_arch_info): New member function.
5023 (auto_language_data): Delete la_language_arch_info.
5024 (auto_language::language_arch_info): New member function.
5025 (language_gdbarch_post_init): Update call to
5026 la_language_arch_info.
5027 * language.h (language_data): Delete la_language_arch_info
5028 function pointer.
5029 (language_defn::language_arch_info): New function.
5030 * m2-lang.c (m2_language_arch_info): Delete function, move
5031 implementation to...
5032 (m2_language::language_arch_info): ...here, a new member
5033 function.
5034 (m2_language_data): Delete la_language_arch_info.
5035 * objc-lang.c (objc_language_arch_info): Delete function, move
5036 implementation to...
5037 (objc_language::language_arch_info): ...here, a new member
5038 function.
5039 (objc_language_data): Delete la_language_arch_info.
5040 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5041 implementation to...
5042 (opencl_language::language_arch_info): ...here, a new member
5043 function.
5044 (opencl_language_data): Delete la_language_arch_info.
5045 * p-lang.c (pascal_language_arch_info): Delete function, move
5046 implementation to...
5047 (pascal_language::language_arch_info): ...here, a new member
5048 function.
5049 (pascal_language_data): Delete la_language_arch_info.
5050 * rust-lang.c (rust_language_arch_info): Delete function, move
5051 implementation to...
5052 (rust_language::language_arch_info): ...here, a new member
5053 function.
5054 (rust_language_data): Delete la_language_arch_info.
5055
48448202
AB
50562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5057
5058 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5059 initializer.
5060 * c-lang.c (c_language_data): Likewise.
5061 (cplus_language_data): Likewise.
5062 (cplus_language::pass_by_reference_info): New method.
5063 (asm_language_data): Delete la_pass_by_reference initializer.
5064 (minimal_language_data): Likewise.
5065 * cp-abi.c (cp_pass_by_reference): Remove use of
5066 default_pass_by_reference.
5067 * d-lang.c (d_language_data): Likewise.
5068 * f-lang.c (f_language_data): Likewise.
5069 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5070 default_pass_by_reference.
5071 * go-lang.c (go_language_data): Likewise.
5072 * language.c (language_pass_by_reference): Update.
5073 (default_pass_by_reference): Delete.
5074 (unknown_language_data): Delete la_pass_by_reference
5075 initializer.
5076 (auto_language_data): Likewise.
5077 * language.h (struct language_data): Delete la_pass_by_reference
5078 field.
5079 (language_defn::pass_by_reference_info): New member function.
5080 (default_pass_by_reference): Delete declaration.
5081 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5082 initializer.
5083 * objc-lang.c (objc_language_data): Likewise.
5084 * opencl-lang.c (opencl_language_data): Likewise.
5085 * p-lang.c (pascal_language_data): Likewise.
5086 * rust-lang.c (rust_language_data): Likewise.
5087
15e5fd35
AB
50882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 * ada-lang.c (ada_read_var_value): Delete function, move
5091 implementation to...
5092 (ada_language::read_var_value): ...here.
5093 (ada_language_data): Delete la_read_var_value initializer.
5094 * c-lang.c (c_language_data): Likewise.
5095 (cplus_language_data): Likewise.
5096 (minimal_language_data): Likewise.
5097 * d-lang.c (d_language_data): Likewise.
5098 * f-lang.c (f_language_data): Likewise.
5099 * findvar.c (default_read_var_value): Rename to...
5100 (language_defn::read_var_value): ...this.
5101 * findvar.c (read_var_value): Update header comment, and change to
5102 call member function instead of function pointer.
5103 * go-lang.c (go_language_data): Likewise.
5104 * language.c (unknown_language_data): Delete la_read_var_value
5105 initializer.
5106 (auto_language_data): Likewise.
5107 * language.h (struct language_data): Delete la_read_var_value
5108 field.
5109 (language_defn::read_var_value): New member function.
5110 (default_read_var_value): Delete declaration.
5111 * m2-lang.c (m2_language_data): Delete la_read_var_value
5112 initializer.
5113 * objc-lang.c (objc_language_data): Likewise.
5114 * opencl-lang.c (opencl_language_data): Likewise.
5115 * p-lang.c (pascal_language_data): Likewise.
5116 * rust-lang.c (rust_language_data): Likewise.
5117 * value.h (default_read_var_value): Delete declaration.
5118
5bd40f2a
AB
51192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5120
5121 * ada-lang.c (ada_print_array_index): Delete function, move
5122 implementation to...
5123 (ada_language::print_array_index): ...here.
5124 (ada_language_data): Delete la_print_array_index initializer.
5125 * c-lang.c (c_language_data): Likewise.
5126 (cplus_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 * f-lang.c (f_language_data): Likewise.
5130 * go-lang.c (go_language_data): Likewise.
5131 * language.c (default_print_array_index): Delete function, move
5132 implementation to...
5133 (language_defn::print_array_index): ...here.
5134 (unknown_language_data): Delete la_print_array_index initializer.
5135 (auto_language_data): Likewise.
5136 * language.h (struct language_data): Delete la_print_array_index
5137 field.
5138 (language_defn::print_array_index): New member function.
5139 (LA_PRINT_ARRAY_INDEX): Update.
5140 (default_print_array_index): Delete declaration.
5141 * m2-lang.c (m2_language_data): Delete la_print_array_index
5142 initializer.
5143 * objc-lang.c (objc_language_data): Likewise.
5144 * opencl-lang.c (opencl_language_data): Likewise.
5145 * p-lang.c (pascal_language_data): Likewise.
5146 * rust-lang.c (rust_language_data): Likewise.
5147
0874fd07
AB
51482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * gdb/ada-lang.c (ada_language_defn): Convert to...
5151 (ada_language_data): ...this.
5152 (class ada_language): New class.
5153 (ada_language_defn): New static global.
5154 * gdb/c-lang.c (c_language_defn): Convert to...
5155 (c_language_data): ...this.
5156 (class c_language): New class.
5157 (c_language_defn): New static global.
5158 (cplus_language_defn): Convert to...
5159 (cplus_language_data): ...this.
5160 (class cplus_language): New class.
5161 (cplus_language_defn): New static global.
5162 (asm_language_defn): Convert to...
5163 (asm_language_data): ...this.
5164 (class asm_language): New class.
5165 (asm_language_defn): New static global.
5166 (minimal_language_defn): Convert to...
5167 (minimal_language_data): ...this.
5168 (class minimal_language): New class.
5169 (minimal_language_defn): New static global.
5170 * gdb/d-lang.c (d_language_defn): Convert to...
5171 (d_language_data): ...this.
5172 (class d_language): New class.
5173 (d_language_defn): New static global.
5174 * gdb/f-lang.c (f_language_defn): Convert to...
5175 (f_language_data): ...this.
5176 (class f_language): New class.
5177 (f_language_defn): New static global.
5178 * gdb/go-lang.c (go_language_defn): Convert to...
5179 (go_language_data): ...this.
5180 (class go_language): New class.
5181 (go_language_defn): New static global.
5182 * gdb/language.c (unknown_language_defn): Remove declaration.
5183 (current_language): Initialize to nullptr, real initialization is
5184 moved to _initialize_language.
5185 (languages): Delete global.
5186 (language_defn::languages): Define.
5187 (set_language_command): Use language_defn::languages.
5188 (set_language): Likewise.
5189 (range_error): Likewise.
5190 (language_enum): Likewise.
5191 (language_def): Likewise.
5192 (add_set_language_command): Use language_def::languages for the
5193 language list, and language_def to lookup language pointers.
5194 (skip_language_trampoline): Use language_defn::languages.
5195 (unknown_language_defn): Convert to...
5196 (unknown_language_data): ...this.
5197 (class unknown_language): New class.
5198 (unknown_language_defn): New static global.
5199 (auto_language_defn): Convert to...
5200 (auto_language_data): ...this.
5201 (class auto_language): New class.
5202 (auto_language_defn): New static global.
5203 (language_gdbarch_post_init): Use language_defn::languages.
5204 (_initialize_language): Initialize current_language.
5205 * gdb/language.h (struct language_defn): Rename to...
5206 (struct language_data): ...this.
5207 (struct language_defn): New.
5208 (auto_language_defn): Delete.
5209 (unknown_language_defn): Delete.
5210 (minimal_language_defn): Delete.
5211 (ada_language_defn): Delete.
5212 (asm_language_defn): Delete.
5213 (c_language_defn): Delete.
5214 (cplus_language_defn): Delete.
5215 (d_language_defn): Delete.
5216 (f_language_defn): Delete.
5217 (go_language_defn): Delete.
5218 (m2_language_defn): Delete.
5219 (objc_language_defn): Delete.
5220 (opencl_language_defn): Delete.
5221 (pascal_language_defn): Delete.
5222 (rust_language_defn): Delete.
5223 * gdb/m2-lang.c (m2_language_defn): Convert to...
5224 (m2_language_data): ...this.
5225 (class m2_language): New class.
5226 (m2_language_defn): New static global.
5227 * gdb/objc-lang.c (objc_language_defn): Convert to...
5228 (objc_language_data): ...this.
5229 (class objc_language): New class.
5230 (objc_language_defn): New static global.
5231 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5232 (opencl_language_data): ...this.
5233 (class opencl_language): New class.
5234 (opencl_language_defn): New static global.
5235 * gdb/p-lang.c (pascal_language_defn): Convert to...
5236 (pascal_language_data): ...this.
5237 (class pascal_language): New class.
5238 (pascal_language_defn): New static global.
5239 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5240 language pointer, update comment format.
5241 * gdb/rust-lang.c (rust_language_defn): Convert to...
5242 (rust_language_data): ...this.
5243 (class rust_language): New class.
5244 (rust_language_defn): New static global.
5245
1313c56e
AB
52462020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5249 member variable.
5250 <m_stmt_at_address>: New member variable.
5251 (lnp_state_machine::record_line): Don't record some lines, update
5252 tracking of is_stmt at the same address.
5253 (lnp_state_machine::lnp_state_machine): Initialise new member
5254 variables.
5255
b7ed9f3d
ST
52562020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5257
5258 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5259 "-include gnu-nat-mig.h".
5260 * gnu-nat-mig.h: New file.
5261 * gnu-nat.c: Include "gnu-nat-mig.h".
5262 (exc_server, msg_reply_server, notify_server,
5263 process_reply_server): Remove declarations.
5264
14a8ad62
ST
52652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5266
5267 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5268 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5269 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5270 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5271 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5272 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5273 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5274 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5275 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5276 to gnu_nat_target class.
5277 * gnu-nat.c: Likewise.
5278 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5279 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5280 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5281 object.
5282 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5283 instead of `gnu_target'.
5284
0af5e106
ST
52852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5286
5287 * i386-gnu-tdep.c: Include "gdbcore.h"
5288 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5289 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5290 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5291 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5292 i386_gnu_sigcontext_addr): New functions
5293 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5294 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5295 tdep.
5296
078f2fc9
ST
52972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5298
5299 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5300 before fork_inferior call. Avoid calling it if target_is_pushed returns
5301 true.
5302
53dff92c
ST
53032020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5304
5305 * gnu-nat.h (gnu_target): New variable declaration.
5306 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5307 gnu_target.
5308 * gnu-nat.c (gnu_target): New variable.
5309 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5310 add_thread_silent, and add_thread calls.
5311 (gnu_nat_target::create_inferior): Pass gnu_target to
5312 add_thread_silent, thread_change_ptid call.
5313 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5314 call.
5315
5a8b8627
ST
53162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5317
5318 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5319 (gnu_nat_target::find_memory_regions): Remove unused
5320 `old_address' variable.
5321
366f550a
ST
53222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5323
5324 * gnu-nat.c: Include "gdbarch.h".
5325
f14871bf
ST
53262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5327
5328 * reply_mig_hack.awk (Error return): Cast function through
5329 void *, to bypass compiler function call check.
5330
c6887cfb
ST
53312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5332
5333 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5334 $(srcdir)/reply_mig_hack.awk.
5335
6930bffe
ST
53362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5337
5338 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5339
112c22ed
JG
53402020-05-30 Jonny Grant <jg@jguk.org>
5341
5342 * configure.ac (ACX_BUGURL): change bug URL to https.
5343
f68f85b5
PA
53442020-05-30 Pedro Alves <palves@redhat.com>
5345
5346 * cp-support.c (replace_typedefs_template): New.
5347 (replace_typedefs_qualified_name): Handle
5348 DEMANGLE_COMPONENT_TEMPLATE.
5349
976ca316
SM
53502020-05-29 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5353 dwarf2/index-cache.h, dwarf2/index-write.c,
5354 dwarf2/index-write.h, dwarf2/line-header.c,
5355 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5356 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5357 variables and fields from `dwarf2_per_objfile` to just
5358 `per_objfile` throughout.
5359
989ade05
SM
53602020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5363 <push_dwarf_reg_entry_value>: Add comment.
5364
c47bae85
KB
53652020-05-28 Kevin Buettner <kevinb@redhat.com>
5366 Keith Seitz <keiths@redhat.com>
5367
5368 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5369 instead of PyEval_ReleaseLock.
5370 (class gdbpy_gil): Move to earlier in file.
5371 (finalize_python): Set gdb_python_initialized.
5372 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5373 when not initialized.
5374
44486dcf
SM
53752020-05-28 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5378 <push_dwarf_reg_entry_value>: Remove assert. Override
5379 per_objfile with caller_per_objfile.
5380
f030440d
TV
53812020-05-28 Tom de Vries <tdevries@suse.de>
5382
5383 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5384 PR gold/15646 workaround to symbol kind "type".
5385
f0fbb768
TT
53862020-05-27 Tom Tromey <tromey@adacore.com>
5387
5388 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5389
af0b2a3e
TT
53902020-05-27 Tom Tromey <tromey@adacore.com>
5391
5392 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5393 Use htab_find_with_hash.
5394 <add_abbrev>: Remove "abbrev_number" parameter.
5395 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5396 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5397 (hash_abbrev): Add comment.
5398 (abbrev_table::lookup_abbrev): Move to header file.
5399 (abbrev_table::read): Update.
5400
7d00ffec
TT
54012020-05-27 Tom Tromey <tromey@adacore.com>
5402
5403 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5404 method.
5405 <canonical_name>: New member.
5406 <raw_name>: Rename from "name".
5407 (partial_die_info): Initialize canonical_name.
5408 (scan_partial_symbols): Check raw_name.
5409 (partial_die_parent_scope, partial_die_full_name)
5410 (add_partial_symbol, add_partial_subprogram)
5411 (add_partial_enumeration, load_partial_dies): Use "name" method.
5412 (partial_die_info::name): New method.
5413 (partial_die_info::read, guess_partial_die_structure_name)
5414 (partial_die_info::fixup): Update.
5415
697bba18
TT
54162020-05-27 Tom Tromey <tromey@adacore.com>
5417
5418 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5419 <get_ref_die_offset>: Inline.
5420 <get_ref_die_offset_complaint>: New method.
5421 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5422 (attribute::get_ref_die_offset_complaint): Rename from
5423 get_ref_die_offset. Just issue complaint.
5424
c17ace43
HD
54252020-05-27 Hannes Domani <ssbssa@yahoo.de>
5426
5427 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5428
96445f0b
HD
54292020-05-27 Hannes Domani <ssbssa@yahoo.de>
5430
5431 * exec.c (exec_file_attach): Use errno value of first openp failure.
5432
ac637ec3
HD
54332020-05-27 Hannes Domani <ssbssa@yahoo.de>
5434
5435 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5436 Don't close thread handle.
5437
17ee85fc
TT
54382020-05-27 Tom Tromey <tom@tromey.com>
5439 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5442 shared_ptr.
5443 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5444 member.
5445 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5446 dwarf2_per_bfd_objfile_data_key>: New globals.
5447 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5448 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5449 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5450 shared.
5451 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5452 short-circuit when sharing.
5453 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5454 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5455
39b16f87
SM
54562020-05-27 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5459 to...
5460 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5461 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5462
fcf23d5b
SM
54632020-05-27 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5466 build_name_components, find_name_components_bounds>:
5467 Add per_objfile parameter.
5468 (struct mapped_index) <symbol_name_at>: Likewise.
5469 (struct mapped_debug_names): Remove constructor.
5470 <dwarf2_per_objfile>: Remove field.
5471 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5472 (mapped_index_base::find_name_components_bounds,
5473 mapped_index_base::build_name_components,
5474 dw2_expand_symtabs_matching_symbol): Likewise.
5475 (class mock_mapped_index) <symbol_name_at>: Likewise.
5476 (check_match): Likewise.
5477 (check_find_bounds_finds): Likewise.
5478 (test_mapped_index_find_name_component_bounds): Update.
5479 (CHECK_MATCH): Update.
5480 (dw2_expand_symtabs_matching): Update.
5481 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5482 per_objfile parameter.
5483 <find_vec_in_debug_names>: Likewise.
5484 <m_per_objfile>: New field.
5485 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5486 parameter.
5487 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5488 (dw2_debug_names_iterator::next): Update.
5489 (dw2_debug_names_lookup_symbol): Update.
5490 (dw2_debug_names_expand_symtabs_for_function): Update.
5491 (dw2_debug_names_map_matching_symbols): Update.
5492 (dw2_debug_names_expand_symtabs_matching): Update.
5493 (dwarf2_read_debug_names): Update.
5494
7188ed02
SM
54952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5496
5497 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5498 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5499 move to dwarf2_per_objfile.
5500 <read_in_chain>: Remove.
5501 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5502 remove_all_cus, age_comp_units>: New methods.
5503 <m_dwarf2_cus>: New member.
5504 (struct dwarf2_per_cu_data) <cu>: Remove.
5505 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5506 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5507 moved to methods of dwarf2_per_objfile.
5508 (dwarf2_clear_marks): Remove.
5509 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5510 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5511 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5512 (dwarf2_per_objfile::remove_all_cus): New.
5513 (class free_cached_comp_units) <~free_cached_comp_units>:
5514 Update.
5515 (load_cu): Update.
5516 (dw2_do_instantiate_symtab): Adjust.
5517 (fill_in_sig_entry_from_dwo_entry): Adjust.
5518 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5519 (cutu_reader::cutu_reader): Likewise.
5520 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5521 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5522 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5523 and dwarf2_per_objfile::age_comp_units.
5524 (load_partial_comp_unit): Update.
5525 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5526 (process_queue): Likewise.
5527 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5528 backlink.
5529 (dwarf2_read_addr_index): Likewise.
5530 (follow_die_offset): Likewise.
5531 (dwarf2_fetch_die_loc_sect_off): Likewise.
5532 (dwarf2_fetch_constant_bytes): Likewise.
5533 (dwarf2_fetch_die_type_sect_off): Likewise.
5534 (follow_die_sig_1): Likewise.
5535 (load_full_type_unit): Likewise.
5536 (read_signatured_type): Likewise.
5537 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5538 (dwarf2_cu::~dwarf2_cu): Remove.
5539 (dwarf2_per_objfile::get_cu): New.
5540 (dwarf2_per_objfile::set_cu): New.
5541 (age_cached_comp_units): Rename to...
5542 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5543 to std::unordered_map.
5544 (free_one_cached_comp_unit): Rename to...
5545 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5546 to std::unordered_map.
5547 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5548 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5549 a dwarf2_per_objfile in data.
5550 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5551 (dwarf2_clear_marks): Remove.
5552
2e671100
SM
55532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5556 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5557 (init_tu_and_read_dwo_dies): Likewise.
5558 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5559 (cutu_reader::cutu_reader): Likewise.
5560 (load_partial_comp_unit): Likewise.
5561 (process_psymtab_comp_unit): Update.
5562 (build_type_psymtabs_1): Update.
5563 (process_skeletonless_type_unit): Update.
5564 (load_full_comp_unit): Update.
5565 (find_partial_die): Update.
5566 (dwarf2_read_addr_index): Update.
5567 (read_signatured_type): Update.
5568
2e6a9f79
SM
55692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5570
5571 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5572 m_header_read_in>: New fields.
5573 <get_header>: New method.
5574 * dwarf2/read.c (per_cu_header_read_in): Remove.
5575 (dwarf2_per_cu_data::get_header): New.
5576 (dwarf2_per_cu_data::addr_size): Update.
5577 (dwarf2_per_cu_data::offset_size): Update.
5578 (dwarf2_per_cu_data::ref_addr_size): Update.
5579
1b555f17
SM
55802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5583 (dw2_do_instantiate_symtab): Update.
5584 (queue_and_load_all_dwo_tus): Change parameter from
5585 dwarf2_per_cu_data to dwarf2_cu.
5586 (dwarf2_fetch_die_loc_sect_off): Update.
5587 (dwarf2_fetch_constant_bytes): Update.
5588 (dwarf2_fetch_die_type_sect_off): Update.
5589
8fc0b21d
SM
55902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5591
5592 * dwarf2/read.c (process_full_comp_unit,
5593 process_full_type_unit): Remove per_cu, per_objfile paramters.
5594 Add dwarf2_cu parameter.
5595 (process_queue): Update.
5596
168c9250
SM
55972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5598
5599 * dwarf2/read.c (create_cu_from_index_list): Replace
5600 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5601 (create_cus_from_index_list): Likewise.
5602 (create_cus_from_index): Likewise.
5603 (create_signatured_type_table_from_index): Likewise.
5604 (create_cus_from_debug_names_list): Likewise.
5605 (create_cus_from_debug_names): Likewise.
5606 (dwarf2_read_gdb_index): Update.
5607 (dwarf2_read_debug_names): Update.
5608
e286671b
TT
56092020-05-27 Tom Tromey <tom@tromey.com>
5610 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * dwarf2/read.h (struct dwarf2_per_objfile)
5613 <get_type_for_signatured_type, set_type_for_signatured_type>:
5614 New methods.
5615 <m_type_map>: New member.
5616 (struct signatured_type) <type>: Remove.
5617 * dwarf2/read.c
5618 (dwarf2_per_objfile::get_type_for_signatured_type,
5619 dwarf2_per_objfile::set_type_for_signatured_type): New.
5620 (get_signatured_type): Use new methods.
5621
8adb8487
TT
56222020-05-27 Tom Tromey <tom@tromey.com>
5623 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5626 (struct dwarf2_per_objfile) <type_units>: New member.
5627 <get_type_unit_group_unshareable>: New method.
5628 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5629 num_symtabs, symtabs>: Remove; move to
5630 type_unit_group_unshareable.
5631 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5632 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5633 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5634
127bbf4b
SM
56352020-05-27 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * dwarf2/read.h (struct dwarf2_per_cu_data):
5638 <dwarf2_per_objfile>: Remove.
5639 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5640 dwarf2_per_objfile.
5641 (create_signatured_type_table_from_index): Likewise.
5642 (create_signatured_type_table_from_debug_names): Likewise.
5643 (create_debug_type_hash_table): Likewise.
5644 (fill_in_sig_entry_from_dwo_entry): Likewise.
5645 (create_type_unit_group): Likewise.
5646 (read_comp_units_from_section): Likewise.
5647 (create_cus_hash_table): Likewise.
5648
f6e649dd
SM
56492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5652 dwarf2_per_cu_data::dwarf2_per_objfile.
5653 (compute_compunit_symtab_includes): Likewise.
5654 (dwarf2_cu::start_symtab): Likewise.
5655
aa66c379
SM
56562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5659 parameter.
5660 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5661 (read_namespace_alias): Update.
5662 (lookup_die_type): Update.
5663 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5664 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5665 Update.
5666 (disassemble_dwarf_expression): Update.
5667
120ce1b5
SM
56682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * dwarf2/read.h (struct dwarf2_queue_item): Add
5671 dwarf2_per_objfile parameter, assign new parameter.
5672 <per_objfile>: New field.
5673 * dwarf2/read.c (free_one_cached_comp_unit): Add
5674 dwarf2_per_objfile parameter.
5675 (queue_comp_unit): Likewise.
5676 (dw2_do_instantiate_symtab): Update.
5677 (process_psymtab_comp_unit): Update.
5678 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5679 (process_imported_unit_die): Update.
5680 (queue_and_load_dwo_tu): Update.
5681 (follow_die_offset): Update.
5682 (follow_die_sig_1): Update.
5683
9f47c707
SM
56842020-05-27 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5687 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5688 (read_call_site_scope): Assign per_objfile.
5689 (dwarf2_per_cu_data::objfile): Remove.
5690 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5691 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5692 dwarf2_per_objfile parameter.
5693 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5694 dwarf2_per_objfile parameter.
5695 (dwarf_expr_reg_to_entry_parameter): Add output
5696 dwarf2_per_objfile parameter.
5697 (locexpr_get_frame_base): Update.
5698 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5699 <push_dwarf_reg_entry_value>: Update.
5700 <call_site_to_target_addr>: Update.
5701 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5702 parameter.
5703 (value_of_dwarf_reg_entry): Update.
5704 (rw_pieced_value): Update.
5705 (indirect_synthetic_pointer): Update.
5706 (dwarf2_evaluate_property): Update.
5707 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5708 parameter.
5709 (locexpr_read_variable): Update.
5710 (locexpr_get_symbol_read_needs): Update.
5711 (loclist_read_variable): Update.
5712
14095eb3
SM
57132020-05-27 Simon Marchi <simon.marchi@efficios.com>
5714
5715 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5716 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5717 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5718 parameter.
5719 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5720 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5721 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5722 parameter.
5723 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5724 sect_variable_value): Add dwarf2_per_objfile parameter.
5725 (class dwarf_evaluate_loc_desc) <dwarf_call,
5726 dwarf_variable_value>: Update.
5727 (fetch_const_value_from_synthetic_pointer): Add
5728 dwarf2_per_objfile parameter.
5729 (fetch_const_value_from_synthetic_pointer): Update.
5730 (coerced_pieced_ref): Update.
5731 (class symbol_needs_eval_context) <dwarf_call,
5732 dwarf_variable_value>: Update.
5733 (dwarf2_compile_expr_to_ax): Update.
5734
3c3cd3d4
SM
57352020-05-27 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5738 parameter.
5739 (dwarf2_evaluate_loc_desc_full): Update.
5740
82ca3f51
SM
57412020-05-27 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5744 parameter.
5745 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5746 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5747 dwarf2_per_objfile parameter.
5748 (decode_debug_loc_dwo_addresses): Likewise.
5749 (dwarf2_find_location_expression): Update.
5750 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5751 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5752 parameter.
5753 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5754 parameter.
5755 (locexpr_describe_location_1): Likewise.
5756 (locexpr_describe_location): Update.
5757
4b167ea1
SM
57582020-05-27 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5761 Remove.
5762 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5763 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5764 (dwarf2_compile_property_to_c): Update.
5765 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5766 use text offset from objfile.
5767 (locexpr_tracepoint_var_ref): Update.
5768 (locexpr_generate_c_location): Update.
5769 (loclist_describe_location): Update.
5770 (loclist_tracepoint_var_ref): Update.
5771 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5772 dwarf2_per_objfile parameter.
5773 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5774 use text offset from objfile.
5775 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5776
89b07335
SM
57772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * dwarf2/expr.h (struct dwarf_expr_context)
5780 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5781 <offset>: Remove.
5782 <per_objfile>: New member.
5783 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5784 dwarf2_per_objfile parameter. Don't set offset, set
5785 per_objfile.
5786 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5787 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5788 a dwarf2_per_objfile object instead of an offset.
5789 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5790 constructor.
5791 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5792 to dwarf2_expr_executor constructor. Don't set offset.
5793 (dwarf2_fetch_cfa_info): Update.
5794 (struct dwarf2_frame_cache) <text_offset>: Remove.
5795 <per_objfile>: New field.
5796 (dwarf2_frame_cache): Update.
5797 (dwarf2_frame_prev_register): Update.
5798 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5799 <dwarf_evaluate_loc_desc>: Add constructor.
5800 (dwarf2_evaluate_loc_desc_full): Update.
5801 (dwarf2_locexpr_baton_eval): Update.
5802 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5803 Add constructor.
5804 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5805
293e7e51
SM
58062020-05-27 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5809 addr_sized_int_type>: Move to dwarf2_cu.
5810 <int_type>: Move to dwarf2_per_objfile.
5811 (struct dwarf2_per_objfile) <int_type>: Move here.
5812 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5813 addr_sized_int_type>: Move here.
5814 (read_func_scope): Update.
5815 (read_array_type): Update.
5816 (read_tag_string_type): Update.
5817 (attr_to_dynamic_prop): Update.
5818 (dwarf2_per_cu_data::int_type): Rename to...
5819 (dwarf2_per_objfile::int_type): ... this.
5820 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5821 (dwarf2_cu::addr_sized_int_type): ... this.
5822 (read_subrange_type): Update.
5823 (dwarf2_per_cu_data::addr_type): Rename to...
5824 (dwarf2_cu::addr_type): ... this.
5825 (set_die_type): Update.
5826
64874a40
SM
58272020-05-27 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5830 data through per_cu->cu.
5831
4ab09049
SM
58322020-05-27 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5835 dwarf2_per_cu_data parameter fo dwarf2_cu.
5836 (lookup_dwo_type_unit): Likewise.
5837 (read_cutu_die_from_dwo): Likewise.
5838 (lookup_dwo_unit): Likewise.
5839 (open_and_init_dwo_file): Likewise.
5840 (lookup_dwo_cutu): Likewise.
5841 (lookup_dwo_comp_unit): Likewise.
5842 (lookup_dwo_type_unit): Likewise.
5843 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5844 (cutu_reader::cutu_reader): Update.
5845
47b14e86
SM
58462020-05-27 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5849 parameter.
5850 (process_full_type_unit): Likewise.
5851 (process_queue): Update.
5852
43182c09
SM
58532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * dwarf2/read.c (recursively_compute_inclusions): Add
5856 dwarf2_per_objfile parameter.
5857 (compute_compunit_symtab_includes): Likewise.
5858 (process_cu_includes): Update.
5859
7aa104c4
SM
58602020-05-27 Simon Marchi <simon.marchi@efficios.com>
5861
5862 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5863 parameter.
5864 (create_type_unit_group): Update.
5865 (process_psymtab_comp_unit_reader): Update.
5866 (build_type_psymtabs_reader): Update.
5867
e3beb21d
SM
58682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5869
5870 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5871 object through m_this_cu->cu.
5872
d460f660
SM
58732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5876 the info parameter.
5877 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5878
ab432490
SM
58792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5882 per_objfile parameter.
5883 (load_full_type_unit): Add per_objfile parameter.
5884 (read_signatured_type): Likewise.
5885 (load_full_comp_unit): Likewise.
5886 (load_cu): Likewise.
5887 (dw2_do_instantiate_symtab): Likewise.
5888 (dw2_get_file_names): Likewise.
5889 (dw2_map_symtabs_matching_filename): Update.
5890 (dw_expand_symtabs_matching_file_matcher): Update.
5891 (dw2_map_symbol_filenames): Update.
5892 (process_psymtab_comp_unit): Add per_objfile parameter.
5893 (build_type_psymtabs_1): Update.
5894 (process_skeletonless_type_unit): Update.
5895 (dwarf2_build_psymtabs_hard): Update.
5896 (load_partial_comp_unit): Add per_objfile parameter.
5897 (scan_partial_symbols): Update.
5898 (load_full_comp_unit): Add per_objfile parameter.
5899 (process_imported_unit_die): Update.
5900 (create_cus_hash_table): Update.
5901 (find_partial_die): Update.
5902 (dwarf2_read_addr_index): Update.
5903 (follow_die_offset): Update.
5904 (dwarf2_fetch_die_loc_sect_off): Update.
5905 (dwarf2_fetch_constant_bytes): Update.
5906 (dwarf2_fetch_die_type_sect_off): Update.
5907 (follow_die_sig_1): Update.
5908 (load_full_type_unit): Add per_objfile parameter.
5909 (read_signatured_type): Likewise.
5910
313bad1b
SM
59112020-05-27 Simon Marchi <simon.marchi@efficios.com>
5912
5913 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5914 of objfile_name.
5915
c3699833
SM
59162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5919 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5920 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5921 field.
5922 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5923 (create_cus_from_index): Update.
5924 (dwarf2_read_gdb_index): Update.
5925 (create_cus_from_debug_names): Update.
5926 (dwarf2_read_debug_names): Update.
5927 (get_abbrev_section_for_cu): Update.
5928 (create_all_comp_units): Update.
5929 (read_attribute_value): Update.
5930 (get_debug_line_section): Update.
5931 * dwarf2/index-cache.c (index_cache::store): Update.
5932 * dwarf2/index-write.c (save_gdb_index_command): Update.
5933 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5934
1859c670
SM
59352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5938 member.
5939 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5940 dwarf2_per_cu_data::per_bfd.
5941 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5942 (create_type_unit_group): Likewise.
5943 (queue_comp_unit): Remove reference to
5944 per_cu->dwarf2_per_objfile.
5945 (maybe_queue_comp_unit): Likewise.
5946 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5947 (create_cus_hash_table): Assign new field.
5948
5e22e966
SM
59492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * dwarf2/read.c: Replace
5952 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5953 dwarf2_cu->per_objfile throughout.
5954
97a1449a
SM
59552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5956
5957 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5958 parameter, don't use per_cu->dwarf2_per_objfile.
5959 (dw2_instantiate_symtab): Likewise.
5960 (dw2_find_last_source_symtab): Update.
5961 (dw2_map_expand_apply): Update.
5962 (dw2_lookup_symbol): Update.
5963 (dw2_expand_symtabs_for_function): Update.
5964 (dw2_expand_all_symtabs): Update.
5965 (dw2_expand_symtabs_with_fullname): Update.
5966 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5967 don't use per_cu->dwarf2_per_objfile.
5968 (dw2_expand_marked_cus): Update.
5969 (dw2_find_pc_sect_compunit_symtab): Update.
5970 (dw2_debug_names_lookup_symbol): Update.
5971 (dw2_debug_names_expand_symtabs_for_function): Update.
5972 (dw2_debug_names_map_matching_symbols): Update.
5973 (dwarf2_psymtab::expand_psymtab): Update.
5974
9e021579
SM
59752020-05-27 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5978 <per_objfile>: New member.
5979 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5980 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5981 call to dwarf2_cu.
5982 (cutu_reader::cutu_reader): Update.
5983 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5984
ae090bdb
SM
59852020-05-27 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5988 struct dwarf2_per_objfile.
5989 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5990 dwarf2_per_bfd.
5991 * dwarf2/read.c (set_die_type): Update.
5992 (get_die_type_at_offset): Update.
5993
af758d11
SM
59942020-05-27 Tom Tromey <tom@tromey.com>
5995 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5998 method.
5999 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6000 get_symtab, set_symtab>: New methods.
6001 <m_symtabs>: New field.
6002 (struct dwarf2_psymtab): Derive from partial_symtab.
6003 <readin_p, get_compunit_symtab>: Declare methods.
6004 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6005 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6006 New methods.
6007 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6008 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6009 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6010 (dw2_symtab_iter_next, dw2_print_stats)
6011 (dw2_expand_symtabs_with_fullname)
6012 (dw2_expand_symtabs_matching_one)
6013 (dw_expand_symtabs_matching_file_matcher)
6014 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6015 (dw2_debug_names_iterator::next)
6016 (dw2_debug_names_map_matching_symbols)
6017 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6018 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6019 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6020 New methods.
6021 (get_compunit_symtab, process_full_comp_unit)
6022 (process_full_type_unit): Update.
6023 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6024
5989a64e
SM
60252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6026
6027 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6028 then introduce a new dwarf2_per_objfile type.
6029 <read_line_string>: Move to the new dwarf2_per_objfile type.
6030 <objfile>: Likewise.
6031 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6032 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6033 dwarf2_per_objfile->per_bfd.
6034 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6035 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6036 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6037 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6038 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6039 (dwarf2_per_objfile::locate_sections): Rename to...
6040 (dwarf2_per_bfd::locate_sections): ... this.
6041 (dwarf2_per_objfile::get_cutu): Rename to...
6042 (dwarf2_per_bfd::get_cutu): ... this.
6043 (dwarf2_per_objfile::get_cu): Rename to...
6044 (dwarf2_per_bfd::get_cu): ... this.
6045 (dwarf2_per_objfile::get_tu): Rename to...
6046 (dwarf2_per_bfd::get_tu): ... this.
6047 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6048 (dwarf2_per_bfd::allocate_per_cu): ... this.
6049 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6050 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6051 (get_gdb_index_contents_ftype): Change parameter from
6052 dwarf2_per_objfile to dwarf2_per_bfd.
6053 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6054 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6055
a50264ba
TT
60562020-05-27 Tom Tromey <tom@tromey.com>
6057 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6060 (allocate_piece_closure): Set "per_objfile" member.
6061 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6062 (locexpr_describe_location, loclist_describe_location): Use new
6063 member.
6064 * dwarf2/read.c (read_call_site_scope)
6065 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6066 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6067 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6068 handle_data_member_location): Set per_objfile member.
6069 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6070 member.
6071 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6072
d3473f0c
TT
60732020-05-27 Tom Tromey <tom@tromey.com>
6074
6075 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6076 allocate_signatured_type>: Declare new methods.
6077 <m_num_psymtabs>: New member.
6078 (struct dwarf2_per_cu_data) <index>: New member.
6079 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6080 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6081 (create_cu_from_index_list): Use allocate_per_cu.
6082 (create_signatured_type_table_from_index)
6083 (create_signatured_type_table_from_debug_names)
6084 (create_debug_type_hash_table, add_type_unit)
6085 (read_comp_units_from_section): Use allocate_signatured_type.
6086
5717c425
TT
60872020-05-27 Tom Tromey <tom@tromey.com>
6088
6089 * psymtab.c (partial_map_expand_apply)
6090 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6091 (psym_lookup_global_symbol_language)
6092 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6093 (psym_print_stats, psym_expand_symtabs_for_function)
6094 (psym_map_symbol_filenames, psym_map_matching_symbols)
6095 (psym_expand_symtabs_matching)
6096 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6097 (maintenance_check_psymtabs): Update.
6098 * psympriv.h (struct partial_symtab) <readin_p,
6099 get_compunit_symtab>: Add objfile parameter.
6100 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6101 Likewise.
6102 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6103 get_compunit_symtab>: Likewise.
6104 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6105
45940949
TT
61062020-05-27 Tom Tromey <tom@tromey.com>
6107
6108 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6109 member.
6110 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6111 (create_cu_from_index_list)
6112 (create_signatured_type_table_from_index)
6113 (create_signatured_type_table_from_debug_names)
6114 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6115 (dwarf2_create_include_psymtab)
6116 (create_debug_type_hash_table, add_type_unit)
6117 (create_type_unit_group, read_comp_units_from_section)
6118 (dwarf2_compute_name, create_cus_hash_table)
6119 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6120 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6121 obstack.
6122 (dw2_get_real_path): Likewise. Change argument to
6123 dwarf2_per_objfile.
6124
f8c6d152
LM
61252020-05-27 Luis Machado <luis.machado@linaro.org>
6126
6127 PR tdep/26000
6128 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6129 for ldrd (immediate).
6130
e98d2e6d
PW
61312020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * command.h: Add comment giving the name of class_tui.
6134 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6135 create the fake command for the help for class_tui.
6136
53a47a3e
TT
61372020-05-26 Tom Tromey <tromey@adacore.com>
6138
6139 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6140 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6141 (val_atr): New function.
6142 (value_val_atr): Use it.
6143 * ada-valprint.c (print_optional_low_bound): Change low bound
6144 handling for enums.
6145 (val_print_packed_array_elements): Don't call discrete_position.
6146 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6147 discrete_position for enum types.
6148 * language.c (default_print_array_index): Change type.
6149 * language.h (struct language_defn) <la_print_array_index>: Add
6150 index_type parameter, change type of index_value.
6151 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6152 (default_print_array_index): Update.
6153 * valprint.c (maybe_print_array_index): Don't call
6154 value_from_longest. Update.
6155 (value_print_array_elements): Don't call discrete_position.
6156
0bc2354b
TT
61572020-05-26 Tom Tromey <tromey@adacore.com>
6158
6159 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6160 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6161
1218a4bf
CDA
61622020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6163
6164 PR gdb/13519
6165 * avr-tdep.c (avr_integer_to_address): Return data or code
6166 address accordingly to the second 'type' argument of the
6167 function.
6168
92651b1d
MW
61692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6170
6171 * infcmd.c, inferior.h: (construct_inferior_arguments):
6172 Moved function from here to gdbsupport/common-inferior.{h,cc}
6173
0a4f5f8c
TT
61742020-05-23 Tom Tromey <tom@tromey.com>
6175
6176 Revert commit eca1f90c:
6177 * NEWS: Remove entry for completion styling.
6178 * completer.c (_rl_completion_prefix_display_length): Move
6179 declaration later.
6180 (gdb_fnprint): Revert.
6181 (gdb_display_match_list_1): Likewise.
6182 * cli/cli-style.c (completion_prefix_style)
6183 (completion_difference_style, completion_suffix_style): Remove.
6184 (_initialize_cli_style): Revert.
6185 * cli/cli-style.h (completion_prefix_style)
6186 (completion_difference_style, completion_suffix_style): Don't
6187 declare.
6188
e08bd6c5
PA
61892020-05-24 Pedro Alves <palves@redhat.com>
6190
6191 * symtab.c (completion_list_add_name): Return boolean indication
6192 of whether the symbol matched.
6193 (completion_list_add_symbol): Don't try to remove C++ aliases if
6194 the symbol didn't match in the first place.
6195 * symtab.h (completion_list_add_name): Return bool.
6196
ceacbf6e
SM
61972020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6200 type::field.
6201
26f16254
JB
62022020-05-23 Joel Brobecker <brobecker@adacore.com>
6203
6204 GDB 9.2 released.
6205
eca1f90c
TT
62062020-05-23 Tom Tromey <tom@tromey.com>
6207
6208 * NEWS: Add entry for completion styling.
6209 * completer.c (_rl_completion_prefix_display_length): Move
6210 declaration earlier.
6211 (gdb_fnprint): Use completion_style.
6212 (gdb_display_match_list_1): Likewise.
6213 * cli/cli-style.c (completion_prefix_style)
6214 (completion_difference_style, completion_suffix_style): New
6215 globals.
6216 (_initialize_cli_style): Register new globals.
6217 * cli/cli-style.h (completion_prefix_style)
6218 (completion_difference_style, completion_suffix_style): Declare.
6219
51e2cfa2
PA
62202020-05-23 Pedro Alves <palves@redhat.com>
6221
6222 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6223 (parse_escape): Use ISDIGIT instead of isdigit.
6224 (puts_debug): Use gdb_isprint instead of isprint.
6225 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6226 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6227 ISSPACE instead of isspace.
6228 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6229 instead of isspace.
6230 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6231 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6232 instead of isxdigit and ISDIGIT instead of isdigit.
6233
80fc5e77
SM
62342020-05-22 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * gdbtypes.h (struct type) <field>: New method.
6237 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6238 or type::field.
6239
3cabb6b0
SM
62402020-05-22 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6243 (TYPE_FIELDS): Use type::fields. Change all call sites that
6244 modify the propery to use type::set_fields instead.
6245
1f704f76
SM
62462020-05-22 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6249 type::num_fields instead.
6250
5e33d5f4
SM
62512020-05-22 Simon Marchi <simon.marchi@efficios.com>
6252
6253 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6254 methods.
6255 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6256 that modify the number of fields to use type::set_num_fields
6257 instead.
6258
9392ebb3
TT
62592020-05-22 Tom Tromey <tromey@adacore.com>
6260
6261 * compile/compile-object-load.h (munmap_list_free): Don't
6262 declare.
6263
7c13f4e8
AB
62642020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6265
6266 * annotate.c (annotate_source_line): Update return type, add call
6267 to update current symtab and line.
6268 * annotate.h (annotate_source_line): Update return type, and
6269 extend header comment.
6270 * source.c (info_line_command): Check annotation_level before
6271 calling annotate_source_line.
6272 * stack.c (print_frame_info): If calling annotate_source_line
6273 returns true, then don't print any other source line information.
6274
aa370940
SM
62752020-05-21 Simon Marchi <simon.marchi@efficios.com>
6276
6277 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6278
84d53fa9
SM
62792020-05-21 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * coffread.c (patch_type): Remove NULL check before xfree.
6282 * corefile.c (set_gnutarget): Likewise.
6283 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6284 * exec.c (build_section_table): Likewise.
6285 * remote.c (remote_target::pass_signals): Likewise.
6286 * utils.c (n_spaces): Likewise.
6287 * cli/cli-script.c (document_command): Likewise.
6288 * i386-windows-tdep.c (core_process_module_section): Likewise.
6289 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6290
9d428aae
SM
62912020-05-20 Simon Marchi <simon.marchi@efficios.com>
6292
6293 * symfile.c (reread_symbols): Clear objfile's section_offsets
6294 vector and section indices, re-compute them by calling
6295 sym_offsets.
6296
250106a7
TT
62972020-05-20 Tom Tromey <tromey@adacore.com>
6298
6299 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6300 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6301
9a0bacfb
TV
63022020-05-20 Tom de Vries <tdevries@suse.de>
6303
6304 PR symtab/25833
6305 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6306
7b958a48
AM
63072020-05-20 Alan Modra <amodra@gmail.com>
6308
6309 PR 25993
6310 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6311 bfd_set_filename.
6312 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6313 passed to bfd_set_filename.
6314 * symfile-mem.c (add_vsyscall_page): Likewise for string
6315 passed to symbol_file_add_from_memory.
6316 (symbol_file_add_from_memory): Make name param a const char* and
6317 don't strdup.
6318
c7e97679
AM
63192020-05-20 Alan Modra <amodra@gmail.com>
6320
6321 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6322 rather than accessing bfd->filename directly.
6323 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6324 and use bfd_section_name.
6325 * dwarf2/frame.c (decode_frame_entry): Likewise.
6326 * exec.c (exec_set_section_address): Likewise.
6327 * solib-aix.c (solib_aix_bfd_open): Likewise.
6328 * stap-probe.c (get_stap_base_address): Likewise.
6329 * symfile.c (reread_symbols): Likewise.
6330
563c591b
TT
63312020-05-19 Tom Tromey <tromey@adacore.com>
6332
6333 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6334
f408d82c
SM
63352020-05-19 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6338
98c59b52
PA
63392020-05-19 Pedro Alves <palves@redhat.com>
6340
6341 * NEWS (set exec-file-mismatch): Adjust entry.
6342 * exec.c: Include "build-id.h".
6343 (validate_exec_file): Try to match build IDs instead of filenames.
6344 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6345 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6346 and pass down 'warn_if_slow'.
6347 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6348 gdb_bfd_open_closure to pass it down.
6349 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6350
4111f652
PA
63512020-05-19 Pedro Alves <palves@redhat.com>
6352
6353 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6354 * target.c (target_fileio_open_1): Rename to target_fileio_open
6355 and make extern. Use bool.
6356 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6357 (target_fileio_read_alloc_1): Adjust.
6358 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6359 (target_fileio_open_warn_if_slow): Delete declaration.
6360
ad80db5b
PA
63612020-05-19 Pedro Alves <palves@redhat.com>
6362
6363 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6364 Adjust all callers.
6365
1d6ce4d3
YS
63662020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6367
6368 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6369 whether disp is negative.
6370
9005fbbb
SM
63712020-05-19 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * symfile.h (struct symfile_segment_data)
6374 <~symfile_segment_data>: Remove.
6375 <segment_info>: Change to std::vector.
6376 * symfile.c (default_symfile_segments): Update.
6377 * elfread.c (elf_symfile_segments): Update.
6378
68b888ff
SM
63792020-05-19 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6382 <segments>: New.
6383 <segment_bases, segment_sizes>: Remove.
6384 * symfile.c (default_symfile_segments): Update.
6385 * elfread.c (elf_symfile_segments): Update.
6386 * remote.c (remote_target::get_offsets): Update.
6387 * solib-target.c (solib_target_relocate_section_addresses):
6388 Update.
6389
62982abd
SM
63902020-05-19 Simon Marchi <simon.marchi@efficios.com>
6391
6392 * symfile.h (struct symfile_segment_data): Initialize fields.
6393 <~symfile_segment_data>: Add.
6394 (symfile_segment_data_up): New.
6395 (struct sym_fns) <sym_segments>: Return a
6396 symfile_segment_data_up.
6397 (default_symfile_segments): Return a symfile_segment_data_up.
6398 (free_symfile_segment_data): Remove.
6399 (get_symfile_segment_data): Return a symfile_segment_data_up.
6400 * symfile.c (default_symfile_segments): Likewise.
6401 (get_symfile_segment_data): Likewise.
6402 (free_symfile_segment_data): Remove.
6403 (symfile_find_segment_sections): Update.
6404 * elfread.c (elf_symfile_segments): Return a
6405 symfile_segment_data_up.
6406 * remote.c (remote_target::get_offsets): Update.
6407 * solib-target.c (solib_target_relocate_section_addresses):
6408 Update.
6409 * symfile-debug.c (debug_sym_segments): Return a
6410 symfile_segment_data_up.
6411
7f204339
RO
64122020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6413
e52a0f1b
RO
6414 PR build/25981
6415 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6416 Hardcode register numbers.
6417
7f204339
RO
6418 PR build/25981
6419 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6420 procfs_find_LDT_entry): Remove.
6421 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6422 procfs_find_LDT_entry): Remove.
6423 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6424 Remove.
6425
7f32a4d5
PA
64262020-05-17 Pedro Alves <palves@redhat.com>
6427 Andrew Burgess <andrew.burgess@embecosm.com>
6428 Keno Fischer <keno@juliacomputing.com>
6429
6430 PR gdb/25741
6431 * breakpoint.c (build_target_condition_list): Update comments.
6432 (build_target_command_list): Update comments and skip matching
6433 locations.
6434 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6435 a separate function. Simplify "set breakpoint auto-hw off"
6436 handling.
6437 (insert_breakpoints): Update comment.
6438 (tracepoint_locations_match): New parameter. For breakpoints,
6439 compare location types too, if the caller wants to.
6440 (handle_automatic_hardware_breakpoints): New functions.
6441 (bp_location_is_less_than): Also sort by location type and
6442 hardware breakpoint length.
6443 (update_global_location_list): Handle "set breakpoint auto-hw on"
6444 here.
6445 (update_breakpoint_locations): Ask breakpoint_locations_match to
6446 ignore location types.
6447
7d93a1e0
SM
64482020-05-16 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6451 type::name instead.
6452
d0e39ea2
SM
64532020-05-16 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * gdbtypes.h (struct type) <name, set_name>: New methods.
6456 (TYPE_CODE): Use type::name. Change all call sites used to set
6457 the name to use type::set_name instead.
6458
2dab0c7b
TT
64592020-05-16 Tom Tromey <tom@tromey.com>
6460
6461 * top.c (quit_force): Update.
6462 * infrun.c (handle_no_resumed): Update.
6463 * top.h (all_uis): New function.
6464 (ALL_UIS): Remove.
6465
59f7bd8d
SM
64662020-05-16 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6469
9bf058f0
PA
64702020-05-16 Pedro Alves <palves@redhat.com>
6471
6472 * ia64-linux-nat.c
6473 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6474 Declare method.
6475 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6476
8f86ae1a
SM
64772020-05-15 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6480 (sparc64_adi_info): Likewise.
6481
d6bc0792
TT
64822020-05-15 Tom Tromey <tom@tromey.com>
6483
6484 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6485 block_objfile.
6486 (lookup_objfile_from_block): Remove.
6487 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6488 (lookup_global_symbol): Use block_objfile.
6489 * symtab.h (lookup_objfile_from_block): Don't declare.
6490 * printcmd.c (clear_dangling_display_expressions): Use
6491 block_objfile.
6492 * parse.c (operator_check_standard): Use block_objfile.
6493
8c14c3a3
TT
64942020-05-15 Tom Tromey <tom@tromey.com>
6495
6496 * language.c (language_alloc_type_symbol): Set
6497 SYMBOL_SECTION.
6498 * symtab.c (initialize_objfile_symbol): Remove.
6499 (allocate_symbol): Remove.
6500 (allocate_template_symbol): Remove.
6501 * dwarf2/read.c (fixup_go_packaging): Use "new".
6502 (new_symbol): Use "new".
6503 (read_variable): Don't call initialize_objfile_symbol. Use
6504 "new".
6505 (read_func_scope): Use "new".
6506 * xcoffread.c (process_xcoff_symbol): Don't call
6507 initialize_objfile_symbol.
6508 (SYMBOL_DUP): Remove.
6509 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6510 "new".
6511 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6512 (allocate_template_symbol): Don't declare.
6513 (struct symbol): Add copy constructor. Change defaults.
6514 * jit.c (finalize_symtab): Use "new".
6515 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6516 Use "new".
6517 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6518 (common_block_end): Use "new".
6519 * mdebugread.c (parse_symbol): Use "new".
6520 (new_symbol): Likewise.
6521
5b4a1a8d
PW
65222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523
6524 * NEWS: Mention changes to help and apropos.
6525
57b4f16e
PW
65262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6527
6528 * command.h (enum command_class): Improve comments, document
6529 that class_alias is for user-defined aliases, give the class
6530 name for each class, remove unused class_xdb.
6531 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6532 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6533 by a precise class.
6534 * infcmd.c (_initialize_infcmd): Likewise.
6535 * reverse.c (_initialize_reverse): Likewise.
6536 * stack.c (_initialize_stack): Likewise.
6537 * symfile.c (_initialize_symfile): Likewise.
6538 * tracepoint.c (_initialize_tracepoint): Likewise.
6539
7c05caf7
PW
65402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6541
6542 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6543 when their aliased command is traversed.
6544 (help_cmd): Add fput_command_names_styled call to
6545 output command name and aliases when command has an alias.
6546
3b3aaacb
PW
65472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6548
6549 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6550 * cli/cli-decode.c (help_cmd_list): Declare as static,
6551 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6552 a command together with the command.
6553 (fput_command_name_styled, fput_command_names_styled): New functions.
6554 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6555 fput_command_name_styled.
6556 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6557 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6558
7aa1b46f
PW
65592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6560
6561 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6562 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6563 * command.h (cmd_show_list): Likewise.
6564 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6565 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6566
89bcba74
PW
65672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6568
6569 * unittests/command-def-selftests.c (traverse_command_structure):
6570 Verify all commands of a list have the same prefix command and
6571 that only the top cmdlist commands have a null prefix.
6572
3f4d92eb
PW
65732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6574
6575 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6576 as prefix, not one of its aliases.
6577 (set_cmd_prefix): Remove.
6578 (do_add_cmd): Centralize the setting of the prefix of a command, when
6579 command is defined after its full chain of prefix commands.
6580 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6581 (add_setshow_cmd_full): Likewise.
6582 (update_prefix_field_of_prefixed_commands): New function.
6583 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6584 update_prefix_field_of_prefixed_commands.
6585 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6586 addresses of remote_set_cmdlist and remote_show_cmdlist given
6587 as argument, not the address of an argument.
6588 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6589 * gdb/remote.c (_initialize_remote): Likewise.
6590
0605465f
PW
65912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * cli/cli-cmds.c (alias_command): Check for an existing alias
6594 using lookup_cmd_composition, as valid_command_p is too strict
6595 and forbids aliases that are the prefix of an existing alias
6596 or command.
6597 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6598 command is properly recognised as a valid command.
6599
58e6ac70
PW
66002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6601
6602 * unittests/help-doc-selftests.c: Rename to
6603 unittests/command-def-selftests.c
6604 * unittests/command-def-selftests.c (help_doc_tests): Update some
6605 comments.
6606 (command_structure_tests, traverse_command_structure): New namespace
6607 and function.
6608 (command_structure_invariants_tests): New function.
6609 (_initialize_command_def_selftests) Renamed from
6610 _initialize_help_doc_selftests, register command_structure_invariants
6611 selftest.
6612
a7b9ceb8
PW
66132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6614
6615 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6616 an alias of 'show'.
6617
b2188a06
JB
66182020-05-15 Joel Brobecker <brobecker@adacore.com>
6619
6620 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6621 ada_is_fixed_point_type. Update all callers.
6622 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6623 all callers.
6624 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6625 Update all callers.
6626 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6627 print_fixed_point_type. Update all callers.
6628 * ada-valprint.c (ada_value_print_num): Replace call to
6629 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6630
a51951c2
KB
66312020-05-14 Kevin Buettner <kevinb@redhat.com>
6632
6633 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6634 processors.
6635 (cpu_supports_bts): Add CV_AMD case.
6636
29d6859f
LM
66372020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6638 Simon Marchi <simon.marchi@efficios.com>
6639
6640 * infrun.c (stop_all_threads): Collect multiple wait events at
6641 each pass.
6642
78134374
SM
66432020-05-14 Simon Marchi <simon.marchi@efficios.com>
6644
6645 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6646 type::code instead.
6647
67607e24
SM
66482020-05-14 Simon Marchi <simon.marchi@efficios.com>
6649
6650 * gdbtypes.h (struct type) <code, set_code>: New methods.
6651 (TYPE_CODE): Use type::code. Change all call sites used to set
6652 the code to use type::set_code instead.
6653
a05575d3
TBA
66542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6655 Tom de Vries <tdevries@suse.de>
6656 Pedro Alves <palves@redhat.com>
6657
6658 PR threads/25478
6659 * infrun.c (stop_all_threads): Do NOT ignore
6660 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6661 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6662 received.
6663 (handle_no_resumed): Remove code handling a live inferior with no
6664 threads.
6665 * remote.c (has_single_non_exited_thread): New.
6666 (remote_target::update_thread_list): Do not delete a thread if is
6667 the last thread of the process.
6668 * thread.c (thread_select): Call delete_exited_threads instead of
6669 prune_threads.
6670
6ad82919
TBA
66712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6672
6673 * infrun.c (stop_all_threads): Enable/disable thread events of all
6674 targets. Move a debug message denoting the end of the function
6675 into the SCOPED_EXIT block.
6676
d890404b
TBA
66772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6678
6679 * process-stratum-target.h: Include <set>.
6680 (all_non_exited_process_targets, switch_to_target_no_thread): New
6681 function declarations.
6682 * process-stratum-target.c (all_non_exited_process_targets)
6683 (switch_to_target_no_thread): New function implementations.
6684
293b3ebc
TBA
66852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6686
6687 * infrun.c (handle_inferior_event): Extract out a piece of code
6688 into...
6689 (mark_non_executing_threads): ...this new function.
6690
7ca9b62a
TBA
66912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6692
6693 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6694 use.
6695
fc75c28b
TBA
66962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6697
6698 * regcache.c (regcache_read_pc_protected): New function
6699 implementation that returns 0 if the PC cannot read via
6700 'regcache_read_pc'.
6701 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6702 instead of 'regcache_read_pc'.
6703 (keep_going_pass_signal): Ditto.
6704
a89febbd
TT
67052020-05-13 Tom Tromey <tromey@adacore.com>
6706
6707 * ada-lang.c (align_value): Remove.
6708 (ada_template_to_fixed_record_type_1): Use align_up.
6709
f7e23710
TBA
67102020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6711
6712 * async-event.c: Update the copyright year.
6713 * async-event.h: Update the copyright year.
6714
02ff80c2
SM
67152020-05-12 Simon Marchi <simon.marchi@efficios.com>
6716
6717 * objfiles.h (is_addr_in_objfile,
6718 shared_objfile_contains_address_p): Return bool.
6719 * objfile.c (is_addr_in_objfile,
6720 shared_objfile_contains_address_p): Return bool.
6721
4fd6c7e8
TT
67222020-05-11 Tom Tromey <tromey@adacore.com>
6723
6724 * cli/cli-cmds.c (info_command): Restore.
6725 (_initialize_cli_cmds): Use add_prefix_command for "info".
6726 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6727
5eb68a39
TT
67282020-05-11 Tom Tromey <tromey@adacore.com>
6729
6730 * ada-lang.c (ada_value_primitive_field): Now public.
6731 * ada-lang.h (ada_value_primitive_field): Declare.
6732 * ada-valprint.c (print_field_values): Use
6733 ada_value_primitive_field for wrapper fields.
6734
7666722f
TV
67352020-05-11 Tom de Vries <tdevries@suse.de>
6736
6737 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6738 MODULE_DOMAIN.
6739
3ee6bb11
TV
67402020-05-11 Tom de Vries <tdevries@suse.de>
6741
6742 PR symtab/25941
6743 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6744 with length 0, if not gdb-produced.
6745 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6746
43434996
TV
67472020-05-09 Tom de Vries <tdevries@suse.de>
6748
6749 PR gdb/25955
6750 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6751 calculation.
6752
2f78cffc
TT
67532020-05-09 Tom Tromey <tom@tromey.com>
6754
6755 * top.c (server_command): Now bool.
6756 * top.h (server_command): Now bool.
6757
4f7bc5ed
TT
67582020-05-08 Tom Tromey <tromey@adacore.com>
6759
6760 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6761 already being processed.
6762
8be4b118
TT
67632020-05-08 Tom Tromey <tom@tromey.com>
6764
6765 * printcmd.c (struct display) <next>: Remove.
6766 <display>: New constructor.
6767 <exp_string>: Now a std::string.
6768 <enabled_p>: Now a bool.
6769 (display_number): Move definition earlier.
6770 (displays): Rename from display_chain. Now a std::vector.
6771 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6772 (display_command): Update.
6773 (do_one_display, disable_display)
6774 (enable_disable_display_command, do_enable_disable_display):
6775 Update.
6776 (free_display): Remove.
6777 (clear_displays): Rewrite.
6778 (delete_display): Update.
6779 (map_display_numbers): Use function_view. Remove "data"
6780 parameter. Update.
6781 (do_delete_display): Remove.
6782 (undisplay_command): Update.
6783 (do_one_display, do_displays, disable_display)
6784 (info_display_command): Update.
6785 (do_enable_disable_display): Remove.
6786 (enable_disable_display_command)
6787 (clear_dangling_display_expressions): Update.
6788
94c93c35
TT
67892020-05-08 Tom Tromey <tom@tromey.com>
6790
6791 * symtab.c (set_symbol_cache_size)
6792 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6793 (maintenance_print_symbol_cache_statistics): Update.
6794 * symmisc.c (print_symbol_bcache_statistics)
6795 (print_objfile_statistics, maintenance_print_objfiles)
6796 (maintenance_info_symtabs, maintenance_check_symtabs)
6797 (maintenance_expand_symtabs, maintenance_info_line_tables):
6798 Update.
6799 * symfile-debug.c (set_debug_symfile): Update.
6800 * source.c (forget_cached_source_info): Update.
6801 * python/python.c (gdbpy_progspaces): Update.
6802 * psymtab.c (maintenance_info_psymtabs): Update.
6803 * probe.c (parse_probes): Update.
6804 * linespec.c (iterate_over_all_matching_symtabs)
6805 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6806 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6807 * exec.c (exec_target::close): Update.
6808 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6809 * breakpoint.c (print_one_breakpoint_location)
6810 (create_longjmp_master_breakpoint)
6811 (create_std_terminate_master_breakpoint): Update.
6812 * progspace.c (program_spaces): Now a std::vector.
6813 (maybe_new_address_space): Update.
6814 (add_program_space): Remove.
6815 (program_space::program_space): Update.
6816 (remove_program_space): Update.
6817 (number_of_program_spaces): Remove.
6818 (print_program_space, update_address_spaces): Update.
6819 * progspace.h (program_spaces): Change type.
6820 (ALL_PSPACES): Remove.
6821 (number_of_program_spaces): Don't declare.
6822 (struct program_space) <next>: Remove.
6823
a1fd1ac9
TT
68242020-05-08 Tom Tromey <tom@tromey.com>
6825
6826 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6827 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6828 (enable_break): Update.
6829 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6830 (frv_fdpic_find_canonical_descriptor): Update.
6831 (frv_fetch_objfile_link_map): Update.
6832 * progspace.c (program_space::free_all_objfiles): Update.
6833 (program_space::solibs): New method.
6834 * progspace.h (struct program_space) <solibs>: New method.
6835 * solist.h (master_so_list): Don't declare.
6836 (ALL_SO_LIBS): Remove.
6837 * solib.h (so_list_head): Remove.
6838 (update_solib_list): Update comment.
6839 * solib.c (master_so_list): Remove.
6840 (solib_used, update_solib_list, solib_add)
6841 (info_sharedlibrary_command, clear_solib)
6842 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6843
38eae084
TT
68442020-05-08 Tom Tromey <tom@tromey.com>
6845
6846 * extension.c (extension_languages): Now a std::array.
6847 (ALL_EXTENSION_LANGUAGES): Remove.
6848 (get_ext_lang_defn, get_ext_lang_of_file)
6849 (eval_ext_lang_from_control_command): Update.
6850 (finish_ext_lang_initialization)
6851 (auto_load_ext_lang_scripts_for_objfile)
6852 (ext_lang_type_printers::ext_lang_type_printers)
6853 (apply_ext_lang_type_printers)
6854 (ext_lang_type_printers::~ext_lang_type_printers)
6855 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6856 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6857 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6858 (get_matching_xmethod_workers, ext_lang_colorize)
6859 (ext_lang_before_prompt): Update.
6860 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6861
596dc4ad
TT
68622020-05-08 Tom Tromey <tom@tromey.com>
6863
6864 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6865 overload.
6866 <swap_string, m_string>: Remove.
6867 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6868 Update.
6869 * stabsread.c (define_symbol, read_type): Update.
6870 * linespec.c (find_linespec_symbols): Update.
6871 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6872 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6873 * dbxread.c (read_dbx_symtab): Update.
6874 * cp-support.h (cp_canonicalize_string_full)
6875 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6876 Return unique_xmalloc_ptr.
6877 * cp-support.c (inspect_type): Update.
6878 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6879 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6880 Likewise.
6881 * c-typeprint.c (print_name_maybe_canonical): Update.
6882 * break-catch-throw.c (check_status_exception_catchpoint):
6883 Update.
6884
bf4cb9be
TV
68852020-05-08 Tom de Vries <tdevries@suse.de>
6886
6887 * infrun.c (follow_fork): Copy current_line and current_symtab to
6888 child thread.
6889
a1b68f28
SM
68902020-05-07 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * async-event.c (struct async_signal_handler, struct
6893 async_event_handler): Reformat, remove typedef.
6894
98d48915
SM
68952020-05-07 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6898 access thistype->main_type->dyn_prop_list directly.
6899
7aa91313
SM
69002020-05-07 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6903 (remove_dyn_prop): Remove. Update all users to use
6904 type::remove_dyn_prop.
6905 * gdbtypes.c (remove_dyn_prop): Rename to...
6906 (type::remove_dyn_prop): ... this.
6907
5c54719c
SM
69082020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6909
6910 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6911 (add_dyn_prop): Remove. Update all users to use
6912 type::add_dyn_prop.
6913 * gdbtypes.c (add_dyn_prop): Rename to...
6914 (type::add_dyn_prop): ... this.
6915
24e99c6c
SM
69162020-05-07 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6919 (get_dyn_prop): Remove. Update all users to use
6920 type::dyn_prop.
6921 * gdbtypes.c (get_dyn_prop): Rename to...
6922 (type::dyn_prop): ... this.
6923
0d4bf016
SM
69242020-05-06 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6927
ac4a4f1c
SM
69282020-05-06 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6931 instruction, skip it if it's there.
6932
a3bbacc1
SM
69332020-05-05 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6936
c3236f84
SM
69372020-05-04 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6940 * gdbtypes.c (recursive_dump_type): Remove use of
6941 TYPE_INCOMPLETE.
6942
3b6acaee
TT
69432020-05-03 Tom Tromey <tom@tromey.com>
6944
6945 * breakpoint.c (catch_command, tcatch_command): Remove.
6946 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6947 add_show_prefix_cmd.
6948 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6949 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6950 Remove.
6951 (add_internal_problem_command): Use add_basic_prefix_cmd,
6952 add_show_prefix_cmd.
6953 * mips-tdep.c (set_mipsfpu_command): Remove.
6954 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6955 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6956 (_initialize_index_cache): Use add_basic_prefix_cmd.
6957 * memattr.c (dummy_cmd): Remove.
6958 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6959 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6960 (_initialize_tui_win): Use add_basic_prefix_cmd,
6961 add_show_prefix_cmd.
6962 * cli/cli-logging.c (set_logging_command): Remove.
6963 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6964 add_show_prefix_cmd.
6965 (show_logging_command): Remove.
6966 * target.c (target_command): Remove.
6967 (add_target): Use add_basic_prefix_cmd.
6968
a51119cd
HD
69692020-05-02 Hannes Domani <ssbssa@yahoo.de>
6970
6971 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6972
652fc23a 69732020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6974
652fc23a
PW
6975 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6976 info_command.
6977
117539e6
KR
69782020-04-30 Kamil Rytarowski <n54@gmx.com>
6979
6980 * nbsd-nat.c (nbsd_enable_proc_events)
6981 (nbsd_nat_target::post_startup_inferior): Add.
6982 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6983 (nbsd_nat_target::update_thread_list): Rewrite.
6984 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6985 "PTRACE_LWP_CREATE".
6986 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6987
102e38eb 69882020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6989
102e38eb
PW
6990 * stack.c (_initialize_stack): Remove duplicated creation
6991 of "frame" command and "f" alias.
6992
ee9d1e5f
HD
69932020-04-30 Hannes Domani <ssbssa@yahoo.de>
6994
6995 PR gdb/18706
6996 * gdbtypes.c (check_typedef): Calculate size of array of
6997 stubbed type.
6998
627c7fb8
HD
69992020-04-30 Hannes Domani <ssbssa@yahoo.de>
7000
7001 PR gdb/15559
7002 * i386-tdep.c (i386_push_dummy_call): Call
7003 i386_thiscall_push_dummy_call.
7004 (i386_thiscall_push_dummy_call): New function.
7005 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7006 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7007 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7008
ffc2844e
SM
70092020-04-29 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * gdbarch.sh (do_read): Add shellcheck disable directive for
7012 warning SC2162.
7013
1207375d
SM
70142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7017 "referenced but not assigned" warning.
7018
9fdb2916
SM
70192020-04-29 Simon Marchi <simon.marchi@efficios.com>
7020
7021 * gdbarch.sh: Remove code that sets fallbackdefault.
7022
759cea5e
SM
70232020-04-29 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * gdbarch.sh: Use shell operators && and || instead of
7026 -a and -o.
7027
cb02ab24
SM
70282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7029
7030 * gdbarch.sh: Use $(...) instead of `...`.
7031
a6fc5ffc
SM
70322020-04-29 Simon Marchi <simon.marchi@efficios.com>
7033
7034 * gdbarch.sh: Use double quotes around variables.
7035
8d113d13
SM
70362020-04-29 Simon Marchi <simon.marchi@efficios.com>
7037
7038 * gdbarch.sh: Use %s with printf, instead of variables in the
7039 format string.
7040
ed6acedd
TT
70412020-04-29 Tom Tromey <tromey@adacore.com>
7042
7043 PR ada/25875:
7044 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7045 type fields here.
7046 (read_enumeration_type): Call
7047 update_enumeration_type_from_children later. Update comments.
7048 (process_enumeration_scope): Don't create type fields.
7049
b68b1b58
KR
70502020-04-29 Kamil Rytarowski <n54@gmx.com>
7051
7052 * nbsd-tdep.c: Include "xml-syscall.h".
7053 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7054
f94b2e03
KR
70552020-04-29 Kamil Rytarowski <n54@gmx.com>
7056
7057 * nbsd-nat.c: Include "sys/wait.h".
7058 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7059 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7060 (nbsd_nat_target::remove_exec_catchpoint)
7061 (nbsd_nat_target::set_syscall_catchpoint): Add.
7062 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7063 (nbsd_nat_target::insert_exec_catchpoint)
7064 (nbsd_nat_target::remove_exec_catchpoint)
7065 (nbsd_nat_target::set_syscall_catchpoint): Add.
7066 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7067 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7068 `nbsd_get_syscall_number'.
7069
fc49bc72
TT
70702020-04-29 Tom Tromey <tom@tromey.com>
7071
7072 * stack.c (print_block_frame_labels): Remove.
7073
d642b692
HD
70742020-04-29 Hannes Domani <ssbssa@yahoo.de>
7075
7076 PR gdb/17320
7077 * ada-valprint.c (val_print_packed_array_elements): Move array
7078 end bracket to new line.
7079 (ada_val_print_string): Remove extra spaces before first array
7080 element.
7081 * c-valprint.c (c_value_print_array): Likewise.
7082 * m2-valprint.c (m2_print_array_contents): Likewise.
7083 (m2_value_print_inner): Likewise.
7084 * p-valprint.c (pascal_value_print_inner): Likewise.
7085 * valprint.c (generic_val_print_array): Likewise.
7086 (value_print_array_elements): Move first array element and array
7087 end bracket to new line.
7088
ea90f227
TV
70892020-04-29 Tom de Vries <tdevries@suse.de>
7090
7091 PR symtab/25889
7092 * linespec.c (find_method): Fix ix calculation.
7093
4498ef4f
KR
70942020-04-28 Kamil Rytarowski <n54@gmx.com>
7095
7096 * syscalls/update-netbsd.sh: New file.
7097 * syscalls/netbsd.xml: Regenerate.
7098 * data-directory/Makefile.in: Register `netbsd.xml' in
7099 `SYSCALLS_FILES'.
7100
a55e30b5
SM
71012020-04-28 Simon Marchi <simon.marchi@efficios.com>
7102
7103 * syscalls/update-freebsd.sh: Add double quotes.
7104
2b2fbab8
TT
71052020-04-28 Tom Tromey <tom@tromey.com>
7106
7107 * NEWS: Update.
7108 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7109 (cmdpy_init): Allow class_tui.
7110
a65189c9
TV
71112020-04-28 Mark Williams <mark@myosotissp.com>
7112
7113 PR gdb/24480
7114 * dwarf2read.c: Add missing assingments to list_in_scope when
7115 start_symtab was already called.
7116
1b95cdb7
SM
71172020-04-28 Simon Marchi <simon.marchi@efficios.com>
7118
7119 PR gdb/25881
7120 * dwarf2/read.c (offset_map_type): Use
7121 gdb:hash_enum<sect_offset> as hash function.
7122
15cd93d0
TV
71232020-04-28 Tom de Vries <tdevries@suse.de>
7124
7125 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7126 with DW_AT_signature.
7127
1eb39914
SM
71282020-04-27 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * configure.ac: Remove check for fs_base/gs_base in
7131 user_regs_struct.
7132 * configure: Re-generate.
7133 * config.in: Re-generate.
7134 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7135 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7136 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7137
991a3e2e
LM
71382020-04-27 Luis Machado <luis.machado@linaro.org>
7139
7140 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7141 problematic inline frame unwinding situation.
7142 * frame.c (frame_id_computed_p): New function.
7143 * frame.h (frame_id_computed_p): New prototype.
7144
361ba0e8
TT
71452020-04-26 Tom Tromey <tom@tromey.com>
7146
7147 * command.h (enum command_class) <class_pseudo>: Remove.
7148
bc3609fd
PW
71492020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7150
7151 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7152 and whitespace.
7153
b9771db7
KR
71542020-04-25 Kamil Rytarowski <n54@gmx.com>
7155
ec16513e
SM
7156 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7157 `PT_GET_PROCESS_STATE' block.
b9771db7 7158
7151c1af
TT
71592020-04-24 Tom Tromey <tom@tromey.com>
7160
7161 * symtab.h (symbol_get_demangled_name): Don't declare.
7162 * symtab.c (symbol_get_demangled_name): Remove.
7163 (general_symbol_info::natural_name)
7164 (general_symbol_info::demangled_name): Update.
7165
906bb4c5
TT
71662020-04-24 Tom Tromey <tom@tromey.com>
7167
7168 PR rust/25025:
7169 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7170
bcfe6157
TT
71712020-04-24 Tom Tromey <tom@tromey.com>
7172
7173 PR symtab/12707:
7174 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7175 exists.
7176 (new_symbol): Likewise.
7177 * compile/compile-object-load.c (get_out_value_type): Use
7178 symbol_matches_search_name.
7179
f049a313
TT
71802020-04-24 Tom Tromey <tom@tromey.com>
7181
7182 * dwarf2/read.c (add_partial_symbol): Do not call
7183 compute_and_set_names.
7184
76e288d1
TT
71852020-04-24 Tom Tromey <tom@tromey.com>
7186
7187 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7188 overload.
7189
2467f4f6
TT
71902020-04-24 Tom Tromey <tom@tromey.com>
7191
7192 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7193 (add_psymbol_to_list): New overload. Make old overload call new
7194 one.
7195 * psympriv.h (add_psymbol_to_list): New overload.
7196
e61108c9
TT
71972020-04-24 Tom Tromey <tom@tromey.com>
7198
7199 * dwarf2/read.c (partial_die_info::read) <case
7200 DW_AT_linkage_name>: Use value_as_string.
7201 (dwarf2_string_attr): Use value_as_string.
7202 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7203 method.
7204 * dwarf2/attribute.c (attribute::value_as_string): New method.
7205
8c87a452
TT
72062020-04-24 Tom Tromey <tom@tromey.com>
7207
7208 * symtab.c (general_symbol_info::natural_name)
7209 (general_symbol_info::demangled_name): Check for language_rust.
7210
787de330
TT
72112020-04-24 Tom Tromey <tom@tromey.com>
7212
7213 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7214 (dwarf2_physname): ... from here.
7215 (partial_die_info::read): Add Rust "{" hack.
7216
ff985671
TT
72172020-04-24 Tom Tromey <tom@tromey.com>
7218
7219 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7220 method.
7221 (symbol_set_demangled_name): Don't declare.
7222 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7223 symbol_set_demangled_name.
7224 (general_symbol_info::set_language)
7225 (general_symbol_info::compute_and_set_names): Update.
7226 * minsyms.c (minimal_symbol_reader::install): Update.
7227 * dwarf2/read.c (new_symbol): Update.
7228
1acda803
TT
72292020-04-24 Tom Tromey <tromey@adacore.com>
7230
7231 PR python/23662:
7232 * python/py-type.c (convert_field): Handle
7233 FIELD_LOC_KIND_DWARF_BLOCK.
7234 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7235 (typy_get_dynamic): Nw function.
7236 (type_object_getset): Add "dynamic".
7237 * NEWS: Add entry.
7238
d656f129
TT
72392020-04-24 Tom Tromey <tromey@adacore.com>
7240
7241 * ada-typeprint.c (print_choices, print_variant_part)
7242 (print_record_field_types_dynamic): New functions.
7243 (print_record_field_types): Use print_record_field_types_dynamic.
7244
7d79de9a
TT
72452020-04-24 Tom Tromey <tromey@adacore.com>
7246
7247 * dwarf2/read.c (handle_data_member_location): New overload.
7248 (dwarf2_add_field): Use it.
7249 (decode_locdesc): Add "computed" parameter. Update comment.
7250 * gdbtypes.c (is_dynamic_type_internal): Also look for
7251 FIELD_LOC_KIND_DWARF_BLOCK.
7252 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7253 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7254 virtual base classes.
7255 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7256 FIELD_LOC_KIND_DWARF_BLOCK.
7257
f8e89861
TT
72582020-04-24 Tom Tromey <tromey@adacore.com>
7259
7260 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7261 * gdbtypes.c (is_dynamic_type_internal): Check
7262 TYPE_HAS_DYNAMIC_LENGTH.
7263 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7264 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7265 New macros.
7266 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7267 constant.
7268
9c6a1327
TT
72692020-04-24 Tom Tromey <tromey@adacore.com>
7270
7271 * dwarf2/read.c (struct variant_field): Rewrite.
7272 (struct variant_part_builder): New.
7273 (struct nextfield): Remove "variant" field. Add "offset".
7274 (struct field_info): Add "current_variant_part" and
7275 "variant_parts".
7276 (alloc_discriminant_info): Remove.
7277 (alloc_rust_variant): New function.
7278 (quirk_rust_enum): Update.
7279 (dwarf2_add_field): Set "offset" member. Don't handle
7280 DW_TAG_variant_part.
7281 (offset_map_type): New typedef.
7282 (convert_variant_range, create_one_variant)
7283 (create_one_variant_part, create_variant_parts)
7284 (add_variant_property): New functions.
7285 (dwarf2_attach_fields_to_type): Call add_variant_property.
7286 (read_structure_type): Don't handle DW_TAG_variant_part.
7287 (handle_variant_part, handle_variant): New functions.
7288 (handle_struct_member_die): Use them.
7289 (process_structure_scope): Don't handle variant parts.
7290 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7291 (struct discriminant_info): Remove.
7292 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7293 (struct main_type) <flag_discriminated_union>: Remove.
7294 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7295 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7296 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7297 Update.
7298 * valops.c (value_union_variant): Remove.
7299 * value.h (value_union_variant): Don't declare.
7300
b249d2c2
TT
73012020-04-24 Tom Tromey <tromey@adacore.com>
7302
7303 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7304 (ada_value_primitive_packed_val): Update.
7305 * ada-valprint.c (ada_value_print_1): Update.
7306 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7307 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7308 just an address. Use evaluate_for_locexpr_baton.
7309 (dwarf2_evaluate_property): Update.
7310 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7311 array_view.
7312 * findvar.c (default_read_var_value): Update.
7313 * gdbtypes.c (compute_variant_fields_inner)
7314 (resolve_dynamic_type_internal): Update.
7315 (resolve_dynamic_type): Change type of valaddr parameter.
7316 * gdbtypes.h (resolve_dynamic_type): Update.
7317 * valarith.c (value_subscripted_rvalue): Update.
7318 * value.c (value_from_contents_and_address): Update.
7319
61122aa9
TT
73202020-04-24 Tom Tromey <tromey@adacore.com>
7321
7322 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7323 "push_initial_value" parameter.
7324 (dwarf2_evaluate_property): Likewise.
7325 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7326
ef83a141
TT
73272020-04-24 Tom Tromey <tromey@adacore.com>
7328
7329 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7330 (variant::matches, compute_variant_fields_recurse)
7331 (compute_variant_fields_inner, compute_variant_fields): New
7332 functions.
7333 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7334 Use resolved_type after type is made.
7335 (operator==): Add new cases.
7336 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7337 (struct discriminant_range, struct variant, struct variant_part):
7338 New.
7339 (union dynamic_prop_data) <variant_parts, original_type>: New
7340 members.
7341 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7342 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7343 constants.
7344 * value.c (unpack_bits_as_long): Now public.
7345 * value.h (unpack_bits_as_long): Declare.
7346
675127ec
TT
73472020-04-24 Tom Tromey <tromey@adacore.com>
7348
7349 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7350 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7351
9852ceef
HD
73522020-04-24 Hannes Domani <ssbssa@yahoo.de>
7353
7354 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7355
7632c6ce
KR
73562020-04-24 Kamil Rytarowski <n54@gmx.com>
7357
7358 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7359 (remove_fork_catchpoint, post_startup_inferior)
7360 (post_attach): Move...
7361 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7362 (remove_fork_catchpoint, post_startup_inferior)
7363 (post_attach): ...here.
7364 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7365 (remove_fork_catchpoint, post_startup_inferior)
7366 (post_attach): Move...
7367 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7368 (remove_fork_catchpoint, post_startup_inferior)
7369 (post_attach): ...here.
7370
7be2bb4f
TT
73712020-04-24 Tom Tromey <tromey@adacore.com>
7372
7373 * nat/windows-nat.h (struct windows_thread_info)
7374 <pc_adjusted>: New member.
7375 * windows-nat.c (windows_fetch_one_register): Check
7376 pc_adjusted.
7377 (windows_nat_target::get_windows_debug_event)
7378 (windows_nat_target::wait): Set pc_adjusted.
7379
f80cb3b4
TV
73802020-04-24 Tom de Vries <tdevries@suse.de>
7381
7382 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7383 Run gdb-add-index inside temp dir.
7384
29514b87
TT
73852020-04-23 Tom Tromey <tromey@adacore.com>
7386
7387 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7388 in loop.
7389
5939967b
LM
73902020-04-23 Luis Machado <luis.machado@linaro.org>
7391
7392 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7393 get_frame_register instead of gdbarch_unwind_pc.
7394
70bc38f5
TV
73952020-04-23 Tom de Vries <tdevries@suse.de>
7396
7397 * symtab.c (lookup_global_symbol): Prefer def over decl.
7398
de82891c
TV
73992020-04-23 Tom de Vries <tdevries@suse.de>
7400
7401 PR symtab/25807
7402 * block.c (best_symbol, better_symbol): Promote to external.
7403 * block.h (best_symbol, better_symbol): Declare.
7404 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7405 decl.
7406
ecc6c606
TT
74072020-04-23 Tom Tromey <tromey@adacore.com>
7408
7409 PR ada/25837:
7410 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7411 "const char *", not a "const std::string &".
7412 <name_and_matcher::operator==>: Update.
7413 * unittests/lookup_name_info-selftests.c: Change type of
7414 "result".
7415
740480b8
TT
74162020-04-23 Tom Tromey <tom@tromey.com>
7417
7418 * inferior.h (iterate_over_inferiors): Don't declare.
7419 * inferior.c (iterate_over_inferiors): Remove.
7420 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7421 Remove.
7422 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7423 use iterate_over_inferiors.
7424 (darwin_resume_inferior_it)
7425 (struct resume_inferior_threads_param)
7426 (darwin_resume_inferior_threads_it): Remove.
7427 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7428
ae3ab1f0
TV
74292020-04-23 Tom de Vries <tdevries@suse.de>
7430
7431 * blockframe.c (find_pc_partial_function): Use
7432 find_pc_sect_compunit_symtab rather than
7433 objfile->sf->qf->find_pc_sect_compunit_symtab.
7434
317d2668
TV
74352020-04-22 Tom de Vries <tdevries@suse.de>
7436
7437 PR symtab/25764
7438 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7439 in psymtabs.
7440
eea9e357
TV
74412020-04-22 Tom de Vries <tdevries@suse.de>
7442
7443 PR symtab/25801
7444 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7445 symtabs.
7446
3d5afab3
TV
74472020-04-22 Tom de Vries <tdevries@suse.de>
7448
7449 PR symtab/25700
7450 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7451 CU if already created.
7452
d43b7a2d
TBA
74532020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7454
7455 * infrun.c (displaced_step_fixup): Switch to the event_thread
7456 before calling displaced_step_restore, not after.
7457
d89edf9b
MM
74582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7459
7460 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7461 its inferior is not recorded by us.
7462 (record_btrace_target_open): Replace call to
7463 all_non_exited_threads () with call to current_inferior
7464 ()->non_exited_threads ().
7465 (record_btrace_target::stop_recording): Likewise.
7466 (record_btrace_target::close): Likewise.
7467 (record_btrace_target::wait): Likewise.
7468 (record_btrace_target::record_stop_replaying): Likewise.
7469
5897fd49
MM
74702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7471
7472 * btrace.c (btrace_enable): Throw an error on double enables and
7473 when enabling recording fails.
7474 (btrace_disable): Throw an error if the thread is not recorded.
7475
1a476b6d
MM
74762020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7477
7478 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7479 request if we do not have a thread_info.
7480
4778a5f8
TV
74812020-04-21 Tom de Vries <tdevries@suse.de>
7482
7483 PR gdb/25471
7484 * thread.c
7485 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7486 exception in get_frame_id.
7487
0fa7617d
TT
74882020-04-20 Tom Tromey <tromey@adacore.com>
7489
7490 * python/python.c (struct gdbpy_event): Mark move constructor as
7491 noexcept.
7492 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7493 constructor as noexcept.
7494 * completer.h (struct completion_result): Mark move constructor as
7495 noexcept.
7496 * completer.c (completion_result::completion_result): Use
7497 initialization style. Don't call reset_match_list.
7498
ad23bda0
MS
74992020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7500
7501 * MAINTAINERS (Write After Approval): Add myself.
7502
45e1f031
TT
75032020-04-18 Tom Tromey <tom@tromey.com>
7504
7505 * windows-tdep.c (init_w32_command_list)
7506 (w32_prefix_command_valid): Restore.
7507 (_initialize_windows_tdep): Call init_w32_command_list.
7508
08feed99
TT
75092020-04-18 Tom Tromey <tom@tromey.com>
7510
7511 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7512 * value.c (value_fn_field): Update.
7513 * valops.c (find_function_in_inferior)
7514 (value_allocate_space_in_inferior): Update.
7515 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7516 Update.
7517 * tui/tui-source.c (tui_source_window::set_contents): Update.
7518 * symtab.c (lookup_global_or_static_symbol)
7519 (find_function_start_sal_1, skip_prologue_sal)
7520 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7521 * symmisc.c (dump_msymbols, dump_symtab_1)
7522 (maintenance_print_one_line_table): Update.
7523 * symfile.c (init_entry_point_info, section_is_mapped)
7524 (list_overlays_command, simple_read_overlay_table)
7525 (simple_overlay_update_1): Update.
7526 * stap-probe.c (handle_stap_probe): Update.
7527 * stabsread.c (dbx_init_float_type, define_symbol)
7528 (read_one_struct_field, read_enum_type, read_range_type): Update.
7529 * source.c (info_line_command): Update.
7530 * python/python.c (gdbpy_source_objfile_script)
7531 (gdbpy_execute_objfile_script): Update.
7532 * python/py-type.c (save_objfile_types): Update.
7533 * python/py-objfile.c (py_free_objfile): Update.
7534 * python/py-inferior.c (python_new_objfile): Update.
7535 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7536 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7537 (maintenance_check_psymtabs): Update.
7538 * printcmd.c (info_address_command): Update.
7539 * objfiles.h (struct objfile) <arch>: New method, from
7540 get_objfile_arch.
7541 (get_objfile_arch): Don't declare.
7542 * objfiles.c (get_objfile_arch): Remove.
7543 (filter_overlapping_sections): Update.
7544 * minsyms.c (msymbol_is_function): Update.
7545 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7546 (output_nondebug_symbol): Update.
7547 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7548 (mdebug_expand_psymtab): Update.
7549 * machoread.c (macho_add_oso_symfile): Update.
7550 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7551 Update.
7552 * linux-fork.c (checkpoint_command): Update.
7553 * linespec.c (convert_linespec_to_sals): Update.
7554 * jit.c (finalize_symtab): Update.
7555 * infrun.c (insert_exception_resume_from_probe): Update.
7556 * ia64-tdep.c (ia64_find_unwind_table): Update.
7557 * hppa-tdep.c (internalize_unwinds): Update.
7558 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7559 Update.
7560 * gcore.c (call_target_sbrk): Update.
7561 * elfread.c (record_minimal_symbol, elf_symtab_read)
7562 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7563 (elf_gnu_ifunc_resolve_by_got): Update.
7564 * dwarf2/read.c (create_addrmap_from_index)
7565 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7566 (read_debug_names_from_section)
7567 (process_psymtab_comp_unit_reader, add_partial_symbol)
7568 (add_partial_subprogram, process_full_comp_unit)
7569 (read_file_scope, read_func_scope, read_lexical_block_scope)
7570 (read_call_site_scope, dwarf2_ranges_read)
7571 (dwarf2_record_block_ranges, dwarf2_add_field)
7572 (mark_common_block_symbol_computed, read_tag_pointer_type)
7573 (read_tag_string_type, dwarf2_init_float_type)
7574 (dwarf2_init_complex_target_type, read_base_type)
7575 (partial_die_info::read, partial_die_info::read)
7576 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7577 (dwarf2_fetch_die_loc_sect_off): Update.
7578 * dwarf2/loc.c (dwarf2_find_location_expression)
7579 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7580 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7581 (dwarf2_loc_desc_get_symbol_read_needs)
7582 (locexpr_describe_location_piece, locexpr_describe_location_1)
7583 (loclist_describe_location): Update.
7584 * dwarf2/index-write.c (write_debug_names): Update.
7585 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7586 * dtrace-probe.c (dtrace_process_dof): Update.
7587 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7588 (process_one_symbol): Update.
7589 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7590 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7591 (coff_read_enum_type): Update.
7592 * cli/cli-cmds.c (edit_command, list_command): Update.
7593 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7594 * breakpoint.c (create_overlay_event_breakpoint)
7595 (create_longjmp_master_breakpoint)
7596 (create_std_terminate_master_breakpoint)
7597 (create_exception_master_breakpoint, get_sal_arch): Update.
7598 * block.c (block_gdbarch): Update.
7599 * annotate.c (annotate_source_line): Update.
7600
0743fc83
TT
76012020-04-17 Tom Tromey <tromey@adacore.com>
7602
7603 * auto-load.c (show_auto_load_cmd): Remove.
7604 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7605 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7606 (maintenance_print_arc_command): Remove.
7607 * tui/tui-win.c (tui_command): Remove.
7608 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7609 * tui/tui-layout.c (tui_layout_command): Remove.
7610 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7611 * python/python.c (user_set_python, user_show_python): Remove.
7612 (_initialize_python): Use add_basic_prefix_cmd,
7613 add_show_prefix_cmd.
7614 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7615 (install_gdb_commands): Use add_basic_prefix_cmd,
7616 add_show_prefix_cmd.
7617 (info_guile_command): Remove.
7618 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7619 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7622 Remove do_set and do_show parameters.
7623 * cli/cli-style.c (set_style, show_style): Remove.
7624 (_initialize_cli_style): Use add_basic_prefix_cmd,
7625 add_show_prefix_cmd.
7626 (cli_style_option::add_setshow_commands): Remove do_set and
7627 do_show parameters.
7628 (cli_style_option::add_setshow_commands): Use
7629 add_basic_prefix_cmd, add_show_prefix_cmd.
7630 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7631 (set_style_name): Remove.
7632 * cli/cli-dump.c (dump_command, append_command): Remove.
7633 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7634 (tekhex_dump_command, binary_dump_command)
7635 (binary_append_command): Remove.
7636 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7637 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7638 (init_w32_command_list): Remove; move into ...
7639 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7640 * valprint.c (set_print, show_print, set_print_raw)
7641 (show_print_raw): Remove.
7642 (_initialize_valprint): Use add_basic_prefix_cmd,
7643 add_show_prefix_cmd.
7644 * typeprint.c (set_print_type, show_print_type): Remove.
7645 (_initialize_typeprint): Use add_basic_prefix_cmd,
7646 add_show_prefix_cmd.
7647 * record.c (set_record_command, show_record_command): Remove.
7648 (_initialize_record): Use add_basic_prefix_cmd,
7649 add_show_prefix_cmd.
7650 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7651 add_show_prefix_cmd.
7652 (info_command, show_command, set_debug, show_debug): Remove.
7653 * top.h (set_history, show_history): Don't declare.
7654 * top.c (set_history, show_history): Remove.
7655 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7656 (unset_tdesc_cmd): Remove.
7657 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * symtab.c (info_module_command): Remove.
7660 (_initialize_symtab): Use add_basic_prefix_cmd.
7661 * symfile.c (overlay_command): Remove.
7662 (_initialize_symfile): Use add_basic_prefix_cmd.
7663 * sparc64-tdep.c (info_adi_command): Remove.
7664 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7665 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7666 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7667 add_show_prefix_cmd.
7668 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7669 (_initialize_serial): Use add_basic_prefix_cmd,
7670 add_show_prefix_cmd.
7671 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7672 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7673 add_show_prefix_cmd.
7674 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7675 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7676 add_show_prefix_cmd.
7677 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7678 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7679 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7680 add_show_prefix_cmd.
7681 * remote.c (remote_command, set_remote_cmd): Remove.
7682 (_initialize_remote): Use add_basic_prefix_cmd.
7683 * record-full.c (set_record_full_command)
7684 (show_record_full_command): Remove.
7685 (_initialize_record_full): Use add_basic_prefix_cmd,
7686 add_show_prefix_cmd.
7687 * record-btrace.c (cmd_set_record_btrace)
7688 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7689 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7690 (cmd_show_record_btrace_pt): Remove.
7691 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7692 add_show_prefix_cmd.
7693 * ravenscar-thread.c (set_ravenscar_command)
7694 (show_ravenscar_command): Remove.
7695 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7696 add_show_prefix_cmd.
7697 * mips-tdep.c (show_mips_command, set_mips_command)
7698 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7699 add_show_prefix_cmd.
7700 * maint.c (maintenance_command, maintenance_info_command)
7701 (maintenance_check_command, maintenance_print_command)
7702 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7703 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7704 add_show_prefix_cmd.
7705 (show_per_command_cmd): Remove.
7706 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7707 Remove.
7708 (maintenance_show_test_settings_cmd): Remove.
7709 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7710 add_show_prefix_cmd.
7711 * maint-test-options.c (maintenance_test_options_command):
7712 Remove.
7713 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7714 * macrocmd.c (macro_command): Remove
7715 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7716 * language.c (set_check, show_check): Remove.
7717 (_initialize_language): Use add_basic_prefix_cmd,
7718 add_show_prefix_cmd.
7719 * infcmd.c (unset_command): Remove.
7720 (_initialize_infcmd): Use add_basic_prefix_cmd.
7721 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7722 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7723 add_show_prefix_cmd.
7724 * go32-nat.c (go32_info_dos_command): Remove.
7725 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7726 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7727 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7728 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7729 (_initialize_frame): Use add_basic_prefix_cmd,
7730 add_show_prefix_cmd.
7731 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7732 (_initialize_dcache): Use add_basic_prefix_cmd,
7733 add_show_prefix_cmd.
7734 * cp-support.c (maint_cplus_command): Remove.
7735 (_initialize_cp_support): Use add_basic_prefix_cmd.
7736 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7737 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7738 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7739 add_basic_prefix_cmd, add_show_prefix_cmd.
7740 * breakpoint.c (save_command): Remove.
7741 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7742 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7743 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7744 add_show_prefix_cmd.
7745 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7746 (set_ada_command, show_ada_command): Remove.
7747 (_initialize_ada_language): Use add_basic_prefix_cmd,
7748 add_show_prefix_cmd.
7749 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7750
3557f442
KR
77512020-04-16 Kamil Rytarowski <n54@gmx.com>
7752
7753 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7754 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7755
16197208
SM
77562020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7757
7758 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7759 warning messages.
7760
00ac85d3
SM
77612020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7762
7763 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7764 import table is not at beginning of .idata section.
7765
381ce63f
PA
77662020-04-16 Pedro Alves <palves@redhat.com>
7767
7768 * inferior.c (delete_inferior): Use delete operator directly
7769 instead of delete_program_space.
7770 * progspace.c (add_program_space): New, factored out from
7771 program_space::program_space.
7772 (remove_program_space): New, factored out from
7773 delete_program_space.
7774 (program_space::program_space): Remove intro comment. Rewrite.
7775 (program_space::~program_space): Remove intro comment. Call
7776 remove_program_space.
7777 (delete_program_space): Delete.
7778 * progspace.h (program_space::program_space): Make explicit. Move
7779 intro comment here, adjusted.
7780 (program_space::~program_space): Move intro comment here,
7781 adjusted.
7782 (delete_program_space): Remove.
7783
a010605f
TT
77842020-04-16 Tom Tromey <tromey@adacore.com>
7785
7786 * windows-nat.c (windows_nat::handle_access_violation): New
7787 function.
7788 * nat/windows-nat.h (handle_access_violation): Declare.
7789 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7790 windows-nat.c. Call handle_access_violation.
7791
efba5c23
TV
77922020-04-16 Tom de Vries <tdevries@suse.de>
7793
7794 PR symtab/25791
7795 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7796 CUs without psymtab.
7797
97ed802d
KB
77982020-04-16 Kevin Buettner <kevinb@redhat.com>
7799
7800 * python/python.c (do_start_initialization): Don't call
7801 PyEval_InitThreads for Python 3.9 and beyond.
7802
c7d64809
KR
78032020-04-15 Kamil Rytarowski <n54@gmx.com>
7804
7805 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7806 thread functions.
7807 (obsd_nat_target::wait): Likewise.
7808
ce127a96
TT
78092020-04-15 Tom Tromey <tromey@adacore.com>
7810
7811 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7812 (DEBUG_EXCEPT): Use debug_printf.
7813
99f1bc6a
AB
78142020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7815
7816 * completer.c (class completion_tracker::completion_hash_entry)
7817 <hash_name>: New member function.
7818 (completion_tracker::discard_completions): New callback to hash a
7819 completion_hash_entry, pass this to htab_create_alloc.
7820
a0e9b532
JT
78212016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7822
7823 * windows-nat.c (windows_make_so): Warn rather than stopping with
7824 an error if realpath() fails.
7825
06ca5dd4
KR
78262020-04-14 Kamil Rytarowski <n54@gmx.com>
7827
7828 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7829 (nbsd_nat_target::info_proc): Add do_status.
7830
194d088f
TV
78312020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7832 Tom de Vries <tdevries@suse.de>
7833
7834 PR symtab/25718
7835 * psympriv.h (struct partial_symtab::read_symtab)
7836 (struct partial_symtab::expand_psymtab)
7837 (struct partial_symtab::read_dependencies): Update comments.
7838 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7839 read_symtab for includer.
7840 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7841 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7842 (struct dwarf2_include_psymtab::m_readin): Remove.
7843 (struct dwarf2_include_psymtab::includer): New member function.
7844 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7845
c1a66c06
TV
78462020-04-14 Tom de Vries <tdevries@suse.de>
7847
7848 PR symtab/25720
7849 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7850 with NULL symbol_matcher and lookup_name.
7851 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7852 and lookup_name.
7853 * dwarf2/read.c (dw2_expand_symtabs_matching)
7854 (dw2_debug_names_expand_symtabs_matching): Same.
7855 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7856 Make lookup_name a pointer. Update comment.
7857 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7858 lookup_name being a pointer.
7859 * symfile.c (expand_symtabs_matching): Same.
7860 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7861 * linespec.c (iterate_over_all_matching_symtabs): Same.
7862
400b5eca
TT
78632020-04-13 Tom Tromey <tom@tromey.com>
7864
7865 * run-on-main-thread.c: Update include.
7866 * unittests/main-thread-selftests.c: Update include.
7867 * tui/tui-win.c: Update include.
7868 * tui/tui-io.c: Update include.
7869 * tui/tui-interp.c: Update include.
7870 * tui/tui-hooks.c: Update include.
7871 * top.h: Update include.
7872 * top.c: Update include.
7873 * ser-base.c: Update include.
7874 * remote.c: Update include.
7875 * remote-notif.c: Update include.
7876 * remote-fileio.c: Update include.
7877 * record-full.c: Update include.
7878 * record-btrace.c: Update include.
7879 * python/python.c: Update include.
7880 * posix-hdep.c: Update include.
7881 * mingw-hdep.c: Update include.
7882 * mi/mi-main.c: Update include.
7883 * mi/mi-interp.c: Update include.
7884 * main.c: Update include.
7885 * linux-nat.c: Update include.
7886 * interps.c: Update include.
7887 * infrun.c: Update include.
7888 * inf-loop.c: Update include.
7889 * event-top.c: Update include.
7890 * event-loop.c: Move to ../gdbsupport/.
7891 * event-loop.h: Move to ../gdbsupport/.
7892 * async-event.h: Update include.
7893 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7894
93b54c8e
TT
78952020-04-13 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-win.c: Include async-event.h.
7898 * remote.c: Include async-event.h.
7899 * remote-notif.c: Include async-event.h.
7900 * record-full.c: Include async-event.h.
7901 * record-btrace.c: Include async-event.h.
7902 * infrun.c: Include async-event.h.
7903 * event-top.c: Include async-event.h.
7904 * event-loop.h: Move some declarations to async-event.h.
7905 * event-loop.c: Don't include ser-event.h or top.h. Move some
7906 code to async-event.c.
7907 * async-event.h: New file.
7908 * async-event.c: New file.
7909 * Makefile.in (COMMON_SFILES): Add async-event.c.
7910 (HFILES_NO_SRCDIR): Add async-event.h.
7911
c1cd3163
TT
79122020-04-13 Tom Tromey <tom@tromey.com>
7913
7914 * utils.c (flush_streams): New function.
7915 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7916
29f2bf4f
TT
79172020-04-13 Tom Tromey <tom@tromey.com>
7918
7919 * event-loop.c (handle_file_event): Use warning, not
7920 printf_unfiltered.
7921
98029d02
TT
79222020-04-13 Tom Tromey <tom@tromey.com>
7923
7924 * event-loop.c: Include <chrono>.
7925
06cc9596
TT
79262020-04-13 Tom Tromey <tom@tromey.com>
7927
7928 * gdb_select.h: Move to ../gdbsupport/.
7929 * event-loop.c: Update include path.
7930 * top.c: Update include path.
7931 * ser-base.c: Update include path.
7932 * ui-file.c: Update include path.
7933 * ser-tcp.c: Update include path.
7934 * guile/scm-ports.c: Update include path.
7935 * posix-hdep.c: Update include path.
7936 * ser-unix.c: Update include path.
7937 * gdb_usleep.c: Update include path.
7938 * mingw-hdep.c: Update include path.
7939 * inflow.c: Update include path.
7940 * infrun.c: Update include path.
7941 * event-top.c: Update include path.
7942
8ae8e197
TT
79432020-04-13 Tom Tromey <tom@tromey.com>
7944
7945 * configure: Rebuild.
7946 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7947
58cf28e8
TT
79482020-04-13 Tom Tromey <tom@tromey.com>
7949
7950 * event-loop.h (start_event_loop): Don't declare.
7951 * event-loop.c (start_event_loop): Move...
7952 * main.c (start_event_loop): ...here. Now static.
7953
b7f999ae
SDJ
79542020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7955
7956 * MAINTAINERS: Update my email address.
7957
1085dfd4
KR
79582020-04-12 Kamil Rytarowski <n54@gmx.com>
7959
7960 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7961 IP_ALL.
7962
49d1d1f5
KR
79632020-04-12 Kamil Rytarowski <n54@gmx.com>
7964
7965 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7966 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7967
b4848d2a
KR
79682020-04-12 Kamil Rytarowski <n54@gmx.com>
7969
7970 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7971 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7972
51c133d5
KR
79732020-04-12 Kamil Rytarowski <n54@gmx.com>
7974
7975 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7976
54b8cbd0
KR
79772020-04-11 Kamil Rytarowski <n54@gmx.com>
7978
7979 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7980 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7981 (nbsd_nat_target::info_proc): New functions.
7982 * nbsd-nat.c (kinfo_get_vmmap): New function.
7983 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7984 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7985 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7986 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7987 functions.
7988 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7989 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7990 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7991 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7992 (KINFO_VME_FLAG_GROWS_DOWN): New.
7993
cf83625d
AS
79942020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7995
7996 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7997 bit shift.
7998
0c4311ab
TT
79992020-04-10 Tom Tromey <tromey@adacore.com>
8000
8001 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8002
3e65b3e9
TT
80032020-04-10 Tom Tromey <tromey@adacore.com>
8004
8005 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8006 separate debug files.
8007
13302e95
HD
80082020-04-10 Hannes Domani <ssbssa@yahoo.de>
8009
8010 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8011 Move to...
8012 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8013 ... here.
8014 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8015 Check for STATUS_WX86_BREAKPOINT.
8016 (windows_nat_target::wait): Same.
8017
bdfc1e8a
TV
80182020-04-10 Tom de Vries <tdevries@suse.de>
8019
8020 PR cli/25808
8021 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8022
f4460aec
SM
80232020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8024
8025 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8026 (Write After Approval): Remove Tom de Vries.
8027
a25198bb
BE
80282020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8029
8030 revert partially:
8031 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8032
aac66a4c
SM
8033 * buildsym.c (record_line): Fix undefined behavior and preserve
8034 lines at eof.
a25198bb 8035
206c98a6
KR
80362020-04-09 Kamil Rytarowski <n54@gmx.com>
8037
8038 * auxv.h (svr4_auxv_parse): New.
8039 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8040 and generic_auxv_parse.
8041 (svr4_auxv_parse): Add.
8042 * obsd-tdep.c: Include "auxv.h".
8043 (obsd_auxv_parse): Remove.
8044 (obsd_init_abi): Remove comment.
8045 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8046 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8047 * nbsd-tdep.c: Include "auxv.h".
8048 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8049
71fbdbaf
TT
80502020-04-08 Tom Tromey <tromey@adacore.com>
8051
8052 * nat/windows-nat.h (last_wait_event): Don't declare.
8053 (wait_for_debug_event): Update comment.
8054 * nat/windows-nat.c (last_wait_event): Now static.
8055
2c1d95e8
TT
80562020-04-08 Tom Tromey <tromey@adacore.com>
8057
8058 * windows-nat.c (wait_for_debug_event): Move to
8059 nat/windows-nat.c.
8060 * nat/windows-nat.h (wait_for_debug_event): Declare.
8061 * nat/windows-nat.c (wait_for_debug_event): Move from
8062 windows-nat.c. No longer static.
8063
d2977bc4
TT
80642020-04-08 Tom Tromey <tromey@adacore.com>
8065
8066 * windows-nat.c (get_windows_debug_event): Use
8067 fetch_pending_stop.
8068 * nat/windows-nat.h (fetch_pending_stop): Declare.
8069 * nat/windows-nat.c (fetch_pending_stop): New function.
8070
e758e19c
TT
80712020-04-08 Tom Tromey <tromey@adacore.com>
8072
8073 * windows-nat.c (windows_continue): Use matching_pending_stop and
8074 continue_last_debug_event.
8075 * nat/windows-nat.h (matching_pending_stop)
8076 (continue_last_debug_event): Declare.
8077 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8078 (matching_pending_stop, continue_last_debug_event): New
8079 functions.
8080
8d30e395
TT
80812020-04-08 Tom Tromey <tromey@adacore.com>
8082
8083 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8084 (handle_exception_result): Move to nat/windows-nat.h.
8085 (DEBUG_EXCEPTION_SIMPLE): Remove.
8086 (windows_nat::handle_ms_vc_exception): New function.
8087 (handle_exception): Move to nat/windows-nat.c.
8088 (get_windows_debug_event): Update.
8089 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8090 nat/windows-nat.c.
8091 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8092 (handle_exception_result): Move from windows-nat.c.
8093 (handle_exception): Declare.
8094 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8095 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8096 windows-nat.c.
8097
29de418d
TT
80982020-04-08 Tom Tromey <tromey@adacore.com>
8099
8100 * windows-nat.c (exception_count, event_count): Remove.
8101 (handle_exception, get_windows_debug_event)
8102 (do_initial_windows_stuff): Update.
8103
a816ba18
TT
81042020-04-08 Tom Tromey <tromey@adacore.com>
8105
8106 * windows-nat.c (windows_nat::handle_load_dll)
8107 (windows_nat::handle_unload_dll): Rename. No longer static.
8108 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8109 Declare.
8110
a00caa12
TT
81112020-04-08 Tom Tromey <tromey@adacore.com>
8112
8113 * complaints.h (stop_whining): Declare at top-level.
8114 (complaint): Don't declare stop_whining.
8115
d41b524f
TT
81162020-04-08 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c (windows_nat::handle_output_debug_string):
8119 Rename. No longer static.
8120 * nat/windows-nat.h (handle_output_debug_string): Declare.
8121
3c76026d
TT
81222020-04-08 Tom Tromey <tromey@adacore.com>
8123
8124 * windows-nat.c (current_process_handle, current_process_id)
8125 (main_thread_id, last_sig, current_event, last_wait_event)
8126 (current_windows_thread, desired_stop_thread_id, pending_stops)
8127 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8128 (display_selectors, fake_create_process)
8129 (get_windows_debug_event): Update.
8130 * nat/windows-nat.h (current_process_handle, current_process_id)
8131 (main_thread_id, last_sig, current_event, last_wait_event)
8132 (current_windows_thread, desired_stop_thread_id, pending_stops)
8133 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8134 * nat/windows-nat.c (current_process_handle, current_process_id)
8135 (main_thread_id, last_sig, current_event, last_wait_event)
8136 (current_windows_thread, desired_stop_thread_id, pending_stops)
8137 (siginfo_er): New globals. Move from windows-nat.c.
8138
9d8679cc
TT
81392020-04-08 Tom Tromey <tromey@adacore.com>
8140
8141 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8142 (handle_load_dll): Update.
8143 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8144
28688adf
TT
81452020-04-08 Tom Tromey <tromey@adacore.com>
8146
8147 * windows-nat.c (enum thread_disposition_type): Move to
8148 nat/windows-nat.h.
8149 (windows_nat::thread_rec): Rename from thread_rec. No longer
8150 static.
8151 (windows_add_thread, windows_nat_target::fetch_registers)
8152 (windows_nat_target::store_registers, handle_exception)
8153 (windows_nat_target::resume, get_windows_debug_event)
8154 (windows_nat_target::get_tib_address)
8155 (windows_nat_target::thread_name)
8156 (windows_nat_target::thread_alive): Update.
8157 * nat/windows-nat.h (enum thread_disposition_type): Move from
8158 windows-nat.c.
8159 (thread_rec): Declare.
8160
4834dad0
TT
81612020-04-08 Tom Tromey <tromey@adacore.com>
8162
8163 * windows-nat.c: Add "using namespace".
8164 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8165 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8166
65bafd5b
TT
81672020-04-08 Tom Tromey <tromey@adacore.com>
8168
8169 * nat/windows-nat.h (struct windows_thread_info): Declare
8170 destructor.
8171 * nat/windows-nat.c (~windows_thread_info): New.
8172
0a4afda3
TT
81732020-04-08 Tom Tromey <tromey@adacore.com>
8174
8175 PR gdb/22992
8176 * windows-nat.c (current_event): Update comment.
8177 (last_wait_event, desired_stop_thread_id): New globals.
8178 (struct pending_stop): New.
8179 (pending_stops): New global.
8180 (windows_nat_target) <stopped_by_sw_breakpoint>
8181 <supports_stopped_by_sw_breakpoint>: New methods.
8182 (windows_fetch_one_register): Add assertions. Adjust PC.
8183 (windows_continue): Handle pending stops. Suspend other threads
8184 when stepping. Use last_wait_event
8185 (wait_for_debug_event): New function.
8186 (get_windows_debug_event): Use wait_for_debug_event. Handle
8187 pending stops. Queue spurious stops.
8188 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8189 (windows_nat_target::kill): Use wait_for_debug_event.
8190 * nat/windows-nat.h (struct windows_thread_info)
8191 <stopped_at_software_breakpoint>: New field.
8192 * nat/windows-nat.c (windows_thread_info::resume): Clear
8193 stopped_at_software_breakpoint.
8194
8e61ebec
TT
81952020-04-08 Tom Tromey <tromey@adacore.com>
8196
8197 * windows-nat.c (enum thread_disposition_type): New.
8198 (thread_rec): Replace "get_context" parameter with "disposition";
8199 change type.
8200 (windows_add_thread, windows_nat_target::fetch_registers)
8201 (windows_nat_target::store_registers, handle_exception)
8202 (windows_nat_target::resume, get_windows_debug_event)
8203 (windows_nat_target::get_tib_address)
8204 (windows_nat_target::thread_name)
8205 (windows_nat_target::thread_alive): Update.
8206
98a03287
TT
82072020-04-08 Tom Tromey <tromey@adacore.com>
8208
8209 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8210 (windows_continue): Use windows_continue::resume.
8211 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8212 resume>: Declare new methods.
8213 * nat/windows-nat.c: New file.
8214 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8215
7c7411bc
TT
82162020-04-08 Tom Tromey <tromey@adacore.com>
8217
8218 * windows-nat.c (windows_add_thread, windows_delete_thread)
8219 (windows_nat_target::fetch_registers)
8220 (windows_nat_target::store_registers, fake_create_process)
8221 (windows_nat_target::resume, windows_nat_target::resume)
8222 (get_windows_debug_event, windows_nat_target::wait)
8223 (windows_nat_target::pid_to_str)
8224 (windows_nat_target::get_tib_address)
8225 (windows_nat_target::get_ada_task_ptid)
8226 (windows_nat_target::thread_name)
8227 (windows_nat_target::thread_alive): Use lwp, not tid.
8228
2950fdf7
TT
82292020-04-08 Tom Tromey <tromey@adacore.com>
8230
8231 * windows-nat.c (handle_exception)
8232 (windows_nat_target::thread_name): Update.
8233 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8234 <name>: Now unique_xmalloc_ptr.
8235
62fe396b
TT
82362020-04-08 Tom Tromey <tromey@adacore.com>
8237
8238 * windows-nat.c (thread_rec)
8239 (windows_nat_target::fetch_registers): Update.
8240 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8241 Update comment.
8242 <debug_registers_changed, reload_context>: Now bool.
8243
e9534bd2
TT
82442020-04-08 Tom Tromey <tromey@adacore.com>
8245
8246 * windows-nat.c (windows_add_thread): Use new.
8247 (windows_init_thread_list, windows_delete_thread): Use delete.
8248 (get_windows_debug_event): Update.
8249 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8250 destructor, and initializers.
8251
ae1f8880
TT
82522020-04-08 Tom Tromey <tromey@adacore.com>
8253
8254 * windows-nat.c (struct windows_thread_info): Remove.
8255 * nat/windows-nat.h: New file.
8256
55a1e039
TT
82572020-04-08 Tom Tromey <tromey@adacore.com>
8258
8259 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8260 (thread_rec, windows_add_thread, windows_delete_thread)
8261 (windows_continue): Update.
8262
93366324
TT
82632020-04-08 Tom Tromey <tromey@adacore.com>
8264
8265 * windows-nat.c (struct windows_thread_info): Remove typedef.
8266 (thread_head): Remove.
8267 (thread_list): New global.
8268 (thread_rec, windows_add_thread, windows_init_thread_list)
8269 (windows_delete_thread, windows_continue): Update.
8270
0f2265e2
SM
82712020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8272
8273 * windows-tdep.h (windows_init_abi): Add comment.
8274 (cygwin_init_abi): New declaration.
8275 * windows-tdep.c: Split signal enumeration in two, one for
8276 Windows and one for Cygwin.
8277 (windows_gdb_signal_to_target): Only deal with signal of the
8278 Windows OS ABI.
8279 (cygwin_gdb_signal_to_target): New function.
8280 (windows_init_abi): Rename to windows_init_abi_common, don't set
8281 gdb_signal_to_target gdbarch method. Add new new function with
8282 this name.
8283 (cygwin_init_abi): New function.
8284 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8285 comment. Don't call windows_init_abi.
8286 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8287 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8288 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8289 i386_windows_init_abi_common, don't call windows_init_abi. Add
8290 a new function of this name.
8291 (i386_cygwin_init_abi): New function.
8292 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8293 OS ABI Cygwin.
8294
3810f182
SM
82952020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8296
8297 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8298 parameter.c.
8299 (dwarf2_read_gdb_index): Update.
8300
063f8e80
KR
83012020-04-07 Kamil Rytarowski <n54@gmx.com>
8302
8303 * nbsd-tdep.c: Include "objfiles.h".
8304 (nbsd_skip_solib_resolver): New.
8305 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8306
85a9510c 83072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8308
8309 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8310 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8311 with DW_LLE_base_addressx are being emitted in DWARFv5.
8312 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8313 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8314 unsigned integer.
8315
9fc3eaae 83162020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8317
8318 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8319 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8320 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8321 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8322 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8323 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8324 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8325
8326
41144253 83272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8328
8329 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8330 (read_loclist_index): New function definition.
8331 (lookup_loclist_base): New function definition.
8332 (read_loclist_header): New function definition.
8333 (dwarf2_cu): Add loclist_base and loclist_header field.
8334 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8335 (read_full_die_1): Read the value of DW_AT_loclists_base.
8336 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8337 (read_attribute_value): Handle DW_FORM_loclistx.
8338 (skip_one_die): Handle DW_FORM_loclistx.
8339 (loclist_header): New structure declaration.
8340 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8341
9f4e76a4
SM
83422020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8343
8344 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8345 constructor. Remove `addr` parameter from other constructor and
8346 add `per_cu` parameter.
8347 * dwarf2/read.c (create_partial_symtab): Update.
8348
25c11aca
TV
83492020-04-07 Tom de Vries <tdevries@suse.de>
8350
8351 PR symtab/25796
8352 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8353 (partial_die_info::fixup): Inherit has_const_value.
8354
5707e24b
TV
83552020-04-07 Tom de Vries <tdevries@suse.de>
8356
8357 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8358 symbols without address.
8359
05f00e22
KR
83602020-04-06 Kamil Rytarowski <n54@gmx.com>
8361
8362 * nbsd-nat.h (struct thread_info): Add forward declaration.
8363 (nbsd_nat_target::thread_alive): Add.
8364 (nbsd_nat_target::thread_name): Likewise.
8365 (nbsd_nat_target::update_thread_list): Likewise.
8366 (update_thread_list::post_attach): Likewise.
8367 (post_attach::pid_to_str): Likewise.
8368 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8369 (nbsd_thread_lister): Add.
8370 (nbsd_nat_target::thread_alive): Likewise.
8371 (nbsd_nat_target::thread_name): Likewise.
8372 (nbsd_add_threads): Likewise.
8373 (update_thread_list::post_attach): Likewise.
8374 (nbsd_nat_target::update_thread_list): Likewise.
8375 (post_attach::pid_to_str): Likewise.
8376
6ee448cc
TT
83772020-04-06 Tom Tromey <tromey@adacore.com>
8378
8379 * ada-valprint.c (print_variant_part): Extract the variant field.
8380 (print_field_values): Use the field as the outer value when
8381 recursing.
8382
dea34e8c
TT
83832020-04-06 Tom Tromey <tromey@adacore.com>
8384
8385 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8386 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8387 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8388 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8389 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8390
93689ce9
TT
83912020-04-06 Tom Tromey <tromey@adacore.com>
8392
8393 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8394 TYPE_CODE_ERROR.
8395
79743962
KR
83962020-04-06 Kamil Rytarowski <n54@gmx.com>
8397
8398 * nbsd-tdep.c: Include "gdbarch.h".
8399 Define enum with NetBSD signal numbers.
8400 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8401 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8402 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8403 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8404 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8405 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8406 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8407 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8408 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8409 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8410 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8411 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8412
9e7c9a03
HD
84132020-04-03 Hannes Domani <ssbssa@yahoo.de>
8414
8415 PR gdb/25325
8416 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8417
d9e49b61
TT
84182020-04-03 Tom Tromey <tromey@adacore.com>
8419
8420 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8421 Read constant block.
8422
e0fc5c3f
SM
84232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8424
8425 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8426 (gdb_bfd_get_full_section_contents): New declaration.
8427 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8428 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8429 gdb_bfd_get_full_section_contents.
8430
e2ff18a0
SM
84312020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8432
8433 * exec.c (build_section_table): Replace internal_error with
8434 gdb_assert.
8435 (section_table_xfer_memory_partial): Likewise.
8436 * mdebugread.c (parse_partial_symbols): Likewise.
8437 * psymtab.c (lookup_partial_symbol): Likewise.
8438 * utils.c (wrap_here): Likewise.
8439
0830d301
TT
84402020-04-02 Tom Tromey <tromey@adacore.com>
8441
8442 * f-lang.c (build_fortran_types): Use arch_type to initialize
8443 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8444
e7da7f8f
TT
84452020-04-02 Tom Tromey <tromey@adacore.com>
8446
8447 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8448 of attributes.
8449
c90d28ac
AB
84502020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8451 Bernd Edlinger <bernd.edlinger@hotmail.de>
8452 Tom Tromey <tromey@adacore.com>
8453
8454 * buildsym.c (buildsym_compunit::record_line): Remove
8455 deduplication code.
8456
1aa98955
TV
84572020-04-02 Tom de Vries <tdevries@suse.de>
8458
8459 PR ada/24671
8460 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8461
d3214198
TV
84622020-04-02 Tom de Vries <tdevries@suse.de>
8463
8464 * dwarf2/read.c (dwarf2_gdb_index_functions,
8465 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8466 NULL.
8467 * psymtab.c (psym_lookup_global_symbol_language): New function.
8468 (psym_functions): Init psym_lookup_global_symbol_language with
8469 psym_lookup_global_symbol_language.
8470 * symfile-debug.c (debug_sym_quick_functions): Init
8471 lookup_global_symbol_language with NULL.
8472 * symfile.c (set_initial_language): Remove fixme comment.
8473 * symfile.h (struct quick_symbol_functions): Add
8474 lookup_global_symbol_language.
8475 * symtab.c (find_quick_global_symbol_language): New function.
8476 (find_main_name): Use find_quick_global_symbol_language.
8477
2836752f
SM
84782020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8481
64dc2d4b
BE
84822020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8483
8484 * buildsym.c (record_line): Fix undefined behavior and preserve
8485 lines at eof.
8486
bbe3dc41
BE
84872020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8488
8489 * buildsym.c (record_line): Fix the resizing condition.
8490
6b4a335b
TT
84912020-04-01 Tom Tromey <tom@tromey.com>
8492
8493 * value.h (value_literal_complex): Add comment.
8494 * valops.c (value_literal_complex): Refer to value.h.
8495
3638a098
TT
84962020-04-01 Tom Tromey <tom@tromey.com>
8497
8498 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8499 (scalar_type): New rule, from typebase.
8500 (typebase): Use scalar_type. Recognize complex types.
8501 (field_name): Handle FLOAT_KEYWORD.
8502 (ident_tokens): Add _Complex and __complex__.
8503
c34e8714
TT
85042020-04-01 Tom Tromey <tom@tromey.com>
8505
8506 PR exp/25299:
8507 * valarith.c (promotion_type, complex_binop): New functions.
8508 (scalar_binop): Handle complex numbers. Use promotion_type.
8509 (value_pos, value_neg, value_complement): Handle complex numbers.
8510
fa649bb7
TT
85112020-04-01 Tom Tromey <tom@tromey.com>
8512
8513 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8514 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8515 (parse_number): Handle complex numbers.
8516
981c08ce
TT
85172020-04-01 Tom Tromey <tom@tromey.com>
8518
8519 * c-valprint.c (c_decorations): Change complex suffix to "i".
8520
4c99290d
TT
85212020-04-01 Tom Tromey <tom@tromey.com>
8522
8523 * valprint.c (generic_value_print_complex): Use accessors.
8524 * value.h (value_real_part, value_imaginary_part): Declare.
8525 * valops.c (value_real_part, value_imaginary_part): New
8526 functions.
8527 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8528
5b930b45
TT
85292020-04-01 Tom Tromey <tom@tromey.com>
8530
8531 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8532 (read_range_type): Update.
8533 * mdebugread.c (basic_type): Update.
8534 * go-lang.c (build_go_types): Use init_complex_type.
8535 * gdbtypes.h (struct main_type) <complex_type>: New member.
8536 (init_complex_type): Update.
8537 (arch_complex_type): Don't declare.
8538 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8539 Make name if none given. Use alloc_type_copy. Look for cached
8540 complex type.
8541 (arch_complex_type): Remove.
8542 (gdbtypes_post_init): Use init_complex_type.
8543 * f-lang.c (build_fortran_types): Use init_complex_type.
8544 * dwarf2/read.c (read_base_type): Update.
8545 * d-lang.c (build_d_types): Use init_complex_type.
8546 * ctfread.c (read_base_type): Update.
8547
53cccef1
TBA
85482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8549
8550 * infrun.c (stop_all_threads): Update assertion, plus when
8551 stopping threads, take into account that we might be trying
8552 to stop an all-stop target.
8553 (stop_waiting): Call 'stop_all_threads' if there exists a
8554 non-stop target.
8555
a0714d30
TBA
85562020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8557
8558 * target.h (exists_non_stop_target): New function declaration.
8559 * target.c (exists_non_stop_target): New function.
8560
60e22c1e
HD
85612020-04-01 Hannes Domani <ssbssa@yahoo.de>
8562
8563 PR gdb/24789
8564 * eval.c (is_integral_or_integral_reference): New function.
8565 (evaluate_subexp_standard): Allow integer references in
8566 pointer arithmetic.
8567
e139a727
TBA
85682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8569
8570 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8571 check for no ptid in the stop reply when the target is non-stop.
8572
e0802d59
TT
85732020-04-01 Tom Tromey <tromey@adacore.com>
8574
8575 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8576 "name" parameter to rvalue reference. Initialize m_name_holder.
8577 <lookup_name_info>: New overloads.
8578 <name>: Return gdb::string_view.
8579 <c_str>: New method.
8580 <make_ignore_params>: Update.
8581 <search_name_hash>: Update.
8582 <language_lookup_name>: Return const char *.
8583 <m_name>: Change type.
8584 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8585 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8586 (lookup_name_info::match_any): Update.
8587 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8588 Update.
8589 * minsyms.c (linkage_name_str): Update.
8590 * language.c (default_symbol_name_matcher): Update.
8591 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8592 Update.
8593 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8594 (ada_lookup_name_info::ada_lookup_name_info): Update.
8595 (literal_symbol_name_matcher): Update.
8596
8c072cb6
TT
85972020-04-01 Tom Tromey <tromey@adacore.com>
8598
8599 * psymtab.c (psymtab_search_name): Remove function.
8600 (psym_lookup_symbol): Create search name and lookup name here.
8601 (lookup_partial_symbol): Remove "name" parameter; add
8602 lookup_name.
8603 (psym_expand_symtabs_for_function): Update.
8604
6f29a534
TT
86052020-03-31 Joel Jones <joelkevinjones@gmail.com>
8606
8607 PR tui/25597:
8608 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8609
af62665e
TT
86102020-03-31 Tom Tromey <tromey@adacore.com>
8611
8612 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8613 memcpy.
8614
d1a89da5
NC
86152020-03-30 Nelson Chu <nelson.chu@sifive.com>
8616
8617 * features/riscv/32bit-csr.xml: Regenerated.
8618 * features/riscv/64bit-csr.xml: Regenerated.
8619
d8af9068
TT
86202020-03-30 Tom Tromey <tromey@adacore.com>
8621
8622 * ada-valprint.c (print_variant_part): Update.
8623 * ada-lang.h (ada_which_variant_applies): Update.
8624 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8625 outer_valaddr parameters; replace with "outer" value parameter.
8626 (to_fixed_variant_branch_type): Update.
8627
227c0bf4
PFC
86282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8629
8630 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8631 <list>. Remove inclusion of observable.h.
8632 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8633 (struct arch_lwp_info): New struct.
8634 (class ppc_linux_dreg_interface): New class.
8635 (struct ppc_linux_process_info): New struct.
8636 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8637 <low_new_clone, low_forget_process, low_prepare_to_resume>
8638 <copy_thread_dreg_state, mark_thread_stale>
8639 <mark_debug_registers_changed, register_hw_breakpoint>
8640 <clear_hw_breakpoint, register_wp, clear_wp>
8641 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8642 <num_memory_accesses, get_trigger_type>
8643 <create_watchpoint_request, hwdebug_point_cmp>
8644 <init_arch_lwp_info, get_arch_lwp_info>
8645 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8646 methods.
8647 <struct ptid_hash>: New inner struct.
8648 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8649 members.
8650 (saved_dabr_value, hwdebug_info, max_slots_number)
8651 (struct hw_break_tuple, struct thread_points, ppc_threads)
8652 (have_ptrace_hwdebug_interface)
8653 (hwdebug_find_thread_points_by_tid)
8654 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8655 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8656 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8657 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8658 use m_dreg_interface.
8659 (hwdebug_point_cmp): Change to...
8660 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8661 reference arguments instead of pointers.
8662 (ppc_linux_nat_target::ranged_break_num_registers): Use
8663 m_dreg_interface.
8664 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8665 m_dreg_interface. Call register_hw_breakpoint.
8666 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8667 m_dreg_interface. Call clear_hw_breakpoint.
8668 (get_trigger_type): Change to...
8669 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8670 comment.
8671 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8672 use m_dreg_interface. Call register_hw_breakpoint.
8673 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8674 use m_dreg_interface. Call clear_hw_breakpoint.
8675 (can_use_watchpoint_cond_accel): Change to...
8676 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8677 method. Update comment, use m_dreg_interface and
8678 m_process_info.
8679 (calculate_dvc): Change to...
8680 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8681 m_dreg_interface.
8682 (num_memory_accesses): Change to...
8683 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8684 (check_condition): Change to...
8685 (ppc_linux_nat_target::check_condition): ...this method.
8686 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8687 comment, use m_dreg_interface.
8688 (create_watchpoint_request): Change to...
8689 (ppc_linux_nat_target::create_watchpoint_request): ...this
8690 method. Use m_dreg_interface.
8691 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8692 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8693 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8694 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8695 (ppc_linux_nat_target::low_forget_process)
8696 (ppc_linux_nat_target::low_new_fork)
8697 (ppc_linux_nat_target::low_new_clone)
8698 (ppc_linux_nat_target::low_delete_thread)
8699 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8700 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8701 only call mark_thread_stale.
8702 (ppc_linux_thread_exit): Remove.
8703 (ppc_linux_nat_target::stopped_data_address): Change to...
8704 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8705 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8706 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8707 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8708 comment. Call low_stopped_data_address.
8709 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8710 m_dreg_interface.
8711 (ppc_linux_nat_target::masked_watch_num_registers): Use
8712 m_dreg_interface.
8713 (ppc_linux_nat_target::copy_thread_dreg_state)
8714 (ppc_linux_nat_target::mark_thread_stale)
8715 (ppc_linux_nat_target::mark_debug_registers_changed)
8716 (ppc_linux_nat_target::register_hw_breakpoint)
8717 (ppc_linux_nat_target::clear_hw_breakpoint)
8718 (ppc_linux_nat_target::register_wp)
8719 (ppc_linux_nat_target::clear_wp)
8720 (ppc_linux_nat_target::init_arch_lwp_info)
8721 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8722 (_initialize_ppc_linux_nat): Remove observer callback.
8723
4db10d8f
PFC
87242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8725
8726 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8727 (ppc_linux_nat_target::auxv_parse)
8728 (ppc_linux_nat_target::read_description)
8729 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8730 Move up.
8731
1310c1b0
PFC
87322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8733
8734 * linux-nat.h (low_new_clone): New method.
8735 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8736
69b037c3
SM
87372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8738
8739 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8740 (dbx_expand_psymtab): ... this.
8741 (start_psymtab): Update.
8742 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8743 (mdebug_expand_psymtab): ... this.
8744 (parse_partial_symbols): Update.
8745 (new_psymtab): Update.
8746 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8747 (xcoff_expand_psymtab): ... this.
8748 (xcoff_start_psymtab): Update.
8749
48993951
SM
87502020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8751
8752 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8753 <expand_dependencies>: ... this.
8754 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8755 (partial_symtab::expand_dependencies): ... this.
8756 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8757 Update.
8758 (dwarf2_psymtab::expand_psymtab): Update.
8759 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8760 * mdebugread.c (psymtab_to_symtab_1): Update.
8761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8762
3ad83046
SM
87632020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8764
8765 * psympriv.h (discard_psymtab): Remove.
8766 * dbxread.c (dbx_end_psymtab): Update.
8767 * xcoffread.c (xcoff_end_psymtab): Update.
8768
4d1b9ab6
TT
87692020-03-28 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8772 comment.
8773
f1749218
TT
87742020-03-28 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8777
ebea7626
HD
87782020-03-27 Hannes Domani <ssbssa@yahoo.de>
8779
8780 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8781
a879b4d5
JB
87822020-03-26 John Baldwin <jhb@FreeBSD.org>
8783
8784 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8785
0826b30a
TT
87862020-03-26 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8789 (mark_common_block_symbol_computed, read_tag_string_type)
8790 (attr_to_dynamic_prop, read_subrange_type): Update.
8791 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8792 to be methods on struct attribute.
8793 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8794 (read_call_site_scope, partial_die_info::read)
8795 (partial_die_info::read, lookup_die_type, follow_die_ref):
8796 Update.
8797 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8798 from dwarf2_get_ref_die_offset.
8799 (attribute::constant_value): New method, from
8800 dwarf2_get_attr_constant_value.
8801 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8802 Declare method.
8803 <constant_value>: New method.
8804
2b2558bf
TT
88052020-03-26 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8808 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8809 (dwarf_type_encoding_name): Move to stringify.c.
8810 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8811 * dwarf2/stringify.c: New file.
8812 * dwarf2/stringify.h: New file.
8813
eeb64781
TT
88142020-03-26 Tom Tromey <tom@tromey.com>
8815
8816 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8817 Rewrite.
8818
a39fdb41
TT
88192020-03-26 Tom Tromey <tom@tromey.com>
8820
8821 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8822 methods.
8823 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8824 (lookup_ranges_base): Likewise.
8825 (read_cutu_die_from_dwo, read_full_die_1): Update.
8826
436c571c
TT
88272020-03-26 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.c (read_import_statement, read_file_scope)
8830 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8831 (read_lexical_block_scope, read_call_site_scope)
8832 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8833 (handle_struct_member_die, process_structure_scope)
8834 (update_enumeration_type_from_children)
8835 (process_enumeration_scope, read_array_type, read_common_block)
8836 (read_namespace, read_module, read_subroutine_type): Update.
8837 (sibling_die): Remove.
8838
052c8bb8
TT
88392020-03-26 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8842 (build_type_psymtabs_reader, read_structure_type)
8843 (read_enumeration_type, read_full_die_1): Update.
8844 (dwarf2_attr_no_follow): Move to die.h.
8845 * dwarf2/die.h (struct die_info) <attr>: New method.
8846
2b24b6e4
TT
88472020-03-26 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8850 <base_address>: Now an optional.
8851 (dwarf2_find_base_address, dwarf2_rnglists_process)
8852 (dwarf2_ranges_process, fill_in_loclist_baton)
8853 (dwarf2_symbol_mark_computed): Update.
8854
c2d50fd0
TT
88552020-03-26 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/read.c (struct die_info): Move to die.h.
8858 * dwarf2/die.h: New file.
8859
0df7ad3a
TT
88602020-03-26 Tom Tromey <tom@tromey.com>
8861
8862 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8863 * dwarf2/read.c
8864 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8865 Move to line-header.c.
8866 (read_checked_initial_length_and_offset, read_formatted_entries):
8867 Likewise.
8868 (dwarf_decode_line_header): Split into two.
8869 * dwarf2/line-header.c
8870 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8871 Move from read.c.
8872 (read_checked_initial_length_and_offset, read_formatted_entries):
8873 Likewise.
8874 (dwarf_decode_line_header): New function, split from read.c.
8875
86c0bb4c
TT
88762020-03-26 Tom Tromey <tom@tromey.com>
8877
8878 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8879 Declare method.
8880 * dwarf2/read.c (read_attribute_value): Update.
8881 (dwarf2_per_objfile::read_line_string): Rename from
8882 read_indirect_line_string.
8883 (read_formatted_entries): Update.
8884
2ef46c2f
TT
88852020-03-26 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8888 variable.
8889
4f9c1eda
TT
88902020-03-26 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8893 const.
8894 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8895 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8896 parameter const.
8897
5a0e026f
TT
88982020-03-26 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8901 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8902 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8903 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8904
8844c11b
TT
89052020-03-26 Tom Tromey <tom@tromey.com>
8906
8907 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8908 file_names_size, file_full_name, file_file_name>: Use const.
8909 <file_name_at, file_names>: Add const overload.
8910 * dwarf2/line-header.c (line_header::file_file_name)
8911 (line_header::file_full_name): Update.
8912
c90ec28a
TT
89132020-03-26 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8916 (macro_start_file, consume_improper_spaces)
8917 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8918 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8919 (dwarf_decode_macros): Move to macro.c.
8920 * dwarf2/macro.c: New file.
8921 * dwarf2/macro.h: New file.
8922 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8923
4f44ae6c
TT
89242020-03-26 Tom Tromey <tom@tromey.com>
8925
8926 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8927 method.
8928 * dwarf2/section.c: New method. From
8929 read_indirect_string_at_offset_from.
8930 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8931 (read_indirect_string_at_offset_from): Move to section.c.
8932 (read_indirect_string_at_offset): Rewrite.
8933 (read_indirect_line_string_at_offset): Remove.
8934 (read_indirect_string, read_indirect_line_string)
8935 (dwarf_decode_macro_bytes): Update.
8936
a0194fa8
TT
89372020-03-26 Tom Tromey <tom@tromey.com>
8938
8939 * dwarf2/section.h (struct dwarf2_section_info)
8940 <overload_complaint>: Declare.
8941 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8942 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8943 Rename from dwarf2_section_buffer_overflow_complaint.
8944 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8945 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8946
3d27bbdb
TT
89472020-03-26 Tom Tromey <tom@tromey.com>
8948
8949 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8950 Declare.
8951 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8952 Move from read.c.
8953 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8954 to section.c.
8955
9eac9650
TT
89562020-03-26 Tom Tromey <tom@tromey.com>
8957
8958 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8959
bf80d710
TT
89602020-03-26 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8963 "builder".
8964 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8965 parameter.
8966 (dwarf_decode_macros): Update.
8967
0314b390
TT
89682020-03-26 Tom Tromey <tom@tromey.com>
8969
8970 * dwarf2/read.c (read_attribute_value): Update.
8971 (read_indirect_string_from_dwz): Move to dwz.c; change into
8972 method.
8973 (dwarf_decode_macro_bytes): Update.
8974 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8975 * dwarf2/dwz.c: New file.
8976 * Makefile.in (COMMON_SFILES): Add dwz.c.
8977
9fda78b6
TT
89782020-03-26 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8981 * dwarf2/read.c: Add include.
8982 * dwarf2/index-write.c: Add include.
8983 * dwarf2/index-cache.c: Add include.
8984 * dwarf2/dwz.h: New file.
8985
33aa3c10
TT
89862020-03-25 Tom Tromey <tom@tromey.com>
8987
8988 * compile/compile-object-load.c (get_out_value_type): Mention
8989 correct symbol name in error message.
8990
d503b685
HD
89912020-03-25 Hannes Domani <ssbssa@yahoo.de>
8992
8993 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8994
7b1eff95
TV
89952020-03-25 Tom de Vries <tdevries@suse.de>
8996
8997 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8998 * symmisc.c (dump_symtab_1): Print user and includes fields.
8999 (maintenance_info_symtabs): Same.
9000
dd895392
AB
90012020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 PR gdb/25534
9004 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9005 (riscv_regcache_cooked_write): New function.
9006 (riscv_push_dummy_call): Use new function.
9007 (riscv_return_value): Likewise.
9008
5ab2fbf1
SM
90092020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9012 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9013 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9014 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9015 * infrun.c (follow_fork): Likewise.
9016 (follow_fork_inferior): Likewise.
9017 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9018 * linux-nat.h (class linux_nat_target): Likewise.
9019 * remote.c (class remote_target) <follow_fork>: Likewise.
9020 (remote_target::follow_fork): Likewise.
9021 * target-delegates.c: Re-generate.
9022 * target.c (default_follow_fork): Likewise.
9023 (target_follow_fork): Likewise.
9024 * target.h (struct target_ops) <follow_fork>: Likewise.
9025 (target_follow_fork): Likewise.
9026
a64fafb5
TV
90272020-03-24 Tom de Vries <tdevries@suse.de>
9028
9029 * psymtab.c (maintenance_info_psymtabs): Print user field.
9030
fe26d3a3
TT
90312020-03-20 Tom Tromey <tromey@adacore.com>
9032
9033 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9034 const.
9035 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9036 const.
9037
c884cc46
SM
90382020-03-20 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * ptrace.m4: Don't check for ptrace declaration.
9041 * config.in: Re-generate.
9042 * configure: Re-generate.
9043 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9044 not defined.
9045
1ff700c2
KR
90462020-03-20 Kamil Rytarowski <n54@gmx.com>
9047
9048 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9049 `PTRACE_TYPE_RET'.
9050 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9051 * sparc-nat.c (gdb_ptrace): Likewise.
9052 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9053
f7d4f0b1
TT
90542020-03-20 Tom Tromey <tromey@adacore.com>
9055
9056 * c-exp.y (lex_one_token): Fix assert.
9057
f67210ff
TT
90582020-03-20 Tom Tromey <tromey@adacore.com>
9059
9060 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9061 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9062 strncpy call.
9063
1773be9e
TT
90642020-03-20 Tom Tromey <tromey@adacore.com>
9065
9066 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9067
70304be9
TT
90682020-03-20 Tom Tromey <tromey@adacore.com>
9069
9070 * ada-valprint.c (print_variant_part): Remove parameters; switch
9071 to value-based API.
9072 (print_field_values): Likewise.
9073 (ada_val_print_struct_union): Likewise.
9074 (ada_value_print_1): Update.
9075
9faa006d
KR
90762020-03-20 Kamil Rytarowski <n54@gmx.com>
9077
9078 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9079 nbsd_nat_target instead of inf_ptrace_target.
9080 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9081 nbsd_nat_target.
9082
4a90f062
KR
90832020-03-20 Kamil Rytarowski <n54@gmx.com>
9084
9085 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9086 it to the ptrace call.
9087 * (store_registers): Likewise.
9088
90892020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9090
9091 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9092 it to the ptrace call.
9093 * (store_registers): Likewise.
9094
2d07da27
LM
90952020-03-19 Luis Machado <luis.machado@linaro.org>
9096
9097 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9098 valid, fetch vg value from ptrace.
9099
f09db380
KR
91002020-03-19 Kamil Rytarowski <n54@gmx.com>
9101 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9102 * inf-ptrace.c: Likewise.
9103 * (gdb_ptrace): Add.
9104 * (inf_ptrace_target::resume): Update.
9105 * (inf_ptrace_target::xfer_partial): Likewise.
9106 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9107 * (inf_ptrace_peek_poke): Update.
9108
fcc7376e
KR
91092020-03-19 Kamil Rytarowski <n54@gmx.com>
9110
9111 * x86-bsd-nat.c (gdb_ptrace): New.
9112 * (x86bsd_dr_set): Add new argument `ptid'.
9113 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9114 x86bsd_dr_set_addr): Update.
9115
cada5fc9
AB
91162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9117
9118 * remote.c (remote_target::process_stop_reply): Handle events for
9119 all threads differently.
9120
19a2740f
AB
91212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9122
9123 * completer.c (completion_tracker::remove_completion): Define new
9124 function.
9125 * completer.h (completion_tracker::remove_completion): Declare new
9126 function.
9127 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9128 when adding a C++ function symbol.
9129
724fd9ba
AB
91302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9131
9132 * completer.c (completion_tracker::completion_hash_entry): Define
9133 new class.
9134 (advance_to_filename_complete_word_point): Call
9135 recompute_lowest_common_denominator.
9136 (completion_tracker::completion_tracker): Call discard_completions
9137 to setup the hash table.
9138 (completion_tracker::discard_completions): Allow for being called
9139 from the constructor, pass new equal function, and element deleter
9140 when constructing the hash table. Initialise new class member
9141 variables.
9142 (completion_tracker::maybe_add_completion): Remove use of
9143 m_entries_vec, and store more information into m_entries_hash.
9144 (completion_tracker::recompute_lcd_visitor): New function, most
9145 content taken from...
9146 (completion_tracker::recompute_lowest_common_denominator):
9147 ...here, this now just visits each item in the hash calling the
9148 above visitor.
9149 (completion_tracker::build_completion_result): Remove use of
9150 m_entries_vec, call recompute_lowest_common_denominator.
9151 * completer.h (completion_tracker::have_completions): Remove use
9152 of m_entries_vec.
9153 (completion_tracker::completion_hash_entry): Declare new class.
9154 (completion_tracker::recompute_lowest_common_denominator): Change
9155 function signature.
9156 (completion_tracker::recompute_lcd_visitor): Declare new function.
9157 (completion_tracker::m_entries_vec): Delete.
9158 (completion_tracker::m_entries_hash): Initialize to NULL.
9159 (completion_tracker::m_lowest_common_denominator_valid): New
9160 member variable.
9161 (completion_tracker::m_lowest_common_denominator_max_length): New
9162 member variable.
9163
5a82b8a1
KR
91642020-03-17 Kamil Rytarowski <n54@gmx.com>
9165
9166 * regformats/regdef.h: Put reg in gdb namespace.
9167
fb516a69
KR
91682020-03-17 Kamil Rytarowski <n54@gmx.com>
9169
9170 * i386-bsd-nat.c (gdb_ptrace): New.
9171 * (i386bsd_fetch_inferior_registers,
9172 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9173 * (i386bsd_fetch_inferior_registers,
9174 i386bsd_store_inferior_registers) Use gdb_ptrace.
9175
1c0aa1fb
KR
91762020-03-17 Kamil Rytarowski <n54@gmx.com>
9177
9178 * amd64-bsd-nat.c (gdb_ptrace): New.
9179 * (amd64bsd_fetch_inferior_registers,
9180 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9181 * (amd64bsd_fetch_inferior_registers,
9182 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9183
5ccd2fb7
KR
91842020-03-17 Kamil Rytarowski <n54@gmx.com>
9185
9186 * user-regs.c (user_reg::read): Rename to...
9187 (user_reg::xread): ...this.
9188 * (append_user_reg): Rename argument `read' to `xread'.
9189 * (user_reg_add_builtin): Likewise.
9190 * (user_reg_add): Likewise.
9191 * (value_of_user_reg): Likewise.
9192
2108a63a
KR
91932020-03-17 Kamil Rytarowski <n54@gmx.com>
9194
9195 * sparc-nat.c (gdb_ptrace): New.
9196 * sparc-nat.c (sparc_fetch_inferior_registers)
9197 (sparc_store_inferior_registers) Remove obsolete comment.
9198 * sparc-nat.c (sparc_fetch_inferior_registers)
9199 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9200 * sparc-nat.c (sparc_fetch_inferior_registers)
9201 (sparc_store_inferior_registers) Use gdb_ptrace.
9202
a225c9a8
KR
92032020-03-17 Kamil Rytarowski <n54@gmx.com>
9204
9205 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9206 it to the ptrace call.
9207 * sh-nbsd-nat.c (store_registers): Likewise.
9208
98097623
KR
92092020-03-17 Kamil Rytarowski <n54@gmx.com>
9210
9211 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9212 nbsd_nat_target instead of inf_ptrace_target.
9213 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9214 nbsd_nat_target.
9215
9e38d619
KR
92162020-03-17 Kamil Rytarowski <n54@gmx.com>
9217
9218 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9219
a2ecbe9f
KR
92202020-03-17 Kamil Rytarowski <n54@gmx.com>
9221
9222 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9223 <sys/sysctl.h>.
9224 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9225
58990295
TV
92262020-03-17 Tom de Vries <tdevries@suse.de>
9227
9228 PR gdb/23710
9229 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9230 fields.
9231 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9232 fields.
9233 (process_imported_unit_die): Skip import of c++ CUs.
9234
771dd3a8
TT
92352020-03-16 Tom Tromey <tom@tromey.com>
9236
9237 * p-valprint.c (pascal_object_print_value): Initialize
9238 base_value.
9239
817a7585
AK
92402020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9241 Shahab Vahedi <shahab@synopsys.com>
9242
9243 * Makefile.in: Add arch/arc.o
9244 * configure.tgt: Likewise.
9245 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9246 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9247 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9248 * arc-tdep.h (arc_read_description): Add proto type.
9249 * arch/arc.c: New file.
9250 * arch/arc.h: Likewise.
9251 * features/Makefile: Replace old target descriptions with new.
9252 * features/arc-arcompact.c: Remove.
9253 * features/arc-arcompact.xml: Likewise.
9254 * features/arc-v2.c: Likewise
9255 * features/arc-v2.xml: Likewise
9256 * features/arc/aux-arcompact.xml: New file.
9257 * features/arc/aux-v2.xml: Likewise.
9258 * features/arc/core-arcompact.xml: Likewise.
9259 * features/arc/core-v2.xml: Likewise.
9260 * features/arc/aux-arcompact.c: Generate.
9261 * features/arc/aux-v2.c: Likewise.
9262 * features/arc/core-arcompact.c: Likewise.
9263 * features/arc/core-v2.c: Likewise.
9264 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9265
67430cd0
TT
92662020-03-16 Tom Tromey <tromey@adacore.com>
9267
9268 PR gdb/25663:
9269 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9270 putting value into bcache.
9271
30efb6c7
SM
92722020-03-16 Simon Marchi <simon.marchi@efficios.com>
9273
9274 PR gdb/21500
9275 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9276 to...
9277 (amd64_windows_init_abi_common): ... this. Don't set size of
9278 long type.
9279 (amd64_windows_init_abi): New function.
9280 (amd64_cygwin_init_abi): New function.
9281 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9282 the Cygwin OS ABI.
9283 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9284 comment.
9285
8db52437
SM
92862020-03-16 Simon Marchi <simon.marchi@efficios.com>
9287
9288 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9289 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9290 (pe_import_directory_entry): New struct type.
9291 (is_linked_with_cygwin_dll): New function.
9292 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9293 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9294 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9295
5982a56a
SM
92962020-03-16 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9299 i386_cygwin_core_osabi_sniffer.
9300
7a1998df
SM
93012020-03-16 Simon Marchi <simon.marchi@efficios.com>
9302
9303 * i386-cygwin-tdep.c: Rename to...
9304 * i386-windows-tdep.c: ... this.
9305 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9306 i386-windows-tdep.c.
9307 * configure.tgt: Likewise.
9308
053205cc
SM
93092020-03-16 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9312 * osabi.c (gdb_osabi_names): Add "Windows".
9313 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9314 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9315 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9316 i386_cygwin_osabi_sniffer.
9317 (_initialize_i386_cygwin_tdep): Register OS ABI
9318 GDB_OSABI_WINDOWS for i386.
9319 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9320 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9321 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9322 for x86-64.
9323 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9324 when the target matches '*-*-mingw*'.
9325
fe4b2ee6
SM
93262020-03-16 Simon Marchi <simon.marchi@efficios.com>
9327
9328 * defs.h (enum gdb_osabi): Move to...
9329 * osabi.h (enum gdb_osabi): ... here.
9330 * gdbarch.sh: Include osabi.h in gdbarch.h.
9331 * gdbarch.h: Re-generate.
9332
cb9b645d
SM
93332020-03-16 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9336 function.
9337 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9338
3293bbaf
TT
93392020-03-14 Tom Tromey <tom@tromey.com>
9340
9341 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9342 for C++.
9343 (c_type_print_modifier): Likewise. Add "language" parameter.
9344 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9345 (c_type_print_base_1): Update.
9346 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9347 constants.
9348 * type-stack.c (type_stack::insert): Handle tp_atomic and
9349 tp_restrict.
9350 (type_stack::follow_type_instance_flags): Likewise.
9351 (type_stack::follow_types): Likewise. Merge type-following code.
9352 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9353 (space_identifier, cv_with_space_id)
9354 (const_or_volatile_or_space_identifier_noopt)
9355 (const_or_volatile_or_space_identifier): Remove.
9356 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9357 rules.
9358 (ptr_operator, typebase): Update.
9359 (enum token_flag) <FLAG_C>: New constant.
9360 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9361 "_Atomic".
9362 (lex_one_token): Handle FLAG_C.
9363
154151a6
KR
93642020-03-14 Kamil Rytarowski <n54@gmx.com>
9365
9366 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9367 it to the ptrace call.
9368 * m68k-bsd-nat.c (store_registers): Likewise.
9369
bc107784
KR
93702020-03-14 Kamil Rytarowski <n54@gmx.com>
9371
9372 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9373 gdb_byte *.
9374 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9375 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9376 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9377
01a80117
KR
93782020-03-14 Kamil Rytarowski <n54@gmx.com>
9379
9380 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9381 nbsd_nat_target instead of inf_ptrace_target.
9382 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9383 nbsd_nat_target.
9384
f90280ca
KR
93852020-03-14 Kamil Rytarowski <n54@gmx.com>
9386
9387 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9388 register_t.
9389
6def66f1
KR
93902020-03-14 Kamil Rytarowski <n54@gmx.com>
9391
9392 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9393 it to the ptrace call.
9394 * alpha-bsd-nat.c (store_registers): Likewise.
9395
66eaca97
KR
93962020-03-14 Kamil Rytarowski <n54@gmx.com>
9397
9398 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9399 includes.
9400 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9401 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9402 fill_fpregset): Likewise.
9403
4fed520b
KR
94042020-03-14 Kamil Rytarowski <n54@gmx.com>
9405
9406 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9407 nbsd_nat_target instead of inf_ptrace_target.
9408 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9409 nbsd_nat_target.
9410
2190cf06
KR
94112020-03-14 Kamil Rytarowski <n54@gmx.com>
9412
9413 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9414 register_t.
9415
75c56d3d
KR
94162020-03-14 Kamil Rytarowski <n54@gmx.com>
9417
9418 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9419 it to the ptrace call.
9420 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9421 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9422 * arm-nbsd-nat.c (store_register): Likewise.
9423 * arm-nbsd-nat.c (store_regs): Likewise.
9424 * arm-nbsd-nat.c (store_fp_register): Likewise.
9425 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9426
6018d381
KR
94272020-03-14 Kamil Rytarowski <n54@gmx.com>
9428
9429 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9430 nbsd_nat_target instead of inf_ptrace_target.
9431 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9432 nbsd_nat_target.
9433
013f99f0
KR
94342020-03-14 Kamil Rytarowski <n54@gmx.com>
9435
9436 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9437 it to the ptrace call.
9438 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9439
12753073
KR
94402020-03-14 Kamil Rytarowski <n54@gmx.com>
9441
6227b330
KR
9442 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9443 it to the ptrace call.
9444 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9445
94462020-03-14 Kamil Rytarowski <n54@gmx.com>
9447
9448 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9449 gdb_byte *.
12753073
KR
9450 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9451
d5be5fa4
KR
94522020-03-14 Kamil Rytarowski <n54@gmx.com>
9453
9454 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9455 instead of inf_ptrace_target.
9456 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9457 nbsd_nat_target.
9458
8110f842
KR
94592020-03-14 Kamil Rytarowski <n54@gmx.com>
9460
9461 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9462 register_t.
9463
52feded7
KR
94642020-03-14 Kamil Rytarowski <n54@gmx.com>
9465
9466 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9467 register_t.
9468
25567eee
KR
94692020-03-14 Kamil Rytarowski <n54@gmx.com>
9470
9471 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9472 register_t.
9473
426a9c18
TT
94742020-03-13 Tom Tromey <tom@tromey.com>
9475
9476 * value.h (val_print): Don't declare.
9477 * valprint.h (val_print_array_elements)
9478 (val_print_scalar_formatted, generic_val_print): Don't declare.
9479 * valprint.c (generic_val_print_array): Take a struct value.
9480 (generic_val_print_ptr, generic_val_print_memberptr)
9481 (generic_val_print_bool, generic_val_print_int)
9482 (generic_val_print_char, generic_val_print_complex)
9483 (generic_val_print): Remove.
9484 (generic_value_print): Update.
9485 (do_val_print): Remove unused parameters. Don't call
9486 la_val_print.
9487 (val_print): Remove.
9488 (common_val_print): Update. Don't call value_check_printable.
9489 (val_print_scalar_formatted, val_print_array_elements): Remove.
9490 * rust-lang.c (rust_val_print): Remove.
9491 (rust_language_defn): Update.
9492 * p-valprint.c (pascal_val_print): Remove.
9493 (pascal_value_print_inner): Update.
9494 (pascal_object_print_val_fields, pascal_object_print_val):
9495 Remove.
9496 (pascal_object_print_static_field): Update.
9497 * p-lang.h (pascal_val_print): Don't declare.
9498 * p-lang.c (pascal_language_defn): Update.
9499 * opencl-lang.c (opencl_language_defn): Update.
9500 * objc-lang.c (objc_language_defn): Update.
9501 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9502 * m2-lang.h (m2_val_print): Don't declare.
9503 * m2-lang.c (m2_language_defn): Update.
9504 * language.h (struct language_defn) <la_val_print>: Remove.
9505 * language.c (unk_lang_value_print_inner): Rename. Change
9506 argument types.
9507 (unknown_language_defn, auto_language_defn): Update.
9508 * go-valprint.c (go_val_print): Remove.
9509 * go-lang.h (go_val_print): Don't declare.
9510 * go-lang.c (go_language_defn): Update.
9511 * f-valprint.c (f_val_print): Remove.
9512 * f-lang.h (f_value_print): Don't declare.
9513 * f-lang.c (f_language_defn): Update.
9514 * d-valprint.c (d_val_print): Remove.
9515 * d-lang.h (d_value_print): Don't declare.
9516 * d-lang.c (d_language_defn): Update.
9517 * cp-valprint.c (cp_print_value_fields)
9518 (cp_print_value_fields_rtti, cp_print_value): Remove.
9519 (cp_print_static_field): Update.
9520 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9521 (c_val_print_struct, c_val_print_union, c_val_print_int)
9522 (c_val_print_memberptr, c_val_print): Remove.
9523 * c-lang.h (c_val_print_array, cp_print_value_fields)
9524 (cp_print_value_fields_rtti): Don't declare.
9525 * c-lang.c (c_language_defn, cplus_language_defn)
9526 (asm_language_defn, minimal_language_defn): Update.
9527 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9528 (ada_val_print_enum): Take a struct value.
9529 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9530 (ada_val_print): Remove.
9531 (ada_value_print_1): Update.
9532 (printable_val_type): Remove.
9533 * ada-lang.h (ada_val_print): Don't declare.
9534 * ada-lang.c (ada_language_defn): Update.
9535
42331a1e
TT
95362020-03-13 Tom Tromey <tom@tromey.com>
9537
9538 * valprint.c (do_val_print): Update.
9539 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9540 a struct value.
9541 (value_to_value_object_no_release): Declare.
9542 * python/py-value.c (value_to_value_object_no_release): New
9543 function.
9544 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9545 struct value.
9546 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9547 function.
9548 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9549 a struct value.
9550 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9551 Declare.
9552 (gdbscm_apply_val_pretty_printer): Take a struct value.
9553 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9554 value.
9555 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9556 value.
9557 * extension-priv.h (struct extension_language_ops)
9558 <apply_val_pretty_printer>: Take a struct value.
9559 * cp-valprint.c (cp_print_value): Create a struct value.
9560 (cp_print_value): Update.
9561
3a916a97
TT
95622020-03-13 Tom Tromey <tom@tromey.com>
9563
9564 * ada-valprint.c (print_field_values): Call common_val_print.
9565
b59eac37
TT
95662020-03-13 Tom Tromey <tom@tromey.com>
9567
9568 * ada-valprint.c (val_print_packed_array_elements): Remove
9569 bitoffset and val parameters. Call common_val_print.
9570 (ada_val_print_string): Remove offset, address, and original_value
9571 parameters.
9572 (ada_val_print_array): Update.
9573 (ada_value_print_array): New function.
9574 (ada_value_print_1): Call it.
9575
03371129
TT
95762020-03-13 Tom Tromey <tom@tromey.com>
9577
9578 * ada-valprint.c (ada_value_print): Use common_val_print.
9579
2e088f8b
TT
95802020-03-13 Tom Tromey <tom@tromey.com>
9581
9582 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9583
39ef85a8
TT
95842020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * ada-valprint.c (ada_value_print_num): New function.
9587 (ada_value_print_1): Use it.
9588
b9fa6e07
TT
95892020-03-13 Tom Tromey <tom@tromey.com>
9590
9591 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9592
416595d6
TT
95932020-03-13 Tom Tromey <tom@tromey.com>
9594
9595 * ada-valprint.c (ada_value_print_ptr): New function.
9596 (ada_value_print_1): Use it.
9597
5b5e15ec
TT
95982020-03-13 Tom Tromey <tom@tromey.com>
9599
9600 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9601 call common_val_print.
9602 (ada_val_print_1): Update.
9603 (ada_value_print_1): New function.
9604 (ada_value_print_inner): Rewrite.
9605
fbf54e75
TT
96062020-03-13 Tom Tromey <tom@tromey.com>
9607
9608 * cp-valprint.c (cp_print_value_fields): Update.
9609 (cp_print_value): New function.
9610
64b653ca
TT
96112020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * m2-valprint.c (m2_value_print_inner): Use
9614 cp_print_value_fields.
9615 * cp-valprint.c (cp_print_value_fields): New function.
9616 * c-valprint.c (c_value_print_struct): New function.
9617 (c_value_print_inner): Use c_value_print_struct.
9618 * c-lang.h (cp_print_value_fields): Declare.
9619
6999f067
TT
96202020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * c-valprint.c (c_value_print_array): New function.
9623 (c_value_print_inner): Use it.
9624
ce80b8bd
TT
96252020-03-13 Tom Tromey <tom@tromey.com>
9626
9627 * c-valprint.c (c_value_print_memberptr): New function.
9628 (c_value_print_inner): Use it.
9629
2faac269
TT
96302020-03-13 Tom Tromey <tom@tromey.com>
9631
9632 * c-valprint.c (c_value_print_int): New function.
9633 (c_value_print_inner): Use it.
9634
da3e2c29
TT
96352020-03-13 Tom Tromey <tom@tromey.com>
9636
9637 * c-valprint.c (c_value_print_ptr): New function.
9638 (c_value_print_inner): Use it.
9639
50836231
TT
96402020-03-13 Tom Tromey <tom@tromey.com>
9641
9642 * c-valprint.c (c_value_print_inner): Rewrite.
9643
4f412b6e
TT
96442020-03-13 Tom Tromey <tom@tromey.com>
9645
9646 * valprint.c (generic_value_print_complex): New function.
9647 (generic_value_print): Use it.
9648
f5354008
TT
96492020-03-13 Tom Tromey <tom@tromey.com>
9650
9651 * valprint.c (generic_val_print_float): Don't call
9652 val_print_scalar_formatted.
9653 (generic_val_print, generic_value_print): Update.
9654
3eec3b05
TT
96552020-03-13 Tom Tromey <tom@tromey.com>
9656
9657 * valprint.c (generic_value_print_char): New function
9658 (generic_value_print): Use it.
9659
fdddfccb
TT
96602020-03-13 Tom Tromey <tom@tromey.com>
9661
9662 * valprint.c (generic_value_print_int): New function.
9663 (generic_value_print): Use it.
9664
6dde7521
TT
96652020-03-13 Tom Tromey <tom@tromey.com>
9666
9667 * valprint.c (generic_value_print_bool): New function.
9668 (generic_value_print): Use it.
9669
4112d2e6
TT
96702020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * valprint.c (generic_val_print_func): Simplify.
9673 (generic_val_print, generic_value_print): Update.
9674
65786af6
TT
96752020-03-13 Tom Tromey <tom@tromey.com>
9676
9677 * valprint.c (generic_val_print_flags): Remove.
9678 (generic_val_print, generic_value_print): Update.
9679 (val_print_type_code_flags): Add original_value parameter.
9680
40f3ce18
TT
96812020-03-13 Tom Tromey <tom@tromey.com>
9682
9683 * valprint.c (generic_val_print): Update.
9684 (generic_value_print): Update.
9685 * valprint.c (generic_val_print_enum): Don't call
9686 val_print_scalar_formatted.
9687
2a5b130b
TT
96882020-03-13 Tom Tromey <tom@tromey.com>
9689
9690 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9691 * valprint.c (generic_value_print_ptr): New function.
9692
abc66ce9
TT
96932020-03-13 Tom Tromey <tom@tromey.com>
9694
9695 * valprint.c (generic_value_print): Rewrite.
9696
07a32858
TT
96972020-03-13 Tom Tromey <tom@tromey.com>
9698
9699 * p-valprint.c (pascal_object_print_value_fields)
9700 (pascal_object_print_value): New functions.
9701
64d64d3a
TT
97022020-03-13 Tom Tromey <tom@tromey.com>
9703
9704 * p-valprint.c (pascal_value_print_inner): Rewrite.
9705
6a95a1f5
TT
97062020-03-13 Tom Tromey <tom@tromey.com>
9707
9708 * f-valprint.c (f_value_print_innner): Rewrite.
9709
59fcdac6
TT
97102020-03-13 Tom Tromey <tom@tromey.com>
9711
9712 * m2-valprint.c (m2_print_unbounded_array): New overload.
9713 (m2_print_unbounded_array): Update.
9714 (m2_print_array_contents): Take a struct value.
9715 (m2_value_print_inner): Rewrite.
9716
d133c3e1
TT
97172020-03-13 Tom Tromey <tom@tromey.com>
9718
9719 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9720 (d_value_print_inner): New function.
9721 * d-lang.h (d_value_print_inner): Declare.
9722 * d-lang.c (d_language_defn): Use d_value_print_inner.
9723
23b0f06b
TT
97242020-03-13 Tom Tromey <tom@tromey.com>
9725
9726 * go-valprint.c (go_value_print_inner): New function.
9727 * go-lang.h (go_value_print_inner): Declare.
9728 * go-lang.c (go_language_defn): Use go_value_print_inner.
9729
5f56f7cb
TT
97302020-03-13 Tom Tromey <tom@tromey.com>
9731
9732 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9733 API.
9734 (rust_val_print): Rewrite.
9735 (rust_value_print_inner): New function, from rust_val_print.
9736 (rust_language_defn): Use rust_value_print_inner.
9737
26792ee0
TT
97382020-03-13 Tom Tromey <tom@tromey.com>
9739
9740 * ada-valprint.c (ada_value_print_inner): New function.
9741 * ada-lang.h (ada_value_print_inner): Declare.
9742 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9743
24051bbe
TT
97442020-03-13 Tom Tromey <tom@tromey.com>
9745
9746 * f-valprint.c (f_value_print_innner): New function.
9747 * f-lang.h (f_value_print_innner): Declare.
9748 * f-lang.c (f_language_defn): Use f_value_print_innner.
9749
c0941be6
TT
97502020-03-13 Tom Tromey <tom@tromey.com>
9751
9752 * p-valprint.c (pascal_value_print_inner): New function.
9753 * p-lang.h (pascal_value_print_inner): Declare.
9754 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9755
62c4663d
TT
97562020-03-13 Tom Tromey <tom@tromey.com>
9757
9758 * m2-valprint.c (m2_value_print_inner): New function.
9759 * m2-lang.h (m2_value_print_inner): Declare.
9760 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9761
62182190
TT
97622020-03-13 Tom Tromey <tom@tromey.com>
9763
9764 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9765 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9766 * c-valprint.c (c_value_print_inner): New function.
9767 * c-lang.h (c_value_print_inner): Declare.
9768 * c-lang.c (c_language_defn, cplus_language_defn)
9769 (asm_language_defn, minimal_language_defn): Use
9770 c_value_print_inner.
9771
1e592a8a
TT
97722020-03-13 Tom Tromey <tom@tromey.com>
9773
9774 * p-valprint.c (pascal_object_print_value_fields): Now static.
9775 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9776
7fe471e9
TT
97772020-03-13 Tom Tromey <tom@tromey.com>
9778
9779 * c-valprint.c (c_val_print_array): Simplify.
9780
d121c6ce
TT
97812020-03-13 Tom Tromey <tom@tromey.com>
9782
9783 * valprint.c (value_print_array_elements): New function.
9784 * valprint.h (value_print_array_elements): Declare.
9785
4dba70ee
TT
97862020-03-13 Tom Tromey <tom@tromey.com>
9787
9788 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9789 * mips-tdep.c (mips_print_register): Use
9790 value_print_scalar_formatted.
9791
4f9ae810
TT
97922020-03-13 Tom Tromey <tom@tromey.com>
9793
9794 * valprint.h (value_print_scalar_formatted): Declare.
9795 * valprint.c (value_print_scalar_formatted): New function.
9796
156bfec9
TT
97972020-03-13 Tom Tromey <tom@tromey.com>
9798
9799 * valprint.h (generic_value_print): Declare.
9800 * valprint.c (generic_value_print): New function.
9801
2b4e573d
TT
98022020-03-13 Tom Tromey <tom@tromey.com>
9803
9804 * valprint.c (do_val_print): Call la_value_print_inner, if
9805 available.
9806 * rust-lang.c (rust_language_defn): Update.
9807 * p-lang.c (pascal_language_defn): Update.
9808 * opencl-lang.c (opencl_language_defn): Update.
9809 * objc-lang.c (objc_language_defn): Update.
9810 * m2-lang.c (m2_language_defn): Update.
9811 * language.h (struct language_defn) <la_value_print_inner>: New
9812 member.
9813 * language.c (unknown_language_defn, auto_language_defn): Update.
9814 * go-lang.c (go_language_defn): Update.
9815 * f-lang.c (f_language_defn): Update.
9816 * d-lang.c (d_language_defn): Update.
9817 * c-lang.c (c_language_defn, cplus_language_defn)
9818 (asm_language_defn, minimal_language_defn): Update.
9819 * ada-lang.c (ada_language_defn): Update.
9820
a1f6a07c
TT
98212020-03-13 Tom Tromey <tom@tromey.com>
9822
9823 * c-valprint.c (c_value_print): Use common_val_print.
9824
410cf315
TT
98252020-03-13 Tom Tromey <tom@tromey.com>
9826
9827 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9828
72a45c93
TT
98292020-03-13 Tom Tromey <tom@tromey.com>
9830
9831 * f-valprint.c (f77_print_array_1, f_val_print): Use
9832 common_val_print.
9833
040f66bd
TT
98342020-03-13 Tom Tromey <tom@tromey.com>
9835
9836 * riscv-tdep.c (riscv_print_one_register_info): Use
9837 common_val_print.
9838
a6e05a6c
TT
98392020-03-13 Tom Tromey <tom@tromey.com>
9840
9841 * mi/mi-main.c (output_register): Use common_val_print.
9842
3444c526
TT
98432020-03-13 Tom Tromey <tom@tromey.com>
9844
9845 * infcmd.c (default_print_one_register_info): Use
9846 common_val_print.
9847
c2a44efe
TT
98482020-03-13 Tom Tromey <tom@tromey.com>
9849
9850 * valprint.h (common_val_print_checked): Declare.
9851 * valprint.c (common_val_print_checked): New function.
9852 * stack.c (print_frame_arg): Use common_val_print_checked.
9853
b0c26e99
TT
98542020-03-13 Tom Tromey <tom@tromey.com>
9855
9856 * valprint.c (do_val_print): New function, from val_print.
9857 (val_print): Use do_val_print.
9858 (common_val_print): Use do_val_print.
9859
ce3acbe9
TT
98602020-03-13 Tom Tromey <tom@tromey.com>
9861
9862 * valprint.c (value_print): Use scoped_value_mark.
9863
96c7f873
TV
98642020-03-13 Tom de Vries <tdevries@suse.de>
9865
9866 PR symtab/25646
9867 * psymtab.c (partial_symtab::partial_symtab): Don't set
9868 globals_offset and statics_offset. Push element onto
9869 current_global_psymbols and current_static_psymbols stacks.
9870 (concat): New function.
9871 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9872 element from current_global_psymbols and current_static_psymbols
9873 stacks. Concat popped elements to global_psymbols and
9874 static_symbols.
9875 (add_psymbol_to_list): Use current_global_psymbols and
9876 current_static_psymbols stacks.
9877 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9878 current_static_psymbols fields.
9879
6ba0a321
CB
98802020-03-12 Christian Biesinger <cbiesinger@google.com>
9881
9882 * corelow.c (sniff_core_bfd): Remove.
9883 (class core_target) <m_core_vec>: Remove.
9884 (core_target::core_target): Update.
9885 (core_file_fns): Remove.
9886 (deprecated_add_core_fns): Remove.
9887 (default_core_sniffer): Remove.
9888 (sniff_core_bfd): Remove.
9889 (default_check_format): Remove.
9890 (gdb_check_format): Remove.
9891 (core_target_open): Update.
9892 (core_target::get_core_register_section): Update.
9893 (get_core_registers_cb): Update.
9894 (core_target::fetch_registers): Update.
9895 * gdbcore.h (struct core_fns): Remove.
9896 (deprecated_add_core_fns): Remove.
9897 (default_core_sniffer): Remove.
9898 (default_check_format): Remove.
9899
227031b2
TT
99002020-03-12 Tom Tromey <tom@tromey.com>
9901
9902 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9903 CORE_ADDR.
9904 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9905
53807e9f
TT
99062020-03-12 Tom Tromey <tom@tromey.com>
9907
9908 * remote.c (remote_target::download_tracepoint)
9909 (remote_target::enable_tracepoint)
9910 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9911 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9912 sprintf_vma.
9913
64f25102
TT
99142020-03-12 Tom Tromey <tom@tromey.com>
9915
9916 * symfile-mem.c: Update CORE_ADDR size assert.
9917
272cd5a3
SM
99182020-03-12 Simon Marchi <simon.marchi@efficios.com>
9919
9920 * selftest.m4: Move to gdbsupport/.
9921 * acinclude.m4: Update path to selftest.m4.
9922
74cd3f9d
SM
99232020-03-12 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9926 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9927 gdbarch-selfselftests.c and selftest-arch.c.
9928 (SUBDIR_UNITTESTS_OBS): Rename to...
9929 (SELFTESTS_OBS): ... this.
9930 (COMMON_SFILES): Remove disasm-selftests.c and
9931 gdbarch-selftests.c.
9932 * configure.ac: Don't add selftest-arch.{c,o} to
9933 CONFIG_{SRCS,OBS}.
9934 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9935 preprocessor conditions.
9936
db6878ac
SM
99372020-03-12 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * configure.ac: Don't source bfd/development.sh.
9940 * selftest.m4: Modify comment.
9941 * configure: Re-generate.
9942
4d696a5c
SM
99432020-03-12 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9946 not "true" or "false".
9947 * configure: Re-generate.
9948
8dd8e1c7
CB
99492020-03-12 Christian Biesinger <cbiesinger@google.com>
9950
9951 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9952 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9953 renamed to arm_nbsd_supply_gregset.
9954 (fetch_register): Update to call arm_nbsd_supply_gregset.
9955 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9956 (arm_netbsd_nat_target::fetch_registers): Update.
9957 (fetch_elfcore_registers): Removed.
9958 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9959 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9960 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9961 not require NetBSD system headers.
9962 (arm_nbsd_regset): New struct.
9963 (arm_nbsd_iterate_over_regset_sections): New function.
9964 (arm_netbsd_init_abi_common): Updated to call
9965 set_gdbarch_iterate_over_regset_sections.
9966 * arm-nbsd-tdep.h: New file.
9967
dd69bf7a
KB
99682020-03-11 Kevin Buettner <kevinb@redhat.com>
9969
9970 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9971 recursion.
9972
a0761e34
SM
99732020-03-11 Simon Marchi <simon.marchi@efficios.com>
9974
9975 * configure: Re-generate.
9976
e7a82140
TT
99772020-03-11 Tom Tromey <tromey@adacore.com>
9978
9979 * ada-typeprint.c (print_choices): Fix comment.
9980
dcc050c8
AB
99812020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9982
9983 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9984 previous item in the list, when the list has no items.
9985
1c33af77
TV
99862020-03-11 Tom de Vries <tdevries@suse.de>
9987
9988 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9989 PROP_LOCLIST handling code.
9990
8c95582d
AB
99912020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 * buildsym-legacy.c (record_line): Pass extra parameter to
9994 record_line.
9995 * buildsym.c (buildsym_compunit::record_line): Take an extra
9996 parameter, reduce duplication in the line table, and record the
9997 is_stmt flag in the line table.
9998 * buildsym.h (buildsym_compunit::record_line): Add extra
9999 parameter.
10000 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10001 non-statement lines.
10002 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10003 this to the symtab builder.
10004 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10005 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10006 through to dwarf_record_line_1.
10007 * infrun.c (process_event_stop_test): When stepping, don't stop at
10008 a non-statement instruction, and only refresh the step info when
10009 we land in the middle of a line's range. Also add an extra
10010 comment.
10011 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10012 field.
10013 * record-btrace.c (btrace_find_line_range): Only record lines
10014 marked as is-statement.
10015 * stack.c (frame_show_address): Show the frame address if we are
10016 in a non-statement sal.
10017 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10018 (maintenance_print_one_line_table): Print a header for the is_stmt
10019 column, and include is_stmt information in the output.
10020 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10021 preference to non-statements.
10022 (find_pcs_for_symtab_line): Prefer is-statement entries.
10023 (find_line_common): Likewise.
10024 * symtab.h (struct linetable_entry): Add is_stmt field.
10025 (struct symtab_and_line): Likewise.
10026 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10027 arranging the line table.
10028
e4003a34
TV
100292020-03-07 Tom de Vries <tdevries@suse.de>
10030
10031 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10032 DIE.
10033
e8932576
TT
100342020-03-07 Tom Tromey <tom@tromey.com>
10035
10036 * valops.c (value_literal_complex): Remove obsolete comment.
10037 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10038 comment.
10039
29734269
SM
100402020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * infrun.h: Forward-declare thread_info.
10043 (set_step_info): Add thread_info parameter, add doc.
10044 * infrun.c (set_step_info): Add thread_info parameter, move doc
10045 to header.
10046 * infrun.c (process_event_stop_test): Pass thread to
10047 set_step_info call.
10048 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10049 set_step_info.
10050 (prepare_one_step): Add thread_info parameter, pass it to
10051 set_step_frame and prepare_one_step (recursive) call.
10052 (step_1): Pass thread to prepare_one_step call.
10053 (step_command_fsm::should_stop): Pass thread to
10054 prepare_one_step.
10055 (until_next_fsm): Pass thread to set_step_frame call.
10056 (finish_command): Pass thread to set_step_info call.
10057
b7d64b29
HD
100582020-03-06 Hannes Domani <ssbssa@yahoo.de>
10059
10060 * windows-tdep.c (windows_solib_create_inferior_hook):
10061 Check if inferior is running.
10062
09f2921c
TV
100632020-03-06 Tom de Vries <tdevries@suse.de>
10064
10065 * NEWS: Fix "the the".
10066 * ctfread.c: Same.
10067
fd760e79
TV
100682020-03-06 Tom de Vries <tdevries@suse.de>
10069
10070 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10071
20ea4a60
AB
100722020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10073
10074 * .dir-locals.el: Add a comment referencing the other copies of
10075 this file.
10076
0afbabf0
JB
100772020-03-05 John Baldwin <jhb@FreeBSD.org>
10078
10079 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10080 psargs.
10081
842806cb
TBA
100822020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10083
10084 * .gitattributes: New file.
10085
be1e3d3e
TT
100862020-03-04 Tom Tromey <tom@tromey.com>
10087
10088 * symmisc.c (print_symbol_bcache_statistics)
10089 (print_objfile_statistics): Update.
10090 * symfile.c (allocate_symtab): Use intern.
10091 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10092 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10093 macro_cache>: Remove.
10094 <string_cache>: New member.
10095 (struct objfile) <intern>: New methods.
10096 * elfread.c (elf_symtab_read): Use intern.
10097 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10098 (dwarf2_compute_name, dwarf2_physname)
10099 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10100 names.
10101 (guess_partial_die_structure_name): Update.
10102 (partial_die_info::fixup): Intern name.
10103 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10104 name.
10105 (dwarf2_name): Intern name. Update.
10106 * buildsym.c (buildsym_compunit::get_macro_table): Use
10107 string_cache.
10108
4e7625fd
TT
101092020-03-04 Tom Tromey <tom@tromey.com>
10110
10111 * jit.c (bfd_open_from_target_memory): Make "target" const.
10112 * corefile.c (gnutarget): Now const.
10113 * gdbcore.h (gnutarget): Now const.
10114
46f9f931
HD
101152020-03-04 Hannes Domani <ssbssa@yahoo.de>
10116
10117 * NEWS: Mention support for WOW64 processes.
10118 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10119 (amd64_windows_segment_register_p): Remove static.
10120 (_initialize_amd64_windows_nat): Update.
10121 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10122 * i386-windows-nat.c (context_offset): Update.
10123 (i386_mappings): Rename and remove static.
10124 (i386_windows_segment_register_p): Remove static.
10125 (_initialize_i386_windows_nat): Update.
10126 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10127 (STATUS_WX86_SINGLE_STEP): New macro.
10128 (EnumProcessModulesEx): New macro.
10129 (Wow64SuspendThread): New macro.
10130 (Wow64GetThreadContext): New macro.
10131 (Wow64SetThreadContext): New macro.
10132 (Wow64GetThreadSelectorEntry): New macro.
10133 (windows_set_context_register_offsets): Add static.
10134 (windows_set_segment_register_p): Likewise.
10135 (windows_add_thread): Adapt for WOW64 processes.
10136 (windows_fetch_one_register): Likewise.
10137 (windows_nat_target::fetch_registers): Likewise.
10138 (windows_store_one_register): Likewise.
10139 (display_selector): Likewise.
10140 (display_selectors): Likewise.
10141 (handle_exception): Likewise.
10142 (windows_continue): Likewise.
10143 (windows_nat_target::resume): Likewise.
10144 (windows_add_all_dlls): Likewise.
10145 (do_initial_windows_stuff): Likewise.
10146 (windows_nat_target::attach): Likewise.
10147 (windows_get_exec_module_filename): Likewise.
10148 (windows_nat_target::create_inferior): Likewise.
10149 (windows_xfer_siginfo): Likewise.
10150 (_initialize_loadable): Initialize Wow64SuspendThread,
10151 Wow64GetThreadContext, Wow64SetThreadContext,
10152 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10153 * windows-nat.h (windows_set_context_register_offsets):
10154 Remove declaration.
10155 (windows_set_segment_register_p): Likewise.
10156 (i386_windows_segment_register_p): Add declaration.
10157 (amd64_windows_segment_register_p): Likewise.
10158
440cf44e
LM
101592020-03-04 Luis Machado <luis.machado@linaro.org>
10160
10161 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10162 in "info registers" for AArch64/ARM.
10163
10164 The change caused "info registers" to not print GPR's.
10165
10166 gdb/ChangeLog:
10167
10168 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10169
10170 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10171 when reg->group is empty and reggroup is not.
10172
1009d92f
TT
101732020-03-03 Tom Tromey <tromey@adacore.com>
10174
10175 * dwarf2/frame.c (struct dwarf2_frame_cache)
10176 <checked_tailcall_bottom, entry_cfa_sp_offset,
10177 entry_cfa_sp_offset_p>: Remove members.
10178 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10179 (dwarf2_frame_prev_register): Don't call
10180 dwarf2_tailcall_sniffer_first.
10181 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10182 * frame-unwind.c (add_unwinder): New fuction.
10183 (frame_unwind_init): Use it. Add tailcall unwinder.
10184
5e5d66b6
AB
101852020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10186 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10187
10188 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10189 value should be printed as true.
10190
584cf46d
HD
101912020-03-03 Hannes Domani <ssbssa@yahoo.de>
10192
10193 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10194 (windows_init_abi): Set and use windows_so_ops.
10195
7b973adc
SDJ
101962020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10197
10198 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10199 when verifying if dealing with a convenience variable.
10200
bb7b70ab
LM
102012020-03-03 Luis Machado <luis.machado@linaro.org>
10202
10203 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10204
9822cb57
SM
102052020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10206
10207 * infrun.c (gdbarch_supports_displaced_stepping): New.
10208 (use_displaced_stepping): Break up conditions in smaller pieces.
10209 Use gdbarch_supports_displaced_stepping.
10210 (displaced_step_prepare_throw): Use
10211 gdbarch_supports_displaced_stepping.
10212
63e163f2
AB
102132020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10214
10215 * NEWS: Mention new behaviour of the history filename.
10216 * top.c (write_history_p): Add comment.
10217 (show_write_history_p): Add header comment, give a different
10218 message when history writing is on, but the history filename is
10219 empty.
10220 (history_filename): Add comment.
10221 (history_filename_empty): New function.
10222 (show_history_filename): Add header comment, give a different
10223 message when the filename is empty.
10224 (init_history): Compare history_filename against nullptr, and only
10225 read history if the filename is not empty.
10226 (set_history_filename): Add header comment, and only make
10227 non-empty filenames absolute.
10228 (init_main): Make the filename argument to 'set history filename'
10229 optional.
10230
81b86b97
CB
102312020-03-02 Christian Biesinger <cbiesinger@google.com>
10232
10233 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10234 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10235 (fetch_fp_register): Update.
10236 (fetch_fp_regs): Update.
10237 (store_fp_register): Update.
10238 (store_fp_regs): Update.
10239 (arm_netbsd_nat_target::read_description): New function.
10240 (fetch_elfcore_registers): Update.
10241
24ed6739
AB
102422020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10243
10244 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10245 general_thread if the stop reply is missing a thread-id.
10246 (remote_target::process_stop_reply): Use the first non-exited
10247 thread if the target didn't pass a thread-id.
10248 * infrun.c (do_target_wait): Move call to
10249 switch_to_inferior_no_thread to ....
10250 (do_target_wait_1): ... here.
10251
a84bb2a0
JT
102522020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10253
10254 * debuginfod-support.c: Include defs.h first.
10255
658dadf0
TV
102562020-02-28 Tom de Vries <tdevries@suse.de>
10257
10258 * symfile.c (set_initial_language): Use default language for lookup.
10259
4ebe4877
SM
102602020-02-28 Simon Marchi <simon.marchi@efficios.com>
10261
10262 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10263 reader variable, pass `this` to read_cutu_die_from_dwo.
10264
e5da1139
AM
102652020-02-27 Aaron Merey <amerey@redhat.com>
10266
10267 * source.c (open_source_file): Check for nullptr when computing
10268 srcpath.
10269
317f7127
TT
102702020-02-27 Tom Tromey <tromey@adacore.com>
10271
10272 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10273 member.
10274 (dwarf2_add_field): Don't update nfields.
10275 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10276
3104d9ee
AB
102772020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10278
10279 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10280 abs.
10281
b83470bf
TT
102822020-02-26 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10285 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10286 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10287 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10288 per_cu_data.
10289
edfe0a0c
TT
102902020-02-26 Tom Tromey <tom@tromey.com>
10291
10292 * dwarf2/index-write.c (psym_index_map): Change type.
10293 (add_address_entry_worker, write_one_signatured_type)
10294 (recursively_count_psymbols, recursively_write_psymbols)
10295 (class debug_names, psyms_seen_size, write_gdbindex)
10296 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10297
0d79cdc4
AM
102982020-02-26 Aaron Merey <amerey@redhat.com>
10299
10300 * Makefile.in: Handle optional debuginfod support.
10301 * NEWS: Update.
10302 * README: Add --with-debuginfod summary.
10303 * config.in: Regenerate.
10304 * configure: Regenerate.
10305 * configure.ac: Handle optional debuginfod support.
10306 * debuginfod-support.c: debuginfod helper functions.
10307 * debuginfod-support.h: Ditto.
10308 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10309 summary.
10310 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10311 when a dwz file cannot be found.
10312 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10313 debuginfo file cannot be found.
10314 * source.c (open_source_file): Query debuginfod servers when a
10315 source file cannot be found.
10316 * top.c (print_gdb_configuration): Include
10317 --{with,without}-debuginfod in the output.
10318
b65ce565
JG
103192020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10320
10321 * thread.c (thr_try_catch_cmd): Print thread name.
10322
d4c9a4f8
SM
103232020-02-26 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10326 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10327 dwarf2_fetch_die_type_sect_off): Move to...
10328 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10329 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10330 dwarf2_fetch_die_type_sect_off): ... here.
10331 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10332 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10333 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10334
0dce4280
TV
103352020-02-26 Tom de Vries <tdevries@suse.de>
10336
10337 PR gdb/25603
10338 * symfile.c (set_initial_language): Exit-early if
10339 language_mode == language_mode_manual.
10340
450a1bfc
SM
103412020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10342
10343 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10344 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10345 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10346
9e80cfa1
AB
103472020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * gdbtypes.c (create_array_type_with_stride): Handle negative
10350 array strides.
10351 * valarith.c (value_subscripted_rvalue): Likewise.
10352
09624f1f
LM
103532020-02-25 Luis Machado <luis.machado@linaro.org>
10354
10355 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10356
8cb5117c
SM
103572020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * loc.h (dwarf2_get_die_type): Move to...
10360 * read.h (dwarf2_get_die_type): ... here.
10361 * read.c (dwarf2_get_die_type): Move doc to header.
10362
c325c44e
JB
103632020-02-25 Joel Brobecker <brobecker@adacore.com>
10364
10365 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10366 'gnulib/Makefile.in' to the list.
10367
4ac93832
TT
103682020-02-24 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10371 Remove.
10372 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10373 XOBNEWVEC.
10374
197400e8
TT
103752020-02-24 Tom Tromey <tom@tromey.com>
10376
10377 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10378 New method.
10379 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10380 (dw2_do_instantiate_symtab, dw2_get_file_names)
10381 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10382
76935768
TT
103832020-02-24 Tom Tromey <tom@tromey.com>
10384
10385 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10386 make_scoped_restore.
10387 (dwarf2_psymtab::read_symtab): Don't clear
10388 reading_partial_symbols.
10389
a88ef40d
TV
103902020-02-24 Tom de Vries <tdevries@suse.de>
10391
10392 PR gdb/25592
10393 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10394
c9af6521
TV
103952020-02-24 Tom de Vries <tdevries@suse.de>
10396
10397 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10398 commands layout next/prev/regs.
10399
5707a07a
TT
104002020-02-22 Tom Tromey <tom@tromey.com>
10401
10402 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10403 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10404
3b0fb49e
TT
104052020-02-22 Tom Tromey <tom@tromey.com>
10406
10407 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10408
283be8bf
TT
104092020-02-22 Tom Tromey <tom@tromey.com>
10410
10411 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10412 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10413 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10414 * tui/tui.c (_initialize_tui): Add usage text.
10415
ca793b96
TT
104162020-02-22 Tom Tromey <tom@tromey.com>
10417
10418 * tui/tui-win.c (tui_set_focus_command)
10419 (tui_set_win_height_command): Use error_no_arg.
10420 (_initialize_tui_win): Update help text.
10421 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10422
432b5c40
TT
104232020-02-22 Tom Tromey <tom@tromey.com>
10424
10425 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10426 * tui/tui-disasm.h (struct tui_disasm_window)
10427 <display_start_addr>: Declare.
10428 * tui/tui-source.h (struct tui_source_window)
10429 <display_start_addr>: Declare.
10430 * tui/tui-winsource.h (struct tui_source_window_base)
10431 <show_source_line, display_start_addr>: New methods.
10432 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10433 Rename and move to protected section.
10434 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10435 (tui_source_window_base::do_erase_source_content): Update.
10436 (tui_source_window_base::show_source_line): Now a method.
10437 (tui_source_window_base::show_source_content)
10438 (tui_source_window_base::tui_source_window_base)
10439 (tui_source_window_base::rerender)
10440 (tui_source_window_base::refill)
10441 (tui_source_window_base::do_scroll_horizontal)
10442 (tui_source_window_base::set_is_exec_point_at)
10443 (tui_source_window_base::update_breakpoint_info)
10444 (tui_source_window_base::update_exec_info): Update.
10445 * tui/tui-source.c (tui_source_window::set_contents)
10446 (tui_source_window::showing_source_p)
10447 (tui_source_window::do_scroll_vertical)
10448 (tui_source_window::location_matches_p)
10449 (tui_source_window::line_is_displayed): Update.
10450 (tui_source_window::display_start_addr): New method.
10451 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10452 (tui_disasm_window::do_scroll_vertical)
10453 (tui_disasm_window::location_matches_p): Update.
10454 (tui_disasm_window::display_start_addr): New method.
10455
01b1af32
TT
104562020-02-22 Tom Tromey <tom@tromey.com>
10457
10458 * NEWS: Add entry for gdb.register_window_type.
10459 * tui/tui-layout.h (window_factory): New typedef.
10460 (tui_register_window): Declare.
10461 * tui/tui-layout.c (saved_tui_windows): New global.
10462 (tui_apply_current_layout): Use it.
10463 (tui_register_window): New function.
10464 * python/python.c (do_start_initialization): Call
10465 gdbpy_initialize_tui.
10466 (python_GdbMethods): Add "register_window_type" function.
10467 * python/python-internal.h (gdbpy_register_tui_window)
10468 (gdbpy_initialize_tui): Declare.
10469 * python/py-tui.c: New file.
10470 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10471
fc96d20b
TT
104722020-02-22 Tom Tromey <tom@tromey.com>
10473
10474 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10475
935c78c0
TT
104762020-02-22 Tom Tromey <tom@tromey.com>
10477
10478 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10479 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10480 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10481 (tui_set_win_focus_to): Move from tui-win.c.
10482
0240c8f1
TT
104832020-02-22 Tom Tromey <tom@tromey.com>
10484
10485 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10486 functions.
10487 (known_window_types): New global.
10488 (tui_get_window_by_name): Reimplement.
10489 (initialize_known_windows): New function.
10490 (validate_window_name): Rewrite.
10491 (_initialize_tui_layout): Call initialize_known_windows.
10492
fdb01f0c
TT
104932020-02-22 Tom Tromey <tom@tromey.com>
10494
10495 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10496 Remove constants.
10497 * tui/tui-winsource.h (struct tui_source_window_base)
10498 <tui_source_window_base>: Remove parameter.
10499 * tui/tui-winsource.c
10500 (tui_source_window_base::tui_source_window_base): Remove
10501 parameter.
10502 (tui_source_window_base::refill): Update.
10503 * tui/tui-stack.h (struct tui_locator_window)
10504 <tui_locator_window>: Update.
10505 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10506 Default the constructor.
10507 * tui/tui-regs.h (struct tui_data_item_window)
10508 <tui_data_item_window>: Default the constructor.
10509 (struct tui_data_window) <tui_data_window>: Likewise.
10510 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10511 Default the constructor.
10512 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10513 Default the constructor.
10514 <type>: Remove.
10515 (struct tui_win_info) <tui_win_info>: Default the constructor.
10516 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10517 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10518 Default the constructor.
10519
865a5aec
TT
105202020-02-22 Tom Tromey <tom@tromey.com>
10521
10522 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10523 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10524 * tui/tui-win.c (tui_resize_all): Don't call
10525 tui_delete_invisible_windows.
10526 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10527 done.
10528 (tui_set_layout): Update.
10529 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10530 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10531 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10532
e098d18c
TT
105332020-02-22 Tom Tromey <tom@tromey.com>
10534
10535 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10536 correctly.
10537
eb9c8874
TT
105382020-02-22 Tom Tromey <tom@tromey.com>
10539
10540 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10541
7eed1a8e
TT
105422020-02-22 Tom Tromey <tom@tromey.com>
10543
10544 * tui/tui-winsource.h (struct tui_source_window_iterator)
10545 <inner_iterator>: New etytypedef.
10546 <tui_source_window_iterator>: Take "end" parameter.
10547 <tui_source_window_iterator>: Take iterator.
10548 <operator*, advance>: Update.
10549 <m_iter>: Change type.
10550 <m_end>: New field.
10551 (struct tui_source_windows) <begin, end>: Update.
10552 * tui/tui-layout.c (tui_windows): New global.
10553 (tui_apply_current_layout): Clear tui_windows.
10554 (tui_layout_window::apply): Update tui_windows.
10555 * tui/tui-data.h (tui_windows): Declare.
10556 (all_tui_windows): Now inline function.
10557 (class tui_window_iterator, struct all_tui_windows): Remove.
10558
7c043ba6
TT
105592020-02-22 Tom Tromey <tom@tromey.com>
10560
10561 PR tui/17850:
10562 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10563 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10564 "height" argument.
10565 (class tui_layout_window) <get_sizes>: Likewise.
10566 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10567 argument.
10568 <get_sizes>: Add "height" argument.
10569 <m_vertical>: New field.
10570 * tui/tui-layout.c (tui_layout_split::clone): Update.
10571 (tui_layout_split::get_sizes): Add "height" argument.
10572 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10573 (tui_new_layout_command): Parse "-horizontal".
10574 (_initialize_tui_layout): Update help string.
10575 (tui_layout_split::specification): Add "-horizontal" when needed.
10576 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10577 argument.
10578 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10579 New methods.
10580
6bc56648
TT
105812020-02-22 Tom Tromey <tom@tromey.com>
10582
10583 * tui/tui-layout.h (enum tui_adjust_result): New.
10584 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10585 (class tui_layout_window) <adjust_size>: Return
10586 tui_adjust_result. Rewrite.
10587 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10588 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10589
c22fef7e
TT
105902020-02-22 Tom Tromey <tom@tromey.com>
10591
10592 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10593 parameter and return types.
10594 (class tui_layout_base) <specification>: Add "depth".
10595 (class tui_layout_window) <specification>: Add "depth".
10596 (class tui_layout_split) <specification>: Add "depth".
10597 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10598 and return types.
10599 (tui_new_layout_command): Parse sub-layouts.
10600 (_initialize_tui_layout): Update help string.
10601 (tui_layout_window::specification): Add "depth".
10602 (add_layout_command): Update.
10603
ee325b61
TT
106042020-02-22 Tom Tromey <tom@tromey.com>
10605
10606 * NEWS: Add "tui new-layout" item.
10607 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10608 Add new-layout command to help text.
10609 (validate_window_name): New function.
10610 (tui_new_layout_command): New function.
10611 (_initialize_tui_layout): Register "new-layout".
10612 (tui_layout_window::specification): New method.
10613 (tui_layout_window::specification): New method.
10614 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10615 method.
10616 (class tui_layout_window) <specification>: New method.
10617 (class tui_layout_split) <specification>: New method.
10618
416eb92d
TT
106192020-02-22 Tom Tromey <tom@tromey.com>
10620
10621 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10622 * tui/tui-win.c (window_name_completer): Update comment.
10623 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10624 Declare method.
10625 (class tui_layout_window) <replace_window>: Likewise.
10626 (class tui_layout_split) <replace_window>: Likewise.
10627 (tui_set_layout): Don't declare.
10628 (tui_set_initial_layout): Declare function.
10629 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10630 (asm_regs_layout): New globals.
10631 (tui_current_layout, show_layout): Remove.
10632 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10633 (find_layout, tui_apply_layout): New function.
10634 (layout_completer): Remove.
10635 (tui_next_layout): Reimplement.
10636 (tui_next_layout_command): New function.
10637 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10638 (tui_regs_layout): Reimplement.
10639 (tui_regs_layout_command): New function.
10640 (extract_display_start_addr): Rewrite.
10641 (next_layout, prev_layout): Remove.
10642 (tui_layout_window::replace_window): New method.
10643 (tui_layout_split::replace_window): New method.
10644 (destroy_layout): New function.
10645 (layout_list): New global.
10646 (add_layout_command): New function.
10647 (initialize_layouts): Update.
10648 (tui_layout_command): New function.
10649 (_initialize_tui_layout): Install "layout" commands.
10650 * tui/tui-data.h (enum tui_layout_type): Remove.
10651 (tui_current_layout): Don't declare.
10652
0dbc2fc7
TT
106532020-02-22 Tom Tromey <tom@tromey.com>
10654
10655 * tui/tui-regs.c (tui_reg_layout): Remove.
10656 (tui_reg_command): Use tui_regs_layout.
10657 * tui/tui-layout.h (tui_reg_command): Declare.
10658 * tui/tui-layout.c (tui_reg_command): New function.
10659
5afe342e
TT
106602020-02-22 Tom Tromey <tom@tromey.com>
10661
10662 * tui/tui.c (tui_rl_delete_other_windows): Call
10663 tui_remove_some_windows.
10664 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10665 Declare method.
10666 (class tui_layout_window) <remove_windows>: New method.
10667 (class tui_layout_split) <remove_windows>: Declare.
10668 (tui_remove_some_windows): Declare.
10669 * tui/tui-layout.c (tui_remove_some_windows): New function.
10670 (tui_layout_split::remove_windows): New method.
10671
427326a8
TT
106722020-02-22 Tom Tromey <tom@tromey.com>
10673
10674 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10675 * tui/tui-layout.h (tui_next_layout): Declare.
10676 * tui/tui-layout.c (tui_next_layout): New function.
10677
3fe12b6d
TT
106782020-02-22 Tom Tromey <tom@tromey.com>
10679
10680 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10681 correct coordinates.
10682
59b8b5d2
TT
106832020-02-22 Tom Tromey <tom@tromey.com>
10684
10685 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10686 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10687 DATA_WIN case.
10688
2a3d458b
TT
106892020-02-22 Tom Tromey <tom@tromey.com>
10690
10691 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10692 TUI_DISASM_WIN, not tui_win_list.
10693
3f0cbb04
TT
106942020-02-22 Tom Tromey <tom@tromey.com>
10695
10696 * valprint.c (generic_val_print_enum_1)
10697 (val_print_type_code_flags): Style member names.
10698 * rust-lang.c (val_print_struct, rust_print_enum)
10699 (rust_print_struct_def, rust_internal_print_type): Style member
10700 names.
10701 * p-valprint.c (pascal_object_print_value_fields): Style member
10702 names. Only call fprintf_symbol_filtered for static members.
10703 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10704 * f-valprint.c (f_val_print): Style member names.
10705 * f-typeprint.c (f_type_print_base): Style member names.
10706 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10707 call fprintf_symbol_filtered for static members.
10708 (cp_print_class_member): Style member names.
10709 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10710 member names.
10711 * ada-valprint.c (ada_print_scalar): Style enum names.
10712 (ada_val_print_enum): Likewise.
10713 * ada-typeprint.c (print_enum_type): Style enum names.
10714
d4d947ae
TT
107152020-02-21 Tom Tromey <tom@tromey.com>
10716
10717 * psympriv.h (struct partial_symtab): Update comment.
10718
e94e944b
TT
107192020-02-21 Tom Tromey <tromey@adacore.com>
10720
10721 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10722 type is CORE_ADDR.
10723
1eb73179
TV
107242020-02-21 Tom de Vries <tdevries@suse.de>
10725
10726 PR gdb/25534
10727 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10728 if dependencies[i]->user != NULL.
10729
4f180d53
AT
107302020-02-21 Ali Tamur <tamur@google.com>
10731
10732 * dwarf2/read.c (dwarf2_name): Add null check.
10733
22b6cd70
TT
107342020-02-20 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10737 ">=", in binary search.
10738 (dwarf2_find_containing_comp_unit): New overload.
10739 (run_test): New self-test.
10740 (_initialize_dwarf2_read): Register new test.
10741
bd0cf5a6
NC
107422020-02-20 Nelson Chu <nelson.chu@sifive.com>
10743
10744 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10745 * riscv-tdep.h: Likewise.
10746 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10747 rv32-only CSR.
10748 * features/riscv/64bit-csr.xml: Regenerated.
10749
3f702acd
SDJ
107502020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10751 Tom Tromey <tom@tromey.com>
10752
10753 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10754 of 'fputc_unfiltered'.
10755 (putchar_unfiltered): Call 'fputc_unfiltered'.
10756 (fputc_unfiltered): Call 'fputs_unfiltered'.
10757
d13c7322
AB
107582020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10759
10760 * config.in: Regenerate.
10761 * configure: Regenerate.
10762 * configure.ac: Add --with-python-libdir option.
10763 * main.c: Use WITH_PYTHON_LIBDIR.
10764
869d8950
TT
107652020-02-19 Tom Tromey <tom@tromey.com>
10766
10767 * symtab.c (general_symbol_info::compute_and_set_names): Use
10768 obstack_strndup. Simplify call to symbol_set_demangled_name.
10769
298e9637
SM
107702020-02-19 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * dwarf2/read.c (allocate_signatured_type_table,
10773 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10774 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10775 Remove objfile parameter, update all callers.
10776
08410482
DE
107772020-02-19 Doug Evans <dje@google.com>
10778
10779 PR rust/25535
10780 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10781 rust_enum_variant calculation.
10782
dfdeeca1
TT
107832020-02-19 Tom Tromey <tromey@adacore.com>
10784
10785 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10786
2ef5453b
TT
107872020-02-19 Tom Tromey <tromey@adacore.com>
10788
10789 * ada-lang.c (cache_symbol): Use obstack_strdup.
10790
9f1528a1
AB
107912020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10792
10793 * configure: Regenerate.
10794
d3c22fa8
TT
107952020-02-19 Tom Tromey <tromey@adacore.com>
10796
10797 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10798 NULL check.
10799
bf84f706
MR
108002020-02-19 Maciej W. Rozycki <macro@wdc.com>
10801
10802 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10803
d1c9b20f
AB
108042020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10807 if GDBSERVER is not defined.
10808 (riscv_tdesc_cache): Likewise, also store const target_desc.
10809 (STATIC_IN_GDB): Define.
10810 (riscv_create_target_description): Update declaration with
10811 STATIC_IN_GDB.
10812 (riscv_lookup_target_description): New function, only define if
10813 GDBSERVER is not defined.
10814 * arch/riscv.h (riscv_create_target_description): Declare only
10815 when GDBSERVER is defined.
10816 (riscv_lookup_target_description): New declaration when GDBSERVER
10817 is not defined.
10818 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10819 (riscv_linux_read_features): ...this, and return
10820 riscv_gdbarch_features instead of target_desc.
10821 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10822 (riscv_linux_read_description): Rename to...
10823 (riscv_linux_read_features): ...this.
10824 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10825 Update to use riscv_gdbarch_features and
10826 riscv_lookup_target_description.
10827 * riscv-tdep.c (riscv_find_default_target_description): Use
10828 riscv_lookup_target_description instead of
10829 riscv_create_target_description.
10830
373d7ac0
SM
108312020-02-18 Simon Marchi <simon.marchi@efficios.com>
10832
10833 * valprint.c (generic_val_print_enum_1): When printing a flag
10834 enum with value 0 and there is no enumerator with value 0, print
10835 just "0" instead of "(unknown: 0x0)".
10836
b29a2df0
SM
108372020-02-18 Simon Marchi <simon.marchi@efficios.com>
10838
10839 * valprint.c (generic_val_print_enum_1): Print unknown part of
10840 flag enum in hex.
10841
6740f0cc
SM
108422020-02-18 Simon Marchi <simon.marchi@efficios.com>
10843
10844 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10845 flag enums to contain duplicate enumerators.
10846 * valprint.c (generic_val_print_enum_1): Update comment.
10847
edd45eb0
SM
108482020-02-18 Simon Marchi <simon.marchi@efficios.com>
10849
10850 * dwarf2/read.c: Include "count-one-bits.h".
10851 (update_enumeration_type_from_children): If an enumerator has
10852 multiple bits set, don't treat the enumeration as a "flag enum".
10853 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10854 of flag enums have 0 or 1 bit set.
10855
6d0cf446
BE
108562020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10857
10858 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10859 conversion.
10860 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10861 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10862 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10863 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10864 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10865
7001c1b7
SM
108662020-02-18 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10869
fdb61c6c
SM
108702020-02-14 Simon Marchi <simon.marchi@efficios.com>
10871
10872 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10873 displaced_step_closure_up.
10874 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10875 (struct displaced_step_closure_up):
10876 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10877 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10878 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10879 Likewise.
10880 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10881 * gdbarch.c, gdbarch.h: Re-generate.
10882 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10883 displaced_step_closure_up.
10884 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10885 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10886 * infrun.h (displaced_step_closure_up): New type alias.
10887 (struct displaced_step_inferior_state) <step_closure>: Change
10888 type to displaced_step_closure_up.
10889 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10890 displaced_step_closure_up.
10891 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10892
a4a38eb4
TT
108932020-02-14 Tom Tromey <tom@tromey.com>
10894
10895 * minidebug.c (gnu_debug_key): New global.
10896 (find_separate_debug_file_in_section): Use it.
10897
e8217e61
SM
108982020-02-14 Simon Marchi <simon.marchi@efficios.com>
10899
10900 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10901 std::unique_ptr.
10902 * gdbarch.c: Re-generate.
10903 * gdbarch.h: Re-generate.
10904 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10905 change.
10906 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10907 type to std::unique_ptr.
10908 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10909 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10910 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10911 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10912 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10913 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10914 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10915 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10916 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10917
d8d83535
SM
109182020-02-14 Simon Marchi <simon.marchi@efficios.com>
10919
10920 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10921 std::unique_ptr.
10922 (displaced_step_clear): Rename to...
10923 (displaced_step_reset): ... this. Just call displaced->reset ().
10924 (displaced_step_clear_cleanup): Rename to...
10925 (displaced_step_reset_cleanup): ... this.
10926 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10927 (displaced_step_fixup): Likewise.
10928 (resume_1): Likewise.
10929 (handle_inferior_event): Restore child's memory before calling
10930 displaced_step_fixup on the parent.
10931 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10932 to std::unique_ptr.
10933 <step_closure>: Change type to std::unique_ptr.
10934
5f661e03
SM
109352020-02-14 Simon Marchi <simon.marchi@efficios.com>
10936
10937 * arm-tdep.c: Include count-one-bits.h.
10938 (cleanup_block_store_pc): Use count_one_bits.
10939 (cleanup_block_load_pc): Use count_one_bits.
10940 (arm_copy_block_xfer): Use count_one_bits.
10941 (thumb2_copy_block_xfer): Use count_one_bits.
10942 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10943 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10944 (thumb_get_next_pcs_raw): Use count_one_bits.
10945 (arm_get_next_pcs_raw): Use count_one_bits_l.
10946 * arch/arm.c (bitcount): Remove.
10947 * arch/arm.h (bitcount): Remove.
10948
8084e579
TT
109492020-02-14 Tom Tromey <tromey@adacore.com>
10950
10951 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10952 Update.
10953 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10954 * dwarf2/loc.c (call_site_find_chain_1): Return
10955 unique_xmalloc_ptr.
10956 (call_site_find_chain): Likewise.
10957
258bf0ee
RB
109582020-02-14 Richard Biener <rguenther@suse.de>
10959
10960 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10961 on expression with division operators.
10962
f98a8458
AKS
109632020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10964
10965 * MAINTAINERS (Write After Approval): Adding myself.
10966
d1437c0e
TT
109672020-02-12 Tom Tromey <tom@tromey.com>
10968
10969 * event-loop.c (event_data, gdb_event, event_handler_func):
10970 Remove.
10971
3d4560f7
TT
109722020-02-12 Tom Tromey <tom@tromey.com>
10973
10974 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10975 (dwarf2_frame_objfile_data): Add comment.
10976 (find_comp_unit, set_comp_unit): New functions.
10977 (dwarf2_frame_find_fde): Use find_comp_unit.
10978 (dwarf2_build_frame_info): Use set_comp_unit.
10979
21982304
TT
109802020-02-12 Tom Tromey <tom@tromey.com>
10981
10982 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10983 (comp_unit): Don't initialize objfile.
10984 (execute_cfa_program): Add text_offset parameter.
10985 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10986 (dwarf2_frame_cache): Update.
10987 (dwarf2_build_frame_info): Don't set "objfile" member.
10988
4debb237
TT
109892020-02-12 Tom Tromey <tom@tromey.com>
10990
10991 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10992 (decode_frame_entry): Likewise.
10993 (dwarf2_build_frame_info): Update.
10994
0d404d44
TT
109952020-02-12 Tom Tromey <tom@tromey.com>
10996
10997 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10998 (decode_frame_entry_1): Use the comp_unit obstack.
10999
a7a3ae5c
TT
110002020-02-12 Tom Tromey <tom@tromey.com>
11001
11002 * dwarf2/frame.c (struct comp_unit): Add initializers and
11003 constructor.
11004 (dwarf2_frame_objfile_data): Store a comp_unit.
11005 (dwarf2_frame_find_fde): Update.
11006 (dwarf2_build_frame_info): Use "new".
11007
a9d65418
TT
110082020-02-12 Tom Tromey <tom@tromey.com>
11009
11010 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11011 (dwarf2_fde_table): Typedef for std::vector.
11012 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11013 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11014 (decode_frame_entry): Update.
11015 (dwarf2_build_frame_info): Use "new".
11016
7559c217
CB
110172020-02-12 Christian Biesinger <cbiesinger@google.com>
11018
11019 * arm-tdep.c (arm_gdbarch_init): Update.
11020 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11021 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11022 have_neon, is_m>: Change to bool.
11023
aeefc73c
CB
110242020-02-12 Christian Biesinger <cbiesinger@google.com>
11025
11026 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11027
d27b8e5f
TT
110282020-02-12 Tom Tromey <tom@tromey.com>
11029
11030 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11031
cd5900f3
HD
110322020-02-12 Hannes Domani <ssbssa@yahoo.de>
11033
11034 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11035 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11036
f056b22b
TT
110372020-02-11 Tom Tromey <tom@tromey.com>
11038
11039 * psymtab.h: Update comment.
11040
f92ff6b5
TT
110412020-02-11 Tom Tromey <tom@tromey.com>
11042
11043 * gdb_obstack.h (struct auto_obstack): Use
11044 DISABLE_COPY_AND_ASSIGN.
11045
3fd6912b
TT
110462020-02-11 Tom Tromey <tom@tromey.com>
11047
11048 * dwarf2/frame.h (struct objfile): Don't forward declare.
11049
69ed9b74
CB
110502020-02-11 Christian Biesinger <cbiesinger@google.com>
11051
11052 * cris-tdep.c (cris_supply_gregset): Change signature to match
11053 what struct regset expects.
11054 (cris_regset): New struct.
11055 (fetch_core_registers): Remove.
11056 (cris_iterate_over_regset_sections): New function.
11057 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11058 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11059
bda874f6
CB
110602020-02-11 Christian Biesinger <cbiesinger@google.com>
11061
11062 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11063 registers.
11064
754e1564
CB
110652020-02-11 Christian Biesinger <cbiesinger@google.com>
11066
11067 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11068
8ddd8e0e
SM
110692020-02-11 Simon Marchi <simon.marchi@efficios.com>
11070
11071 * configure: Re-generate.
11072
898e7f60
SM
110732020-02-11 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * configure: Re-generate.
11076
58df732b
SM
110772020-02-11 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * acinclude: Update warning.m4 path.
11080 * warning.m4: Move to gdbsupport.
11081
da5bd37e
TT
110822020-02-11 Tom Tromey <tromey@adacore.com>
11083
11084 * remote.c (remote_console_output): Update.
11085 * printcmd.c (printf_command): Update.
11086 * event-loop.c (gdb_wait_for_event): Update.
11087 * linux-nat.c (sigchld_handler): Update.
11088 * remote-sim.c (gdb_os_write_stdout): Update.
11089 (gdb_os_flush_stdout): Update.
11090 (gdb_os_flush_stderr): Update.
11091 (gdb_os_write_stderr): Update.
11092 * exceptions.c (print_exception): Update.
11093 * remote-fileio.c (remote_fileio_func_read): Update.
11094 (remote_fileio_func_write): Update.
11095 * tui/tui.c (tui_enable): Update.
11096 * tui/tui-interp.c (tui_interp::init): Update.
11097 * utils.c (init_page_info): Update.
11098 (putchar_unfiltered, fputc_unfiltered): Update.
11099 (gdb_flush): Update.
11100 (emit_style_escape): Update.
11101 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11102 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11103 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11104 (stderr_file::write): Update.
11105 (stderr_file::puts): Update.
11106 * ui-file.h (ui_file_isatty, ui_file_write)
11107 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11108 (ui_file_puts): Don't declare.
11109
85f0dd3c
TV
111102020-02-10 Tom de Vries <tdevries@suse.de>
11111
11112 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11113 sentinel to char *.
11114
2e927613
TV
111152020-02-09 Tom de Vries <tdevries@suse.de>
11116
11117 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11118 filename if it matches "<artificial>".
11119
6bafc845
HD
111202020-02-09 Hannes Domani <ssbssa@yahoo.de>
11121
11122 * windows-tdep.c (struct enum_value_name): New struct.
11123 (create_enum): New function.
11124 (windows_get_siginfo_type): Create and use enum types.
11125
7928d571
HD
111262020-02-09 Hannes Domani <ssbssa@yahoo.de>
11127
11128 * NEWS: Mention $_siginfo support for Windows.
11129 * windows-nat.c (handle_exception): Set siginfo_er.
11130 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11131 (windows_xfer_siginfo): New function.
11132 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11133 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11134 (init_windows_gdbarch_data): New function.
11135 (get_windows_gdbarch_data): New function.
11136 (windows_get_siginfo_type): New function.
11137 (windows_init_abi): Register windows_get_siginfo_type.
11138 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11139
6751ebae
TT
111402020-02-08 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11143 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11144 <keep>: Declare method.
11145 <m_keep>: Remove member.
11146 <~cutu_reader>: Remove.
11147 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11148 (cutu_reader::cutu_reader): Update.
11149 (cutu_reader::keep): Rename from ~cutu_reader.
11150 (process_psymtab_comp_unit, build_type_psymtabs_1)
11151 (process_skeletonless_type_unit, load_partial_comp_unit)
11152 (load_full_comp_unit, dwarf2_read_addr_index)
11153 (read_signatured_type): Update.
11154
135f5437
TT
111552020-02-08 Tom Tromey <tom@tromey.com>
11156
11157 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11158 "want_partial_unit" parameter.
11159 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11160 Inline check for DW_TAG_partial_unit.
11161 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11162
9f66ff1c
TT
111632020-02-08 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11166 read.c.
11167 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11168 read.c.
11169
c8a7a66f
TT
111702020-02-08 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2/read.c (read_address): Move to comp-unit.c.
11173 (dwarf2_rnglists_process, dwarf2_ranges_process)
11174 (read_attribute_value, dwarf_decode_lines_1)
11175 (var_decode_location, decode_locdesc): Update.
11176 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11177 read.c. Remove "cu" parameter.
11178 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11179 method.
11180
8266302d
TT
111812020-02-08 Tom Tromey <tom@tromey.com>
11182
11183 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11184 (read_indirect_line_string): Update.
11185 * dwarf2/comp-unit.c (read_offset): Remove.
11186 (read_comp_unit_head): Update.
11187 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11188 method.
11189 (read_offset): Don't declare.
11190
4057dfde
TT
111912020-02-08 Tom Tromey <tom@tromey.com>
11192
11193 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11194 * dwarf2/read.c (struct comp_unit_head): Move to
11195 dwarf2/comp-unit.h.
11196 (enum class rcuh_kind): Move to comp-unit.h.
11197 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11198 (read_comp_unit_head, error_check_comp_unit_head)
11199 (read_and_check_comp_unit_head): Move to comp-unit.c.
11200 (read_offset, dwarf_unit_type_name): Likewise.
11201 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11202 (cutu_reader::cutu_reader, read_call_site_scope)
11203 (find_partial_die, follow_die_offset): Update.
11204 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11205
24aa364d
TT
112062020-02-08 Tom Tromey <tom@tromey.com>
11207
11208 * dwarf2/read.c (read_offset_1): Move to leb.c.
11209 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11210 (dwarf_decode_macro_bytes): Update.
11211 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11212 * dwarf2/leb.h (read_offset): Declare.
11213
2c7d5afc
TT
112142020-02-08 Tom Tromey <tom@tromey.com>
11215
11216 * dwarf2/read.c (dwarf2_section_size): Remove.
11217 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11218 Update.
11219 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11220
4075cb26
TT
112212020-02-08 Tom Tromey <tom@tromey.com>
11222
11223 * dwarf2/read.c (read_initial_length): Move to leb.c.
11224 * dwarf2/leb.h (read_initial_length): Declare.
11225 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11226 handle_nonstd parameter.
11227 * dwarf2/frame.c (read_initial_length): Remove.
11228 (decode_frame_entry_1): Update.
11229
09ba997f
TT
112302020-02-08 Tom Tromey <tom@tromey.com>
11231
11232 * dwarf2/loc.c (dwarf2_find_location_expression)
11233 (dwarf_evaluate_loc_desc::get_tls_address)
11234 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11235 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11236 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11237 (dwarf2_compile_property_to_c)
11238 (dwarf2_loc_desc_get_symbol_read_needs)
11239 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11240 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11241 (loclist_describe_location, loclist_tracepoint_var_ref)
11242 (loclist_generate_c_location): Update.
11243 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11244 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11245 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11246 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11247 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11248 (dwarf2_per_cu_data::addr_size)
11249 (dwarf2_per_cu_data::ref_addr_size)
11250 (dwarf2_per_cu_data::text_offset)
11251 (dwarf2_per_cu_data::addr_type): Now methods.
11252 (per_cu_header_read_in): Make per_cu "const".
11253 (dwarf2_version): Remove.
11254 (dwarf2_per_cu_data::int_type): Now a method.
11255 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11256 (set_die_type, read_array_type, read_subrange_index_type)
11257 (read_tag_string_type, read_subrange_type): Update.
11258 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11259 offset_size, ref_addr_size, text_offset, addr_type, version,
11260 objfile, int_type, addr_sized_int_type>: Declare methods.
11261
96c738c0
TT
112622020-02-08 Tom Tromey <tom@tromey.com>
11263
11264 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11265 Move earlier.
11266
8fdd972c
TT
112672020-02-08 Tom Tromey <tom@tromey.com>
11268
11269 * dwarf2/read.h (dwarf_line_debug): Declare.
11270 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11271 * dwarf2/read.c: Move line_header code to new files.
11272 (dwarf_line_debug): No longer static.
11273 * dwarf2/line-header.c: New file.
11274 * dwarf2/line-header.h: New file.
11275
03075812
TT
112762020-02-08 Tom Tromey <tom@tromey.com>
11277
11278 * dwarf2/read.c (struct line_header) <file_full_name,
11279 file_file_name>: Return unique_xmalloc_ptr.
11280 (line_header::file_file_name): Update.
11281 (line_header::file_full_name): Update.
11282 (dw2_get_file_names_reader): Update.
11283 (macro_start_file): Update.
11284
bb822404
TT
112852020-02-08 Tom Tromey <tom@tromey.com>
11286
11287 * dwarf2/read.c (struct line_header) <file_full_name,
11288 file_file_name>: Declare methods.
11289 (dw2_get_file_names_reader): Update.
11290 (file_file_name): Now a method.
11291 (file_full_name): Likewise.
11292 (macro_start_file): Update.
11293
009b64fc
TT
112942020-02-08 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/read.c (dwarf_always_disassemble)
11297 (show_dwarf_always_disassemble): Move to loc.c.
11298 (_initialize_dwarf2_read): Move "always-disassemble" registration
11299 to loc.c.
11300 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11301 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11302 static.
11303 (show_dwarf_always_disassemble): Move from read.c.
11304 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11305
5895093f
TT
113062020-02-08 Tom Tromey <tom@tromey.com>
11307
11308 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11309 (create_quick_file_names_table): Return htab_up.
11310 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11311 Update.
11312 * dwarf2/read.h (struct dwarf2_per_objfile)
11313 <quick_file_names_table>: Now htab_up.
11314
b3b32279
TT
113152020-02-08 Tom Tromey <tom@tromey.com>
11316
11317 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11318
1d33d811
TT
113192020-02-08 Tom Tromey <tom@tromey.com>
11320
11321 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11322 Rewrite.
11323 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11324 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11325 (abbrev_table::abbrev_table): No longer inline.
11326 (ABBREV_HASH_SIZE): Remove.
11327 (abbrev_table::m_abbrevs): Now an htab_up.
11328
86de1d91
TT
113292020-02-08 Tom Tromey <tom@tromey.com>
11330
11331 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11332 (cutu_reader): Update.
11333 (build_type_psymtabs_1): Update.
11334 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11335 (abbrev_table::alloc_abbrev): Update.
11336 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11337 (abbrev_table::read): New static method, renamed from
11338 abbrev_table_read_table.
11339 (abbrev_table::alloc_abbrev)
11340 (abbrev_table::add_abbrev): Now private.
11341 (abbrev_table::abbrev_table): Now private.
11342 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11343
0335378b
TT
113442020-02-08 Tom Tromey <tom@tromey.com>
11345
11346 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11347 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11348 htab_up.
11349
48b490f2
TT
113502020-02-08 Tom Tromey <tom@tromey.com>
11351
11352 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11353 htab_up.
11354 (lookup_dwo_unit_in_dwp): Update.
11355 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11356 on obstack.
11357
bc68fb19
TT
113582020-02-08 Tom Tromey <tom@tromey.com>
11359
11360 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11361 obstack.
11362
d15acc42
TT
113632020-02-08 Tom Tromey <tom@tromey.com>
11364
11365 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11366 line_header_hash.
11367 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11368 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11369 Change type to htab_up.
11370
eaa5fa8b
TT
113712020-02-08 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11374 htab_up. Don't allocate on obstack.
11375 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11376 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11377 Change type to htab_up.
11378
b0b6a987
TT
113792020-02-08 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11382 Change type to htab_up.
11383 * dwarf2/read.c (create_signatured_type_table_from_index)
11384 (create_signatured_type_table_from_debug_names)
11385 (create_all_type_units, add_type_unit)
11386 (lookup_dwo_signatured_type, lookup_signatured_type)
11387 (process_skeletonless_type_unit): Update.
11388 (create_debug_type_hash_table, create_debug_types_hash_table):
11389 Change type of types_htab.
11390 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11391 htab_up. Don't allocate on obstack.
11392 (create_cus_hash_table): Change type of cus_htab parameter.
11393 (struct dwo_file) <cus, tus>: Now htab_up.
11394 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11395 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11396 (queue_and_load_all_dwo_tus): Update.
11397 * dwarf2/index-write.c (write_gdbindex): Update.
11398 (write_debug_names): Update.
11399
39856def
TT
114002020-02-08 Tom Tromey <tom@tromey.com>
11401
11402 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11403 dwarf2/read.c. Remove "next" member. Add constructor ntad
11404 destructor.
11405 (struct dwarf2_per_objfile) <queue>: New member.
11406 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11407 dwarf2/read.h.
11408 (dwarf2_queue, dwarf2_queue_tail): Remove.
11409 (class dwarf2_queue_guard): Add parameter to constructor. Use
11410 DISABLE_COPY_AND_ASSIGN.
11411 <m_per_objfile>: New member.
11412 <~dwarf2_queue_guard>: Rewrite.
11413 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11414 Update.
11415 (~dwarf2_queue_item): New.
11416
3e225074
TT
114172020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/read.c (struct die_info) <has_children>: New member.
11420 (dw2_get_file_names_reader): Remove has_children.
11421 (dw2_get_file_names): Update.
11422 (read_cutu_die_from_dwo): Remove has_children.
11423 (cutu_reader::init_tu_and_read_dwo_dies)
11424 (cutu_reader::cutu_reader): Update.
11425 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11426 Remove has_children.
11427 (build_type_psymtabs_1, process_skeletonless_type_unit)
11428 (load_partial_comp_unit, load_full_comp_unit): Update.
11429 (create_dwo_cu_reader): Remove has_children.
11430 (create_cus_hash_table, read_die_and_children): Update.
11431 (read_full_die_1,read_full_die): Remove has_children.
11432 (read_signatured_type): Update.
11433 (class cutu_reader) <has_children>: Remove.
11434
82ca8957
TT
114352020-02-08 Tom Tromey <tom@tromey.com>
11436
11437 * dwarf2/expr.c: Rename from dwarf2expr.c.
11438 * dwarf2/expr.h: Rename from dwarf2expr.h.
11439 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11440 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11441 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11442 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11443 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11444 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11445 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11446 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11447 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11448 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11449 * dwarf2/loc.c: Rename from dwarf2loc.c.
11450 * dwarf2/loc.h: Rename from dwarf2loc.h.
11451 * dwarf2/read.c: Rename from dwarf2read.c.
11452 * dwarf2/read.h: Rename from dwarf2read.h.
11453 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11454 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11455 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11456 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11457 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11458 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11459 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11460 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11461 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11462 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11463 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11464 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11465 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11466 Update.
11467 * Makefile.in (COMMON_SFILES): Update.
11468 (HFILES_NO_SRCDIR): Update.
11469
9e35d499
TT
114702020-02-08 Tom Tromey <tom@tromey.com>
11471
11472 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11473 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11474
1eba2311
TT
114752020-02-08 Tom Tromey <tom@tromey.com>
11476
11477 * dwarf2read.h (struct die_info): Don't declare.
11478
e41c2da2
TT
114792020-02-08 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2read.h (die_info_ptr): Remove typedef.
11482
4fc6c0d5
TT
114832020-02-08 Tom Tromey <tom@tromey.com>
11484
11485 * dwarf2read.c (read_call_site_scope)
11486 (handle_data_member_location, dwarf2_add_member_fn)
11487 (mark_common_block_symbol_computed, read_common_block)
11488 (attr_to_dynamic_prop, partial_die_info::read)
11489 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11490 (dwarf2_symbol_mark_computed, set_die_type): Update.
11491 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11492 method.
11493 (attr_form_is_block): Don't declare.
11494 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11495
cd6c91b4
TT
114962020-02-08 Tom Tromey <tom@tromey.com>
11497
11498 * dwarf2read.c (dwarf2_find_base_address, )
11499 (read_call_site_scope, rust_containing_type)
11500 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11501 (handle_data_member_location, dwarf2_add_member_fn)
11502 (get_alignment, read_structure_type, process_structure_scope)
11503 (mark_common_block_symbol_computed, read_common_block)
11504 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11505 (partial_die_info::read, read_attribute_value, new_symbol)
11506 (lookup_die_type, dwarf2_get_ref_die_offset)
11507 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11508 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11509 (dwarf2_symbol_mark_computed): Update.
11510 * dwarf2/attribute.h (struct attribute) <value_as_address,
11511 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11512 methods.
11513 (value_as_address, attr_form_is_section_offset)
11514 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11515 * dwarf2/attribute.c (attribute::value_as_address)
11516 (attribute::form_is_section_offset, attribute::form_is_constant)
11517 (attribute::form_is_ref): Now methods.
11518
162dce55
TT
115192020-02-08 Tom Tromey <tom@tromey.com>
11520
11521 * dwarf2read.c (struct attribute, DW_STRING)
11522 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11523 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11524 (attr_form_is_block, attr_form_is_section_offset)
11525 (attr_form_is_constant, attr_form_is_ref): Move.
11526 * dwarf2/attribute.h: New file.
11527 * dwarf2/attribute.c: New file, from dwarf2read.c.
11528 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11529
3054dd54
TT
115302020-02-08 Tom Tromey <tom@tromey.com>
11531
11532 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11533 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11534 Move.
11535 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11536 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11537 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11538 abbrev.c.
11539 * dwarf2/abbrev.h: New file.
11540 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11541 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11542
96b79293
TT
115432020-02-08 Tom Tromey <tom@tromey.com>
11544
11545 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11546 (dwarf2_section_size, dwarf2_get_section_info)
11547 (create_signatured_type_table_from_debug_names)
11548 (create_addrmap_from_aranges, read_debug_names_from_section)
11549 (get_gdb_index_contents_from_section, read_comp_unit_head)
11550 (error_check_comp_unit_head, read_abbrev_offset)
11551 (create_debug_type_hash_table, init_cu_die_reader)
11552 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11553 (read_comp_units_from_section, create_cus_hash_table)
11554 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11555 (create_dwp_v2_section, dwarf2_rnglists_process)
11556 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11557 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11558 (read_indirect_string_from_dwz, read_addr_index_1)
11559 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11560 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11561 (fill_in_loclist_baton): Update.
11562 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11563 get_containing_section, get_bfd_owner, get_bfd_section,
11564 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11565 (dwarf2_read_section, get_section_name, get_section_file_name)
11566 (get_containing_section, get_section_bfd_owner)
11567 (get_section_bfd_section, get_section_name, get_section_file_name)
11568 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11569 declare.
11570 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11571 (dwarf2_section_info::get_bfd_owner)
11572 (dwarf2_section_info::get_bfd_section)
11573 (dwarf2_section_info::get_name)
11574 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11575 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11576 (dwarf2_section_info::read): Now methods.
11577 * dwarf-index-write.c (class debug_names): Update.
11578
2c86cff9
TT
115792020-02-08 Tom Tromey <tom@tromey.com>
11580
11581 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11582 Move to dwarf2/section.h.
11583 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11584 (get_section_bfd_section, get_section_name)
11585 (get_section_file_name, get_section_id, get_section_flags)
11586 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11587 dwarf2/section.c.
11588 * dwarf2/section.h: New file.
11589 * dwarf2/section.c: New file, from dwarf2read.c.
11590 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11591
f4382c45
TT
115922020-02-08 Tom Tromey <tom@tromey.com>
11593
11594 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11595 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11596 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11597 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11598 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11599 * dwarf2/leb.h: New file, from dwarf2read.c.
11600 * dwarf2/leb.c: New file, from dwarf2read.c.
11601 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11602 Remove.
11603 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11604 (COMMON_SFILES): Add dwarf2/leb.c.
11605
01840b7a
JB
116062020-02-08 Joel Brobecker <brobecker@adacore.com>
11607
11608 GDB 9.1 released.
11609
dfcb27e4
IB
116102020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11611
11612 PR gdb/25190:
aac66a4c
SM
11613 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11614 * gdb/remote.c (remote_console_output): Update.
11615 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11616 (ui_file_puts): ...this.
11617 * gdb/ui-file.h (ui_file_puts): Add declaration.
11618 * gdb/utils.c (emit_style_escape): Update.
11619 (flush_wrap_buffer): Update.
11620 (fputs_maybe_filtered): Update.
11621 (fputs_unfiltered): Add function.
dfcb27e4 11622
faa17681
IB
116232020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11624
aac66a4c
SM
11625 * gdb/event-loop.c (gdb_wait_for_event): Update.
11626 * gdb/printcmd.c (printf_command): Update.
11627 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11628 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11629 (gdb_os_flush_stderr): Update.
11630 * gdb/remote.c (remote_console_output): Update.
11631 * gdb/ui-file.c (gdb_flush): Rename to...
11632 (ui_file_flush): ...this.
11633 (stderr_file::write): Update.
11634 (stderr_file::puts): Update.
11635 * gdb/ui-file.h (gdb_flush): Rename to...
11636 (ui_file_flush): ...this.
11637 * gdb/utils.c (gdb_flush): Add function.
11638 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11639
5abbbe1d
TT
116402020-02-07 Tom Tromey <tromey@adacore.com>
11641
11642 PR breakpoints/24915:
11643 * source.c (find_and_open_source): Do not check basenames_may_differ.
11644
919adfe8
TT
116452020-02-07 Tom Tromey <tom@tromey.com>
11646
11647 * README: Update gdbserver documentation.
11648 * gdbserver: Move to top level.
11649 * configure.tgt (build_gdbserver): Remove.
11650 * configure.ac: Remove --enable-gdbserver.
11651 * configure: Rebuild.
11652 * Makefile.in (distclean): Don't mention gdbserver.
11653
1d5d29e7
SV
116542020-02-06 Shahab Vahedi <shahab@synopsys.com>
11655
11656 * source-cache.c (source_cache::ensure): Surround
11657 get_plain_source_lines with a try/catch.
11658 (source_cache::get_line_charpos): Get rid of try/catch
11659 and only check for the return value of "ensure".
11660 * tui/tui-source.c (tui_source_window::set_contents):
11661 Simplify "nlines" calculation.
11662
6eb1129c
SV
116632020-02-06 Shahab Vahedi <shahab@synopsys.com>
11664
11665 * MAINTAINERS (Write After Approval): Add myself.
11666
c6a42d11
CB
116672020-02-05 Christian Biesinger <cbiesinger@google.com>
11668
11669 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11670 function call.
11671
c8ecdda6
CB
116722020-02-05 Christian Biesinger <cbiesinger@google.com>
11673
11674 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11675
f6480e70
MR
116762020-02-05 Maciej W. Rozycki <macro@wdc.com>
11677
11678 * nat/riscv-linux-tdesc.h: New file.
11679 * nat/riscv-linux-tdesc.c: New file, taking code from...
11680 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11681 ... here.
11682 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11683 NATDEPFILES.
11684
dcc9fbc6
AB
116852020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11686
11687 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11688 we don't set the fake simulator ptid to the null_ptid.
11689
719546c4
SM
116902020-02-03 Simon Marchi <simon.marchi@efficios.com>
11691
11692 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11693 * gdbthread.h (class thread_info) <resumed>: Likewise.
11694 * infrun.c (resume_1): Likewise.
11695 (proceed): Likewise.
11696 (infrun_thread_stop_requested): Likewise.
11697 (stop_all_threads): Likewise.
11698 (handle_inferior_event): Likewise.
11699 (restart_threads): Likewise.
11700 (finish_step_over): Likewise.
11701 (keep_going_stepped_thread): Likewise.
11702 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11703 (linux_handle_extended_wait): Likewise.
11704 * record-btrace.c (get_thread_current_frame_id): Likewise.
11705 * record-full.c (record_full_wait_1): Likewise.
11706 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11707 * target.c (target_resume): Likewise.
11708 * thread.c (set_running_thread): Likewise.
11709
e409c542
AKS
117102020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11711
11712 * f-valprint.c (f77_print_array_1): Changed datatype of index
11713 variable to LONGEST from int to enable it to contain bound
11714 values correctly.
11715
ee98c0da
MR
117162020-02-03 Maciej W. Rozycki <macro@wdc.com>
11717
11718 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11719 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11720 offsets according to FLEN determined.
11721 (riscv_linux_nat_target::read_description): Determine FLEN
11722 dynamically.
11723 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11724 according to FLEN determined.
11725 (riscv_linux_nat_target::store_registers): Likewise.
11726
aa66aac4
SV
117272020-02-01 Shahab Vahedi <shahab@synopsys.com>
11728
11729 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11730 when reg->group is empty and reggroup is not.
11731
fd9faca8
TT
117322020-01-31 Tom Tromey <tromey@adacore.com>
11733
11734 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11735 Call beneath target's mourn_inferior after unpushing.
11736
42330a68
AB
117372020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11738
11739 PR tui/9765
11740 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11741 have enough lines to fill the screen, still return the lowest
11742 address we found.
11743
7a27a45b
AB
117442020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11745
11746 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11747 '-', '<', and '>' commands.
11748
c47f70e2
PA
117492020-01-29 Pedro Alves <palves@redhat.com>
11750 Sergio Durigan Junior <sergiodj@redhat.com>
11751
11752 * infcmd.c (construct_inferior_arguments): Assert that
11753 'argc' is greater than 0.
11754
5133a315
LM
117552020-01-29 Luis Machado <luis.machado@linaro.org>
11756
11757 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11758 (BRK_INSN_MASK): Define to 0xd4200000.
11759 (aarch64_program_breakpoint_here_p): New function.
11760 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11761 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11762 breakpoint.c.
11763 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11764 breakpoint.h
11765 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11766 call gdbarch_program_breakpoint_here_p.
11767 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11768 default_program_breakpoint_here_p, changed return type to bool and
11769 simplified.
11770 * breakpoint.h (program_breakpoint_here): Moved prototype to
11771 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11772 return type to bool.
11773 * gdbarch.c: Regenerate.
11774 * gdbarch.h: Regenerate.
11775 * gdbarch.sh (program_breakpoint_here_p): New method.
11776 * infrun.c (handle_signal_stop): Call
11777 gdbarch_program_breakpoint_here_p.
11778
168f8c6b
TT
117792020-01-26 Tom Tromey <tom@tromey.com>
11780
11781 * ctfread.c (struct ctf_fp_info): Reindent.
11782 (_initialize_ctfread): Remove.
11783
128a391f
TT
117842020-01-26 Tom Tromey <tom@tromey.com>
11785
11786 * psymtab.c (partial_map_expand_apply)
11787 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11788 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11789 (psym_print_stats, psym_expand_symtabs_for_function)
11790 (psym_map_symbol_filenames, psym_map_matching_symbols)
11791 (psym_expand_symtabs_matching)
11792 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11793 (maintenance_check_psymtabs): Use new methods.
11794 * psympriv.h (struct partial_symtab) <readin_p,
11795 get_compunit_symtab>: New methods.
11796 <readin, compunit_symtab>: Remove members.
11797 (struct standard_psymtab): New.
11798 (struct legacy_psymtab): Derive from standard_psymtab.
11799 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11800 standard_psymtab.
11801 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11802
0494dbec
TT
118032020-01-26 Tom Tromey <tom@tromey.com>
11804
11805 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11806 read_dependencies. Add assert.
11807 * psymtab.c (partial_symtab::read_dependencies): New method.
11808 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11809 method.
11810 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11811 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11812 read_dependencies.
11813 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11814 Add assert.
11815
8566b89b
TT
118162020-01-26 Tom Tromey <tom@tromey.com>
11817
11818 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11819 Call expand_psymtab.
11820 (xcoff_read_symtab): Call expand_psymtab.
11821 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11822 legacy_expand_psymtab.
11823 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11824 method.
11825 (struct legacy_psymtab) <expand_psymtab>: Implement.
11826 <legacy_expand_psymtab>: New member.
11827 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11828 (parse_partial_symbols): Set legacy_expand_psymtab.
11829 (psymtab_to_symtab_1): Change argument order. Call
11830 expand_psymtab.
11831 (new_psymtab): Set legacy_expand_psymtab.
11832 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11833 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11834 expand_psymtab.
11835 (dwarf2_psymtab::expand_psymtab): Rename from
11836 psymtab_to_symtab_1. Call expand_psymtab.
11837 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11838 (dbx_end_psymtab): Likewise.
11839 (dbx_psymtab_to_symtab_1): Change argument order. Call
11840 expand_psymtab.
11841 (dbx_read_symtab): Call expand_psymtab.
11842 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11843 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11844 (ctf_psymtab::read_symtab): Call expand_psymtab.
11845
077cbab2
TT
118462020-01-26 Tom Tromey <tom@tromey.com>
11847
11848 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11849 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11850 messages.
11851 * mdebugread.c (mdebug_read_symtab): Remove prints.
11852 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11853 assert.
11854 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11855
891813be
TT
118562020-01-26 Tom Tromey <tom@tromey.com>
11857
11858 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11859 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11860 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11861 legacy_symtab.
11862 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11863 * psymtab.c (psymtab_to_symtab): Call method.
11864 (dump_psymtab): Update.
11865 * psympriv.h (struct partial_symtab): Add virtual destructor.
11866 <read_symtab>: New method.
11867 (struct legacy_symtab): New.
11868 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11869 (struct pst_map) <pst>: Now a legacy_psymtab.
11870 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11871 (new_psymtab): Use legacy_psymtab.
11872 * dwarf2read.h (struct dwarf2_psymtab): New.
11873 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11874 * dwarf2read.c (dwarf2_create_include_psymtab)
11875 (dwarf2_build_include_psymtabs, create_type_unit_group)
11876 (create_partial_symtab, process_psymtab_comp_unit_reader)
11877 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11878 (set_partial_user): Use dwarf2_psymtab.
11879 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11880 (psymtab_to_symtab_1, process_full_comp_unit)
11881 (process_full_type_unit, dwarf2_ranges_read)
11882 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11883 (dwarf_decode_lines): Use dwarf2_psymtab.
11884 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11885 (add_address_entry_worker, write_one_signatured_type)
11886 (recursively_count_psymbols, recursively_write_psymbols)
11887 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11888 (write_debug_names): Likewise.
11889 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11890 <pst>: Now a legacy_psymtab.
11891 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11892 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11893 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11894 * ctfread.c (struct ctf_psymtab): New.
11895 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11896 ctf_psymtab.
11897 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11898 (create_partial_symtab): Return a ctf_psymtab.
11899 (scan_partial_symbols): Update.
11900
c3693a1d
TT
119012020-01-26 Tom Tromey <tom@tromey.com>
11902
11903 * xcoffread.c (xcoff_start_psymtab): Use new.
11904 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11905 renamed from start_psymtab_common.
11906 * psympriv.h (struct partial_symtab): Add new constructor.
11907 (start_psymtab_common): Don't declare.
11908 * mdebugread.c (parse_partial_symbols): Use new.
11909 * dwarf2read.c (create_partial_symtab): Use new.
11910 * dbxread.c (start_psymtab): Use new.
11911 * ctfread.c (create_partial_symtab): Use new.
11912
32caafd0
TT
119132020-01-26 Tom Tromey <tom@tromey.com>
11914
11915 * xcoffread.c (xcoff_end_psymtab): Use new.
11916 * psymtab.c (start_psymtab_common): Use new.
11917 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11918 Update.
11919 * psympriv.h (struct partial_symtab): Add parameters to
11920 constructor. Don't inline.
11921 (allocate_psymtab): Don't declare.
11922 * mdebugread.c (new_psymtab): Use new.
11923 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11924 * dbxread.c (dbx_end_psymtab): Use new.
11925
abaa2f23
TT
119262020-01-26 Tom Tromey <tom@tromey.com>
11927
11928 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11929 allocate_psymtab. Update documentation.
11930 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11931 allocate_psymtab. Do not use new.
11932 (allocate_psymtab): Use new. Update.
11933
6d94535f
TT
119342020-01-26 Tom Tromey <tom@tromey.com>
11935
11936 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11937 * psymtab.c (psym_print_stats): Update.
11938 * psympriv.h (struct partial_symtab) <readin,
11939 psymtabs_addrmap_supported, anonymous>: Now bool.
11940 * mdebugread.c (psymtab_to_symtab_1): Update.
11941 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11942 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11943 (process_full_comp_unit, process_full_type_unit): Update.
11944 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11945 * ctfread.c (psymtab_to_symtab): Update.
11946
6f17252b
TT
119472020-01-26 Tom Tromey <tom@tromey.com>
11948
11949 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11950 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11951 * psymtab.c (psymtab_storage): Delete psymtabs.
11952 (psymtab_storage::allocate_psymtab): Use new.
11953 (psymtab_storage::discard_psymtab): Use delete.
11954 * psympriv.h (struct partial_symtab): Add constructor and
11955 initializers.
11956
f6f1cebc
TT
119572020-01-26 Tom Tromey <tom@tromey.com>
11958
11959 * machoread.c: Do not include psympriv.h.
11960
e47e48f6
PW
119612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11962
11963 * NEWS: Mention the new option and the set/show commands.
11964
a2fedca9
PW
119652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11966
11967 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11968 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11969 (validate_exec_file): New variables, enums, functions.
11970 (exec_file_locate_attach, print_section_info): Style the filenames.
11971 (_initialize_exec): Install show_exec_file_mismatch_command and
11972 set_exec_file_mismatch_command.
11973 * gdbcore.h (validate_exec_file): Declare.
11974 * infcmd.c (attach_command): Call validate_exec_file.
11975 * remote.c ( remote_target::remote_add_inferior): Likewise.
11976
7ffa82e1
AB
119772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11978
11979 * frame.c (find_frame_sal): Move call to get_next_frame into more
11980 inner scope.
11981 * inline-frame.c (inilne_state) <inline_state>: Update argument
11982 types.
11983 (inilne_state) <skipped_symbol>: Rename to...
11984 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11985 (skip_inline_frames): Build vector of skipped symbols and use this
11986 to reate the inline_state.
11987 (inline_skipped_symbol): Add a comment and some assertions, fetch
11988 skipped symbol from the list.
11989
3d92a3e3
AB
119902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11991
11992 * buildsym.c (lte_is_less_than): Delete.
11993 (buildsym_compunit::end_symtab_with_blockvector): Create local
11994 lambda function to sort line table entries, and use
11995 std::stable_sort instead of std::sort.
11996 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11997 markers when looking for a previous line.
11998
94a72be7
AB
119992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * dwarf2read.c (lnp_state_machine::record_line): Include
12002 end_sequence parameter in debug print out. Record the line if we
12003 are at an end_sequence marker even if it's not the start of a
12004 statement.
12005 * symmisc.c (maintenance_print_one_line_table): Print end of
12006 sequence markers with 'END' not '0'.
12007
53af73bf
PA
120082020-01-24 Pedro Alves <palves@redhat.com>
12009
12010 PR gdb/25410
12011 * thread.c (scoped_restore_current_thread::restore): Use
12012 switch_to_inferior_no_thread.
12013 * exec.c: Include "progspace-and-thread.h".
12014 (add_target_sections, remove_target_sections):
12015 scoped_restore_current_pspace_and_thread instead of
12016 scoped_restore_current_thread.
12017 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12018 and aspace to the inferior before calling clone_program_space.
12019 Remove stale comment.
12020
3050c6f4
CB
120212020-01-24 Christian Biesinger <cbiesinger@google.com>
12022
12023 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12024 (arm_netbsd_nat_target::fetch_registers): ...this.
12025 (arm_nbsd_nat_target::store_registers): Rename to...
12026 (arm_netbsd_nat_target::store_registers): ...this.
12027
73685c7e
CB
120282020-01-24 Christian Biesinger <cbiesinger@google.com>
12029
12030 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12031 register_t.
12032
89203d40
CB
120332020-01-24 Christian Biesinger <cbiesinger@google.com>
12034
12035 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12036 Update comment.
12037 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12038 Likewise.
12039 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12040 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12041 the correct replacement (iterate_over_regset_sections).
12042 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12043 Update comment.
12044
1ba1ac88
AB
120452020-01-24 Graham Markall <graham.markall@embecosm.com>
12046
12047 PR gdb/23718
12048 * gdb/python/python.c (execute_gdb_command): Call
12049 async_enable_stdin in catch block.
12050
f3364a6d
AB
120512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12052
12053 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12054 SWITCH_THRU_ALL_UIS.
12055
733d0a67
AB
120562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12057
12058 PR tui/9765
12059 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12060 comment, add extra parameter, and update to store previous symbol
12061 when appropriate.
12062 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12063 add extra parameter.
12064 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12065 remove unneeded parameter, add try/catch around gdb_print_insn,
12066 rewrite to add items to asm_lines vector.
12067 (tui_find_backward_disassembly_start_address): New function.
12068 (tui_find_disassembly_address): Updated throughout.
12069 (tui_disasm_window::set_contents): Update for changes to
12070 tui_disassemble.
12071 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12072 number of lines to scroll.
12073
b3b3bada
SM
120742020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12075
12076 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12077 (SECT_OFF_DATA): Likewise.
12078 (SECT_OFF_RODATA): Likewise.
12079 (SECT_OFF_TEXT): Likewise.
12080 (SECT_OFF_BSS): Likewise.
12081 (struct objfile) <text_section_offset, data_section_offset>: New
12082 methods.
12083 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12084 objfile::text_section_offset.
12085 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12086 * coffread.c (coff_symtab_read): Likewise.
12087 (enter_linenos): Likewise.
12088 (process_coff_symbol): Likewise.
12089 * ctfread.c (get_objfile_text_range): Likewise.
12090 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12091 Use objfile::data_section_offset.
12092 * dwarf2-frame.c (execute_cfa_program): Use
12093 objfile::text_section_offset.
12094 (dwarf2_frame_find_fde): Likewise.
12095 * dwarf2read.c (create_addrmap_from_index): Likewise.
12096 (create_addrmap_from_aranges): Likewise.
12097 (dw2_find_pc_sect_compunit_symtab): Likewise.
12098 (process_psymtab_comp_unit_reader): Likewise.
12099 (add_partial_symbol): Likewise.
12100 (add_partial_subprogram): Likewise.
12101 (process_full_comp_unit): Likewise.
12102 (read_file_scope): Likewise.
12103 (read_func_scope): Likewise.
12104 (read_lexical_block_scope): Likewise.
12105 (read_call_site_scope): Likewise.
12106 (dwarf2_rnglists_process): Likewise.
12107 (dwarf2_ranges_process): Likewise.
12108 (dwarf2_ranges_read): Likewise.
12109 (dwarf_decode_lines_1): Likewise.
12110 (new_symbol): Likewise.
12111 (dwarf2_fetch_die_loc_sect_off): Likewise.
12112 (dwarf2_per_cu_text_offset): Likewise.
12113 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12114 * hppa-tdep.c (read_unwind_info): Likewise.
12115 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12116 * psympriv.h (struct partial_symtab): Likewise.
12117 * psymtab.c (find_pc_sect_psymtab): Likewise.
12118 * solib-svr4.c (enable_break): Likewise.
12119 * stap-probe.c (relocate_address): Use
12120 objfile::data_section_offset.
12121 * xcoffread.c (enter_line_range): Use
12122 objfile::text_section_offset.
12123 (read_xcoff_symtab): Likewise.
12124
ab53f382
SM
121252020-01-23 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12128 declaration to narrower scopes.
12129
e7eee665
SM
121302020-01-23 Simon Marchi <simon.marchi@efficios.com>
12131
12132 * darwin-nat.h (struct darwin_exception_msg, enum
12133 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12134 Move up.
12135 (class darwin_nat_target) <wait_1, check_new_threads,
12136 decode_exception_message, decode_message, stop_inferior,
12137 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12138 * darwin-nat.c (darwin_check_new_threads): Rename to...
12139 (darwin_nat_target::check_new_threads): ... this.
12140 (darwin_suspend_inferior_it): Remove.
12141 (darwin_decode_exception_message): Rename to...
12142 (darwin_nat_target::decode_exception_message): ... this.
12143 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12144 (darwin_decode_message): Rename to...
12145 (darwin_nat_target::decode_message): ... this.
12146 (cancel_breakpoint): Rename to...
12147 (darwin_nat_target::cancel_breakpoint): ... this.
12148 (darwin_wait): Rename to...
12149 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12150 instead of iterate_over_inferiors.
12151 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12152 (darwin_stop_inferior): Rename to...
12153 (darwin_nat_target::stop_inferior): ... this.
12154 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12155 (darwin_init_thread_list): Rename to...
12156 (darwin_nat_target::init_thread_list): ... this.
12157 (darwin_ptrace_him): Rename to...
12158 (darwin_nat_target::ptrace_him): ... this.
12159 (darwin_nat_target::create_inferior): Pass lambda function to
12160 fork_inferior.
12161 (darwin_nat_target::detach): Call stop_inferior instead of
12162 darwin_stop_inferior.
12163 * fork-inferior.h (fork_inferior): Change init_trace_fun
12164 parameter to gdb::function_view.
12165 * fork-inferior.c (fork_inferior): Likewise.
12166
c162ed3e
HD
121672020-01-23 Hannes Domani <ssbssa@yahoo.de>
12168
12169 * i386-cygwin-tdep.c (core_process_module_section): Update.
12170 * windows-nat.c (struct lm_info_windows): Add text_offset.
12171 (windows_xfer_shared_libraries): Update.
12172 * windows-tdep.c (windows_xfer_shared_library):
12173 Add text_offset_cached argument.
12174 * windows-tdep.h (windows_xfer_shared_library): Update.
12175
a1237872
SM
121762020-01-21 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12179
b3ee6dd9
SM
121802020-01-21 Simon Marchi <simon.marchi@efficios.com>
12181
12182 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12183 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12184 replace with range-based for.
12185 (gdbsim_interrupt_inferior): Remove.
12186 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12187 with a range-based for. Inline code from
12188 gdbsim_interrupt_inferior.
12189
f9fac3c8
SM
121902020-01-21 Simon Marchi <simon.marchi@efficios.com>
12191
12192 * infrun.c (proceed): Fix indentation.
12193
f6474de9
TT
121942020-01-21 Tom Tromey <tromey@adacore.com>
12195
12196 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12197 * python/python.c (python_extension_ops): Update.
12198 (gdbpy_colorize): New function.
12199 * python/lib/gdb/__init__.py (colorize): New function.
12200 * extension.h (ext_lang_colorize): Declare.
12201 * extension.c (ext_lang_colorize): New function.
12202 * extension-priv.h (struct extension_language_ops) <colorize>: New
12203 member.
12204 * cli/cli-style.c (_initialize_cli_style): Update help text.
12205
f0c702d4
LM
122062020-01-21 Luis Machado <luis.machado@linaro.org>
12207
12208 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12209 <cond>: Change type to bool.
12210 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12211 (aarch64_displaced_step_cb): Likewise.
12212 (aarch64_displaced_step_tb): Likewise.
12213
1ab139e5
LM
122142020-01-21 Luis Machado <luis.machado@linaro.org>
12215
12216 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12217 output.
12218
0c271889
LM
122192020-01-21 Luis Machado <luis.machado@linaro.org>
12220
12221 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12222 <pc_adjust>: Adjust the documentation.
12223 (aarch64_displaced_step_fixup): Check if PC really moved before
12224 adjusting it.
12225
4d89c1c7
TT
122262020-01-19 Tom Tromey <tom@tromey.com>
12227
12228 * disasm.c (~gdb_disassembler): New destructor.
12229 (gdb_buffered_insn_length): Call disassemble_free_target.
12230 * disasm.h (class gdb_disassembler): Declare destructor. Use
12231 DISABLE_COPY_AND_ASSIGN.
12232
c0ab21c2
TT
122332020-01-19 Tom Tromey <tom@tromey.com>
12234
12235 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12236 (die_reader_func_ftype): Remove.
12237 (cutu_reader): New class.
12238 (dw2_get_file_names_reader): Remove "data" parameter.
12239 (dw2_get_file_names): Use cutu_reader.
12240 (create_debug_type_hash_table): Update.
12241 (read_cutu_die_from_dwo): Update comment.
12242 (lookup_dwo_unit): Add dwo_name parameter.
12243 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12244 die_reader_func_ftype and data parameters.
12245 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12246 Remove die_reader_func_ftype and data parameters.
12247 (~cutu_reader): New; from init_cutu_and_read_dies.
12248 (cutu_reader::cutu_reader): Rename from
12249 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12250 and data parameters.
12251 (init_cutu_and_read_dies_simple): Remove.
12252 (struct process_psymtab_comp_unit_data): Remove.
12253 (process_psymtab_comp_unit_reader): Remove data parameter; add
12254 want_partial_unit and pretend_language parameters.
12255 (process_psymtab_comp_unit): Use cutu_reader.
12256 (build_type_psymtabs_reader): Remove data parameter.
12257 (build_type_psymtabs_1): Use cutu_reader.
12258 (process_skeletonless_type_unit): Likewise.
12259 (load_partial_comp_unit_reader): Remove.
12260 (load_partial_comp_unit): Use cutu_reader.
12261 (load_full_comp_unit_reader): Remove.
12262 (load_full_comp_unit): Use cutu_reader.
12263 (struct create_dwo_cu_data): Remove.
12264 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12265 dwo_unit parameters.
12266 (create_cus_hash_table): Use cutu_reader.
12267 (struct dwarf2_read_addr_index_data): Remove.
12268 (dwarf2_read_addr_index_reader): Remove.
12269 (dwarf2_read_addr_index): Use cutu_reader.
12270 (read_signatured_type_reader): Remove.
12271 (read_signatured_type): Use cutu_reader.
12272
45bbae5c
TT
122732020-01-19 Tom Tromey <tom@tromey.com>
12274
12275 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12276 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12277 (tui_wrefresh): Declare.
12278 * tui/tui-wingeneral.c (suppress_output): New global.
12279 (tui_suppress_output, ~tui_suppress_output): New constructor and
12280 destructor.
12281 (tui_wrefresh): New function.
12282 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12283 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12284 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12285 method.
12286 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12287 tui_wrefresh.
12288 (tui_data_window::no_refresh): New method.
12289 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12290 (tui_reg_command): Use tui_suppress_output
12291 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12292 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12293 method.
12294 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12295
4f13c1c0
TT
122962020-01-19 Tom Tromey <tom@tromey.com>
12297
12298 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12299 Handle case where symtab is null.
12300
fa47e446
SM
123012020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12302
12303 * linux-fork.c (one_fork_p): Simplify.
12304
26f42329
SM
123052020-01-17 Simon Marchi <simon.marchi@efficios.com>
12306
12307 * top.c (struct qt_args): Remove.
12308 (kill_or_detach): Change return type to void, replace `void *`
12309 parameter with a proper one.
12310 (print_inferior_quit_action): Likewise.
12311 (quit_confirm): Use range-based for loop to iterate over inferiors.
12312 (quit_force): Likewise.
12313
a9ac81b1
SM
123142020-01-17 Simon Marchi <simon.marchi@efficios.com>
12315
12316 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12317 `void *` parameter with proper parameters.
12318 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12319 (print_one_inferior): Change return type to void, replace `void *`
12320 parameter with proper parameters.
12321 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12322 inferiors.
12323 (get_other_inferior): Remove.
12324 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12325 inferiors.
12326
788eca49
SM
123272020-01-17 Simon Marchi <simon.marchi@efficios.com>
12328
12329 * mi/mi-interp.c (report_initial_inferior): Remove.
12330 (mi_interp::init): Use range-based for to iterate over inferiors.
12331
d9bc85b6
SM
123322020-01-17 Simon Marchi <simon.marchi@efficios.com>
12333
12334 * python/py-inferior.c (build_inferior_list): Remove.
12335 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12336
40c94099
CB
123372020-01-16 Christian Biesinger <cbiesinger@google.com>
12338
12339 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12340 (btrace_stitch_trace): Likewise.
12341 * charset.c (intermediate_encoding): Likewise (vaild).
12342 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12343 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12344 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12345
e0cdfe3c
HD
123462020-01-16 Hannes Domani <ssbssa@yahoo.de>
12347
12348 * windows-tdep.c (windows_get_tlb_type):
12349 Add rtl_user_process_parameters type.
12350
790f1718 123512020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12352 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12353
12354 PR build/24805
12355 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12356 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12357 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12358 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12359 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12360 (ps_plog): Redeclare exported functions with default visibility.
12361
3112ed97
NA
123622020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12363
12364 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12365 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12366
8dc3273e
SM
123672020-01-15 Simon Marchi <simon.marchi@efficios.com>
12368
12369 * infcmd.c (post_create_inferior): Use get_thread_regcache
12370 instead of get_current_regcache.
12371
ff47f4f0
TT
123722020-01-14 Tom Tromey <tom@tromey.com>
12373
12374 PR symtab/12535:
12375 * python/python.c (gdbpy_decode_line): Treat empty string the same
12376 as no argument.
12377
975f45b7
TT
123782020-01-14 Tom Tromey <tom@tromey.com>
12379
12380 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12381
25e57356
TT
123822020-01-14 Tom Tromey <tom@tromey.com>
12383
12384 * nat/linux-btrace.c: Don't include <config.h>.
12385 * nat/linux-ptrace.c: Don't include <config.h>.
12386 * nat/x86-linux-dregs.c: Don't include <config.h>.
12387
05ea2a05
TT
123882020-01-14 Tom Tromey <tom@tromey.com>
12389
12390 * configure: Rebuild.
12391 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12392
01027315
TT
123932020-01-14 Tom Tromey <tom@tromey.com>
12394
12395 * nat/x86-linux-dregs.c: Include configh.h.
12396 * nat/linux-ptrace.c: Include configh.h.
12397 * nat/linux-btrace.c: Include configh.h.
12398 * defs.h: Include config.h, bfd.h.
12399 * configure.ac: Don't source common.host.
12400 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12401 * configure: Rebuild.
12402 * acinclude.m4: Update path.
12403 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12404 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12405 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12406 (CLIBS): Add LIBSUPPORT.
12407 (CDEPS): Likewise.
12408 (COMMON_SFILES): Remove gdbsupport files.
12409 (HFILES_NO_SRCDIR): Likewise.
12410 (stamp-version): Update path to create-version.sh.
12411 (ALLDEPFILES): Remove gdbsupport files.
12412
b2ceabe8
TT
124132020-01-14 Tom Tromey <tom@tromey.com>
12414
12415 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12416 USE_WIN32API when needed.
12417 * configure.ac (USE_WIN32API): Don't define.
12418 (WIN32LIBS): Use WIN32APILIBS.
12419 * configure: Rebuild.
12420
25c51f71
TT
124212020-01-14 Tom Tromey <tom@tromey.com>
12422
12423 * configure: Rebuild.
12424 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12425
717c684d
BE
124262020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12427
12428 * skip.c (skip_function_command): Make skip w/o arguments use the
12429 name of the inlined function if pc is inside any inlined function.
12430
7da6a5b9
LM
124312020-01-14 Luis Machado <luis.machado@linaro.org>
12432
12433 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12434 * infrun.c (resume_1): Likewise.
12435 (handle_inferior_event): Remove stale comment.
12436 * linux-nat.c (linux_nat_target::resume): Update comments.
12437 (save_stop_reason): Likewise.
12438 (linux_nat_filter_event): Likewise.
12439 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12440
44e4c775
AB
124412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12442
12443 * elfread.c (record_minimal_symbol): Set section index to 0 for
12444 non-allocatable sections.
12445
18a8505e
AT
12446
124472020-01-13 Ali Tamur <tamur@google.com>
12448
12449 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12450 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12451 to gdb::optional. Update comments.
12452 (dwo_file): Update comments.
12453 (read_attribute): Update API to take an additional out parameter,
12454 need_reprocess. This is used to mark attributes that need other
12455 attributes (e.g. str_offsets_base) for correct computation which may not
12456 have been read yet.
12457 (read_attribute_reprocess): New function declaration.
12458 (read_addr_index): Likewise.
12459 (read_dwo_str_index): Likewise.
12460 (read_stub_str_index): Likewise.
12461 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12462 (lookup_addr_base): New function definition.
12463 (lookup_ranges_base): Likewise.
12464 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12465 lookup_ranges_base.
12466 (init_cutu_and_read_dies): Update comments.
12467 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12468 unit. This is used to inherit parent's str_offsets_base and addr_base.
12469 Update comments.
12470 (init_cutu_and_read_dies_simple): Reflect API changes.
12471 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12472 (create_cus_hash_table): Change API to take parent compile unit.
12473 Reflect API changes.
12474 (open_and_init_dwo_file): Reflect API changes.
12475 (dwarf2_get_pc_bounds): Update comments.
12476 (dwarf2_record_block_ranges): Likewise.
12477 (read_full_die_1): Change implementation to reprocess attributes that
12478 need str_offsets_base and addr_base.
12479 (partial_die_info::read): Likewise.
12480 (read_attribute_reprocess): New function definition.
12481 (read_attribute_value): Change API to take an additional out parameter,
12482 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12483 when a non-dwo compile unit has index based attributes.
12484 (read_attribute): Reflect API changes.
12485 (read_addr_index_1): Reflect API changes. Update comments.
12486 (dwarf2_read_addr_index_data): Reflect API changes.
12487 (dwarf2_read_addr_index): Likewise.
12488 (read_str_index): Change API and implementation. This becomes a helper
12489 to be used by the new string index related methods. Update error
12490 message and comments.
12491 (read_dwo_str_index): New function definition.
12492 (read_stub_str_index): Likewise.
12493 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12494 * symfile.h (dwarf2_debug_sections): Likewise.
12495 * xcoffread.c (dwarf2_debug_sections): Likewise.
12496
0cac9354
SM
124972020-01-13 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12500 core_reg_sect type to gdb_byte *.
12501 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12502 * cris-tdep.c (fetch_core_registers): Likewise.
12503 * corelow.c (core_target::get_core_register_section): Change
12504 type of `contents` to gdb::byte_vector.
12505
9a6d629c
AB
125062020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12507
12508 * tui/tui-wingeneral.c (box_win): Position the title in the center
12509 of the border.
12510
d8b2f9e3
SM
125112020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12512
12513 * corelow.c (core_target::get_core_register_section): Use
12514 std::vector instead of alloca.
12515
bb564c58
SM
125162020-01-13 Simon Marchi <simon.marchi@efficios.com>
12517
12518 * warning.m4: Add -Wmissing-declarations to build_warnings.
12519 * configure: Re-generate.
12520
6b366111
SM
125212020-01-13 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * python/python.c (init__gdb_module): Add declaration.
12524
6c265988
SM
125252020-01-13 Simon Marchi <simon.marchi@efficios.com>
12526
12527 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12528 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12529 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12530 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12531 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12532 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12533 * ada-exp.y (_initialize_ada_exp): Add declaration.
12534 * ada-lang.c (_initialize_ada_language): Add declaration.
12535 * ada-tasks.c (_initialize_tasks): Add declaration.
12536 * agent.c (_initialize_agent): Add declaration.
12537 * aix-thread.c (_initialize_aix_thread): Add declaration.
12538 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12539 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12540 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12541 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12542 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12543 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12544 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12545 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12546 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12547 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12548 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12549 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12550 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12551 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12552 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12553 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12554 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12555 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12556 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12557 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12558 * annotate.c (_initialize_annotate): Add declaration.
12559 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12560 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12561 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12562 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12563 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12564 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12565 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12566 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12567 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12568 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12569 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12570 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12571 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12572 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12573 * auto-load.c (_initialize_auto_load): Add declaration.
12574 * auxv.c (_initialize_auxv): Add declaration.
12575 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12576 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12577 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12578 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12579 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12580 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12581 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12582 * breakpoint.c (_initialize_breakpoint): Add declaration.
12583 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12584 * btrace.c (_initialize_btrace): Add declaration.
12585 * charset.c (_initialize_charset): Add declaration.
12586 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12587 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12588 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12589 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12590 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12591 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12592 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12593 * coffread.c (_initialize_coffread): Add declaration.
12594 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12595 * compile/compile.c (_initialize_compile): Add declaration.
12596 * complaints.c (_initialize_complaints): Add declaration.
12597 * completer.c (_initialize_completer): Add declaration.
12598 * copying.c (_initialize_copying): Add declaration.
12599 * corefile.c (_initialize_core): Add declaration.
12600 * corelow.c (_initialize_corelow): Add declaration.
12601 * cp-abi.c (_initialize_cp_abi): Add declaration.
12602 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12603 * cp-support.c (_initialize_cp_support): Add declaration.
12604 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12605 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12606 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12607 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12608 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12609 * ctfread.c (_initialize_ctfread): Add declaration.
12610 * d-lang.c (_initialize_d_language): Add declaration.
12611 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12612 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12613 * dbxread.c (_initialize_dbxread): Add declaration.
12614 * dcache.c (_initialize_dcache): Add declaration.
12615 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12616 * disasm.c (_initialize_disasm): Add declaration.
12617 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12618 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12619 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12620 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12621 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12622 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12623 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12624 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12625 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12626 * elfread.c (_initialize_elfread): Add declaration.
12627 * exec.c (_initialize_exec): Add declaration.
12628 * extension.c (_initialize_extension): Add declaration.
12629 * f-lang.c (_initialize_f_language): Add declaration.
12630 * f-valprint.c (_initialize_f_valprint): Add declaration.
12631 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12632 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12633 * filesystem.c (_initialize_filesystem): Add declaration.
12634 * findcmd.c (_initialize_mem_search): Add declaration.
12635 * findvar.c (_initialize_findvar): Add declaration.
12636 * fork-child.c (_initialize_fork_child): Add declaration.
12637 * frame-base.c (_initialize_frame_base): Add declaration.
12638 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12639 * frame.c (_initialize_frame): Add declaration.
12640 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12641 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12642 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12643 * gcore.c (_initialize_gcore): Add declaration.
12644 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12645 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12646 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12647 * gdbarch.c (_initialize_gdbarch): Add declaration.
12648 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12649 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12650 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12651 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12652 * go-lang.c (_initialize_go_language): Add declaration.
12653 * go32-nat.c (_initialize_go32_nat): Add declaration.
12654 * guile/guile.c (_initialize_guile): Add declaration.
12655 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12656 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12657 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12658 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12659 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12660 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12661 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12662 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12663 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12664 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12665 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12666 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12667 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12668 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12669 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12670 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12671 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12672 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12673 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12674 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12675 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12676 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12677 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12678 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12679 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12680 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12681 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12682 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12683 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12684 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12685 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12686 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12687 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12688 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12689 * infcall.c (_initialize_infcall): Add declaration.
12690 * infcmd.c (_initialize_infcmd): Add declaration.
12691 * inflow.c (_initialize_inflow): Add declaration.
12692 * infrun.c (_initialize_infrun): Add declaration.
12693 * interps.c (_initialize_interpreter): Add declaration.
12694 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12695 * jit.c (_initialize_jit): Add declaration.
12696 * language.c (_initialize_language): Add declaration.
12697 * linux-fork.c (_initialize_linux_fork): Add declaration.
12698 * linux-nat.c (_initialize_linux_nat): Add declaration.
12699 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12700 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12701 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12702 * m2-lang.c (_initialize_m2_language): Add declaration.
12703 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12704 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12705 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12706 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12707 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12708 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12709 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12710 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12711 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12712 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12713 * machoread.c (_initialize_machoread): Add declaration.
12714 * macrocmd.c (_initialize_macrocmd): Add declaration.
12715 * macroscope.c (_initialize_macroscope): Add declaration.
12716 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12717 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12718 * maint.c (_initialize_maint_cmds): Add declaration.
12719 * mdebugread.c (_initialize_mdebugread): Add declaration.
12720 * memattr.c (_initialize_mem): Add declaration.
12721 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12722 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12723 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12724 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12725 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12726 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12727 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12728 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12729 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12730 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12731 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12732 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12733 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12734 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12735 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12736 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12737 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12738 * mipsread.c (_initialize_mipsread): Add declaration.
12739 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12740 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12741 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12742 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12743 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12744 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12745 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12746 * nto-procfs.c (_initialize_procfs): Add declaration.
12747 * objc-lang.c (_initialize_objc_language): Add declaration.
12748 * observable.c (_initialize_observer): Add declaration.
12749 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12750 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12751 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12752 * osabi.c (_initialize_gdb_osabi): Add declaration.
12753 * osdata.c (_initialize_osdata): Add declaration.
12754 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12755 * parse.c (_initialize_parse): Add declaration.
12756 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12757 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12758 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12759 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12760 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12761 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12762 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12763 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12764 * printcmd.c (_initialize_printcmd): Add declaration.
12765 * probe.c (_initialize_probe): Add declaration.
12766 * proc-api.c (_initialize_proc_api): Add declaration.
12767 * proc-events.c (_initialize_proc_events): Add declaration.
12768 * proc-service.c (_initialize_proc_service): Add declaration.
12769 * procfs.c (_initialize_procfs): Add declaration.
12770 * producer.c (_initialize_producer): Add declaration.
12771 * psymtab.c (_initialize_psymtab): Add declaration.
12772 * python/python.c (_initialize_python): Add declaration.
12773 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12774 * record-btrace.c (_initialize_record_btrace): Add declaration.
12775 * record-full.c (_initialize_record_full): Add declaration.
12776 * record.c (_initialize_record): Add declaration.
12777 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12778 * regcache.c (_initialize_regcache): Add declaration.
12779 * reggroups.c (_initialize_reggroup): Add declaration.
12780 * remote-notif.c (_initialize_notif): Add declaration.
12781 * remote-sim.c (_initialize_remote_sim): Add declaration.
12782 * remote.c (_initialize_remote): Add declaration.
12783 * reverse.c (_initialize_reverse): Add declaration.
12784 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12785 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12786 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12787 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12788 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12789 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12790 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12791 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12792 Add declaration.
12793 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12794 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12795 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12796 * rust-exp.y (_initialize_rust_exp): Add declaration.
12797 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12798 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12799 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12800 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12801 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12802 * score-tdep.c (_initialize_score_tdep): Add declaration.
12803 * ser-go32.c (_initialize_ser_dos): Add declaration.
12804 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12805 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12806 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12807 * ser-uds.c (_initialize_ser_socket): Add declaration.
12808 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12809 * serial.c (_initialize_serial): Add declaration.
12810 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12811 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12812 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12813 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12814 * skip.c (_initialize_step_skip): Add declaration.
12815 * sol-thread.c (_initialize_sol_thread): Add declaration.
12816 * solib-aix.c (_initialize_solib_aix): Add declaration.
12817 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12818 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12819 * solib-frv.c (_initialize_frv_solib): Add declaration.
12820 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12821 * solib-target.c (_initialize_solib_target): Add declaration.
12822 * solib.c (_initialize_solib): Add declaration.
12823 * source-cache.c (_initialize_source_cache): Add declaration.
12824 * source.c (_initialize_source): Add declaration.
12825 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12826 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12827 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12828 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12829 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12830 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12831 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12832 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12833 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12834 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12835 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12836 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12837 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12838 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12839 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12840 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12841 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12842 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12843 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12844 * stabsread.c (_initialize_stabsread): Add declaration.
12845 * stack.c (_initialize_stack): Add declaration.
12846 * stap-probe.c (_initialize_stap_probe): Add declaration.
12847 * std-regs.c (_initialize_frame_reg): Add declaration.
12848 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12849 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12850 * symfile.c (_initialize_symfile): Add declaration.
12851 * symmisc.c (_initialize_symmisc): Add declaration.
12852 * symtab.c (_initialize_symtab): Add declaration.
12853 * target.c (_initialize_target): Add declaration.
12854 * target-connection.c (_initialize_target_connection): Add
12855 declaration.
12856 * target-dcache.c (_initialize_target_dcache): Add declaration.
12857 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12858 * thread.c (_initialize_thread): Add declaration.
12859 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12860 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12861 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12862 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12863 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12864 * tracectf.c (_initialize_ctf): Add declaration.
12865 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12866 * tracefile.c (_initialize_tracefile): Add declaration.
12867 * tracepoint.c (_initialize_tracepoint): Add declaration.
12868 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12869 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12870 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12871 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12872 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12873 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12874 * tui/tui.c (_initialize_tui): Add declaration.
12875 * typeprint.c (_initialize_typeprint): Add declaration.
12876 * ui-style.c (_initialize_ui_style): Add declaration.
12877 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12878 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12879 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12880 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12881 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12882 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12883 * unittests/filtered_iterator-selftests.c
12884 (_initialize_filtered_iterator_selftests): Add declaration.
12885 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12886 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12887 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12888 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12889 * unittests/main-thread-selftests.c
12890 (_initialize_main_thread_selftests): Add declaration.
12891 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12892 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12893 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12894 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12895 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12896 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12897 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12898 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12899 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12900 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12901 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12902 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12903 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12904 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12905 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12906 declaration.
12907 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12908 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12909 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12910 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12911 * user-regs.c (_initialize_user_regs): Add declaration.
12912 * utils.c (_initialize_utils): Add declaration.
12913 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12914 * valops.c (_initialize_valops): Add declaration.
12915 * valprint.c (_initialize_valprint): Add declaration.
12916 * value.c (_initialize_values): Add declaration.
12917 * varobj.c (_initialize_varobj): Add declaration.
12918 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12919 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12920 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12921 * windows-nat.c (_initialize_windows_nat): Add declaration.
12922 (_initialize_check_for_gdb_ini): Add declaration.
12923 (_initialize_loadable): Add declaration.
12924 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12925 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12926 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12927 * xcoffread.c (_initialize_xcoffread): Add declaration.
12928 * xml-support.c (_initialize_xml_support): Add declaration.
12929 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12930 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12931 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12932 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12933
e2de1eec
SM
129342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12935
12936 * regformats/regdat.sh: Generate declaration for init function.
12937
e0037b4c
SM
129382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12939
12940 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12941 up.
12942 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12943 close_one_inferior>: New methods.
12944 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12945 pass down target to find_inferior_pid.
12946 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12947 Pass down target to find_inferior_ptid.
12948 (gdbsim_target::create_inferior): Pass down target to
12949 add_thread_silent.
12950 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12951 target down to find_inferior_ptid and switch_to_thread.
12952 (gdbsim_target::close): Update to call close_one_inferior.
12953 (struct resume_data): Remove.
12954 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12955 directly, rather than through a void pointer.
12956 (gdbsim_target::resume): Update to call resume_one_inferior.
12957
58920b5b
SM
129582020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12959
12960 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12961
4ec89149
PA
129622020-01-12 Pedro Alves <palves@redhat.com>
12963
12964 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12965 directly for the current inferior instead of
12966 discard_all_inferiors.
12967 (discard_all_inferiors): Delete.
12968
7c392d1d
TT
129692020-01-11 Tom Tromey <tom@tromey.com>
12970
12971 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12972 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12973 deprecated_safe_get_selected_frame.
12974
d9ebdab7
TBA
129752020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12976
12977 * inferior.c (print_inferior): Switch inferior before printing it.
12978
f3c469b9
PA
129792020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12980 Pedro Alves <palves@redhat.com>
12981
12982 * progspace-and-thread.c (switch_to_program_space_and_thread):
12983 Assert there's an inferior for PSPACE. Use
12984 switch_to_inferior_no_thread to switch the inferior too.
12985 * progspace.c (program_space::~program_space): Call
12986 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12987 (program_space::free_all_objfiles): Don't call clear_symtab_users
12988 here.
12989 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12990
65c574f6
PA
129912020-01-10 Pedro Alves <palves@redhat.com>
12992
12993 * NEWS: Mention multi-target debugging, "info connections", and
12994 "add-inferior -no-connection".
12995
2f4fcf00
PA
129962020-01-10 Pedro Alves <palves@redhat.com>
12997
12998 * infrun.c: Include "target-connection.h".
12999 (check_multi_target_resumption): New.
13000 (proceed): Call it.
13001 * target-connection.c (make_target_connection_string): Make
13002 extern.
13003 * target-connection.h (make_target_connection_string): Declare.
13004
121b3efd
PA
130052020-01-10 Pedro Alves <palves@redhat.com>
13006
13007 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13008 * inferior.c (uiout_field_connection): New function.
13009 (print_inferior): Add new "connection-id" column.
13010 (add_inferior_command): Show connection number/string of added
13011 inferior.
13012 * process-stratum-target.h
13013 (process_stratum_target::connection_string): New virtual method.
13014 (process_stratum_target::connection_number): New field.
13015 * remote.c (remote_target::connection_string): New override.
13016 * target-connection.c: New file.
13017 * target-connection.h: New file.
13018 * target.c (decref_target): Remove process_stratum targets from
13019 the connection list.
13020 (target_stack::push): Add process_stratum targets to the
13021 connection list.
13022
4f837581
PA
130232020-01-10 Pedro Alves <palves@redhat.com>
13024
13025 Revert:
13026 2016-04-12 Pedro Alves <palves@redhat.com>
13027 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13028 Remove references to name.
13029 * serial.h (struct serial) <name>: Delete.
13030
f4ec508e
PA
130312020-01-10 Pedro Alves <palves@redhat.com>
13032
13033 * gdbarch-selftests.c (register_to_value_test): Remove "target
13034 already pushed" check.
13035
5b6d1e4f
PA
130362020-01-10 Pedro Alves <palves@redhat.com>
13037 John Baldwin <jhb@FreeBSD.org>
13038
13039 * aarch64-linux-nat.c
13040 (aarch64_linux_nat_target::thread_architecture): Adjust.
13041 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13042 (task_command_1): Likewise.
13043 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13044 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13045 (aix_thread_target::store_registers)
13046 (aix_thread_target::thread_alive): Adjust.
13047 * amd64-fbsd-tdep.c: Include "inferior.h".
13048 (amd64fbsd_get_thread_local_address): Pass down target.
13049 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13050 thread's gdbarch instead of target_gdbarch.
13051 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13052 get_last_target_status.
13053 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13054 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13055 inferiors.
13056 (update_inserted_breakpoint_locations): Skip if inferiors with no
13057 execution.
13058 (update_global_location_list): When handling moribund locations,
13059 find representative inferior for location's pspace, and use thread
13060 count of its process_stratum target.
13061 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13062 * bsd-uthread.c (bsd_uthread_target::wait): Use
13063 as_process_stratum_target and adjust thread_change_ptid and
13064 add_thread calls.
13065 (bsd_uthread_target::update_thread_list): Use
13066 as_process_stratum_target and adjust find_thread_ptid,
13067 thread_change_ptid and add_thread calls.
13068 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13069 find_thread_ptid call.
13070 * corelow.c (add_to_thread_list): Adjust add_thread call.
13071 (core_target_open): Adjust add_thread_silent and thread_count
13072 calls.
13073 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13074 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13075 * event-top.c (async_disconnect): Pop targets from all inferiors.
13076 * exec.c (add_target_sections): Push exec target on all inferiors
13077 sharing the program space.
13078 (remove_target_sections): Remove the exec target from all
13079 inferiors sharing the program space.
13080 (exec_on_vfork): New.
13081 * exec.h (exec_on_vfork): Declare.
13082 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13083 Pass it down.
13084 (fbsd_nat_target::update_thread_list): Adjust.
13085 (fbsd_nat_target::resume): Adjust.
13086 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13087 down.
13088 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13089 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13090 get_thread_arch_regcache call.
13091 * fork-child.c (gdb_startup_inferior): Pass target down to
13092 startup_inferior and set_executing.
13093 * gdbthread.h (struct process_stratum_target): Forward declare.
13094 (add_thread, add_thread_silent, add_thread_with_info)
13095 (in_thread_list): Add process_stratum_target parameter.
13096 (find_thread_ptid(inferior*, ptid_t)): New overload.
13097 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13098 parameter.
13099 (all_threads()): Delete overload.
13100 (all_threads, all_non_exited_threads): Add process_stratum_target
13101 parameter.
13102 (all_threads_safe): Use brace initialization.
13103 (thread_count): Add process_stratum_target parameter.
13104 (set_resumed, set_running, set_stop_requested, set_executing)
13105 (threads_are_executing, finish_thread_state): Add
13106 process_stratum_target parameter.
13107 (switch_to_thread): Use is_current_thread.
13108 * i386-fbsd-tdep.c: Include "inferior.h".
13109 (i386fbsd_get_thread_local_address): Pass down target.
13110 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13111 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13112 have_inferiors check.
13113 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13114 (inf_ptrace_target::attach): Adjust.
13115 * infcall.c (run_inferior_call): Adjust.
13116 * infcmd.c (run_command_1): Pass target to
13117 scoped_finish_thread_state.
13118 (proceed_thread_callback): Skip inferiors with no execution.
13119 (continue_command): Rename 'all_threads' local to avoid hiding
13120 'all_threads' function. Adjust get_last_target_status call.
13121 (prepare_one_step): Adjust set_running call.
13122 (signal_command): Use user_visible_resume_target. Compare thread
13123 pointers instead of inferior_ptid.
13124 (info_program_command): Adjust to pass down target.
13125 (attach_command): Mark target's 'thread_executing' flag.
13126 (stop_current_target_threads_ns): New, factored out from ...
13127 (interrupt_target_1): ... this. Switch inferior before making
13128 target calls.
13129 * inferior-iter.h
13130 (struct all_inferiors_iterator, struct all_inferiors_range)
13131 (struct all_inferiors_safe_range)
13132 (struct all_non_exited_inferiors_range): Filter on
13133 process_stratum_target too. Remove explicit.
13134 * inferior.c (inferior::inferior): Push dummy target on target
13135 stack.
13136 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13137 Add process_stratum_target parameter, and pass it down.
13138 (have_live_inferiors): Adjust.
13139 (switch_to_inferior_and_push_target): New.
13140 (add_inferior_command, clone_inferior_command): Handle
13141 "-no-connection" parameter. Use
13142 switch_to_inferior_and_push_target.
13143 (_initialize_inferior): Mention "-no-connection" option in
13144 the help of "add-inferior" and "clone-inferior" commands.
13145 * inferior.h: Include "process-stratum-target.h".
13146 (interrupt_target_1): Use bool.
13147 (struct inferior) <push_target, unpush_target, target_is_pushed,
13148 find_target_beneath, top_target, process_target, target_at,
13149 m_stack>: New.
13150 (discard_all_inferiors): Delete.
13151 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13152 (all_inferiors, all_non_exited_inferiors): Add
13153 process_stratum_target parameter.
13154 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13155 (target_last_proc_target): New global.
13156 (follow_fork_inferior): Push target on new inferior. Pass target
13157 to add_thread_silent. Call exec_on_vfork. Handle target's
13158 reference count.
13159 (follow_fork): Adjust get_last_target_status call. Also consider
13160 target.
13161 (follow_exec): Push target on new inferior.
13162 (struct execution_control_state) <target>: New field.
13163 (user_visible_resume_target): New.
13164 (do_target_resume): Call target_async.
13165 (resume_1): Set target's threads_executing flag. Consider resume
13166 target.
13167 (commit_resume_all_targets): New.
13168 (proceed): Also consider resume target. Skip threads of inferiors
13169 with no execution. Commit resumtion in all targets.
13170 (start_remote): Pass current inferior to wait_for_inferior.
13171 (infrun_thread_stop_requested): Consider target as well. Pass
13172 thread_info pointer to clear_inline_frame_state instead of ptid.
13173 (infrun_thread_thread_exit): Consider target as well.
13174 (random_pending_event_thread): New inferior parameter. Use it.
13175 (do_target_wait): Rename to ...
13176 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13177 down.
13178 (threads_are_resumed_pending_p, do_target_wait): New.
13179 (prepare_for_detach): Adjust calls.
13180 (wait_for_inferior): New inferior parameter. Handle it. Use
13181 do_target_wait_1 instead of do_target_wait.
13182 (fetch_inferior_event): Adjust. Switch to representative
13183 inferior. Pass target down.
13184 (set_last_target_status): Add process_stratum_target parameter.
13185 Save target in global.
13186 (get_last_target_status): Add process_stratum_target parameter and
13187 handle it.
13188 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13189 (context_switch): Check inferior_ptid == null_ptid before calling
13190 inferior_thread().
13191 (get_inferior_stop_soon): Pass down target.
13192 (wait_one): Rename to ...
13193 (poll_one_curr_target): ... this.
13194 (struct wait_one_event): New.
13195 (wait_one): New.
13196 (stop_all_threads): Adjust.
13197 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13198 event's target.
13199 (switch_back_to_stepped_thread): Also consider target.
13200 (print_stop_event): Update.
13201 (normal_stop): Update. Also consider the resume target.
13202 * infrun.h (wait_for_inferior): Remove declaration.
13203 (user_visible_resume_target): New declaration.
13204 (get_last_target_status, set_last_target_status): New
13205 process_stratum_target parameter.
13206 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13207 process_stratum_target parameter, and use it.
13208 (clear_inline_frame_state (thread_info*)): New.
13209 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13210 process_stratum_target parameter.
13211 (clear_inline_frame_state (thread_info*)): Declare.
13212 * linux-fork.c (delete_checkpoint_command): Pass target down to
13213 find_thread_ptid.
13214 (checkpoint_command): Adjust.
13215 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13216 instead of just tweaking inferior_ptid.
13217 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13218 (exit_lwp): Pass target down to find_thread_ptid.
13219 (attach_proc_task_lwp_callback): Pass target down to
13220 add_thread/set_running/set_executing.
13221 (linux_nat_target::attach): Pass target down to
13222 thread_change_ptid.
13223 (get_detach_signal): Pass target down to find_thread_ptid.
13224 Consider last target status's target.
13225 (linux_resume_one_lwp_throw, resume_lwp)
13226 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13227 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13228 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13229 (linux_nat_target::async_wait_fd): New.
13230 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13231 target down.
13232 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13233 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13234 * linux-thread-db.c (struct thread_db_info::process_target): New
13235 field.
13236 (add_thread_db_info): Save target.
13237 (get_thread_db_info): New process_stratum_target parameter. Also
13238 match target.
13239 (delete_thread_db_info): New process_stratum_target parameter.
13240 Also match target.
13241 (thread_from_lwp): Adjust to pass down target.
13242 (thread_db_notice_clone): Pass down target.
13243 (check_thread_db_callback): Pass down target.
13244 (try_thread_db_load_1): Always push the thread_db target.
13245 (try_thread_db_load, record_thread): Pass target down.
13246 (thread_db_target::detach): Pass target down. Always unpush the
13247 thread_db target.
13248 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13249 target down. Always unpush the thread_db target.
13250 (find_new_threads_callback, thread_db_find_new_threads_2)
13251 (thread_db_target::update_thread_list): Pass target down.
13252 (thread_db_target::pid_to_str): Pass current inferior down.
13253 (thread_db_target::get_thread_local_address): Pass target down.
13254 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13255 target down.
13256 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13257 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13258 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13259 (procfs_init_inferior): Rename to ...
13260 (procfs_target::procfs_init_inferior): ... this and adjust.
13261 (procfs_target::create_inferior, procfs_notice_thread)
13262 (procfs_do_thread_registers): Adjust.
13263 * ppc-fbsd-tdep.c: Include "inferior.h".
13264 (ppcfbsd_get_thread_local_address): Pass down target.
13265 * proc-service.c (ps_xfer_memory): Switch current inferior and
13266 program space as well.
13267 (get_ps_regcache): Pass target down.
13268 * process-stratum-target.c
13269 (process_stratum_target::thread_address_space)
13270 (process_stratum_target::thread_architecture): Pass target down.
13271 * process-stratum-target.h
13272 (process_stratum_target::threads_executing): New field.
13273 (as_process_stratum_target): New.
13274 * ravenscar-thread.c
13275 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13276 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13277 down.
13278 * record-btrace.c (record_btrace_target::info_record): Adjust.
13279 (record_btrace_target::record_method)
13280 (record_btrace_target::record_is_replaying)
13281 (record_btrace_target::fetch_registers)
13282 (get_thread_current_frame_id, record_btrace_target::resume)
13283 (record_btrace_target::wait, record_btrace_target::stop): Pass
13284 target down.
13285 * record-full.c (record_full_wait_1): Switch to event thread.
13286 Pass target down.
13287 * regcache.c (regcache::regcache)
13288 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13289 process_stratum_target parameter and handle it.
13290 (current_thread_target): New global.
13291 (get_thread_regcache): Add process_stratum_target parameter and
13292 handle it. Switch inferior before calling target method.
13293 (get_thread_regcache): Pass target down.
13294 (get_thread_regcache_for_ptid): Pass target down.
13295 (registers_changed_ptid): Add process_stratum_target parameter and
13296 handle it.
13297 (registers_changed_thread, registers_changed): Pass target down.
13298 (test_get_thread_arch_aspace_regcache): New.
13299 (current_regcache_test): Define a couple local test_target_ops
13300 instances and use them for testing.
13301 (readwrite_regcache): Pass process_stratum_target parameter.
13302 (cooked_read_test, cooked_write_test): Pass mock_target down.
13303 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13304 (get_thread_arch_aspace_regcache): Add process_stratum_target
13305 parameter.
13306 (regcache::target): New method.
13307 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13308 (regcache::registers_changed_ptid): Add process_stratum_target
13309 parameter.
13310 (regcache::m_target): New field.
13311 (registers_changed_ptid): Add process_stratum_target parameter.
13312 * remote.c (remote_state::supports_vCont_probed): New field.
13313 (remote_target::async_wait_fd): New method.
13314 (remote_unpush_and_throw): Add remote_target parameter.
13315 (get_current_remote_target): Adjust.
13316 (remote_target::remote_add_inferior): Push target.
13317 (remote_target::remote_add_thread)
13318 (remote_target::remote_notice_new_inferior)
13319 (get_remote_thread_info): Pass target down.
13320 (remote_target::update_thread_list): Skip threads of inferiors
13321 bound to other targets. (remote_target::close): Don't discard
13322 inferiors. (remote_target::add_current_inferior_and_thread)
13323 (remote_target::process_initial_stop_replies)
13324 (remote_target::start_remote)
13325 (remote_target::remote_serial_quit_handler): Pass down target.
13326 (remote_target::remote_unpush_target): New remote_target
13327 parameter. Unpush the target from all inferiors.
13328 (remote_target::remote_unpush_and_throw): New remote_target
13329 parameter. Pass it down.
13330 (remote_target::open_1): Check whether the current inferior has
13331 execution instead of checking whether any inferior is live. Pass
13332 target down.
13333 (remote_target::remote_detach_1): Pass down target. Use
13334 remote_unpush_target.
13335 (extended_remote_target::attach): Pass down target.
13336 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13337 (remote_target::append_resumption): Pass down target.
13338 (remote_target::append_pending_thread_resumptions)
13339 (remote_target::remote_resume_with_hc, remote_target::resume)
13340 (remote_target::commit_resume): Pass down target.
13341 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13342 (remote_target::interrupt_query)
13343 (remote_target::remove_new_fork_children)
13344 (remote_target::check_pending_events_prevent_wildcard_vcont)
13345 (remote_target::remote_parse_stop_reply)
13346 (remote_target::process_stop_reply): Pass down target.
13347 (first_remote_resumed_thread): New remote_target parameter. Pass
13348 it down.
13349 (remote_target::wait_as): Pass down target.
13350 (unpush_and_perror): New remote_target parameter. Pass it down.
13351 (remote_target::readchar, remote_target::remote_serial_write)
13352 (remote_target::getpkt_or_notif_sane_1)
13353 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13354 down target.
13355 (remote_target::mourn_inferior): Pass down target. Use
13356 remote_unpush_target.
13357 (remote_target::core_of_thread)
13358 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13359 (remote_target::pid_to_exec_file)
13360 (remote_target::thread_handle_to_thread_info): Pass down target.
13361 (remote_target::async_wait_fd): New.
13362 * riscv-fbsd-tdep.c: Include "inferior.h".
13363 (riscv_fbsd_get_thread_local_address): Pass down target.
13364 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13365 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13366 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13367 Adjust.
13368 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13369 * solib-svr4.c (enable_break): Pass down target.
13370 * spu-multiarch.c (parse_spufs_run): Pass down target.
13371 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13372 * target-delegates.c: Regenerate.
13373 * target.c (g_target_stack): Delete.
13374 (current_top_target): Return the current inferior's top target.
13375 (target_has_execution_1): Refer to the passed-in inferior's top
13376 target.
13377 (target_supports_terminal_ours): Check whether the initial
13378 inferior was already created.
13379 (decref_target): New.
13380 (target_stack::push): Incref/decref the target.
13381 (push_target, push_target, unpush_target): Adjust.
13382 (target_stack::unpush): Defref target.
13383 (target_is_pushed): Return bool. Adjust to refer to the current
13384 inferior's target stack.
13385 (dispose_inferior): Delete, and inline parts ...
13386 (target_preopen): ... here. Only dispose of the current inferior.
13387 (target_detach): Hold strong target reference while detaching.
13388 Pass target down.
13389 (target_thread_name): Add assertion.
13390 (target_resume): Pass down target.
13391 (target_ops::beneath, find_target_at): Adjust to refer to the
13392 current inferior's target stack.
13393 (get_dummy_target): New.
13394 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13395 has a thread running.
13396 (initialize_targets): Rename to ...
13397 (_initialize_target): ... this.
13398 * target.h: Include "gdbsupport/refcounted-object.h".
13399 (struct target_ops): Inherit refcounted_object.
13400 (target_ops::shortname, target_ops::longname): Make const.
13401 (target_ops::async_wait_fd): New method.
13402 (decref_target): Declare.
13403 (struct target_ops_ref_policy): New.
13404 (target_ops_ref): New typedef.
13405 (get_dummy_target): Declare function.
13406 (target_is_pushed): Return bool.
13407 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13408 (all_matching_threads_iterator::all_matching_threads_iterator):
13409 Handle filter target.
13410 * thread-iter.h (struct all_matching_threads_iterator, struct
13411 all_matching_threads_range, class all_non_exited_threads_range):
13412 Filter by target too. Remove explicit.
13413 * thread.c (threads_executing): Delete.
13414 (inferior_thread): Pass down current inferior.
13415 (clear_thread_inferior_resources): Pass down thread pointer
13416 instead of ptid_t.
13417 (add_thread_silent, add_thread_with_info, add_thread): Add
13418 process_stratum_target parameter. Use it for thread and inferior
13419 searches.
13420 (is_current_thread): New.
13421 (thread_info::deletable): Use it.
13422 (find_thread_ptid, thread_count, in_thread_list)
13423 (thread_change_ptid, set_resumed, set_running): New
13424 process_stratum_target parameter. Pass it down.
13425 (set_executing): New process_stratum_target parameter. Pass it
13426 down. Adjust reference to 'threads_executing'.
13427 (threads_are_executing): New process_stratum_target parameter.
13428 Adjust reference to 'threads_executing'.
13429 (set_stop_requested, finish_thread_state): New
13430 process_stratum_target parameter. Pass it down.
13431 (switch_to_thread): Also match inferior.
13432 (switch_to_thread): New process_stratum_target parameter. Pass it
13433 down.
13434 (update_threads_executing): Reimplement.
13435 * top.c (quit_force): Pop targets from all inferior.
13436 (gdb_init): Don't call initialize_targets.
13437 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13438 Declare.
13439 (windows_add_thread, windows_delete_thread): Adjust.
13440 (get_windows_debug_event): Rename to ...
13441 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13442 * tracefile-tfile.c (tfile_target_open): Pass down target.
13443 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13444 Forward declare.
13445 (switch_to_thread): Add process_stratum_target parameter.
13446 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13447 parameter. Use it.
13448 (mi_on_resume): Pass target down.
13449 * nat/fork-inferior.c (startup_inferior): Add
13450 process_stratum_target parameter. Pass it down.
13451 * nat/fork-inferior.h (startup_inferior): Add
13452 process_stratum_target parameter.
13453 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13454
75c6c844
PA
134552020-01-10 Pedro Alves <palves@redhat.com>
13456
13457 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13458 directly. Instead find the first thread in the thread list and
13459 use switch_to_thread.
13460
78f2c40a
PA
134612020-01-10 Pedro Alves <palves@redhat.com>
13462
13463 * remote.c (remote_target::remote_add_inferior): Don't bind a
13464 process to the current inferior if the current inferior is already
13465 bound to a process.
13466
e7af6c70
TBA
134672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13468 Pedro Alves <palves@redhat.com>
13469
13470 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13471 If no process is specified, return null_ptid instead of
13472 inferior_ptid.
13473 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13474 TARGET_WAITKIND_SIGNALLED with no pid.
13475
31ba933e
PA
134762020-01-10 Pedro Alves <palves@redhat.com>
13477
13478 * remote.c (first_remote_resumed_thread): New.
13479 (remote_target::wait_as): Use it as default event_ptid instead of
13480 inferior_ptid.
13481
735fc2ca
PA
134822020-01-10 Pedro Alves <palves@redhat.com>
13483
13484 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13485
c17e02e1
PA
134862020-01-10 Pedro Alves <palves@redhat.com>
13487
13488 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13489 not -1.
13490
ab1ddbcf
PA
134912020-01-10 Pedro Alves <palves@redhat.com>
13492
13493 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13494 ptid to get_last_target_status.
13495 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13496 ptid to get_last_target_status.
13497 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13498 get_last_target_status.
13499 (info_program_command): Don't pass a target_waitstatus to
13500 get_last_target_status.
13501 * infrun.c (init_wait_for_inferior): Use
13502 nullify_last_target_wait_ptid.
13503 (get_last_target_status): Handle nullptr arguments.
13504 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13505 (print_stop_event): Don't pass a ptid to get_last_target_status.
13506 (normal_stop): Don't pass a ptid to get_last_target_status.
13507 * infrun.h (get_last_target_status, set_last_target_status): Move
13508 comments here and update.
13509 (nullify_last_target_wait_ptid): Declare.
13510 * linux-fork.c (fork_load_infrun_state): Remove local extern
13511 declaration of nullify_last_target_wait_ptid.
13512 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13513 to get_last_target_status.
13514
f3f8ece4
PA
135152020-01-10 Pedro Alves <palves@redhat.com>
13516
13517 * gdbthread.h (scoped_restore_current_thread)
13518 <dont_restore, restore, m_dont_restore>: Declare.
13519 * thread.c (thread_alive): Add assertion. Return bool.
13520 (switch_to_thread_if_alive): New.
13521 (prune_threads): Switch inferior/thread.
13522 (print_thread_info_1): Switch thread before calling target methods.
13523 (scoped_restore_current_thread::restore): New, factored out from
13524 ...
13525 (scoped_restore_current_thread::~scoped_restore_current_thread):
13526 ... this.
13527 (scoped_restore_current_thread::scoped_restore_current_thread):
13528 Add assertion.
13529 (thread_apply_all_command, thread_select): Use
13530 switch_to_thread_if_alive.
13531 * infrun.c (proceed, restart_threads, handle_signal_stop)
13532 (switch_back_to_stepped_thread): Switch current thread before
13533 calling target methods.
13534
db2d40f7
PA
135352020-01-10 Pedro Alves <palves@redhat.com>
13536
13537 * inferior.c (switch_to_inferior_no_thread): New function,
13538 factored out from ...
13539 (inferior_command): ... here.
13540 * inferior.h (switch_to_inferior_no_thread): Declare.
13541 * mi/mi-main.c (run_one_inferior): Use
13542 switch_to_inferior_no_thread.
13543
bd420a2d
PA
135442020-01-10 Pedro Alves <palves@redhat.com>
13545
13546 * infcmd.c (kill_command): Remove dead code.
13547
ddf5db90
PA
135482020-01-10 Pedro Alves <palves@redhat.com>
13549
13550 * remote.c (remote_target::mourn_inferior): No longer check
13551 whether the target is running.
13552
5018ce90
PA
135532020-01-10 Pedro Alves <palves@redhat.com>
13554
13555 * corelow.c (core_target::has_execution): Change parameter type to
13556 inferior pointer.
13557 * inferior.c (number_of_live_inferiors): Use
13558 inferior::has_execution instead of target_has_execution_1.
13559 * inferior.h (inferior::has_execution): New.
13560 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13561 inferior::has_execution instead of target_has_execution_1.
13562 * process-stratum-target.c
13563 (process_stratum_target::has_execution): Change parameter type to
13564 inferior pointer. Check the inferior's PID instead of
13565 inferior_ptid.
13566 * process-stratum-target.h
13567 (process_stratum_target::has_execution): Change parameter type to
13568 inferior pointer.
13569 * record-full.c (record_full_core_target::has_execution): Change
13570 parameter type to inferior pointer.
13571 * target.c (target_has_execution_1): Change parameter type to
13572 inferior pointer.
13573 (target_has_execution_current): Adjust.
13574 * target.h (target_ops::has_execution): Change parameter type to
13575 inferior pointer.
13576 (target_has_execution_1): Change parameter type to inferior
13577 pointer. Change return type to bool.
13578 * tracefile.h (tracefile_target::has_execution): Change parameter
13579 type to inferior pointer.
13580
74375d18
PA
135812020-01-10 Pedro Alves <palves@redhat.com>
13582
13583 * exceptions.c (print_flush): Remove current_top_target() check.
13584
acdf84a6
PA
135852020-01-10 Pedro Alves <palves@redhat.com>
13586
13587 * remote.c (show_remote_exec_file): Show the current inferior's
13588 exec-file instead of the command variable's value.
13589
ec506636
PA
135902020-01-10 Pedro Alves <palves@redhat.com>
13591
13592 * record-full.c (record_full_resume_ptid): New global.
13593 (record_full_target::resume): Set it.
13594 (record_full_wait_1): Use record_full_resume_ptid instead of
13595 inferior_ptid.
13596
873657b9
PA
135972020-01-10 Pedro Alves <palves@redhat.com>
13598
13599 * gdbthread.h (scoped_restore_current_thread)
13600 <dont_restore, restore, m_dont_restore>: Declare.
13601 * thread.c (thread_alive): Add assertion. Return bool.
13602 (switch_to_thread_if_alive): New.
13603 (prune_threads): Switch inferior/thread.
13604 (print_thread_info_1): Switch thread before calling target methods.
13605 (scoped_restore_current_thread::restore): New, factored out from
13606 ...
13607 (scoped_restore_current_thread::~scoped_restore_current_thread):
13608 ... this.
13609 (scoped_restore_current_thread::scoped_restore_current_thread):
13610 Add assertion.
13611 (thread_apply_all_command, thread_select): Use
13612 switch_to_thread_if_alive.
13613
7f0ae84c
GB
136142020-01-10 George Barrett <bob@bob131.so>
13615
13616 * stap-probe.c (stap_modify_semaphore): Don't check for null
13617 semaphores.
13618 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13619 for null semaphores.
13620
f5a7c406
AB
136212020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13622
13623 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13624 all source windows, and maintain horizontal scroll status while
13625 doing so.
13626
9ae6bf64
TT
136272020-01-09 Tom Tromey <tom@tromey.com>
13628
13629 PR tui/18932:
13630 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13631 update_source_window, not print_source_lines.
13632
b2efe70c
AB
136332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13634
13635 * tui/tui.c (tui_enable): Register tui hooks after calling
13636 tui_display_main.
13637
5f23a082
CB
136382020-01-09 Christian Biesinger <cbiesinger@google.com>
13639
13640 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13641
3061113b
SM
136422020-01-08 Simon Marchi <simon.marchi@efficios.com>
13643
13644 * thread.c (print_thread_info_1): Fix indentation.
13645
57d75002
CB
136462020-01-09 Christian Biesinger <cbiesinger@google.com>
13647
13648 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13649 unique_xmalloc_ptr outside the if to always free the demangled name.
13650
6a053cb1
TT
136512020-01-08 Tom Tromey <tromey@adacore.com>
13652
13653 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13654 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13655 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13656 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13657 Remove.
13658 (section_offsets): New typedef.
13659 * symtab.c (fixup_section, get_msymbol_address): Update.
13660 * symmisc.c (dump_msymbols): Update.
13661 * symfile.h (relative_addr_info_to_section_offsets)
13662 (symfile_map_offsets_to_segments): Update.
13663 * symfile.c (build_section_addr_info_from_objfile)
13664 (init_objfile_sect_indices): Update.
13665 (struct place_section_arg): Change type of "offsets".
13666 (place_section): Update.
13667 (relative_addr_info_to_section_offsets): Change type of
13668 "section_offsets". Remove "num_sections" parameter.
13669 (default_symfile_offsets, syms_from_objfile_1)
13670 (set_objfile_default_section_offset): Update.
13671 (reread_symbols): No need to preserve section offsets by hand.
13672 (symfile_map_offsets_to_segments): Change type of "offsets".
13673 * stap-probe.c (relocate_address): Update.
13674 * stabsread.h (process_one_symbol): Update.
13675 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13676 (solib_target_relocate_section_addresses): Update.
13677 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13678 Update.
13679 * solib-frv.c (frv_relocate_main_executable): Update.
13680 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13681 * solib-aix.c (solib_aix_get_section_offsets): Change return
13682 type.
13683 (solib_aix_solib_create_inferior_hook): Update.
13684 * remote.c (remote_target::get_offsets): Update.
13685 * psymtab.c (find_pc_sect_psymtab): Update.
13686 * psympriv.h (struct partial_symbol) <address, text_low,
13687 text_high>: Update.
13688 * objfiles.h (obj_section_offset): Update.
13689 (struct objfile) <section_offsets>: Change type.
13690 <num_sections>: Remove.
13691 (objfile_relocate): Update.
13692 * objfiles.c (entry_point_address_query): Update
13693 (relocate_one_symbol): Change type of "section_offsets".
13694 (objfile_relocate1, objfile_relocate1): Change type of
13695 "new_offsets".
13696 (objfile_rebase1): Update.
13697 * mipsread.c (mipscoff_symfile_read): Update.
13698 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13699 parameter.
13700 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13701 (parse_external, psymtab_to_symtab_1): Update.
13702 * machoread.c (macho_symfile_offsets): Update.
13703 * ia64-tdep.c (ia64_find_unwind_table): Update.
13704 * hppa-tdep.c (read_unwind_info): Update.
13705 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13706 * dwarf2read.c (create_addrmap_from_index)
13707 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13708 (process_psymtab_comp_unit_reader, add_partial_symbol)
13709 (add_partial_subprogram, process_full_comp_unit)
13710 (read_file_scope, read_func_scope, read_lexical_block_scope)
13711 (read_call_site_scope, dwarf2_rnglists_process)
13712 (dwarf2_ranges_process, dwarf2_ranges_read)
13713 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13714 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13715 Update.
13716 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13717 Update.
13718 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13719 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13720 (process_one_symbol): Change type of "section_offsets".
13721 * ctfread.c (get_objfile_text_range): Update.
13722 * coffread.c (coff_symtab_read, enter_linenos)
13723 (process_coff_symbol): Update.
13724 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13725 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13726
456e800a
TT
137272020-01-08 Tom Tromey <tromey@adacore.com>
13728
13729 * dwarf2read.c (parse_macro_definition): Use std::string.
13730 (parse_macro_definition): Likewise.
13731
6dfa2fc2
TT
137322020-01-08 Tom Tromey <tromey@adacore.com>
13733
13734 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13735 (ATTR_ALLOC_CHUNK): Remove.
13736
421d1616
TT
137372020-01-08 Tom Tromey <tromey@adacore.com>
13738
13739 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13740
43816ebc
TT
137412020-01-08 Tom Tromey <tromey@adacore.com>
13742
13743 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13744 (dwarf2_compute_name, open_dwo_file): Likewise.
13745 (process_enumeration_scope): Use std::vector.
13746 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13747 (partial_die_info::fixup, dwarf2_start_subfile)
13748 (guess_full_die_structure_name, dwarf2_name): Likewise.
13749 (determine_prefix): Update.
13750 (guess_full_die_structure_name): Make return type const.
13751 (partial_die_full_name): Return unique_xmalloc_ptr.
13752 (DW_FIELD_ALLOC_CHUNK): Remove.
13753
4212d509
TT
137542020-01-07 Tom Tromey <tromey@adacore.com>
13755
13756 PR build/24937:
13757 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13758
06a6207a
JT
137592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13760
13761 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13762
153d79c4
AB
137632020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13764
13765 * stack.c (print_frame_info): Move disassemble_next_line code
13766 inside source_print block.
13767
66182876
EZ
137682020-01-06 Eli Zaretskii <eliz@gnu.org>
13769
13770 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13771 gdb/signals.h, as we are now using native signal symbols.
13772
cbfa8581
SV
137732020-01-06 Shahab Vahedi <shahab@synopsys.com>
13774
13775 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13776 overflow by an early check of content vs threshold.
aac66a4c 13777 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13778 Likewise.
13779
3f602821
EZ
137802020-01-06 Eli Zaretskii <eliz@gnu.org>
13781
13782 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13783
a08c904d
JT
137842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13785
13786 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13787 export table if no section contains it's RVA.
13788
89a65580
EZ
137892020-01-06 Eli Zaretskii <eliz@gnu.org>
13790
13791 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13792
8b7fcda2
HD
137932020-01-06 Hannes Domani <ssbssa@yahoo.de>
13794
13795 * source.c (print_source_lines_base): Set last_line_listed.
13796
a61b4f69
SV
137972020-01-06 Shahab Vahedi <shahab@synopsys.com>
13798
13799 * tui/tui-disasm.c: Remove trailing spaces.
13800
559e7e50
EZ
138012020-01-06 Eli Zaretskii <eliz@gnu.org>
13802 Pedro Alves <palves@redhat.com>
13803
13804 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13805 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13806 (windows_gdb_signal_to_target): New function, uses the above
13807 enumeration to convert GDB internal signal codes to equivalent
13808 Windows codes.
13809 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13810 * windows-nat.c: Include "gdb_wait.h".
13811 (get_windows_debug_event): Extract the fatal exception from the
13812 exit status and convert to the equivalent Posix signal number.
13813 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13814 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13815 * gdbsupport/gdb_wait.c: New file, implements
13816 windows_status_to_termsig.
13817 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13818 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13819
f2302a34
AB
138202020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13821
13822 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13823 show_layout.
13824
6a5206eb
LM
138252020-01-05 Luis Machado <luis.machado@linaro.org>
13826
13827 * aarch64-linux-nat.c
13828 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13829 and bfd_mach_aarch64.
13830
6ec1d75e
PW
138312020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13832
13833 * ui-file.c (stdio_file::can_emit_style_escape)
13834 (tee_file::can_emit_style_escape): Ensure style is used also on
13835 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13836 to gdb_stdout.
13837 * main.c (set_gdb_data_directory): Use file style to output the
13838 warning that the given pathname is not a directory.
13839 * top.c (show_history_filename, gdb_safe_append_history)
13840 (show_gdb_datadir): Use file style.
13841
44f81a76
HD
138422020-01-03 Hannes Domani <ssbssa@yahoo.de>
13843
13844 * solib-target.c (struct lm_info_target):
13845 Change offsets to be a unique_xmalloc_ptr.
13846 (solib_target_relocate_section_addresses): Update.
13847
25057eb0
HD
138482020-01-03 Hannes Domani <ssbssa@yahoo.de>
13849
13850 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13851
6e2118f5
BE
138522020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13853
13854 * MAINTAINERS (Write After Approval): Add myself.
13855
8133c7dc
LM
138562020-01-02 Luis Machado <luis.machado@linaro.org>
13857
13858 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13859 Cell BE architecture.
13860 * target.h (struct target_ops) <thread_architecture>: Likewise.
13861
48189bec
HD
138622020-01-01 Hannes Domani <ssbssa@yahoo.de>
13863
13864 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13865
ead1063b
HD
138662020-01-01 Hannes Domani <ssbssa@yahoo.de>
13867
13868 * MAINTAINERS (Write After Approval): Add myself.
13869
e5d78223
JB
138702020-01-01 Joel Brobecker <brobecker@adacore.com>
13871
13872 * gdbarch.sh: Update copyright year range of generated files.
13873
b811d2c2
JB
138742020-01-01 Joel Brobecker <brobecker@adacore.com>
13875
13876 Update copyright year range in all GDB files.
13877
5f4def5c
JB
138782020-01-01 Joel Brobecker <brobecker@adacore.com>
13879
13880 * copyright.py: Convert to Python 3.
13881
51fd4002
JB
138822020-01-01 Joel Brobecker <brobecker@adacore.com>
13883
13884 * copyright.py: Adapt after move of gnulib directory from gdb
13885 directory to toplevel directory.
13886
5fb651f2
JB
138872020-01-01 Joel Brobecker <brobecker@adacore.com>
13888
13889 * copyright.py (main): Exit if run from the wrong directory.
13890
5dd8bf88
JB
138912020-01-01 Joel Brobecker <brobecker@adacore.com>
13892
13893 * top.c (print_gdb_version): Change copyright year to 2020.
13894
9f71dacb 138952020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13896
9f71dacb 13897 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13898
9f71dacb 13899For older changes see ChangeLog-2019.
c906108c
SS
13900\f
13901Local Variables:
13902mode: change-log
13903left-margin: 8
13904fill-column: 74
13905version-control: never
57da7796 13906coding: utf-8
c906108c 13907End: