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