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