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