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