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