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