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