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