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