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