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