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