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