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