]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove a use of target_read_string
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a5d871dd
TT
12020-06-15 Tom Tromey <tromey@adacore.com>
2
3 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4
670e35fa
TT
52020-06-15 Tom Tromey <tromey@adacore.com>
6
7 * valprint.c (read_string): Update comment.
8 * target.c (MIN): Remove.
9 (target_read_string): Rewrite.
10
f5272a3b
TT
112020-06-15 Tom Tromey <tromey@adacore.com>
12
13 * corefile.c (read_memory_string): Remove.
14 * ada-valprint.c (ada_value_print_ptr): Update.
15 * ada-lang.h (ada_tag_name): Change return type.
16 * ada-lang.c (type_from_tag): Update.
17 (ada_tag_name_from_tsd): Change return type. Use
18 target_read_string.
19 (ada_tag_name): Likewise.
20 * gdbcore.h (read_memory_string): Don't declare.
21
2c074f49
HD
222020-06-14 Hannes Domani <ssbssa@yahoo.de>
23
24 * symtab.c (rbreak_command): Ignore Windows drive colon.
25
6a17d503
SM
262020-06-12 Simon Marchi <simon.marchi@efficios.com>
27
28 * NEWS: Mention removed GDBserver host support.
29
453c733f
NC
302020-06-12 Nelson Chu <nelson.chu@sifive.com>
31
32 * features/riscv/rebuild-csr-xml.sh: Updated.
33
2b4e6a3f
TT
342020-06-11 Tom Tromey <tom@tromey.com>
35
36 PR gdb/18318:
37 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
38
4412332f
JG
392020-06-09 Jonny Grant <jg@jguk.org>
402020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * main.c (captured_main_1): Don't print new line after help.
43 (print_gdb_help): add mailing list and IRC channel information
44 to --help. Add new lines between items in the footer. Remove
45 quotes around bug url.
46
2f33032a
KS
472020-06-11 Keith Seitz <keiths@redhat.com>
48
49 PR gdb/21356
50 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
51 Resolve typedefs for type length calculations.
52
7ab96794
TV
532020-06-10 Tom de Vries <tdevries@suse.de>
54
55 PR ada/24713
56 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
57 (write_psymbols): Enable .gdb_index for ada.
58 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
59 ada.
60
e5f3ece2
TV
612020-06-10 Tom de Vries <tdevries@suse.de>
62
63 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
64 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
65 namei" instead of "const char *name" argument.
66 (dw2_map_matching_symbols): Use "offset_type namei" variant of
67 dw2_symtab_iter_init.
68
940da03e
SM
692020-06-08 Simon Marchi <simon.marchi@efficios.com>
70
71 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
72 to use type::field and field::type instead.
73
b6cdac4b
SM
742020-06-08 Simon Marchi <simon.marchi@efficios.com>
75
76 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
77 to use field::type instead.
78
5d14b6e5
SM
792020-06-08 Simon Marchi <simon.marchi@efficios.com>
80
81 * gdbtypes.h (struct field) <type, set_type>: New methods.
82 Rename `type` field to...
83 <m_type>: ... this. Change references throughout to use type or
84 set_type methods.
85 (FIELD_TYPE): Use field::type. Change call sites that modify
86 the field's type to use field::set_type instead.
87
3d967001
SM
882020-06-08 Simon Marchi <simon.marchi@efficios.com>
89
90 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
91 to use type::index_type instead.
92
262abc0d
SM
932020-06-08 Simon Marchi <simon.marchi@efficios.com>
94
95 * gdbtypes.h (struct type) <index_type, set_index_type>: New
96 methods.
97 (TYPE_INDEX_TYPE): Use type::index_type.
98 * gdbtypes.c (create_array_type_with_stride): Likewise.
99
82836c92
TT
1002020-06-07 Tom Tromey <tom@tromey.com>
101
102 * valprint.c (generic_val_print_float): Remove "embedded_offset"
103 parameter.
104 (generic_value_print): Update.
105
940dace9
AB
1062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 Revert commit 982a38f60b0.
109 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
110
982a38f6
AB
1112020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
114 avoid use after free.
115
82f06518
TV
1162020-06-05 Tom de Vries <tdevries@suse.de>
117
118 * NEWS: Fix typos.
119
f8c41851
SM
1202020-06-04 Simon Marchi <simon.marchi@efficios.com>
121
122 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
123 the per_bfd object.
124 (dwarf2_read_debug_names): Likewise.
125 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
126 object when re-using a per_bfd object with an index.
127
f9b5d5ea
TV
1282020-06-03 Tom de Vries <tdevries@suse.de>
129
130 PR symtab/26046
131 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
132 children for C++.
133 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
134 DW_TAG_subprogram.
135
f6eee2d0
AB
1362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * ada-lang.c (ada_language_data): Delete skip_trampoline
139 initializer.
140 * c-lang.c (c_language_data): Likewise.
141 (cplus_language_data): Likewise.
142 (cplus_language::skip_trampoline): New member function.
143 (asm_language_data): Delete skip_trampoline initializer.
144 (minimal_language_data): Likewise.
145 * d-lang.c (d_language_data): Likewise.
146 * f-lang.c (f_language_data): Likewise.
147 * go-lang.c (go_language_data): Likewise.
148 * language.c (unk_lang_trampoline): Delete function.
149 (skip_language_trampoline): Update.
150 (unknown_language_data): Delete skip_trampoline initializer.
151 (auto_language_data): Likewise.
152 * language.h (language_data): Delete skip_trampoline field.
153 (language_defn::skip_trampoline): New function.
154 * m2-lang.c (m2_language_data): Delete skip_trampoline
155 initializer.
156 * objc-lang.c (objc_skip_trampoline): Delete function, move
157 implementation to objc_language::skip_trampoline.
158 (objc_language_data): Delete skip_trampoline initializer.
159 (objc_language::skip_trampoline): New member function with
160 implementation from objc_skip_trampoline.
161 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
162 initializer.
163 * p-lang.c (pascal_language_data): Likewise.
164 * rust-lang.c (rust_language_data): Likewise.
165
0a50df5d
AB
1662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
169 (ada_language::demangle): New member function.
170 * c-lang.c (c_language_data): Delete la_demangle initializer.
171 (cplus_language_data): Delete la_demangle initializer.
172 (cplus_language::demangle): New member function.
173 (asm_language_data): Delete la_demangle initializer.
174 (minimal_language_data): Delete la_demangle initializer.
175 * d-lang.c (d_language_data): Delete la_demangle initializer.
176 (d_language::demangle): New member function.
177 * f-lang.c (f_language_data): Delete la_demangle initializer.
178 (f_language::demangle): New member function.
179 * go-lang.c (go_language_data): Delete la_demangle initializer.
180 (go_language::demangle): New member function.
181 * language.c (language_demangle): Update.
182 (unk_lang_demangle): Delete.
183 (unknown_language_data): Delete la_demangle initializer.
184 (unknown_language::demangle): New member function.
185 (auto_language_data): Delete la_demangle initializer.
186 (auto_language::demangle): New member function.
187 * language.h (language_data): Delete la_demangle field.
188 (language_defn::demangle): New function.
189 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
190 * objc-lang.c (objc_language_data): Delete la_demangle
191 initializer.
192 (objc_language::demangle): New member function.
193 * opencl-lang.c (opencl_language_data): Delete la_demangle
194 initializer.
195 * p-lang.c (pascal_language_data): Likewise.
196 * rust-lang.c (rust_language_data): Likewise.
197 (rust_language::demangle): New member function.
198
fbfb0a46
AB
1992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * ada-lang.c (ada_language_data): Delete la_print_type
202 initializer.
203 (ada_language::print_type): New member function.
204 * c-lang.c (c_language_data): Delete la_print_type initializer.
205 (c_language::print_type): New member function.
206 (cplus_language_data): Delete la_print_type initializer.
207 (cplus_language::print_type): New member function.
208 (asm_language_data): Delete la_print_type initializer.
209 (asm_language::print_type): New member function.
210 (minimal_language_data): Delete la_print_type initializer.
211 (minimal_language::print_type): New member function.
212 * d-lang.c (d_language_data): Delete la_print_type initializer.
213 (d_language::print_type): New member function.
214 * f-lang.c (f_language_data): Delete la_print_type initializer.
215 (f_language::print_type): New member function.
216 * go-lang.c (go_language_data): Delete la_print_type initializer.
217 (go_language::print_type): New member function.
218 * language.c (unk_lang_print_type): Delete.
219 (unknown_language_data): Delete la_print_type initializer.
220 (unknown_language::print_type): New member function.
221 (auto_language_data): Delete la_print_type initializer.
222 (auto_language::print_type): New member function.
223 * language.h (language_data): Delete la_print_type field.
224 (language_defn::print_type): New function.
225 (LA_PRINT_TYPE): Update.
226 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
227 (m2_language::print_type): New member function.
228 * objc-lang.c (objc_language_data): Delete la_print_type
229 initializer.
230 (objc_language::print_type): New member function.
231 * opencl-lang.c (opencl_print_type): Delete, implementation moved
232 to opencl_language::print_type.
233 (opencl_language_data): Delete la_print_type initializer.
234 (opencl_language::print_type): New member function, implementation
235 from opencl_print_type.
236 * p-lang.c (pascal_language_data): Delete la_print_type
237 initializer.
238 (pascal_language::print_type): New member function.
239 * rust-lang.c (rust_print_type): Delete, implementation moved to
240 rust_language::print_type.
241 (rust_language_data): Delete la_print_type initializer.
242 (rust_language::print_type): New member function, implementation
243 from rust_print_type.
244
6f827019
AB
2452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
248 implementation moves to...
249 (ada_language::sniff_from_mangled_name): ...here. Update return
250 type.
251 (ada_language_data): Delete la_sniff_from_mangled_name
252 initializer.
253 * c-lang.c (c_language_data): Likewise.
254 (cplus_language_data): Likewise.
255 (cplus_language::sniff_from_mangled_name): New member function,
256 implementation taken from gdb_sniff_from_mangled_name.
257 (asm_language_data): Delete la_sniff_from_mangled_name
258 initializer.
259 (minimal_language_data): Likewise.
260 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
261 implementation moves to cplus_language::sniff_from_mangled_name.
262 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
263 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
264 moves to...
265 (d_language::sniff_from_mangled_name): ...here.
266 (d_language_data): Delete la_sniff_from_mangled_name initializer.
267 * f-lang.c (f_language_data): Likewise.
268 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
269 moves to...
270 (go_language::sniff_from_mangled_name): ...here.
271 (go_language_data): Delete la_sniff_from_mangled_name initializer.
272 * language.c (language_sniff_from_mangled_name): Delete.
273 (unknown_language_data): Delete la_sniff_from_mangled_name
274 initializer.
275 (auto_language_data): Likewise.
276 * language.h (language_data): Delete la_sniff_from_mangled_name
277 field.
278 (language_defn::sniff_from_mangled_name): New function.
279 (language_sniff_from_mangled_name): Delete declaration.
280 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
281 field.
282 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
283 implementation moves to...
284 (objc_language::sniff_from_mangled_name): ...here.
285 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
286 * opencl-lang.c (opencl_language_data): Likewise.
287 * p-lang.c (pascal_language_data): Likewise.
288 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
289 implementation moves to...
290 (rust_language::sniff_from_mangled_name): ...here.
291 (rust_language_data): Delete la_sniff_from_mangled_name
292 initializer.
293 * symtab.c (symbol_find_demangled_name): Call
294 sniff_from_mangled_name member function.
295
fb8006fd
AB
2962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
297
298 * ada-lang.c (ada_language_data): Delete la_search_name_hash
299 initializer.
300 * c-lang.c (c_language_data): Likewise.
301 (cplus_language_data): Likewise.
302 (cplus_language::search_name_hash): New member function.
303 (asm_language_data): Delete la_search_name_hash initializer.
304 (minimal_language_data): Likewise.
305 * d-lang.c (d_language_data): Likewise.
306 * dictionary.c (default_search_name_hash): Rename to...
307 (language_defn::search_name_hash): ...this.
308 * f-lang.c (f_language_data): Likewise.
309 (f_language::search_name_hash): New member function.
310 * go-lang.c (go_language_data): Delete la_search_name_hash
311 initializer.
312 * language.c (unknown_language_data): Likewise.
313 (auto_language_data): Likewise.
314 * language.h (struct language_data): Delete la_search_name_hash
315 field.
316 (language_defn::search_name_hash): Declare new member function.
317 (default_search_name_hash): Delete declaration.
318 * m2-lang.c (m2_language_data): Delete la_search_name_hash
319 initializer.
320 * objc-lang.c (objc_language_data): Likewise.
321 * opencl-lang.c (opencl_language_data): Likewise.
322 * p-lang.c (pascal_language_data): Likewise.
323 * rust-lang.c (rust_language_data): Likewise.
324 * symtab.c (search_name_hash): Update call.
325
8e25bafe
AB
3262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
329 initializer.
330 * c-lang.c (class compile_instance): Declare.
331 (c_language_data): Delete la_get_compile_instance initializer.
332 (c_language::get_compile_instance): New member function.
333 (cplus_language_data): Delete la_get_compile_instance initializer.
334 (cplus_language::get_compile_instance): New member function.
335 (asm_language_data): Delete la_get_compile_instance initializer.
336 (minimal_language_data): Likewise.
337 * c-lang.h (c_get_compile_context): Update comment.
338 (cplus_get_compile_context): Update comment.
339 * compile/compile.c (compile_to_object): Update calls, don't rely
340 on function pointer being NULL.
341 * d-lang.c (d_language_data): Delete la_get_compile_instance
342 initializer.
343 * f-lang.c (f_language_data): Likewise.
344 * go-lang.c (go_language_data): Likewise.
345 * language.c (unknown_language_data): Likewise.
346 (auto_language_data): Likewise.
347 * language.h (language_data): Delete la_get_compile_instance field.
348 (language_defn::get_compile_instance): New member function.
349 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
350 initializer.
351 * objc-lang.c (objc_language_data): Likewise.
352 * opencl-lang.c (opencl_language_data): Likewise.
353 * p-lang.c (pascal_language_data): Likewise.
354 * rust-lang.c (rust_language_data): Likewise.
355
4009ee92
AB
3562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * ada-lang.c (ada_add_all_symbols): Update comment.
359 (ada_iterate_over_symbols): Delete, move implementation to...
360 (ada_language::iterate_over_symbols): ...here, a new member
361 function, rewrite to use range based for loop.
362 (ada_language_data): Delete la_iterate_over_symbols initializer.
363 * c-lang.c (c_language_data): Likewise.
364 (cplus_language_data): Likewise.
365 (asm_language_data): Likewise.
366 (minimal_language_data): Likewise.
367 * d-lang.c (d_language_data): Likewise.
368 * f-lang.c (f_language_data): Likewise.
369 * go-lang.c (go_language_data): Likewise.
370 * language.c (unknown_language_data): Likewise.
371 (auto_language_data): Likewise.
372 * language.h (language_data): Delete la_iterate_over_symbols field.
373 (language_defn::iterate_over_symbols): New member function.
374 (LA_ITERATE_OVER_SYMBOLS): Update.
375 * linespec.c (iterate_over_all_matching_symtabs): Update.
376 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
377 initializer.
378 * objc-lang.c (objc_language_data): Likewise.
379 * opencl-lang.c (opencl_language_data): Likewise.
380 * p-lang.c (pascal_language_data): Likewise.
381 * rust-lang.c (rust_language_data): Likewise.
382
54f4ca46
AB
3832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
384
385 * ada-lang.c (ada_language_data): Delete
386 la_lookup_transparent_type initializer.
387 * c-lang.c (c_language_data): Likewise.
388 (cplus_language_data): Likewise.
389 (cplus_language::lookup_transparent_type): New member function.
390 (asm_language_data): Delete la_lookup_transparent_type
391 initializer.
392 (minimal_language_data): Likewise.
393 * d-lang.c (d_language_data): Likewise.
394 * f-lang.c (f_language_data): Likewise.
395 * go-lang.c (go_language_data): Likewise.
396 * language.c (unknown_language_data): Likewise.
397 (auto_language_data): Likewise.
398 * language.h (struct language_data): Delete
399 la_lookup_transparent_type field.
400 (language_defn::lookup_transparent_type): New member function.
401 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
402 initializer.
403 * objc-lang.c (objc_language_data): Likewise.
404 * opencl-lang.c (opencl_language_data): Likewise.
405 * p-lang.c (pascal_language_data): Likewise.
406 * rust-lang.c (rust_language_data): Likewise.
407 * symtab.c (symbol_matches_domain): Update call.
408
1fb314aa
AB
4092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * ada-lang.c (ada_language_arch_info): Delete function, move
412 implementation to...
413 (ada_language::language_arch_info): ...here, a new member
414 function.
415 (ada_language_data): Delete la_language_arch_info.
416 * c-lang.c (c_language_data): Likewise.
417 (c_language::language_arch_info): New member function.
418 (cplus_language_arch_info): Delete function, move
419 implementation to...
420 (cplus_language::language_arch_info): ...here, a new member
421 function.
422 (cplus_language_data): Delete la_language_arch_info.
423 (asm_language_data): Likewise.
424 (asm_language::language_arch_info): New member function.
425 (minimal_language_data): Delete la_language_arch_info.
426 (minimal_language::language_arch_info): New member function.
427 * d-lang.c (d_language_arch_info): Delete function, move
428 implementation to...
429 (d_language::language_arch_info): ...here, a new member
430 function.
431 (d_language_data): Delete la_language_arch_info.
432 * f-lang.c (f_language_arch_info): Delete function, move
433 implementation to...
434 (f_language::language_arch_info): ...here, a new member
435 function.
436 (f_language_data): Delete la_language_arch_info.
437 * go-lang.c (go_language_arch_info): Delete function, move
438 implementation to...
439 (go_language::language_arch_info): ...here, a new member
440 function.
441 (go_language_data): Delete la_language_arch_info.
442 * language.c (unknown_language_data): Likewise.
443 (unknown_language::language_arch_info): New member function.
444 (auto_language_data): Delete la_language_arch_info.
445 (auto_language::language_arch_info): New member function.
446 (language_gdbarch_post_init): Update call to
447 la_language_arch_info.
448 * language.h (language_data): Delete la_language_arch_info
449 function pointer.
450 (language_defn::language_arch_info): New function.
451 * m2-lang.c (m2_language_arch_info): Delete function, move
452 implementation to...
453 (m2_language::language_arch_info): ...here, a new member
454 function.
455 (m2_language_data): Delete la_language_arch_info.
456 * objc-lang.c (objc_language_arch_info): Delete function, move
457 implementation to...
458 (objc_language::language_arch_info): ...here, a new member
459 function.
460 (objc_language_data): Delete la_language_arch_info.
461 * opencl-lang.c (opencl_language_arch_info): Delete function, move
462 implementation to...
463 (opencl_language::language_arch_info): ...here, a new member
464 function.
465 (opencl_language_data): Delete la_language_arch_info.
466 * p-lang.c (pascal_language_arch_info): Delete function, move
467 implementation to...
468 (pascal_language::language_arch_info): ...here, a new member
469 function.
470 (pascal_language_data): Delete la_language_arch_info.
471 * rust-lang.c (rust_language_arch_info): Delete function, move
472 implementation to...
473 (rust_language::language_arch_info): ...here, a new member
474 function.
475 (rust_language_data): Delete la_language_arch_info.
476
48448202
AB
4772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
480 initializer.
481 * c-lang.c (c_language_data): Likewise.
482 (cplus_language_data): Likewise.
483 (cplus_language::pass_by_reference_info): New method.
484 (asm_language_data): Delete la_pass_by_reference initializer.
485 (minimal_language_data): Likewise.
486 * cp-abi.c (cp_pass_by_reference): Remove use of
487 default_pass_by_reference.
488 * d-lang.c (d_language_data): Likewise.
489 * f-lang.c (f_language_data): Likewise.
490 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
491 default_pass_by_reference.
492 * go-lang.c (go_language_data): Likewise.
493 * language.c (language_pass_by_reference): Update.
494 (default_pass_by_reference): Delete.
495 (unknown_language_data): Delete la_pass_by_reference
496 initializer.
497 (auto_language_data): Likewise.
498 * language.h (struct language_data): Delete la_pass_by_reference
499 field.
500 (language_defn::pass_by_reference_info): New member function.
501 (default_pass_by_reference): Delete declaration.
502 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
503 initializer.
504 * objc-lang.c (objc_language_data): Likewise.
505 * opencl-lang.c (opencl_language_data): Likewise.
506 * p-lang.c (pascal_language_data): Likewise.
507 * rust-lang.c (rust_language_data): Likewise.
508
15e5fd35
AB
5092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * ada-lang.c (ada_read_var_value): Delete function, move
512 implementation to...
513 (ada_language::read_var_value): ...here.
514 (ada_language_data): Delete la_read_var_value initializer.
515 * c-lang.c (c_language_data): Likewise.
516 (cplus_language_data): Likewise.
517 (minimal_language_data): Likewise.
518 * d-lang.c (d_language_data): Likewise.
519 * f-lang.c (f_language_data): Likewise.
520 * findvar.c (default_read_var_value): Rename to...
521 (language_defn::read_var_value): ...this.
522 * findvar.c (read_var_value): Update header comment, and change to
523 call member function instead of function pointer.
524 * go-lang.c (go_language_data): Likewise.
525 * language.c (unknown_language_data): Delete la_read_var_value
526 initializer.
527 (auto_language_data): Likewise.
528 * language.h (struct language_data): Delete la_read_var_value
529 field.
530 (language_defn::read_var_value): New member function.
531 (default_read_var_value): Delete declaration.
532 * m2-lang.c (m2_language_data): Delete la_read_var_value
533 initializer.
534 * objc-lang.c (objc_language_data): Likewise.
535 * opencl-lang.c (opencl_language_data): Likewise.
536 * p-lang.c (pascal_language_data): Likewise.
537 * rust-lang.c (rust_language_data): Likewise.
538 * value.h (default_read_var_value): Delete declaration.
539
5bd40f2a
AB
5402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * ada-lang.c (ada_print_array_index): Delete function, move
543 implementation to...
544 (ada_language::print_array_index): ...here.
545 (ada_language_data): Delete la_print_array_index initializer.
546 * c-lang.c (c_language_data): Likewise.
547 (cplus_language_data): Likewise.
548 (minimal_language_data): Likewise.
549 * d-lang.c (d_language_data): Likewise.
550 * f-lang.c (f_language_data): Likewise.
551 * go-lang.c (go_language_data): Likewise.
552 * language.c (default_print_array_index): Delete function, move
553 implementation to...
554 (language_defn::print_array_index): ...here.
555 (unknown_language_data): Delete la_print_array_index initializer.
556 (auto_language_data): Likewise.
557 * language.h (struct language_data): Delete la_print_array_index
558 field.
559 (language_defn::print_array_index): New member function.
560 (LA_PRINT_ARRAY_INDEX): Update.
561 (default_print_array_index): Delete declaration.
562 * m2-lang.c (m2_language_data): Delete la_print_array_index
563 initializer.
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
0874fd07
AB
5692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * gdb/ada-lang.c (ada_language_defn): Convert to...
572 (ada_language_data): ...this.
573 (class ada_language): New class.
574 (ada_language_defn): New static global.
575 * gdb/c-lang.c (c_language_defn): Convert to...
576 (c_language_data): ...this.
577 (class c_language): New class.
578 (c_language_defn): New static global.
579 (cplus_language_defn): Convert to...
580 (cplus_language_data): ...this.
581 (class cplus_language): New class.
582 (cplus_language_defn): New static global.
583 (asm_language_defn): Convert to...
584 (asm_language_data): ...this.
585 (class asm_language): New class.
586 (asm_language_defn): New static global.
587 (minimal_language_defn): Convert to...
588 (minimal_language_data): ...this.
589 (class minimal_language): New class.
590 (minimal_language_defn): New static global.
591 * gdb/d-lang.c (d_language_defn): Convert to...
592 (d_language_data): ...this.
593 (class d_language): New class.
594 (d_language_defn): New static global.
595 * gdb/f-lang.c (f_language_defn): Convert to...
596 (f_language_data): ...this.
597 (class f_language): New class.
598 (f_language_defn): New static global.
599 * gdb/go-lang.c (go_language_defn): Convert to...
600 (go_language_data): ...this.
601 (class go_language): New class.
602 (go_language_defn): New static global.
603 * gdb/language.c (unknown_language_defn): Remove declaration.
604 (current_language): Initialize to nullptr, real initialization is
605 moved to _initialize_language.
606 (languages): Delete global.
607 (language_defn::languages): Define.
608 (set_language_command): Use language_defn::languages.
609 (set_language): Likewise.
610 (range_error): Likewise.
611 (language_enum): Likewise.
612 (language_def): Likewise.
613 (add_set_language_command): Use language_def::languages for the
614 language list, and language_def to lookup language pointers.
615 (skip_language_trampoline): Use language_defn::languages.
616 (unknown_language_defn): Convert to...
617 (unknown_language_data): ...this.
618 (class unknown_language): New class.
619 (unknown_language_defn): New static global.
620 (auto_language_defn): Convert to...
621 (auto_language_data): ...this.
622 (class auto_language): New class.
623 (auto_language_defn): New static global.
624 (language_gdbarch_post_init): Use language_defn::languages.
625 (_initialize_language): Initialize current_language.
626 * gdb/language.h (struct language_defn): Rename to...
627 (struct language_data): ...this.
628 (struct language_defn): New.
629 (auto_language_defn): Delete.
630 (unknown_language_defn): Delete.
631 (minimal_language_defn): Delete.
632 (ada_language_defn): Delete.
633 (asm_language_defn): Delete.
634 (c_language_defn): Delete.
635 (cplus_language_defn): Delete.
636 (d_language_defn): Delete.
637 (f_language_defn): Delete.
638 (go_language_defn): Delete.
639 (m2_language_defn): Delete.
640 (objc_language_defn): Delete.
641 (opencl_language_defn): Delete.
642 (pascal_language_defn): Delete.
643 (rust_language_defn): Delete.
644 * gdb/m2-lang.c (m2_language_defn): Convert to...
645 (m2_language_data): ...this.
646 (class m2_language): New class.
647 (m2_language_defn): New static global.
648 * gdb/objc-lang.c (objc_language_defn): Convert to...
649 (objc_language_data): ...this.
650 (class objc_language): New class.
651 (objc_language_defn): New static global.
652 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
653 (opencl_language_data): ...this.
654 (class opencl_language): New class.
655 (opencl_language_defn): New static global.
656 * gdb/p-lang.c (pascal_language_defn): Convert to...
657 (pascal_language_data): ...this.
658 (class pascal_language): New class.
659 (pascal_language_defn): New static global.
660 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
661 language pointer, update comment format.
662 * gdb/rust-lang.c (rust_language_defn): Convert to...
663 (rust_language_data): ...this.
664 (class rust_language): New class.
665 (rust_language_defn): New static global.
666
1313c56e
AB
6672020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
670 member variable.
671 <m_stmt_at_address>: New member variable.
672 (lnp_state_machine::record_line): Don't record some lines, update
673 tracking of is_stmt at the same address.
674 (lnp_state_machine::lnp_state_machine): Initialise new member
675 variables.
676
b7ed9f3d
ST
6772020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
678
679 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
680 "-include gnu-nat-mig.h".
681 * gnu-nat-mig.h: New file.
682 * gnu-nat.c: Include "gnu-nat-mig.h".
683 (exc_server, msg_reply_server, notify_server,
684 process_reply_server): Remove declarations.
685
14a8ad62
ST
6862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
687
688 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
689 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
690 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
691 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
692 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
693 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
694 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
695 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
696 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
697 to gnu_nat_target class.
698 * gnu-nat.c: Likewise.
699 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
700 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
701 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
702 object.
703 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
704 instead of `gnu_target'.
705
0af5e106
ST
7062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
707
708 * i386-gnu-tdep.c: Include "gdbcore.h"
709 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
710 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
711 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
712 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
713 i386_gnu_sigcontext_addr): New functions
714 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
715 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
716 tdep.
717
078f2fc9
ST
7182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
719
720 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
721 before fork_inferior call. Avoid calling it if target_is_pushed returns
722 true.
723
53dff92c
ST
7242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
725
726 * gnu-nat.h (gnu_target): New variable declaration.
727 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
728 gnu_target.
729 * gnu-nat.c (gnu_target): New variable.
730 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
731 add_thread_silent, and add_thread calls.
732 (gnu_nat_target::create_inferior): Pass gnu_target to
733 add_thread_silent, thread_change_ptid call.
734 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
735 call.
736
5a8b8627
ST
7372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
738
739 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
740 (gnu_nat_target::find_memory_regions): Remove unused
741 `old_address' variable.
742
366f550a
ST
7432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
744
745 * gnu-nat.c: Include "gdbarch.h".
746
f14871bf
ST
7472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
748
749 * reply_mig_hack.awk (Error return): Cast function through
750 void *, to bypass compiler function call check.
751
c6887cfb
ST
7522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
753
754 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
755 $(srcdir)/reply_mig_hack.awk.
756
6930bffe
ST
7572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
758
759 * gnu-nat.h (gnu_debug_flag): Set type to bool.
760
112c22ed
JG
7612020-05-30 Jonny Grant <jg@jguk.org>
762
763 * configure.ac (ACX_BUGURL): change bug URL to https.
764
f68f85b5
PA
7652020-05-30 Pedro Alves <palves@redhat.com>
766
767 * cp-support.c (replace_typedefs_template): New.
768 (replace_typedefs_qualified_name): Handle
769 DEMANGLE_COMPONENT_TEMPLATE.
770
976ca316
SM
7712020-05-29 Simon Marchi <simon.marchi@efficios.com>
772
773 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
774 dwarf2/index-cache.h, dwarf2/index-write.c,
775 dwarf2/index-write.h, dwarf2/line-header.c,
776 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
777 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
778 variables and fields from `dwarf2_per_objfile` to just
779 `per_objfile` throughout.
780
989ade05
SM
7812020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
784 <push_dwarf_reg_entry_value>: Add comment.
785
c47bae85
KB
7862020-05-28 Kevin Buettner <kevinb@redhat.com>
787 Keith Seitz <keiths@redhat.com>
788
789 * python/python.c (do_start_initialization): Call PyEval_SaveThread
790 instead of PyEval_ReleaseLock.
791 (class gdbpy_gil): Move to earlier in file.
792 (finalize_python): Set gdb_python_initialized.
793 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
794 when not initialized.
795
44486dcf
SM
7962020-05-28 Simon Marchi <simon.marchi@efficios.com>
797
798 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
799 <push_dwarf_reg_entry_value>: Remove assert. Override
800 per_objfile with caller_per_objfile.
801
f030440d
TV
8022020-05-28 Tom de Vries <tdevries@suse.de>
803
804 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
805 PR gold/15646 workaround to symbol kind "type".
806
f0fbb768
TT
8072020-05-27 Tom Tromey <tromey@adacore.com>
808
809 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
810
af0b2a3e
TT
8112020-05-27 Tom Tromey <tromey@adacore.com>
812
813 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
814 Use htab_find_with_hash.
815 <add_abbrev>: Remove "abbrev_number" parameter.
816 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
817 "abbrev_number" parameter. Use htab_find_slot_with_hash.
818 (hash_abbrev): Add comment.
819 (abbrev_table::lookup_abbrev): Move to header file.
820 (abbrev_table::read): Update.
821
7d00ffec
TT
8222020-05-27 Tom Tromey <tromey@adacore.com>
823
824 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
825 method.
826 <canonical_name>: New member.
827 <raw_name>: Rename from "name".
828 (partial_die_info): Initialize canonical_name.
829 (scan_partial_symbols): Check raw_name.
830 (partial_die_parent_scope, partial_die_full_name)
831 (add_partial_symbol, add_partial_subprogram)
832 (add_partial_enumeration, load_partial_dies): Use "name" method.
833 (partial_die_info::name): New method.
834 (partial_die_info::read, guess_partial_die_structure_name)
835 (partial_die_info::fixup): Update.
836
697bba18
TT
8372020-05-27 Tom Tromey <tromey@adacore.com>
838
839 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
840 <get_ref_die_offset>: Inline.
841 <get_ref_die_offset_complaint>: New method.
842 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
843 (attribute::get_ref_die_offset_complaint): Rename from
844 get_ref_die_offset. Just issue complaint.
845
c17ace43
HD
8462020-05-27 Hannes Domani <ssbssa@yahoo.de>
847
848 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
849
96445f0b
HD
8502020-05-27 Hannes Domani <ssbssa@yahoo.de>
851
852 * exec.c (exec_file_attach): Use errno value of first openp failure.
853
ac637ec3
HD
8542020-05-27 Hannes Domani <ssbssa@yahoo.de>
855
856 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
857 Don't close thread handle.
858
17ee85fc
TT
8592020-05-27 Tom Tromey <tom@tromey.com>
860 Simon Marchi <simon.marchi@efficios.com>
861
862 * objfiles.h (struct objfile) <partial_symtabs>: Now a
863 shared_ptr.
864 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
865 member.
866 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
867 dwarf2_per_bfd_objfile_data_key>: New globals.
868 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
869 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
870 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
871 shared.
872 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
873 short-circuit when sharing.
874 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
875 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
876
39b16f87
SM
8772020-05-27 Simon Marchi <simon.marchi@efficios.com>
878
879 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
880 to...
881 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
882 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
883
fcf23d5b
SM
8842020-05-27 Simon Marchi <simon.marchi@efficios.com>
885
886 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
887 build_name_components, find_name_components_bounds>:
888 Add per_objfile parameter.
889 (struct mapped_index) <symbol_name_at>: Likewise.
890 (struct mapped_debug_names): Remove constructor.
891 <dwarf2_per_objfile>: Remove field.
892 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
893 (mapped_index_base::find_name_components_bounds,
894 mapped_index_base::build_name_components,
895 dw2_expand_symtabs_matching_symbol): Likewise.
896 (class mock_mapped_index) <symbol_name_at>: Likewise.
897 (check_match): Likewise.
898 (check_find_bounds_finds): Likewise.
899 (test_mapped_index_find_name_component_bounds): Update.
900 (CHECK_MATCH): Update.
901 (dw2_expand_symtabs_matching): Update.
902 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
903 per_objfile parameter.
904 <find_vec_in_debug_names>: Likewise.
905 <m_per_objfile>: New field.
906 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
907 parameter.
908 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
909 (dw2_debug_names_iterator::next): Update.
910 (dw2_debug_names_lookup_symbol): Update.
911 (dw2_debug_names_expand_symtabs_for_function): Update.
912 (dw2_debug_names_map_matching_symbols): Update.
913 (dw2_debug_names_expand_symtabs_matching): Update.
914 (dwarf2_read_debug_names): Update.
915
7188ed02
SM
9162020-05-27 Simon Marchi <simon.marchi@efficios.com>
917
918 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
919 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
920 move to dwarf2_per_objfile.
921 <read_in_chain>: Remove.
922 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
923 remove_all_cus, age_comp_units>: New methods.
924 <m_dwarf2_cus>: New member.
925 (struct dwarf2_per_cu_data) <cu>: Remove.
926 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
927 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
928 moved to methods of dwarf2_per_objfile.
929 (dwarf2_clear_marks): Remove.
930 (dwarf2_queue_item::~dwarf2_queue_item): Update.
931 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
932 (dwarf2_per_bfd::free_cached_comp_units): Remove.
933 (dwarf2_per_objfile::remove_all_cus): New.
934 (class free_cached_comp_units) <~free_cached_comp_units>:
935 Update.
936 (load_cu): Update.
937 (dw2_do_instantiate_symtab): Adjust.
938 (fill_in_sig_entry_from_dwo_entry): Adjust.
939 (cutu_reader::init_tu_and_read_dwo_dies): Update.
940 (cutu_reader::cutu_reader): Likewise.
941 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
942 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
943 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
944 and dwarf2_per_objfile::age_comp_units.
945 (load_partial_comp_unit): Update.
946 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
947 (process_queue): Likewise.
948 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
949 backlink.
950 (dwarf2_read_addr_index): Likewise.
951 (follow_die_offset): Likewise.
952 (dwarf2_fetch_die_loc_sect_off): Likewise.
953 (dwarf2_fetch_constant_bytes): Likewise.
954 (dwarf2_fetch_die_type_sect_off): Likewise.
955 (follow_die_sig_1): Likewise.
956 (load_full_type_unit): Likewise.
957 (read_signatured_type): Likewise.
958 (dwarf2_cu::dwarf2_cu): Don't set cu field.
959 (dwarf2_cu::~dwarf2_cu): Remove.
960 (dwarf2_per_objfile::get_cu): New.
961 (dwarf2_per_objfile::set_cu): New.
962 (age_cached_comp_units): Rename to...
963 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
964 to std::unordered_map.
965 (free_one_cached_comp_unit): Rename to...
966 (dwarf2_per_objfile::remove_cu): ... this. Adjust
967 to std::unordered_map.
968 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
969 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
970 a dwarf2_per_objfile in data.
971 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
972 (dwarf2_clear_marks): Remove.
973
2e671100
SM
9742020-05-27 Simon Marchi <simon.marchi@efficios.com>
975
976 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
977 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
978 (init_tu_and_read_dwo_dies): Likewise.
979 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
980 (cutu_reader::cutu_reader): Likewise.
981 (load_partial_comp_unit): Likewise.
982 (process_psymtab_comp_unit): Update.
983 (build_type_psymtabs_1): Update.
984 (process_skeletonless_type_unit): Update.
985 (load_full_comp_unit): Update.
986 (find_partial_die): Update.
987 (dwarf2_read_addr_index): Update.
988 (read_signatured_type): Update.
989
2e6a9f79
SM
9902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
993 m_header_read_in>: New fields.
994 <get_header>: New method.
995 * dwarf2/read.c (per_cu_header_read_in): Remove.
996 (dwarf2_per_cu_data::get_header): New.
997 (dwarf2_per_cu_data::addr_size): Update.
998 (dwarf2_per_cu_data::offset_size): Update.
999 (dwarf2_per_cu_data::ref_addr_size): Update.
1000
1b555f17
SM
10012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * dwarf2/read.c (load_cu): Return dwarf2_cu.
1004 (dw2_do_instantiate_symtab): Update.
1005 (queue_and_load_all_dwo_tus): Change parameter from
1006 dwarf2_per_cu_data to dwarf2_cu.
1007 (dwarf2_fetch_die_loc_sect_off): Update.
1008 (dwarf2_fetch_constant_bytes): Update.
1009 (dwarf2_fetch_die_type_sect_off): Update.
1010
8fc0b21d
SM
10112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * dwarf2/read.c (process_full_comp_unit,
1014 process_full_type_unit): Remove per_cu, per_objfile paramters.
1015 Add dwarf2_cu parameter.
1016 (process_queue): Update.
1017
168c9250
SM
10182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1019
1020 * dwarf2/read.c (create_cu_from_index_list): Replace
1021 dwarf2_per_objfile parameter with dwarf2_per_bfd.
1022 (create_cus_from_index_list): Likewise.
1023 (create_cus_from_index): Likewise.
1024 (create_signatured_type_table_from_index): Likewise.
1025 (create_cus_from_debug_names_list): Likewise.
1026 (create_cus_from_debug_names): Likewise.
1027 (dwarf2_read_gdb_index): Update.
1028 (dwarf2_read_debug_names): Update.
1029
e286671b
TT
10302020-05-27 Tom Tromey <tom@tromey.com>
1031 Simon Marchi <simon.marchi@efficios.com>
1032
1033 * dwarf2/read.h (struct dwarf2_per_objfile)
1034 <get_type_for_signatured_type, set_type_for_signatured_type>:
1035 New methods.
1036 <m_type_map>: New member.
1037 (struct signatured_type) <type>: Remove.
1038 * dwarf2/read.c
1039 (dwarf2_per_objfile::get_type_for_signatured_type,
1040 dwarf2_per_objfile::set_type_for_signatured_type): New.
1041 (get_signatured_type): Use new methods.
1042
8adb8487
TT
10432020-05-27 Tom Tromey <tom@tromey.com>
1044 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * dwarf2/read.h (struct type_unit_group_unshareable): New.
1047 (struct dwarf2_per_objfile) <type_units>: New member.
1048 <get_type_unit_group_unshareable>: New method.
1049 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
1050 num_symtabs, symtabs>: Remove; move to
1051 type_unit_group_unshareable.
1052 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
1053 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
1054 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
1055
127bbf4b
SM
10562020-05-27 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * dwarf2/read.h (struct dwarf2_per_cu_data):
1059 <dwarf2_per_objfile>: Remove.
1060 * dwarf2/read.c (create_cu_from_index_list): Don't assign
1061 dwarf2_per_objfile.
1062 (create_signatured_type_table_from_index): Likewise.
1063 (create_signatured_type_table_from_debug_names): Likewise.
1064 (create_debug_type_hash_table): Likewise.
1065 (fill_in_sig_entry_from_dwo_entry): Likewise.
1066 (create_type_unit_group): Likewise.
1067 (read_comp_units_from_section): Likewise.
1068 (create_cus_hash_table): Likewise.
1069
f6e649dd
SM
10702020-05-27 Simon Marchi <simon.marchi@efficios.com>
1071
1072 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
1073 dwarf2_per_cu_data::dwarf2_per_objfile.
1074 (compute_compunit_symtab_includes): Likewise.
1075 (dwarf2_cu::start_symtab): Likewise.
1076
aa66c379
SM
10772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1078
1079 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
1080 parameter.
1081 * dwarf2/read.c (get_die_type_at_offset): Likewise.
1082 (read_namespace_alias): Update.
1083 (lookup_die_type): Update.
1084 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
1085 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
1086 Update.
1087 (disassemble_dwarf_expression): Update.
1088
120ce1b5
SM
10892020-05-27 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * dwarf2/read.h (struct dwarf2_queue_item): Add
1092 dwarf2_per_objfile parameter, assign new parameter.
1093 <per_objfile>: New field.
1094 * dwarf2/read.c (free_one_cached_comp_unit): Add
1095 dwarf2_per_objfile parameter.
1096 (queue_comp_unit): Likewise.
1097 (dw2_do_instantiate_symtab): Update.
1098 (process_psymtab_comp_unit): Update.
1099 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
1100 (process_imported_unit_die): Update.
1101 (queue_and_load_dwo_tu): Update.
1102 (follow_die_offset): Update.
1103 (follow_die_sig_1): Update.
1104
9f47c707
SM
11052020-05-27 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
1108 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
1109 (read_call_site_scope): Assign per_objfile.
1110 (dwarf2_per_cu_data::objfile): Remove.
1111 * gdbtypes.h (struct call_site) <per_objfile>: New member.
1112 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
1113 dwarf2_per_objfile parameter.
1114 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
1115 dwarf2_per_objfile parameter.
1116 (dwarf_expr_reg_to_entry_parameter): Add output
1117 dwarf2_per_objfile parameter.
1118 (locexpr_get_frame_base): Update.
1119 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
1120 <push_dwarf_reg_entry_value>: Update.
1121 <call_site_to_target_addr>: Update.
1122 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
1123 parameter.
1124 (value_of_dwarf_reg_entry): Update.
1125 (rw_pieced_value): Update.
1126 (indirect_synthetic_pointer): Update.
1127 (dwarf2_evaluate_property): Update.
1128 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
1129 parameter.
1130 (locexpr_read_variable): Update.
1131 (locexpr_get_symbol_read_needs): Update.
1132 (loclist_read_variable): Update.
1133
14095eb3
SM
11342020-05-27 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1137 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1138 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1139 parameter.
1140 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1142 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1143 parameter.
1144 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
1145 sect_variable_value): Add dwarf2_per_objfile parameter.
1146 (class dwarf_evaluate_loc_desc) <dwarf_call,
1147 dwarf_variable_value>: Update.
1148 (fetch_const_value_from_synthetic_pointer): Add
1149 dwarf2_per_objfile parameter.
1150 (fetch_const_value_from_synthetic_pointer): Update.
1151 (coerced_pieced_ref): Update.
1152 (class symbol_needs_eval_context) <dwarf_call,
1153 dwarf_variable_value>: Update.
1154 (dwarf2_compile_expr_to_ax): Update.
1155
3c3cd3d4
SM
11562020-05-27 Simon Marchi <simon.marchi@efficios.com>
1157
1158 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
1159 parameter.
1160 (dwarf2_evaluate_loc_desc_full): Update.
1161
82ca3f51
SM
11622020-05-27 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
1165 parameter.
1166 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
1167 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
1168 dwarf2_per_objfile parameter.
1169 (decode_debug_loc_dwo_addresses): Likewise.
1170 (dwarf2_find_location_expression): Update.
1171 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
1172 (locexpr_describe_location_piece): Add dwarf2_per_objfile
1173 parameter.
1174 (disassemble_dwarf_expression): Add dwarf2_per_objfile
1175 parameter.
1176 (locexpr_describe_location_1): Likewise.
1177 (locexpr_describe_location): Update.
1178
4b167ea1
SM
11792020-05-27 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
1182 Remove.
1183 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
1184 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
1185 (dwarf2_compile_property_to_c): Update.
1186 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
1187 use text offset from objfile.
1188 (locexpr_tracepoint_var_ref): Update.
1189 (locexpr_generate_c_location): Update.
1190 (loclist_describe_location): Update.
1191 (loclist_tracepoint_var_ref): Update.
1192 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
1193 dwarf2_per_objfile parameter.
1194 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
1195 use text offset from objfile.
1196 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
1197
89b07335
SM
11982020-05-27 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * dwarf2/expr.h (struct dwarf_expr_context)
1201 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
1202 <offset>: Remove.
1203 <per_objfile>: New member.
1204 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
1205 dwarf2_per_objfile parameter. Don't set offset, set
1206 per_objfile.
1207 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
1208 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
1209 a dwarf2_per_objfile object instead of an offset.
1210 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
1211 constructor.
1212 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
1213 to dwarf2_expr_executor constructor. Don't set offset.
1214 (dwarf2_fetch_cfa_info): Update.
1215 (struct dwarf2_frame_cache) <text_offset>: Remove.
1216 <per_objfile>: New field.
1217 (dwarf2_frame_cache): Update.
1218 (dwarf2_frame_prev_register): Update.
1219 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1220 <dwarf_evaluate_loc_desc>: Add constructor.
1221 (dwarf2_evaluate_loc_desc_full): Update.
1222 (dwarf2_locexpr_baton_eval): Update.
1223 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
1224 Add constructor.
1225 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1226
293e7e51
SM
12272020-05-27 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
1230 addr_sized_int_type>: Move to dwarf2_cu.
1231 <int_type>: Move to dwarf2_per_objfile.
1232 (struct dwarf2_per_objfile) <int_type>: Move here.
1233 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
1234 addr_sized_int_type>: Move here.
1235 (read_func_scope): Update.
1236 (read_array_type): Update.
1237 (read_tag_string_type): Update.
1238 (attr_to_dynamic_prop): Update.
1239 (dwarf2_per_cu_data::int_type): Rename to...
1240 (dwarf2_per_objfile::int_type): ... this.
1241 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
1242 (dwarf2_cu::addr_sized_int_type): ... this.
1243 (read_subrange_type): Update.
1244 (dwarf2_per_cu_data::addr_type): Rename to...
1245 (dwarf2_cu::addr_type): ... this.
1246 (set_die_type): Update.
1247
64874a40
SM
12482020-05-27 Simon Marchi <simon.marchi@efficios.com>
1249
1250 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
1251 data through per_cu->cu.
1252
4ab09049
SM
12532020-05-27 Simon Marchi <simon.marchi@efficios.com>
1254
1255 * dwarf2/read.c (lookup_dwo_comp_unit): Change
1256 dwarf2_per_cu_data parameter fo dwarf2_cu.
1257 (lookup_dwo_type_unit): Likewise.
1258 (read_cutu_die_from_dwo): Likewise.
1259 (lookup_dwo_unit): Likewise.
1260 (open_and_init_dwo_file): Likewise.
1261 (lookup_dwo_cutu): Likewise.
1262 (lookup_dwo_comp_unit): Likewise.
1263 (lookup_dwo_type_unit): Likewise.
1264 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1265 (cutu_reader::cutu_reader): Update.
1266
47b14e86
SM
12672020-05-27 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
1270 parameter.
1271 (process_full_type_unit): Likewise.
1272 (process_queue): Update.
1273
43182c09
SM
12742020-05-27 Simon Marchi <simon.marchi@efficios.com>
1275
1276 * dwarf2/read.c (recursively_compute_inclusions): Add
1277 dwarf2_per_objfile parameter.
1278 (compute_compunit_symtab_includes): Likewise.
1279 (process_cu_includes): Update.
1280
7aa104c4
SM
12812020-05-27 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
1284 parameter.
1285 (create_type_unit_group): Update.
1286 (process_psymtab_comp_unit_reader): Update.
1287 (build_type_psymtabs_reader): Update.
1288
e3beb21d
SM
12892020-05-27 Simon Marchi <simon.marchi@efficios.com>
1290
1291 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
1292 object through m_this_cu->cu.
1293
d460f660
SM
12942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
1297 the info parameter.
1298 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
1299
ab432490
SM
13002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1301
1302 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
1303 per_objfile parameter.
1304 (load_full_type_unit): Add per_objfile parameter.
1305 (read_signatured_type): Likewise.
1306 (load_full_comp_unit): Likewise.
1307 (load_cu): Likewise.
1308 (dw2_do_instantiate_symtab): Likewise.
1309 (dw2_get_file_names): Likewise.
1310 (dw2_map_symtabs_matching_filename): Update.
1311 (dw_expand_symtabs_matching_file_matcher): Update.
1312 (dw2_map_symbol_filenames): Update.
1313 (process_psymtab_comp_unit): Add per_objfile parameter.
1314 (build_type_psymtabs_1): Update.
1315 (process_skeletonless_type_unit): Update.
1316 (dwarf2_build_psymtabs_hard): Update.
1317 (load_partial_comp_unit): Add per_objfile parameter.
1318 (scan_partial_symbols): Update.
1319 (load_full_comp_unit): Add per_objfile parameter.
1320 (process_imported_unit_die): Update.
1321 (create_cus_hash_table): Update.
1322 (find_partial_die): Update.
1323 (dwarf2_read_addr_index): Update.
1324 (follow_die_offset): Update.
1325 (dwarf2_fetch_die_loc_sect_off): Update.
1326 (dwarf2_fetch_constant_bytes): Update.
1327 (dwarf2_fetch_die_type_sect_off): Update.
1328 (follow_die_sig_1): Update.
1329 (load_full_type_unit): Add per_objfile parameter.
1330 (read_signatured_type): Likewise.
1331
313bad1b
SM
13322020-05-27 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
1335 of objfile_name.
1336
c3699833
SM
13372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
1340 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1341 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
1342 field.
1343 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1344 (create_cus_from_index): Update.
1345 (dwarf2_read_gdb_index): Update.
1346 (create_cus_from_debug_names): Update.
1347 (dwarf2_read_debug_names): Update.
1348 (get_abbrev_section_for_cu): Update.
1349 (create_all_comp_units): Update.
1350 (read_attribute_value): Update.
1351 (get_debug_line_section): Update.
1352 * dwarf2/index-cache.c (index_cache::store): Update.
1353 * dwarf2/index-write.c (save_gdb_index_command): Update.
1354 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1355
1859c670
SM
13562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
1359 member.
1360 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
1361 dwarf2_per_cu_data::per_bfd.
1362 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
1363 (create_type_unit_group): Likewise.
1364 (queue_comp_unit): Remove reference to
1365 per_cu->dwarf2_per_objfile.
1366 (maybe_queue_comp_unit): Likewise.
1367 (fill_in_sig_entry_from_dwo_entry): Assign new field.
1368 (create_cus_hash_table): Assign new field.
1369
5e22e966
SM
13702020-05-27 Simon Marchi <simon.marchi@efficios.com>
1371
1372 * dwarf2/read.c: Replace
1373 dwarf2_cu->per_cu->dwarf2_per_objfile references with
1374 dwarf2_cu->per_objfile throughout.
1375
97a1449a
SM
13762020-05-27 Simon Marchi <simon.marchi@efficios.com>
1377
1378 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
1379 parameter, don't use per_cu->dwarf2_per_objfile.
1380 (dw2_instantiate_symtab): Likewise.
1381 (dw2_find_last_source_symtab): Update.
1382 (dw2_map_expand_apply): Update.
1383 (dw2_lookup_symbol): Update.
1384 (dw2_expand_symtabs_for_function): Update.
1385 (dw2_expand_all_symtabs): Update.
1386 (dw2_expand_symtabs_with_fullname): Update.
1387 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
1388 don't use per_cu->dwarf2_per_objfile.
1389 (dw2_expand_marked_cus): Update.
1390 (dw2_find_pc_sect_compunit_symtab): Update.
1391 (dw2_debug_names_lookup_symbol): Update.
1392 (dw2_debug_names_expand_symtabs_for_function): Update.
1393 (dw2_debug_names_map_matching_symbols): Update.
1394 (dwarf2_psymtab::expand_psymtab): Update.
1395
9e021579
SM
13962020-05-27 Simon Marchi <simon.marchi@efficios.com>
1397
1398 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
1399 <per_objfile>: New member.
1400 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
1401 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
1402 call to dwarf2_cu.
1403 (cutu_reader::cutu_reader): Update.
1404 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
1405
ae090bdb
SM
14062020-05-27 Simon Marchi <simon.marchi@efficios.com>
1407
1408 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
1409 struct dwarf2_per_objfile.
1410 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
1411 dwarf2_per_bfd.
1412 * dwarf2/read.c (set_die_type): Update.
1413 (get_die_type_at_offset): Update.
1414
af758d11
SM
14152020-05-27 Tom Tromey <tom@tromey.com>
1416 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
1419 method.
1420 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
1421 get_symtab, set_symtab>: New methods.
1422 <m_symtabs>: New field.
1423 (struct dwarf2_psymtab): Derive from partial_symtab.
1424 <readin_p, get_compunit_symtab>: Declare methods.
1425 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
1426 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
1427 New methods.
1428 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
1429 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
1430 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
1431 (dw2_symtab_iter_next, dw2_print_stats)
1432 (dw2_expand_symtabs_with_fullname)
1433 (dw2_expand_symtabs_matching_one)
1434 (dw_expand_symtabs_matching_file_matcher)
1435 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
1436 (dw2_debug_names_iterator::next)
1437 (dw2_debug_names_map_matching_symbols)
1438 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
1439 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
1440 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
1441 New methods.
1442 (get_compunit_symtab, process_full_comp_unit)
1443 (process_full_type_unit): Update.
1444 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
1445
5989a64e
SM
14462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
1449 then introduce a new dwarf2_per_objfile type.
1450 <read_line_string>: Move to the new dwarf2_per_objfile type.
1451 <objfile>: Likewise.
1452 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
1453 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
1454 dwarf2_per_objfile->per_bfd.
1455 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
1456 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
1457 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
1458 (dwarf2_per_bfd::free_cached_comp_units): ... this.
1459 (dwarf2_has_info): Allocate dwarf2_per_bfd.
1460 (dwarf2_per_objfile::locate_sections): Rename to...
1461 (dwarf2_per_bfd::locate_sections): ... this.
1462 (dwarf2_per_objfile::get_cutu): Rename to...
1463 (dwarf2_per_bfd::get_cutu): ... this.
1464 (dwarf2_per_objfile::get_cu): Rename to...
1465 (dwarf2_per_bfd::get_cu): ... this.
1466 (dwarf2_per_objfile::get_tu): Rename to...
1467 (dwarf2_per_bfd::get_tu): ... this.
1468 (dwarf2_per_objfile::allocate_per_cu): Rename to...
1469 (dwarf2_per_bfd::allocate_per_cu): ... this.
1470 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
1471 (dwarf2_per_bfd::allocate_signatured_type): ... this.
1472 (get_gdb_index_contents_ftype): Change parameter from
1473 dwarf2_per_objfile to dwarf2_per_bfd.
1474 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
1475 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
1476
a50264ba
TT
14772020-05-27 Tom Tromey <tom@tromey.com>
1478 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
1481 (allocate_piece_closure): Set "per_objfile" member.
1482 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
1483 (locexpr_describe_location, loclist_describe_location): Use new
1484 member.
1485 * dwarf2/read.c (read_call_site_scope)
1486 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1487 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
1488 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
1489 handle_data_member_location): Set per_objfile member.
1490 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
1491 member.
1492 (struct dwarf2_loclist_baton) <per_objfile>: New member.
1493
d3473f0c
TT
14942020-05-27 Tom Tromey <tom@tromey.com>
1495
1496 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
1497 allocate_signatured_type>: Declare new methods.
1498 <m_num_psymtabs>: New member.
1499 (struct dwarf2_per_cu_data) <index>: New member.
1500 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
1501 (dwarf2_per_objfile::allocate_signatured_type): New methods.
1502 (create_cu_from_index_list): Use allocate_per_cu.
1503 (create_signatured_type_table_from_index)
1504 (create_signatured_type_table_from_debug_names)
1505 (create_debug_type_hash_table, add_type_unit)
1506 (read_comp_units_from_section): Use allocate_signatured_type.
1507
5717c425
TT
15082020-05-27 Tom Tromey <tom@tromey.com>
1509
1510 * psymtab.c (partial_map_expand_apply)
1511 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
1512 (psym_lookup_global_symbol_language)
1513 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
1514 (psym_print_stats, psym_expand_symtabs_for_function)
1515 (psym_map_symbol_filenames, psym_map_matching_symbols)
1516 (psym_expand_symtabs_matching)
1517 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
1518 (maintenance_check_psymtabs): Update.
1519 * psympriv.h (struct partial_symtab) <readin_p,
1520 get_compunit_symtab>: Add objfile parameter.
1521 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
1522 Likewise.
1523 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
1524 get_compunit_symtab>: Likewise.
1525 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
1526
45940949
TT
15272020-05-27 Tom Tromey <tom@tromey.com>
1528
1529 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
1530 member.
1531 * dwarf2/read.c (delete_file_name_entry): Fix comment.
1532 (create_cu_from_index_list)
1533 (create_signatured_type_table_from_index)
1534 (create_signatured_type_table_from_debug_names)
1535 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
1536 (dwarf2_create_include_psymtab)
1537 (create_debug_type_hash_table, add_type_unit)
1538 (create_type_unit_group, read_comp_units_from_section)
1539 (dwarf2_compute_name, create_cus_hash_table)
1540 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
1541 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
1542 obstack.
1543 (dw2_get_real_path): Likewise. Change argument to
1544 dwarf2_per_objfile.
1545
f8c6d152
LM
15462020-05-27 Luis Machado <luis.machado@linaro.org>
1547
1548 PR tdep/26000
1549 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
1550 for ldrd (immediate).
1551
e98d2e6d
PW
15522020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1553
1554 * command.h: Add comment giving the name of class_tui.
1555 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
1556 create the fake command for the help for class_tui.
1557
53a47a3e
TT
15582020-05-26 Tom Tromey <tromey@adacore.com>
1559
1560 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
1561 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
1562 (val_atr): New function.
1563 (value_val_atr): Use it.
1564 * ada-valprint.c (print_optional_low_bound): Change low bound
1565 handling for enums.
1566 (val_print_packed_array_elements): Don't call discrete_position.
1567 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
1568 discrete_position for enum types.
1569 * language.c (default_print_array_index): Change type.
1570 * language.h (struct language_defn) <la_print_array_index>: Add
1571 index_type parameter, change type of index_value.
1572 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
1573 (default_print_array_index): Update.
1574 * valprint.c (maybe_print_array_index): Don't call
1575 value_from_longest. Update.
1576 (value_print_array_elements): Don't call discrete_position.
1577
0bc2354b
TT
15782020-05-26 Tom Tromey <tromey@adacore.com>
1579
1580 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
1581 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
1582
1218a4bf
CDA
15832020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
1584
1585 PR gdb/13519
1586 * avr-tdep.c (avr_integer_to_address): Return data or code
1587 address accordingly to the second 'type' argument of the
1588 function.
1589
92651b1d
MW
15902020-05-25 Michael Weghorn <m.weghorn@posteo.de>
1591
1592 * infcmd.c, inferior.h: (construct_inferior_arguments):
1593 Moved function from here to gdbsupport/common-inferior.{h,cc}
1594
0a4f5f8c
TT
15952020-05-23 Tom Tromey <tom@tromey.com>
1596
1597 Revert commit eca1f90c:
1598 * NEWS: Remove entry for completion styling.
1599 * completer.c (_rl_completion_prefix_display_length): Move
1600 declaration later.
1601 (gdb_fnprint): Revert.
1602 (gdb_display_match_list_1): Likewise.
1603 * cli/cli-style.c (completion_prefix_style)
1604 (completion_difference_style, completion_suffix_style): Remove.
1605 (_initialize_cli_style): Revert.
1606 * cli/cli-style.h (completion_prefix_style)
1607 (completion_difference_style, completion_suffix_style): Don't
1608 declare.
1609
e08bd6c5
PA
16102020-05-24 Pedro Alves <palves@redhat.com>
1611
1612 * symtab.c (completion_list_add_name): Return boolean indication
1613 of whether the symbol matched.
1614 (completion_list_add_symbol): Don't try to remove C++ aliases if
1615 the symbol didn't match in the first place.
1616 * symtab.h (completion_list_add_name): Return bool.
1617
ceacbf6e
SM
16182020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
1621 type::field.
1622
26f16254
JB
16232020-05-23 Joel Brobecker <brobecker@adacore.com>
1624
1625 GDB 9.2 released.
1626
eca1f90c
TT
16272020-05-23 Tom Tromey <tom@tromey.com>
1628
1629 * NEWS: Add entry for completion styling.
1630 * completer.c (_rl_completion_prefix_display_length): Move
1631 declaration earlier.
1632 (gdb_fnprint): Use completion_style.
1633 (gdb_display_match_list_1): Likewise.
1634 * cli/cli-style.c (completion_prefix_style)
1635 (completion_difference_style, completion_suffix_style): New
1636 globals.
1637 (_initialize_cli_style): Register new globals.
1638 * cli/cli-style.h (completion_prefix_style)
1639 (completion_difference_style, completion_suffix_style): Declare.
1640
51e2cfa2
PA
16412020-05-23 Pedro Alves <palves@redhat.com>
1642
1643 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
1644 (parse_escape): Use ISDIGIT instead of isdigit.
1645 (puts_debug): Use gdb_isprint instead of isprint.
1646 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
1647 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
1648 ISSPACE instead of isspace.
1649 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
1650 instead of isspace.
1651 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
1652 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
1653 instead of isxdigit and ISDIGIT instead of isdigit.
1654
80fc5e77
SM
16552020-05-22 Simon Marchi <simon.marchi@efficios.com>
1656
1657 * gdbtypes.h (struct type) <field>: New method.
1658 (TYPE_FIELDS): Remove, replace all uses with either type::fields
1659 or type::field.
1660
3cabb6b0
SM
16612020-05-22 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
1664 (TYPE_FIELDS): Use type::fields. Change all call sites that
1665 modify the propery to use type::set_fields instead.
1666
1f704f76
SM
16672020-05-22 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
1670 type::num_fields instead.
1671
5e33d5f4
SM
16722020-05-22 Simon Marchi <simon.marchi@efficios.com>
1673
1674 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
1675 methods.
1676 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
1677 that modify the number of fields to use type::set_num_fields
1678 instead.
1679
9392ebb3
TT
16802020-05-22 Tom Tromey <tromey@adacore.com>
1681
1682 * compile/compile-object-load.h (munmap_list_free): Don't
1683 declare.
1684
7c13f4e8
AB
16852020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * annotate.c (annotate_source_line): Update return type, add call
1688 to update current symtab and line.
1689 * annotate.h (annotate_source_line): Update return type, and
1690 extend header comment.
1691 * source.c (info_line_command): Check annotation_level before
1692 calling annotate_source_line.
1693 * stack.c (print_frame_info): If calling annotate_source_line
1694 returns true, then don't print any other source line information.
1695
aa370940
SM
16962020-05-21 Simon Marchi <simon.marchi@efficios.com>
1697
1698 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
1699
84d53fa9
SM
17002020-05-21 Simon Marchi <simon.marchi@efficios.com>
1701
1702 * coffread.c (patch_type): Remove NULL check before xfree.
1703 * corefile.c (set_gnutarget): Likewise.
1704 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
1705 * exec.c (build_section_table): Likewise.
1706 * remote.c (remote_target::pass_signals): Likewise.
1707 * utils.c (n_spaces): Likewise.
1708 * cli/cli-script.c (document_command): Likewise.
1709 * i386-windows-tdep.c (core_process_module_section): Likewise.
1710 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
1711
9d428aae
SM
17122020-05-20 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * symfile.c (reread_symbols): Clear objfile's section_offsets
1715 vector and section indices, re-compute them by calling
1716 sym_offsets.
1717
250106a7
TT
17182020-05-20 Tom Tromey <tromey@adacore.com>
1719
1720 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 1721 (desc_one_bound, desc_index_type): Compute field name.
250106a7 1722
9a0bacfb
TV
17232020-05-20 Tom de Vries <tdevries@suse.de>
1724
1725 PR symtab/25833
1726 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
1727
7b958a48
AM
17282020-05-20 Alan Modra <amodra@gmail.com>
1729
1730 PR 25993
1731 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
1732 bfd_set_filename.
1733 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
1734 passed to bfd_set_filename.
1735 * symfile-mem.c (add_vsyscall_page): Likewise for string
1736 passed to symbol_file_add_from_memory.
1737 (symbol_file_add_from_memory): Make name param a const char* and
1738 don't strdup.
1739
c7e97679
AM
17402020-05-20 Alan Modra <amodra@gmail.com>
1741
1742 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
1743 rather than accessing bfd->filename directly.
1744 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
1745 and use bfd_section_name.
1746 * dwarf2/frame.c (decode_frame_entry): Likewise.
1747 * exec.c (exec_set_section_address): Likewise.
1748 * solib-aix.c (solib_aix_bfd_open): Likewise.
1749 * stap-probe.c (get_stap_base_address): Likewise.
1750 * symfile.c (reread_symbols): Likewise.
1751
563c591b
TT
17522020-05-19 Tom Tromey <tromey@adacore.com>
1753
1754 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
1755
f408d82c
SM
17562020-05-19 Simon Marchi <simon.marchi@efficios.com>
1757
1758 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
1759
98c59b52
PA
17602020-05-19 Pedro Alves <palves@redhat.com>
1761
1762 * NEWS (set exec-file-mismatch): Adjust entry.
1763 * exec.c: Include "build-id.h".
1764 (validate_exec_file): Try to match build IDs instead of filenames.
1765 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
1766 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
1767 and pass down 'warn_if_slow'.
1768 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
1769 gdb_bfd_open_closure to pass it down.
1770 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
1771
4111f652
PA
17722020-05-19 Pedro Alves <palves@redhat.com>
1773
1774 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
1775 * target.c (target_fileio_open_1): Rename to target_fileio_open
1776 and make extern. Use bool.
1777 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
1778 (target_fileio_read_alloc_1): Adjust.
1779 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
1780 (target_fileio_open_warn_if_slow): Delete declaration.
1781
ad80db5b
PA
17822020-05-19 Pedro Alves <palves@redhat.com>
1783
1784 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
1785 Adjust all callers.
1786
1d6ce4d3
YS
17872020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
1788
1789 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
1790 whether disp is negative.
1791
9005fbbb
SM
17922020-05-19 Simon Marchi <simon.marchi@efficios.com>
1793
1794 * symfile.h (struct symfile_segment_data)
1795 <~symfile_segment_data>: Remove.
1796 <segment_info>: Change to std::vector.
1797 * symfile.c (default_symfile_segments): Update.
1798 * elfread.c (elf_symfile_segments): Update.
1799
68b888ff
SM
18002020-05-19 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * symfile.h (struct symfile_segment_data) <struct segment>: New.
1803 <segments>: New.
1804 <segment_bases, segment_sizes>: Remove.
1805 * symfile.c (default_symfile_segments): Update.
1806 * elfread.c (elf_symfile_segments): Update.
1807 * remote.c (remote_target::get_offsets): Update.
1808 * solib-target.c (solib_target_relocate_section_addresses):
1809 Update.
1810
62982abd
SM
18112020-05-19 Simon Marchi <simon.marchi@efficios.com>
1812
1813 * symfile.h (struct symfile_segment_data): Initialize fields.
1814 <~symfile_segment_data>: Add.
1815 (symfile_segment_data_up): New.
1816 (struct sym_fns) <sym_segments>: Return a
1817 symfile_segment_data_up.
1818 (default_symfile_segments): Return a symfile_segment_data_up.
1819 (free_symfile_segment_data): Remove.
1820 (get_symfile_segment_data): Return a symfile_segment_data_up.
1821 * symfile.c (default_symfile_segments): Likewise.
1822 (get_symfile_segment_data): Likewise.
1823 (free_symfile_segment_data): Remove.
1824 (symfile_find_segment_sections): Update.
1825 * elfread.c (elf_symfile_segments): Return a
1826 symfile_segment_data_up.
1827 * remote.c (remote_target::get_offsets): Update.
1828 * solib-target.c (solib_target_relocate_section_addresses):
1829 Update.
1830 * symfile-debug.c (debug_sym_segments): Return a
1831 symfile_segment_data_up.
1832
7f204339
RO
18332020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1834
e52a0f1b
RO
1835 PR build/25981
1836 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
1837 Hardcode register numbers.
1838
7f204339
RO
1839 PR build/25981
1840 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
1841 procfs_find_LDT_entry): Remove.
1842 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
1843 procfs_find_LDT_entry): Remove.
1844 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
1845 Remove.
1846
7f32a4d5
PA
18472020-05-17 Pedro Alves <palves@redhat.com>
1848 Andrew Burgess <andrew.burgess@embecosm.com>
1849 Keno Fischer <keno@juliacomputing.com>
1850
1851 PR gdb/25741
1852 * breakpoint.c (build_target_condition_list): Update comments.
1853 (build_target_command_list): Update comments and skip matching
1854 locations.
1855 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
1856 a separate function. Simplify "set breakpoint auto-hw off"
1857 handling.
1858 (insert_breakpoints): Update comment.
1859 (tracepoint_locations_match): New parameter. For breakpoints,
1860 compare location types too, if the caller wants to.
1861 (handle_automatic_hardware_breakpoints): New functions.
1862 (bp_location_is_less_than): Also sort by location type and
1863 hardware breakpoint length.
1864 (update_global_location_list): Handle "set breakpoint auto-hw on"
1865 here.
1866 (update_breakpoint_locations): Ask breakpoint_locations_match to
1867 ignore location types.
1868
7d93a1e0
SM
18692020-05-16 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
1872 type::name instead.
1873
d0e39ea2
SM
18742020-05-16 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * gdbtypes.h (struct type) <name, set_name>: New methods.
1877 (TYPE_CODE): Use type::name. Change all call sites used to set
1878 the name to use type::set_name instead.
1879
2dab0c7b
TT
18802020-05-16 Tom Tromey <tom@tromey.com>
1881
1882 * top.c (quit_force): Update.
1883 * infrun.c (handle_no_resumed): Update.
1884 * top.h (all_uis): New function.
1885 (ALL_UIS): Remove.
1886
59f7bd8d
SM
18872020-05-16 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
1890
9bf058f0
PA
18912020-05-16 Pedro Alves <palves@redhat.com>
1892
1893 * ia64-linux-nat.c
1894 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
1895 Declare method.
1896 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
1897
8f86ae1a
SM
18982020-05-15 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
1901 (sparc64_adi_info): Likewise.
1902
d6bc0792
TT
19032020-05-15 Tom Tromey <tom@tromey.com>
1904
1905 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
1906 block_objfile.
1907 (lookup_objfile_from_block): Remove.
1908 (lookup_symbol_in_block, lookup_symbol_in_static_block)
1909 (lookup_global_symbol): Use block_objfile.
1910 * symtab.h (lookup_objfile_from_block): Don't declare.
1911 * printcmd.c (clear_dangling_display_expressions): Use
1912 block_objfile.
1913 * parse.c (operator_check_standard): Use block_objfile.
1914
8c14c3a3
TT
19152020-05-15 Tom Tromey <tom@tromey.com>
1916
1917 * language.c (language_alloc_type_symbol): Set
1918 SYMBOL_SECTION.
1919 * symtab.c (initialize_objfile_symbol): Remove.
1920 (allocate_symbol): Remove.
1921 (allocate_template_symbol): Remove.
1922 * dwarf2/read.c (fixup_go_packaging): Use "new".
1923 (new_symbol): Use "new".
1924 (read_variable): Don't call initialize_objfile_symbol. Use
1925 "new".
1926 (read_func_scope): Use "new".
1927 * xcoffread.c (process_xcoff_symbol): Don't call
1928 initialize_objfile_symbol.
1929 (SYMBOL_DUP): Remove.
1930 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
1931 "new".
1932 * symtab.h (allocate_symbol, initialize_objfile_symbol)
1933 (allocate_template_symbol): Don't declare.
1934 (struct symbol): Add copy constructor. Change defaults.
1935 * jit.c (finalize_symtab): Use "new".
1936 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
1937 Use "new".
1938 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1939 (common_block_end): Use "new".
1940 * mdebugread.c (parse_symbol): Use "new".
1941 (new_symbol): Likewise.
1942
5b4a1a8d
PW
19432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1944
1945 * NEWS: Mention changes to help and apropos.
1946
57b4f16e
PW
19472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1948
1949 * command.h (enum command_class): Improve comments, document
1950 that class_alias is for user-defined aliases, give the class
1951 name for each class, remove unused class_xdb.
1952 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
1953 * breakpoint.c (_initialize_breakpoint): Replace class_alias
1954 by a precise class.
1955 * infcmd.c (_initialize_infcmd): Likewise.
1956 * reverse.c (_initialize_reverse): Likewise.
1957 * stack.c (_initialize_stack): Likewise.
1958 * symfile.c (_initialize_symfile): Likewise.
1959 * tracepoint.c (_initialize_tracepoint): Likewise.
1960
7c05caf7
PW
19612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1962
1963 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
1964 when their aliased command is traversed.
1965 (help_cmd): Add fput_command_names_styled call to
1966 output command name and aliases when command has an alias.
1967
3b3aaacb
PW
19682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1969
1970 * cli/cli-decode.h (help_cmd_list): Remove declaration.
1971 * cli/cli-decode.c (help_cmd_list): Declare as static,
1972 remove prefix argument, use bool for recurse arg, rework to show the aliases of
1973 a command together with the command.
1974 (fput_command_name_styled, fput_command_names_styled): New functions.
1975 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
1976 fput_command_name_styled.
1977 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
1978 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
1979
7aa1b46f
PW
19802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1981
1982 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
1983 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
1984 * command.h (cmd_show_list): Likewise.
1985 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
1986 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
1987
89bcba74
PW
19882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1989
1990 * unittests/command-def-selftests.c (traverse_command_structure):
1991 Verify all commands of a list have the same prefix command and
1992 that only the top cmdlist commands have a null prefix.
1993
3f4d92eb
PW
19942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1995
1996 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
1997 as prefix, not one of its aliases.
1998 (set_cmd_prefix): Remove.
1999 (do_add_cmd): Centralize the setting of the prefix of a command, when
2000 command is defined after its full chain of prefix commands.
2001 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
2002 (add_setshow_cmd_full): Likewise.
2003 (update_prefix_field_of_prefixed_commands): New function.
2004 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
2005 update_prefix_field_of_prefixed_commands.
2006 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
2007 addresses of remote_set_cmdlist and remote_show_cmdlist given
2008 as argument, not the address of an argument.
2009 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
2010 * gdb/remote.c (_initialize_remote): Likewise.
2011
0605465f
PW
20122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2013
2014 * cli/cli-cmds.c (alias_command): Check for an existing alias
2015 using lookup_cmd_composition, as valid_command_p is too strict
2016 and forbids aliases that are the prefix of an existing alias
2017 or command.
2018 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
2019 command is properly recognised as a valid command.
2020
58e6ac70
PW
20212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2022
2023 * unittests/help-doc-selftests.c: Rename to
2024 unittests/command-def-selftests.c
2025 * unittests/command-def-selftests.c (help_doc_tests): Update some
2026 comments.
2027 (command_structure_tests, traverse_command_structure): New namespace
2028 and function.
2029 (command_structure_invariants_tests): New function.
2030 (_initialize_command_def_selftests) Renamed from
2031 _initialize_help_doc_selftests, register command_structure_invariants
2032 selftest.
2033
a7b9ceb8
PW
20342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2035
2036 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
2037 an alias of 'show'.
2038
b2188a06
JB
20392020-05-15 Joel Brobecker <brobecker@adacore.com>
2040
2041 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
2042 ada_is_fixed_point_type. Update all callers.
2043 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
2044 all callers.
2045 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
2046 Update all callers.
2047 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
2048 print_fixed_point_type. Update all callers.
2049 * ada-valprint.c (ada_value_print_num): Replace call to
2050 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
2051
a51951c2
KB
20522020-05-14 Kevin Buettner <kevinb@redhat.com>
2053
2054 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
2055 processors.
2056 (cpu_supports_bts): Add CV_AMD case.
2057
29d6859f
LM
20582020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
2059 Simon Marchi <simon.marchi@efficios.com>
2060
2061 * infrun.c (stop_all_threads): Collect multiple wait events at
2062 each pass.
2063
78134374
SM
20642020-05-14 Simon Marchi <simon.marchi@efficios.com>
2065
2066 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
2067 type::code instead.
2068
67607e24
SM
20692020-05-14 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * gdbtypes.h (struct type) <code, set_code>: New methods.
2072 (TYPE_CODE): Use type::code. Change all call sites used to set
2073 the code to use type::set_code instead.
2074
a05575d3
TBA
20752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2076 Tom de Vries <tdevries@suse.de>
2077 Pedro Alves <palves@redhat.com>
2078
2079 PR threads/25478
2080 * infrun.c (stop_all_threads): Do NOT ignore
2081 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
2082 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
2083 received.
2084 (handle_no_resumed): Remove code handling a live inferior with no
2085 threads.
2086 * remote.c (has_single_non_exited_thread): New.
2087 (remote_target::update_thread_list): Do not delete a thread if is
2088 the last thread of the process.
2089 * thread.c (thread_select): Call delete_exited_threads instead of
2090 prune_threads.
2091
6ad82919
TBA
20922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2093
2094 * infrun.c (stop_all_threads): Enable/disable thread events of all
2095 targets. Move a debug message denoting the end of the function
2096 into the SCOPED_EXIT block.
2097
d890404b
TBA
20982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2099
2100 * process-stratum-target.h: Include <set>.
2101 (all_non_exited_process_targets, switch_to_target_no_thread): New
2102 function declarations.
2103 * process-stratum-target.c (all_non_exited_process_targets)
2104 (switch_to_target_no_thread): New function implementations.
2105
293b3ebc
TBA
21062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2107
2108 * infrun.c (handle_inferior_event): Extract out a piece of code
2109 into...
2110 (mark_non_executing_threads): ...this new function.
2111
7ca9b62a
TBA
21122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113
2114 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
2115 use.
2116
fc75c28b
TBA
21172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2118
2119 * regcache.c (regcache_read_pc_protected): New function
2120 implementation that returns 0 if the PC cannot read via
2121 'regcache_read_pc'.
2122 * infrun.c (proceed): Call 'regcache_read_pc_protected'
2123 instead of 'regcache_read_pc'.
2124 (keep_going_pass_signal): Ditto.
2125
a89febbd
TT
21262020-05-13 Tom Tromey <tromey@adacore.com>
2127
2128 * ada-lang.c (align_value): Remove.
2129 (ada_template_to_fixed_record_type_1): Use align_up.
2130
f7e23710
TBA
21312020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2132
2133 * async-event.c: Update the copyright year.
2134 * async-event.h: Update the copyright year.
2135
02ff80c2
SM
21362020-05-12 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * objfiles.h (is_addr_in_objfile,
2139 shared_objfile_contains_address_p): Return bool.
2140 * objfile.c (is_addr_in_objfile,
2141 shared_objfile_contains_address_p): Return bool.
2142
4fd6c7e8
TT
21432020-05-11 Tom Tromey <tromey@adacore.com>
2144
2145 * cli/cli-cmds.c (info_command): Restore.
2146 (_initialize_cli_cmds): Use add_prefix_command for "info".
2147 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
2148
5eb68a39
TT
21492020-05-11 Tom Tromey <tromey@adacore.com>
2150
2151 * ada-lang.c (ada_value_primitive_field): Now public.
2152 * ada-lang.h (ada_value_primitive_field): Declare.
2153 * ada-valprint.c (print_field_values): Use
2154 ada_value_primitive_field for wrapper fields.
2155
7666722f
TV
21562020-05-11 Tom de Vries <tdevries@suse.de>
2157
2158 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
2159 MODULE_DOMAIN.
2160
3ee6bb11
TV
21612020-05-11 Tom de Vries <tdevries@suse.de>
2162
2163 PR symtab/25941
2164 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
2165 with length 0, if not gdb-produced.
2166 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
2167
43434996
TV
21682020-05-09 Tom de Vries <tdevries@suse.de>
2169
2170 PR gdb/25955
2171 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
2172 calculation.
2173
2f78cffc
TT
21742020-05-09 Tom Tromey <tom@tromey.com>
2175
2176 * top.c (server_command): Now bool.
2177 * top.h (server_command): Now bool.
2178
4f7bc5ed
TT
21792020-05-08 Tom Tromey <tromey@adacore.com>
2180
2181 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
2182 already being processed.
2183
8be4b118
TT
21842020-05-08 Tom Tromey <tom@tromey.com>
2185
2186 * printcmd.c (struct display) <next>: Remove.
2187 <display>: New constructor.
2188 <exp_string>: Now a std::string.
2189 <enabled_p>: Now a bool.
2190 (display_number): Move definition earlier.
2191 (displays): Rename from display_chain. Now a std::vector.
2192 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
2193 (display_command): Update.
2194 (do_one_display, disable_display)
2195 (enable_disable_display_command, do_enable_disable_display):
2196 Update.
2197 (free_display): Remove.
2198 (clear_displays): Rewrite.
2199 (delete_display): Update.
2200 (map_display_numbers): Use function_view. Remove "data"
2201 parameter. Update.
2202 (do_delete_display): Remove.
2203 (undisplay_command): Update.
2204 (do_one_display, do_displays, disable_display)
2205 (info_display_command): Update.
2206 (do_enable_disable_display): Remove.
2207 (enable_disable_display_command)
2208 (clear_dangling_display_expressions): Update.
2209
94c93c35
TT
22102020-05-08 Tom Tromey <tom@tromey.com>
2211
2212 * symtab.c (set_symbol_cache_size)
2213 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
2214 (maintenance_print_symbol_cache_statistics): Update.
2215 * symmisc.c (print_symbol_bcache_statistics)
2216 (print_objfile_statistics, maintenance_print_objfiles)
2217 (maintenance_info_symtabs, maintenance_check_symtabs)
2218 (maintenance_expand_symtabs, maintenance_info_line_tables):
2219 Update.
2220 * symfile-debug.c (set_debug_symfile): Update.
2221 * source.c (forget_cached_source_info): Update.
2222 * python/python.c (gdbpy_progspaces): Update.
2223 * psymtab.c (maintenance_info_psymtabs): Update.
2224 * probe.c (parse_probes): Update.
2225 * linespec.c (iterate_over_all_matching_symtabs)
2226 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
2227 * guile/scm-progspace.c (gdbscm_progspaces): Update.
2228 * exec.c (exec_target::close): Update.
2229 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
2230 * breakpoint.c (print_one_breakpoint_location)
2231 (create_longjmp_master_breakpoint)
2232 (create_std_terminate_master_breakpoint): Update.
2233 * progspace.c (program_spaces): Now a std::vector.
2234 (maybe_new_address_space): Update.
2235 (add_program_space): Remove.
2236 (program_space::program_space): Update.
2237 (remove_program_space): Update.
2238 (number_of_program_spaces): Remove.
2239 (print_program_space, update_address_spaces): Update.
2240 * progspace.h (program_spaces): Change type.
2241 (ALL_PSPACES): Remove.
2242 (number_of_program_spaces): Don't declare.
2243 (struct program_space) <next>: Remove.
2244
a1fd1ac9
TT
22452020-05-08 Tom Tromey <tom@tromey.com>
2246
2247 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
2248 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
2249 (enable_break): Update.
2250 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
2251 (frv_fdpic_find_canonical_descriptor): Update.
2252 (frv_fetch_objfile_link_map): Update.
2253 * progspace.c (program_space::free_all_objfiles): Update.
2254 (program_space::solibs): New method.
2255 * progspace.h (struct program_space) <solibs>: New method.
2256 * solist.h (master_so_list): Don't declare.
2257 (ALL_SO_LIBS): Remove.
2258 * solib.h (so_list_head): Remove.
2259 (update_solib_list): Update comment.
2260 * solib.c (master_so_list): Remove.
2261 (solib_used, update_solib_list, solib_add)
2262 (info_sharedlibrary_command, clear_solib)
2263 (reload_shared_libraries_1, remove_user_added_objfile): Update.
2264
38eae084
TT
22652020-05-08 Tom Tromey <tom@tromey.com>
2266
2267 * extension.c (extension_languages): Now a std::array.
2268 (ALL_EXTENSION_LANGUAGES): Remove.
2269 (get_ext_lang_defn, get_ext_lang_of_file)
2270 (eval_ext_lang_from_control_command): Update.
2271 (finish_ext_lang_initialization)
2272 (auto_load_ext_lang_scripts_for_objfile)
2273 (ext_lang_type_printers::ext_lang_type_printers)
2274 (apply_ext_lang_type_printers)
2275 (ext_lang_type_printers::~ext_lang_type_printers)
2276 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
2277 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
2278 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
2279 (get_matching_xmethod_workers, ext_lang_colorize)
2280 (ext_lang_before_prompt): Update.
2281 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
2282
596dc4ad
TT
22832020-05-08 Tom Tromey <tom@tromey.com>
2284
2285 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
2286 overload.
2287 <swap_string, m_string>: Remove.
2288 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
2289 Update.
2290 * stabsread.c (define_symbol, read_type): Update.
2291 * linespec.c (find_linespec_symbols): Update.
2292 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
2293 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
2294 * dbxread.c (read_dbx_symtab): Update.
2295 * cp-support.h (cp_canonicalize_string_full)
2296 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
2297 Return unique_xmalloc_ptr.
2298 * cp-support.c (inspect_type): Update.
2299 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
2300 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
2301 Likewise.
2302 * c-typeprint.c (print_name_maybe_canonical): Update.
2303 * break-catch-throw.c (check_status_exception_catchpoint):
2304 Update.
2305
bf4cb9be
TV
23062020-05-08 Tom de Vries <tdevries@suse.de>
2307
2308 * infrun.c (follow_fork): Copy current_line and current_symtab to
2309 child thread.
2310
a1b68f28
SM
23112020-05-07 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * async-event.c (struct async_signal_handler, struct
2314 async_event_handler): Reformat, remove typedef.
2315
98d48915
SM
23162020-05-07 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
2319 access thistype->main_type->dyn_prop_list directly.
2320
7aa91313
SM
23212020-05-07 Simon Marchi <simon.marchi@efficios.com>
2322
2323 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
2324 (remove_dyn_prop): Remove. Update all users to use
2325 type::remove_dyn_prop.
2326 * gdbtypes.c (remove_dyn_prop): Rename to...
2327 (type::remove_dyn_prop): ... this.
2328
5c54719c
SM
23292020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
2330
2331 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
2332 (add_dyn_prop): Remove. Update all users to use
2333 type::add_dyn_prop.
2334 * gdbtypes.c (add_dyn_prop): Rename to...
2335 (type::add_dyn_prop): ... this.
2336
24e99c6c
SM
23372020-05-07 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
2340 (get_dyn_prop): Remove. Update all users to use
2341 type::dyn_prop.
2342 * gdbtypes.c (get_dyn_prop): Rename to...
2343 (type::dyn_prop): ... this.
2344
0d4bf016
SM
23452020-05-06 Simon Marchi <simon.marchi@efficios.com>
2346
2347 * gdbtypes.h (struct main_type) <flag_static>: Remove.
2348
ac4a4f1c
SM
23492020-05-06 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
2352 instruction, skip it if it's there.
2353
a3bbacc1
SM
23542020-05-05 Simon Marchi <simon.marchi@efficios.com>
2355
2356 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
2357
c3236f84
SM
23582020-05-04 Simon Marchi <simon.marchi@efficios.com>
2359
2360 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
2361 * gdbtypes.c (recursive_dump_type): Remove use of
2362 TYPE_INCOMPLETE.
2363
3b6acaee
TT
23642020-05-03 Tom Tromey <tom@tromey.com>
2365
2366 * breakpoint.c (catch_command, tcatch_command): Remove.
2367 (_initialize_breakpoint): Use add_basic_prefix_cmd,
2368 add_show_prefix_cmd.
2369 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
2370 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2371 Remove.
2372 (add_internal_problem_command): Use add_basic_prefix_cmd,
2373 add_show_prefix_cmd.
2374 * mips-tdep.c (set_mipsfpu_command): Remove.
2375 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
2376 * dwarf2/index-cache.c (set_index_cache_command): Remove.
2377 (_initialize_index_cache): Use add_basic_prefix_cmd.
2378 * memattr.c (dummy_cmd): Remove.
2379 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
2380 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
2381 (_initialize_tui_win): Use add_basic_prefix_cmd,
2382 add_show_prefix_cmd.
2383 * cli/cli-logging.c (set_logging_command): Remove.
2384 (_initialize_cli_logging): Use add_basic_prefix_cmd,
2385 add_show_prefix_cmd.
2386 (show_logging_command): Remove.
2387 * target.c (target_command): Remove.
2388 (add_target): Use add_basic_prefix_cmd.
2389
a51119cd
HD
23902020-05-02 Hannes Domani <ssbssa@yahoo.de>
2391
2392 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
2393
652fc23a 23942020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 2395
652fc23a
PW
2396 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
2397 info_command.
2398
117539e6
KR
23992020-04-30 Kamil Rytarowski <n54@gmx.com>
2400
2401 * nbsd-nat.c (nbsd_enable_proc_events)
2402 (nbsd_nat_target::post_startup_inferior): Add.
2403 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
2404 (nbsd_nat_target::update_thread_list): Rewrite.
2405 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
2406 "PTRACE_LWP_CREATE".
2407 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
2408
102e38eb 24092020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 2410
102e38eb
PW
2411 * stack.c (_initialize_stack): Remove duplicated creation
2412 of "frame" command and "f" alias.
2413
ee9d1e5f
HD
24142020-04-30 Hannes Domani <ssbssa@yahoo.de>
2415
2416 PR gdb/18706
2417 * gdbtypes.c (check_typedef): Calculate size of array of
2418 stubbed type.
2419
627c7fb8
HD
24202020-04-30 Hannes Domani <ssbssa@yahoo.de>
2421
2422 PR gdb/15559
2423 * i386-tdep.c (i386_push_dummy_call): Call
2424 i386_thiscall_push_dummy_call.
2425 (i386_thiscall_push_dummy_call): New function.
2426 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
2427 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
2428 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
2429
ffc2844e
SM
24302020-04-29 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * gdbarch.sh (do_read): Add shellcheck disable directive for
2433 warning SC2162.
2434
1207375d
SM
24352020-04-29 Simon Marchi <simon.marchi@efficios.com>
2436
2437 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
2438 "referenced but not assigned" warning.
2439
9fdb2916
SM
24402020-04-29 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * gdbarch.sh: Remove code that sets fallbackdefault.
2443
759cea5e
SM
24442020-04-29 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * gdbarch.sh: Use shell operators && and || instead of
2447 -a and -o.
2448
cb02ab24
SM
24492020-04-29 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * gdbarch.sh: Use $(...) instead of `...`.
2452
a6fc5ffc
SM
24532020-04-29 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * gdbarch.sh: Use double quotes around variables.
2456
8d113d13
SM
24572020-04-29 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * gdbarch.sh: Use %s with printf, instead of variables in the
2460 format string.
2461
ed6acedd
TT
24622020-04-29 Tom Tromey <tromey@adacore.com>
2463
2464 PR ada/25875:
2465 * dwarf2/read.c (update_enumeration_type_from_children): Compute
2466 type fields here.
2467 (read_enumeration_type): Call
2468 update_enumeration_type_from_children later. Update comments.
2469 (process_enumeration_scope): Don't create type fields.
2470
b68b1b58
KR
24712020-04-29 Kamil Rytarowski <n54@gmx.com>
2472
2473 * nbsd-tdep.c: Include "xml-syscall.h".
2474 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
2475
f94b2e03
KR
24762020-04-29 Kamil Rytarowski <n54@gmx.com>
2477
2478 * nbsd-nat.c: Include "sys/wait.h".
2479 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
2480 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
2481 (nbsd_nat_target::remove_exec_catchpoint)
2482 (nbsd_nat_target::set_syscall_catchpoint): Add.
2483 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
2484 (nbsd_nat_target::insert_exec_catchpoint)
2485 (nbsd_nat_target::remove_exec_catchpoint)
2486 (nbsd_nat_target::set_syscall_catchpoint): Add.
2487 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
2488 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
2489 `nbsd_get_syscall_number'.
2490
fc49bc72
TT
24912020-04-29 Tom Tromey <tom@tromey.com>
2492
2493 * stack.c (print_block_frame_labels): Remove.
2494
d642b692
HD
24952020-04-29 Hannes Domani <ssbssa@yahoo.de>
2496
2497 PR gdb/17320
2498 * ada-valprint.c (val_print_packed_array_elements): Move array
2499 end bracket to new line.
2500 (ada_val_print_string): Remove extra spaces before first array
2501 element.
2502 * c-valprint.c (c_value_print_array): Likewise.
2503 * m2-valprint.c (m2_print_array_contents): Likewise.
2504 (m2_value_print_inner): Likewise.
2505 * p-valprint.c (pascal_value_print_inner): Likewise.
2506 * valprint.c (generic_val_print_array): Likewise.
2507 (value_print_array_elements): Move first array element and array
2508 end bracket to new line.
2509
ea90f227
TV
25102020-04-29 Tom de Vries <tdevries@suse.de>
2511
2512 PR symtab/25889
2513 * linespec.c (find_method): Fix ix calculation.
2514
4498ef4f
KR
25152020-04-28 Kamil Rytarowski <n54@gmx.com>
2516
2517 * syscalls/update-netbsd.sh: New file.
2518 * syscalls/netbsd.xml: Regenerate.
2519 * data-directory/Makefile.in: Register `netbsd.xml' in
2520 `SYSCALLS_FILES'.
2521
a55e30b5
SM
25222020-04-28 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * syscalls/update-freebsd.sh: Add double quotes.
2525
2b2fbab8
TT
25262020-04-28 Tom Tromey <tom@tromey.com>
2527
2528 * NEWS: Update.
2529 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
2530 (cmdpy_init): Allow class_tui.
2531
a65189c9
TV
25322020-04-28 Mark Williams <mark@myosotissp.com>
2533
2534 PR gdb/24480
2535 * dwarf2read.c: Add missing assingments to list_in_scope when
2536 start_symtab was already called.
2537
1b95cdb7
SM
25382020-04-28 Simon Marchi <simon.marchi@efficios.com>
2539
2540 PR gdb/25881
2541 * dwarf2/read.c (offset_map_type): Use
2542 gdb:hash_enum<sect_offset> as hash function.
2543
15cd93d0
TV
25442020-04-28 Tom de Vries <tdevries@suse.de>
2545
2546 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
2547 with DW_AT_signature.
2548
1eb39914
SM
25492020-04-27 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * configure.ac: Remove check for fs_base/gs_base in
2552 user_regs_struct.
2553 * configure: Re-generate.
2554 * config.in: Re-generate.
2555 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
2556 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
2557 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
2558
991a3e2e
LM
25592020-04-27 Luis Machado <luis.machado@linaro.org>
2560
2561 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
2562 problematic inline frame unwinding situation.
2563 * frame.c (frame_id_computed_p): New function.
2564 * frame.h (frame_id_computed_p): New prototype.
2565
361ba0e8
TT
25662020-04-26 Tom Tromey <tom@tromey.com>
2567
2568 * command.h (enum command_class) <class_pseudo>: Remove.
2569
bc3609fd
PW
25702020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2571
2572 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
2573 and whitespace.
2574
b9771db7
KR
25752020-04-25 Kamil Rytarowski <n54@gmx.com>
2576
ec16513e
SM
2577 * inf-ptrace.c (inf_ptrace_target::wait): Remove
2578 `PT_GET_PROCESS_STATE' block.
b9771db7 2579
7151c1af
TT
25802020-04-24 Tom Tromey <tom@tromey.com>
2581
2582 * symtab.h (symbol_get_demangled_name): Don't declare.
2583 * symtab.c (symbol_get_demangled_name): Remove.
2584 (general_symbol_info::natural_name)
2585 (general_symbol_info::demangled_name): Update.
2586
906bb4c5
TT
25872020-04-24 Tom Tromey <tom@tromey.com>
2588
2589 PR rust/25025:
2590 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
2591
bcfe6157
TT
25922020-04-24 Tom Tromey <tom@tromey.com>
2593
2594 PR symtab/12707:
2595 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
2596 exists.
2597 (new_symbol): Likewise.
2598 * compile/compile-object-load.c (get_out_value_type): Use
2599 symbol_matches_search_name.
2600
f049a313
TT
26012020-04-24 Tom Tromey <tom@tromey.com>
2602
2603 * dwarf2/read.c (add_partial_symbol): Do not call
2604 compute_and_set_names.
2605
76e288d1
TT
26062020-04-24 Tom Tromey <tom@tromey.com>
2607
2608 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
2609 overload.
2610
2467f4f6
TT
26112020-04-24 Tom Tromey <tom@tromey.com>
2612
2613 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
2614 (add_psymbol_to_list): New overload. Make old overload call new
2615 one.
2616 * psympriv.h (add_psymbol_to_list): New overload.
2617
e61108c9
TT
26182020-04-24 Tom Tromey <tom@tromey.com>
2619
2620 * dwarf2/read.c (partial_die_info::read) <case
2621 DW_AT_linkage_name>: Use value_as_string.
2622 (dwarf2_string_attr): Use value_as_string.
2623 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2624 method.
2625 * dwarf2/attribute.c (attribute::value_as_string): New method.
2626
8c87a452
TT
26272020-04-24 Tom Tromey <tom@tromey.com>
2628
2629 * symtab.c (general_symbol_info::natural_name)
2630 (general_symbol_info::demangled_name): Check for language_rust.
2631
787de330
TT
26322020-04-24 Tom Tromey <tom@tromey.com>
2633
2634 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
2635 (dwarf2_physname): ... from here.
2636 (partial_die_info::read): Add Rust "{" hack.
2637
ff985671
TT
26382020-04-24 Tom Tromey <tom@tromey.com>
2639
2640 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
2641 method.
2642 (symbol_set_demangled_name): Don't declare.
2643 * symtab.c (general_symbol_info::set_demangled_name): Rename from
2644 symbol_set_demangled_name.
2645 (general_symbol_info::set_language)
2646 (general_symbol_info::compute_and_set_names): Update.
2647 * minsyms.c (minimal_symbol_reader::install): Update.
2648 * dwarf2/read.c (new_symbol): Update.
2649
1acda803
TT
26502020-04-24 Tom Tromey <tromey@adacore.com>
2651
2652 PR python/23662:
2653 * python/py-type.c (convert_field): Handle
2654 FIELD_LOC_KIND_DWARF_BLOCK.
2655 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
2656 (typy_get_dynamic): Nw function.
2657 (type_object_getset): Add "dynamic".
2658 * NEWS: Add entry.
2659
d656f129
TT
26602020-04-24 Tom Tromey <tromey@adacore.com>
2661
2662 * ada-typeprint.c (print_choices, print_variant_part)
2663 (print_record_field_types_dynamic): New functions.
2664 (print_record_field_types): Use print_record_field_types_dynamic.
2665
7d79de9a
TT
26662020-04-24 Tom Tromey <tromey@adacore.com>
2667
2668 * dwarf2/read.c (handle_data_member_location): New overload.
2669 (dwarf2_add_field): Use it.
2670 (decode_locdesc): Add "computed" parameter. Update comment.
2671 * gdbtypes.c (is_dynamic_type_internal): Also look for
2672 FIELD_LOC_KIND_DWARF_BLOCK.
2673 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
2674 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
2675 virtual base classes.
2676 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
2677 FIELD_LOC_KIND_DWARF_BLOCK.
2678
f8e89861
TT
26792020-04-24 Tom Tromey <tromey@adacore.com>
2680
2681 * dwarf2/read.c (read_structure_type): Handle dynamic length.
2682 * gdbtypes.c (is_dynamic_type_internal): Check
2683 TYPE_HAS_DYNAMIC_LENGTH.
2684 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
2685 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
2686 New macros.
2687 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
2688 constant.
2689
9c6a1327
TT
26902020-04-24 Tom Tromey <tromey@adacore.com>
2691
2692 * dwarf2/read.c (struct variant_field): Rewrite.
2693 (struct variant_part_builder): New.
2694 (struct nextfield): Remove "variant" field. Add "offset".
2695 (struct field_info): Add "current_variant_part" and
2696 "variant_parts".
2697 (alloc_discriminant_info): Remove.
2698 (alloc_rust_variant): New function.
2699 (quirk_rust_enum): Update.
2700 (dwarf2_add_field): Set "offset" member. Don't handle
2701 DW_TAG_variant_part.
2702 (offset_map_type): New typedef.
2703 (convert_variant_range, create_one_variant)
2704 (create_one_variant_part, create_variant_parts)
2705 (add_variant_property): New functions.
2706 (dwarf2_attach_fields_to_type): Call add_variant_property.
2707 (read_structure_type): Don't handle DW_TAG_variant_part.
2708 (handle_variant_part, handle_variant): New functions.
2709 (handle_struct_member_die): Use them.
2710 (process_structure_scope): Don't handle variant parts.
2711 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
2712 (struct discriminant_info): Remove.
2713 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
2714 (struct main_type) <flag_discriminated_union>: Remove.
2715 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
2716 (rust_enum_variant): Return int. Remove "contents". Rewrite.
2717 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
2718 Update.
2719 * valops.c (value_union_variant): Remove.
2720 * value.h (value_union_variant): Don't declare.
2721
b249d2c2
TT
27222020-04-24 Tom Tromey <tromey@adacore.com>
2723
2724 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
2725 (ada_value_primitive_packed_val): Update.
2726 * ada-valprint.c (ada_value_print_1): Update.
2727 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
2728 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
2729 just an address. Use evaluate_for_locexpr_baton.
2730 (dwarf2_evaluate_property): Update.
2731 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
2732 array_view.
2733 * findvar.c (default_read_var_value): Update.
2734 * gdbtypes.c (compute_variant_fields_inner)
2735 (resolve_dynamic_type_internal): Update.
2736 (resolve_dynamic_type): Change type of valaddr parameter.
2737 * gdbtypes.h (resolve_dynamic_type): Update.
2738 * valarith.c (value_subscripted_rvalue): Update.
2739 * value.c (value_from_contents_and_address): Update.
2740
61122aa9
TT
27412020-04-24 Tom Tromey <tromey@adacore.com>
2742
2743 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
2744 "push_initial_value" parameter.
2745 (dwarf2_evaluate_property): Likewise.
2746 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
2747
ef83a141
TT
27482020-04-24 Tom Tromey <tromey@adacore.com>
2749
2750 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
2751 (variant::matches, compute_variant_fields_recurse)
2752 (compute_variant_fields_inner, compute_variant_fields): New
2753 functions.
2754 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
2755 Use resolved_type after type is made.
2756 (operator==): Add new cases.
2757 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
2758 (struct discriminant_range, struct variant, struct variant_part):
2759 New.
2760 (union dynamic_prop_data) <variant_parts, original_type>: New
2761 members.
2762 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
2763 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
2764 constants.
2765 * value.c (unpack_bits_as_long): Now public.
2766 * value.h (unpack_bits_as_long): Declare.
2767
675127ec
TT
27682020-04-24 Tom Tromey <tromey@adacore.com>
2769
2770 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
2771 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
2772
9852ceef
HD
27732020-04-24 Hannes Domani <ssbssa@yahoo.de>
2774
2775 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
2776
7632c6ce
KR
27772020-04-24 Kamil Rytarowski <n54@gmx.com>
2778
2779 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
2780 (remove_fork_catchpoint, post_startup_inferior)
2781 (post_attach): Move...
2782 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
2783 (remove_fork_catchpoint, post_startup_inferior)
2784 (post_attach): ...here.
2785 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
2786 (remove_fork_catchpoint, post_startup_inferior)
2787 (post_attach): Move...
2788 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
2789 (remove_fork_catchpoint, post_startup_inferior)
2790 (post_attach): ...here.
2791
7be2bb4f
TT
27922020-04-24 Tom Tromey <tromey@adacore.com>
2793
2794 * nat/windows-nat.h (struct windows_thread_info)
2795 <pc_adjusted>: New member.
2796 * windows-nat.c (windows_fetch_one_register): Check
2797 pc_adjusted.
2798 (windows_nat_target::get_windows_debug_event)
2799 (windows_nat_target::wait): Set pc_adjusted.
2800
f80cb3b4
TV
28012020-04-24 Tom de Vries <tdevries@suse.de>
2802
2803 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
2804 Run gdb-add-index inside temp dir.
2805
29514b87
TT
28062020-04-23 Tom Tromey <tromey@adacore.com>
2807
2808 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
2809 in loop.
2810
5939967b
LM
28112020-04-23 Luis Machado <luis.machado@linaro.org>
2812
2813 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2814 get_frame_register instead of gdbarch_unwind_pc.
2815
70bc38f5
TV
28162020-04-23 Tom de Vries <tdevries@suse.de>
2817
2818 * symtab.c (lookup_global_symbol): Prefer def over decl.
2819
de82891c
TV
28202020-04-23 Tom de Vries <tdevries@suse.de>
2821
2822 PR symtab/25807
2823 * block.c (best_symbol, better_symbol): Promote to external.
2824 * block.h (best_symbol, better_symbol): Declare.
2825 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
2826 decl.
2827
ecc6c606
TT
28282020-04-23 Tom Tromey <tromey@adacore.com>
2829
2830 PR ada/25837:
2831 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
2832 "const char *", not a "const std::string &".
2833 <name_and_matcher::operator==>: Update.
2834 * unittests/lookup_name_info-selftests.c: Change type of
2835 "result".
2836
740480b8
TT
28372020-04-23 Tom Tromey <tom@tromey.com>
2838
2839 * inferior.h (iterate_over_inferiors): Don't declare.
2840 * inferior.c (iterate_over_inferiors): Remove.
2841 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
2842 Remove.
2843 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
2844 use iterate_over_inferiors.
2845 (darwin_resume_inferior_it)
2846 (struct resume_inferior_threads_param)
2847 (darwin_resume_inferior_threads_it): Remove.
2848 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
2849
ae3ab1f0
TV
28502020-04-23 Tom de Vries <tdevries@suse.de>
2851
2852 * blockframe.c (find_pc_partial_function): Use
2853 find_pc_sect_compunit_symtab rather than
2854 objfile->sf->qf->find_pc_sect_compunit_symtab.
2855
317d2668
TV
28562020-04-22 Tom de Vries <tdevries@suse.de>
2857
2858 PR symtab/25764
2859 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
2860 in psymtabs.
2861
eea9e357
TV
28622020-04-22 Tom de Vries <tdevries@suse.de>
2863
2864 PR symtab/25801
2865 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
2866 symtabs.
2867
3d5afab3
TV
28682020-04-22 Tom de Vries <tdevries@suse.de>
2869
2870 PR symtab/25700
2871 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
2872 CU if already created.
2873
d43b7a2d
TBA
28742020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2875
2876 * infrun.c (displaced_step_fixup): Switch to the event_thread
2877 before calling displaced_step_restore, not after.
2878
d89edf9b
MM
28792020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2880
2881 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
2882 its inferior is not recorded by us.
2883 (record_btrace_target_open): Replace call to
2884 all_non_exited_threads () with call to current_inferior
2885 ()->non_exited_threads ().
2886 (record_btrace_target::stop_recording): Likewise.
2887 (record_btrace_target::close): Likewise.
2888 (record_btrace_target::wait): Likewise.
2889 (record_btrace_target::record_stop_replaying): Likewise.
2890
5897fd49
MM
28912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2892
2893 * btrace.c (btrace_enable): Throw an error on double enables and
2894 when enabling recording fails.
2895 (btrace_disable): Throw an error if the thread is not recorded.
2896
1a476b6d
MM
28972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2898
2899 * record-btrace.c (record_btrace_target::fetch_registers): Forward
2900 request if we do not have a thread_info.
2901
4778a5f8
TV
29022020-04-21 Tom de Vries <tdevries@suse.de>
2903
2904 PR gdb/25471
2905 * thread.c
2906 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
2907 exception in get_frame_id.
2908
0fa7617d
TT
29092020-04-20 Tom Tromey <tromey@adacore.com>
2910
2911 * python/python.c (struct gdbpy_event): Mark move constructor as
2912 noexcept.
2913 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
2914 constructor as noexcept.
2915 * completer.h (struct completion_result): Mark move constructor as
2916 noexcept.
2917 * completer.c (completion_result::completion_result): Use
2918 initialization style. Don't call reset_match_list.
2919
ad23bda0
MS
29202020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
2921
2922 * MAINTAINERS (Write After Approval): Add myself.
2923
45e1f031
TT
29242020-04-18 Tom Tromey <tom@tromey.com>
2925
2926 * windows-tdep.c (init_w32_command_list)
2927 (w32_prefix_command_valid): Restore.
2928 (_initialize_windows_tdep): Call init_w32_command_list.
2929
08feed99
TT
29302020-04-18 Tom Tromey <tom@tromey.com>
2931
2932 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
2933 * value.c (value_fn_field): Update.
2934 * valops.c (find_function_in_inferior)
2935 (value_allocate_space_in_inferior): Update.
2936 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2937 Update.
2938 * tui/tui-source.c (tui_source_window::set_contents): Update.
2939 * symtab.c (lookup_global_or_static_symbol)
2940 (find_function_start_sal_1, skip_prologue_sal)
2941 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
2942 * symmisc.c (dump_msymbols, dump_symtab_1)
2943 (maintenance_print_one_line_table): Update.
2944 * symfile.c (init_entry_point_info, section_is_mapped)
2945 (list_overlays_command, simple_read_overlay_table)
2946 (simple_overlay_update_1): Update.
2947 * stap-probe.c (handle_stap_probe): Update.
2948 * stabsread.c (dbx_init_float_type, define_symbol)
2949 (read_one_struct_field, read_enum_type, read_range_type): Update.
2950 * source.c (info_line_command): Update.
2951 * python/python.c (gdbpy_source_objfile_script)
2952 (gdbpy_execute_objfile_script): Update.
2953 * python/py-type.c (save_objfile_types): Update.
2954 * python/py-objfile.c (py_free_objfile): Update.
2955 * python/py-inferior.c (python_new_objfile): Update.
2956 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
2957 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
2958 (maintenance_check_psymtabs): Update.
2959 * printcmd.c (info_address_command): Update.
2960 * objfiles.h (struct objfile) <arch>: New method, from
2961 get_objfile_arch.
2962 (get_objfile_arch): Don't declare.
2963 * objfiles.c (get_objfile_arch): Remove.
2964 (filter_overlapping_sections): Update.
2965 * minsyms.c (msymbol_is_function): Update.
2966 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
2967 (output_nondebug_symbol): Update.
2968 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
2969 (mdebug_expand_psymtab): Update.
2970 * machoread.c (macho_add_oso_symfile): Update.
2971 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
2972 Update.
2973 * linux-fork.c (checkpoint_command): Update.
2974 * linespec.c (convert_linespec_to_sals): Update.
2975 * jit.c (finalize_symtab): Update.
2976 * infrun.c (insert_exception_resume_from_probe): Update.
2977 * ia64-tdep.c (ia64_find_unwind_table): Update.
2978 * hppa-tdep.c (internalize_unwinds): Update.
2979 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
2980 Update.
2981 * gcore.c (call_target_sbrk): Update.
2982 * elfread.c (record_minimal_symbol, elf_symtab_read)
2983 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2984 (elf_gnu_ifunc_resolve_by_got): Update.
2985 * dwarf2/read.c (create_addrmap_from_index)
2986 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2987 (read_debug_names_from_section)
2988 (process_psymtab_comp_unit_reader, add_partial_symbol)
2989 (add_partial_subprogram, process_full_comp_unit)
2990 (read_file_scope, read_func_scope, read_lexical_block_scope)
2991 (read_call_site_scope, dwarf2_ranges_read)
2992 (dwarf2_record_block_ranges, dwarf2_add_field)
2993 (mark_common_block_symbol_computed, read_tag_pointer_type)
2994 (read_tag_string_type, dwarf2_init_float_type)
2995 (dwarf2_init_complex_target_type, read_base_type)
2996 (partial_die_info::read, partial_die_info::read)
2997 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
2998 (dwarf2_fetch_die_loc_sect_off): Update.
2999 * dwarf2/loc.c (dwarf2_find_location_expression)
3000 (class dwarf_evaluate_loc_desc, rw_pieced_value)
3001 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
3002 (dwarf2_loc_desc_get_symbol_read_needs)
3003 (locexpr_describe_location_piece, locexpr_describe_location_1)
3004 (loclist_describe_location): Update.
3005 * dwarf2/index-write.c (write_debug_names): Update.
3006 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
3007 * dtrace-probe.c (dtrace_process_dof): Update.
3008 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
3009 (process_one_symbol): Update.
3010 * ctfread.c (ctf_init_float_type, read_base_type): Update.
3011 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
3012 (coff_read_enum_type): Update.
3013 * cli/cli-cmds.c (edit_command, list_command): Update.
3014 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
3015 * breakpoint.c (create_overlay_event_breakpoint)
3016 (create_longjmp_master_breakpoint)
3017 (create_std_terminate_master_breakpoint)
3018 (create_exception_master_breakpoint, get_sal_arch): Update.
3019 * block.c (block_gdbarch): Update.
3020 * annotate.c (annotate_source_line): Update.
3021
0743fc83
TT
30222020-04-17 Tom Tromey <tromey@adacore.com>
3023
3024 * auto-load.c (show_auto_load_cmd): Remove.
3025 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
3026 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
3027 (maintenance_print_arc_command): Remove.
3028 * tui/tui-win.c (tui_command): Remove.
3029 (tui_get_cmd_list): Use add_basic_prefix_cmd.
3030 * tui/tui-layout.c (tui_layout_command): Remove.
3031 (_initialize_tui_layout): Use add_basic_prefix_cmd.
3032 * python/python.c (user_set_python, user_show_python): Remove.
3033 (_initialize_python): Use add_basic_prefix_cmd,
3034 add_show_prefix_cmd.
3035 * guile/guile.c (set_guile_command, show_guile_command): Remove.
3036 (install_gdb_commands): Use add_basic_prefix_cmd,
3037 add_show_prefix_cmd.
3038 (info_guile_command): Remove.
3039 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
3040 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
3041 add_show_prefix_cmd.
3042 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
3043 Remove do_set and do_show parameters.
3044 * cli/cli-style.c (set_style, show_style): Remove.
3045 (_initialize_cli_style): Use add_basic_prefix_cmd,
3046 add_show_prefix_cmd.
3047 (cli_style_option::add_setshow_commands): Remove do_set and
3048 do_show parameters.
3049 (cli_style_option::add_setshow_commands): Use
3050 add_basic_prefix_cmd, add_show_prefix_cmd.
3051 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
3052 (set_style_name): Remove.
3053 * cli/cli-dump.c (dump_command, append_command): Remove.
3054 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3055 (tekhex_dump_command, binary_dump_command)
3056 (binary_append_command): Remove.
3057 (_initialize_cli_dump): Use add_basic_prefix_cmd.
3058 * windows-tdep.c (w32_prefix_command_valid): Remove global.
3059 (init_w32_command_list): Remove; move into ...
3060 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
3061 * valprint.c (set_print, show_print, set_print_raw)
3062 (show_print_raw): Remove.
3063 (_initialize_valprint): Use add_basic_prefix_cmd,
3064 add_show_prefix_cmd.
3065 * typeprint.c (set_print_type, show_print_type): Remove.
3066 (_initialize_typeprint): Use add_basic_prefix_cmd,
3067 add_show_prefix_cmd.
3068 * record.c (set_record_command, show_record_command): Remove.
3069 (_initialize_record): Use add_basic_prefix_cmd,
3070 add_show_prefix_cmd.
3071 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
3072 add_show_prefix_cmd.
3073 (info_command, show_command, set_debug, show_debug): Remove.
3074 * top.h (set_history, show_history): Don't declare.
3075 * top.c (set_history, show_history): Remove.
3076 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3077 (unset_tdesc_cmd): Remove.
3078 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
3079 add_show_prefix_cmd.
3080 * symtab.c (info_module_command): Remove.
3081 (_initialize_symtab): Use add_basic_prefix_cmd.
3082 * symfile.c (overlay_command): Remove.
3083 (_initialize_symfile): Use add_basic_prefix_cmd.
3084 * sparc64-tdep.c (info_adi_command): Remove.
3085 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
3086 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
3087 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
3088 add_show_prefix_cmd.
3089 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
3090 (_initialize_serial): Use add_basic_prefix_cmd,
3091 add_show_prefix_cmd.
3092 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
3093 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
3094 add_show_prefix_cmd.
3095 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
3096 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
3097 add_show_prefix_cmd.
3098 * riscv-tdep.c (show_riscv_command, set_riscv_command)
3099 (show_debug_riscv_command, set_debug_riscv_command): Remove.
3100 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
3101 add_show_prefix_cmd.
3102 * remote.c (remote_command, set_remote_cmd): Remove.
3103 (_initialize_remote): Use add_basic_prefix_cmd.
3104 * record-full.c (set_record_full_command)
3105 (show_record_full_command): Remove.
3106 (_initialize_record_full): Use add_basic_prefix_cmd,
3107 add_show_prefix_cmd.
3108 * record-btrace.c (cmd_set_record_btrace)
3109 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
3110 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
3111 (cmd_show_record_btrace_pt): Remove.
3112 (_initialize_record_btrace): Use add_basic_prefix_cmd,
3113 add_show_prefix_cmd.
3114 * ravenscar-thread.c (set_ravenscar_command)
3115 (show_ravenscar_command): Remove.
3116 (_initialize_ravenscar): Use add_basic_prefix_cmd,
3117 add_show_prefix_cmd.
3118 * mips-tdep.c (show_mips_command, set_mips_command)
3119 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
3120 add_show_prefix_cmd.
3121 * maint.c (maintenance_command, maintenance_info_command)
3122 (maintenance_check_command, maintenance_print_command)
3123 (maintenance_set_cmd, maintenance_show_cmd): Remove.
3124 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
3125 add_show_prefix_cmd.
3126 (show_per_command_cmd): Remove.
3127 * maint-test-settings.c (maintenance_set_test_settings_cmd):
3128 Remove.
3129 (maintenance_show_test_settings_cmd): Remove.
3130 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
3131 add_show_prefix_cmd.
3132 * maint-test-options.c (maintenance_test_options_command):
3133 Remove.
3134 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
3135 * macrocmd.c (macro_command): Remove
3136 (_initialize_macrocmd): Use add_basic_prefix_cmd.
3137 * language.c (set_check, show_check): Remove.
3138 (_initialize_language): Use add_basic_prefix_cmd,
3139 add_show_prefix_cmd.
3140 * infcmd.c (unset_command): Remove.
3141 (_initialize_infcmd): Use add_basic_prefix_cmd.
3142 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
3143 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
3144 add_show_prefix_cmd.
3145 * go32-nat.c (go32_info_dos_command): Remove.
3146 (_initialize_go32_nat): Use add_basic_prefix_cmd.
3147 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
3148 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
3149 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
3150 (_initialize_frame): Use add_basic_prefix_cmd,
3151 add_show_prefix_cmd.
3152 * dcache.c (set_dcache_command, show_dcache_command): Remove.
3153 (_initialize_dcache): Use add_basic_prefix_cmd,
3154 add_show_prefix_cmd.
3155 * cp-support.c (maint_cplus_command): Remove.
3156 (_initialize_cp_support): Use add_basic_prefix_cmd.
3157 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3158 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3159 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
3160 add_basic_prefix_cmd, add_show_prefix_cmd.
3161 * breakpoint.c (save_command): Remove.
3162 (_initialize_breakpoint): Use add_basic_prefix_cmd.
3163 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
3164 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
3165 add_show_prefix_cmd.
3166 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
3167 (set_ada_command, show_ada_command): Remove.
3168 (_initialize_ada_language): Use add_basic_prefix_cmd,
3169 add_show_prefix_cmd.
3170 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
3171
3557f442
KR
31722020-04-16 Kamil Rytarowski <n54@gmx.com>
3173
3174 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
3175 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
3176
16197208
SM
31772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3178
3179 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
3180 warning messages.
3181
00ac85d3
SM
31822020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3183
3184 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
3185 import table is not at beginning of .idata section.
3186
381ce63f
PA
31872020-04-16 Pedro Alves <palves@redhat.com>
3188
3189 * inferior.c (delete_inferior): Use delete operator directly
3190 instead of delete_program_space.
3191 * progspace.c (add_program_space): New, factored out from
3192 program_space::program_space.
3193 (remove_program_space): New, factored out from
3194 delete_program_space.
3195 (program_space::program_space): Remove intro comment. Rewrite.
3196 (program_space::~program_space): Remove intro comment. Call
3197 remove_program_space.
3198 (delete_program_space): Delete.
3199 * progspace.h (program_space::program_space): Make explicit. Move
3200 intro comment here, adjusted.
3201 (program_space::~program_space): Move intro comment here,
3202 adjusted.
3203 (delete_program_space): Remove.
3204
a010605f
TT
32052020-04-16 Tom Tromey <tromey@adacore.com>
3206
3207 * windows-nat.c (windows_nat::handle_access_violation): New
3208 function.
3209 * nat/windows-nat.h (handle_access_violation): Declare.
3210 * nat/windows-nat.c (handle_exception): Move Cygwin code to
3211 windows-nat.c. Call handle_access_violation.
3212
efba5c23
TV
32132020-04-16 Tom de Vries <tdevries@suse.de>
3214
3215 PR symtab/25791
3216 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
3217 CUs without psymtab.
3218
97ed802d
KB
32192020-04-16 Kevin Buettner <kevinb@redhat.com>
3220
3221 * python/python.c (do_start_initialization): Don't call
3222 PyEval_InitThreads for Python 3.9 and beyond.
3223
c7d64809
KR
32242020-04-15 Kamil Rytarowski <n54@gmx.com>
3225
3226 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
3227 thread functions.
3228 (obsd_nat_target::wait): Likewise.
3229
ce127a96
TT
32302020-04-15 Tom Tromey <tromey@adacore.com>
3231
3232 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3233 (DEBUG_EXCEPT): Use debug_printf.
3234
99f1bc6a
AB
32352020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * completer.c (class completion_tracker::completion_hash_entry)
3238 <hash_name>: New member function.
3239 (completion_tracker::discard_completions): New callback to hash a
3240 completion_hash_entry, pass this to htab_create_alloc.
3241
a0e9b532
JT
32422016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
3243
3244 * windows-nat.c (windows_make_so): Warn rather than stopping with
3245 an error if realpath() fails.
3246
06ca5dd4
KR
32472020-04-14 Kamil Rytarowski <n54@gmx.com>
3248
3249 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
3250 (nbsd_nat_target::info_proc): Add do_status.
3251
194d088f
TV
32522020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
3253 Tom de Vries <tdevries@suse.de>
3254
3255 PR symtab/25718
3256 * psympriv.h (struct partial_symtab::read_symtab)
3257 (struct partial_symtab::expand_psymtab)
3258 (struct partial_symtab::read_dependencies): Update comments.
3259 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
3260 read_symtab for includer.
3261 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
3262 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
3263 (struct dwarf2_include_psymtab::m_readin): Remove.
3264 (struct dwarf2_include_psymtab::includer): New member function.
3265 (dwarf2_psymtab::expand_psymtab): Assert !readin.
3266
c1a66c06
TV
32672020-04-14 Tom de Vries <tdevries@suse.de>
3268
3269 PR symtab/25720
3270 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
3271 with NULL symbol_matcher and lookup_name.
3272 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
3273 and lookup_name.
3274 * dwarf2/read.c (dw2_expand_symtabs_matching)
3275 (dw2_debug_names_expand_symtabs_matching): Same.
3276 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
3277 Make lookup_name a pointer. Update comment.
3278 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
3279 lookup_name being a pointer.
3280 * symfile.c (expand_symtabs_matching): Same.
3281 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
3282 * linespec.c (iterate_over_all_matching_symtabs): Same.
3283
400b5eca
TT
32842020-04-13 Tom Tromey <tom@tromey.com>
3285
3286 * run-on-main-thread.c: Update include.
3287 * unittests/main-thread-selftests.c: Update include.
3288 * tui/tui-win.c: Update include.
3289 * tui/tui-io.c: Update include.
3290 * tui/tui-interp.c: Update include.
3291 * tui/tui-hooks.c: Update include.
3292 * top.h: Update include.
3293 * top.c: Update include.
3294 * ser-base.c: Update include.
3295 * remote.c: Update include.
3296 * remote-notif.c: Update include.
3297 * remote-fileio.c: Update include.
3298 * record-full.c: Update include.
3299 * record-btrace.c: Update include.
3300 * python/python.c: Update include.
3301 * posix-hdep.c: Update include.
3302 * mingw-hdep.c: Update include.
3303 * mi/mi-main.c: Update include.
3304 * mi/mi-interp.c: Update include.
3305 * main.c: Update include.
3306 * linux-nat.c: Update include.
3307 * interps.c: Update include.
3308 * infrun.c: Update include.
3309 * inf-loop.c: Update include.
3310 * event-top.c: Update include.
3311 * event-loop.c: Move to ../gdbsupport/.
3312 * event-loop.h: Move to ../gdbsupport/.
3313 * async-event.h: Update include.
3314 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
3315
93b54c8e
TT
33162020-04-13 Tom Tromey <tom@tromey.com>
3317
3318 * tui/tui-win.c: Include async-event.h.
3319 * remote.c: Include async-event.h.
3320 * remote-notif.c: Include async-event.h.
3321 * record-full.c: Include async-event.h.
3322 * record-btrace.c: Include async-event.h.
3323 * infrun.c: Include async-event.h.
3324 * event-top.c: Include async-event.h.
3325 * event-loop.h: Move some declarations to async-event.h.
3326 * event-loop.c: Don't include ser-event.h or top.h. Move some
3327 code to async-event.c.
3328 * async-event.h: New file.
3329 * async-event.c: New file.
3330 * Makefile.in (COMMON_SFILES): Add async-event.c.
3331 (HFILES_NO_SRCDIR): Add async-event.h.
3332
c1cd3163
TT
33332020-04-13 Tom Tromey <tom@tromey.com>
3334
3335 * utils.c (flush_streams): New function.
3336 * event-loop.c (gdb_wait_for_event): Call flush_streams.
3337
29f2bf4f
TT
33382020-04-13 Tom Tromey <tom@tromey.com>
3339
3340 * event-loop.c (handle_file_event): Use warning, not
3341 printf_unfiltered.
3342
98029d02
TT
33432020-04-13 Tom Tromey <tom@tromey.com>
3344
3345 * event-loop.c: Include <chrono>.
3346
06cc9596
TT
33472020-04-13 Tom Tromey <tom@tromey.com>
3348
3349 * gdb_select.h: Move to ../gdbsupport/.
3350 * event-loop.c: Update include path.
3351 * top.c: Update include path.
3352 * ser-base.c: Update include path.
3353 * ui-file.c: Update include path.
3354 * ser-tcp.c: Update include path.
3355 * guile/scm-ports.c: Update include path.
3356 * posix-hdep.c: Update include path.
3357 * ser-unix.c: Update include path.
3358 * gdb_usleep.c: Update include path.
3359 * mingw-hdep.c: Update include path.
3360 * inflow.c: Update include path.
3361 * infrun.c: Update include path.
3362 * event-top.c: Update include path.
3363
8ae8e197
TT
33642020-04-13 Tom Tromey <tom@tromey.com>
3365
3366 * configure: Rebuild.
3367 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
3368
58cf28e8
TT
33692020-04-13 Tom Tromey <tom@tromey.com>
3370
3371 * event-loop.h (start_event_loop): Don't declare.
3372 * event-loop.c (start_event_loop): Move...
3373 * main.c (start_event_loop): ...here. Now static.
3374
b7f999ae
SDJ
33752020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
3376
3377 * MAINTAINERS: Update my email address.
3378
1085dfd4
KR
33792020-04-12 Kamil Rytarowski <n54@gmx.com>
3380
3381 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
3382 IP_ALL.
3383
49d1d1f5
KR
33842020-04-12 Kamil Rytarowski <n54@gmx.com>
3385
3386 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 3387 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 3388
b4848d2a
KR
33892020-04-12 Kamil Rytarowski <n54@gmx.com>
3390
3391 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 3392 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 3393
51c133d5
KR
33942020-04-12 Kamil Rytarowski <n54@gmx.com>
3395
3396 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
3397
54b8cbd0
KR
33982020-04-11 Kamil Rytarowski <n54@gmx.com>
3399
3400 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
3401 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
3402 (nbsd_nat_target::info_proc): New functions.
3403 * nbsd-nat.c (kinfo_get_vmmap): New function.
3404 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
3405 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
3406 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
3407 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
3408 functions.
3409 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
3410 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3411 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3412 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
3413 (KINFO_VME_FLAG_GROWS_DOWN): New.
3414
cf83625d
AS
34152020-04-10 Artur Shepilko <nomadbyte@gmail.com>
3416
3417 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
3418 bit shift.
3419
0c4311ab
TT
34202020-04-10 Tom Tromey <tromey@adacore.com>
3421
3422 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
3423
3e65b3e9
TT
34242020-04-10 Tom Tromey <tromey@adacore.com>
3425
3426 * symtab.c (get_symbol_address, get_msymbol_address): Skip
3427 separate debug files.
3428
13302e95
HD
34292020-04-10 Hannes Domani <ssbssa@yahoo.de>
3430
3431 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3432 Move to...
3433 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3434 ... here.
3435 * windows-nat.c (windows_nat_target::get_windows_debug_event):
3436 Check for STATUS_WX86_BREAKPOINT.
3437 (windows_nat_target::wait): Same.
3438
bdfc1e8a
TV
34392020-04-10 Tom de Vries <tdevries@suse.de>
3440
3441 PR cli/25808
3442 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
3443
f4460aec
SM
34442020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
3447 (Write After Approval): Remove Tom de Vries.
3448
a25198bb
BE
34492020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3450
3451 revert partially:
3452 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3453
aac66a4c
SM
3454 * buildsym.c (record_line): Fix undefined behavior and preserve
3455 lines at eof.
a25198bb 3456
206c98a6
KR
34572020-04-09 Kamil Rytarowski <n54@gmx.com>
3458
3459 * auxv.h (svr4_auxv_parse): New.
3460 * auxv.c (default_auxv_parse): Split into default_auxv_parse
3461 and generic_auxv_parse.
3462 (svr4_auxv_parse): Add.
3463 * obsd-tdep.c: Include "auxv.h".
3464 (obsd_auxv_parse): Remove.
3465 (obsd_init_abi): Remove comment.
3466 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
3467 from `obsd_auxv_parse' to `svr4_auxv_parse'.
3468 * nbsd-tdep.c: Include "auxv.h".
3469 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
3470
71fbdbaf
TT
34712020-04-08 Tom Tromey <tromey@adacore.com>
3472
3473 * nat/windows-nat.h (last_wait_event): Don't declare.
3474 (wait_for_debug_event): Update comment.
3475 * nat/windows-nat.c (last_wait_event): Now static.
3476
2c1d95e8
TT
34772020-04-08 Tom Tromey <tromey@adacore.com>
3478
3479 * windows-nat.c (wait_for_debug_event): Move to
3480 nat/windows-nat.c.
3481 * nat/windows-nat.h (wait_for_debug_event): Declare.
3482 * nat/windows-nat.c (wait_for_debug_event): Move from
3483 windows-nat.c. No longer static.
3484
d2977bc4
TT
34852020-04-08 Tom Tromey <tromey@adacore.com>
3486
3487 * windows-nat.c (get_windows_debug_event): Use
3488 fetch_pending_stop.
3489 * nat/windows-nat.h (fetch_pending_stop): Declare.
3490 * nat/windows-nat.c (fetch_pending_stop): New function.
3491
e758e19c
TT
34922020-04-08 Tom Tromey <tromey@adacore.com>
3493
3494 * windows-nat.c (windows_continue): Use matching_pending_stop and
3495 continue_last_debug_event.
3496 * nat/windows-nat.h (matching_pending_stop)
3497 (continue_last_debug_event): Declare.
3498 * nat/windows-nat.c (DEBUG_EVENTS): New define.
3499 (matching_pending_stop, continue_last_debug_event): New
3500 functions.
3501
8d30e395
TT
35022020-04-08 Tom Tromey <tromey@adacore.com>
3503
3504 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
3505 (handle_exception_result): Move to nat/windows-nat.h.
3506 (DEBUG_EXCEPTION_SIMPLE): Remove.
3507 (windows_nat::handle_ms_vc_exception): New function.
3508 (handle_exception): Move to nat/windows-nat.c.
3509 (get_windows_debug_event): Update.
3510 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
3511 nat/windows-nat.c.
3512 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
3513 (handle_exception_result): Move from windows-nat.c.
3514 (handle_exception): Declare.
3515 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
3516 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
3517 windows-nat.c.
3518
29de418d
TT
35192020-04-08 Tom Tromey <tromey@adacore.com>
3520
3521 * windows-nat.c (exception_count, event_count): Remove.
3522 (handle_exception, get_windows_debug_event)
3523 (do_initial_windows_stuff): Update.
3524
a816ba18
TT
35252020-04-08 Tom Tromey <tromey@adacore.com>
3526
3527 * windows-nat.c (windows_nat::handle_load_dll)
3528 (windows_nat::handle_unload_dll): Rename. No longer static.
3529 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
3530 Declare.
3531
a00caa12
TT
35322020-04-08 Tom Tromey <tromey@adacore.com>
3533
3534 * complaints.h (stop_whining): Declare at top-level.
3535 (complaint): Don't declare stop_whining.
3536
d41b524f
TT
35372020-04-08 Tom Tromey <tromey@adacore.com>
3538
3539 * windows-nat.c (windows_nat::handle_output_debug_string):
3540 Rename. No longer static.
3541 * nat/windows-nat.h (handle_output_debug_string): Declare.
3542
3c76026d
TT
35432020-04-08 Tom Tromey <tromey@adacore.com>
3544
3545 * windows-nat.c (current_process_handle, current_process_id)
3546 (main_thread_id, last_sig, current_event, last_wait_event)
3547 (current_windows_thread, desired_stop_thread_id, pending_stops)
3548 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
3549 (display_selectors, fake_create_process)
3550 (get_windows_debug_event): Update.
3551 * nat/windows-nat.h (current_process_handle, current_process_id)
3552 (main_thread_id, last_sig, current_event, last_wait_event)
3553 (current_windows_thread, desired_stop_thread_id, pending_stops)
3554 (struct pending_stop, siginfo_er): Move from windows-nat.c.
3555 * nat/windows-nat.c (current_process_handle, current_process_id)
3556 (main_thread_id, last_sig, current_event, last_wait_event)
3557 (current_windows_thread, desired_stop_thread_id, pending_stops)
3558 (siginfo_er): New globals. Move from windows-nat.c.
3559
9d8679cc
TT
35602020-04-08 Tom Tromey <tromey@adacore.com>
3561
3562 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
3563 (handle_load_dll): Update.
3564 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
3565
28688adf
TT
35662020-04-08 Tom Tromey <tromey@adacore.com>
3567
3568 * windows-nat.c (enum thread_disposition_type): Move to
3569 nat/windows-nat.h.
3570 (windows_nat::thread_rec): Rename from thread_rec. No longer
3571 static.
3572 (windows_add_thread, windows_nat_target::fetch_registers)
3573 (windows_nat_target::store_registers, handle_exception)
3574 (windows_nat_target::resume, get_windows_debug_event)
3575 (windows_nat_target::get_tib_address)
3576 (windows_nat_target::thread_name)
3577 (windows_nat_target::thread_alive): Update.
3578 * nat/windows-nat.h (enum thread_disposition_type): Move from
3579 windows-nat.c.
3580 (thread_rec): Declare.
3581
4834dad0
TT
35822020-04-08 Tom Tromey <tromey@adacore.com>
3583
3584 * windows-nat.c: Add "using namespace".
3585 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
3586 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
3587
65bafd5b
TT
35882020-04-08 Tom Tromey <tromey@adacore.com>
3589
3590 * nat/windows-nat.h (struct windows_thread_info): Declare
3591 destructor.
3592 * nat/windows-nat.c (~windows_thread_info): New.
3593
0a4afda3
TT
35942020-04-08 Tom Tromey <tromey@adacore.com>
3595
3596 PR gdb/22992
3597 * windows-nat.c (current_event): Update comment.
3598 (last_wait_event, desired_stop_thread_id): New globals.
3599 (struct pending_stop): New.
3600 (pending_stops): New global.
3601 (windows_nat_target) <stopped_by_sw_breakpoint>
3602 <supports_stopped_by_sw_breakpoint>: New methods.
3603 (windows_fetch_one_register): Add assertions. Adjust PC.
3604 (windows_continue): Handle pending stops. Suspend other threads
3605 when stepping. Use last_wait_event
3606 (wait_for_debug_event): New function.
3607 (get_windows_debug_event): Use wait_for_debug_event. Handle
3608 pending stops. Queue spurious stops.
3609 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
3610 (windows_nat_target::kill): Use wait_for_debug_event.
3611 * nat/windows-nat.h (struct windows_thread_info)
3612 <stopped_at_software_breakpoint>: New field.
3613 * nat/windows-nat.c (windows_thread_info::resume): Clear
3614 stopped_at_software_breakpoint.
3615
8e61ebec
TT
36162020-04-08 Tom Tromey <tromey@adacore.com>
3617
3618 * windows-nat.c (enum thread_disposition_type): New.
3619 (thread_rec): Replace "get_context" parameter with "disposition";
3620 change type.
3621 (windows_add_thread, windows_nat_target::fetch_registers)
3622 (windows_nat_target::store_registers, handle_exception)
3623 (windows_nat_target::resume, get_windows_debug_event)
3624 (windows_nat_target::get_tib_address)
3625 (windows_nat_target::thread_name)
3626 (windows_nat_target::thread_alive): Update.
3627
98a03287
TT
36282020-04-08 Tom Tromey <tromey@adacore.com>
3629
3630 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
3631 (windows_continue): Use windows_continue::resume.
3632 * nat/windows-nat.h (struct windows_thread_info) <suspend,
3633 resume>: Declare new methods.
3634 * nat/windows-nat.c: New file.
3635 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
3636
7c7411bc
TT
36372020-04-08 Tom Tromey <tromey@adacore.com>
3638
3639 * windows-nat.c (windows_add_thread, windows_delete_thread)
3640 (windows_nat_target::fetch_registers)
3641 (windows_nat_target::store_registers, fake_create_process)
3642 (windows_nat_target::resume, windows_nat_target::resume)
3643 (get_windows_debug_event, windows_nat_target::wait)
3644 (windows_nat_target::pid_to_str)
3645 (windows_nat_target::get_tib_address)
3646 (windows_nat_target::get_ada_task_ptid)
3647 (windows_nat_target::thread_name)
3648 (windows_nat_target::thread_alive): Use lwp, not tid.
3649
2950fdf7
TT
36502020-04-08 Tom Tromey <tromey@adacore.com>
3651
3652 * windows-nat.c (handle_exception)
3653 (windows_nat_target::thread_name): Update.
3654 * nat/windows-nat.h (windows_thread_info): Remove destructor.
3655 <name>: Now unique_xmalloc_ptr.
3656
62fe396b
TT
36572020-04-08 Tom Tromey <tromey@adacore.com>
3658
3659 * windows-nat.c (thread_rec)
3660 (windows_nat_target::fetch_registers): Update.
3661 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
3662 Update comment.
3663 <debug_registers_changed, reload_context>: Now bool.
3664
e9534bd2
TT
36652020-04-08 Tom Tromey <tromey@adacore.com>
3666
3667 * windows-nat.c (windows_add_thread): Use new.
3668 (windows_init_thread_list, windows_delete_thread): Use delete.
3669 (get_windows_debug_event): Update.
3670 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
3671 destructor, and initializers.
3672
ae1f8880
TT
36732020-04-08 Tom Tromey <tromey@adacore.com>
3674
3675 * windows-nat.c (struct windows_thread_info): Remove.
3676 * nat/windows-nat.h: New file.
3677
55a1e039
TT
36782020-04-08 Tom Tromey <tromey@adacore.com>
3679
3680 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
3681 (thread_rec, windows_add_thread, windows_delete_thread)
3682 (windows_continue): Update.
3683
93366324
TT
36842020-04-08 Tom Tromey <tromey@adacore.com>
3685
3686 * windows-nat.c (struct windows_thread_info): Remove typedef.
3687 (thread_head): Remove.
3688 (thread_list): New global.
3689 (thread_rec, windows_add_thread, windows_init_thread_list)
3690 (windows_delete_thread, windows_continue): Update.
3691
0f2265e2
SM
36922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * windows-tdep.h (windows_init_abi): Add comment.
3695 (cygwin_init_abi): New declaration.
3696 * windows-tdep.c: Split signal enumeration in two, one for
3697 Windows and one for Cygwin.
3698 (windows_gdb_signal_to_target): Only deal with signal of the
3699 Windows OS ABI.
3700 (cygwin_gdb_signal_to_target): New function.
3701 (windows_init_abi): Rename to windows_init_abi_common, don't set
3702 gdb_signal_to_target gdbarch method. Add new new function with
3703 this name.
3704 (cygwin_init_abi): New function.
3705 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
3706 comment. Don't call windows_init_abi.
3707 (amd64_windows_init_abi): Add comment, call windows_init_abi.
3708 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
3709 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
3710 i386_windows_init_abi_common, don't call windows_init_abi. Add
3711 a new function of this name.
3712 (i386_cygwin_init_abi): New function.
3713 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
3714 OS ABI Cygwin.
3715
3810f182
SM
37162020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
3719 parameter.c.
3720 (dwarf2_read_gdb_index): Update.
3721
063f8e80
KR
37222020-04-07 Kamil Rytarowski <n54@gmx.com>
3723
3724 * nbsd-tdep.c: Include "objfiles.h".
3725 (nbsd_skip_solib_resolver): New.
3726 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
3727
85a9510c 37282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3729
3730 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
3731 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
3732 with DW_LLE_base_addressx are being emitted in DWARFv5.
3733 Add the newly added kind DW_LOC_OFFSET_PAIR also.
3734 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
3735 unsigned integer.
3736
9fc3eaae 37372020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3738
3739 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
3740 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
3741 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
3742 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
3743 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
3744 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
3745 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
3746
3747
41144253 37482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3749
3750 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
3751 (read_loclist_index): New function definition.
3752 (lookup_loclist_base): New function definition.
3753 (read_loclist_header): New function definition.
3754 (dwarf2_cu): Add loclist_base and loclist_header field.
3755 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
3756 (read_full_die_1): Read the value of DW_AT_loclists_base.
3757 (read_attribute_reprocess): Handle DW_FORM_loclistx.
3758 (read_attribute_value): Handle DW_FORM_loclistx.
3759 (skip_one_die): Handle DW_FORM_loclistx.
3760 (loclist_header): New structure declaration.
3761 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
3762
9f4e76a4
SM
37632020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
3766 constructor. Remove `addr` parameter from other constructor and
3767 add `per_cu` parameter.
3768 * dwarf2/read.c (create_partial_symtab): Update.
3769
25c11aca
TV
37702020-04-07 Tom de Vries <tdevries@suse.de>
3771
3772 PR symtab/25796
3773 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
3774 (partial_die_info::fixup): Inherit has_const_value.
3775
5707e24b
TV
37762020-04-07 Tom de Vries <tdevries@suse.de>
3777
3778 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
3779 symbols without address.
3780
05f00e22
KR
37812020-04-06 Kamil Rytarowski <n54@gmx.com>
3782
3783 * nbsd-nat.h (struct thread_info): Add forward declaration.
3784 (nbsd_nat_target::thread_alive): Add.
3785 (nbsd_nat_target::thread_name): Likewise.
3786 (nbsd_nat_target::update_thread_list): Likewise.
3787 (update_thread_list::post_attach): Likewise.
3788 (post_attach::pid_to_str): Likewise.
3789 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
3790 (nbsd_thread_lister): Add.
3791 (nbsd_nat_target::thread_alive): Likewise.
3792 (nbsd_nat_target::thread_name): Likewise.
3793 (nbsd_add_threads): Likewise.
3794 (update_thread_list::post_attach): Likewise.
3795 (nbsd_nat_target::update_thread_list): Likewise.
3796 (post_attach::pid_to_str): Likewise.
3797
6ee448cc
TT
37982020-04-06 Tom Tromey <tromey@adacore.com>
3799
3800 * ada-valprint.c (print_variant_part): Extract the variant field.
3801 (print_field_values): Use the field as the outer value when
3802 recursing.
3803
dea34e8c
TT
38042020-04-06 Tom Tromey <tromey@adacore.com>
3805
3806 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
3807 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
3808 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
3809 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
3810 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
3811
93689ce9
TT
38122020-04-06 Tom Tromey <tromey@adacore.com>
3813
3814 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
3815 TYPE_CODE_ERROR.
3816
79743962
KR
38172020-04-06 Kamil Rytarowski <n54@gmx.com>
3818
3819 * nbsd-tdep.c: Include "gdbarch.h".
3820 Define enum with NetBSD signal numbers.
3821 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
3822 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
3823 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3824 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
3825 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
3826 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
3827 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
3828 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3829 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
3830 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3831 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3832 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
3833
9e7c9a03
HD
38342020-04-03 Hannes Domani <ssbssa@yahoo.de>
3835
3836 PR gdb/25325
3837 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
3838
d9e49b61
TT
38392020-04-03 Tom Tromey <tromey@adacore.com>
3840
3841 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
3842 Read constant block.
3843
e0fc5c3f
SM
38442020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3845
3846 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
3847 (gdb_bfd_get_full_section_contents): New declaration.
3848 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
3849 * windows-tdep.c (is_linked_with_cygwin_dll): Use
3850 gdb_bfd_get_full_section_contents.
3851
e2ff18a0
SM
38522020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3853
3854 * exec.c (build_section_table): Replace internal_error with
3855 gdb_assert.
3856 (section_table_xfer_memory_partial): Likewise.
3857 * mdebugread.c (parse_partial_symbols): Likewise.
3858 * psymtab.c (lookup_partial_symbol): Likewise.
3859 * utils.c (wrap_here): Likewise.
3860
0830d301
TT
38612020-04-02 Tom Tromey <tromey@adacore.com>
3862
3863 * f-lang.c (build_fortran_types): Use arch_type to initialize
3864 builtin_complex_s32 in the TYPE_CODE_ERROR case.
3865
e7da7f8f
TT
38662020-04-02 Tom Tromey <tromey@adacore.com>
3867
3868 * dwarf2/read.c (partial_die_info::read): Do not create a vector
3869 of attributes.
3870
c90d28ac
AB
38712020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
3872 Bernd Edlinger <bernd.edlinger@hotmail.de>
3873 Tom Tromey <tromey@adacore.com>
3874
3875 * buildsym.c (buildsym_compunit::record_line): Remove
3876 deduplication code.
3877
1aa98955
TV
38782020-04-02 Tom de Vries <tdevries@suse.de>
3879
3880 PR ada/24671
3881 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
3882
d3214198
TV
38832020-04-02 Tom de Vries <tdevries@suse.de>
3884
3885 * dwarf2/read.c (dwarf2_gdb_index_functions,
3886 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
3887 NULL.
3888 * psymtab.c (psym_lookup_global_symbol_language): New function.
3889 (psym_functions): Init psym_lookup_global_symbol_language with
3890 psym_lookup_global_symbol_language.
3891 * symfile-debug.c (debug_sym_quick_functions): Init
3892 lookup_global_symbol_language with NULL.
3893 * symfile.c (set_initial_language): Remove fixme comment.
3894 * symfile.h (struct quick_symbol_functions): Add
3895 lookup_global_symbol_language.
3896 * symtab.c (find_quick_global_symbol_language): New function.
3897 (find_main_name): Use find_quick_global_symbol_language.
3898
2836752f
SM
38992020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3900
3901 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
3902
64dc2d4b
BE
39032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3904
3905 * buildsym.c (record_line): Fix undefined behavior and preserve
3906 lines at eof.
3907
bbe3dc41
BE
39082020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3909
3910 * buildsym.c (record_line): Fix the resizing condition.
3911
6b4a335b
TT
39122020-04-01 Tom Tromey <tom@tromey.com>
3913
3914 * value.h (value_literal_complex): Add comment.
3915 * valops.c (value_literal_complex): Refer to value.h.
3916
3638a098
TT
39172020-04-01 Tom Tromey <tom@tromey.com>
3918
3919 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
3920 (scalar_type): New rule, from typebase.
3921 (typebase): Use scalar_type. Recognize complex types.
3922 (field_name): Handle FLOAT_KEYWORD.
3923 (ident_tokens): Add _Complex and __complex__.
3924
c34e8714
TT
39252020-04-01 Tom Tromey <tom@tromey.com>
3926
3927 PR exp/25299:
3928 * valarith.c (promotion_type, complex_binop): New functions.
3929 (scalar_binop): Handle complex numbers. Use promotion_type.
3930 (value_pos, value_neg, value_complement): Handle complex numbers.
3931
fa649bb7
TT
39322020-04-01 Tom Tromey <tom@tromey.com>
3933
3934 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
3935 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
3936 (parse_number): Handle complex numbers.
3937
981c08ce
TT
39382020-04-01 Tom Tromey <tom@tromey.com>
3939
3940 * c-valprint.c (c_decorations): Change complex suffix to "i".
3941
4c99290d
TT
39422020-04-01 Tom Tromey <tom@tromey.com>
3943
3944 * valprint.c (generic_value_print_complex): Use accessors.
3945 * value.h (value_real_part, value_imaginary_part): Declare.
3946 * valops.c (value_real_part, value_imaginary_part): New
3947 functions.
3948 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
3949
5b930b45
TT
39502020-04-01 Tom Tromey <tom@tromey.com>
3951
3952 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
3953 (read_range_type): Update.
3954 * mdebugread.c (basic_type): Update.
3955 * go-lang.c (build_go_types): Use init_complex_type.
3956 * gdbtypes.h (struct main_type) <complex_type>: New member.
3957 (init_complex_type): Update.
3958 (arch_complex_type): Don't declare.
3959 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
3960 Make name if none given. Use alloc_type_copy. Look for cached
3961 complex type.
3962 (arch_complex_type): Remove.
3963 (gdbtypes_post_init): Use init_complex_type.
3964 * f-lang.c (build_fortran_types): Use init_complex_type.
3965 * dwarf2/read.c (read_base_type): Update.
3966 * d-lang.c (build_d_types): Use init_complex_type.
3967 * ctfread.c (read_base_type): Update.
3968
53cccef1
TBA
39692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3970
3971 * infrun.c (stop_all_threads): Update assertion, plus when
3972 stopping threads, take into account that we might be trying
3973 to stop an all-stop target.
3974 (stop_waiting): Call 'stop_all_threads' if there exists a
3975 non-stop target.
3976
a0714d30
TBA
39772020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978
3979 * target.h (exists_non_stop_target): New function declaration.
3980 * target.c (exists_non_stop_target): New function.
3981
60e22c1e
HD
39822020-04-01 Hannes Domani <ssbssa@yahoo.de>
3983
3984 PR gdb/24789
3985 * eval.c (is_integral_or_integral_reference): New function.
3986 (evaluate_subexp_standard): Allow integer references in
3987 pointer arithmetic.
3988
e139a727
TBA
39892020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3990
3991 * remote.c (remote_target::remote_parse_stop_reply): Remove the
3992 check for no ptid in the stop reply when the target is non-stop.
3993
e0802d59
TT
39942020-04-01 Tom Tromey <tromey@adacore.com>
3995
3996 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
3997 "name" parameter to rvalue reference. Initialize m_name_holder.
3998 <lookup_name_info>: New overloads.
3999 <name>: Return gdb::string_view.
4000 <c_str>: New method.
4001 <make_ignore_params>: Update.
4002 <search_name_hash>: Update.
4003 <language_lookup_name>: Return const char *.
4004 <m_name>: Change type.
4005 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
4006 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
4007 (lookup_name_info::match_any): Update.
4008 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
4009 Update.
4010 * minsyms.c (linkage_name_str): Update.
4011 * language.c (default_symbol_name_matcher): Update.
4012 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
4013 Update.
4014 * ada-lang.c (ada_fold_name): Change parameter to string_view.
4015 (ada_lookup_name_info::ada_lookup_name_info): Update.
4016 (literal_symbol_name_matcher): Update.
4017
8c072cb6
TT
40182020-04-01 Tom Tromey <tromey@adacore.com>
4019
4020 * psymtab.c (psymtab_search_name): Remove function.
4021 (psym_lookup_symbol): Create search name and lookup name here.
4022 (lookup_partial_symbol): Remove "name" parameter; add
4023 lookup_name.
4024 (psym_expand_symtabs_for_function): Update.
4025
6f29a534
TT
40262020-03-31 Joel Jones <joelkevinjones@gmail.com>
4027
4028 PR tui/25597:
4029 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
4030
af62665e
TT
40312020-03-31 Tom Tromey <tromey@adacore.com>
4032
4033 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
4034 memcpy.
4035
d1a89da5
NC
40362020-03-30 Nelson Chu <nelson.chu@sifive.com>
4037
4038 * features/riscv/32bit-csr.xml: Regenerated.
4039 * features/riscv/64bit-csr.xml: Regenerated.
4040
d8af9068
TT
40412020-03-30 Tom Tromey <tromey@adacore.com>
4042
4043 * ada-valprint.c (print_variant_part): Update.
4044 * ada-lang.h (ada_which_variant_applies): Update.
4045 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
4046 outer_valaddr parameters; replace with "outer" value parameter.
4047 (to_fixed_variant_branch_type): Update.
4048
227c0bf4
PFC
40492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4050
4051 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
4052 <list>. Remove inclusion of observable.h.
4053 (PPC_DEBUG_CURRENT_VERSION): Move up define.
4054 (struct arch_lwp_info): New struct.
4055 (class ppc_linux_dreg_interface): New class.
4056 (struct ppc_linux_process_info): New struct.
4057 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
4058 <low_new_clone, low_forget_process, low_prepare_to_resume>
4059 <copy_thread_dreg_state, mark_thread_stale>
4060 <mark_debug_registers_changed, register_hw_breakpoint>
4061 <clear_hw_breakpoint, register_wp, clear_wp>
4062 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
4063 <num_memory_accesses, get_trigger_type>
4064 <create_watchpoint_request, hwdebug_point_cmp>
4065 <init_arch_lwp_info, get_arch_lwp_info>
4066 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
4067 methods.
4068 <struct ptid_hash>: New inner struct.
4069 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
4070 members.
4071 (saved_dabr_value, hwdebug_info, max_slots_number)
4072 (struct hw_break_tuple, struct thread_points, ppc_threads)
4073 (have_ptrace_hwdebug_interface)
4074 (hwdebug_find_thread_points_by_tid)
4075 (hwdebug_insert_point, hwdebug_remove_point): Remove.
4076 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
4077 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
4078 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
4079 use m_dreg_interface.
4080 (hwdebug_point_cmp): Change to...
4081 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
4082 reference arguments instead of pointers.
4083 (ppc_linux_nat_target::ranged_break_num_registers): Use
4084 m_dreg_interface.
4085 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
4086 m_dreg_interface. Call register_hw_breakpoint.
4087 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
4088 m_dreg_interface. Call clear_hw_breakpoint.
4089 (get_trigger_type): Change to...
4090 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
4091 comment.
4092 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
4093 use m_dreg_interface. Call register_hw_breakpoint.
4094 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
4095 use m_dreg_interface. Call clear_hw_breakpoint.
4096 (can_use_watchpoint_cond_accel): Change to...
4097 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
4098 method. Update comment, use m_dreg_interface and
4099 m_process_info.
4100 (calculate_dvc): Change to...
4101 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
4102 m_dreg_interface.
4103 (num_memory_accesses): Change to...
4104 (ppc_linux_nat_target::num_memory_accesses): ...this method.
4105 (check_condition): Change to...
4106 (ppc_linux_nat_target::check_condition): ...this method.
4107 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
4108 comment, use m_dreg_interface.
4109 (create_watchpoint_request): Change to...
4110 (ppc_linux_nat_target::create_watchpoint_request): ...this
4111 method. Use m_dreg_interface.
4112 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
4113 m_dreg_interface. Call register_hw_breakpoint or register_wp.
4114 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
4115 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
4116 (ppc_linux_nat_target::low_forget_process)
4117 (ppc_linux_nat_target::low_new_fork)
4118 (ppc_linux_nat_target::low_new_clone)
4119 (ppc_linux_nat_target::low_delete_thread)
4120 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
4121 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
4122 only call mark_thread_stale.
4123 (ppc_linux_thread_exit): Remove.
4124 (ppc_linux_nat_target::stopped_data_address): Change to...
4125 (ppc_linux_nat_target::low_stopped_data_address): This. Add
4126 comment, use m_dreg_interface and m_thread_hw_breakpoints.
4127 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
4128 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
4129 comment. Call low_stopped_data_address.
4130 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
4131 m_dreg_interface.
4132 (ppc_linux_nat_target::masked_watch_num_registers): Use
4133 m_dreg_interface.
4134 (ppc_linux_nat_target::copy_thread_dreg_state)
4135 (ppc_linux_nat_target::mark_thread_stale)
4136 (ppc_linux_nat_target::mark_debug_registers_changed)
4137 (ppc_linux_nat_target::register_hw_breakpoint)
4138 (ppc_linux_nat_target::clear_hw_breakpoint)
4139 (ppc_linux_nat_target::register_wp)
4140 (ppc_linux_nat_target::clear_wp)
4141 (ppc_linux_nat_target::init_arch_lwp_info)
4142 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
4143 (_initialize_ppc_linux_nat): Remove observer callback.
4144
4db10d8f
PFC
41452020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4146
4147 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
4148 (ppc_linux_nat_target::auxv_parse)
4149 (ppc_linux_nat_target::read_description)
4150 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4151 Move up.
4152
1310c1b0
PFC
41532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4154
4155 * linux-nat.h (low_new_clone): New method.
4156 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
4157
69b037c3
SM
41582020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4159
4160 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
4161 (dbx_expand_psymtab): ... this.
4162 (start_psymtab): Update.
4163 * mdebugread.c (psymtab_to_symtab_1): Rename to...
4164 (mdebug_expand_psymtab): ... this.
4165 (parse_partial_symbols): Update.
4166 (new_psymtab): Update.
4167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
4168 (xcoff_expand_psymtab): ... this.
4169 (xcoff_start_psymtab): Update.
4170
48993951
SM
41712020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4172
4173 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
4174 <expand_dependencies>: ... this.
4175 * psymtab.c (partial_symtab::read_dependencies): Rename to...
4176 (partial_symtab::expand_dependencies): ... this.
4177 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
4178 Update.
4179 (dwarf2_psymtab::expand_psymtab): Update.
4180 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4181 * mdebugread.c (psymtab_to_symtab_1): Update.
4182 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4183
3ad83046
SM
41842020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4185
4186 * psympriv.h (discard_psymtab): Remove.
4187 * dbxread.c (dbx_end_psymtab): Update.
4188 * xcoffread.c (xcoff_end_psymtab): Update.
4189
4d1b9ab6
TT
41902020-03-28 Tom Tromey <tom@tromey.com>
4191
4192 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
4193 comment.
4194
f1749218
TT
41952020-03-28 Tom Tromey <tom@tromey.com>
4196
4197 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4198
ebea7626
HD
41992020-03-27 Hannes Domani <ssbssa@yahoo.de>
4200
4201 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4202
a879b4d5
JB
42032020-03-26 John Baldwin <jhb@FreeBSD.org>
4204
4205 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
4206
0826b30a
TT
42072020-03-26 Tom Tromey <tom@tromey.com>
4208
4209 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
4210 (mark_common_block_symbol_computed, read_tag_string_type)
4211 (attr_to_dynamic_prop, read_subrange_type): Update.
4212 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
4213 to be methods on struct attribute.
4214 (skip_one_die, process_imported_unit_die, read_namespace_alias)
4215 (read_call_site_scope, partial_die_info::read)
4216 (partial_die_info::read, lookup_die_type, follow_die_ref):
4217 Update.
4218 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
4219 from dwarf2_get_ref_die_offset.
4220 (attribute::constant_value): New method, from
4221 dwarf2_get_attr_constant_value.
4222 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
4223 Declare method.
4224 <constant_value>: New method.
4225
2b2558bf
TT
42262020-03-26 Tom Tromey <tom@tromey.com>
4227
4228 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
4229 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
4230 (dwarf_type_encoding_name): Move to stringify.c.
4231 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
4232 * dwarf2/stringify.c: New file.
4233 * dwarf2/stringify.h: New file.
4234
eeb64781
TT
42352020-03-26 Tom Tromey <tom@tromey.com>
4236
4237 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
4238 Rewrite.
4239
a39fdb41
TT
42402020-03-26 Tom Tromey <tom@tromey.com>
4241
4242 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
4243 methods.
4244 * dwarf2/read.c (lookup_addr_base): Move to die.h.
4245 (lookup_ranges_base): Likewise.
4246 (read_cutu_die_from_dwo, read_full_die_1): Update.
4247
436c571c
TT
42482020-03-26 Tom Tromey <tom@tromey.com>
4249
4250 * dwarf2/read.c (read_import_statement, read_file_scope)
4251 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
4252 (read_lexical_block_scope, read_call_site_scope)
4253 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
4254 (handle_struct_member_die, process_structure_scope)
4255 (update_enumeration_type_from_children)
4256 (process_enumeration_scope, read_array_type, read_common_block)
4257 (read_namespace, read_module, read_subroutine_type): Update.
4258 (sibling_die): Remove.
4259
052c8bb8
TT
42602020-03-26 Tom Tromey <tom@tromey.com>
4261
4262 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
4263 (build_type_psymtabs_reader, read_structure_type)
4264 (read_enumeration_type, read_full_die_1): Update.
4265 (dwarf2_attr_no_follow): Move to die.h.
4266 * dwarf2/die.h (struct die_info) <attr>: New method.
4267
2b24b6e4
TT
42682020-03-26 Tom Tromey <tom@tromey.com>
4269
4270 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
4271 <base_address>: Now an optional.
4272 (dwarf2_find_base_address, dwarf2_rnglists_process)
4273 (dwarf2_ranges_process, fill_in_loclist_baton)
4274 (dwarf2_symbol_mark_computed): Update.
4275
c2d50fd0
TT
42762020-03-26 Tom Tromey <tom@tromey.com>
4277
4278 * dwarf2/read.c (struct die_info): Move to die.h.
4279 * dwarf2/die.h: New file.
4280
0df7ad3a
TT
42812020-03-26 Tom Tromey <tom@tromey.com>
4282
4283 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
4284 * dwarf2/read.c
4285 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4286 Move to line-header.c.
4287 (read_checked_initial_length_and_offset, read_formatted_entries):
4288 Likewise.
4289 (dwarf_decode_line_header): Split into two.
4290 * dwarf2/line-header.c
4291 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4292 Move from read.c.
4293 (read_checked_initial_length_and_offset, read_formatted_entries):
4294 Likewise.
4295 (dwarf_decode_line_header): New function, split from read.c.
4296
86c0bb4c
TT
42972020-03-26 Tom Tromey <tom@tromey.com>
4298
4299 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
4300 Declare method.
4301 * dwarf2/read.c (read_attribute_value): Update.
4302 (dwarf2_per_objfile::read_line_string): Rename from
4303 read_indirect_line_string.
4304 (read_formatted_entries): Update.
4305
2ef46c2f
TT
43062020-03-26 Tom Tromey <tom@tromey.com>
4307
4308 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
4309 variable.
4310
4f9c1eda
TT
43112020-03-26 Tom Tromey <tom@tromey.com>
4312
4313 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
4314 const.
4315 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
4316 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
4317 parameter const.
4318
5a0e026f
TT
43192020-03-26 Tom Tromey <tom@tromey.com>
4320
4321 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
4322 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
4323 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
4324 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
4325
8844c11b
TT
43262020-03-26 Tom Tromey <tom@tromey.com>
4327
4328 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
4329 file_names_size, file_full_name, file_file_name>: Use const.
4330 <file_name_at, file_names>: Add const overload.
4331 * dwarf2/line-header.c (line_header::file_file_name)
4332 (line_header::file_full_name): Update.
4333
c90ec28a
TT
43342020-03-26 Tom Tromey <tom@tromey.com>
4335
4336 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
4337 (macro_start_file, consume_improper_spaces)
4338 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
4339 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
4340 (dwarf_decode_macros): Move to macro.c.
4341 * dwarf2/macro.c: New file.
4342 * dwarf2/macro.h: New file.
4343 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
4344
4f44ae6c
TT
43452020-03-26 Tom Tromey <tom@tromey.com>
4346
4347 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
4348 method.
4349 * dwarf2/section.c: New method. From
4350 read_indirect_string_at_offset_from.
4351 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
4352 (read_indirect_string_at_offset_from): Move to section.c.
4353 (read_indirect_string_at_offset): Rewrite.
4354 (read_indirect_line_string_at_offset): Remove.
4355 (read_indirect_string, read_indirect_line_string)
4356 (dwarf_decode_macro_bytes): Update.
4357
a0194fa8
TT
43582020-03-26 Tom Tromey <tom@tromey.com>
4359
4360 * dwarf2/section.h (struct dwarf2_section_info)
4361 <overload_complaint>: Declare.
4362 (dwarf2_section_buffer_overflow_complaint): Don't declare.
4363 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
4364 Rename from dwarf2_section_buffer_overflow_complaint.
4365 * dwarf2/read.c (skip_one_die, partial_die_info::read)
4366 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
4367
3d27bbdb
TT
43682020-03-26 Tom Tromey <tom@tromey.com>
4369
4370 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
4371 Declare.
4372 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
4373 Move from read.c.
4374 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
4375 to section.c.
4376
9eac9650
TT
43772020-03-26 Tom Tromey <tom@tromey.com>
4378
4379 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
4380
bf80d710
TT
43812020-03-26 Tom Tromey <tom@tromey.com>
4382
4383 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
4384 "builder".
4385 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
4386 parameter.
4387 (dwarf_decode_macros): Update.
4388
0314b390
TT
43892020-03-26 Tom Tromey <tom@tromey.com>
4390
4391 * dwarf2/read.c (read_attribute_value): Update.
4392 (read_indirect_string_from_dwz): Move to dwz.c; change into
4393 method.
4394 (dwarf_decode_macro_bytes): Update.
4395 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
4396 * dwarf2/dwz.c: New file.
4397 * Makefile.in (COMMON_SFILES): Add dwz.c.
4398
9fda78b6
TT
43992020-03-26 Tom Tromey <tom@tromey.com>
4400
4401 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
4402 * dwarf2/read.c: Add include.
4403 * dwarf2/index-write.c: Add include.
4404 * dwarf2/index-cache.c: Add include.
4405 * dwarf2/dwz.h: New file.
4406
33aa3c10
TT
44072020-03-25 Tom Tromey <tom@tromey.com>
4408
4409 * compile/compile-object-load.c (get_out_value_type): Mention
4410 correct symbol name in error message.
4411
d503b685
HD
44122020-03-25 Hannes Domani <ssbssa@yahoo.de>
4413
4414 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4415
7b1eff95
TV
44162020-03-25 Tom de Vries <tdevries@suse.de>
4417
4418 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
4419 * symmisc.c (dump_symtab_1): Print user and includes fields.
4420 (maintenance_info_symtabs): Same.
4421
dd895392
AB
44222020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 PR gdb/25534
4425 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
4426 (riscv_regcache_cooked_write): New function.
4427 (riscv_push_dummy_call): Use new function.
4428 (riscv_return_value): Likewise.
4429
5ab2fbf1
SM
44302020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
4433 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
4434 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
4435 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
4436 * infrun.c (follow_fork): Likewise.
4437 (follow_fork_inferior): Likewise.
4438 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
4439 * linux-nat.h (class linux_nat_target): Likewise.
4440 * remote.c (class remote_target) <follow_fork>: Likewise.
4441 (remote_target::follow_fork): Likewise.
4442 * target-delegates.c: Re-generate.
4443 * target.c (default_follow_fork): Likewise.
4444 (target_follow_fork): Likewise.
4445 * target.h (struct target_ops) <follow_fork>: Likewise.
4446 (target_follow_fork): Likewise.
4447
a64fafb5
TV
44482020-03-24 Tom de Vries <tdevries@suse.de>
4449
4450 * psymtab.c (maintenance_info_psymtabs): Print user field.
4451
fe26d3a3
TT
44522020-03-20 Tom Tromey <tromey@adacore.com>
4453
4454 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
4455 const.
4456 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
4457 const.
4458
c884cc46
SM
44592020-03-20 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * ptrace.m4: Don't check for ptrace declaration.
4462 * config.in: Re-generate.
4463 * configure: Re-generate.
4464 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
4465 not defined.
4466
1ff700c2
KR
44672020-03-20 Kamil Rytarowski <n54@gmx.com>
4468
4469 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
4470 `PTRACE_TYPE_RET'.
4471 * i386-bsd-nat.c (gdb_ptrace): Likewise.
4472 * sparc-nat.c (gdb_ptrace): Likewise.
4473 * x86-bsd-nat.c (gdb_ptrace): Likewise.
4474
f7d4f0b1
TT
44752020-03-20 Tom Tromey <tromey@adacore.com>
4476
4477 * c-exp.y (lex_one_token): Fix assert.
4478
f67210ff
TT
44792020-03-20 Tom Tromey <tromey@adacore.com>
4480
4481 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
4482 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
4483 strncpy call.
4484
1773be9e
TT
44852020-03-20 Tom Tromey <tromey@adacore.com>
4486
4487 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
4488
70304be9
TT
44892020-03-20 Tom Tromey <tromey@adacore.com>
4490
4491 * ada-valprint.c (print_variant_part): Remove parameters; switch
4492 to value-based API.
4493 (print_field_values): Likewise.
4494 (ada_val_print_struct_union): Likewise.
4495 (ada_value_print_1): Update.
4496
9faa006d
KR
44972020-03-20 Kamil Rytarowski <n54@gmx.com>
4498
4499 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
4500 nbsd_nat_target instead of inf_ptrace_target.
4501 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4502 nbsd_nat_target.
4503
4a90f062
KR
45042020-03-20 Kamil Rytarowski <n54@gmx.com>
4505
4506 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
4507 it to the ptrace call.
4508 * (store_registers): Likewise.
4509
45102020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
4511
4512 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
4513 it to the ptrace call.
4514 * (store_registers): Likewise.
4515
2d07da27
LM
45162020-03-19 Luis Machado <luis.machado@linaro.org>
4517
4518 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
4519 valid, fetch vg value from ptrace.
4520
f09db380
KR
45212020-03-19 Kamil Rytarowski <n54@gmx.com>
4522 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
4523 * inf-ptrace.c: Likewise.
4524 * (gdb_ptrace): Add.
4525 * (inf_ptrace_target::resume): Update.
4526 * (inf_ptrace_target::xfer_partial): Likewise.
4527 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
4528 * (inf_ptrace_peek_poke): Update.
4529
fcc7376e
KR
45302020-03-19 Kamil Rytarowski <n54@gmx.com>
4531
4532 * x86-bsd-nat.c (gdb_ptrace): New.
4533 * (x86bsd_dr_set): Add new argument `ptid'.
4534 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
4535 x86bsd_dr_set_addr): Update.
4536
cada5fc9
AB
45372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * remote.c (remote_target::process_stop_reply): Handle events for
4540 all threads differently.
4541
19a2740f
AB
45422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4543
4544 * completer.c (completion_tracker::remove_completion): Define new
4545 function.
4546 * completer.h (completion_tracker::remove_completion): Declare new
4547 function.
4548 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
4549 when adding a C++ function symbol.
4550
724fd9ba
AB
45512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * completer.c (completion_tracker::completion_hash_entry): Define
4554 new class.
4555 (advance_to_filename_complete_word_point): Call
4556 recompute_lowest_common_denominator.
4557 (completion_tracker::completion_tracker): Call discard_completions
4558 to setup the hash table.
4559 (completion_tracker::discard_completions): Allow for being called
4560 from the constructor, pass new equal function, and element deleter
4561 when constructing the hash table. Initialise new class member
4562 variables.
4563 (completion_tracker::maybe_add_completion): Remove use of
4564 m_entries_vec, and store more information into m_entries_hash.
4565 (completion_tracker::recompute_lcd_visitor): New function, most
4566 content taken from...
4567 (completion_tracker::recompute_lowest_common_denominator):
4568 ...here, this now just visits each item in the hash calling the
4569 above visitor.
4570 (completion_tracker::build_completion_result): Remove use of
4571 m_entries_vec, call recompute_lowest_common_denominator.
4572 * completer.h (completion_tracker::have_completions): Remove use
4573 of m_entries_vec.
4574 (completion_tracker::completion_hash_entry): Declare new class.
4575 (completion_tracker::recompute_lowest_common_denominator): Change
4576 function signature.
4577 (completion_tracker::recompute_lcd_visitor): Declare new function.
4578 (completion_tracker::m_entries_vec): Delete.
4579 (completion_tracker::m_entries_hash): Initialize to NULL.
4580 (completion_tracker::m_lowest_common_denominator_valid): New
4581 member variable.
4582 (completion_tracker::m_lowest_common_denominator_max_length): New
4583 member variable.
4584
5a82b8a1
KR
45852020-03-17 Kamil Rytarowski <n54@gmx.com>
4586
4587 * regformats/regdef.h: Put reg in gdb namespace.
4588
fb516a69
KR
45892020-03-17 Kamil Rytarowski <n54@gmx.com>
4590
4591 * i386-bsd-nat.c (gdb_ptrace): New.
4592 * (i386bsd_fetch_inferior_registers,
4593 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4594 * (i386bsd_fetch_inferior_registers,
4595 i386bsd_store_inferior_registers) Use gdb_ptrace.
4596
1c0aa1fb
KR
45972020-03-17 Kamil Rytarowski <n54@gmx.com>
4598
4599 * amd64-bsd-nat.c (gdb_ptrace): New.
4600 * (amd64bsd_fetch_inferior_registers,
4601 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4602 * (amd64bsd_fetch_inferior_registers,
4603 amd64bsd_store_inferior_registers) Use gdb_ptrace.
4604
5ccd2fb7
KR
46052020-03-17 Kamil Rytarowski <n54@gmx.com>
4606
4607 * user-regs.c (user_reg::read): Rename to...
4608 (user_reg::xread): ...this.
4609 * (append_user_reg): Rename argument `read' to `xread'.
4610 * (user_reg_add_builtin): Likewise.
4611 * (user_reg_add): Likewise.
4612 * (value_of_user_reg): Likewise.
4613
2108a63a
KR
46142020-03-17 Kamil Rytarowski <n54@gmx.com>
4615
4616 * sparc-nat.c (gdb_ptrace): New.
4617 * sparc-nat.c (sparc_fetch_inferior_registers)
4618 (sparc_store_inferior_registers) Remove obsolete comment.
4619 * sparc-nat.c (sparc_fetch_inferior_registers)
4620 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
4621 * sparc-nat.c (sparc_fetch_inferior_registers)
4622 (sparc_store_inferior_registers) Use gdb_ptrace.
4623
a225c9a8
KR
46242020-03-17 Kamil Rytarowski <n54@gmx.com>
4625
4626 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
4627 it to the ptrace call.
4628 * sh-nbsd-nat.c (store_registers): Likewise.
4629
98097623
KR
46302020-03-17 Kamil Rytarowski <n54@gmx.com>
4631
4632 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
4633 nbsd_nat_target instead of inf_ptrace_target.
4634 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4635 nbsd_nat_target.
4636
9e38d619
KR
46372020-03-17 Kamil Rytarowski <n54@gmx.com>
4638
4639 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
4640
a2ecbe9f
KR
46412020-03-17 Kamil Rytarowski <n54@gmx.com>
4642
4643 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
4644 <sys/sysctl.h>.
4645 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
4646
58990295
TV
46472020-03-17 Tom de Vries <tdevries@suse.de>
4648
4649 PR gdb/23710
4650 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
4651 fields.
4652 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
4653 fields.
4654 (process_imported_unit_die): Skip import of c++ CUs.
4655
771dd3a8
TT
46562020-03-16 Tom Tromey <tom@tromey.com>
4657
4658 * p-valprint.c (pascal_object_print_value): Initialize
4659 base_value.
4660
817a7585
AK
46612020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
4662 Shahab Vahedi <shahab@synopsys.com>
4663
4664 * Makefile.in: Add arch/arc.o
4665 * configure.tgt: Likewise.
4666 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
4667 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 4668 (arc_read_description): New function to cache target descriptions.
817a7585
AK
4669 * arc-tdep.h (arc_read_description): Add proto type.
4670 * arch/arc.c: New file.
4671 * arch/arc.h: Likewise.
4672 * features/Makefile: Replace old target descriptions with new.
4673 * features/arc-arcompact.c: Remove.
4674 * features/arc-arcompact.xml: Likewise.
4675 * features/arc-v2.c: Likewise
4676 * features/arc-v2.xml: Likewise
4677 * features/arc/aux-arcompact.xml: New file.
4678 * features/arc/aux-v2.xml: Likewise.
4679 * features/arc/core-arcompact.xml: Likewise.
4680 * features/arc/core-v2.xml: Likewise.
4681 * features/arc/aux-arcompact.c: Generate.
4682 * features/arc/aux-v2.c: Likewise.
4683 * features/arc/core-arcompact.c: Likewise.
4684 * features/arc/core-v2.c: Likewise.
4685 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
4686
67430cd0
TT
46872020-03-16 Tom Tromey <tromey@adacore.com>
4688
4689 PR gdb/25663:
4690 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
4691 putting value into bcache.
4692
30efb6c7
SM
46932020-03-16 Simon Marchi <simon.marchi@efficios.com>
4694
4695 PR gdb/21500
4696 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
4697 to...
4698 (amd64_windows_init_abi_common): ... this. Don't set size of
4699 long type.
4700 (amd64_windows_init_abi): New function.
4701 (amd64_cygwin_init_abi): New function.
4702 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
4703 the Cygwin OS ABI.
4704 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
4705 comment.
4706
8db52437
SM
47072020-03-16 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
4710 * windows-tdep.c (CYGWIN_DLL_NAME): New.
4711 (pe_import_directory_entry): New struct type.
4712 (is_linked_with_cygwin_dll): New function.
4713 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
4714 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
4715 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
4716
5982a56a
SM
47172020-03-16 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
4720 i386_cygwin_core_osabi_sniffer.
4721
7a1998df
SM
47222020-03-16 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * i386-cygwin-tdep.c: Rename to...
4725 * i386-windows-tdep.c: ... this.
4726 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
4727 i386-windows-tdep.c.
4728 * configure.tgt: Likewise.
4729
053205cc
SM
47302020-03-16 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
4733 * osabi.c (gdb_osabi_names): Add "Windows".
4734 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
4735 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
4736 (i386_cygwin_core_osabi_sniffer): New function, extracted from
4737 i386_cygwin_osabi_sniffer.
4738 (_initialize_i386_cygwin_tdep): Register OS ABI
4739 GDB_OSABI_WINDOWS for i386.
4740 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
4741 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
4742 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
4743 for x86-64.
4744 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
4745 when the target matches '*-*-mingw*'.
4746
fe4b2ee6
SM
47472020-03-16 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * defs.h (enum gdb_osabi): Move to...
4750 * osabi.h (enum gdb_osabi): ... here.
4751 * gdbarch.sh: Include osabi.h in gdbarch.h.
4752 * gdbarch.h: Re-generate.
4753
cb9b645d
SM
47542020-03-16 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
4757 function.
4758 (_initialize_amd64_windows_tdep): Register osabi sniffer.
4759
3293bbaf
TT
47602020-03-14 Tom Tromey <tom@tromey.com>
4761
4762 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
4763 for C++.
4764 (c_type_print_modifier): Likewise. Add "language" parameter.
4765 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
4766 (c_type_print_base_1): Update.
4767 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
4768 constants.
4769 * type-stack.c (type_stack::insert): Handle tp_atomic and
4770 tp_restrict.
4771 (type_stack::follow_type_instance_flags): Likewise.
4772 (type_stack::follow_types): Likewise. Merge type-following code.
4773 * c-exp.y (RESTRICT, ATOMIC): New tokens.
4774 (space_identifier, cv_with_space_id)
4775 (const_or_volatile_or_space_identifier_noopt)
4776 (const_or_volatile_or_space_identifier): Remove.
4777 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
4778 rules.
4779 (ptr_operator, typebase): Update.
4780 (enum token_flag) <FLAG_C>: New constant.
4781 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
4782 "_Atomic".
4783 (lex_one_token): Handle FLAG_C.
4784
154151a6
KR
47852020-03-14 Kamil Rytarowski <n54@gmx.com>
4786
4787 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
4788 it to the ptrace call.
4789 * m68k-bsd-nat.c (store_registers): Likewise.
4790
bc107784
KR
47912020-03-14 Kamil Rytarowski <n54@gmx.com>
4792
4793 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
4794 gdb_byte *.
4795 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4796 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
4797 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
4798
01a80117
KR
47992020-03-14 Kamil Rytarowski <n54@gmx.com>
4800
4801 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
4802 nbsd_nat_target instead of inf_ptrace_target.
4803 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4804 nbsd_nat_target.
4805
f90280ca
KR
48062020-03-14 Kamil Rytarowski <n54@gmx.com>
4807
4808 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
4809 register_t.
4810
6def66f1
KR
48112020-03-14 Kamil Rytarowski <n54@gmx.com>
4812
4813 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
4814 it to the ptrace call.
4815 * alpha-bsd-nat.c (store_registers): Likewise.
4816
66eaca97
KR
48172020-03-14 Kamil Rytarowski <n54@gmx.com>
4818
4819 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
4820 includes.
4821 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
4822 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4823 fill_fpregset): Likewise.
4824
4fed520b
KR
48252020-03-14 Kamil Rytarowski <n54@gmx.com>
4826
4827 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
4828 nbsd_nat_target instead of inf_ptrace_target.
4829 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4830 nbsd_nat_target.
4831
2190cf06
KR
48322020-03-14 Kamil Rytarowski <n54@gmx.com>
4833
4834 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
4835 register_t.
4836
75c56d3d
KR
48372020-03-14 Kamil Rytarowski <n54@gmx.com>
4838
4839 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
4840 it to the ptrace call.
4841 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
4842 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
4843 * arm-nbsd-nat.c (store_register): Likewise.
4844 * arm-nbsd-nat.c (store_regs): Likewise.
4845 * arm-nbsd-nat.c (store_fp_register): Likewise.
4846 * arm-nbsd-nat.c (store_fp_regs): Likewise.
4847
6018d381
KR
48482020-03-14 Kamil Rytarowski <n54@gmx.com>
4849
4850 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
4851 nbsd_nat_target instead of inf_ptrace_target.
4852 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4853 nbsd_nat_target.
4854
013f99f0
KR
48552020-03-14 Kamil Rytarowski <n54@gmx.com>
4856
4857 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
4858 it to the ptrace call.
4859 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
4860
12753073
KR
48612020-03-14 Kamil Rytarowski <n54@gmx.com>
4862
6227b330
KR
4863 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
4864 it to the ptrace call.
4865 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
4866
48672020-03-14 Kamil Rytarowski <n54@gmx.com>
4868
4869 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
4870 gdb_byte *.
12753073
KR
4871 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
4872
d5be5fa4
KR
48732020-03-14 Kamil Rytarowski <n54@gmx.com>
4874
4875 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
4876 instead of inf_ptrace_target.
4877 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4878 nbsd_nat_target.
4879
8110f842
KR
48802020-03-14 Kamil Rytarowski <n54@gmx.com>
4881
4882 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4883 register_t.
4884
52feded7
KR
48852020-03-14 Kamil Rytarowski <n54@gmx.com>
4886
4887 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4888 register_t.
4889
25567eee
KR
48902020-03-14 Kamil Rytarowski <n54@gmx.com>
4891
4892 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
4893 register_t.
4894
426a9c18
TT
48952020-03-13 Tom Tromey <tom@tromey.com>
4896
4897 * value.h (val_print): Don't declare.
4898 * valprint.h (val_print_array_elements)
4899 (val_print_scalar_formatted, generic_val_print): Don't declare.
4900 * valprint.c (generic_val_print_array): Take a struct value.
4901 (generic_val_print_ptr, generic_val_print_memberptr)
4902 (generic_val_print_bool, generic_val_print_int)
4903 (generic_val_print_char, generic_val_print_complex)
4904 (generic_val_print): Remove.
4905 (generic_value_print): Update.
4906 (do_val_print): Remove unused parameters. Don't call
4907 la_val_print.
4908 (val_print): Remove.
4909 (common_val_print): Update. Don't call value_check_printable.
4910 (val_print_scalar_formatted, val_print_array_elements): Remove.
4911 * rust-lang.c (rust_val_print): Remove.
4912 (rust_language_defn): Update.
4913 * p-valprint.c (pascal_val_print): Remove.
4914 (pascal_value_print_inner): Update.
4915 (pascal_object_print_val_fields, pascal_object_print_val):
4916 Remove.
4917 (pascal_object_print_static_field): Update.
4918 * p-lang.h (pascal_val_print): Don't declare.
4919 * p-lang.c (pascal_language_defn): Update.
4920 * opencl-lang.c (opencl_language_defn): Update.
4921 * objc-lang.c (objc_language_defn): Update.
4922 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
4923 * m2-lang.h (m2_val_print): Don't declare.
4924 * m2-lang.c (m2_language_defn): Update.
4925 * language.h (struct language_defn) <la_val_print>: Remove.
4926 * language.c (unk_lang_value_print_inner): Rename. Change
4927 argument types.
4928 (unknown_language_defn, auto_language_defn): Update.
4929 * go-valprint.c (go_val_print): Remove.
4930 * go-lang.h (go_val_print): Don't declare.
4931 * go-lang.c (go_language_defn): Update.
4932 * f-valprint.c (f_val_print): Remove.
4933 * f-lang.h (f_value_print): Don't declare.
4934 * f-lang.c (f_language_defn): Update.
4935 * d-valprint.c (d_val_print): Remove.
4936 * d-lang.h (d_value_print): Don't declare.
4937 * d-lang.c (d_language_defn): Update.
4938 * cp-valprint.c (cp_print_value_fields)
4939 (cp_print_value_fields_rtti, cp_print_value): Remove.
4940 (cp_print_static_field): Update.
4941 * c-valprint.c (c_val_print_array, c_val_print_ptr)
4942 (c_val_print_struct, c_val_print_union, c_val_print_int)
4943 (c_val_print_memberptr, c_val_print): Remove.
4944 * c-lang.h (c_val_print_array, cp_print_value_fields)
4945 (cp_print_value_fields_rtti): Don't declare.
4946 * c-lang.c (c_language_defn, cplus_language_defn)
4947 (asm_language_defn, minimal_language_defn): Update.
4948 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
4949 (ada_val_print_enum): Take a struct value.
4950 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
4951 (ada_val_print): Remove.
4952 (ada_value_print_1): Update.
4953 (printable_val_type): Remove.
4954 * ada-lang.h (ada_val_print): Don't declare.
4955 * ada-lang.c (ada_language_defn): Update.
4956
42331a1e
TT
49572020-03-13 Tom Tromey <tom@tromey.com>
4958
4959 * valprint.c (do_val_print): Update.
4960 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
4961 a struct value.
4962 (value_to_value_object_no_release): Declare.
4963 * python/py-value.c (value_to_value_object_no_release): New
4964 function.
4965 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
4966 struct value.
4967 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
4968 function.
4969 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
4970 a struct value.
4971 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
4972 Declare.
4973 (gdbscm_apply_val_pretty_printer): Take a struct value.
4974 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
4975 value.
4976 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
4977 value.
4978 * extension-priv.h (struct extension_language_ops)
4979 <apply_val_pretty_printer>: Take a struct value.
4980 * cp-valprint.c (cp_print_value): Create a struct value.
4981 (cp_print_value): Update.
4982
3a916a97
TT
49832020-03-13 Tom Tromey <tom@tromey.com>
4984
4985 * ada-valprint.c (print_field_values): Call common_val_print.
4986
b59eac37
TT
49872020-03-13 Tom Tromey <tom@tromey.com>
4988
4989 * ada-valprint.c (val_print_packed_array_elements): Remove
4990 bitoffset and val parameters. Call common_val_print.
4991 (ada_val_print_string): Remove offset, address, and original_value
4992 parameters.
4993 (ada_val_print_array): Update.
4994 (ada_value_print_array): New function.
4995 (ada_value_print_1): Call it.
4996
03371129
TT
49972020-03-13 Tom Tromey <tom@tromey.com>
4998
4999 * ada-valprint.c (ada_value_print): Use common_val_print.
5000
2e088f8b
TT
50012020-03-13 Tom Tromey <tom@tromey.com>
5002
5003 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
5004
39ef85a8
TT
50052020-03-13 Tom Tromey <tom@tromey.com>
5006
5007 * ada-valprint.c (ada_value_print_num): New function.
5008 (ada_value_print_1): Use it.
5009
b9fa6e07
TT
50102020-03-13 Tom Tromey <tom@tromey.com>
5011
5012 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
5013
416595d6
TT
50142020-03-13 Tom Tromey <tom@tromey.com>
5015
5016 * ada-valprint.c (ada_value_print_ptr): New function.
5017 (ada_value_print_1): Use it.
5018
5b5e15ec
TT
50192020-03-13 Tom Tromey <tom@tromey.com>
5020
5021 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
5022 call common_val_print.
5023 (ada_val_print_1): Update.
5024 (ada_value_print_1): New function.
5025 (ada_value_print_inner): Rewrite.
5026
fbf54e75
TT
50272020-03-13 Tom Tromey <tom@tromey.com>
5028
5029 * cp-valprint.c (cp_print_value_fields): Update.
5030 (cp_print_value): New function.
5031
64b653ca
TT
50322020-03-13 Tom Tromey <tom@tromey.com>
5033
5034 * m2-valprint.c (m2_value_print_inner): Use
5035 cp_print_value_fields.
5036 * cp-valprint.c (cp_print_value_fields): New function.
5037 * c-valprint.c (c_value_print_struct): New function.
5038 (c_value_print_inner): Use c_value_print_struct.
5039 * c-lang.h (cp_print_value_fields): Declare.
5040
6999f067
TT
50412020-03-13 Tom Tromey <tom@tromey.com>
5042
5043 * c-valprint.c (c_value_print_array): New function.
5044 (c_value_print_inner): Use it.
5045
ce80b8bd
TT
50462020-03-13 Tom Tromey <tom@tromey.com>
5047
5048 * c-valprint.c (c_value_print_memberptr): New function.
5049 (c_value_print_inner): Use it.
5050
2faac269
TT
50512020-03-13 Tom Tromey <tom@tromey.com>
5052
5053 * c-valprint.c (c_value_print_int): New function.
5054 (c_value_print_inner): Use it.
5055
da3e2c29
TT
50562020-03-13 Tom Tromey <tom@tromey.com>
5057
5058 * c-valprint.c (c_value_print_ptr): New function.
5059 (c_value_print_inner): Use it.
5060
50836231
TT
50612020-03-13 Tom Tromey <tom@tromey.com>
5062
5063 * c-valprint.c (c_value_print_inner): Rewrite.
5064
4f412b6e
TT
50652020-03-13 Tom Tromey <tom@tromey.com>
5066
5067 * valprint.c (generic_value_print_complex): New function.
5068 (generic_value_print): Use it.
5069
f5354008
TT
50702020-03-13 Tom Tromey <tom@tromey.com>
5071
5072 * valprint.c (generic_val_print_float): Don't call
5073 val_print_scalar_formatted.
5074 (generic_val_print, generic_value_print): Update.
5075
3eec3b05
TT
50762020-03-13 Tom Tromey <tom@tromey.com>
5077
5078 * valprint.c (generic_value_print_char): New function
5079 (generic_value_print): Use it.
5080
fdddfccb
TT
50812020-03-13 Tom Tromey <tom@tromey.com>
5082
5083 * valprint.c (generic_value_print_int): New function.
5084 (generic_value_print): Use it.
5085
6dde7521
TT
50862020-03-13 Tom Tromey <tom@tromey.com>
5087
5088 * valprint.c (generic_value_print_bool): New function.
5089 (generic_value_print): Use it.
5090
4112d2e6
TT
50912020-03-13 Tom Tromey <tom@tromey.com>
5092
5093 * valprint.c (generic_val_print_func): Simplify.
5094 (generic_val_print, generic_value_print): Update.
5095
65786af6
TT
50962020-03-13 Tom Tromey <tom@tromey.com>
5097
5098 * valprint.c (generic_val_print_flags): Remove.
5099 (generic_val_print, generic_value_print): Update.
5100 (val_print_type_code_flags): Add original_value parameter.
5101
40f3ce18
TT
51022020-03-13 Tom Tromey <tom@tromey.com>
5103
5104 * valprint.c (generic_val_print): Update.
5105 (generic_value_print): Update.
5106 * valprint.c (generic_val_print_enum): Don't call
5107 val_print_scalar_formatted.
5108
2a5b130b
TT
51092020-03-13 Tom Tromey <tom@tromey.com>
5110
5111 * valprint.c (generic_value_print): Call generic_value_print_ptr.
5112 * valprint.c (generic_value_print_ptr): New function.
5113
abc66ce9
TT
51142020-03-13 Tom Tromey <tom@tromey.com>
5115
5116 * valprint.c (generic_value_print): Rewrite.
5117
07a32858
TT
51182020-03-13 Tom Tromey <tom@tromey.com>
5119
5120 * p-valprint.c (pascal_object_print_value_fields)
5121 (pascal_object_print_value): New functions.
5122
64d64d3a
TT
51232020-03-13 Tom Tromey <tom@tromey.com>
5124
5125 * p-valprint.c (pascal_value_print_inner): Rewrite.
5126
6a95a1f5
TT
51272020-03-13 Tom Tromey <tom@tromey.com>
5128
5129 * f-valprint.c (f_value_print_innner): Rewrite.
5130
59fcdac6
TT
51312020-03-13 Tom Tromey <tom@tromey.com>
5132
5133 * m2-valprint.c (m2_print_unbounded_array): New overload.
5134 (m2_print_unbounded_array): Update.
5135 (m2_print_array_contents): Take a struct value.
5136 (m2_value_print_inner): Rewrite.
5137
d133c3e1
TT
51382020-03-13 Tom Tromey <tom@tromey.com>
5139
5140 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
5141 (d_value_print_inner): New function.
5142 * d-lang.h (d_value_print_inner): Declare.
5143 * d-lang.c (d_language_defn): Use d_value_print_inner.
5144
23b0f06b
TT
51452020-03-13 Tom Tromey <tom@tromey.com>
5146
5147 * go-valprint.c (go_value_print_inner): New function.
5148 * go-lang.h (go_value_print_inner): Declare.
5149 * go-lang.c (go_language_defn): Use go_value_print_inner.
5150
5f56f7cb
TT
51512020-03-13 Tom Tromey <tom@tromey.com>
5152
5153 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
5154 API.
5155 (rust_val_print): Rewrite.
5156 (rust_value_print_inner): New function, from rust_val_print.
5157 (rust_language_defn): Use rust_value_print_inner.
5158
26792ee0
TT
51592020-03-13 Tom Tromey <tom@tromey.com>
5160
5161 * ada-valprint.c (ada_value_print_inner): New function.
5162 * ada-lang.h (ada_value_print_inner): Declare.
5163 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
5164
24051bbe
TT
51652020-03-13 Tom Tromey <tom@tromey.com>
5166
5167 * f-valprint.c (f_value_print_innner): New function.
5168 * f-lang.h (f_value_print_innner): Declare.
5169 * f-lang.c (f_language_defn): Use f_value_print_innner.
5170
c0941be6
TT
51712020-03-13 Tom Tromey <tom@tromey.com>
5172
5173 * p-valprint.c (pascal_value_print_inner): New function.
5174 * p-lang.h (pascal_value_print_inner): Declare.
5175 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
5176
62c4663d
TT
51772020-03-13 Tom Tromey <tom@tromey.com>
5178
5179 * m2-valprint.c (m2_value_print_inner): New function.
5180 * m2-lang.h (m2_value_print_inner): Declare.
5181 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
5182
62182190
TT
51832020-03-13 Tom Tromey <tom@tromey.com>
5184
5185 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
5186 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
5187 * c-valprint.c (c_value_print_inner): New function.
5188 * c-lang.h (c_value_print_inner): Declare.
5189 * c-lang.c (c_language_defn, cplus_language_defn)
5190 (asm_language_defn, minimal_language_defn): Use
5191 c_value_print_inner.
5192
1e592a8a
TT
51932020-03-13 Tom Tromey <tom@tromey.com>
5194
5195 * p-valprint.c (pascal_object_print_value_fields): Now static.
5196 * p-lang.h (pascal_object_print_value_fields): Don't declare.
5197
7fe471e9
TT
51982020-03-13 Tom Tromey <tom@tromey.com>
5199
5200 * c-valprint.c (c_val_print_array): Simplify.
5201
d121c6ce
TT
52022020-03-13 Tom Tromey <tom@tromey.com>
5203
5204 * valprint.c (value_print_array_elements): New function.
5205 * valprint.h (value_print_array_elements): Declare.
5206
4dba70ee
TT
52072020-03-13 Tom Tromey <tom@tromey.com>
5208
5209 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
5210 * mips-tdep.c (mips_print_register): Use
5211 value_print_scalar_formatted.
5212
4f9ae810
TT
52132020-03-13 Tom Tromey <tom@tromey.com>
5214
5215 * valprint.h (value_print_scalar_formatted): Declare.
5216 * valprint.c (value_print_scalar_formatted): New function.
5217
156bfec9
TT
52182020-03-13 Tom Tromey <tom@tromey.com>
5219
5220 * valprint.h (generic_value_print): Declare.
5221 * valprint.c (generic_value_print): New function.
5222
2b4e573d
TT
52232020-03-13 Tom Tromey <tom@tromey.com>
5224
5225 * valprint.c (do_val_print): Call la_value_print_inner, if
5226 available.
5227 * rust-lang.c (rust_language_defn): Update.
5228 * p-lang.c (pascal_language_defn): Update.
5229 * opencl-lang.c (opencl_language_defn): Update.
5230 * objc-lang.c (objc_language_defn): Update.
5231 * m2-lang.c (m2_language_defn): Update.
5232 * language.h (struct language_defn) <la_value_print_inner>: New
5233 member.
5234 * language.c (unknown_language_defn, auto_language_defn): Update.
5235 * go-lang.c (go_language_defn): Update.
5236 * f-lang.c (f_language_defn): Update.
5237 * d-lang.c (d_language_defn): Update.
5238 * c-lang.c (c_language_defn, cplus_language_defn)
5239 (asm_language_defn, minimal_language_defn): Update.
5240 * ada-lang.c (ada_language_defn): Update.
5241
a1f6a07c
TT
52422020-03-13 Tom Tromey <tom@tromey.com>
5243
5244 * c-valprint.c (c_value_print): Use common_val_print.
5245
410cf315
TT
52462020-03-13 Tom Tromey <tom@tromey.com>
5247
5248 * cp-valprint.c (cp_print_static_field): Use common_val_print.
5249
72a45c93
TT
52502020-03-13 Tom Tromey <tom@tromey.com>
5251
5252 * f-valprint.c (f77_print_array_1, f_val_print): Use
5253 common_val_print.
5254
040f66bd
TT
52552020-03-13 Tom Tromey <tom@tromey.com>
5256
5257 * riscv-tdep.c (riscv_print_one_register_info): Use
5258 common_val_print.
5259
a6e05a6c
TT
52602020-03-13 Tom Tromey <tom@tromey.com>
5261
5262 * mi/mi-main.c (output_register): Use common_val_print.
5263
3444c526
TT
52642020-03-13 Tom Tromey <tom@tromey.com>
5265
5266 * infcmd.c (default_print_one_register_info): Use
5267 common_val_print.
5268
c2a44efe
TT
52692020-03-13 Tom Tromey <tom@tromey.com>
5270
5271 * valprint.h (common_val_print_checked): Declare.
5272 * valprint.c (common_val_print_checked): New function.
5273 * stack.c (print_frame_arg): Use common_val_print_checked.
5274
b0c26e99
TT
52752020-03-13 Tom Tromey <tom@tromey.com>
5276
5277 * valprint.c (do_val_print): New function, from val_print.
5278 (val_print): Use do_val_print.
5279 (common_val_print): Use do_val_print.
5280
ce3acbe9
TT
52812020-03-13 Tom Tromey <tom@tromey.com>
5282
5283 * valprint.c (value_print): Use scoped_value_mark.
5284
96c7f873
TV
52852020-03-13 Tom de Vries <tdevries@suse.de>
5286
5287 PR symtab/25646
5288 * psymtab.c (partial_symtab::partial_symtab): Don't set
5289 globals_offset and statics_offset. Push element onto
5290 current_global_psymbols and current_static_psymbols stacks.
5291 (concat): New function.
5292 (end_psymtab_common): Set globals_offset and statics_offset. Pop
5293 element from current_global_psymbols and current_static_psymbols
5294 stacks. Concat popped elements to global_psymbols and
5295 static_symbols.
5296 (add_psymbol_to_list): Use current_global_psymbols and
5297 current_static_psymbols stacks.
5298 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
5299 current_static_psymbols fields.
5300
6ba0a321
CB
53012020-03-12 Christian Biesinger <cbiesinger@google.com>
5302
5303 * corelow.c (sniff_core_bfd): Remove.
5304 (class core_target) <m_core_vec>: Remove.
5305 (core_target::core_target): Update.
5306 (core_file_fns): Remove.
5307 (deprecated_add_core_fns): Remove.
5308 (default_core_sniffer): Remove.
5309 (sniff_core_bfd): Remove.
5310 (default_check_format): Remove.
5311 (gdb_check_format): Remove.
5312 (core_target_open): Update.
5313 (core_target::get_core_register_section): Update.
5314 (get_core_registers_cb): Update.
5315 (core_target::fetch_registers): Update.
5316 * gdbcore.h (struct core_fns): Remove.
5317 (deprecated_add_core_fns): Remove.
5318 (default_core_sniffer): Remove.
5319 (default_check_format): Remove.
5320
227031b2
TT
53212020-03-12 Tom Tromey <tom@tromey.com>
5322
5323 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
5324 CORE_ADDR.
5325 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
5326
53807e9f
TT
53272020-03-12 Tom Tromey <tom@tromey.com>
5328
5329 * remote.c (remote_target::download_tracepoint)
5330 (remote_target::enable_tracepoint)
5331 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
5332 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
5333 sprintf_vma.
5334
64f25102
TT
53352020-03-12 Tom Tromey <tom@tromey.com>
5336
5337 * symfile-mem.c: Update CORE_ADDR size assert.
5338
272cd5a3
SM
53392020-03-12 Simon Marchi <simon.marchi@efficios.com>
5340
5341 * selftest.m4: Move to gdbsupport/.
5342 * acinclude.m4: Update path to selftest.m4.
5343
74cd3f9d
SM
53442020-03-12 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
5347 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
5348 gdbarch-selfselftests.c and selftest-arch.c.
5349 (SUBDIR_UNITTESTS_OBS): Rename to...
5350 (SELFTESTS_OBS): ... this.
5351 (COMMON_SFILES): Remove disasm-selftests.c and
5352 gdbarch-selftests.c.
5353 * configure.ac: Don't add selftest-arch.{c,o} to
5354 CONFIG_{SRCS,OBS}.
5355 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
5356 preprocessor conditions.
5357
db6878ac
SM
53582020-03-12 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * configure.ac: Don't source bfd/development.sh.
5361 * selftest.m4: Modify comment.
5362 * configure: Re-generate.
5363
4d696a5c
SM
53642020-03-12 Simon Marchi <simon.marchi@efficios.com>
5365
5366 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
5367 not "true" or "false".
5368 * configure: Re-generate.
5369
8dd8e1c7
CB
53702020-03-12 Christian Biesinger <cbiesinger@google.com>
5371
5372 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
5373 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
5374 renamed to arm_nbsd_supply_gregset.
5375 (fetch_register): Update to call arm_nbsd_supply_gregset.
5376 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
5377 (arm_netbsd_nat_target::fetch_registers): Update.
5378 (fetch_elfcore_registers): Removed.
5379 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
5380 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
5381 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
5382 not require NetBSD system headers.
5383 (arm_nbsd_regset): New struct.
5384 (arm_nbsd_iterate_over_regset_sections): New function.
5385 (arm_netbsd_init_abi_common): Updated to call
5386 set_gdbarch_iterate_over_regset_sections.
5387 * arm-nbsd-tdep.h: New file.
5388
dd69bf7a
KB
53892020-03-11 Kevin Buettner <kevinb@redhat.com>
5390
5391 * symtab.c (find_pc_sect_line): Add check which prevents infinite
5392 recursion.
5393
a0761e34
SM
53942020-03-11 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * configure: Re-generate.
5397
e7a82140
TT
53982020-03-11 Tom Tromey <tromey@adacore.com>
5399
5400 * ada-typeprint.c (print_choices): Fix comment.
5401
dcc050c8
AB
54022020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
5405 previous item in the list, when the list has no items.
5406
1c33af77
TV
54072020-03-11 Tom de Vries <tdevries@suse.de>
5408
5409 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
5410 PROP_LOCLIST handling code.
5411
8c95582d
AB
54122020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * buildsym-legacy.c (record_line): Pass extra parameter to
5415 record_line.
5416 * buildsym.c (buildsym_compunit::record_line): Take an extra
5417 parameter, reduce duplication in the line table, and record the
5418 is_stmt flag in the line table.
5419 * buildsym.h (buildsym_compunit::record_line): Add extra
5420 parameter.
5421 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
5422 non-statement lines.
5423 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
5424 this to the symtab builder.
5425 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
5426 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
5427 through to dwarf_record_line_1.
5428 * infrun.c (process_event_stop_test): When stepping, don't stop at
5429 a non-statement instruction, and only refresh the step info when
5430 we land in the middle of a line's range. Also add an extra
5431 comment.
5432 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
5433 field.
5434 * record-btrace.c (btrace_find_line_range): Only record lines
5435 marked as is-statement.
5436 * stack.c (frame_show_address): Show the frame address if we are
5437 in a non-statement sal.
5438 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
5439 (maintenance_print_one_line_table): Print a header for the is_stmt
5440 column, and include is_stmt information in the output.
5441 * symtab.c (find_pc_sect_line): Find lines marked as statements in
5442 preference to non-statements.
5443 (find_pcs_for_symtab_line): Prefer is-statement entries.
5444 (find_line_common): Likewise.
5445 * symtab.h (struct linetable_entry): Add is_stmt field.
5446 (struct symtab_and_line): Likewise.
5447 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
5448 arranging the line table.
5449
e4003a34
TV
54502020-03-07 Tom de Vries <tdevries@suse.de>
5451
5452 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
5453 DIE.
5454
e8932576
TT
54552020-03-07 Tom Tromey <tom@tromey.com>
5456
5457 * valops.c (value_literal_complex): Remove obsolete comment.
5458 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
5459 comment.
5460
29734269
SM
54612020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5462
5463 * infrun.h: Forward-declare thread_info.
5464 (set_step_info): Add thread_info parameter, add doc.
5465 * infrun.c (set_step_info): Add thread_info parameter, move doc
5466 to header.
5467 * infrun.c (process_event_stop_test): Pass thread to
5468 set_step_info call.
5469 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
5470 set_step_info.
5471 (prepare_one_step): Add thread_info parameter, pass it to
5472 set_step_frame and prepare_one_step (recursive) call.
5473 (step_1): Pass thread to prepare_one_step call.
5474 (step_command_fsm::should_stop): Pass thread to
5475 prepare_one_step.
5476 (until_next_fsm): Pass thread to set_step_frame call.
5477 (finish_command): Pass thread to set_step_info call.
5478
b7d64b29
HD
54792020-03-06 Hannes Domani <ssbssa@yahoo.de>
5480
5481 * windows-tdep.c (windows_solib_create_inferior_hook):
5482 Check if inferior is running.
5483
09f2921c
TV
54842020-03-06 Tom de Vries <tdevries@suse.de>
5485
5486 * NEWS: Fix "the the".
5487 * ctfread.c: Same.
5488
fd760e79
TV
54892020-03-06 Tom de Vries <tdevries@suse.de>
5490
5491 * psymtab.c (psymtab_to_symtab): Don't print "done.".
5492
20ea4a60
AB
54932020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * .dir-locals.el: Add a comment referencing the other copies of
5496 this file.
5497
0afbabf0
JB
54982020-03-05 John Baldwin <jhb@FreeBSD.org>
5499
5500 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
5501 psargs.
5502
842806cb
TBA
55032020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5504
5505 * .gitattributes: New file.
5506
be1e3d3e
TT
55072020-03-04 Tom Tromey <tom@tromey.com>
5508
5509 * symmisc.c (print_symbol_bcache_statistics)
5510 (print_objfile_statistics): Update.
5511 * symfile.c (allocate_symtab): Use intern.
5512 * psymtab.c (partial_symtab::partial_symtab): Use intern.
5513 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5514 macro_cache>: Remove.
5515 <string_cache>: New member.
5516 (struct objfile) <intern>: New methods.
5517 * elfread.c (elf_symtab_read): Use intern.
5518 * dwarf2/read.c (fixup_go_packaging): Intern package name.
5519 (dwarf2_compute_name, dwarf2_physname)
5520 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
5521 names.
5522 (guess_partial_die_structure_name): Update.
5523 (partial_die_info::fixup): Intern name.
5524 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
5525 name.
5526 (dwarf2_name): Intern name. Update.
5527 * buildsym.c (buildsym_compunit::get_macro_table): Use
5528 string_cache.
5529
4e7625fd
TT
55302020-03-04 Tom Tromey <tom@tromey.com>
5531
5532 * jit.c (bfd_open_from_target_memory): Make "target" const.
5533 * corefile.c (gnutarget): Now const.
5534 * gdbcore.h (gnutarget): Now const.
5535
46f9f931
HD
55362020-03-04 Hannes Domani <ssbssa@yahoo.de>
5537
5538 * NEWS: Mention support for WOW64 processes.
5539 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
5540 (amd64_windows_segment_register_p): Remove static.
5541 (_initialize_amd64_windows_nat): Update.
5542 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
5543 * i386-windows-nat.c (context_offset): Update.
5544 (i386_mappings): Rename and remove static.
5545 (i386_windows_segment_register_p): Remove static.
5546 (_initialize_i386_windows_nat): Update.
5547 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
5548 (STATUS_WX86_SINGLE_STEP): New macro.
5549 (EnumProcessModulesEx): New macro.
5550 (Wow64SuspendThread): New macro.
5551 (Wow64GetThreadContext): New macro.
5552 (Wow64SetThreadContext): New macro.
5553 (Wow64GetThreadSelectorEntry): New macro.
5554 (windows_set_context_register_offsets): Add static.
5555 (windows_set_segment_register_p): Likewise.
5556 (windows_add_thread): Adapt for WOW64 processes.
5557 (windows_fetch_one_register): Likewise.
5558 (windows_nat_target::fetch_registers): Likewise.
5559 (windows_store_one_register): Likewise.
5560 (display_selector): Likewise.
5561 (display_selectors): Likewise.
5562 (handle_exception): Likewise.
5563 (windows_continue): Likewise.
5564 (windows_nat_target::resume): Likewise.
5565 (windows_add_all_dlls): Likewise.
5566 (do_initial_windows_stuff): Likewise.
5567 (windows_nat_target::attach): Likewise.
5568 (windows_get_exec_module_filename): Likewise.
5569 (windows_nat_target::create_inferior): Likewise.
5570 (windows_xfer_siginfo): Likewise.
5571 (_initialize_loadable): Initialize Wow64SuspendThread,
5572 Wow64GetThreadContext, Wow64SetThreadContext,
5573 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
5574 * windows-nat.h (windows_set_context_register_offsets):
5575 Remove declaration.
5576 (windows_set_segment_register_p): Likewise.
5577 (i386_windows_segment_register_p): Add declaration.
5578 (amd64_windows_segment_register_p): Likewise.
5579
440cf44e
LM
55802020-03-04 Luis Machado <luis.machado@linaro.org>
5581
5582 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
5583 in "info registers" for AArch64/ARM.
5584
5585 The change caused "info registers" to not print GPR's.
5586
5587 gdb/ChangeLog:
5588
5589 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
5590
5591 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5592 when reg->group is empty and reggroup is not.
5593
1009d92f
TT
55942020-03-03 Tom Tromey <tromey@adacore.com>
5595
5596 * dwarf2/frame.c (struct dwarf2_frame_cache)
5597 <checked_tailcall_bottom, entry_cfa_sp_offset,
5598 entry_cfa_sp_offset_p>: Remove members.
5599 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
5600 (dwarf2_frame_prev_register): Don't call
5601 dwarf2_tailcall_sniffer_first.
5602 (dwarf2_append_unwinders): Don't append tailcall unwinder.
5603 * frame-unwind.c (add_unwinder): New fuction.
5604 (frame_unwind_init): Use it. Add tailcall unwinder.
5605
5e5d66b6
AB
56062020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
5607 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5608
5609 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
5610 value should be printed as true.
5611
584cf46d
HD
56122020-03-03 Hannes Domani <ssbssa@yahoo.de>
5613
5614 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
5615 (windows_init_abi): Set and use windows_so_ops.
5616
7b973adc
SDJ
56172020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
5618
5619 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
5620 when verifying if dealing with a convenience variable.
5621
bb7b70ab
LM
56222020-03-03 Luis Machado <luis.machado@linaro.org>
5623
5624 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
5625
9822cb57
SM
56262020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5627
5628 * infrun.c (gdbarch_supports_displaced_stepping): New.
5629 (use_displaced_stepping): Break up conditions in smaller pieces.
5630 Use gdbarch_supports_displaced_stepping.
5631 (displaced_step_prepare_throw): Use
5632 gdbarch_supports_displaced_stepping.
5633
63e163f2
AB
56342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5635
5636 * NEWS: Mention new behaviour of the history filename.
5637 * top.c (write_history_p): Add comment.
5638 (show_write_history_p): Add header comment, give a different
5639 message when history writing is on, but the history filename is
5640 empty.
5641 (history_filename): Add comment.
5642 (history_filename_empty): New function.
5643 (show_history_filename): Add header comment, give a different
5644 message when the filename is empty.
5645 (init_history): Compare history_filename against nullptr, and only
5646 read history if the filename is not empty.
5647 (set_history_filename): Add header comment, and only make
5648 non-empty filenames absolute.
5649 (init_main): Make the filename argument to 'set history filename'
5650 optional.
5651
81b86b97
CB
56522020-03-02 Christian Biesinger <cbiesinger@google.com>
5653
5654 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
5655 (arm_supply_vfpregset): ...this, and update to use VFP registers.
5656 (fetch_fp_register): Update.
5657 (fetch_fp_regs): Update.
5658 (store_fp_register): Update.
5659 (store_fp_regs): Update.
5660 (arm_netbsd_nat_target::read_description): New function.
5661 (fetch_elfcore_registers): Update.
5662
24ed6739
AB
56632020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
5666 general_thread if the stop reply is missing a thread-id.
5667 (remote_target::process_stop_reply): Use the first non-exited
5668 thread if the target didn't pass a thread-id.
5669 * infrun.c (do_target_wait): Move call to
5670 switch_to_inferior_no_thread to ....
5671 (do_target_wait_1): ... here.
5672
a84bb2a0
JT
56732020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
5674
5675 * debuginfod-support.c: Include defs.h first.
5676
658dadf0
TV
56772020-02-28 Tom de Vries <tdevries@suse.de>
5678
5679 * symfile.c (set_initial_language): Use default language for lookup.
5680
4ebe4877
SM
56812020-02-28 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
5684 reader variable, pass `this` to read_cutu_die_from_dwo.
5685
e5da1139
AM
56862020-02-27 Aaron Merey <amerey@redhat.com>
5687
5688 * source.c (open_source_file): Check for nullptr when computing
5689 srcpath.
5690
317f7127
TT
56912020-02-27 Tom Tromey <tromey@adacore.com>
5692
5693 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
5694 member.
5695 (dwarf2_add_field): Don't update nfields.
5696 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
5697
3104d9ee
AB
56982020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
5701 abs.
5702
b83470bf
TT
57032020-02-26 Tom Tromey <tom@tromey.com>
5704
5705 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
5706 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
5707 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
5708 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
5709 per_cu_data.
5710
edfe0a0c
TT
57112020-02-26 Tom Tromey <tom@tromey.com>
5712
5713 * dwarf2/index-write.c (psym_index_map): Change type.
5714 (add_address_entry_worker, write_one_signatured_type)
5715 (recursively_count_psymbols, recursively_write_psymbols)
5716 (class debug_names, psyms_seen_size, write_gdbindex)
5717 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
5718
0d79cdc4
AM
57192020-02-26 Aaron Merey <amerey@redhat.com>
5720
5721 * Makefile.in: Handle optional debuginfod support.
5722 * NEWS: Update.
5723 * README: Add --with-debuginfod summary.
5724 * config.in: Regenerate.
5725 * configure: Regenerate.
5726 * configure.ac: Handle optional debuginfod support.
5727 * debuginfod-support.c: debuginfod helper functions.
5728 * debuginfod-support.h: Ditto.
5729 * doc/gdb.texinfo: Add --with-debuginfod to configure options
5730 summary.
5731 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
5732 when a dwz file cannot be found.
5733 * elfread.c (elf_symfile_read): Query debuginfod servers when a
5734 debuginfo file cannot be found.
5735 * source.c (open_source_file): Query debuginfod servers when a
5736 source file cannot be found.
5737 * top.c (print_gdb_configuration): Include
5738 --{with,without}-debuginfod in the output.
5739
b65ce565
JG
57402020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5741
5742 * thread.c (thr_try_catch_cmd): Print thread name.
5743
d4c9a4f8
SM
57442020-02-26 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
5747 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5748 dwarf2_fetch_die_type_sect_off): Move to...
5749 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5750 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5751 dwarf2_fetch_die_type_sect_off): ... here.
5752 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5753 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5754 dwarf2_fetch_die_type_sect_off): Move doc to header file.
5755
0dce4280
TV
57562020-02-26 Tom de Vries <tdevries@suse.de>
5757
5758 PR gdb/25603
5759 * symfile.c (set_initial_language): Exit-early if
5760 language_mode == language_mode_manual.
5761
450a1bfc
SM
57622020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5763
5764 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
5765 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
5766 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
5767
9e80cfa1
AB
57682020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5769
5770 * gdbtypes.c (create_array_type_with_stride): Handle negative
5771 array strides.
5772 * valarith.c (value_subscripted_rvalue): Likewise.
5773
09624f1f
LM
57742020-02-25 Luis Machado <luis.machado@linaro.org>
5775
5776 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
5777
8cb5117c
SM
57782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5779
5780 * loc.h (dwarf2_get_die_type): Move to...
5781 * read.h (dwarf2_get_die_type): ... here.
5782 * read.c (dwarf2_get_die_type): Move doc to header.
5783
c325c44e
JB
57842020-02-25 Joel Brobecker <brobecker@adacore.com>
5785
5786 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
5787 'gnulib/Makefile.in' to the list.
5788
4ac93832
TT
57892020-02-24 Tom Tromey <tom@tromey.com>
5790
5791 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
5792 Remove.
5793 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
5794 XOBNEWVEC.
5795
197400e8
TT
57962020-02-24 Tom Tromey <tom@tromey.com>
5797
5798 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
5799 New method.
5800 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
5801 (dw2_do_instantiate_symtab, dw2_get_file_names)
5802 (build_type_psymtab_dependencies, load_full_type_unit): Update.
5803
76935768
TT
58042020-02-24 Tom Tromey <tom@tromey.com>
5805
5806 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
5807 make_scoped_restore.
5808 (dwarf2_psymtab::read_symtab): Don't clear
5809 reading_partial_symbols.
5810
a88ef40d
TV
58112020-02-24 Tom de Vries <tdevries@suse.de>
5812
5813 PR gdb/25592
5814 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
5815
c9af6521
TV
58162020-02-24 Tom de Vries <tdevries@suse.de>
5817
5818 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
5819 commands layout next/prev/regs.
5820
5707a07a
TT
58212020-02-22 Tom Tromey <tom@tromey.com>
5822
5823 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
5824 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
5825
3b0fb49e
TT
58262020-02-22 Tom Tromey <tom@tromey.com>
5827
5828 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
5829
283be8bf
TT
58302020-02-22 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-win.c (_initialize_tui_win): Add usage text.
5833 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
5834 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
5835 * tui/tui.c (_initialize_tui): Add usage text.
5836
ca793b96
TT
58372020-02-22 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui-win.c (tui_set_focus_command)
5840 (tui_set_win_height_command): Use error_no_arg.
5841 (_initialize_tui_win): Update help text.
5842 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
5843
432b5c40
TT
58442020-02-22 Tom Tromey <tom@tromey.com>
5845
5846 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
5847 * tui/tui-disasm.h (struct tui_disasm_window)
5848 <display_start_addr>: Declare.
5849 * tui/tui-source.h (struct tui_source_window)
5850 <display_start_addr>: Declare.
5851 * tui/tui-winsource.h (struct tui_source_window_base)
5852 <show_source_line, display_start_addr>: New methods.
5853 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
5854 Rename and move to protected section.
5855 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
5856 (tui_source_window_base::do_erase_source_content): Update.
5857 (tui_source_window_base::show_source_line): Now a method.
5858 (tui_source_window_base::show_source_content)
5859 (tui_source_window_base::tui_source_window_base)
5860 (tui_source_window_base::rerender)
5861 (tui_source_window_base::refill)
5862 (tui_source_window_base::do_scroll_horizontal)
5863 (tui_source_window_base::set_is_exec_point_at)
5864 (tui_source_window_base::update_breakpoint_info)
5865 (tui_source_window_base::update_exec_info): Update.
5866 * tui/tui-source.c (tui_source_window::set_contents)
5867 (tui_source_window::showing_source_p)
5868 (tui_source_window::do_scroll_vertical)
5869 (tui_source_window::location_matches_p)
5870 (tui_source_window::line_is_displayed): Update.
5871 (tui_source_window::display_start_addr): New method.
5872 * tui/tui-disasm.c (tui_disasm_window::set_contents)
5873 (tui_disasm_window::do_scroll_vertical)
5874 (tui_disasm_window::location_matches_p): Update.
5875 (tui_disasm_window::display_start_addr): New method.
5876
01b1af32
TT
58772020-02-22 Tom Tromey <tom@tromey.com>
5878
5879 * NEWS: Add entry for gdb.register_window_type.
5880 * tui/tui-layout.h (window_factory): New typedef.
5881 (tui_register_window): Declare.
5882 * tui/tui-layout.c (saved_tui_windows): New global.
5883 (tui_apply_current_layout): Use it.
5884 (tui_register_window): New function.
5885 * python/python.c (do_start_initialization): Call
5886 gdbpy_initialize_tui.
5887 (python_GdbMethods): Add "register_window_type" function.
5888 * python/python-internal.h (gdbpy_register_tui_window)
5889 (gdbpy_initialize_tui): Declare.
5890 * python/py-tui.c: New file.
5891 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
5892
fc96d20b
TT
58932020-02-22 Tom Tromey <tom@tromey.com>
5894
5895 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
5896
935c78c0
TT
58972020-02-22 Tom Tromey <tom@tromey.com>
5898
5899 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
5900 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
5901 * tui/tui-data.c (tui_set_win_with_focus): Remove.
5902 (tui_set_win_focus_to): Move from tui-win.c.
5903
0240c8f1
TT
59042020-02-22 Tom Tromey <tom@tromey.com>
5905
5906 * tui/tui-layout.c (make_standard_window, get_locator_window): New
5907 functions.
5908 (known_window_types): New global.
5909 (tui_get_window_by_name): Reimplement.
5910 (initialize_known_windows): New function.
5911 (validate_window_name): Rewrite.
5912 (_initialize_tui_layout): Call initialize_known_windows.
5913
fdb01f0c
TT
59142020-02-22 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
5917 Remove constants.
5918 * tui/tui-winsource.h (struct tui_source_window_base)
5919 <tui_source_window_base>: Remove parameter.
5920 * tui/tui-winsource.c
5921 (tui_source_window_base::tui_source_window_base): Remove
5922 parameter.
5923 (tui_source_window_base::refill): Update.
5924 * tui/tui-stack.h (struct tui_locator_window)
5925 <tui_locator_window>: Update.
5926 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
5927 Default the constructor.
5928 * tui/tui-regs.h (struct tui_data_item_window)
5929 <tui_data_item_window>: Default the constructor.
5930 (struct tui_data_window) <tui_data_window>: Likewise.
5931 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
5932 Default the constructor.
5933 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
5934 Default the constructor.
5935 <type>: Remove.
5936 (struct tui_win_info) <tui_win_info>: Default the constructor.
5937 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
5938 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
5939 Default the constructor.
5940
865a5aec
TT
59412020-02-22 Tom Tromey <tom@tromey.com>
5942
5943 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
5944 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
5945 * tui/tui-win.c (tui_resize_all): Don't call
5946 tui_delete_invisible_windows.
5947 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
5948 done.
5949 (tui_set_layout): Update.
5950 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
5951 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
5952 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
5953
e098d18c
TT
59542020-02-22 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
5957 correctly.
5958
eb9c8874
TT
59592020-02-22 Tom Tromey <tom@tromey.com>
5960
5961 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
5962
7eed1a8e
TT
59632020-02-22 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-winsource.h (struct tui_source_window_iterator)
5966 <inner_iterator>: New etytypedef.
5967 <tui_source_window_iterator>: Take "end" parameter.
5968 <tui_source_window_iterator>: Take iterator.
5969 <operator*, advance>: Update.
5970 <m_iter>: Change type.
5971 <m_end>: New field.
5972 (struct tui_source_windows) <begin, end>: Update.
5973 * tui/tui-layout.c (tui_windows): New global.
5974 (tui_apply_current_layout): Clear tui_windows.
5975 (tui_layout_window::apply): Update tui_windows.
5976 * tui/tui-data.h (tui_windows): Declare.
5977 (all_tui_windows): Now inline function.
5978 (class tui_window_iterator, struct all_tui_windows): Remove.
5979
7c043ba6
TT
59802020-02-22 Tom Tromey <tom@tromey.com>
5981
5982 PR tui/17850:
5983 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
5984 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
5985 "height" argument.
5986 (class tui_layout_window) <get_sizes>: Likewise.
5987 (class tui_layout_split) <tui_layout_split>: Add "vertical"
5988 argument.
5989 <get_sizes>: Add "height" argument.
5990 <m_vertical>: New field.
5991 * tui/tui-layout.c (tui_layout_split::clone): Update.
5992 (tui_layout_split::get_sizes): Add "height" argument.
5993 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
5994 (tui_new_layout_command): Parse "-horizontal".
5995 (_initialize_tui_layout): Update help string.
5996 (tui_layout_split::specification): Add "-horizontal" when needed.
5997 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
5998 argument.
5999 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
6000 New methods.
6001
6bc56648
TT
60022020-02-22 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-layout.h (enum tui_adjust_result): New.
6005 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
6006 (class tui_layout_window) <adjust_size>: Return
6007 tui_adjust_result. Rewrite.
6008 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
6009 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
6010
c22fef7e
TT
60112020-02-22 Tom Tromey <tom@tromey.com>
6012
6013 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
6014 parameter and return types.
6015 (class tui_layout_base) <specification>: Add "depth".
6016 (class tui_layout_window) <specification>: Add "depth".
6017 (class tui_layout_split) <specification>: Add "depth".
6018 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
6019 and return types.
6020 (tui_new_layout_command): Parse sub-layouts.
6021 (_initialize_tui_layout): Update help string.
6022 (tui_layout_window::specification): Add "depth".
6023 (add_layout_command): Update.
6024
ee325b61
TT
60252020-02-22 Tom Tromey <tom@tromey.com>
6026
6027 * NEWS: Add "tui new-layout" item.
6028 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
6029 Add new-layout command to help text.
6030 (validate_window_name): New function.
6031 (tui_new_layout_command): New function.
6032 (_initialize_tui_layout): Register "new-layout".
6033 (tui_layout_window::specification): New method.
6034 (tui_layout_window::specification): New method.
6035 * tui/tui-layout.h (class tui_layout_base) <specification>: New
6036 method.
6037 (class tui_layout_window) <specification>: New method.
6038 (class tui_layout_split) <specification>: New method.
6039
416eb92d
TT
60402020-02-22 Tom Tromey <tom@tromey.com>
6041
6042 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
6043 * tui/tui-win.c (window_name_completer): Update comment.
6044 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
6045 Declare method.
6046 (class tui_layout_window) <replace_window>: Likewise.
6047 (class tui_layout_split) <replace_window>: Likewise.
6048 (tui_set_layout): Don't declare.
6049 (tui_set_initial_layout): Declare function.
6050 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
6051 (asm_regs_layout): New globals.
6052 (tui_current_layout, show_layout): Remove.
6053 (tui_set_layout, tui_add_win_to_layout): Rewrite.
6054 (find_layout, tui_apply_layout): New function.
6055 (layout_completer): Remove.
6056 (tui_next_layout): Reimplement.
6057 (tui_next_layout_command): New function.
6058 (tui_set_initial_layout, tui_prev_layout_command): New functions.
6059 (tui_regs_layout): Reimplement.
6060 (tui_regs_layout_command): New function.
6061 (extract_display_start_addr): Rewrite.
6062 (next_layout, prev_layout): Remove.
6063 (tui_layout_window::replace_window): New method.
6064 (tui_layout_split::replace_window): New method.
6065 (destroy_layout): New function.
6066 (layout_list): New global.
6067 (add_layout_command): New function.
6068 (initialize_layouts): Update.
6069 (tui_layout_command): New function.
6070 (_initialize_tui_layout): Install "layout" commands.
6071 * tui/tui-data.h (enum tui_layout_type): Remove.
6072 (tui_current_layout): Don't declare.
6073
0dbc2fc7
TT
60742020-02-22 Tom Tromey <tom@tromey.com>
6075
6076 * tui/tui-regs.c (tui_reg_layout): Remove.
6077 (tui_reg_command): Use tui_regs_layout.
6078 * tui/tui-layout.h (tui_reg_command): Declare.
6079 * tui/tui-layout.c (tui_reg_command): New function.
6080
5afe342e
TT
60812020-02-22 Tom Tromey <tom@tromey.com>
6082
6083 * tui/tui.c (tui_rl_delete_other_windows): Call
6084 tui_remove_some_windows.
6085 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
6086 Declare method.
6087 (class tui_layout_window) <remove_windows>: New method.
6088 (class tui_layout_split) <remove_windows>: Declare.
6089 (tui_remove_some_windows): Declare.
6090 * tui/tui-layout.c (tui_remove_some_windows): New function.
6091 (tui_layout_split::remove_windows): New method.
6092
427326a8
TT
60932020-02-22 Tom Tromey <tom@tromey.com>
6094
6095 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
6096 * tui/tui-layout.h (tui_next_layout): Declare.
6097 * tui/tui-layout.c (tui_next_layout): New function.
6098
3fe12b6d
TT
60992020-02-22 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
6102 correct coordinates.
6103
59b8b5d2
TT
61042020-02-22 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
6107 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
6108 DATA_WIN case.
6109
2a3d458b
TT
61102020-02-22 Tom Tromey <tom@tromey.com>
6111
6112 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
6113 TUI_DISASM_WIN, not tui_win_list.
6114
3f0cbb04
TT
61152020-02-22 Tom Tromey <tom@tromey.com>
6116
6117 * valprint.c (generic_val_print_enum_1)
6118 (val_print_type_code_flags): Style member names.
6119 * rust-lang.c (val_print_struct, rust_print_enum)
6120 (rust_print_struct_def, rust_internal_print_type): Style member
6121 names.
6122 * p-valprint.c (pascal_object_print_value_fields): Style member
6123 names. Only call fprintf_symbol_filtered for static members.
6124 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
6125 * f-valprint.c (f_val_print): Style member names.
6126 * f-typeprint.c (f_type_print_base): Style member names.
6127 * cp-valprint.c (cp_print_value_fields): Style member names. Only
6128 call fprintf_symbol_filtered for static members.
6129 (cp_print_class_member): Style member names.
6130 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
6131 member names.
6132 * ada-valprint.c (ada_print_scalar): Style enum names.
6133 (ada_val_print_enum): Likewise.
6134 * ada-typeprint.c (print_enum_type): Style enum names.
6135
d4d947ae
TT
61362020-02-21 Tom Tromey <tom@tromey.com>
6137
6138 * psympriv.h (struct partial_symtab): Update comment.
6139
e94e944b
TT
61402020-02-21 Tom Tromey <tromey@adacore.com>
6141
6142 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
6143 type is CORE_ADDR.
6144
1eb73179
TV
61452020-02-21 Tom de Vries <tdevries@suse.de>
6146
6147 PR gdb/25534
6148 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
6149 if dependencies[i]->user != NULL.
6150
4f180d53
AT
61512020-02-21 Ali Tamur <tamur@google.com>
6152
6153 * dwarf2/read.c (dwarf2_name): Add null check.
6154
22b6cd70
TT
61552020-02-20 Tom Tromey <tom@tromey.com>
6156
6157 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
6158 ">=", in binary search.
6159 (dwarf2_find_containing_comp_unit): New overload.
6160 (run_test): New self-test.
6161 (_initialize_dwarf2_read): Register new test.
6162
bd0cf5a6
NC
61632020-02-20 Nelson Chu <nelson.chu@sifive.com>
6164
6165 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
6166 * riscv-tdep.h: Likewise.
6167 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
6168 rv32-only CSR.
6169 * features/riscv/64bit-csr.xml: Regenerated.
6170
3f702acd
SDJ
61712020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6172 Tom Tromey <tom@tromey.com>
6173
6174 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
6175 of 'fputc_unfiltered'.
6176 (putchar_unfiltered): Call 'fputc_unfiltered'.
6177 (fputc_unfiltered): Call 'fputs_unfiltered'.
6178
d13c7322
AB
61792020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 * config.in: Regenerate.
6182 * configure: Regenerate.
6183 * configure.ac: Add --with-python-libdir option.
6184 * main.c: Use WITH_PYTHON_LIBDIR.
6185
869d8950
TT
61862020-02-19 Tom Tromey <tom@tromey.com>
6187
6188 * symtab.c (general_symbol_info::compute_and_set_names): Use
6189 obstack_strndup. Simplify call to symbol_set_demangled_name.
6190
298e9637
SM
61912020-02-19 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * dwarf2/read.c (allocate_signatured_type_table,
6194 allocate_dwo_unit_table, allocate_type_unit_groups_table,
6195 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
6196 Remove objfile parameter, update all callers.
6197
08410482
DE
61982020-02-19 Doug Evans <dje@google.com>
6199
6200 PR rust/25535
6201 * rust-lang.c (rust_print_enum): Apply embedded_offset to
6202 rust_enum_variant calculation.
6203
dfdeeca1
TT
62042020-02-19 Tom Tromey <tromey@adacore.com>
6205
6206 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
6207
2ef5453b
TT
62082020-02-19 Tom Tromey <tromey@adacore.com>
6209
6210 * ada-lang.c (cache_symbol): Use obstack_strdup.
6211
9f1528a1
AB
62122020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6213
6214 * configure: Regenerate.
6215
d3c22fa8
TT
62162020-02-19 Tom Tromey <tromey@adacore.com>
6217
6218 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
6219 NULL check.
6220
bf84f706
MR
62212020-02-19 Maciej W. Rozycki <macro@wdc.com>
6222
6223 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
6224
d1c9b20f
AB
62252020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
6228 if GDBSERVER is not defined.
6229 (riscv_tdesc_cache): Likewise, also store const target_desc.
6230 (STATIC_IN_GDB): Define.
6231 (riscv_create_target_description): Update declaration with
6232 STATIC_IN_GDB.
6233 (riscv_lookup_target_description): New function, only define if
6234 GDBSERVER is not defined.
6235 * arch/riscv.h (riscv_create_target_description): Declare only
6236 when GDBSERVER is defined.
6237 (riscv_lookup_target_description): New declaration when GDBSERVER
6238 is not defined.
6239 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
6240 (riscv_linux_read_features): ...this, and return
6241 riscv_gdbarch_features instead of target_desc.
6242 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
6243 (riscv_linux_read_description): Rename to...
6244 (riscv_linux_read_features): ...this.
6245 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6246 Update to use riscv_gdbarch_features and
6247 riscv_lookup_target_description.
6248 * riscv-tdep.c (riscv_find_default_target_description): Use
6249 riscv_lookup_target_description instead of
6250 riscv_create_target_description.
6251
373d7ac0
SM
62522020-02-18 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * valprint.c (generic_val_print_enum_1): When printing a flag
6255 enum with value 0 and there is no enumerator with value 0, print
6256 just "0" instead of "(unknown: 0x0)".
6257
b29a2df0
SM
62582020-02-18 Simon Marchi <simon.marchi@efficios.com>
6259
6260 * valprint.c (generic_val_print_enum_1): Print unknown part of
6261 flag enum in hex.
6262
6740f0cc
SM
62632020-02-18 Simon Marchi <simon.marchi@efficios.com>
6264
6265 * dwarf2/read.c (update_enumeration_type_from_children): Allow
6266 flag enums to contain duplicate enumerators.
6267 * valprint.c (generic_val_print_enum_1): Update comment.
6268
edd45eb0
SM
62692020-02-18 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/read.c: Include "count-one-bits.h".
6272 (update_enumeration_type_from_children): If an enumerator has
6273 multiple bits set, don't treat the enumeration as a "flag enum".
6274 * valprint.c (generic_val_print_enum_1): Assert that enumerators
6275 of flag enums have 0 or 1 bit set.
6276
6d0cf446
BE
62772020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6278
6279 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
6280 conversion.
6281 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6282 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6283 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6284 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6285 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6286
7001c1b7
SM
62872020-02-18 Simon Marchi <simon.marchi@efficios.com>
6288
6289 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
6290
fdb61c6c
SM
62912020-02-14 Simon Marchi <simon.marchi@efficios.com>
6292
6293 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
6294 displaced_step_closure_up.
6295 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6296 (struct displaced_step_closure_up):
6297 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6298 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6299 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
6300 Likewise.
6301 * gdbarch.sh (displaced_step_copy_insn): Likewise.
6302 * gdbarch.c, gdbarch.h: Re-generate.
6303 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
6304 displaced_step_closure_up.
6305 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6306 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6307 * infrun.h (displaced_step_closure_up): New type alias.
6308 (struct displaced_step_inferior_state) <step_closure>: Change
6309 type to displaced_step_closure_up.
6310 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
6311 displaced_step_closure_up.
6312 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6313
a4a38eb4
TT
63142020-02-14 Tom Tromey <tom@tromey.com>
6315
6316 * minidebug.c (gnu_debug_key): New global.
6317 (find_separate_debug_file_in_section): Use it.
6318
e8217e61
SM
63192020-02-14 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
6322 std::unique_ptr.
6323 * gdbarch.c: Re-generate.
6324 * gdbarch.h: Re-generate.
6325 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
6326 change.
6327 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
6328 type to std::unique_ptr.
6329 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6330 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6331 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6332 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6333 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
6334 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6335 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6336 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6337 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6338
d8d83535
SM
63392020-02-14 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
6342 std::unique_ptr.
6343 (displaced_step_clear): Rename to...
6344 (displaced_step_reset): ... this. Just call displaced->reset ().
6345 (displaced_step_clear_cleanup): Rename to...
6346 (displaced_step_reset_cleanup): ... this.
6347 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
6348 (displaced_step_fixup): Likewise.
6349 (resume_1): Likewise.
6350 (handle_inferior_event): Restore child's memory before calling
6351 displaced_step_fixup on the parent.
6352 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
6353 to std::unique_ptr.
6354 <step_closure>: Change type to std::unique_ptr.
6355
5f661e03
SM
63562020-02-14 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * arm-tdep.c: Include count-one-bits.h.
6359 (cleanup_block_store_pc): Use count_one_bits.
6360 (cleanup_block_load_pc): Use count_one_bits.
6361 (arm_copy_block_xfer): Use count_one_bits.
6362 (thumb2_copy_block_xfer): Use count_one_bits.
6363 (thumb_copy_pop_pc_16bit): Use count_one_bits.
6364 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
6365 (thumb_get_next_pcs_raw): Use count_one_bits.
6366 (arm_get_next_pcs_raw): Use count_one_bits_l.
6367 * arch/arm.c (bitcount): Remove.
6368 * arch/arm.h (bitcount): Remove.
6369
8084e579
TT
63702020-02-14 Tom Tromey <tromey@adacore.com>
6371
6372 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
6373 Update.
6374 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
6375 * dwarf2/loc.c (call_site_find_chain_1): Return
6376 unique_xmalloc_ptr.
6377 (call_site_find_chain): Likewise.
6378
258bf0ee
RB
63792020-02-14 Richard Biener <rguenther@suse.de>
6380
6381 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
6382 on expression with division operators.
6383
f98a8458
AKS
63842020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6385
6386 * MAINTAINERS (Write After Approval): Adding myself.
6387
d1437c0e
TT
63882020-02-12 Tom Tromey <tom@tromey.com>
6389
6390 * event-loop.c (event_data, gdb_event, event_handler_func):
6391 Remove.
6392
3d4560f7
TT
63932020-02-12 Tom Tromey <tom@tromey.com>
6394
6395 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
6396 (dwarf2_frame_objfile_data): Add comment.
6397 (find_comp_unit, set_comp_unit): New functions.
6398 (dwarf2_frame_find_fde): Use find_comp_unit.
6399 (dwarf2_build_frame_info): Use set_comp_unit.
6400
21982304
TT
64012020-02-12 Tom Tromey <tom@tromey.com>
6402
6403 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
6404 (comp_unit): Don't initialize objfile.
6405 (execute_cfa_program): Add text_offset parameter.
6406 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
6407 (dwarf2_frame_cache): Update.
6408 (dwarf2_build_frame_info): Don't set "objfile" member.
6409
4debb237
TT
64102020-02-12 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
6413 (decode_frame_entry): Likewise.
6414 (dwarf2_build_frame_info): Update.
6415
0d404d44
TT
64162020-02-12 Tom Tromey <tom@tromey.com>
6417
6418 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
6419 (decode_frame_entry_1): Use the comp_unit obstack.
6420
a7a3ae5c
TT
64212020-02-12 Tom Tromey <tom@tromey.com>
6422
6423 * dwarf2/frame.c (struct comp_unit): Add initializers and
6424 constructor.
6425 (dwarf2_frame_objfile_data): Store a comp_unit.
6426 (dwarf2_frame_find_fde): Update.
6427 (dwarf2_build_frame_info): Use "new".
6428
a9d65418
TT
64292020-02-12 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
6432 (dwarf2_fde_table): Typedef for std::vector.
6433 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
6434 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
6435 (decode_frame_entry): Update.
6436 (dwarf2_build_frame_info): Use "new".
6437
7559c217
CB
64382020-02-12 Christian Biesinger <cbiesinger@google.com>
6439
6440 * arm-tdep.c (arm_gdbarch_init): Update.
6441 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
6442 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
6443 have_neon, is_m>: Change to bool.
6444
aeefc73c
CB
64452020-02-12 Christian Biesinger <cbiesinger@google.com>
6446
6447 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
6448
d27b8e5f
TT
64492020-02-12 Tom Tromey <tom@tromey.com>
6450
6451 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
6452
cd5900f3
HD
64532020-02-12 Hannes Domani <ssbssa@yahoo.de>
6454
6455 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
6456 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
6457
f056b22b
TT
64582020-02-11 Tom Tromey <tom@tromey.com>
6459
6460 * psymtab.h: Update comment.
6461
f92ff6b5
TT
64622020-02-11 Tom Tromey <tom@tromey.com>
6463
6464 * gdb_obstack.h (struct auto_obstack): Use
6465 DISABLE_COPY_AND_ASSIGN.
6466
3fd6912b
TT
64672020-02-11 Tom Tromey <tom@tromey.com>
6468
6469 * dwarf2/frame.h (struct objfile): Don't forward declare.
6470
69ed9b74
CB
64712020-02-11 Christian Biesinger <cbiesinger@google.com>
6472
6473 * cris-tdep.c (cris_supply_gregset): Change signature to match
6474 what struct regset expects.
6475 (cris_regset): New struct.
6476 (fetch_core_registers): Remove.
6477 (cris_iterate_over_regset_sections): New function.
6478 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
6479 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
6480
bda874f6
CB
64812020-02-11 Christian Biesinger <cbiesinger@google.com>
6482
6483 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
6484 registers.
6485
754e1564
CB
64862020-02-11 Christian Biesinger <cbiesinger@google.com>
6487
6488 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
6489
8ddd8e0e
SM
64902020-02-11 Simon Marchi <simon.marchi@efficios.com>
6491
6492 * configure: Re-generate.
6493
898e7f60
SM
64942020-02-11 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * configure: Re-generate.
6497
58df732b
SM
64982020-02-11 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * acinclude: Update warning.m4 path.
6501 * warning.m4: Move to gdbsupport.
6502
da5bd37e
TT
65032020-02-11 Tom Tromey <tromey@adacore.com>
6504
6505 * remote.c (remote_console_output): Update.
6506 * printcmd.c (printf_command): Update.
6507 * event-loop.c (gdb_wait_for_event): Update.
6508 * linux-nat.c (sigchld_handler): Update.
6509 * remote-sim.c (gdb_os_write_stdout): Update.
6510 (gdb_os_flush_stdout): Update.
6511 (gdb_os_flush_stderr): Update.
6512 (gdb_os_write_stderr): Update.
6513 * exceptions.c (print_exception): Update.
6514 * remote-fileio.c (remote_fileio_func_read): Update.
6515 (remote_fileio_func_write): Update.
6516 * tui/tui.c (tui_enable): Update.
6517 * tui/tui-interp.c (tui_interp::init): Update.
6518 * utils.c (init_page_info): Update.
6519 (putchar_unfiltered, fputc_unfiltered): Update.
6520 (gdb_flush): Update.
6521 (emit_style_escape): Update.
6522 (flush_wrap_buffer, fputs_maybe_filtered): Update.
6523 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
6524 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
6525 (stderr_file::write): Update.
6526 (stderr_file::puts): Update.
6527 * ui-file.h (ui_file_isatty, ui_file_write)
6528 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
6529 (ui_file_puts): Don't declare.
6530
85f0dd3c
TV
65312020-02-10 Tom de Vries <tdevries@suse.de>
6532
6533 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
6534 sentinel to char *.
6535
2e927613
TV
65362020-02-09 Tom de Vries <tdevries@suse.de>
6537
6538 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
6539 filename if it matches "<artificial>".
6540
6bafc845
HD
65412020-02-09 Hannes Domani <ssbssa@yahoo.de>
6542
6543 * windows-tdep.c (struct enum_value_name): New struct.
6544 (create_enum): New function.
6545 (windows_get_siginfo_type): Create and use enum types.
6546
7928d571
HD
65472020-02-09 Hannes Domani <ssbssa@yahoo.de>
6548
6549 * NEWS: Mention $_siginfo support for Windows.
6550 * windows-nat.c (handle_exception): Set siginfo_er.
6551 (windows_nat_target::mourn_inferior): Reset siginfo_er.
6552 (windows_xfer_siginfo): New function.
6553 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
6554 * windows-tdep.c (struct windows_gdbarch_data): New struct.
6555 (init_windows_gdbarch_data): New function.
6556 (get_windows_gdbarch_data): New function.
6557 (windows_get_siginfo_type): New function.
6558 (windows_init_abi): Register windows_get_siginfo_type.
6559 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
6560
6751ebae
TT
65612020-02-08 Tom Tromey <tom@tromey.com>
6562
6563 * dwarf2/read.c (class cutu_reader) <cutu_reader,
6564 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
6565 <keep>: Declare method.
6566 <m_keep>: Remove member.
6567 <~cutu_reader>: Remove.
6568 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6569 (cutu_reader::cutu_reader): Update.
6570 (cutu_reader::keep): Rename from ~cutu_reader.
6571 (process_psymtab_comp_unit, build_type_psymtabs_1)
6572 (process_skeletonless_type_unit, load_partial_comp_unit)
6573 (load_full_comp_unit, dwarf2_read_addr_index)
6574 (read_signatured_type): Update.
6575
135f5437
TT
65762020-02-08 Tom Tromey <tom@tromey.com>
6577
6578 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
6579 "want_partial_unit" parameter.
6580 (process_psymtab_comp_unit): Change want_partial_unit to bool.
6581 Inline check for DW_TAG_partial_unit.
6582 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
6583
9f66ff1c
TT
65842020-02-08 Tom Tromey <tom@tromey.com>
6585
6586 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
6587 read.c.
6588 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
6589 read.c.
6590
c8a7a66f
TT
65912020-02-08 Tom Tromey <tom@tromey.com>
6592
6593 * dwarf2/read.c (read_address): Move to comp-unit.c.
6594 (dwarf2_rnglists_process, dwarf2_ranges_process)
6595 (read_attribute_value, dwarf_decode_lines_1)
6596 (var_decode_location, decode_locdesc): Update.
6597 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
6598 read.c. Remove "cu" parameter.
6599 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
6600 method.
6601
8266302d
TT
66022020-02-08 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2/read.c (read_attribute_value, read_indirect_string)
6605 (read_indirect_line_string): Update.
6606 * dwarf2/comp-unit.c (read_offset): Remove.
6607 (read_comp_unit_head): Update.
6608 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
6609 method.
6610 (read_offset): Don't declare.
6611
4057dfde
TT
66122020-02-08 Tom Tromey <tom@tromey.com>
6613
6614 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
6615 * dwarf2/read.c (struct comp_unit_head): Move to
6616 dwarf2/comp-unit.h.
6617 (enum class rcuh_kind): Move to comp-unit.h.
6618 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
6619 (read_comp_unit_head, error_check_comp_unit_head)
6620 (read_and_check_comp_unit_head): Move to comp-unit.c.
6621 (read_offset, dwarf_unit_type_name): Likewise.
6622 (create_debug_type_hash_table, read_cutu_die_from_dwo)
6623 (cutu_reader::cutu_reader, read_call_site_scope)
6624 (find_partial_die, follow_die_offset): Update.
6625 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
6626
24aa364d
TT
66272020-02-08 Tom Tromey <tom@tromey.com>
6628
6629 * dwarf2/read.c (read_offset_1): Move to leb.c.
6630 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
6631 (dwarf_decode_macro_bytes): Update.
6632 * dwarf2/leb.c (read_offset): Rename; move from read.c.
6633 * dwarf2/leb.h (read_offset): Declare.
6634
2c7d5afc
TT
66352020-02-08 Tom Tromey <tom@tromey.com>
6636
6637 * dwarf2/read.c (dwarf2_section_size): Remove.
6638 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
6639 Update.
6640 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
6641
4075cb26
TT
66422020-02-08 Tom Tromey <tom@tromey.com>
6643
6644 * dwarf2/read.c (read_initial_length): Move to leb.c.
6645 * dwarf2/leb.h (read_initial_length): Declare.
6646 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
6647 handle_nonstd parameter.
6648 * dwarf2/frame.c (read_initial_length): Remove.
6649 (decode_frame_entry_1): Update.
6650
09ba997f
TT
66512020-02-08 Tom Tromey <tom@tromey.com>
6652
6653 * dwarf2/loc.c (dwarf2_find_location_expression)
6654 (dwarf_evaluate_loc_desc::get_tls_address)
6655 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
6656 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
6657 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
6658 (dwarf2_compile_property_to_c)
6659 (dwarf2_loc_desc_get_symbol_read_needs)
6660 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
6661 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
6662 (loclist_describe_location, loclist_tracepoint_var_ref)
6663 (loclist_generate_c_location): Update.
6664 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
6665 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
6666 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
6667 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
6668 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
6669 (dwarf2_per_cu_data::addr_size)
6670 (dwarf2_per_cu_data::ref_addr_size)
6671 (dwarf2_per_cu_data::text_offset)
6672 (dwarf2_per_cu_data::addr_type): Now methods.
6673 (per_cu_header_read_in): Make per_cu "const".
6674 (dwarf2_version): Remove.
6675 (dwarf2_per_cu_data::int_type): Now a method.
6676 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
6677 (set_die_type, read_array_type, read_subrange_index_type)
6678 (read_tag_string_type, read_subrange_type): Update.
6679 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
6680 offset_size, ref_addr_size, text_offset, addr_type, version,
6681 objfile, int_type, addr_sized_int_type>: Declare methods.
6682
96c738c0
TT
66832020-02-08 Tom Tromey <tom@tromey.com>
6684
6685 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
6686 Move earlier.
6687
8fdd972c
TT
66882020-02-08 Tom Tromey <tom@tromey.com>
6689
6690 * dwarf2/read.h (dwarf_line_debug): Declare.
6691 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
6692 * dwarf2/read.c: Move line_header code to new files.
6693 (dwarf_line_debug): No longer static.
6694 * dwarf2/line-header.c: New file.
6695 * dwarf2/line-header.h: New file.
6696
03075812
TT
66972020-02-08 Tom Tromey <tom@tromey.com>
6698
6699 * dwarf2/read.c (struct line_header) <file_full_name,
6700 file_file_name>: Return unique_xmalloc_ptr.
6701 (line_header::file_file_name): Update.
6702 (line_header::file_full_name): Update.
6703 (dw2_get_file_names_reader): Update.
6704 (macro_start_file): Update.
6705
bb822404
TT
67062020-02-08 Tom Tromey <tom@tromey.com>
6707
6708 * dwarf2/read.c (struct line_header) <file_full_name,
6709 file_file_name>: Declare methods.
6710 (dw2_get_file_names_reader): Update.
6711 (file_file_name): Now a method.
6712 (file_full_name): Likewise.
6713 (macro_start_file): Update.
6714
009b64fc
TT
67152020-02-08 Tom Tromey <tom@tromey.com>
6716
6717 * dwarf2/read.c (dwarf_always_disassemble)
6718 (show_dwarf_always_disassemble): Move to loc.c.
6719 (_initialize_dwarf2_read): Move "always-disassemble" registration
6720 to loc.c.
6721 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
6722 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
6723 static.
6724 (show_dwarf_always_disassemble): Move from read.c.
6725 (_initialize_dwarf2loc): Move always-disassemble from read.c.
6726
5895093f
TT
67272020-02-08 Tom Tromey <tom@tromey.com>
6728
6729 * dwarf2/read.c (~dwarf2_per_objfile): Update.
6730 (create_quick_file_names_table): Return htab_up.
6731 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
6732 Update.
6733 * dwarf2/read.h (struct dwarf2_per_objfile)
6734 <quick_file_names_table>: Now htab_up.
6735
b3b32279
TT
67362020-02-08 Tom Tromey <tom@tromey.com>
6737
6738 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
6739
1d33d811
TT
67402020-02-08 Tom Tromey <tom@tromey.com>
6741
6742 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
6743 Rewrite.
6744 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
6745 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
6746 (abbrev_table::abbrev_table): No longer inline.
6747 (ABBREV_HASH_SIZE): Remove.
6748 (abbrev_table::m_abbrevs): Now an htab_up.
6749
86de1d91
TT
67502020-02-08 Tom Tromey <tom@tromey.com>
6751
6752 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
6753 (cutu_reader): Update.
6754 (build_type_psymtabs_1): Update.
6755 * dwarf2/abbrev.c (abbrev_table::read): Rename.
6756 (abbrev_table::alloc_abbrev): Update.
6757 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
6758 (abbrev_table::read): New static method, renamed from
6759 abbrev_table_read_table.
6760 (abbrev_table::alloc_abbrev)
6761 (abbrev_table::add_abbrev): Now private.
6762 (abbrev_table::abbrev_table): Now private.
6763 (abbrev_table::m_abbrev_obstack): Now private. Rename.
6764
0335378b
TT
67652020-02-08 Tom Tromey <tom@tromey.com>
6766
6767 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
6768 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
6769 htab_up.
6770
48b490f2
TT
67712020-02-08 Tom Tromey <tom@tromey.com>
6772
6773 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
6774 htab_up.
6775 (lookup_dwo_unit_in_dwp): Update.
6776 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
6777 on obstack.
6778
bc68fb19
TT
67792020-02-08 Tom Tromey <tom@tromey.com>
6780
6781 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
6782 obstack.
6783
d15acc42
TT
67842020-02-08 Tom Tromey <tom@tromey.com>
6785
6786 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
6787 line_header_hash.
6788 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
6789 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
6790 Change type to htab_up.
6791
eaa5fa8b
TT
67922020-02-08 Tom Tromey <tom@tromey.com>
6793
6794 * dwarf2/read.c (allocate_type_unit_groups_table): Return
6795 htab_up. Don't allocate on obstack.
6796 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
6797 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
6798 Change type to htab_up.
6799
b0b6a987
TT
68002020-02-08 Tom Tromey <tom@tromey.com>
6801
6802 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
6803 Change type to htab_up.
6804 * dwarf2/read.c (create_signatured_type_table_from_index)
6805 (create_signatured_type_table_from_debug_names)
6806 (create_all_type_units, add_type_unit)
6807 (lookup_dwo_signatured_type, lookup_signatured_type)
6808 (process_skeletonless_type_unit): Update.
6809 (create_debug_type_hash_table, create_debug_types_hash_table):
6810 Change type of types_htab.
6811 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
6812 htab_up. Don't allocate on obstack.
6813 (create_cus_hash_table): Change type of cus_htab parameter.
6814 (struct dwo_file) <cus, tus>: Now htab_up.
6815 (lookup_dwo_signatured_type, lookup_dwo_cutu)
6816 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
6817 (queue_and_load_all_dwo_tus): Update.
6818 * dwarf2/index-write.c (write_gdbindex): Update.
6819 (write_debug_names): Update.
6820
39856def
TT
68212020-02-08 Tom Tromey <tom@tromey.com>
6822
6823 * dwarf2/read.h (struct dwarf2_queue_item): Move from
6824 dwarf2/read.c. Remove "next" member. Add constructor ntad
6825 destructor.
6826 (struct dwarf2_per_objfile) <queue>: New member.
6827 * dwarf2/read.c (struct dwarf2_queue_item): Move to
6828 dwarf2/read.h.
6829 (dwarf2_queue, dwarf2_queue_tail): Remove.
6830 (class dwarf2_queue_guard): Add parameter to constructor. Use
6831 DISABLE_COPY_AND_ASSIGN.
6832 <m_per_objfile>: New member.
6833 <~dwarf2_queue_guard>: Rewrite.
6834 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
6835 Update.
6836 (~dwarf2_queue_item): New.
6837
3e225074
TT
68382020-02-08 Tom Tromey <tom@tromey.com>
6839
6840 * dwarf2/read.c (struct die_info) <has_children>: New member.
6841 (dw2_get_file_names_reader): Remove has_children.
6842 (dw2_get_file_names): Update.
6843 (read_cutu_die_from_dwo): Remove has_children.
6844 (cutu_reader::init_tu_and_read_dwo_dies)
6845 (cutu_reader::cutu_reader): Update.
6846 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
6847 Remove has_children.
6848 (build_type_psymtabs_1, process_skeletonless_type_unit)
6849 (load_partial_comp_unit, load_full_comp_unit): Update.
6850 (create_dwo_cu_reader): Remove has_children.
6851 (create_cus_hash_table, read_die_and_children): Update.
6852 (read_full_die_1,read_full_die): Remove has_children.
6853 (read_signatured_type): Update.
6854 (class cutu_reader) <has_children>: Remove.
6855
82ca8957
TT
68562020-02-08 Tom Tromey <tom@tromey.com>
6857
6858 * dwarf2/expr.c: Rename from dwarf2expr.c.
6859 * dwarf2/expr.h: Rename from dwarf2expr.h.
6860 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
6861 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
6862 * dwarf2/frame.c: Rename from dwarf2-frame.c.
6863 * dwarf2/frame.h: Rename from dwarf2-frame.h.
6864 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
6865 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
6866 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
6867 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
6868 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
6869 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
6870 * dwarf2/loc.c: Rename from dwarf2loc.c.
6871 * dwarf2/loc.h: Rename from dwarf2loc.h.
6872 * dwarf2/read.c: Rename from dwarf2read.c.
6873 * dwarf2/read.h: Rename from dwarf2read.h.
6874 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
6875 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
6876 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
6877 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
6878 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
6879 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
6880 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
6881 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
6882 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
6883 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
6884 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
6885 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
6886 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
6887 Update.
6888 * Makefile.in (COMMON_SFILES): Update.
6889 (HFILES_NO_SRCDIR): Update.
6890
9e35d499
TT
68912020-02-08 Tom Tromey <tom@tromey.com>
6892
6893 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
6894 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
6895
1eba2311
TT
68962020-02-08 Tom Tromey <tom@tromey.com>
6897
6898 * dwarf2read.h (struct die_info): Don't declare.
6899
e41c2da2
TT
69002020-02-08 Tom Tromey <tom@tromey.com>
6901
6902 * dwarf2read.h (die_info_ptr): Remove typedef.
6903
4fc6c0d5
TT
69042020-02-08 Tom Tromey <tom@tromey.com>
6905
6906 * dwarf2read.c (read_call_site_scope)
6907 (handle_data_member_location, dwarf2_add_member_fn)
6908 (mark_common_block_symbol_computed, read_common_block)
6909 (attr_to_dynamic_prop, partial_die_info::read)
6910 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
6911 (dwarf2_symbol_mark_computed, set_die_type): Update.
6912 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
6913 method.
6914 (attr_form_is_block): Don't declare.
6915 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
6916
cd6c91b4
TT
69172020-02-08 Tom Tromey <tom@tromey.com>
6918
6919 * dwarf2read.c (dwarf2_find_base_address, )
6920 (read_call_site_scope, rust_containing_type)
6921 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
6922 (handle_data_member_location, dwarf2_add_member_fn)
6923 (get_alignment, read_structure_type, process_structure_scope)
6924 (mark_common_block_symbol_computed, read_common_block)
6925 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
6926 (partial_die_info::read, read_attribute_value, new_symbol)
6927 (lookup_die_type, dwarf2_get_ref_die_offset)
6928 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
6929 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
6930 (dwarf2_symbol_mark_computed): Update.
6931 * dwarf2/attribute.h (struct attribute) <value_as_address,
6932 form_is_section_offset, form_is_constant, form_is_ref>: Declare
6933 methods.
6934 (value_as_address, attr_form_is_section_offset)
6935 (attr_form_is_constant, attr_form_is_ref): Don't declare.
6936 * dwarf2/attribute.c (attribute::value_as_address)
6937 (attribute::form_is_section_offset, attribute::form_is_constant)
6938 (attribute::form_is_ref): Now methods.
6939
162dce55
TT
69402020-02-08 Tom Tromey <tom@tromey.com>
6941
6942 * dwarf2read.c (struct attribute, DW_STRING)
6943 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
6944 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
6945 (attr_form_is_block, attr_form_is_section_offset)
6946 (attr_form_is_constant, attr_form_is_ref): Move.
6947 * dwarf2/attribute.h: New file.
6948 * dwarf2/attribute.c: New file, from dwarf2read.c.
6949 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
6950
3054dd54
TT
69512020-02-08 Tom Tromey <tom@tromey.com>
6952
6953 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
6954 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
6955 Move.
6956 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
6957 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
6958 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
6959 abbrev.c.
6960 * dwarf2/abbrev.h: New file.
6961 * dwarf2/abbrev.c: New file, from dwarf2read.c.
6962 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
6963
96b79293
TT
69642020-02-08 Tom Tromey <tom@tromey.com>
6965
6966 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
6967 (dwarf2_section_size, dwarf2_get_section_info)
6968 (create_signatured_type_table_from_debug_names)
6969 (create_addrmap_from_aranges, read_debug_names_from_section)
6970 (get_gdb_index_contents_from_section, read_comp_unit_head)
6971 (error_check_comp_unit_head, read_abbrev_offset)
6972 (create_debug_type_hash_table, init_cu_die_reader)
6973 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
6974 (read_comp_units_from_section, create_cus_hash_table)
6975 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6976 (create_dwp_v2_section, dwarf2_rnglists_process)
6977 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
6978 (abbrev_table_read_table, read_indirect_string_at_offset_from)
6979 (read_indirect_string_from_dwz, read_addr_index_1)
6980 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
6981 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6982 (fill_in_loclist_baton): Update.
6983 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
6984 get_containing_section, get_bfd_owner, get_bfd_section,
6985 get_file_name, get_id, get_flags, empty, read>: Declare methods.
6986 (dwarf2_read_section, get_section_name, get_section_file_name)
6987 (get_containing_section, get_section_bfd_owner)
6988 (get_section_bfd_section, get_section_name, get_section_file_name)
6989 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
6990 declare.
6991 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
6992 (dwarf2_section_info::get_bfd_owner)
6993 (dwarf2_section_info::get_bfd_section)
6994 (dwarf2_section_info::get_name)
6995 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
6996 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
6997 (dwarf2_section_info::read): Now methods.
6998 * dwarf-index-write.c (class debug_names): Update.
6999
2c86cff9
TT
70002020-02-08 Tom Tromey <tom@tromey.com>
7001
7002 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
7003 Move to dwarf2/section.h.
7004 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
7005 (get_section_bfd_section, get_section_name)
7006 (get_section_file_name, get_section_id, get_section_flags)
7007 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
7008 dwarf2/section.c.
7009 * dwarf2/section.h: New file.
7010 * dwarf2/section.c: New file, from dwarf2read.c.
7011 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
7012
f4382c45
TT
70132020-02-08 Tom Tromey <tom@tromey.com>
7014
7015 * dwarf2read.h (read_unsigned_leb128): Don't declare.
7016 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
7017 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
7018 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
7019 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
7020 * dwarf2/leb.h: New file, from dwarf2read.c.
7021 * dwarf2/leb.c: New file, from dwarf2read.c.
7022 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
7023 Remove.
7024 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
7025 (COMMON_SFILES): Add dwarf2/leb.c.
7026
01840b7a
JB
70272020-02-08 Joel Brobecker <brobecker@adacore.com>
7028
7029 GDB 9.1 released.
7030
dfcb27e4
IB
70312020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7032
7033 PR gdb/25190:
aac66a4c
SM
7034 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
7035 * gdb/remote.c (remote_console_output): Update.
7036 * gdb/ui-file.c (fputs_unfiltered): Rename to...
7037 (ui_file_puts): ...this.
7038 * gdb/ui-file.h (ui_file_puts): Add declaration.
7039 * gdb/utils.c (emit_style_escape): Update.
7040 (flush_wrap_buffer): Update.
7041 (fputs_maybe_filtered): Update.
7042 (fputs_unfiltered): Add function.
dfcb27e4 7043
faa17681
IB
70442020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7045
aac66a4c
SM
7046 * gdb/event-loop.c (gdb_wait_for_event): Update.
7047 * gdb/printcmd.c (printf_command): Update.
7048 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
7049 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
7050 (gdb_os_flush_stderr): Update.
7051 * gdb/remote.c (remote_console_output): Update.
7052 * gdb/ui-file.c (gdb_flush): Rename to...
7053 (ui_file_flush): ...this.
7054 (stderr_file::write): Update.
7055 (stderr_file::puts): Update.
7056 * gdb/ui-file.h (gdb_flush): Rename to...
7057 (ui_file_flush): ...this.
7058 * gdb/utils.c (gdb_flush): Add function.
7059 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 7060
5abbbe1d
TT
70612020-02-07 Tom Tromey <tromey@adacore.com>
7062
7063 PR breakpoints/24915:
7064 * source.c (find_and_open_source): Do not check basenames_may_differ.
7065
919adfe8
TT
70662020-02-07 Tom Tromey <tom@tromey.com>
7067
7068 * README: Update gdbserver documentation.
7069 * gdbserver: Move to top level.
7070 * configure.tgt (build_gdbserver): Remove.
7071 * configure.ac: Remove --enable-gdbserver.
7072 * configure: Rebuild.
7073 * Makefile.in (distclean): Don't mention gdbserver.
7074
1d5d29e7
SV
70752020-02-06 Shahab Vahedi <shahab@synopsys.com>
7076
7077 * source-cache.c (source_cache::ensure): Surround
7078 get_plain_source_lines with a try/catch.
7079 (source_cache::get_line_charpos): Get rid of try/catch
7080 and only check for the return value of "ensure".
7081 * tui/tui-source.c (tui_source_window::set_contents):
7082 Simplify "nlines" calculation.
7083
6eb1129c
SV
70842020-02-06 Shahab Vahedi <shahab@synopsys.com>
7085
7086 * MAINTAINERS (Write After Approval): Add myself.
7087
c6a42d11
CB
70882020-02-05 Christian Biesinger <cbiesinger@google.com>
7089
7090 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
7091 function call.
7092
c8ecdda6
CB
70932020-02-05 Christian Biesinger <cbiesinger@google.com>
7094
7095 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
7096
f6480e70
MR
70972020-02-05 Maciej W. Rozycki <macro@wdc.com>
7098
7099 * nat/riscv-linux-tdesc.h: New file.
7100 * nat/riscv-linux-tdesc.c: New file, taking code from...
7101 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7102 ... here.
7103 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
7104 NATDEPFILES.
7105
dcc9fbc6
AB
71062020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
7109 we don't set the fake simulator ptid to the null_ptid.
7110
719546c4
SM
71112020-02-03 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
7114 * gdbthread.h (class thread_info) <resumed>: Likewise.
7115 * infrun.c (resume_1): Likewise.
7116 (proceed): Likewise.
7117 (infrun_thread_stop_requested): Likewise.
7118 (stop_all_threads): Likewise.
7119 (handle_inferior_event): Likewise.
7120 (restart_threads): Likewise.
7121 (finish_step_over): Likewise.
7122 (keep_going_stepped_thread): Likewise.
7123 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
7124 (linux_handle_extended_wait): Likewise.
7125 * record-btrace.c (get_thread_current_frame_id): Likewise.
7126 * record-full.c (record_full_wait_1): Likewise.
7127 * remote.c (remote_target::process_initial_stop_replies): Likewise.
7128 * target.c (target_resume): Likewise.
7129 * thread.c (set_running_thread): Likewise.
7130
e409c542
AKS
71312020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7132
7133 * f-valprint.c (f77_print_array_1): Changed datatype of index
7134 variable to LONGEST from int to enable it to contain bound
7135 values correctly.
7136
ee98c0da
MR
71372020-02-03 Maciej W. Rozycki <macro@wdc.com>
7138
7139 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
7140 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
7141 offsets according to FLEN determined.
7142 (riscv_linux_nat_target::read_description): Determine FLEN
7143 dynamically.
7144 (riscv_linux_nat_target::fetch_registers): Size regset buffer
7145 according to FLEN determined.
7146 (riscv_linux_nat_target::store_registers): Likewise.
7147
aa66aac4
SV
71482020-02-01 Shahab Vahedi <shahab@synopsys.com>
7149
7150 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7151 when reg->group is empty and reggroup is not.
7152
fd9faca8
TT
71532020-01-31 Tom Tromey <tromey@adacore.com>
7154
7155 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
7156 Call beneath target's mourn_inferior after unpushing.
7157
42330a68
AB
71582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7159
7160 PR tui/9765
7161 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
7162 have enough lines to fill the screen, still return the lowest
7163 address we found.
7164
7a27a45b
AB
71652020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
7168 '-', '<', and '>' commands.
7169
c47f70e2
PA
71702020-01-29 Pedro Alves <palves@redhat.com>
7171 Sergio Durigan Junior <sergiodj@redhat.com>
7172
7173 * infcmd.c (construct_inferior_arguments): Assert that
7174 'argc' is greater than 0.
7175
5133a315
LM
71762020-01-29 Luis Machado <luis.machado@linaro.org>
7177
7178 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
7179 (BRK_INSN_MASK): Define to 0xd4200000.
7180 (aarch64_program_breakpoint_here_p): New function.
7181 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
7182 * arch-utils.c (default_program_breakpoint_here_p): Moved from
7183 breakpoint.c.
7184 * arch-utils.h (default_program_breakpoint_here_p): Moved from
7185 breakpoint.h
7186 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
7187 call gdbarch_program_breakpoint_here_p.
7188 (program_breakpoint_here): Moved to arch-utils.c, renamed to
7189 default_program_breakpoint_here_p, changed return type to bool and
7190 simplified.
7191 * breakpoint.h (program_breakpoint_here): Moved prototype to
7192 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
7193 return type to bool.
7194 * gdbarch.c: Regenerate.
7195 * gdbarch.h: Regenerate.
7196 * gdbarch.sh (program_breakpoint_here_p): New method.
7197 * infrun.c (handle_signal_stop): Call
7198 gdbarch_program_breakpoint_here_p.
7199
168f8c6b
TT
72002020-01-26 Tom Tromey <tom@tromey.com>
7201
7202 * ctfread.c (struct ctf_fp_info): Reindent.
7203 (_initialize_ctfread): Remove.
7204
128a391f
TT
72052020-01-26 Tom Tromey <tom@tromey.com>
7206
7207 * psymtab.c (partial_map_expand_apply)
7208 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7209 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7210 (psym_print_stats, psym_expand_symtabs_for_function)
7211 (psym_map_symbol_filenames, psym_map_matching_symbols)
7212 (psym_expand_symtabs_matching)
7213 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7214 (maintenance_check_psymtabs): Use new methods.
7215 * psympriv.h (struct partial_symtab) <readin_p,
7216 get_compunit_symtab>: New methods.
7217 <readin, compunit_symtab>: Remove members.
7218 (struct standard_psymtab): New.
7219 (struct legacy_psymtab): Derive from standard_psymtab.
7220 * dwarf2read.h (struct dwarf2_psymtab): Derive from
7221 standard_psymtab.
7222 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
7223
0494dbec
TT
72242020-01-26 Tom Tromey <tom@tromey.com>
7225
7226 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
7227 read_dependencies. Add assert.
7228 * psymtab.c (partial_symtab::read_dependencies): New method.
7229 * psympriv.h (struct partial_symtab) <read_dependencies>: New
7230 method.
7231 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
7232 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
7233 read_dependencies.
7234 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
7235 Add assert.
7236
8566b89b
TT
72372020-01-26 Tom Tromey <tom@tromey.com>
7238
7239 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
7240 Call expand_psymtab.
7241 (xcoff_read_symtab): Call expand_psymtab.
7242 (xcoff_start_psymtab, xcoff_end_psymtab): Set
7243 legacy_expand_psymtab.
7244 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
7245 method.
7246 (struct legacy_psymtab) <expand_psymtab>: Implement.
7247 <legacy_expand_psymtab>: New member.
7248 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
7249 (parse_partial_symbols): Set legacy_expand_psymtab.
7250 (psymtab_to_symtab_1): Change argument order. Call
7251 expand_psymtab.
7252 (new_psymtab): Set legacy_expand_psymtab.
7253 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
7254 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
7255 expand_psymtab.
7256 (dwarf2_psymtab::expand_psymtab): Rename from
7257 psymtab_to_symtab_1. Call expand_psymtab.
7258 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
7259 (dbx_end_psymtab): Likewise.
7260 (dbx_psymtab_to_symtab_1): Change argument order. Call
7261 expand_psymtab.
7262 (dbx_read_symtab): Call expand_psymtab.
7263 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
7264 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
7265 (ctf_psymtab::read_symtab): Call expand_psymtab.
7266
077cbab2
TT
72672020-01-26 Tom Tromey <tom@tromey.com>
7268
7269 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
7270 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
7271 messages.
7272 * mdebugread.c (mdebug_read_symtab): Remove prints.
7273 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
7274 assert.
7275 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
7276
891813be
TT
72772020-01-26 Tom Tromey <tom@tromey.com>
7278
7279 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
7280 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
7281 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
7282 legacy_symtab.
7283 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
7284 * psymtab.c (psymtab_to_symtab): Call method.
7285 (dump_psymtab): Update.
7286 * psympriv.h (struct partial_symtab): Add virtual destructor.
7287 <read_symtab>: New method.
7288 (struct legacy_symtab): New.
7289 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
7290 (struct pst_map) <pst>: Now a legacy_psymtab.
7291 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
7292 (new_psymtab): Use legacy_psymtab.
7293 * dwarf2read.h (struct dwarf2_psymtab): New.
7294 (struct dwarf2_per_cu_data) <psymtab>: Use it.
7295 * dwarf2read.c (dwarf2_create_include_psymtab)
7296 (dwarf2_build_include_psymtabs, create_type_unit_group)
7297 (create_partial_symtab, process_psymtab_comp_unit_reader)
7298 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
7299 (set_partial_user): Use dwarf2_psymtab.
7300 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
7301 (psymtab_to_symtab_1, process_full_comp_unit)
7302 (process_full_type_unit, dwarf2_ranges_read)
7303 (dwarf2_get_pc_bounds, psymtab_include_file_name)
7304 (dwarf_decode_lines): Use dwarf2_psymtab.
7305 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
7306 (add_address_entry_worker, write_one_signatured_type)
7307 (recursively_count_psymbols, recursively_write_psymbols)
7308 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
7309 (write_debug_names): Likewise.
7310 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
7311 <pst>: Now a legacy_psymtab.
7312 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
7313 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
7314 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
7315 * ctfread.c (struct ctf_psymtab): New.
7316 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
7317 ctf_psymtab.
7318 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
7319 (create_partial_symtab): Return a ctf_psymtab.
7320 (scan_partial_symbols): Update.
7321
c3693a1d
TT
73222020-01-26 Tom Tromey <tom@tromey.com>
7323
7324 * xcoffread.c (xcoff_start_psymtab): Use new.
7325 * psymtab.c (partial_symtab::partial_symtab): New constructor,
7326 renamed from start_psymtab_common.
7327 * psympriv.h (struct partial_symtab): Add new constructor.
7328 (start_psymtab_common): Don't declare.
7329 * mdebugread.c (parse_partial_symbols): Use new.
7330 * dwarf2read.c (create_partial_symtab): Use new.
7331 * dbxread.c (start_psymtab): Use new.
7332 * ctfread.c (create_partial_symtab): Use new.
7333
32caafd0
TT
73342020-01-26 Tom Tromey <tom@tromey.com>
7335
7336 * xcoffread.c (xcoff_end_psymtab): Use new.
7337 * psymtab.c (start_psymtab_common): Use new.
7338 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
7339 Update.
7340 * psympriv.h (struct partial_symtab): Add parameters to
7341 constructor. Don't inline.
7342 (allocate_psymtab): Don't declare.
7343 * mdebugread.c (new_psymtab): Use new.
7344 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
7345 * dbxread.c (dbx_end_psymtab): Use new.
7346
abaa2f23
TT
73472020-01-26 Tom Tromey <tom@tromey.com>
7348
7349 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
7350 allocate_psymtab. Update documentation.
7351 * psymtab.c (psymtab_storage::install_psymtab): Rename from
7352 allocate_psymtab. Do not use new.
7353 (allocate_psymtab): Use new. Update.
7354
6d94535f
TT
73552020-01-26 Tom Tromey <tom@tromey.com>
7356
7357 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7358 * psymtab.c (psym_print_stats): Update.
7359 * psympriv.h (struct partial_symtab) <readin,
7360 psymtabs_addrmap_supported, anonymous>: Now bool.
7361 * mdebugread.c (psymtab_to_symtab_1): Update.
7362 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
7363 (build_type_psymtabs_reader, psymtab_to_symtab_1)
7364 (process_full_comp_unit, process_full_type_unit): Update.
7365 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7366 * ctfread.c (psymtab_to_symtab): Update.
7367
6f17252b
TT
73682020-01-26 Tom Tromey <tom@tromey.com>
7369
7370 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
7371 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
7372 * psymtab.c (psymtab_storage): Delete psymtabs.
7373 (psymtab_storage::allocate_psymtab): Use new.
7374 (psymtab_storage::discard_psymtab): Use delete.
7375 * psympriv.h (struct partial_symtab): Add constructor and
7376 initializers.
7377
f6f1cebc
TT
73782020-01-26 Tom Tromey <tom@tromey.com>
7379
7380 * machoread.c: Do not include psympriv.h.
7381
e47e48f6
PW
73822020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7383
7384 * NEWS: Mention the new option and the set/show commands.
7385
a2fedca9
PW
73862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7387
7388 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
7389 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
7390 (validate_exec_file): New variables, enums, functions.
7391 (exec_file_locate_attach, print_section_info): Style the filenames.
7392 (_initialize_exec): Install show_exec_file_mismatch_command and
7393 set_exec_file_mismatch_command.
7394 * gdbcore.h (validate_exec_file): Declare.
7395 * infcmd.c (attach_command): Call validate_exec_file.
7396 * remote.c ( remote_target::remote_add_inferior): Likewise.
7397
7ffa82e1
AB
73982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7399
7400 * frame.c (find_frame_sal): Move call to get_next_frame into more
7401 inner scope.
7402 * inline-frame.c (inilne_state) <inline_state>: Update argument
7403 types.
7404 (inilne_state) <skipped_symbol>: Rename to...
7405 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
7406 (skip_inline_frames): Build vector of skipped symbols and use this
7407 to reate the inline_state.
7408 (inline_skipped_symbol): Add a comment and some assertions, fetch
7409 skipped symbol from the list.
7410
3d92a3e3
AB
74112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7412
7413 * buildsym.c (lte_is_less_than): Delete.
7414 (buildsym_compunit::end_symtab_with_blockvector): Create local
7415 lambda function to sort line table entries, and use
7416 std::stable_sort instead of std::sort.
7417 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
7418 markers when looking for a previous line.
7419
94a72be7
AB
74202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * dwarf2read.c (lnp_state_machine::record_line): Include
7423 end_sequence parameter in debug print out. Record the line if we
7424 are at an end_sequence marker even if it's not the start of a
7425 statement.
7426 * symmisc.c (maintenance_print_one_line_table): Print end of
7427 sequence markers with 'END' not '0'.
7428
53af73bf
PA
74292020-01-24 Pedro Alves <palves@redhat.com>
7430
7431 PR gdb/25410
7432 * thread.c (scoped_restore_current_thread::restore): Use
7433 switch_to_inferior_no_thread.
7434 * exec.c: Include "progspace-and-thread.h".
7435 (add_target_sections, remove_target_sections):
7436 scoped_restore_current_pspace_and_thread instead of
7437 scoped_restore_current_thread.
7438 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
7439 and aspace to the inferior before calling clone_program_space.
7440 Remove stale comment.
7441
3050c6f4
CB
74422020-01-24 Christian Biesinger <cbiesinger@google.com>
7443
7444 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
7445 (arm_netbsd_nat_target::fetch_registers): ...this.
7446 (arm_nbsd_nat_target::store_registers): Rename to...
7447 (arm_netbsd_nat_target::store_registers): ...this.
7448
73685c7e
CB
74492020-01-24 Christian Biesinger <cbiesinger@google.com>
7450
7451 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7452 register_t.
7453
89203d40
CB
74542020-01-24 Christian Biesinger <cbiesinger@google.com>
7455
7456 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
7457 Update comment.
7458 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
7459 Likewise.
7460 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
7461 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
7462 the correct replacement (iterate_over_regset_sections).
7463 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
7464 Update comment.
7465
1ba1ac88
AB
74662020-01-24 Graham Markall <graham.markall@embecosm.com>
7467
7468 PR gdb/23718
7469 * gdb/python/python.c (execute_gdb_command): Call
7470 async_enable_stdin in catch block.
7471
f3364a6d
AB
74722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7473
7474 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
7475 SWITCH_THRU_ALL_UIS.
7476
733d0a67
AB
74772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 PR tui/9765
7480 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
7481 comment, add extra parameter, and update to store previous symbol
7482 when appropriate.
7483 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
7484 add extra parameter.
7485 * tui/tui-disasm.c (tui_disassemble): Update header comment,
7486 remove unneeded parameter, add try/catch around gdb_print_insn,
7487 rewrite to add items to asm_lines vector.
7488 (tui_find_backward_disassembly_start_address): New function.
7489 (tui_find_disassembly_address): Updated throughout.
7490 (tui_disasm_window::set_contents): Update for changes to
7491 tui_disassemble.
7492 (tui_disasm_window::do_scroll_vertical): No need to adjust the
7493 number of lines to scroll.
7494
b3b3bada
SM
74952020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
7496
7497 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
7498 (SECT_OFF_DATA): Likewise.
7499 (SECT_OFF_RODATA): Likewise.
7500 (SECT_OFF_TEXT): Likewise.
7501 (SECT_OFF_BSS): Likewise.
7502 (struct objfile) <text_section_offset, data_section_offset>: New
7503 methods.
7504 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
7505 objfile::text_section_offset.
7506 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
7507 * coffread.c (coff_symtab_read): Likewise.
7508 (enter_linenos): Likewise.
7509 (process_coff_symbol): Likewise.
7510 * ctfread.c (get_objfile_text_range): Likewise.
7511 * dtrace-probe.c (dtrace_probe::get_relocated_address):
7512 Use objfile::data_section_offset.
7513 * dwarf2-frame.c (execute_cfa_program): Use
7514 objfile::text_section_offset.
7515 (dwarf2_frame_find_fde): Likewise.
7516 * dwarf2read.c (create_addrmap_from_index): Likewise.
7517 (create_addrmap_from_aranges): Likewise.
7518 (dw2_find_pc_sect_compunit_symtab): Likewise.
7519 (process_psymtab_comp_unit_reader): Likewise.
7520 (add_partial_symbol): Likewise.
7521 (add_partial_subprogram): Likewise.
7522 (process_full_comp_unit): Likewise.
7523 (read_file_scope): Likewise.
7524 (read_func_scope): Likewise.
7525 (read_lexical_block_scope): Likewise.
7526 (read_call_site_scope): Likewise.
7527 (dwarf2_rnglists_process): Likewise.
7528 (dwarf2_ranges_process): Likewise.
7529 (dwarf2_ranges_read): Likewise.
7530 (dwarf_decode_lines_1): Likewise.
7531 (new_symbol): Likewise.
7532 (dwarf2_fetch_die_loc_sect_off): Likewise.
7533 (dwarf2_per_cu_text_offset): Likewise.
7534 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
7535 * hppa-tdep.c (read_unwind_info): Likewise.
7536 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
7537 * psympriv.h (struct partial_symtab): Likewise.
7538 * psymtab.c (find_pc_sect_psymtab): Likewise.
7539 * solib-svr4.c (enable_break): Likewise.
7540 * stap-probe.c (relocate_address): Use
7541 objfile::data_section_offset.
7542 * xcoffread.c (enter_line_range): Use
7543 objfile::text_section_offset.
7544 (read_xcoff_symtab): Likewise.
7545
ab53f382
SM
75462020-01-23 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
7549 declaration to narrower scopes.
7550
e7eee665
SM
75512020-01-23 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * darwin-nat.h (struct darwin_exception_msg, enum
7554 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
7555 Move up.
7556 (class darwin_nat_target) <wait_1, check_new_threads,
7557 decode_exception_message, decode_message, stop_inferior,
7558 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
7559 * darwin-nat.c (darwin_check_new_threads): Rename to...
7560 (darwin_nat_target::check_new_threads): ... this.
7561 (darwin_suspend_inferior_it): Remove.
7562 (darwin_decode_exception_message): Rename to...
7563 (darwin_nat_target::decode_exception_message): ... this.
7564 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
7565 (darwin_decode_message): Rename to...
7566 (darwin_nat_target::decode_message): ... this.
7567 (cancel_breakpoint): Rename to...
7568 (darwin_nat_target::cancel_breakpoint): ... this.
7569 (darwin_wait): Rename to...
7570 (darwin_nat_target::wait_1): ... this. Use range-based for loop
7571 instead of iterate_over_inferiors.
7572 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
7573 (darwin_stop_inferior): Rename to...
7574 (darwin_nat_target::stop_inferior): ... this.
7575 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
7576 (darwin_init_thread_list): Rename to...
7577 (darwin_nat_target::init_thread_list): ... this.
7578 (darwin_ptrace_him): Rename to...
7579 (darwin_nat_target::ptrace_him): ... this.
7580 (darwin_nat_target::create_inferior): Pass lambda function to
7581 fork_inferior.
7582 (darwin_nat_target::detach): Call stop_inferior instead of
7583 darwin_stop_inferior.
7584 * fork-inferior.h (fork_inferior): Change init_trace_fun
7585 parameter to gdb::function_view.
7586 * fork-inferior.c (fork_inferior): Likewise.
7587
c162ed3e
HD
75882020-01-23 Hannes Domani <ssbssa@yahoo.de>
7589
7590 * i386-cygwin-tdep.c (core_process_module_section): Update.
7591 * windows-nat.c (struct lm_info_windows): Add text_offset.
7592 (windows_xfer_shared_libraries): Update.
7593 * windows-tdep.c (windows_xfer_shared_library):
7594 Add text_offset_cached argument.
7595 * windows-tdep.h (windows_xfer_shared_library): Update.
7596
a1237872
SM
75972020-01-21 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * gdbarch.sh: Add declaration for _initialize_gdbarch.
7600
b3ee6dd9
SM
76012020-01-21 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
7604 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
7605 replace with range-based for.
7606 (gdbsim_interrupt_inferior): Remove.
7607 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
7608 with a range-based for. Inline code from
7609 gdbsim_interrupt_inferior.
7610
f9fac3c8
SM
76112020-01-21 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * infrun.c (proceed): Fix indentation.
7614
f6474de9
TT
76152020-01-21 Tom Tromey <tromey@adacore.com>
7616
7617 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
7618 * python/python.c (python_extension_ops): Update.
7619 (gdbpy_colorize): New function.
7620 * python/lib/gdb/__init__.py (colorize): New function.
7621 * extension.h (ext_lang_colorize): Declare.
7622 * extension.c (ext_lang_colorize): New function.
7623 * extension-priv.h (struct extension_language_ops) <colorize>: New
7624 member.
7625 * cli/cli-style.c (_initialize_cli_style): Update help text.
7626
f0c702d4
LM
76272020-01-21 Luis Machado <luis.machado@linaro.org>
7628
7629 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
7630 <cond>: Change type to bool.
7631 (aarch64_displaced_step_b_cond): Update cond to use bool type.
7632 (aarch64_displaced_step_cb): Likewise.
7633 (aarch64_displaced_step_tb): Likewise.
7634
1ab139e5
LM
76352020-01-21 Luis Machado <luis.machado@linaro.org>
7636
7637 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
7638 output.
7639
0c271889
LM
76402020-01-21 Luis Machado <luis.machado@linaro.org>
7641
7642 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
7643 <pc_adjust>: Adjust the documentation.
7644 (aarch64_displaced_step_fixup): Check if PC really moved before
7645 adjusting it.
7646
4d89c1c7
TT
76472020-01-19 Tom Tromey <tom@tromey.com>
7648
7649 * disasm.c (~gdb_disassembler): New destructor.
7650 (gdb_buffered_insn_length): Call disassemble_free_target.
7651 * disasm.h (class gdb_disassembler): Declare destructor. Use
7652 DISABLE_COPY_AND_ASSIGN.
7653
c0ab21c2
TT
76542020-01-19 Tom Tromey <tom@tromey.com>
7655
7656 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
7657 (die_reader_func_ftype): Remove.
7658 (cutu_reader): New class.
7659 (dw2_get_file_names_reader): Remove "data" parameter.
7660 (dw2_get_file_names): Use cutu_reader.
7661 (create_debug_type_hash_table): Update.
7662 (read_cutu_die_from_dwo): Update comment.
7663 (lookup_dwo_unit): Add dwo_name parameter.
7664 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
7665 die_reader_func_ftype and data parameters.
7666 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
7667 Remove die_reader_func_ftype and data parameters.
7668 (~cutu_reader): New; from init_cutu_and_read_dies.
7669 (cutu_reader::cutu_reader): Rename from
7670 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
7671 and data parameters.
7672 (init_cutu_and_read_dies_simple): Remove.
7673 (struct process_psymtab_comp_unit_data): Remove.
7674 (process_psymtab_comp_unit_reader): Remove data parameter; add
7675 want_partial_unit and pretend_language parameters.
7676 (process_psymtab_comp_unit): Use cutu_reader.
7677 (build_type_psymtabs_reader): Remove data parameter.
7678 (build_type_psymtabs_1): Use cutu_reader.
7679 (process_skeletonless_type_unit): Likewise.
7680 (load_partial_comp_unit_reader): Remove.
7681 (load_partial_comp_unit): Use cutu_reader.
7682 (load_full_comp_unit_reader): Remove.
7683 (load_full_comp_unit): Use cutu_reader.
7684 (struct create_dwo_cu_data): Remove.
7685 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
7686 dwo_unit parameters.
7687 (create_cus_hash_table): Use cutu_reader.
7688 (struct dwarf2_read_addr_index_data): Remove.
7689 (dwarf2_read_addr_index_reader): Remove.
7690 (dwarf2_read_addr_index): Use cutu_reader.
7691 (read_signatured_type_reader): Remove.
7692 (read_signatured_type): Use cutu_reader.
7693
45bbae5c
TT
76942020-01-19 Tom Tromey <tom@tromey.com>
7695
7696 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
7697 * tui/tui-wingeneral.h (class tui_suppress_output): New.
7698 (tui_wrefresh): Declare.
7699 * tui/tui-wingeneral.c (suppress_output): New global.
7700 (tui_suppress_output, ~tui_suppress_output): New constructor and
7701 destructor.
7702 (tui_wrefresh): New function.
7703 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
7704 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
7705 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
7706 method.
7707 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
7708 tui_wrefresh.
7709 (tui_data_window::no_refresh): New method.
7710 (tui_data_item_window::refresh_window): Call tui_wrefresh.
7711 (tui_reg_command): Use tui_suppress_output
7712 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
7713 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
7714 method.
7715 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
7716
4f13c1c0
TT
77172020-01-19 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7720 Handle case where symtab is null.
7721
fa47e446
SM
77222020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7723
7724 * linux-fork.c (one_fork_p): Simplify.
7725
26f42329
SM
77262020-01-17 Simon Marchi <simon.marchi@efficios.com>
7727
7728 * top.c (struct qt_args): Remove.
7729 (kill_or_detach): Change return type to void, replace `void *`
7730 parameter with a proper one.
7731 (print_inferior_quit_action): Likewise.
7732 (quit_confirm): Use range-based for loop to iterate over inferiors.
7733 (quit_force): Likewise.
7734
a9ac81b1
SM
77352020-01-17 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
7738 `void *` parameter with proper parameters.
7739 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
7740 (print_one_inferior): Change return type to void, replace `void *`
7741 parameter with proper parameters.
7742 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
7743 inferiors.
7744 (get_other_inferior): Remove.
7745 (mi_cmd_remove_inferior): Use range-based loop to iterate over
7746 inferiors.
7747
788eca49
SM
77482020-01-17 Simon Marchi <simon.marchi@efficios.com>
7749
7750 * mi/mi-interp.c (report_initial_inferior): Remove.
7751 (mi_interp::init): Use range-based for to iterate over inferiors.
7752
d9bc85b6
SM
77532020-01-17 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * python/py-inferior.c (build_inferior_list): Remove.
7756 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
7757
40c94099
CB
77582020-01-16 Christian Biesinger <cbiesinger@google.com>
7759
7760 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
7761 (btrace_stitch_trace): Likewise.
7762 * charset.c (intermediate_encoding): Likewise (vaild).
7763 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
7764 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
7765 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
7766
e0cdfe3c
HD
77672020-01-16 Hannes Domani <ssbssa@yahoo.de>
7768
7769 * windows-tdep.c (windows_get_tlb_type):
7770 Add rtl_user_process_parameters type.
7771
790f1718 77722020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 7773 Norbert Lange <nolange79@gmail.com>
790f1718
PA
7774
7775 PR build/24805
7776 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
7777 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
7778 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
7779 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
7780 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
7781 (ps_plog): Redeclare exported functions with default visibility.
7782
3112ed97
NA
77832020-01-16 Nitika Achra <Nitika.Achra@amd.com>
7784
7785 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
7786 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
7787
8dc3273e
SM
77882020-01-15 Simon Marchi <simon.marchi@efficios.com>
7789
7790 * infcmd.c (post_create_inferior): Use get_thread_regcache
7791 instead of get_current_regcache.
7792
ff47f4f0
TT
77932020-01-14 Tom Tromey <tom@tromey.com>
7794
7795 PR symtab/12535:
7796 * python/python.c (gdbpy_decode_line): Treat empty string the same
7797 as no argument.
7798
975f45b7
TT
77992020-01-14 Tom Tromey <tom@tromey.com>
7800
7801 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
7802
25e57356
TT
78032020-01-14 Tom Tromey <tom@tromey.com>
7804
7805 * nat/linux-btrace.c: Don't include <config.h>.
7806 * nat/linux-ptrace.c: Don't include <config.h>.
7807 * nat/x86-linux-dregs.c: Don't include <config.h>.
7808
05ea2a05
TT
78092020-01-14 Tom Tromey <tom@tromey.com>
7810
7811 * configure: Rebuild.
7812 * configure.ac: Move many checks to ../gdbsupport/common.m4.
7813
01027315
TT
78142020-01-14 Tom Tromey <tom@tromey.com>
7815
7816 * nat/x86-linux-dregs.c: Include configh.h.
7817 * nat/linux-ptrace.c: Include configh.h.
7818 * nat/linux-btrace.c: Include configh.h.
7819 * defs.h: Include config.h, bfd.h.
7820 * configure.ac: Don't source common.host.
7821 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
7822 * configure: Rebuild.
7823 * acinclude.m4: Update path.
7824 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
7825 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
7826 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
7827 (CLIBS): Add LIBSUPPORT.
7828 (CDEPS): Likewise.
7829 (COMMON_SFILES): Remove gdbsupport files.
7830 (HFILES_NO_SRCDIR): Likewise.
7831 (stamp-version): Update path to create-version.sh.
7832 (ALLDEPFILES): Remove gdbsupport files.
7833
b2ceabe8
TT
78342020-01-14 Tom Tromey <tom@tromey.com>
7835
7836 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
7837 USE_WIN32API when needed.
7838 * configure.ac (USE_WIN32API): Don't define.
7839 (WIN32LIBS): Use WIN32APILIBS.
7840 * configure: Rebuild.
7841
25c51f71
TT
78422020-01-14 Tom Tromey <tom@tromey.com>
7843
7844 * configure: Rebuild.
7845 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
7846
717c684d
BE
78472020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7848
7849 * skip.c (skip_function_command): Make skip w/o arguments use the
7850 name of the inlined function if pc is inside any inlined function.
7851
7da6a5b9
LM
78522020-01-14 Luis Machado <luis.machado@linaro.org>
7853
7854 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
7855 * infrun.c (resume_1): Likewise.
7856 (handle_inferior_event): Remove stale comment.
7857 * linux-nat.c (linux_nat_target::resume): Update comments.
7858 (save_stop_reason): Likewise.
7859 (linux_nat_filter_event): Likewise.
7860 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
7861
44e4c775
AB
78622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7863
7864 * elfread.c (record_minimal_symbol): Set section index to 0 for
7865 non-allocatable sections.
7866
18a8505e
AT
7867
78682020-01-13 Ali Tamur <tamur@google.com>
7869
7870 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
7871 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
7872 to gdb::optional. Update comments.
7873 (dwo_file): Update comments.
7874 (read_attribute): Update API to take an additional out parameter,
7875 need_reprocess. This is used to mark attributes that need other
7876 attributes (e.g. str_offsets_base) for correct computation which may not
7877 have been read yet.
7878 (read_attribute_reprocess): New function declaration.
7879 (read_addr_index): Likewise.
7880 (read_dwo_str_index): Likewise.
7881 (read_stub_str_index): Likewise.
7882 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
7883 (lookup_addr_base): New function definition.
7884 (lookup_ranges_base): Likewise.
7885 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
7886 lookup_ranges_base.
7887 (init_cutu_and_read_dies): Update comments.
7888 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
7889 unit. This is used to inherit parent's str_offsets_base and addr_base.
7890 Update comments.
7891 (init_cutu_and_read_dies_simple): Reflect API changes.
7892 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
7893 (create_cus_hash_table): Change API to take parent compile unit.
7894 Reflect API changes.
7895 (open_and_init_dwo_file): Reflect API changes.
7896 (dwarf2_get_pc_bounds): Update comments.
7897 (dwarf2_record_block_ranges): Likewise.
7898 (read_full_die_1): Change implementation to reprocess attributes that
7899 need str_offsets_base and addr_base.
7900 (partial_die_info::read): Likewise.
7901 (read_attribute_reprocess): New function definition.
7902 (read_attribute_value): Change API to take an additional out parameter,
7903 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
7904 when a non-dwo compile unit has index based attributes.
7905 (read_attribute): Reflect API changes.
7906 (read_addr_index_1): Reflect API changes. Update comments.
7907 (dwarf2_read_addr_index_data): Reflect API changes.
7908 (dwarf2_read_addr_index): Likewise.
7909 (read_str_index): Change API and implementation. This becomes a helper
7910 to be used by the new string index related methods. Update error
7911 message and comments.
7912 (read_dwo_str_index): New function definition.
7913 (read_stub_str_index): Likewise.
7914 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
7915 * symfile.h (dwarf2_debug_sections): Likewise.
7916 * xcoffread.c (dwarf2_debug_sections): Likewise.
7917
0cac9354
SM
79182020-01-13 Simon Marchi <simon.marchi@efficios.com>
7919
7920 * gdbcore.h (struct core_fns) <core_read_registers>: Change
7921 core_reg_sect type to gdb_byte *.
7922 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
7923 * cris-tdep.c (fetch_core_registers): Likewise.
7924 * corelow.c (core_target::get_core_register_section): Change
7925 type of `contents` to gdb::byte_vector.
7926
9a6d629c
AB
79272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * tui/tui-wingeneral.c (box_win): Position the title in the center
7930 of the border.
7931
d8b2f9e3
SM
79322020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7933
7934 * corelow.c (core_target::get_core_register_section): Use
7935 std::vector instead of alloca.
7936
bb564c58
SM
79372020-01-13 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * warning.m4: Add -Wmissing-declarations to build_warnings.
7940 * configure: Re-generate.
7941
6b366111
SM
79422020-01-13 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * python/python.c (init__gdb_module): Add declaration.
7945
6c265988
SM
79462020-01-13 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
7949 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
7950 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
7951 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
7952 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
7953 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
7954 * ada-exp.y (_initialize_ada_exp): Add declaration.
7955 * ada-lang.c (_initialize_ada_language): Add declaration.
7956 * ada-tasks.c (_initialize_tasks): Add declaration.
7957 * agent.c (_initialize_agent): Add declaration.
7958 * aix-thread.c (_initialize_aix_thread): Add declaration.
7959 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
7960 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
7961 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
7962 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
7963 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
7964 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7965 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
7966 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
7967 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
7968 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
7969 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
7970 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
7971 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
7972 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
7973 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
7974 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
7975 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
7976 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
7977 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
7978 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
7979 * annotate.c (_initialize_annotate): Add declaration.
7980 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
7981 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
7982 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
7983 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
7984 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
7985 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
7986 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
7987 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
7988 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
7989 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
7990 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
7991 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
7992 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7993 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
7994 * auto-load.c (_initialize_auto_load): Add declaration.
7995 * auxv.c (_initialize_auxv): Add declaration.
7996 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
7997 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
7998 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
7999 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
8000 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
8001 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
8002 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
8003 * breakpoint.c (_initialize_breakpoint): Add declaration.
8004 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
8005 * btrace.c (_initialize_btrace): Add declaration.
8006 * charset.c (_initialize_charset): Add declaration.
8007 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
8008 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
8009 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
8010 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
8011 * cli/cli-script.c (_initialize_cli_script): Add declaration.
8012 * cli/cli-style.c (_initialize_cli_style): Add declaration.
8013 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
8014 * coffread.c (_initialize_coffread): Add declaration.
8015 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
8016 * compile/compile.c (_initialize_compile): Add declaration.
8017 * complaints.c (_initialize_complaints): Add declaration.
8018 * completer.c (_initialize_completer): Add declaration.
8019 * copying.c (_initialize_copying): Add declaration.
8020 * corefile.c (_initialize_core): Add declaration.
8021 * corelow.c (_initialize_corelow): Add declaration.
8022 * cp-abi.c (_initialize_cp_abi): Add declaration.
8023 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
8024 * cp-support.c (_initialize_cp_support): Add declaration.
8025 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
8026 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
8027 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
8028 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
8029 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
8030 * ctfread.c (_initialize_ctfread): Add declaration.
8031 * d-lang.c (_initialize_d_language): Add declaration.
8032 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
8033 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
8034 * dbxread.c (_initialize_dbxread): Add declaration.
8035 * dcache.c (_initialize_dcache): Add declaration.
8036 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
8037 * disasm.c (_initialize_disasm): Add declaration.
8038 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
8039 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
8040 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
8041 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
8042 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
8043 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
8044 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
8045 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
8046 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
8047 * elfread.c (_initialize_elfread): Add declaration.
8048 * exec.c (_initialize_exec): Add declaration.
8049 * extension.c (_initialize_extension): Add declaration.
8050 * f-lang.c (_initialize_f_language): Add declaration.
8051 * f-valprint.c (_initialize_f_valprint): Add declaration.
8052 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
8053 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
8054 * filesystem.c (_initialize_filesystem): Add declaration.
8055 * findcmd.c (_initialize_mem_search): Add declaration.
8056 * findvar.c (_initialize_findvar): Add declaration.
8057 * fork-child.c (_initialize_fork_child): Add declaration.
8058 * frame-base.c (_initialize_frame_base): Add declaration.
8059 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
8060 * frame.c (_initialize_frame): Add declaration.
8061 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
8062 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
8063 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
8064 * gcore.c (_initialize_gcore): Add declaration.
8065 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
8066 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
8067 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
8068 * gdbarch.c (_initialize_gdbarch): Add declaration.
8069 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
8070 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
8071 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
8072 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
8073 * go-lang.c (_initialize_go_language): Add declaration.
8074 * go32-nat.c (_initialize_go32_nat): Add declaration.
8075 * guile/guile.c (_initialize_guile): Add declaration.
8076 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
8077 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
8078 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
8079 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
8080 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
8081 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
8082 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
8083 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
8084 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
8085 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
8086 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
8087 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
8088 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
8089 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
8090 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
8091 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
8092 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
8093 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
8094 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
8095 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
8096 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
8097 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
8098 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
8099 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
8100 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
8101 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
8102 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
8103 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
8104 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
8105 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
8106 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
8107 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
8108 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
8109 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
8110 * infcall.c (_initialize_infcall): Add declaration.
8111 * infcmd.c (_initialize_infcmd): Add declaration.
8112 * inflow.c (_initialize_inflow): Add declaration.
8113 * infrun.c (_initialize_infrun): Add declaration.
8114 * interps.c (_initialize_interpreter): Add declaration.
8115 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
8116 * jit.c (_initialize_jit): Add declaration.
8117 * language.c (_initialize_language): Add declaration.
8118 * linux-fork.c (_initialize_linux_fork): Add declaration.
8119 * linux-nat.c (_initialize_linux_nat): Add declaration.
8120 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
8121 * linux-thread-db.c (_initialize_thread_db): Add declaration.
8122 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
8123 * m2-lang.c (_initialize_m2_language): Add declaration.
8124 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
8125 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
8126 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
8127 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
8128 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
8129 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
8130 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
8131 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
8132 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
8133 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
8134 * machoread.c (_initialize_machoread): Add declaration.
8135 * macrocmd.c (_initialize_macrocmd): Add declaration.
8136 * macroscope.c (_initialize_macroscope): Add declaration.
8137 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
8138 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
8139 * maint.c (_initialize_maint_cmds): Add declaration.
8140 * mdebugread.c (_initialize_mdebugread): Add declaration.
8141 * memattr.c (_initialize_mem): Add declaration.
8142 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
8143 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
8144 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
8145 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
8146 * mi/mi-main.c (_initialize_mi_main): Add declaration.
8147 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
8148 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
8149 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
8150 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
8151 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
8152 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
8153 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
8154 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
8155 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
8156 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
8157 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
8158 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
8159 * mipsread.c (_initialize_mipsread): Add declaration.
8160 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
8161 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
8162 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
8163 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
8164 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
8165 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
8166 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
8167 * nto-procfs.c (_initialize_procfs): Add declaration.
8168 * objc-lang.c (_initialize_objc_language): Add declaration.
8169 * observable.c (_initialize_observer): Add declaration.
8170 * opencl-lang.c (_initialize_opencl_language): Add declaration.
8171 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
8172 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
8173 * osabi.c (_initialize_gdb_osabi): Add declaration.
8174 * osdata.c (_initialize_osdata): Add declaration.
8175 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
8176 * parse.c (_initialize_parse): Add declaration.
8177 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
8178 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
8179 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
8180 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
8181 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
8182 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
8183 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
8184 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
8185 * printcmd.c (_initialize_printcmd): Add declaration.
8186 * probe.c (_initialize_probe): Add declaration.
8187 * proc-api.c (_initialize_proc_api): Add declaration.
8188 * proc-events.c (_initialize_proc_events): Add declaration.
8189 * proc-service.c (_initialize_proc_service): Add declaration.
8190 * procfs.c (_initialize_procfs): Add declaration.
8191 * producer.c (_initialize_producer): Add declaration.
8192 * psymtab.c (_initialize_psymtab): Add declaration.
8193 * python/python.c (_initialize_python): Add declaration.
8194 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
8195 * record-btrace.c (_initialize_record_btrace): Add declaration.
8196 * record-full.c (_initialize_record_full): Add declaration.
8197 * record.c (_initialize_record): Add declaration.
8198 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
8199 * regcache.c (_initialize_regcache): Add declaration.
8200 * reggroups.c (_initialize_reggroup): Add declaration.
8201 * remote-notif.c (_initialize_notif): Add declaration.
8202 * remote-sim.c (_initialize_remote_sim): Add declaration.
8203 * remote.c (_initialize_remote): Add declaration.
8204 * reverse.c (_initialize_reverse): Add declaration.
8205 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
8206 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
8207 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
8208 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
8209 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
8210 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
8211 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
8212 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
8213 Add declaration.
8214 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
8215 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
8216 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
8217 * rust-exp.y (_initialize_rust_exp): Add declaration.
8218 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
8219 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
8220 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
8221 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
8222 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
8223 * score-tdep.c (_initialize_score_tdep): Add declaration.
8224 * ser-go32.c (_initialize_ser_dos): Add declaration.
8225 * ser-mingw.c (_initialize_ser_windows): Add declaration.
8226 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
8227 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
8228 * ser-uds.c (_initialize_ser_socket): Add declaration.
8229 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
8230 * serial.c (_initialize_serial): Add declaration.
8231 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
8232 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
8233 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
8234 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
8235 * skip.c (_initialize_step_skip): Add declaration.
8236 * sol-thread.c (_initialize_sol_thread): Add declaration.
8237 * solib-aix.c (_initialize_solib_aix): Add declaration.
8238 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
8239 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
8240 * solib-frv.c (_initialize_frv_solib): Add declaration.
8241 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
8242 * solib-target.c (_initialize_solib_target): Add declaration.
8243 * solib.c (_initialize_solib): Add declaration.
8244 * source-cache.c (_initialize_source_cache): Add declaration.
8245 * source.c (_initialize_source): Add declaration.
8246 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
8247 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
8248 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
8249 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
8250 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
8251 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
8252 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
8253 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
8254 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
8255 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
8256 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
8257 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
8258 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
8259 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
8260 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
8261 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
8262 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
8263 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
8264 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
8265 * stabsread.c (_initialize_stabsread): Add declaration.
8266 * stack.c (_initialize_stack): Add declaration.
8267 * stap-probe.c (_initialize_stap_probe): Add declaration.
8268 * std-regs.c (_initialize_frame_reg): Add declaration.
8269 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
8270 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
8271 * symfile.c (_initialize_symfile): Add declaration.
8272 * symmisc.c (_initialize_symmisc): Add declaration.
8273 * symtab.c (_initialize_symtab): Add declaration.
8274 * target.c (_initialize_target): Add declaration.
8275 * target-connection.c (_initialize_target_connection): Add
8276 declaration.
8277 * target-dcache.c (_initialize_target_dcache): Add declaration.
8278 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
8279 * thread.c (_initialize_thread): Add declaration.
8280 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
8281 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
8282 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
8283 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
8284 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
8285 * tracectf.c (_initialize_ctf): Add declaration.
8286 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
8287 * tracefile.c (_initialize_tracefile): Add declaration.
8288 * tracepoint.c (_initialize_tracepoint): Add declaration.
8289 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
8290 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
8291 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
8292 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
8293 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
8294 * tui/tui-win.c (_initialize_tui_win): Add declaration.
8295 * tui/tui.c (_initialize_tui): Add declaration.
8296 * typeprint.c (_initialize_typeprint): Add declaration.
8297 * ui-style.c (_initialize_ui_style): Add declaration.
8298 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
8299 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
8300 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
8301 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
8302 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
8303 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
8304 * unittests/filtered_iterator-selftests.c
8305 (_initialize_filtered_iterator_selftests): Add declaration.
8306 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
8307 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
8308 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
8309 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
8310 * unittests/main-thread-selftests.c
8311 (_initialize_main_thread_selftests): Add declaration.
8312 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
8313 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
8314 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
8315 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
8316 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
8317 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
8318 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
8319 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
8320 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
8321 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
8322 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
8323 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
8324 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
8325 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
8326 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
8327 declaration.
8328 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
8329 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
8330 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
8331 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
8332 * user-regs.c (_initialize_user_regs): Add declaration.
8333 * utils.c (_initialize_utils): Add declaration.
8334 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
8335 * valops.c (_initialize_valops): Add declaration.
8336 * valprint.c (_initialize_valprint): Add declaration.
8337 * value.c (_initialize_values): Add declaration.
8338 * varobj.c (_initialize_varobj): Add declaration.
8339 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
8340 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
8341 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
8342 * windows-nat.c (_initialize_windows_nat): Add declaration.
8343 (_initialize_check_for_gdb_ini): Add declaration.
8344 (_initialize_loadable): Add declaration.
8345 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
8346 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
8347 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
8348 * xcoffread.c (_initialize_xcoffread): Add declaration.
8349 * xml-support.c (_initialize_xml_support): Add declaration.
8350 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
8351 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
8352 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
8353 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
8354
e2de1eec
SM
83552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8356
8357 * regformats/regdat.sh: Generate declaration for init function.
8358
e0037b4c
SM
83592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8360
8361 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
8362 up.
8363 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
8364 close_one_inferior>: New methods.
8365 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
8366 pass down target to find_inferior_pid.
8367 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
8368 Pass down target to find_inferior_ptid.
8369 (gdbsim_target::create_inferior): Pass down target to
8370 add_thread_silent.
8371 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
8372 target down to find_inferior_ptid and switch_to_thread.
8373 (gdbsim_target::close): Update to call close_one_inferior.
8374 (struct resume_data): Remove.
8375 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
8376 directly, rather than through a void pointer.
8377 (gdbsim_target::resume): Update to call resume_one_inferior.
8378
58920b5b
SM
83792020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
8380
8381 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
8382
4ec89149
PA
83832020-01-12 Pedro Alves <palves@redhat.com>
8384
8385 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
8386 directly for the current inferior instead of
8387 discard_all_inferiors.
8388 (discard_all_inferiors): Delete.
8389
7c392d1d
TT
83902020-01-11 Tom Tromey <tom@tromey.com>
8391
8392 * tui/tui-wingeneral.c (box_win): Check cli_styling.
8393 * tui/tui-winsource.c (tui_source_window_base::refill): Use
8394 deprecated_safe_get_selected_frame.
8395
d9ebdab7
TBA
83962020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8397
8398 * inferior.c (print_inferior): Switch inferior before printing it.
8399
f3c469b9
PA
84002020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
8401 Pedro Alves <palves@redhat.com>
8402
8403 * progspace-and-thread.c (switch_to_program_space_and_thread):
8404 Assert there's an inferior for PSPACE. Use
8405 switch_to_inferior_no_thread to switch the inferior too.
8406 * progspace.c (program_space::~program_space): Call
8407 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
8408 (program_space::free_all_objfiles): Don't call clear_symtab_users
8409 here.
8410 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
8411
65c574f6
PA
84122020-01-10 Pedro Alves <palves@redhat.com>
8413
8414 * NEWS: Mention multi-target debugging, "info connections", and
8415 "add-inferior -no-connection".
8416
2f4fcf00
PA
84172020-01-10 Pedro Alves <palves@redhat.com>
8418
8419 * infrun.c: Include "target-connection.h".
8420 (check_multi_target_resumption): New.
8421 (proceed): Call it.
8422 * target-connection.c (make_target_connection_string): Make
8423 extern.
8424 * target-connection.h (make_target_connection_string): Declare.
8425
121b3efd
PA
84262020-01-10 Pedro Alves <palves@redhat.com>
8427
8428 * Makefile.in (COMMON_SFILES): Add target-connection.c.
8429 * inferior.c (uiout_field_connection): New function.
8430 (print_inferior): Add new "connection-id" column.
8431 (add_inferior_command): Show connection number/string of added
8432 inferior.
8433 * process-stratum-target.h
8434 (process_stratum_target::connection_string): New virtual method.
8435 (process_stratum_target::connection_number): New field.
8436 * remote.c (remote_target::connection_string): New override.
8437 * target-connection.c: New file.
8438 * target-connection.h: New file.
8439 * target.c (decref_target): Remove process_stratum targets from
8440 the connection list.
8441 (target_stack::push): Add process_stratum targets to the
8442 connection list.
8443
4f837581
PA
84442020-01-10 Pedro Alves <palves@redhat.com>
8445
8446 Revert:
8447 2016-04-12 Pedro Alves <palves@redhat.com>
8448 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
8449 Remove references to name.
8450 * serial.h (struct serial) <name>: Delete.
8451
f4ec508e
PA
84522020-01-10 Pedro Alves <palves@redhat.com>
8453
8454 * gdbarch-selftests.c (register_to_value_test): Remove "target
8455 already pushed" check.
8456
5b6d1e4f
PA
84572020-01-10 Pedro Alves <palves@redhat.com>
8458 John Baldwin <jhb@FreeBSD.org>
8459
8460 * aarch64-linux-nat.c
8461 (aarch64_linux_nat_target::thread_architecture): Adjust.
8462 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
8463 (task_command_1): Likewise.
8464 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
8465 (aix_thread_target::wait, aix_thread_target::fetch_registers)
8466 (aix_thread_target::store_registers)
8467 (aix_thread_target::thread_alive): Adjust.
8468 * amd64-fbsd-tdep.c: Include "inferior.h".
8469 (amd64fbsd_get_thread_local_address): Pass down target.
8470 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
8471 thread's gdbarch instead of target_gdbarch.
8472 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
8473 get_last_target_status.
8474 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
8475 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
8476 inferiors.
8477 (update_inserted_breakpoint_locations): Skip if inferiors with no
8478 execution.
8479 (update_global_location_list): When handling moribund locations,
8480 find representative inferior for location's pspace, and use thread
8481 count of its process_stratum target.
8482 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
8483 * bsd-uthread.c (bsd_uthread_target::wait): Use
8484 as_process_stratum_target and adjust thread_change_ptid and
8485 add_thread calls.
8486 (bsd_uthread_target::update_thread_list): Use
8487 as_process_stratum_target and adjust find_thread_ptid,
8488 thread_change_ptid and add_thread calls.
8489 * btrace.c (maint_btrace_packet_history_cmd): Adjust
8490 find_thread_ptid call.
8491 * corelow.c (add_to_thread_list): Adjust add_thread call.
8492 (core_target_open): Adjust add_thread_silent and thread_count
8493 calls.
8494 (core_target::pid_to_str): Adjust find_inferior_ptid call.
8495 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
8496 * event-top.c (async_disconnect): Pop targets from all inferiors.
8497 * exec.c (add_target_sections): Push exec target on all inferiors
8498 sharing the program space.
8499 (remove_target_sections): Remove the exec target from all
8500 inferiors sharing the program space.
8501 (exec_on_vfork): New.
8502 * exec.h (exec_on_vfork): Declare.
8503 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
8504 Pass it down.
8505 (fbsd_nat_target::update_thread_list): Adjust.
8506 (fbsd_nat_target::resume): Adjust.
8507 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
8508 down.
8509 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
8510 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
8511 get_thread_arch_regcache call.
8512 * fork-child.c (gdb_startup_inferior): Pass target down to
8513 startup_inferior and set_executing.
8514 * gdbthread.h (struct process_stratum_target): Forward declare.
8515 (add_thread, add_thread_silent, add_thread_with_info)
8516 (in_thread_list): Add process_stratum_target parameter.
8517 (find_thread_ptid(inferior*, ptid_t)): New overload.
8518 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
8519 parameter.
8520 (all_threads()): Delete overload.
8521 (all_threads, all_non_exited_threads): Add process_stratum_target
8522 parameter.
8523 (all_threads_safe): Use brace initialization.
8524 (thread_count): Add process_stratum_target parameter.
8525 (set_resumed, set_running, set_stop_requested, set_executing)
8526 (threads_are_executing, finish_thread_state): Add
8527 process_stratum_target parameter.
8528 (switch_to_thread): Use is_current_thread.
8529 * i386-fbsd-tdep.c: Include "inferior.h".
8530 (i386fbsd_get_thread_local_address): Pass down target.
8531 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
8532 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
8533 have_inferiors check.
8534 * inf-ptrace.c (inf_ptrace_target::create_inferior)
8535 (inf_ptrace_target::attach): Adjust.
8536 * infcall.c (run_inferior_call): Adjust.
8537 * infcmd.c (run_command_1): Pass target to
8538 scoped_finish_thread_state.
8539 (proceed_thread_callback): Skip inferiors with no execution.
8540 (continue_command): Rename 'all_threads' local to avoid hiding
8541 'all_threads' function. Adjust get_last_target_status call.
8542 (prepare_one_step): Adjust set_running call.
8543 (signal_command): Use user_visible_resume_target. Compare thread
8544 pointers instead of inferior_ptid.
8545 (info_program_command): Adjust to pass down target.
8546 (attach_command): Mark target's 'thread_executing' flag.
8547 (stop_current_target_threads_ns): New, factored out from ...
8548 (interrupt_target_1): ... this. Switch inferior before making
8549 target calls.
8550 * inferior-iter.h
8551 (struct all_inferiors_iterator, struct all_inferiors_range)
8552 (struct all_inferiors_safe_range)
8553 (struct all_non_exited_inferiors_range): Filter on
8554 process_stratum_target too. Remove explicit.
8555 * inferior.c (inferior::inferior): Push dummy target on target
8556 stack.
8557 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
8558 Add process_stratum_target parameter, and pass it down.
8559 (have_live_inferiors): Adjust.
8560 (switch_to_inferior_and_push_target): New.
8561 (add_inferior_command, clone_inferior_command): Handle
8562 "-no-connection" parameter. Use
8563 switch_to_inferior_and_push_target.
8564 (_initialize_inferior): Mention "-no-connection" option in
8565 the help of "add-inferior" and "clone-inferior" commands.
8566 * inferior.h: Include "process-stratum-target.h".
8567 (interrupt_target_1): Use bool.
8568 (struct inferior) <push_target, unpush_target, target_is_pushed,
8569 find_target_beneath, top_target, process_target, target_at,
8570 m_stack>: New.
8571 (discard_all_inferiors): Delete.
8572 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
8573 (all_inferiors, all_non_exited_inferiors): Add
8574 process_stratum_target parameter.
8575 * infrun.c: Include "gdb_select.h" and <unordered_map>.
8576 (target_last_proc_target): New global.
8577 (follow_fork_inferior): Push target on new inferior. Pass target
8578 to add_thread_silent. Call exec_on_vfork. Handle target's
8579 reference count.
8580 (follow_fork): Adjust get_last_target_status call. Also consider
8581 target.
8582 (follow_exec): Push target on new inferior.
8583 (struct execution_control_state) <target>: New field.
8584 (user_visible_resume_target): New.
8585 (do_target_resume): Call target_async.
8586 (resume_1): Set target's threads_executing flag. Consider resume
8587 target.
8588 (commit_resume_all_targets): New.
8589 (proceed): Also consider resume target. Skip threads of inferiors
8590 with no execution. Commit resumtion in all targets.
8591 (start_remote): Pass current inferior to wait_for_inferior.
8592 (infrun_thread_stop_requested): Consider target as well. Pass
8593 thread_info pointer to clear_inline_frame_state instead of ptid.
8594 (infrun_thread_thread_exit): Consider target as well.
8595 (random_pending_event_thread): New inferior parameter. Use it.
8596 (do_target_wait): Rename to ...
8597 (do_target_wait_1): ... this. Add inferior parameter, and pass it
8598 down.
8599 (threads_are_resumed_pending_p, do_target_wait): New.
8600 (prepare_for_detach): Adjust calls.
8601 (wait_for_inferior): New inferior parameter. Handle it. Use
8602 do_target_wait_1 instead of do_target_wait.
8603 (fetch_inferior_event): Adjust. Switch to representative
8604 inferior. Pass target down.
8605 (set_last_target_status): Add process_stratum_target parameter.
8606 Save target in global.
8607 (get_last_target_status): Add process_stratum_target parameter and
8608 handle it.
8609 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
8610 (context_switch): Check inferior_ptid == null_ptid before calling
8611 inferior_thread().
8612 (get_inferior_stop_soon): Pass down target.
8613 (wait_one): Rename to ...
8614 (poll_one_curr_target): ... this.
8615 (struct wait_one_event): New.
8616 (wait_one): New.
8617 (stop_all_threads): Adjust.
8618 (handle_no_resumed, handle_inferior_event): Adjust to consider the
8619 event's target.
8620 (switch_back_to_stepped_thread): Also consider target.
8621 (print_stop_event): Update.
8622 (normal_stop): Update. Also consider the resume target.
8623 * infrun.h (wait_for_inferior): Remove declaration.
8624 (user_visible_resume_target): New declaration.
8625 (get_last_target_status, set_last_target_status): New
8626 process_stratum_target parameter.
8627 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8628 process_stratum_target parameter, and use it.
8629 (clear_inline_frame_state (thread_info*)): New.
8630 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8631 process_stratum_target parameter.
8632 (clear_inline_frame_state (thread_info*)): Declare.
8633 * linux-fork.c (delete_checkpoint_command): Pass target down to
8634 find_thread_ptid.
8635 (checkpoint_command): Adjust.
8636 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
8637 instead of just tweaking inferior_ptid.
8638 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
8639 (exit_lwp): Pass target down to find_thread_ptid.
8640 (attach_proc_task_lwp_callback): Pass target down to
8641 add_thread/set_running/set_executing.
8642 (linux_nat_target::attach): Pass target down to
8643 thread_change_ptid.
8644 (get_detach_signal): Pass target down to find_thread_ptid.
8645 Consider last target status's target.
8646 (linux_resume_one_lwp_throw, resume_lwp)
8647 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
8648 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
8649 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
8650 (linux_nat_target::async_wait_fd): New.
8651 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
8652 target down.
8653 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
8654 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
8655 * linux-thread-db.c (struct thread_db_info::process_target): New
8656 field.
8657 (add_thread_db_info): Save target.
8658 (get_thread_db_info): New process_stratum_target parameter. Also
8659 match target.
8660 (delete_thread_db_info): New process_stratum_target parameter.
8661 Also match target.
8662 (thread_from_lwp): Adjust to pass down target.
8663 (thread_db_notice_clone): Pass down target.
8664 (check_thread_db_callback): Pass down target.
8665 (try_thread_db_load_1): Always push the thread_db target.
8666 (try_thread_db_load, record_thread): Pass target down.
8667 (thread_db_target::detach): Pass target down. Always unpush the
8668 thread_db target.
8669 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
8670 target down. Always unpush the thread_db target.
8671 (find_new_threads_callback, thread_db_find_new_threads_2)
8672 (thread_db_target::update_thread_list): Pass target down.
8673 (thread_db_target::pid_to_str): Pass current inferior down.
8674 (thread_db_target::get_thread_local_address): Pass target down.
8675 (thread_db_target::resume, maintenance_check_libthread_db): Pass
8676 target down.
8677 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
8678 * procfs.c (procfs_target::procfs_init_inferior): Declare.
8679 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
8680 (procfs_init_inferior): Rename to ...
8681 (procfs_target::procfs_init_inferior): ... this and adjust.
8682 (procfs_target::create_inferior, procfs_notice_thread)
8683 (procfs_do_thread_registers): Adjust.
8684 * ppc-fbsd-tdep.c: Include "inferior.h".
8685 (ppcfbsd_get_thread_local_address): Pass down target.
8686 * proc-service.c (ps_xfer_memory): Switch current inferior and
8687 program space as well.
8688 (get_ps_regcache): Pass target down.
8689 * process-stratum-target.c
8690 (process_stratum_target::thread_address_space)
8691 (process_stratum_target::thread_architecture): Pass target down.
8692 * process-stratum-target.h
8693 (process_stratum_target::threads_executing): New field.
8694 (as_process_stratum_target): New.
8695 * ravenscar-thread.c
8696 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
8697 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
8698 down.
8699 * record-btrace.c (record_btrace_target::info_record): Adjust.
8700 (record_btrace_target::record_method)
8701 (record_btrace_target::record_is_replaying)
8702 (record_btrace_target::fetch_registers)
8703 (get_thread_current_frame_id, record_btrace_target::resume)
8704 (record_btrace_target::wait, record_btrace_target::stop): Pass
8705 target down.
8706 * record-full.c (record_full_wait_1): Switch to event thread.
8707 Pass target down.
8708 * regcache.c (regcache::regcache)
8709 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
8710 process_stratum_target parameter and handle it.
8711 (current_thread_target): New global.
8712 (get_thread_regcache): Add process_stratum_target parameter and
8713 handle it. Switch inferior before calling target method.
8714 (get_thread_regcache): Pass target down.
8715 (get_thread_regcache_for_ptid): Pass target down.
8716 (registers_changed_ptid): Add process_stratum_target parameter and
8717 handle it.
8718 (registers_changed_thread, registers_changed): Pass target down.
8719 (test_get_thread_arch_aspace_regcache): New.
8720 (current_regcache_test): Define a couple local test_target_ops
8721 instances and use them for testing.
8722 (readwrite_regcache): Pass process_stratum_target parameter.
8723 (cooked_read_test, cooked_write_test): Pass mock_target down.
8724 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
8725 (get_thread_arch_aspace_regcache): Add process_stratum_target
8726 parameter.
8727 (regcache::target): New method.
8728 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
8729 (regcache::registers_changed_ptid): Add process_stratum_target
8730 parameter.
8731 (regcache::m_target): New field.
8732 (registers_changed_ptid): Add process_stratum_target parameter.
8733 * remote.c (remote_state::supports_vCont_probed): New field.
8734 (remote_target::async_wait_fd): New method.
8735 (remote_unpush_and_throw): Add remote_target parameter.
8736 (get_current_remote_target): Adjust.
8737 (remote_target::remote_add_inferior): Push target.
8738 (remote_target::remote_add_thread)
8739 (remote_target::remote_notice_new_inferior)
8740 (get_remote_thread_info): Pass target down.
8741 (remote_target::update_thread_list): Skip threads of inferiors
8742 bound to other targets. (remote_target::close): Don't discard
8743 inferiors. (remote_target::add_current_inferior_and_thread)
8744 (remote_target::process_initial_stop_replies)
8745 (remote_target::start_remote)
8746 (remote_target::remote_serial_quit_handler): Pass down target.
8747 (remote_target::remote_unpush_target): New remote_target
8748 parameter. Unpush the target from all inferiors.
8749 (remote_target::remote_unpush_and_throw): New remote_target
8750 parameter. Pass it down.
8751 (remote_target::open_1): Check whether the current inferior has
8752 execution instead of checking whether any inferior is live. Pass
8753 target down.
8754 (remote_target::remote_detach_1): Pass down target. Use
8755 remote_unpush_target.
8756 (extended_remote_target::attach): Pass down target.
8757 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
8758 (remote_target::append_resumption): Pass down target.
8759 (remote_target::append_pending_thread_resumptions)
8760 (remote_target::remote_resume_with_hc, remote_target::resume)
8761 (remote_target::commit_resume): Pass down target.
8762 (remote_target::remote_stop_ns): Check supports_vCont_probed.
8763 (remote_target::interrupt_query)
8764 (remote_target::remove_new_fork_children)
8765 (remote_target::check_pending_events_prevent_wildcard_vcont)
8766 (remote_target::remote_parse_stop_reply)
8767 (remote_target::process_stop_reply): Pass down target.
8768 (first_remote_resumed_thread): New remote_target parameter. Pass
8769 it down.
8770 (remote_target::wait_as): Pass down target.
8771 (unpush_and_perror): New remote_target parameter. Pass it down.
8772 (remote_target::readchar, remote_target::remote_serial_write)
8773 (remote_target::getpkt_or_notif_sane_1)
8774 (remote_target::kill_new_fork_children, remote_target::kill): Pass
8775 down target.
8776 (remote_target::mourn_inferior): Pass down target. Use
8777 remote_unpush_target.
8778 (remote_target::core_of_thread)
8779 (remote_target::remote_btrace_maybe_reopen): Pass down target.
8780 (remote_target::pid_to_exec_file)
8781 (remote_target::thread_handle_to_thread_info): Pass down target.
8782 (remote_target::async_wait_fd): New.
8783 * riscv-fbsd-tdep.c: Include "inferior.h".
8784 (riscv_fbsd_get_thread_local_address): Pass down target.
8785 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
8786 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
8787 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
8788 Adjust.
8789 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
8790 * solib-svr4.c (enable_break): Pass down target.
8791 * spu-multiarch.c (parse_spufs_run): Pass down target.
8792 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
8793 * target-delegates.c: Regenerate.
8794 * target.c (g_target_stack): Delete.
8795 (current_top_target): Return the current inferior's top target.
8796 (target_has_execution_1): Refer to the passed-in inferior's top
8797 target.
8798 (target_supports_terminal_ours): Check whether the initial
8799 inferior was already created.
8800 (decref_target): New.
8801 (target_stack::push): Incref/decref the target.
8802 (push_target, push_target, unpush_target): Adjust.
8803 (target_stack::unpush): Defref target.
8804 (target_is_pushed): Return bool. Adjust to refer to the current
8805 inferior's target stack.
8806 (dispose_inferior): Delete, and inline parts ...
8807 (target_preopen): ... here. Only dispose of the current inferior.
8808 (target_detach): Hold strong target reference while detaching.
8809 Pass target down.
8810 (target_thread_name): Add assertion.
8811 (target_resume): Pass down target.
8812 (target_ops::beneath, find_target_at): Adjust to refer to the
8813 current inferior's target stack.
8814 (get_dummy_target): New.
8815 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
8816 has a thread running.
8817 (initialize_targets): Rename to ...
8818 (_initialize_target): ... this.
8819 * target.h: Include "gdbsupport/refcounted-object.h".
8820 (struct target_ops): Inherit refcounted_object.
8821 (target_ops::shortname, target_ops::longname): Make const.
8822 (target_ops::async_wait_fd): New method.
8823 (decref_target): Declare.
8824 (struct target_ops_ref_policy): New.
8825 (target_ops_ref): New typedef.
8826 (get_dummy_target): Declare function.
8827 (target_is_pushed): Return bool.
8828 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
8829 (all_matching_threads_iterator::all_matching_threads_iterator):
8830 Handle filter target.
8831 * thread-iter.h (struct all_matching_threads_iterator, struct
8832 all_matching_threads_range, class all_non_exited_threads_range):
8833 Filter by target too. Remove explicit.
8834 * thread.c (threads_executing): Delete.
8835 (inferior_thread): Pass down current inferior.
8836 (clear_thread_inferior_resources): Pass down thread pointer
8837 instead of ptid_t.
8838 (add_thread_silent, add_thread_with_info, add_thread): Add
8839 process_stratum_target parameter. Use it for thread and inferior
8840 searches.
8841 (is_current_thread): New.
8842 (thread_info::deletable): Use it.
8843 (find_thread_ptid, thread_count, in_thread_list)
8844 (thread_change_ptid, set_resumed, set_running): New
8845 process_stratum_target parameter. Pass it down.
8846 (set_executing): New process_stratum_target parameter. Pass it
8847 down. Adjust reference to 'threads_executing'.
8848 (threads_are_executing): New process_stratum_target parameter.
8849 Adjust reference to 'threads_executing'.
8850 (set_stop_requested, finish_thread_state): New
8851 process_stratum_target parameter. Pass it down.
8852 (switch_to_thread): Also match inferior.
8853 (switch_to_thread): New process_stratum_target parameter. Pass it
8854 down.
8855 (update_threads_executing): Reimplement.
8856 * top.c (quit_force): Pop targets from all inferior.
8857 (gdb_init): Don't call initialize_targets.
8858 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
8859 Declare.
8860 (windows_add_thread, windows_delete_thread): Adjust.
8861 (get_windows_debug_event): Rename to ...
8862 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
8863 * tracefile-tfile.c (tfile_target_open): Pass down target.
8864 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
8865 Forward declare.
8866 (switch_to_thread): Add process_stratum_target parameter.
8867 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
8868 parameter. Use it.
8869 (mi_on_resume): Pass target down.
8870 * nat/fork-inferior.c (startup_inferior): Add
8871 process_stratum_target parameter. Pass it down.
8872 * nat/fork-inferior.h (startup_inferior): Add
8873 process_stratum_target parameter.
8874 * python/py-threadevent.c (py_get_event_thread): Pass target down.
8875
75c6c844
PA
88762020-01-10 Pedro Alves <palves@redhat.com>
8877
8878 * remote.c (remote_target::start_remote): Don't set inferior_ptid
8879 directly. Instead find the first thread in the thread list and
8880 use switch_to_thread.
8881
78f2c40a
PA
88822020-01-10 Pedro Alves <palves@redhat.com>
8883
8884 * remote.c (remote_target::remote_add_inferior): Don't bind a
8885 process to the current inferior if the current inferior is already
8886 bound to a process.
8887
e7af6c70
TBA
88882020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8889 Pedro Alves <palves@redhat.com>
8890
8891 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
8892 If no process is specified, return null_ptid instead of
8893 inferior_ptid.
8894 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
8895 TARGET_WAITKIND_SIGNALLED with no pid.
8896
31ba933e
PA
88972020-01-10 Pedro Alves <palves@redhat.com>
8898
8899 * remote.c (first_remote_resumed_thread): New.
8900 (remote_target::wait_as): Use it as default event_ptid instead of
8901 inferior_ptid.
8902
735fc2ca
PA
89032020-01-10 Pedro Alves <palves@redhat.com>
8904
8905 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
8906
c17e02e1
PA
89072020-01-10 Pedro Alves <palves@redhat.com>
8908
8909 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
8910 not -1.
8911
ab1ddbcf
PA
89122020-01-10 Pedro Alves <palves@redhat.com>
8913
8914 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
8915 ptid to get_last_target_status.
8916 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
8917 ptid to get_last_target_status.
8918 * infcmd.c (continue_command): Don't pass a target_waitstatus to
8919 get_last_target_status.
8920 (info_program_command): Don't pass a target_waitstatus to
8921 get_last_target_status.
8922 * infrun.c (init_wait_for_inferior): Use
8923 nullify_last_target_wait_ptid.
8924 (get_last_target_status): Handle nullptr arguments.
8925 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
8926 (print_stop_event): Don't pass a ptid to get_last_target_status.
8927 (normal_stop): Don't pass a ptid to get_last_target_status.
8928 * infrun.h (get_last_target_status, set_last_target_status): Move
8929 comments here and update.
8930 (nullify_last_target_wait_ptid): Declare.
8931 * linux-fork.c (fork_load_infrun_state): Remove local extern
8932 declaration of nullify_last_target_wait_ptid.
8933 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
8934 to get_last_target_status.
8935
f3f8ece4
PA
89362020-01-10 Pedro Alves <palves@redhat.com>
8937
8938 * gdbthread.h (scoped_restore_current_thread)
8939 <dont_restore, restore, m_dont_restore>: Declare.
8940 * thread.c (thread_alive): Add assertion. Return bool.
8941 (switch_to_thread_if_alive): New.
8942 (prune_threads): Switch inferior/thread.
8943 (print_thread_info_1): Switch thread before calling target methods.
8944 (scoped_restore_current_thread::restore): New, factored out from
8945 ...
8946 (scoped_restore_current_thread::~scoped_restore_current_thread):
8947 ... this.
8948 (scoped_restore_current_thread::scoped_restore_current_thread):
8949 Add assertion.
8950 (thread_apply_all_command, thread_select): Use
8951 switch_to_thread_if_alive.
8952 * infrun.c (proceed, restart_threads, handle_signal_stop)
8953 (switch_back_to_stepped_thread): Switch current thread before
8954 calling target methods.
8955
db2d40f7
PA
89562020-01-10 Pedro Alves <palves@redhat.com>
8957
8958 * inferior.c (switch_to_inferior_no_thread): New function,
8959 factored out from ...
8960 (inferior_command): ... here.
8961 * inferior.h (switch_to_inferior_no_thread): Declare.
8962 * mi/mi-main.c (run_one_inferior): Use
8963 switch_to_inferior_no_thread.
8964
bd420a2d
PA
89652020-01-10 Pedro Alves <palves@redhat.com>
8966
8967 * infcmd.c (kill_command): Remove dead code.
8968
ddf5db90
PA
89692020-01-10 Pedro Alves <palves@redhat.com>
8970
8971 * remote.c (remote_target::mourn_inferior): No longer check
8972 whether the target is running.
8973
5018ce90
PA
89742020-01-10 Pedro Alves <palves@redhat.com>
8975
8976 * corelow.c (core_target::has_execution): Change parameter type to
8977 inferior pointer.
8978 * inferior.c (number_of_live_inferiors): Use
8979 inferior::has_execution instead of target_has_execution_1.
8980 * inferior.h (inferior::has_execution): New.
8981 * linux-thread-db.c (thread_db_target::update_thread_list): Use
8982 inferior::has_execution instead of target_has_execution_1.
8983 * process-stratum-target.c
8984 (process_stratum_target::has_execution): Change parameter type to
8985 inferior pointer. Check the inferior's PID instead of
8986 inferior_ptid.
8987 * process-stratum-target.h
8988 (process_stratum_target::has_execution): Change parameter type to
8989 inferior pointer.
8990 * record-full.c (record_full_core_target::has_execution): Change
8991 parameter type to inferior pointer.
8992 * target.c (target_has_execution_1): Change parameter type to
8993 inferior pointer.
8994 (target_has_execution_current): Adjust.
8995 * target.h (target_ops::has_execution): Change parameter type to
8996 inferior pointer.
8997 (target_has_execution_1): Change parameter type to inferior
8998 pointer. Change return type to bool.
8999 * tracefile.h (tracefile_target::has_execution): Change parameter
9000 type to inferior pointer.
9001
74375d18
PA
90022020-01-10 Pedro Alves <palves@redhat.com>
9003
9004 * exceptions.c (print_flush): Remove current_top_target() check.
9005
acdf84a6
PA
90062020-01-10 Pedro Alves <palves@redhat.com>
9007
9008 * remote.c (show_remote_exec_file): Show the current inferior's
9009 exec-file instead of the command variable's value.
9010
ec506636
PA
90112020-01-10 Pedro Alves <palves@redhat.com>
9012
9013 * record-full.c (record_full_resume_ptid): New global.
9014 (record_full_target::resume): Set it.
9015 (record_full_wait_1): Use record_full_resume_ptid instead of
9016 inferior_ptid.
9017
873657b9
PA
90182020-01-10 Pedro Alves <palves@redhat.com>
9019
9020 * gdbthread.h (scoped_restore_current_thread)
9021 <dont_restore, restore, m_dont_restore>: Declare.
9022 * thread.c (thread_alive): Add assertion. Return bool.
9023 (switch_to_thread_if_alive): New.
9024 (prune_threads): Switch inferior/thread.
9025 (print_thread_info_1): Switch thread before calling target methods.
9026 (scoped_restore_current_thread::restore): New, factored out from
9027 ...
9028 (scoped_restore_current_thread::~scoped_restore_current_thread):
9029 ... this.
9030 (scoped_restore_current_thread::scoped_restore_current_thread):
9031 Add assertion.
9032 (thread_apply_all_command, thread_select): Use
9033 switch_to_thread_if_alive.
9034
7f0ae84c
GB
90352020-01-10 George Barrett <bob@bob131.so>
9036
9037 * stap-probe.c (stap_modify_semaphore): Don't check for null
9038 semaphores.
9039 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
9040 for null semaphores.
9041
f5a7c406
AB
90422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9043
9044 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
9045 all source windows, and maintain horizontal scroll status while
9046 doing so.
9047
9ae6bf64
TT
90482020-01-09 Tom Tromey <tom@tromey.com>
9049
9050 PR tui/18932:
9051 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
9052 update_source_window, not print_source_lines.
9053
b2efe70c
AB
90542020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * tui/tui.c (tui_enable): Register tui hooks after calling
9057 tui_display_main.
9058
5f23a082
CB
90592020-01-09 Christian Biesinger <cbiesinger@google.com>
9060
9061 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
9062
3061113b
SM
90632020-01-08 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * thread.c (print_thread_info_1): Fix indentation.
9066
57d75002
CB
90672020-01-09 Christian Biesinger <cbiesinger@google.com>
9068
9069 * symtab.c (general_symbol_info::compute_and_set_names): Move the
9070 unique_xmalloc_ptr outside the if to always free the demangled name.
9071
6a053cb1
TT
90722020-01-08 Tom Tromey <tromey@adacore.com>
9073
9074 * xcoffread.c (enter_line_range, read_xcoff_symtab)
9075 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
9076 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
9077 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
9078 Remove.
9079 (section_offsets): New typedef.
9080 * symtab.c (fixup_section, get_msymbol_address): Update.
9081 * symmisc.c (dump_msymbols): Update.
9082 * symfile.h (relative_addr_info_to_section_offsets)
9083 (symfile_map_offsets_to_segments): Update.
9084 * symfile.c (build_section_addr_info_from_objfile)
9085 (init_objfile_sect_indices): Update.
9086 (struct place_section_arg): Change type of "offsets".
9087 (place_section): Update.
9088 (relative_addr_info_to_section_offsets): Change type of
9089 "section_offsets". Remove "num_sections" parameter.
9090 (default_symfile_offsets, syms_from_objfile_1)
9091 (set_objfile_default_section_offset): Update.
9092 (reread_symbols): No need to preserve section offsets by hand.
9093 (symfile_map_offsets_to_segments): Change type of "offsets".
9094 * stap-probe.c (relocate_address): Update.
9095 * stabsread.h (process_one_symbol): Update.
9096 * solib-target.c (struct lm_info_target) <offsets>: Change type.
9097 (solib_target_relocate_section_addresses): Update.
9098 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
9099 Update.
9100 * solib-frv.c (frv_relocate_main_executable): Update.
9101 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9102 * solib-aix.c (solib_aix_get_section_offsets): Change return
9103 type.
9104 (solib_aix_solib_create_inferior_hook): Update.
9105 * remote.c (remote_target::get_offsets): Update.
9106 * psymtab.c (find_pc_sect_psymtab): Update.
9107 * psympriv.h (struct partial_symbol) <address, text_low,
9108 text_high>: Update.
9109 * objfiles.h (obj_section_offset): Update.
9110 (struct objfile) <section_offsets>: Change type.
9111 <num_sections>: Remove.
9112 (objfile_relocate): Update.
9113 * objfiles.c (entry_point_address_query): Update
9114 (relocate_one_symbol): Change type of "section_offsets".
9115 (objfile_relocate1, objfile_relocate1): Change type of
9116 "new_offsets".
9117 (objfile_rebase1): Update.
9118 * mipsread.c (mipscoff_symfile_read): Update.
9119 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
9120 parameter.
9121 * mdebugread.c (parse_symbol): Change type of "section_offsets".
9122 (parse_external, psymtab_to_symtab_1): Update.
9123 * machoread.c (macho_symfile_offsets): Update.
9124 * ia64-tdep.c (ia64_find_unwind_table): Update.
9125 * hppa-tdep.c (read_unwind_info): Update.
9126 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
9127 * dwarf2read.c (create_addrmap_from_index)
9128 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9129 (process_psymtab_comp_unit_reader, add_partial_symbol)
9130 (add_partial_subprogram, process_full_comp_unit)
9131 (read_file_scope, read_func_scope, read_lexical_block_scope)
9132 (read_call_site_scope, dwarf2_rnglists_process)
9133 (dwarf2_ranges_process, dwarf2_ranges_read)
9134 (dwarf_decode_lines_1, var_decode_location, new_symbol)
9135 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
9136 Update.
9137 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
9138 Update.
9139 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
9140 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
9141 (process_one_symbol): Change type of "section_offsets".
9142 * ctfread.c (get_objfile_text_range): Update.
9143 * coffread.c (coff_symtab_read, enter_linenos)
9144 (process_coff_symbol): Update.
9145 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9146 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
9147
456e800a
TT
91482020-01-08 Tom Tromey <tromey@adacore.com>
9149
9150 * dwarf2read.c (parse_macro_definition): Use std::string.
9151 (parse_macro_definition): Likewise.
9152
6dfa2fc2
TT
91532020-01-08 Tom Tromey <tromey@adacore.com>
9154
9155 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
9156 (ATTR_ALLOC_CHUNK): Remove.
9157
421d1616
TT
91582020-01-08 Tom Tromey <tromey@adacore.com>
9159
9160 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
9161
43816ebc
TT
91622020-01-08 Tom Tromey <tromey@adacore.com>
9163
9164 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
9165 (dwarf2_compute_name, open_dwo_file): Likewise.
9166 (process_enumeration_scope): Use std::vector.
9167 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
9168 (partial_die_info::fixup, dwarf2_start_subfile)
9169 (guess_full_die_structure_name, dwarf2_name): Likewise.
9170 (determine_prefix): Update.
9171 (guess_full_die_structure_name): Make return type const.
9172 (partial_die_full_name): Return unique_xmalloc_ptr.
9173 (DW_FIELD_ALLOC_CHUNK): Remove.
9174
4212d509
TT
91752020-01-07 Tom Tromey <tromey@adacore.com>
9176
9177 PR build/24937:
9178 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9179
06a6207a
JT
91802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9181
9182 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
9183
153d79c4
AB
91842020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * stack.c (print_frame_info): Move disassemble_next_line code
9187 inside source_print block.
9188
66182876
EZ
91892020-01-06 Eli Zaretskii <eliz@gnu.org>
9190
9191 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
9192 gdb/signals.h, as we are now using native signal symbols.
9193
cbfa8581
SV
91942020-01-06 Shahab Vahedi <shahab@synopsys.com>
9195
9196 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
9197 overflow by an early check of content vs threshold.
aac66a4c 9198 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
9199 Likewise.
9200
3f602821
EZ
92012020-01-06 Eli Zaretskii <eliz@gnu.org>
9202
9203 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
9204
a08c904d
JT
92052020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9206
9207 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
9208 export table if no section contains it's RVA.
9209
89a65580
EZ
92102020-01-06 Eli Zaretskii <eliz@gnu.org>
9211
9212 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
9213
8b7fcda2
HD
92142020-01-06 Hannes Domani <ssbssa@yahoo.de>
9215
9216 * source.c (print_source_lines_base): Set last_line_listed.
9217
a61b4f69
SV
92182020-01-06 Shahab Vahedi <shahab@synopsys.com>
9219
9220 * tui/tui-disasm.c: Remove trailing spaces.
9221
559e7e50
EZ
92222020-01-06 Eli Zaretskii <eliz@gnu.org>
9223 Pedro Alves <palves@redhat.com>
9224
9225 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
9226 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
9227 (windows_gdb_signal_to_target): New function, uses the above
9228 enumeration to convert GDB internal signal codes to equivalent
9229 Windows codes.
9230 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
9231 * windows-nat.c: Include "gdb_wait.h".
9232 (get_windows_debug_event): Extract the fatal exception from the
9233 exit status and convert to the equivalent Posix signal number.
9234 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
9235 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
9236 * gdbsupport/gdb_wait.c: New file, implements
9237 windows_status_to_termsig.
9238 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
9239 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
9240
f2302a34
AB
92412020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
9244 show_layout.
9245
6a5206eb
LM
92462020-01-05 Luis Machado <luis.machado@linaro.org>
9247
9248 * aarch64-linux-nat.c
9249 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
9250 and bfd_mach_aarch64.
9251
6ec1d75e
PW
92522020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9253
9254 * ui-file.c (stdio_file::can_emit_style_escape)
9255 (tee_file::can_emit_style_escape): Ensure style is used also on
9256 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
9257 to gdb_stdout.
9258 * main.c (set_gdb_data_directory): Use file style to output the
9259 warning that the given pathname is not a directory.
9260 * top.c (show_history_filename, gdb_safe_append_history)
9261 (show_gdb_datadir): Use file style.
9262
44f81a76
HD
92632020-01-03 Hannes Domani <ssbssa@yahoo.de>
9264
9265 * solib-target.c (struct lm_info_target):
9266 Change offsets to be a unique_xmalloc_ptr.
9267 (solib_target_relocate_section_addresses): Update.
9268
25057eb0
HD
92692020-01-03 Hannes Domani <ssbssa@yahoo.de>
9270
9271 * windows-nat.c (windows_clear_solib): Free so_list linked list.
9272
6e2118f5
BE
92732020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9274
9275 * MAINTAINERS (Write After Approval): Add myself.
9276
8133c7dc
LM
92772020-01-02 Luis Machado <luis.machado@linaro.org>
9278
9279 * proc-service.c (get_ps_regcache): Remove reference to obsolete
9280 Cell BE architecture.
9281 * target.h (struct target_ops) <thread_architecture>: Likewise.
9282
48189bec
HD
92832020-01-01 Hannes Domani <ssbssa@yahoo.de>
9284
9285 * Makefile.in: Use INSTALL_PROGRAM_ENV.
9286
ead1063b
HD
92872020-01-01 Hannes Domani <ssbssa@yahoo.de>
9288
9289 * MAINTAINERS (Write After Approval): Add myself.
9290
e5d78223
JB
92912020-01-01 Joel Brobecker <brobecker@adacore.com>
9292
9293 * gdbarch.sh: Update copyright year range of generated files.
9294
b811d2c2
JB
92952020-01-01 Joel Brobecker <brobecker@adacore.com>
9296
9297 Update copyright year range in all GDB files.
9298
5f4def5c
JB
92992020-01-01 Joel Brobecker <brobecker@adacore.com>
9300
9301 * copyright.py: Convert to Python 3.
9302
51fd4002
JB
93032020-01-01 Joel Brobecker <brobecker@adacore.com>
9304
9305 * copyright.py: Adapt after move of gnulib directory from gdb
9306 directory to toplevel directory.
9307
5fb651f2
JB
93082020-01-01 Joel Brobecker <brobecker@adacore.com>
9309
9310 * copyright.py (main): Exit if run from the wrong directory.
9311
5dd8bf88
JB
93122020-01-01 Joel Brobecker <brobecker@adacore.com>
9313
9314 * top.c (print_gdb_version): Change copyright year to 2020.
9315
9f71dacb 93162020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 9317
9f71dacb 9318 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 9319
9f71dacb 9320For older changes see ChangeLog-2019.
c906108c
SS
9321\f
9322Local Variables:
9323mode: change-log
9324left-margin: 8
9325fill-column: 74
9326version-control: never
57da7796 9327coding: utf-8
c906108c 9328End: