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