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