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