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