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