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