Disable parts of gdb.base/source-dir.exp on remote host
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bd920864
TBA
12020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * jit.c (jit_read_descriptor): Use bool as the return type.
4 (jit_breakpoint_re_set_internal): Use bool as the return type.
5 Invert the return value logic; return true if the jit breakpoint
6 has been successfully initialized.
7 (jit_inferior_init): Update the call to
8 jit_breakpoint_re_set_internal.
9
f8098322
PA
102020-06-22 Pedro Alves <palves@redhat.com>
11
12 PR gdb/25939
13 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
14 Use the current inferior instead. Don't return
15 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
16 wait again.
17 * sol-thread.c (sol_thread_target::wait): Don't reference
18 inferior_ptid.
19 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
20 (sol_update_thread_list_callback): Use the current inferior's pid
21 instead of inferior_ptid.
22
196535a6
RO
232020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24
25 * procfs.c: Cleanup many comments.
26
27 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
28 (AFTER_WATCHFLAG): Replace by value.
29
30 (MAIN_PROC_NAME_FORMAT): Inline ...
31 (create_procinfo): ... here.
32
33 (procfs_debug_inferior): Remove SYS_exec handling.
34 (syscall_is_exec): Likewise.
35 (procfs_set_exec_trap): Likewise.
36
37 (syscall_is_lwp_exit): Inline in callers.
38 (syscall_is_exit): Likewise.
39 (syscall_is_exec): Likewise.
40 (syscall_is_lwp_create): Likewise.
41
42 (invalidate_cache): Remove #if 0 code.
43
44 (make_signal_thread_runnable): Remove.
45 (procfs_target::resume): Remove #if 0 code.
46
cf6f3e86
RO
472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48
49 PR gdb/25939
50 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
51 call ...
52 (procfs_target::create_inferior): ... here.
53
48e9cc84
PW
542020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
55
56 * exec.c (validate_exec_file): Ensure the build-id is up to
57 date by calling reopen_exec_file (that checks file timestamp
58 to decide to re-read the file).
59
3922b302
PA
602020-06-18 Pedro Alves <palves@redhat.com>
61
62 PR gdb/25412
63 * gdbthread.h (delete_thread, delete_thread_silent)
64 (find_thread_ptid): Update comments.
65 * thread.c (current_thread_): New global.
66 (is_current_thread): Move higher, and reimplement.
67 (inferior_thread): Reimplement.
68 (set_thread_exited): Use bool. Add assertions.
69 (add_thread_silent): Simplify thread-reuse handling by always
70 calling delete_thread.
71 (delete_thread): Remove intro comment.
72 (find_thread_ptid): Skip exited threads.
73 (switch_to_thread_no_regs): Write to current_thread_.
74 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
75 INFERIOR_PTID. Clear current_thread_.
76
6dbdab44
PA
772020-06-18 Pedro Alves <palves@redhat.com>
78
79 * aix-thread.c (pd_update): Use switch_to_thread.
80
2da4b788
PA
812020-06-18 Pedro Alves <palves@redhat.com>
82
83 * ravenscar-thread.c (ravenscar_thread_target): Update.
84 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
85 (ravenscar_thread_target::add_active_thread): ... this. Don't
86 set m_base_ptid here. Update to avoid referencing inferior_ptid.
87 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
88
50838d1b
PA
892020-06-18 Pedro Alves <palves@redhat.com>
90
91 * nat/windows-nat.c (current_windows_thread): Remove.
92 * nat/windows-nat.h (current_windows_thread): Remove.
93 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
94 Adjust.
95 (display_selectors): Adjust to fetch the current
96 windows_thread_info based on inferior_ptid.
97 (fake_create_process): No longer write to current_windows_thread.
98 (windows_nat_target::get_windows_debug_event):
99 Don't set inferior_ptid or current_windows_thread.
100 (windows_nat_target::wait): Adjust to not rely on
101 current_windows_thread.
102 (do_initial_windows_stuff): Now a method of windows_nat_target.
103 Switch to the last_ptid thread.
104 (windows_nat_target::attach): Adjust.
105 (windows_nat_target::detach): Use switch_to_no_thread instead of
106 writing to inferior_ptid directly.
107 (windows_nat_target::create_inferior): Adjust.
108
31ce04e9
PA
1092020-06-18 Pedro Alves <palves@redhat.com>
110
111 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
112
1ee1a363
PA
1132020-06-18 Pedro Alves <palves@redhat.com>
114
115 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
116 after creating it, instead of writing to inferior_ptid. Don't
117 write to inferior_ptid.
118
6d350754
PA
1192020-06-18 Pedro Alves <palves@redhat.com>
120
121 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
122
5d971d48
PA
1232020-06-18 Pedro Alves <palves@redhat.com>
124
125 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
126 it, instead of writing to inferior_ptid.
127
86e57d1b
PA
1282020-06-18 Pedro Alves <palves@redhat.com>
129
130 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
131 to inferior_ptid.
132
f2e1c129
PA
1332020-06-18 Pedro Alves <palves@redhat.com>
134
135 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
136 instead of writing to inferior_ptid directly.
137
60db1b85
PA
1382020-06-18 Pedro Alves <palves@redhat.com>
139
140 * corelow.c (core_target::close): Use switch_to_no_thread instead
141 of writing to inferior_ptid directly.
142 (add_to_thread_list, core_target_open): Use switch_to_thread
143 instead of writing to inferior_ptid directly.
144
fe7d6a8d
PA
1452020-06-18 Pedro Alves <palves@redhat.com>
146
147 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
148 inferior_ptid.
149 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
150 inferior_ptid.
151 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
152 inferior_ptid directly.
153 (darwin_nat_target::init_thread_list): Switch to thread, instead
154 of writing to inferior_ptid.
155 (darwin_nat_target::attach): Don't write to inferior_ptid.
156 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
157
975f8708
PA
1582020-06-18 Pedro Alves <palves@redhat.com>
159
160 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
161 thread.
162 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
163 Instead use switch_to_thread.
164 (gnu_nat_target::detach): Use switch_to_no_thread
165 instead of writing to inferior_ptid directly. Used passed-in
166 inferior instead of looking up the inferior by pid.
167
1a204730
PA
1682020-06-18 Pedro Alves <palves@redhat.com>
169
170 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
171 inferior_ptid.
172
ebe84f23
PA
1732020-06-18 Pedro Alves <palves@redhat.com>
174
175 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
176 inferior_ptid.
177 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
178 thread.
179 (nto_procfs_target::detach): Avoid referencing
180 inferior_ptid. Use switch_to_no_thread instead of writing to
181 inferior_ptid directly.
182 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
183 instead of writing to inferior_ptid directly.
184 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
185 to thread.
186
191f02e5
PA
1872020-06-18 Pedro Alves <palves@redhat.com>
188
189 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
190 after creating it, instead of writing to inferior_ptid.
191 (gdbsim_target_open): Use switch_to_no_thread instead of writing
192 to inferior_ptid directly.
193 (gdbsim_target::wait): Don't write to inferior_ptid.
194
0ac55310
PA
1952020-06-18 Pedro Alves <palves@redhat.com>
196
197 * remote.c (remote_target::remote_notice_new_inferior): Use
198 switch_to_thread instead of writing to inferior_ptid directly.
199 (remote_target::add_current_inferior_and_thread): Use
200 switch_to_no_thread instead of writing to inferior_ptid directly.
201 (extended_remote_target::attach): Use switch_to_inferior_no_thread
202 and switch_to_thread instead of using set_current_inferior or
203 writing to inferior_ptid directly.
204
5233f39b
PA
2052020-06-18 Pedro Alves <palves@redhat.com>
206
207 * tracectf.c (ctf_target_open): Switch to added thread instead of
208 writing to inferior_ptid directly.
209 (ctf_target::close): Use switch_to_no_thread instead of writing to
210 inferior_ptid directly.
211
087e161b
PA
2122020-06-18 Pedro Alves <palves@redhat.com>
213
214 * tracefile-tfile.c (tfile_target_open): Don't write to
215 inferior_ptid directly, instead switch to added thread.
216 (tfile_target::close): Use switch_to_no_thread instead of writing
217 to inferior_ptid directly.
218
7fb43e53
PA
2192020-06-18 Pedro Alves <palves@redhat.com>
220
221 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
222 (procfs_target::detach): Use switch_to_no_thread
223 instead of writing to inferior_ptid directly.
224 (do_attach): Change return type to void. Switch to the added
225 thread.
226 (procfs_target::create_inferior): Switch to the added thread.
227 (procfs_do_thread_registers): Don't write to inferior_ptid.
228
18493a00
PA
2292020-06-18 Pedro Alves <palves@redhat.com>
230
231 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
232 of writing to inferior_ptid.
233 (scoped_restore_exited_inferior): Delete.
234 (handle_vfork_child_exec_or_exit): Simplify using
235 scoped_restore_current_pspace_and_thread. Use switch_to_thread
236 instead of writing to inferior_ptid.
237 (THREAD_STOPPED_BY): Delete.
238 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
239 (thread_stopped_by_hw_breakpoint): Delete.
240 (save_waitstatus): Use
241 scoped_restore_current_thread+switch_to_thread, and call
242 target_stopped_by_watchpoint instead of
243 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
244 instead of thread_stopped_by_sw_breakpoint, and
245 target_stopped_by_hw_breakpoint instead of
246 thread_stopped_by_hw_breakpoint.
247 (handle_inferior_event)
248 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
249 inferior_ptid directly, nor
250 set_current_inferior/set_current_program_space. Use
251 switch_to_thread / switch_to_inferior_no_thread instead.
252
a0776b13
PA
2532020-06-18 Pedro Alves <palves@redhat.com>
254
255 * target.c (generic_mourn_inferior): Use switch_to_no_thread
256 instead of writing to inferior_ptid.
257
6155c136
PA
2582020-06-18 Pedro Alves <palves@redhat.com>
259
260 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
261 added thread.
262 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
263 to the added thread.
264 (inf_ptrace_target::detach_success): Use switch_to_no_thread
265 instead of writing to inferior_ptid.
266
c5316fc6
PA
2672020-06-18 Pedro Alves <palves@redhat.com>
268
269 * gdbarch-selftests.c: Include "progspace-and-thread.h".
270 (register_to_value_test): Mock a program_space too. Heap-allocate
271 the address space. Don't write to inferior_ptid. Use
272 switch_to_thread instead.
273
8df01799
PA
2742020-06-18 Pedro Alves <palves@redhat.com>
275
276 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
277 Delete.
278 (find_signalled_thread()): New, factored out from
279 linux_make_corefile_notes and adjusted to handle exited threads.
280 (linux_make_corefile_notes): Adjust to use the new
281 find_signalled_thread.
282
41792d68
PA
2832020-06-18 Pedro Alves <palves@redhat.com>
284
285 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
286 of saving/restoring inferior_ptid.
287
612f258a
TT
2882020-06-17 Tom Tromey <tom@tromey.com>
289
290 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
291 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
292 declare.
293 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
294
efb763a5
SM
2952020-06-15 Simon Marchi <simon.marchi@efficios.com>
296
297 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
298 of partial symtabs.
299
2951f6c0
SM
3002020-06-17 Simon Marchi <simon.marchi@efficios.com>
301
302 * regformats/reg-arm.dat: Remove.
303 * regformats/reg-bfin.dat: Remove.
304 * regformats/reg-cris.dat: Remove.
305 * regformats/reg-crisv32.dat: Remove.
306 * regformats/reg-m32r.dat: Remove.
307 * regformats/reg-tilegx.dat: Remove.
308 * regformats/reg-tilegx32.dat: Remove.
309
7d458ea5
SM
3102020-06-17 Simon Marchi <simon.marchi@efficios.com>
311
312 * features/Makefile (WHICH): Remove arm files.
313 * regformats/arm/arm-with-iwmmxt.dat: Remove.
314 * regformats/arm/arm-with-neon.dat: Remove.
315 * regformats/arm/arm-with-vfpv2.dat: Remove.
316 * regformats/arm/arm-with-vfpv3.dat: Remove.
317
3af96c0d
SM
3182020-06-17 Simon Marchi <simon.marchi@efficios.com>
319
320 * features/Makefile (XMLTOC): Remove rx.xml.
321
b25e22fd
PA
3222020-06-17 Pedro Alves <palves@redhat.com>
323
324 * gdbthread.h (thread_control_state) <trap_expected> Update
325 comments.
326
a78a19b1
AB
3272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
330 ada_language::lookup_symbol_nonlocal.
331 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
332 (ada_language::lookup_symbol_nonlocal): New member function,
333 implementation from ada_lookup_symbol_nonlocal.
334 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
335 initializer.
336 (cplus_language_data): Delete la_lookup_symbol_nonlocal
337 initializer.
338 (cplus_language::lookup_symbol_nonlocal): New member function.
339 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
340 (minimal_language_data) Likewise.
341 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
342 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
343 initializer.
344 (d_language::lookup_symbol_nonlocal): New member function.
345 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
346 initializer.
347 (f_language::lookup_symbol_nonlocal): New member function.
348 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
349 initializer.
350 * language.c (unknown_language_data): Likewise.
351 (auto_language_data): Likewise.
352 * language.h (language_data): Delete la_lookup_symbol_nonlocal
353 field.
354 (language_defn::lookup_symbol_nonlocal): New member function.
355 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
356 initializer.
357 * objc-lang.c (objc_language_data): Likewise.
358 * opencl-lang.c (opencl_language_data): Likewise.
359 * p-lang.c (pascal_language_data): Likewise.
360 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
361 rust_language::lookup_symbol_nonlocal.
362 (rust_language_data): Delete la_lookup_symbol_nonlocal
363 initializer.
364 (rust_language::lookup_symbol_nonlocal): New member function,
365 implementation from rust_lookup_symbol_nonlocal.
366 * symtab.c (lookup_symbol_aux): Update call to
367 lookup_symbol_nonlocal.
368 (basic_lookup_symbol_nonlocal): Rename to...
369 (language_defn::lookup_symbol_nonlocal): ...this, and update
370 header comment. Remove language_defn parameter, and replace with
371 uses of `this'.
372 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
373
ebe2334e
AB
3742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * ada-lang.c (ada_language_data): Delete la_value_print_inner
377 initializer.
378 (ada_language::value_print_inner): New member function.
379 * c-lang.c (c_language_data): Delete la_value_print_inner
380 initializer.
381 (cplus_language_data): Likewise.
382 (asm_language_data): Likewise.
383 (minimal_language_data): Likewise.
384 * d-lang.c (d_language_data): Likewise.
385 (d_language::value_print_inner): New member function.
386 * f-lang.c (f_language_data): Delete la_value_print_inner
387 initializer.
388 (f_language::value_print_inner): New member function.
389 * f-lang.h (f_value_print_innner): Rename to...
390 (f_value_print_inner): ...this (note spelling of 'inner').
391 * f-valprint.c (f_value_print_innner): Rename to...
392 (f_value_print_inner): ...this (note spelling of 'inner').
393 * go-lang.c (go_language_data): Delete la_value_print_inner
394 initializer.
395 (go_language::value_print_inner): New member function.
396 * language.c (language_defn::value_print_inner): Define new member
397 function.
398 (unk_lang_value_print_inner): Delete.
399 (unknown_language_data): Delete la_value_print_inner initializer.
400 (unknown_language::value_print_inner): New member function.
401 (auto_language_data): Delete la_value_print_inner initializer.
402 (auto_language::value_print_inner): New member function.
403 * language.h (language_data): Delete la_value_print_inner field.
404 (language_defn::value_print_inner): Delcare new member function.
405 * m2-lang.c (m2_language_data): Delete la_value_print_inner
406 initializer.
407 (m2_language::value_print_inner): New member function.
408 * objc-lang.c (objc_language_data): Delete la_value_print_inner
409 initializer.
410 * opencl-lang.c (opencl_language_data): Likewise.
411 * p-lang.c (pascal_language_data): Likewise.
412 (pascal_language::value_print_inner): New member function.
413 * rust-lang.c (rust_language_data): Delete la_value_print_inner
414 initializer.
415 (rust_language::value_print_inner): New member function.
416 * valprint.c (do_val_print): Update call to value_print_inner.
417
a1d1fa3e
AB
4182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * ada-lang.c (ada_language_data): Delete la_value_print
421 initializer.
422 (ada_language::value_print): New member function.
423 * c-lang.c (c_language_data): Delete la_value_print initializer.
424 (cplus_language_data): Likewise.
425 (asm_language_data): Likewise.
426 (minimal_language_data): Likewise.
427 * d-lang.c (d_language_data): Likewise.
428 * f-lang.c (f_language_data): Likewise.
429 * go-lang.c (go_language_data): Likewise.
430 * language.c (unk_lang_value_print): Delete.
431 (language_defn::value_print): Define new member function.
432 (unknown_language_data): Delete la_value_print initializer.
433 (unknown_language::value_print): New member function.
434 (auto_language_data): Delete la_value_print initializer.
435 (auto_language::value_print): New member function.
436 * language.h (language_data): Delete la_value_print field.
437 (language_defn::value_print): Declare new member function.
438 (LA_VALUE_PRINT): Update call to value_print.
439 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
440 * objc-lang.c (objc_language_data): Likewise.
441 * opencl-lang.c (opencl_language_data): Likewise.
442 * p-lang.c (pascal_language_data): Likewise.
443 (pascal_language::value_print): New member function.
444 * rust-lang.c (rust_language_data): Delete la_value_print
445 initializer.
446
f16a9f57
AB
4472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * ada-lang.c (ada_watch_location_expression): Rename to
450 ada_language::watch_location_expression.
451 (ada_language_data): Delete la_watch_location_expression
452 initializer.
453 (ada_language::watch_location_expression): New member function,
454 implementation from ada_watch_location_expression.
455 * breakpoint.c (watch_command_1): Update call to
456 watch_location_expression.
457 * c-lang.c (c_watch_location_expression): Rename to
458 language_defn::watch_location_expression.
459 (c_language_data): Delete la_watch_location_expression
460 initializer.
461 (cplus_language_data): Likewise.
462 (asm_language_data): Likewise.
463 (minimal_language_data): Likewise.
464 * c-lang.h (c_watch_location_expression): Delete declaration.
465 * d-lang.c (d_language_data): Delete la_watch_location_expression
466 initializer.
467 * f-lang.c (f_language_data): Likewise.
468 * go-lang.c (go_language_data): Likewise.
469 * language.c (language_defn::watch_location_expression): Member
470 function implementation from c_watch_location_expression.
471 (unknown_language_data): Delete la_watch_location_expression
472 initializer.
473 (auto_language_data): Likewise.
474 * language.h (language_data): Delete la_watch_location_expression
475 field.
476 (language_defn::watch_location_expression): Declare new member
477 function.
478 * m2-lang.c (m2_language_data): Delete
479 la_watch_location_expression initializer.
480 * objc-lang.c (objc_language_data): Likewise.
481 * opencl-lang.c (opencl_language_data): Likewise.
482 * p-lang.c (pascal_language_data): Likewise.
483 * rust-lang.c (rust_watch_location_expression): Rename to
484 rust_language::watch_location_expression.
485 (rust_language_data): Delete la_watch_location_expression
486 initializer.
487 (rust_language::watch_location_expression): New member function,
488 implementation from rust_watch_location_expression.
489
7e56227d
AB
4902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
493 ada_language::collect_symbol_completion_matches.
494 (ada_language_data): Delete la_collect_symbol_completion_matches
495 initializer.
496 (ada_language::collect_symbol_completion_matches): New member
497 function, implementation from
498 ada_collect_symbol_completion_matches.
499 * c-lang.c (c_language_data): Delete
500 la_collect_symbol_completion_matches initializer.
501 (cplus_language_data): Likewise.
502 (asm_language_data): Likewise.
503 (minimal_language_data): Likewise.
504 * d-lang.c (d_language_data): Likewise.
505 * f-lang.c (f_collect_symbol_completion_matches): Rename to
506 f_language::collect_symbol_completion_matches.
507 (f_language_data): Delete la_collect_symbol_completion_matches
508 initializer.
509 (f_language::collect_symbol_completion_matches) New member
510 function, implementation from f_collect_symbol_completion_matches.
511 * go-lang.c (go_language_data): Delete
512 la_collect_symbol_completion_matches initializer.
513 * language.c (unknown_language_data): Likewise.
514 (auto_language_data): Likewise.
515 * language.h (language_data): Delete
516 la_collect_symbol_completion_matches field.
517 (language_defn::collect_symbol_completion_matches): New member
518 function.
519 * m2-lang.c (m2_language_data): Delete
520 la_collect_symbol_completion_matches initializer.
521 * objc-lang.c (objc_language_data): Likewise.
522 * opencl-lang.c (opencl_language_data): Likewise.
523 * p-lang.c (pascal_language_data): Likewise.
524 * rust-lang.c (rust_language_data): Likewise.
525 * symtab.c (default_collect_symbol_completion_matches): Delete.
526 (collect_symbol_completion_matches): Update call to
527 collect_symbol_completion_matches.
528 (collect_symbol_completion_matches_type): Likewise.
529 * symtab.h (default_collect_symbol_completion_matches): Delete
530 declaration.
531
53fc67f8
AB
5322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
535 (ada_language_data): Delete la_word_break_characters initializer.
536 (ada_language::word_break_characters): New member function.
537 * c-lang.c (c_language_data): Delete la_word_break_characters
538 initializer.
539 (cplus_language_data): Likewise.
540 (asm_language_data): Likewise.
541 (minimal_language_data): Likewise.
542 * completer.c: Update global comment.
543 (advance_to_expression_complete_word_point): Update call to
544 word_break_characters.
545 (complete_files_symbols): Likewise.
546 (complete_line_internal_1): Likewise.
547 (default_completer_handle_brkchars): Likewise.
548 (skip_quoted_chars): Likewise.
549 * d-lang.c (d_language_data): Delete la_word_break_characters
550 initializer.
551 * f-lang.c (f_word_break_characters): Delete.
552 (f_language_data): Delete la_word_break_characters initializer.
553 (f_language::word_break_characters): New member function.
554 * go-lang.c (go_language_data): Delete la_word_break_characters
555 initializer.
556 * language.c (unknown_language_data): Likewise.
557 (auto_language_data): Likewise.
558 * language.h (default_word_break_characters): Move declaration to
559 earlier in the file.
560 (language_data): Delete la_word_break_characters field.
561 (language_defn::word_break_characters): New member function.
562 * m2-lang.c (m2_language_data): Delete la_word_break_characters
563 initializer.
564 * objc-lang.c (objc_language_data): Likewise.
565 * opencl-lang.c (opencl_language_data): Likewise.
566 * p-lang.c (pascal_language_data): Likewise.
567 * rust-lang.c (rust_language_data): Likewise.
568
c9debfb9
AB
5692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
572 (ada_language_data): Delete la_get_symbol_name_matcher
573 initializer.
574 (language_defn::get_symbol_name_matcher_inner): New member
575 function.
576 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
577 initializer.
578 (cplus_language_data): Likewise.
579 (cplus_language::get_symbol_name_matcher_inner): New member
580 function.
581 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
582 (minimal_language_data): Likewise.
583 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
584 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
585 initializer.
586 * dictionary.c (iter_match_first_hashed): Update call to
587 get_symbol_name_matcher.
588 (iter_match_next_hashed): Likewise.
589 (iter_match_next_linear): Likewise.
590 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
591 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
592 initializer.
593 (f_language::get_symbol_name_matcher_inner): New member function.
594 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
595 initializer.
596 * language.c (default_symbol_name_matcher): Update header comment,
597 make static.
598 (language_defn::get_symbol_name_matcher): New definition.
599 (language_defn::get_symbol_name_matcher_inner): Likewise.
600 (get_symbol_name_matcher): Delete.
601 (unknown_language_data): Delete la_get_symbol_name_matcher
602 initializer.
603 (auto_language_data): Likewise.
604 * language.h (language_data): Delete la_get_symbol_name_matcher
605 field.
606 (language_defn::get_symbol_name_matcher): New member function.
607 (language_defn::get_symbol_name_matcher_inner): Likewise.
608 (default_symbol_name_matcher): Delete declaration.
609 * linespec.c (find_methods): Update call to
610 get_symbol_name_matcher.
611 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
612 initializer.
613 * minsyms.c (lookup_minimal_symbol): Update call to
614 get_symbol_name_matcher.
615 (iterate_over_minimal_symbols): Likewise.
616 * objc-lang.c (objc_language_data): Delete
617 la_get_symbol_name_matcher initializer.
618 * opencl-lang.c (opencl_language_data): Likewise.
619 * p-lang.c (pascal_language_data): Likewise.
620 * psymtab.c (psymbol_name_matches): Update call to
621 get_symbol_name_matcher.
622 * rust-lang.c (rust_language_data): Delete
623 la_get_symbol_name_matcher initializer.
624 * symtab.c (symbol_matches_search_name): Update call to
625 get_symbol_name_matcher.
626 (compare_symbol_name): Likewise.
627
9a49ad8c
AB
6282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * ada-lang.c (ada_language_data): Delete la_compute_program
631 initializer.
632 * c-lang.c (c_language_data): Likewise.
633 (c_language::compute_program): New member function.
634 (cplus_language_data): Delete la_compute_program initializer.
635 (cplus_language::compute_program): New member function.
636 (asm_language_data): Delete la_compute_program initializer.
637 (minimal_language_data): Likewise.
638 * c-lang.h (c_compute_program): Update comment.
639 (cplus_compute_program): Likewise.
640 * compile/compile-c-support.c (c_compute_program): Likewise.
641 (cplus_compute_program): Likewise.
642 * compile/compile.c (compile_to_object): Update call to
643 la_compute_program.
644 * d-lang.c (d_language_data): Delete la_compute_program
645 initializer.
646 * f-lang.c (f_language_data): Likewise.
647 * go-lang.c (go_language_data): Likewise.
648 * language.c (unknown_language_data): Likewise.
649 (auto_language_data): Likewise.
650 * language.h (language_data): Delete la_compute_program field.
651 (language_defn::compute_program): New member function.
652 * m2-lang.c (m2_language_data): Delete la_compute_program
653 initializer.
654 * objc-lang.c (objc_language_data): Likewise.
655 * opencl-lang.c (opencl_language_data): Likewise.
656 * p-lang.c (pascal_language_data): Likewise.
657 * rust-lang.c (rust_language_data): Likewise.
658
eff93b4d
AB
6592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * ada-lang.c (ada_language_data) Delete
662 la_class_name_from_physname initializer.
663 * c-lang.c (c_language_data): Likewise.
664 (cplus_language_data): Likewise.
665 (cplus_language::class_name_from_physname): New member function.
666 (asm_language_data): Delete la_class_name_from_physname
667 initializer.
668 (minimal_language_data): Likewise.
669 * d-lang.c (d_language_data): Likewise.
670 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
671 method on language_defn class.
672 (guess_full_die_structure_name): Likewise.
673 * f-lang.c (f_language_data): Delete la_class_name_from_physname
674 initializer.
675 * go-lang.c (go_language_data): Likewise.
676 * language.c (language_class_name_from_physname): Delete.
677 (unk_lang_class_name): Delete.
678 (unknown_language_data): Delete la_class_name_from_physname
679 initializer.
680 (auto_language_data): Likewise.
681 * language.h (language_data): Delete la_class_name_from_physname
682 field.
683 (language_defn::class_name_from_physname): New function.
684 (language_class_name_from_physname): Delete declaration.
685 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
686 initializer.
687 * objc-lang.c (objc_language_data): Likewise.
688 * opencl-lang.c (opencl_language_data): Likewise.
689 * p-lang.c (pascal_language_data): Likewise.
690 * rust-lang.c (rust_language_data): Likewise.
691
de543742
TT
6922020-06-16 Tom Tromey <tom@tromey.com>
693
694 * tui/tui-data.h (STATUS_NAME): New macro.
695 * tui/tui-layout.c (tui_remove_some_windows)
696 (initialize_known_windows, tui_register_window)
697 (tui_layout_split::remove_windows, initialize_layouts)
698 (tui_new_layout_command): Don't use hard-coded window names.
699
a350efd4
TT
7002020-06-16 Tom Tromey <tom@tromey.com>
701
702 PR tui/25348:
703 * tui/tui.c (tui_ensure_readline_initialized): Rename from
704 tui_initialize_readline. Only run once. Call rl_initialize.
705 * tui/tui.h (tui_ensure_readline_initialized): Rename from
706 tui_initialize_readline.
707 * tui/tui-io.c (tui_setup_io): Call
708 tui_ensure_readline_initialized.
709 * tui/tui-interp.c (tui_interp::init): Update.
710
39ec0490
TT
7112020-06-16 Tom Tromey <tom@tromey.com>
712
713 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
714 Also preserve the status window.
715
d2d1ea20
TT
7162020-06-16 Tom Tromey <tom@tromey.com>
717
718 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
719 where m_window==nullptr.
720
66920317
TT
7212020-06-15 Tom Tromey <tromey@adacore.com>
722
723 * windows-nat.c (windows_nat::handle_output_debug_string):
724 Update.
725 (windows_nat::handle_ms_vc_exception): Update.
726 * target.h (target_read_string): Change API.
727 * target.c (target_read_string): Change API.
728 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
729 Update.
730 * solib-frv.c (frv_current_sos): Update.
731 * solib-dsbt.c (dsbt_current_sos): Update.
732 * solib-darwin.c (darwin_current_sos): Update.
733 * linux-thread-db.c (inferior_has_bug): Update.
734 * expprint.c (print_subexp_standard): Update.
735 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
736 (ada_exception_message_1): Update.
737
a5d871dd
TT
7382020-06-15 Tom Tromey <tromey@adacore.com>
739
740 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
741
670e35fa
TT
7422020-06-15 Tom Tromey <tromey@adacore.com>
743
744 * valprint.c (read_string): Update comment.
745 * target.c (MIN): Remove.
746 (target_read_string): Rewrite.
747
f5272a3b
TT
7482020-06-15 Tom Tromey <tromey@adacore.com>
749
750 * corefile.c (read_memory_string): Remove.
751 * ada-valprint.c (ada_value_print_ptr): Update.
752 * ada-lang.h (ada_tag_name): Change return type.
753 * ada-lang.c (type_from_tag): Update.
754 (ada_tag_name_from_tsd): Change return type. Use
755 target_read_string.
756 (ada_tag_name): Likewise.
757 * gdbcore.h (read_memory_string): Don't declare.
758
2c074f49
HD
7592020-06-14 Hannes Domani <ssbssa@yahoo.de>
760
761 * symtab.c (rbreak_command): Ignore Windows drive colon.
762
6a17d503
SM
7632020-06-12 Simon Marchi <simon.marchi@efficios.com>
764
765 * NEWS: Mention removed GDBserver host support.
766
453c733f
NC
7672020-06-12 Nelson Chu <nelson.chu@sifive.com>
768
769 * features/riscv/rebuild-csr-xml.sh: Updated.
770
2b4e6a3f
TT
7712020-06-11 Tom Tromey <tom@tromey.com>
772
773 PR gdb/18318:
774 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
775
4412332f
JG
7762020-06-09 Jonny Grant <jg@jguk.org>
7772020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * main.c (captured_main_1): Don't print new line after help.
780 (print_gdb_help): add mailing list and IRC channel information
781 to --help. Add new lines between items in the footer. Remove
782 quotes around bug url.
783
2f33032a
KS
7842020-06-11 Keith Seitz <keiths@redhat.com>
785
786 PR gdb/21356
787 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
788 Resolve typedefs for type length calculations.
789
7ab96794
TV
7902020-06-10 Tom de Vries <tdevries@suse.de>
791
792 PR ada/24713
793 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
794 (write_psymbols): Enable .gdb_index for ada.
795 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
796 ada.
797
e5f3ece2
TV
7982020-06-10 Tom de Vries <tdevries@suse.de>
799
800 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
801 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
802 namei" instead of "const char *name" argument.
803 (dw2_map_matching_symbols): Use "offset_type namei" variant of
804 dw2_symtab_iter_init.
805
940da03e
SM
8062020-06-08 Simon Marchi <simon.marchi@efficios.com>
807
808 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
809 to use type::field and field::type instead.
810
b6cdac4b
SM
8112020-06-08 Simon Marchi <simon.marchi@efficios.com>
812
813 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
814 to use field::type instead.
815
5d14b6e5
SM
8162020-06-08 Simon Marchi <simon.marchi@efficios.com>
817
818 * gdbtypes.h (struct field) <type, set_type>: New methods.
819 Rename `type` field to...
820 <m_type>: ... this. Change references throughout to use type or
821 set_type methods.
822 (FIELD_TYPE): Use field::type. Change call sites that modify
823 the field's type to use field::set_type instead.
824
3d967001
SM
8252020-06-08 Simon Marchi <simon.marchi@efficios.com>
826
827 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
828 to use type::index_type instead.
829
262abc0d
SM
8302020-06-08 Simon Marchi <simon.marchi@efficios.com>
831
832 * gdbtypes.h (struct type) <index_type, set_index_type>: New
833 methods.
834 (TYPE_INDEX_TYPE): Use type::index_type.
835 * gdbtypes.c (create_array_type_with_stride): Likewise.
836
82836c92
TT
8372020-06-07 Tom Tromey <tom@tromey.com>
838
839 * valprint.c (generic_val_print_float): Remove "embedded_offset"
840 parameter.
841 (generic_value_print): Update.
842
940dace9
AB
8432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 Revert commit 982a38f60b0.
846 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
847
982a38f6
AB
8482020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
851 avoid use after free.
852
82f06518
TV
8532020-06-05 Tom de Vries <tdevries@suse.de>
854
855 * NEWS: Fix typos.
856
f8c41851
SM
8572020-06-04 Simon Marchi <simon.marchi@efficios.com>
858
859 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
860 the per_bfd object.
861 (dwarf2_read_debug_names): Likewise.
862 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
863 object when re-using a per_bfd object with an index.
864
f9b5d5ea
TV
8652020-06-03 Tom de Vries <tdevries@suse.de>
866
867 PR symtab/26046
868 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
869 children for C++.
870 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
871 DW_TAG_subprogram.
872
f6eee2d0
AB
8732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * ada-lang.c (ada_language_data): Delete skip_trampoline
876 initializer.
877 * c-lang.c (c_language_data): Likewise.
878 (cplus_language_data): Likewise.
879 (cplus_language::skip_trampoline): New member function.
880 (asm_language_data): Delete skip_trampoline initializer.
881 (minimal_language_data): Likewise.
882 * d-lang.c (d_language_data): Likewise.
883 * f-lang.c (f_language_data): Likewise.
884 * go-lang.c (go_language_data): Likewise.
885 * language.c (unk_lang_trampoline): Delete function.
886 (skip_language_trampoline): Update.
887 (unknown_language_data): Delete skip_trampoline initializer.
888 (auto_language_data): Likewise.
889 * language.h (language_data): Delete skip_trampoline field.
890 (language_defn::skip_trampoline): New function.
891 * m2-lang.c (m2_language_data): Delete skip_trampoline
892 initializer.
893 * objc-lang.c (objc_skip_trampoline): Delete function, move
894 implementation to objc_language::skip_trampoline.
895 (objc_language_data): Delete skip_trampoline initializer.
896 (objc_language::skip_trampoline): New member function with
897 implementation from objc_skip_trampoline.
898 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
899 initializer.
900 * p-lang.c (pascal_language_data): Likewise.
901 * rust-lang.c (rust_language_data): Likewise.
902
0a50df5d
AB
9032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
906 (ada_language::demangle): New member function.
907 * c-lang.c (c_language_data): Delete la_demangle initializer.
908 (cplus_language_data): Delete la_demangle initializer.
909 (cplus_language::demangle): New member function.
910 (asm_language_data): Delete la_demangle initializer.
911 (minimal_language_data): Delete la_demangle initializer.
912 * d-lang.c (d_language_data): Delete la_demangle initializer.
913 (d_language::demangle): New member function.
914 * f-lang.c (f_language_data): Delete la_demangle initializer.
915 (f_language::demangle): New member function.
916 * go-lang.c (go_language_data): Delete la_demangle initializer.
917 (go_language::demangle): New member function.
918 * language.c (language_demangle): Update.
919 (unk_lang_demangle): Delete.
920 (unknown_language_data): Delete la_demangle initializer.
921 (unknown_language::demangle): New member function.
922 (auto_language_data): Delete la_demangle initializer.
923 (auto_language::demangle): New member function.
924 * language.h (language_data): Delete la_demangle field.
925 (language_defn::demangle): New function.
926 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
927 * objc-lang.c (objc_language_data): Delete la_demangle
928 initializer.
929 (objc_language::demangle): New member function.
930 * opencl-lang.c (opencl_language_data): Delete la_demangle
931 initializer.
932 * p-lang.c (pascal_language_data): Likewise.
933 * rust-lang.c (rust_language_data): Likewise.
934 (rust_language::demangle): New member function.
935
fbfb0a46
AB
9362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * ada-lang.c (ada_language_data): Delete la_print_type
939 initializer.
940 (ada_language::print_type): New member function.
941 * c-lang.c (c_language_data): Delete la_print_type initializer.
942 (c_language::print_type): New member function.
943 (cplus_language_data): Delete la_print_type initializer.
944 (cplus_language::print_type): New member function.
945 (asm_language_data): Delete la_print_type initializer.
946 (asm_language::print_type): New member function.
947 (minimal_language_data): Delete la_print_type initializer.
948 (minimal_language::print_type): New member function.
949 * d-lang.c (d_language_data): Delete la_print_type initializer.
950 (d_language::print_type): New member function.
951 * f-lang.c (f_language_data): Delete la_print_type initializer.
952 (f_language::print_type): New member function.
953 * go-lang.c (go_language_data): Delete la_print_type initializer.
954 (go_language::print_type): New member function.
955 * language.c (unk_lang_print_type): Delete.
956 (unknown_language_data): Delete la_print_type initializer.
957 (unknown_language::print_type): New member function.
958 (auto_language_data): Delete la_print_type initializer.
959 (auto_language::print_type): New member function.
960 * language.h (language_data): Delete la_print_type field.
961 (language_defn::print_type): New function.
962 (LA_PRINT_TYPE): Update.
963 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
964 (m2_language::print_type): New member function.
965 * objc-lang.c (objc_language_data): Delete la_print_type
966 initializer.
967 (objc_language::print_type): New member function.
968 * opencl-lang.c (opencl_print_type): Delete, implementation moved
969 to opencl_language::print_type.
970 (opencl_language_data): Delete la_print_type initializer.
971 (opencl_language::print_type): New member function, implementation
972 from opencl_print_type.
973 * p-lang.c (pascal_language_data): Delete la_print_type
974 initializer.
975 (pascal_language::print_type): New member function.
976 * rust-lang.c (rust_print_type): Delete, implementation moved to
977 rust_language::print_type.
978 (rust_language_data): Delete la_print_type initializer.
979 (rust_language::print_type): New member function, implementation
980 from rust_print_type.
981
6f827019
AB
9822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
985 implementation moves to...
986 (ada_language::sniff_from_mangled_name): ...here. Update return
987 type.
988 (ada_language_data): Delete la_sniff_from_mangled_name
989 initializer.
990 * c-lang.c (c_language_data): Likewise.
991 (cplus_language_data): Likewise.
992 (cplus_language::sniff_from_mangled_name): New member function,
993 implementation taken from gdb_sniff_from_mangled_name.
994 (asm_language_data): Delete la_sniff_from_mangled_name
995 initializer.
996 (minimal_language_data): Likewise.
997 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
998 implementation moves to cplus_language::sniff_from_mangled_name.
999 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1000 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1001 moves to...
1002 (d_language::sniff_from_mangled_name): ...here.
1003 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1004 * f-lang.c (f_language_data): Likewise.
1005 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1006 moves to...
1007 (go_language::sniff_from_mangled_name): ...here.
1008 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1009 * language.c (language_sniff_from_mangled_name): Delete.
1010 (unknown_language_data): Delete la_sniff_from_mangled_name
1011 initializer.
1012 (auto_language_data): Likewise.
1013 * language.h (language_data): Delete la_sniff_from_mangled_name
1014 field.
1015 (language_defn::sniff_from_mangled_name): New function.
1016 (language_sniff_from_mangled_name): Delete declaration.
1017 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1018 field.
1019 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1020 implementation moves to...
1021 (objc_language::sniff_from_mangled_name): ...here.
1022 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1023 * opencl-lang.c (opencl_language_data): Likewise.
1024 * p-lang.c (pascal_language_data): Likewise.
1025 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1026 implementation moves to...
1027 (rust_language::sniff_from_mangled_name): ...here.
1028 (rust_language_data): Delete la_sniff_from_mangled_name
1029 initializer.
1030 * symtab.c (symbol_find_demangled_name): Call
1031 sniff_from_mangled_name member function.
1032
fb8006fd
AB
10332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1036 initializer.
1037 * c-lang.c (c_language_data): Likewise.
1038 (cplus_language_data): Likewise.
1039 (cplus_language::search_name_hash): New member function.
1040 (asm_language_data): Delete la_search_name_hash initializer.
1041 (minimal_language_data): Likewise.
1042 * d-lang.c (d_language_data): Likewise.
1043 * dictionary.c (default_search_name_hash): Rename to...
1044 (language_defn::search_name_hash): ...this.
1045 * f-lang.c (f_language_data): Likewise.
1046 (f_language::search_name_hash): New member function.
1047 * go-lang.c (go_language_data): Delete la_search_name_hash
1048 initializer.
1049 * language.c (unknown_language_data): Likewise.
1050 (auto_language_data): Likewise.
1051 * language.h (struct language_data): Delete la_search_name_hash
1052 field.
1053 (language_defn::search_name_hash): Declare new member function.
1054 (default_search_name_hash): Delete declaration.
1055 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1056 initializer.
1057 * objc-lang.c (objc_language_data): Likewise.
1058 * opencl-lang.c (opencl_language_data): Likewise.
1059 * p-lang.c (pascal_language_data): Likewise.
1060 * rust-lang.c (rust_language_data): Likewise.
1061 * symtab.c (search_name_hash): Update call.
1062
8e25bafe
AB
10632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1066 initializer.
1067 * c-lang.c (class compile_instance): Declare.
1068 (c_language_data): Delete la_get_compile_instance initializer.
1069 (c_language::get_compile_instance): New member function.
1070 (cplus_language_data): Delete la_get_compile_instance initializer.
1071 (cplus_language::get_compile_instance): New member function.
1072 (asm_language_data): Delete la_get_compile_instance initializer.
1073 (minimal_language_data): Likewise.
1074 * c-lang.h (c_get_compile_context): Update comment.
1075 (cplus_get_compile_context): Update comment.
1076 * compile/compile.c (compile_to_object): Update calls, don't rely
1077 on function pointer being NULL.
1078 * d-lang.c (d_language_data): Delete la_get_compile_instance
1079 initializer.
1080 * f-lang.c (f_language_data): Likewise.
1081 * go-lang.c (go_language_data): Likewise.
1082 * language.c (unknown_language_data): Likewise.
1083 (auto_language_data): Likewise.
1084 * language.h (language_data): Delete la_get_compile_instance field.
1085 (language_defn::get_compile_instance): New member function.
1086 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1087 initializer.
1088 * objc-lang.c (objc_language_data): Likewise.
1089 * opencl-lang.c (opencl_language_data): Likewise.
1090 * p-lang.c (pascal_language_data): Likewise.
1091 * rust-lang.c (rust_language_data): Likewise.
1092
4009ee92
AB
10932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * ada-lang.c (ada_add_all_symbols): Update comment.
1096 (ada_iterate_over_symbols): Delete, move implementation to...
1097 (ada_language::iterate_over_symbols): ...here, a new member
1098 function, rewrite to use range based for loop.
1099 (ada_language_data): Delete la_iterate_over_symbols initializer.
1100 * c-lang.c (c_language_data): Likewise.
1101 (cplus_language_data): Likewise.
1102 (asm_language_data): Likewise.
1103 (minimal_language_data): Likewise.
1104 * d-lang.c (d_language_data): Likewise.
1105 * f-lang.c (f_language_data): Likewise.
1106 * go-lang.c (go_language_data): Likewise.
1107 * language.c (unknown_language_data): Likewise.
1108 (auto_language_data): Likewise.
1109 * language.h (language_data): Delete la_iterate_over_symbols field.
1110 (language_defn::iterate_over_symbols): New member function.
1111 (LA_ITERATE_OVER_SYMBOLS): Update.
1112 * linespec.c (iterate_over_all_matching_symtabs): Update.
1113 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1114 initializer.
1115 * objc-lang.c (objc_language_data): Likewise.
1116 * opencl-lang.c (opencl_language_data): Likewise.
1117 * p-lang.c (pascal_language_data): Likewise.
1118 * rust-lang.c (rust_language_data): Likewise.
1119
54f4ca46
AB
11202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * ada-lang.c (ada_language_data): Delete
1123 la_lookup_transparent_type initializer.
1124 * c-lang.c (c_language_data): Likewise.
1125 (cplus_language_data): Likewise.
1126 (cplus_language::lookup_transparent_type): New member function.
1127 (asm_language_data): Delete la_lookup_transparent_type
1128 initializer.
1129 (minimal_language_data): Likewise.
1130 * d-lang.c (d_language_data): Likewise.
1131 * f-lang.c (f_language_data): Likewise.
1132 * go-lang.c (go_language_data): Likewise.
1133 * language.c (unknown_language_data): Likewise.
1134 (auto_language_data): Likewise.
1135 * language.h (struct language_data): Delete
1136 la_lookup_transparent_type field.
1137 (language_defn::lookup_transparent_type): New member function.
1138 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1139 initializer.
1140 * objc-lang.c (objc_language_data): Likewise.
1141 * opencl-lang.c (opencl_language_data): Likewise.
1142 * p-lang.c (pascal_language_data): Likewise.
1143 * rust-lang.c (rust_language_data): Likewise.
1144 * symtab.c (symbol_matches_domain): Update call.
1145
1fb314aa
AB
11462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * ada-lang.c (ada_language_arch_info): Delete function, move
1149 implementation to...
1150 (ada_language::language_arch_info): ...here, a new member
1151 function.
1152 (ada_language_data): Delete la_language_arch_info.
1153 * c-lang.c (c_language_data): Likewise.
1154 (c_language::language_arch_info): New member function.
1155 (cplus_language_arch_info): Delete function, move
1156 implementation to...
1157 (cplus_language::language_arch_info): ...here, a new member
1158 function.
1159 (cplus_language_data): Delete la_language_arch_info.
1160 (asm_language_data): Likewise.
1161 (asm_language::language_arch_info): New member function.
1162 (minimal_language_data): Delete la_language_arch_info.
1163 (minimal_language::language_arch_info): New member function.
1164 * d-lang.c (d_language_arch_info): Delete function, move
1165 implementation to...
1166 (d_language::language_arch_info): ...here, a new member
1167 function.
1168 (d_language_data): Delete la_language_arch_info.
1169 * f-lang.c (f_language_arch_info): Delete function, move
1170 implementation to...
1171 (f_language::language_arch_info): ...here, a new member
1172 function.
1173 (f_language_data): Delete la_language_arch_info.
1174 * go-lang.c (go_language_arch_info): Delete function, move
1175 implementation to...
1176 (go_language::language_arch_info): ...here, a new member
1177 function.
1178 (go_language_data): Delete la_language_arch_info.
1179 * language.c (unknown_language_data): Likewise.
1180 (unknown_language::language_arch_info): New member function.
1181 (auto_language_data): Delete la_language_arch_info.
1182 (auto_language::language_arch_info): New member function.
1183 (language_gdbarch_post_init): Update call to
1184 la_language_arch_info.
1185 * language.h (language_data): Delete la_language_arch_info
1186 function pointer.
1187 (language_defn::language_arch_info): New function.
1188 * m2-lang.c (m2_language_arch_info): Delete function, move
1189 implementation to...
1190 (m2_language::language_arch_info): ...here, a new member
1191 function.
1192 (m2_language_data): Delete la_language_arch_info.
1193 * objc-lang.c (objc_language_arch_info): Delete function, move
1194 implementation to...
1195 (objc_language::language_arch_info): ...here, a new member
1196 function.
1197 (objc_language_data): Delete la_language_arch_info.
1198 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1199 implementation to...
1200 (opencl_language::language_arch_info): ...here, a new member
1201 function.
1202 (opencl_language_data): Delete la_language_arch_info.
1203 * p-lang.c (pascal_language_arch_info): Delete function, move
1204 implementation to...
1205 (pascal_language::language_arch_info): ...here, a new member
1206 function.
1207 (pascal_language_data): Delete la_language_arch_info.
1208 * rust-lang.c (rust_language_arch_info): Delete function, move
1209 implementation to...
1210 (rust_language::language_arch_info): ...here, a new member
1211 function.
1212 (rust_language_data): Delete la_language_arch_info.
1213
48448202
AB
12142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1217 initializer.
1218 * c-lang.c (c_language_data): Likewise.
1219 (cplus_language_data): Likewise.
1220 (cplus_language::pass_by_reference_info): New method.
1221 (asm_language_data): Delete la_pass_by_reference initializer.
1222 (minimal_language_data): Likewise.
1223 * cp-abi.c (cp_pass_by_reference): Remove use of
1224 default_pass_by_reference.
1225 * d-lang.c (d_language_data): Likewise.
1226 * f-lang.c (f_language_data): Likewise.
1227 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1228 default_pass_by_reference.
1229 * go-lang.c (go_language_data): Likewise.
1230 * language.c (language_pass_by_reference): Update.
1231 (default_pass_by_reference): Delete.
1232 (unknown_language_data): Delete la_pass_by_reference
1233 initializer.
1234 (auto_language_data): Likewise.
1235 * language.h (struct language_data): Delete la_pass_by_reference
1236 field.
1237 (language_defn::pass_by_reference_info): New member function.
1238 (default_pass_by_reference): Delete declaration.
1239 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1240 initializer.
1241 * objc-lang.c (objc_language_data): Likewise.
1242 * opencl-lang.c (opencl_language_data): Likewise.
1243 * p-lang.c (pascal_language_data): Likewise.
1244 * rust-lang.c (rust_language_data): Likewise.
1245
15e5fd35
AB
12462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * ada-lang.c (ada_read_var_value): Delete function, move
1249 implementation to...
1250 (ada_language::read_var_value): ...here.
1251 (ada_language_data): Delete la_read_var_value initializer.
1252 * c-lang.c (c_language_data): Likewise.
1253 (cplus_language_data): Likewise.
1254 (minimal_language_data): Likewise.
1255 * d-lang.c (d_language_data): Likewise.
1256 * f-lang.c (f_language_data): Likewise.
1257 * findvar.c (default_read_var_value): Rename to...
1258 (language_defn::read_var_value): ...this.
1259 * findvar.c (read_var_value): Update header comment, and change to
1260 call member function instead of function pointer.
1261 * go-lang.c (go_language_data): Likewise.
1262 * language.c (unknown_language_data): Delete la_read_var_value
1263 initializer.
1264 (auto_language_data): Likewise.
1265 * language.h (struct language_data): Delete la_read_var_value
1266 field.
1267 (language_defn::read_var_value): New member function.
1268 (default_read_var_value): Delete declaration.
1269 * m2-lang.c (m2_language_data): Delete la_read_var_value
1270 initializer.
1271 * objc-lang.c (objc_language_data): Likewise.
1272 * opencl-lang.c (opencl_language_data): Likewise.
1273 * p-lang.c (pascal_language_data): Likewise.
1274 * rust-lang.c (rust_language_data): Likewise.
1275 * value.h (default_read_var_value): Delete declaration.
1276
5bd40f2a
AB
12772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * ada-lang.c (ada_print_array_index): Delete function, move
1280 implementation to...
1281 (ada_language::print_array_index): ...here.
1282 (ada_language_data): Delete la_print_array_index initializer.
1283 * c-lang.c (c_language_data): Likewise.
1284 (cplus_language_data): Likewise.
1285 (minimal_language_data): Likewise.
1286 * d-lang.c (d_language_data): Likewise.
1287 * f-lang.c (f_language_data): Likewise.
1288 * go-lang.c (go_language_data): Likewise.
1289 * language.c (default_print_array_index): Delete function, move
1290 implementation to...
1291 (language_defn::print_array_index): ...here.
1292 (unknown_language_data): Delete la_print_array_index initializer.
1293 (auto_language_data): Likewise.
1294 * language.h (struct language_data): Delete la_print_array_index
1295 field.
1296 (language_defn::print_array_index): New member function.
1297 (LA_PRINT_ARRAY_INDEX): Update.
1298 (default_print_array_index): Delete declaration.
1299 * m2-lang.c (m2_language_data): Delete la_print_array_index
1300 initializer.
1301 * objc-lang.c (objc_language_data): Likewise.
1302 * opencl-lang.c (opencl_language_data): Likewise.
1303 * p-lang.c (pascal_language_data): Likewise.
1304 * rust-lang.c (rust_language_data): Likewise.
1305
0874fd07
AB
13062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * gdb/ada-lang.c (ada_language_defn): Convert to...
1309 (ada_language_data): ...this.
1310 (class ada_language): New class.
1311 (ada_language_defn): New static global.
1312 * gdb/c-lang.c (c_language_defn): Convert to...
1313 (c_language_data): ...this.
1314 (class c_language): New class.
1315 (c_language_defn): New static global.
1316 (cplus_language_defn): Convert to...
1317 (cplus_language_data): ...this.
1318 (class cplus_language): New class.
1319 (cplus_language_defn): New static global.
1320 (asm_language_defn): Convert to...
1321 (asm_language_data): ...this.
1322 (class asm_language): New class.
1323 (asm_language_defn): New static global.
1324 (minimal_language_defn): Convert to...
1325 (minimal_language_data): ...this.
1326 (class minimal_language): New class.
1327 (minimal_language_defn): New static global.
1328 * gdb/d-lang.c (d_language_defn): Convert to...
1329 (d_language_data): ...this.
1330 (class d_language): New class.
1331 (d_language_defn): New static global.
1332 * gdb/f-lang.c (f_language_defn): Convert to...
1333 (f_language_data): ...this.
1334 (class f_language): New class.
1335 (f_language_defn): New static global.
1336 * gdb/go-lang.c (go_language_defn): Convert to...
1337 (go_language_data): ...this.
1338 (class go_language): New class.
1339 (go_language_defn): New static global.
1340 * gdb/language.c (unknown_language_defn): Remove declaration.
1341 (current_language): Initialize to nullptr, real initialization is
1342 moved to _initialize_language.
1343 (languages): Delete global.
1344 (language_defn::languages): Define.
1345 (set_language_command): Use language_defn::languages.
1346 (set_language): Likewise.
1347 (range_error): Likewise.
1348 (language_enum): Likewise.
1349 (language_def): Likewise.
1350 (add_set_language_command): Use language_def::languages for the
1351 language list, and language_def to lookup language pointers.
1352 (skip_language_trampoline): Use language_defn::languages.
1353 (unknown_language_defn): Convert to...
1354 (unknown_language_data): ...this.
1355 (class unknown_language): New class.
1356 (unknown_language_defn): New static global.
1357 (auto_language_defn): Convert to...
1358 (auto_language_data): ...this.
1359 (class auto_language): New class.
1360 (auto_language_defn): New static global.
1361 (language_gdbarch_post_init): Use language_defn::languages.
1362 (_initialize_language): Initialize current_language.
1363 * gdb/language.h (struct language_defn): Rename to...
1364 (struct language_data): ...this.
1365 (struct language_defn): New.
1366 (auto_language_defn): Delete.
1367 (unknown_language_defn): Delete.
1368 (minimal_language_defn): Delete.
1369 (ada_language_defn): Delete.
1370 (asm_language_defn): Delete.
1371 (c_language_defn): Delete.
1372 (cplus_language_defn): Delete.
1373 (d_language_defn): Delete.
1374 (f_language_defn): Delete.
1375 (go_language_defn): Delete.
1376 (m2_language_defn): Delete.
1377 (objc_language_defn): Delete.
1378 (opencl_language_defn): Delete.
1379 (pascal_language_defn): Delete.
1380 (rust_language_defn): Delete.
1381 * gdb/m2-lang.c (m2_language_defn): Convert to...
1382 (m2_language_data): ...this.
1383 (class m2_language): New class.
1384 (m2_language_defn): New static global.
1385 * gdb/objc-lang.c (objc_language_defn): Convert to...
1386 (objc_language_data): ...this.
1387 (class objc_language): New class.
1388 (objc_language_defn): New static global.
1389 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
1390 (opencl_language_data): ...this.
1391 (class opencl_language): New class.
1392 (opencl_language_defn): New static global.
1393 * gdb/p-lang.c (pascal_language_defn): Convert to...
1394 (pascal_language_data): ...this.
1395 (class pascal_language): New class.
1396 (pascal_language_defn): New static global.
1397 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
1398 language pointer, update comment format.
1399 * gdb/rust-lang.c (rust_language_defn): Convert to...
1400 (rust_language_data): ...this.
1401 (class rust_language): New class.
1402 (rust_language_defn): New static global.
1403
1313c56e
AB
14042020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
1407 member variable.
1408 <m_stmt_at_address>: New member variable.
1409 (lnp_state_machine::record_line): Don't record some lines, update
1410 tracking of is_stmt at the same address.
1411 (lnp_state_machine::lnp_state_machine): Initialise new member
1412 variables.
1413
b7ed9f3d
ST
14142020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1415
1416 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
1417 "-include gnu-nat-mig.h".
1418 * gnu-nat-mig.h: New file.
1419 * gnu-nat.c: Include "gnu-nat-mig.h".
1420 (exc_server, msg_reply_server, notify_server,
1421 process_reply_server): Remove declarations.
1422
14a8ad62
ST
14232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1424
1425 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
1426 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
1427 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
1428 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
1429 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
1430 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
1431 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
1432 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
1433 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
1434 to gnu_nat_target class.
1435 * gnu-nat.c: Likewise.
1436 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
1437 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
1438 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
1439 object.
1440 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
1441 instead of `gnu_target'.
1442
0af5e106
ST
14432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1444
1445 * i386-gnu-tdep.c: Include "gdbcore.h"
1446 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
1447 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
1448 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
1449 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
1450 i386_gnu_sigcontext_addr): New functions
1451 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
1452 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
1453 tdep.
1454
078f2fc9
ST
14552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1456
1457 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
1458 before fork_inferior call. Avoid calling it if target_is_pushed returns
1459 true.
1460
53dff92c
ST
14612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1462
1463 * gnu-nat.h (gnu_target): New variable declaration.
1464 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
1465 gnu_target.
1466 * gnu-nat.c (gnu_target): New variable.
1467 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
1468 add_thread_silent, and add_thread calls.
1469 (gnu_nat_target::create_inferior): Pass gnu_target to
1470 add_thread_silent, thread_change_ptid call.
1471 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
1472 call.
1473
5a8b8627
ST
14742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1475
1476 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
1477 (gnu_nat_target::find_memory_regions): Remove unused
1478 `old_address' variable.
1479
366f550a
ST
14802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1481
1482 * gnu-nat.c: Include "gdbarch.h".
1483
f14871bf
ST
14842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1485
1486 * reply_mig_hack.awk (Error return): Cast function through
1487 void *, to bypass compiler function call check.
1488
c6887cfb
ST
14892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1490
1491 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
1492 $(srcdir)/reply_mig_hack.awk.
1493
6930bffe
ST
14942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1495
1496 * gnu-nat.h (gnu_debug_flag): Set type to bool.
1497
112c22ed
JG
14982020-05-30 Jonny Grant <jg@jguk.org>
1499
1500 * configure.ac (ACX_BUGURL): change bug URL to https.
1501
f68f85b5
PA
15022020-05-30 Pedro Alves <palves@redhat.com>
1503
1504 * cp-support.c (replace_typedefs_template): New.
1505 (replace_typedefs_qualified_name): Handle
1506 DEMANGLE_COMPONENT_TEMPLATE.
1507
976ca316
SM
15082020-05-29 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
1511 dwarf2/index-cache.h, dwarf2/index-write.c,
1512 dwarf2/index-write.h, dwarf2/line-header.c,
1513 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
1514 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
1515 variables and fields from `dwarf2_per_objfile` to just
1516 `per_objfile` throughout.
1517
989ade05
SM
15182020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1521 <push_dwarf_reg_entry_value>: Add comment.
1522
c47bae85
KB
15232020-05-28 Kevin Buettner <kevinb@redhat.com>
1524 Keith Seitz <keiths@redhat.com>
1525
1526 * python/python.c (do_start_initialization): Call PyEval_SaveThread
1527 instead of PyEval_ReleaseLock.
1528 (class gdbpy_gil): Move to earlier in file.
1529 (finalize_python): Set gdb_python_initialized.
1530 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
1531 when not initialized.
1532
44486dcf
SM
15332020-05-28 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1536 <push_dwarf_reg_entry_value>: Remove assert. Override
1537 per_objfile with caller_per_objfile.
1538
f030440d
TV
15392020-05-28 Tom de Vries <tdevries@suse.de>
1540
1541 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
1542 PR gold/15646 workaround to symbol kind "type".
1543
f0fbb768
TT
15442020-05-27 Tom Tromey <tromey@adacore.com>
1545
1546 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
1547
af0b2a3e
TT
15482020-05-27 Tom Tromey <tromey@adacore.com>
1549
1550 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
1551 Use htab_find_with_hash.
1552 <add_abbrev>: Remove "abbrev_number" parameter.
1553 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
1554 "abbrev_number" parameter. Use htab_find_slot_with_hash.
1555 (hash_abbrev): Add comment.
1556 (abbrev_table::lookup_abbrev): Move to header file.
1557 (abbrev_table::read): Update.
1558
7d00ffec
TT
15592020-05-27 Tom Tromey <tromey@adacore.com>
1560
1561 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
1562 method.
1563 <canonical_name>: New member.
1564 <raw_name>: Rename from "name".
1565 (partial_die_info): Initialize canonical_name.
1566 (scan_partial_symbols): Check raw_name.
1567 (partial_die_parent_scope, partial_die_full_name)
1568 (add_partial_symbol, add_partial_subprogram)
1569 (add_partial_enumeration, load_partial_dies): Use "name" method.
1570 (partial_die_info::name): New method.
1571 (partial_die_info::read, guess_partial_die_structure_name)
1572 (partial_die_info::fixup): Update.
1573
697bba18
TT
15742020-05-27 Tom Tromey <tromey@adacore.com>
1575
1576 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
1577 <get_ref_die_offset>: Inline.
1578 <get_ref_die_offset_complaint>: New method.
1579 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
1580 (attribute::get_ref_die_offset_complaint): Rename from
1581 get_ref_die_offset. Just issue complaint.
1582
c17ace43
HD
15832020-05-27 Hannes Domani <ssbssa@yahoo.de>
1584
1585 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
1586
96445f0b
HD
15872020-05-27 Hannes Domani <ssbssa@yahoo.de>
1588
1589 * exec.c (exec_file_attach): Use errno value of first openp failure.
1590
ac637ec3
HD
15912020-05-27 Hannes Domani <ssbssa@yahoo.de>
1592
1593 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
1594 Don't close thread handle.
1595
17ee85fc
TT
15962020-05-27 Tom Tromey <tom@tromey.com>
1597 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * objfiles.h (struct objfile) <partial_symtabs>: Now a
1600 shared_ptr.
1601 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
1602 member.
1603 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
1604 dwarf2_per_bfd_objfile_data_key>: New globals.
1605 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
1606 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
1607 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
1608 shared.
1609 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
1610 short-circuit when sharing.
1611 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
1612 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
1613
39b16f87
SM
16142020-05-27 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
1617 to...
1618 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
1619 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
1620
fcf23d5b
SM
16212020-05-27 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
1624 build_name_components, find_name_components_bounds>:
1625 Add per_objfile parameter.
1626 (struct mapped_index) <symbol_name_at>: Likewise.
1627 (struct mapped_debug_names): Remove constructor.
1628 <dwarf2_per_objfile>: Remove field.
1629 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
1630 (mapped_index_base::find_name_components_bounds,
1631 mapped_index_base::build_name_components,
1632 dw2_expand_symtabs_matching_symbol): Likewise.
1633 (class mock_mapped_index) <symbol_name_at>: Likewise.
1634 (check_match): Likewise.
1635 (check_find_bounds_finds): Likewise.
1636 (test_mapped_index_find_name_component_bounds): Update.
1637 (CHECK_MATCH): Update.
1638 (dw2_expand_symtabs_matching): Update.
1639 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
1640 per_objfile parameter.
1641 <find_vec_in_debug_names>: Likewise.
1642 <m_per_objfile>: New field.
1643 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
1644 parameter.
1645 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1646 (dw2_debug_names_iterator::next): Update.
1647 (dw2_debug_names_lookup_symbol): Update.
1648 (dw2_debug_names_expand_symtabs_for_function): Update.
1649 (dw2_debug_names_map_matching_symbols): Update.
1650 (dw2_debug_names_expand_symtabs_matching): Update.
1651 (dwarf2_read_debug_names): Update.
1652
7188ed02
SM
16532020-05-27 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
1656 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
1657 move to dwarf2_per_objfile.
1658 <read_in_chain>: Remove.
1659 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
1660 remove_all_cus, age_comp_units>: New methods.
1661 <m_dwarf2_cus>: New member.
1662 (struct dwarf2_per_cu_data) <cu>: Remove.
1663 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
1664 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
1665 moved to methods of dwarf2_per_objfile.
1666 (dwarf2_clear_marks): Remove.
1667 (dwarf2_queue_item::~dwarf2_queue_item): Update.
1668 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
1669 (dwarf2_per_bfd::free_cached_comp_units): Remove.
1670 (dwarf2_per_objfile::remove_all_cus): New.
1671 (class free_cached_comp_units) <~free_cached_comp_units>:
1672 Update.
1673 (load_cu): Update.
1674 (dw2_do_instantiate_symtab): Adjust.
1675 (fill_in_sig_entry_from_dwo_entry): Adjust.
1676 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1677 (cutu_reader::cutu_reader): Likewise.
1678 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
1679 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
1680 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
1681 and dwarf2_per_objfile::age_comp_units.
1682 (load_partial_comp_unit): Update.
1683 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
1684 (process_queue): Likewise.
1685 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
1686 backlink.
1687 (dwarf2_read_addr_index): Likewise.
1688 (follow_die_offset): Likewise.
1689 (dwarf2_fetch_die_loc_sect_off): Likewise.
1690 (dwarf2_fetch_constant_bytes): Likewise.
1691 (dwarf2_fetch_die_type_sect_off): Likewise.
1692 (follow_die_sig_1): Likewise.
1693 (load_full_type_unit): Likewise.
1694 (read_signatured_type): Likewise.
1695 (dwarf2_cu::dwarf2_cu): Don't set cu field.
1696 (dwarf2_cu::~dwarf2_cu): Remove.
1697 (dwarf2_per_objfile::get_cu): New.
1698 (dwarf2_per_objfile::set_cu): New.
1699 (age_cached_comp_units): Rename to...
1700 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
1701 to std::unordered_map.
1702 (free_one_cached_comp_unit): Rename to...
1703 (dwarf2_per_objfile::remove_cu): ... this. Adjust
1704 to std::unordered_map.
1705 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
1706 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
1707 a dwarf2_per_objfile in data.
1708 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
1709 (dwarf2_clear_marks): Remove.
1710
2e671100
SM
17112020-05-27 Simon Marchi <simon.marchi@efficios.com>
1712
1713 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
1714 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
1715 (init_tu_and_read_dwo_dies): Likewise.
1716 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
1717 (cutu_reader::cutu_reader): Likewise.
1718 (load_partial_comp_unit): Likewise.
1719 (process_psymtab_comp_unit): Update.
1720 (build_type_psymtabs_1): Update.
1721 (process_skeletonless_type_unit): Update.
1722 (load_full_comp_unit): Update.
1723 (find_partial_die): Update.
1724 (dwarf2_read_addr_index): Update.
1725 (read_signatured_type): Update.
1726
2e6a9f79
SM
17272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
1730 m_header_read_in>: New fields.
1731 <get_header>: New method.
1732 * dwarf2/read.c (per_cu_header_read_in): Remove.
1733 (dwarf2_per_cu_data::get_header): New.
1734 (dwarf2_per_cu_data::addr_size): Update.
1735 (dwarf2_per_cu_data::offset_size): Update.
1736 (dwarf2_per_cu_data::ref_addr_size): Update.
1737
1b555f17
SM
17382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1739
1740 * dwarf2/read.c (load_cu): Return dwarf2_cu.
1741 (dw2_do_instantiate_symtab): Update.
1742 (queue_and_load_all_dwo_tus): Change parameter from
1743 dwarf2_per_cu_data to dwarf2_cu.
1744 (dwarf2_fetch_die_loc_sect_off): Update.
1745 (dwarf2_fetch_constant_bytes): Update.
1746 (dwarf2_fetch_die_type_sect_off): Update.
1747
8fc0b21d
SM
17482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * dwarf2/read.c (process_full_comp_unit,
1751 process_full_type_unit): Remove per_cu, per_objfile paramters.
1752 Add dwarf2_cu parameter.
1753 (process_queue): Update.
1754
168c9250
SM
17552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1756
1757 * dwarf2/read.c (create_cu_from_index_list): Replace
1758 dwarf2_per_objfile parameter with dwarf2_per_bfd.
1759 (create_cus_from_index_list): Likewise.
1760 (create_cus_from_index): Likewise.
1761 (create_signatured_type_table_from_index): Likewise.
1762 (create_cus_from_debug_names_list): Likewise.
1763 (create_cus_from_debug_names): Likewise.
1764 (dwarf2_read_gdb_index): Update.
1765 (dwarf2_read_debug_names): Update.
1766
e286671b
TT
17672020-05-27 Tom Tromey <tom@tromey.com>
1768 Simon Marchi <simon.marchi@efficios.com>
1769
1770 * dwarf2/read.h (struct dwarf2_per_objfile)
1771 <get_type_for_signatured_type, set_type_for_signatured_type>:
1772 New methods.
1773 <m_type_map>: New member.
1774 (struct signatured_type) <type>: Remove.
1775 * dwarf2/read.c
1776 (dwarf2_per_objfile::get_type_for_signatured_type,
1777 dwarf2_per_objfile::set_type_for_signatured_type): New.
1778 (get_signatured_type): Use new methods.
1779
8adb8487
TT
17802020-05-27 Tom Tromey <tom@tromey.com>
1781 Simon Marchi <simon.marchi@efficios.com>
1782
1783 * dwarf2/read.h (struct type_unit_group_unshareable): New.
1784 (struct dwarf2_per_objfile) <type_units>: New member.
1785 <get_type_unit_group_unshareable>: New method.
1786 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
1787 num_symtabs, symtabs>: Remove; move to
1788 type_unit_group_unshareable.
1789 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
1790 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
1791 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
1792
127bbf4b
SM
17932020-05-27 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * dwarf2/read.h (struct dwarf2_per_cu_data):
1796 <dwarf2_per_objfile>: Remove.
1797 * dwarf2/read.c (create_cu_from_index_list): Don't assign
1798 dwarf2_per_objfile.
1799 (create_signatured_type_table_from_index): Likewise.
1800 (create_signatured_type_table_from_debug_names): Likewise.
1801 (create_debug_type_hash_table): Likewise.
1802 (fill_in_sig_entry_from_dwo_entry): Likewise.
1803 (create_type_unit_group): Likewise.
1804 (read_comp_units_from_section): Likewise.
1805 (create_cus_hash_table): Likewise.
1806
f6e649dd
SM
18072020-05-27 Simon Marchi <simon.marchi@efficios.com>
1808
1809 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
1810 dwarf2_per_cu_data::dwarf2_per_objfile.
1811 (compute_compunit_symtab_includes): Likewise.
1812 (dwarf2_cu::start_symtab): Likewise.
1813
aa66c379
SM
18142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1815
1816 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
1817 parameter.
1818 * dwarf2/read.c (get_die_type_at_offset): Likewise.
1819 (read_namespace_alias): Update.
1820 (lookup_die_type): Update.
1821 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
1822 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
1823 Update.
1824 (disassemble_dwarf_expression): Update.
1825
120ce1b5
SM
18262020-05-27 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * dwarf2/read.h (struct dwarf2_queue_item): Add
1829 dwarf2_per_objfile parameter, assign new parameter.
1830 <per_objfile>: New field.
1831 * dwarf2/read.c (free_one_cached_comp_unit): Add
1832 dwarf2_per_objfile parameter.
1833 (queue_comp_unit): Likewise.
1834 (dw2_do_instantiate_symtab): Update.
1835 (process_psymtab_comp_unit): Update.
1836 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
1837 (process_imported_unit_die): Update.
1838 (queue_and_load_dwo_tu): Update.
1839 (follow_die_offset): Update.
1840 (follow_die_sig_1): Update.
1841
9f47c707
SM
18422020-05-27 Simon Marchi <simon.marchi@efficios.com>
1843
1844 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
1845 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
1846 (read_call_site_scope): Assign per_objfile.
1847 (dwarf2_per_cu_data::objfile): Remove.
1848 * gdbtypes.h (struct call_site) <per_objfile>: New member.
1849 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
1850 dwarf2_per_objfile parameter.
1851 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
1852 dwarf2_per_objfile parameter.
1853 (dwarf_expr_reg_to_entry_parameter): Add output
1854 dwarf2_per_objfile parameter.
1855 (locexpr_get_frame_base): Update.
1856 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
1857 <push_dwarf_reg_entry_value>: Update.
1858 <call_site_to_target_addr>: Update.
1859 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
1860 parameter.
1861 (value_of_dwarf_reg_entry): Update.
1862 (rw_pieced_value): Update.
1863 (indirect_synthetic_pointer): Update.
1864 (dwarf2_evaluate_property): Update.
1865 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
1866 parameter.
1867 (locexpr_read_variable): Update.
1868 (locexpr_get_symbol_read_needs): Update.
1869 (loclist_read_variable): Update.
1870
14095eb3
SM
18712020-05-27 Simon Marchi <simon.marchi@efficios.com>
1872
1873 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1874 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1875 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1876 parameter.
1877 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1878 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1879 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1880 parameter.
1881 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
1882 sect_variable_value): Add dwarf2_per_objfile parameter.
1883 (class dwarf_evaluate_loc_desc) <dwarf_call,
1884 dwarf_variable_value>: Update.
1885 (fetch_const_value_from_synthetic_pointer): Add
1886 dwarf2_per_objfile parameter.
1887 (fetch_const_value_from_synthetic_pointer): Update.
1888 (coerced_pieced_ref): Update.
1889 (class symbol_needs_eval_context) <dwarf_call,
1890 dwarf_variable_value>: Update.
1891 (dwarf2_compile_expr_to_ax): Update.
1892
3c3cd3d4
SM
18932020-05-27 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
1896 parameter.
1897 (dwarf2_evaluate_loc_desc_full): Update.
1898
82ca3f51
SM
18992020-05-27 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
1902 parameter.
1903 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
1904 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
1905 dwarf2_per_objfile parameter.
1906 (decode_debug_loc_dwo_addresses): Likewise.
1907 (dwarf2_find_location_expression): Update.
1908 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
1909 (locexpr_describe_location_piece): Add dwarf2_per_objfile
1910 parameter.
1911 (disassemble_dwarf_expression): Add dwarf2_per_objfile
1912 parameter.
1913 (locexpr_describe_location_1): Likewise.
1914 (locexpr_describe_location): Update.
1915
4b167ea1
SM
19162020-05-27 Simon Marchi <simon.marchi@efficios.com>
1917
1918 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
1919 Remove.
1920 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
1921 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
1922 (dwarf2_compile_property_to_c): Update.
1923 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
1924 use text offset from objfile.
1925 (locexpr_tracepoint_var_ref): Update.
1926 (locexpr_generate_c_location): Update.
1927 (loclist_describe_location): Update.
1928 (loclist_tracepoint_var_ref): Update.
1929 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
1930 dwarf2_per_objfile parameter.
1931 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
1932 use text offset from objfile.
1933 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
1934
89b07335
SM
19352020-05-27 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * dwarf2/expr.h (struct dwarf_expr_context)
1938 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
1939 <offset>: Remove.
1940 <per_objfile>: New member.
1941 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
1942 dwarf2_per_objfile parameter. Don't set offset, set
1943 per_objfile.
1944 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
1945 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
1946 a dwarf2_per_objfile object instead of an offset.
1947 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
1948 constructor.
1949 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
1950 to dwarf2_expr_executor constructor. Don't set offset.
1951 (dwarf2_fetch_cfa_info): Update.
1952 (struct dwarf2_frame_cache) <text_offset>: Remove.
1953 <per_objfile>: New field.
1954 (dwarf2_frame_cache): Update.
1955 (dwarf2_frame_prev_register): Update.
1956 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1957 <dwarf_evaluate_loc_desc>: Add constructor.
1958 (dwarf2_evaluate_loc_desc_full): Update.
1959 (dwarf2_locexpr_baton_eval): Update.
1960 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
1961 Add constructor.
1962 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1963
293e7e51
SM
19642020-05-27 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
1967 addr_sized_int_type>: Move to dwarf2_cu.
1968 <int_type>: Move to dwarf2_per_objfile.
1969 (struct dwarf2_per_objfile) <int_type>: Move here.
1970 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
1971 addr_sized_int_type>: Move here.
1972 (read_func_scope): Update.
1973 (read_array_type): Update.
1974 (read_tag_string_type): Update.
1975 (attr_to_dynamic_prop): Update.
1976 (dwarf2_per_cu_data::int_type): Rename to...
1977 (dwarf2_per_objfile::int_type): ... this.
1978 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
1979 (dwarf2_cu::addr_sized_int_type): ... this.
1980 (read_subrange_type): Update.
1981 (dwarf2_per_cu_data::addr_type): Rename to...
1982 (dwarf2_cu::addr_type): ... this.
1983 (set_die_type): Update.
1984
64874a40
SM
19852020-05-27 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
1988 data through per_cu->cu.
1989
4ab09049
SM
19902020-05-27 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * dwarf2/read.c (lookup_dwo_comp_unit): Change
1993 dwarf2_per_cu_data parameter fo dwarf2_cu.
1994 (lookup_dwo_type_unit): Likewise.
1995 (read_cutu_die_from_dwo): Likewise.
1996 (lookup_dwo_unit): Likewise.
1997 (open_and_init_dwo_file): Likewise.
1998 (lookup_dwo_cutu): Likewise.
1999 (lookup_dwo_comp_unit): Likewise.
2000 (lookup_dwo_type_unit): Likewise.
2001 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2002 (cutu_reader::cutu_reader): Update.
2003
47b14e86
SM
20042020-05-27 Simon Marchi <simon.marchi@efficios.com>
2005
2006 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2007 parameter.
2008 (process_full_type_unit): Likewise.
2009 (process_queue): Update.
2010
43182c09
SM
20112020-05-27 Simon Marchi <simon.marchi@efficios.com>
2012
2013 * dwarf2/read.c (recursively_compute_inclusions): Add
2014 dwarf2_per_objfile parameter.
2015 (compute_compunit_symtab_includes): Likewise.
2016 (process_cu_includes): Update.
2017
7aa104c4
SM
20182020-05-27 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2021 parameter.
2022 (create_type_unit_group): Update.
2023 (process_psymtab_comp_unit_reader): Update.
2024 (build_type_psymtabs_reader): Update.
2025
e3beb21d
SM
20262020-05-27 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2029 object through m_this_cu->cu.
2030
d460f660
SM
20312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2034 the info parameter.
2035 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2036
ab432490
SM
20372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2040 per_objfile parameter.
2041 (load_full_type_unit): Add per_objfile parameter.
2042 (read_signatured_type): Likewise.
2043 (load_full_comp_unit): Likewise.
2044 (load_cu): Likewise.
2045 (dw2_do_instantiate_symtab): Likewise.
2046 (dw2_get_file_names): Likewise.
2047 (dw2_map_symtabs_matching_filename): Update.
2048 (dw_expand_symtabs_matching_file_matcher): Update.
2049 (dw2_map_symbol_filenames): Update.
2050 (process_psymtab_comp_unit): Add per_objfile parameter.
2051 (build_type_psymtabs_1): Update.
2052 (process_skeletonless_type_unit): Update.
2053 (dwarf2_build_psymtabs_hard): Update.
2054 (load_partial_comp_unit): Add per_objfile parameter.
2055 (scan_partial_symbols): Update.
2056 (load_full_comp_unit): Add per_objfile parameter.
2057 (process_imported_unit_die): Update.
2058 (create_cus_hash_table): Update.
2059 (find_partial_die): Update.
2060 (dwarf2_read_addr_index): Update.
2061 (follow_die_offset): Update.
2062 (dwarf2_fetch_die_loc_sect_off): Update.
2063 (dwarf2_fetch_constant_bytes): Update.
2064 (dwarf2_fetch_die_type_sect_off): Update.
2065 (follow_die_sig_1): Update.
2066 (load_full_type_unit): Add per_objfile parameter.
2067 (read_signatured_type): Likewise.
2068
313bad1b
SM
20692020-05-27 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2072 of objfile_name.
2073
c3699833
SM
20742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2077 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2078 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2079 field.
2080 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2081 (create_cus_from_index): Update.
2082 (dwarf2_read_gdb_index): Update.
2083 (create_cus_from_debug_names): Update.
2084 (dwarf2_read_debug_names): Update.
2085 (get_abbrev_section_for_cu): Update.
2086 (create_all_comp_units): Update.
2087 (read_attribute_value): Update.
2088 (get_debug_line_section): Update.
2089 * dwarf2/index-cache.c (index_cache::store): Update.
2090 * dwarf2/index-write.c (save_gdb_index_command): Update.
2091 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2092
1859c670
SM
20932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2096 member.
2097 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2098 dwarf2_per_cu_data::per_bfd.
2099 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2100 (create_type_unit_group): Likewise.
2101 (queue_comp_unit): Remove reference to
2102 per_cu->dwarf2_per_objfile.
2103 (maybe_queue_comp_unit): Likewise.
2104 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2105 (create_cus_hash_table): Assign new field.
2106
5e22e966
SM
21072020-05-27 Simon Marchi <simon.marchi@efficios.com>
2108
2109 * dwarf2/read.c: Replace
2110 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2111 dwarf2_cu->per_objfile throughout.
2112
97a1449a
SM
21132020-05-27 Simon Marchi <simon.marchi@efficios.com>
2114
2115 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2116 parameter, don't use per_cu->dwarf2_per_objfile.
2117 (dw2_instantiate_symtab): Likewise.
2118 (dw2_find_last_source_symtab): Update.
2119 (dw2_map_expand_apply): Update.
2120 (dw2_lookup_symbol): Update.
2121 (dw2_expand_symtabs_for_function): Update.
2122 (dw2_expand_all_symtabs): Update.
2123 (dw2_expand_symtabs_with_fullname): Update.
2124 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2125 don't use per_cu->dwarf2_per_objfile.
2126 (dw2_expand_marked_cus): Update.
2127 (dw2_find_pc_sect_compunit_symtab): Update.
2128 (dw2_debug_names_lookup_symbol): Update.
2129 (dw2_debug_names_expand_symtabs_for_function): Update.
2130 (dw2_debug_names_map_matching_symbols): Update.
2131 (dwarf2_psymtab::expand_psymtab): Update.
2132
9e021579
SM
21332020-05-27 Simon Marchi <simon.marchi@efficios.com>
2134
2135 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2136 <per_objfile>: New member.
2137 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2138 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2139 call to dwarf2_cu.
2140 (cutu_reader::cutu_reader): Update.
2141 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2142
ae090bdb
SM
21432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2144
2145 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2146 struct dwarf2_per_objfile.
2147 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2148 dwarf2_per_bfd.
2149 * dwarf2/read.c (set_die_type): Update.
2150 (get_die_type_at_offset): Update.
2151
af758d11
SM
21522020-05-27 Tom Tromey <tom@tromey.com>
2153 Simon Marchi <simon.marchi@efficios.com>
2154
2155 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2156 method.
2157 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2158 get_symtab, set_symtab>: New methods.
2159 <m_symtabs>: New field.
2160 (struct dwarf2_psymtab): Derive from partial_symtab.
2161 <readin_p, get_compunit_symtab>: Declare methods.
2162 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2163 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2164 New methods.
2165 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2166 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2167 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2168 (dw2_symtab_iter_next, dw2_print_stats)
2169 (dw2_expand_symtabs_with_fullname)
2170 (dw2_expand_symtabs_matching_one)
2171 (dw_expand_symtabs_matching_file_matcher)
2172 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2173 (dw2_debug_names_iterator::next)
2174 (dw2_debug_names_map_matching_symbols)
2175 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2176 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2177 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2178 New methods.
2179 (get_compunit_symtab, process_full_comp_unit)
2180 (process_full_type_unit): Update.
2181 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2182
5989a64e
SM
21832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2186 then introduce a new dwarf2_per_objfile type.
2187 <read_line_string>: Move to the new dwarf2_per_objfile type.
2188 <objfile>: Likewise.
2189 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2190 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2191 dwarf2_per_objfile->per_bfd.
2192 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2193 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2194 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2195 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2196 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2197 (dwarf2_per_objfile::locate_sections): Rename to...
2198 (dwarf2_per_bfd::locate_sections): ... this.
2199 (dwarf2_per_objfile::get_cutu): Rename to...
2200 (dwarf2_per_bfd::get_cutu): ... this.
2201 (dwarf2_per_objfile::get_cu): Rename to...
2202 (dwarf2_per_bfd::get_cu): ... this.
2203 (dwarf2_per_objfile::get_tu): Rename to...
2204 (dwarf2_per_bfd::get_tu): ... this.
2205 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2206 (dwarf2_per_bfd::allocate_per_cu): ... this.
2207 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2208 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2209 (get_gdb_index_contents_ftype): Change parameter from
2210 dwarf2_per_objfile to dwarf2_per_bfd.
2211 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2212 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2213
a50264ba
TT
22142020-05-27 Tom Tromey <tom@tromey.com>
2215 Simon Marchi <simon.marchi@efficios.com>
2216
2217 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2218 (allocate_piece_closure): Set "per_objfile" member.
2219 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2220 (locexpr_describe_location, loclist_describe_location): Use new
2221 member.
2222 * dwarf2/read.c (read_call_site_scope)
2223 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2224 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2225 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2226 handle_data_member_location): Set per_objfile member.
2227 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2228 member.
2229 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2230
d3473f0c
TT
22312020-05-27 Tom Tromey <tom@tromey.com>
2232
2233 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2234 allocate_signatured_type>: Declare new methods.
2235 <m_num_psymtabs>: New member.
2236 (struct dwarf2_per_cu_data) <index>: New member.
2237 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2238 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2239 (create_cu_from_index_list): Use allocate_per_cu.
2240 (create_signatured_type_table_from_index)
2241 (create_signatured_type_table_from_debug_names)
2242 (create_debug_type_hash_table, add_type_unit)
2243 (read_comp_units_from_section): Use allocate_signatured_type.
2244
5717c425
TT
22452020-05-27 Tom Tromey <tom@tromey.com>
2246
2247 * psymtab.c (partial_map_expand_apply)
2248 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2249 (psym_lookup_global_symbol_language)
2250 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2251 (psym_print_stats, psym_expand_symtabs_for_function)
2252 (psym_map_symbol_filenames, psym_map_matching_symbols)
2253 (psym_expand_symtabs_matching)
2254 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2255 (maintenance_check_psymtabs): Update.
2256 * psympriv.h (struct partial_symtab) <readin_p,
2257 get_compunit_symtab>: Add objfile parameter.
2258 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2259 Likewise.
2260 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2261 get_compunit_symtab>: Likewise.
2262 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2263
45940949
TT
22642020-05-27 Tom Tromey <tom@tromey.com>
2265
2266 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2267 member.
2268 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2269 (create_cu_from_index_list)
2270 (create_signatured_type_table_from_index)
2271 (create_signatured_type_table_from_debug_names)
2272 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2273 (dwarf2_create_include_psymtab)
2274 (create_debug_type_hash_table, add_type_unit)
2275 (create_type_unit_group, read_comp_units_from_section)
2276 (dwarf2_compute_name, create_cus_hash_table)
2277 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2278 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2279 obstack.
2280 (dw2_get_real_path): Likewise. Change argument to
2281 dwarf2_per_objfile.
2282
f8c6d152
LM
22832020-05-27 Luis Machado <luis.machado@linaro.org>
2284
2285 PR tdep/26000
2286 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2287 for ldrd (immediate).
2288
e98d2e6d
PW
22892020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2290
2291 * command.h: Add comment giving the name of class_tui.
2292 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2293 create the fake command for the help for class_tui.
2294
53a47a3e
TT
22952020-05-26 Tom Tromey <tromey@adacore.com>
2296
2297 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2298 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2299 (val_atr): New function.
2300 (value_val_atr): Use it.
2301 * ada-valprint.c (print_optional_low_bound): Change low bound
2302 handling for enums.
2303 (val_print_packed_array_elements): Don't call discrete_position.
2304 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2305 discrete_position for enum types.
2306 * language.c (default_print_array_index): Change type.
2307 * language.h (struct language_defn) <la_print_array_index>: Add
2308 index_type parameter, change type of index_value.
2309 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2310 (default_print_array_index): Update.
2311 * valprint.c (maybe_print_array_index): Don't call
2312 value_from_longest. Update.
2313 (value_print_array_elements): Don't call discrete_position.
2314
0bc2354b
TT
23152020-05-26 Tom Tromey <tromey@adacore.com>
2316
2317 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2318 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2319
1218a4bf
CDA
23202020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2321
2322 PR gdb/13519
2323 * avr-tdep.c (avr_integer_to_address): Return data or code
2324 address accordingly to the second 'type' argument of the
2325 function.
2326
92651b1d
MW
23272020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2328
2329 * infcmd.c, inferior.h: (construct_inferior_arguments):
2330 Moved function from here to gdbsupport/common-inferior.{h,cc}
2331
0a4f5f8c
TT
23322020-05-23 Tom Tromey <tom@tromey.com>
2333
2334 Revert commit eca1f90c:
2335 * NEWS: Remove entry for completion styling.
2336 * completer.c (_rl_completion_prefix_display_length): Move
2337 declaration later.
2338 (gdb_fnprint): Revert.
2339 (gdb_display_match_list_1): Likewise.
2340 * cli/cli-style.c (completion_prefix_style)
2341 (completion_difference_style, completion_suffix_style): Remove.
2342 (_initialize_cli_style): Revert.
2343 * cli/cli-style.h (completion_prefix_style)
2344 (completion_difference_style, completion_suffix_style): Don't
2345 declare.
2346
e08bd6c5
PA
23472020-05-24 Pedro Alves <palves@redhat.com>
2348
2349 * symtab.c (completion_list_add_name): Return boolean indication
2350 of whether the symbol matched.
2351 (completion_list_add_symbol): Don't try to remove C++ aliases if
2352 the symbol didn't match in the first place.
2353 * symtab.h (completion_list_add_name): Return bool.
2354
ceacbf6e
SM
23552020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
2358 type::field.
2359
26f16254
JB
23602020-05-23 Joel Brobecker <brobecker@adacore.com>
2361
2362 GDB 9.2 released.
2363
eca1f90c
TT
23642020-05-23 Tom Tromey <tom@tromey.com>
2365
2366 * NEWS: Add entry for completion styling.
2367 * completer.c (_rl_completion_prefix_display_length): Move
2368 declaration earlier.
2369 (gdb_fnprint): Use completion_style.
2370 (gdb_display_match_list_1): Likewise.
2371 * cli/cli-style.c (completion_prefix_style)
2372 (completion_difference_style, completion_suffix_style): New
2373 globals.
2374 (_initialize_cli_style): Register new globals.
2375 * cli/cli-style.h (completion_prefix_style)
2376 (completion_difference_style, completion_suffix_style): Declare.
2377
51e2cfa2
PA
23782020-05-23 Pedro Alves <palves@redhat.com>
2379
2380 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
2381 (parse_escape): Use ISDIGIT instead of isdigit.
2382 (puts_debug): Use gdb_isprint instead of isprint.
2383 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
2384 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
2385 ISSPACE instead of isspace.
2386 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
2387 instead of isspace.
2388 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
2389 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
2390 instead of isxdigit and ISDIGIT instead of isdigit.
2391
80fc5e77
SM
23922020-05-22 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * gdbtypes.h (struct type) <field>: New method.
2395 (TYPE_FIELDS): Remove, replace all uses with either type::fields
2396 or type::field.
2397
3cabb6b0
SM
23982020-05-22 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
2401 (TYPE_FIELDS): Use type::fields. Change all call sites that
2402 modify the propery to use type::set_fields instead.
2403
1f704f76
SM
24042020-05-22 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
2407 type::num_fields instead.
2408
5e33d5f4
SM
24092020-05-22 Simon Marchi <simon.marchi@efficios.com>
2410
2411 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
2412 methods.
2413 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
2414 that modify the number of fields to use type::set_num_fields
2415 instead.
2416
9392ebb3
TT
24172020-05-22 Tom Tromey <tromey@adacore.com>
2418
2419 * compile/compile-object-load.h (munmap_list_free): Don't
2420 declare.
2421
7c13f4e8
AB
24222020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * annotate.c (annotate_source_line): Update return type, add call
2425 to update current symtab and line.
2426 * annotate.h (annotate_source_line): Update return type, and
2427 extend header comment.
2428 * source.c (info_line_command): Check annotation_level before
2429 calling annotate_source_line.
2430 * stack.c (print_frame_info): If calling annotate_source_line
2431 returns true, then don't print any other source line information.
2432
aa370940
SM
24332020-05-21 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
2436
84d53fa9
SM
24372020-05-21 Simon Marchi <simon.marchi@efficios.com>
2438
2439 * coffread.c (patch_type): Remove NULL check before xfree.
2440 * corefile.c (set_gnutarget): Likewise.
2441 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
2442 * exec.c (build_section_table): Likewise.
2443 * remote.c (remote_target::pass_signals): Likewise.
2444 * utils.c (n_spaces): Likewise.
2445 * cli/cli-script.c (document_command): Likewise.
2446 * i386-windows-tdep.c (core_process_module_section): Likewise.
2447 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
2448
9d428aae
SM
24492020-05-20 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * symfile.c (reread_symbols): Clear objfile's section_offsets
2452 vector and section indices, re-compute them by calling
2453 sym_offsets.
2454
250106a7
TT
24552020-05-20 Tom Tromey <tromey@adacore.com>
2456
2457 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 2458 (desc_one_bound, desc_index_type): Compute field name.
250106a7 2459
9a0bacfb
TV
24602020-05-20 Tom de Vries <tdevries@suse.de>
2461
2462 PR symtab/25833
2463 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
2464
7b958a48
AM
24652020-05-20 Alan Modra <amodra@gmail.com>
2466
2467 PR 25993
2468 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
2469 bfd_set_filename.
2470 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
2471 passed to bfd_set_filename.
2472 * symfile-mem.c (add_vsyscall_page): Likewise for string
2473 passed to symbol_file_add_from_memory.
2474 (symbol_file_add_from_memory): Make name param a const char* and
2475 don't strdup.
2476
c7e97679
AM
24772020-05-20 Alan Modra <amodra@gmail.com>
2478
2479 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
2480 rather than accessing bfd->filename directly.
2481 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
2482 and use bfd_section_name.
2483 * dwarf2/frame.c (decode_frame_entry): Likewise.
2484 * exec.c (exec_set_section_address): Likewise.
2485 * solib-aix.c (solib_aix_bfd_open): Likewise.
2486 * stap-probe.c (get_stap_base_address): Likewise.
2487 * symfile.c (reread_symbols): Likewise.
2488
563c591b
TT
24892020-05-19 Tom Tromey <tromey@adacore.com>
2490
2491 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
2492
f408d82c
SM
24932020-05-19 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
2496
98c59b52
PA
24972020-05-19 Pedro Alves <palves@redhat.com>
2498
2499 * NEWS (set exec-file-mismatch): Adjust entry.
2500 * exec.c: Include "build-id.h".
2501 (validate_exec_file): Try to match build IDs instead of filenames.
2502 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
2503 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
2504 and pass down 'warn_if_slow'.
2505 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
2506 gdb_bfd_open_closure to pass it down.
2507 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
2508
4111f652
PA
25092020-05-19 Pedro Alves <palves@redhat.com>
2510
2511 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
2512 * target.c (target_fileio_open_1): Rename to target_fileio_open
2513 and make extern. Use bool.
2514 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
2515 (target_fileio_read_alloc_1): Adjust.
2516 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
2517 (target_fileio_open_warn_if_slow): Delete declaration.
2518
ad80db5b
PA
25192020-05-19 Pedro Alves <palves@redhat.com>
2520
2521 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
2522 Adjust all callers.
2523
1d6ce4d3
YS
25242020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
2525
2526 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
2527 whether disp is negative.
2528
9005fbbb
SM
25292020-05-19 Simon Marchi <simon.marchi@efficios.com>
2530
2531 * symfile.h (struct symfile_segment_data)
2532 <~symfile_segment_data>: Remove.
2533 <segment_info>: Change to std::vector.
2534 * symfile.c (default_symfile_segments): Update.
2535 * elfread.c (elf_symfile_segments): Update.
2536
68b888ff
SM
25372020-05-19 Simon Marchi <simon.marchi@efficios.com>
2538
2539 * symfile.h (struct symfile_segment_data) <struct segment>: New.
2540 <segments>: New.
2541 <segment_bases, segment_sizes>: Remove.
2542 * symfile.c (default_symfile_segments): Update.
2543 * elfread.c (elf_symfile_segments): Update.
2544 * remote.c (remote_target::get_offsets): Update.
2545 * solib-target.c (solib_target_relocate_section_addresses):
2546 Update.
2547
62982abd
SM
25482020-05-19 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * symfile.h (struct symfile_segment_data): Initialize fields.
2551 <~symfile_segment_data>: Add.
2552 (symfile_segment_data_up): New.
2553 (struct sym_fns) <sym_segments>: Return a
2554 symfile_segment_data_up.
2555 (default_symfile_segments): Return a symfile_segment_data_up.
2556 (free_symfile_segment_data): Remove.
2557 (get_symfile_segment_data): Return a symfile_segment_data_up.
2558 * symfile.c (default_symfile_segments): Likewise.
2559 (get_symfile_segment_data): Likewise.
2560 (free_symfile_segment_data): Remove.
2561 (symfile_find_segment_sections): Update.
2562 * elfread.c (elf_symfile_segments): Return a
2563 symfile_segment_data_up.
2564 * remote.c (remote_target::get_offsets): Update.
2565 * solib-target.c (solib_target_relocate_section_addresses):
2566 Update.
2567 * symfile-debug.c (debug_sym_segments): Return a
2568 symfile_segment_data_up.
2569
7f204339
RO
25702020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2571
e52a0f1b
RO
2572 PR build/25981
2573 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
2574 Hardcode register numbers.
2575
7f204339
RO
2576 PR build/25981
2577 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
2578 procfs_find_LDT_entry): Remove.
2579 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
2580 procfs_find_LDT_entry): Remove.
2581 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
2582 Remove.
2583
7f32a4d5
PA
25842020-05-17 Pedro Alves <palves@redhat.com>
2585 Andrew Burgess <andrew.burgess@embecosm.com>
2586 Keno Fischer <keno@juliacomputing.com>
2587
2588 PR gdb/25741
2589 * breakpoint.c (build_target_condition_list): Update comments.
2590 (build_target_command_list): Update comments and skip matching
2591 locations.
2592 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
2593 a separate function. Simplify "set breakpoint auto-hw off"
2594 handling.
2595 (insert_breakpoints): Update comment.
2596 (tracepoint_locations_match): New parameter. For breakpoints,
2597 compare location types too, if the caller wants to.
2598 (handle_automatic_hardware_breakpoints): New functions.
2599 (bp_location_is_less_than): Also sort by location type and
2600 hardware breakpoint length.
2601 (update_global_location_list): Handle "set breakpoint auto-hw on"
2602 here.
2603 (update_breakpoint_locations): Ask breakpoint_locations_match to
2604 ignore location types.
2605
7d93a1e0
SM
26062020-05-16 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
2609 type::name instead.
2610
d0e39ea2
SM
26112020-05-16 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * gdbtypes.h (struct type) <name, set_name>: New methods.
2614 (TYPE_CODE): Use type::name. Change all call sites used to set
2615 the name to use type::set_name instead.
2616
2dab0c7b
TT
26172020-05-16 Tom Tromey <tom@tromey.com>
2618
2619 * top.c (quit_force): Update.
2620 * infrun.c (handle_no_resumed): Update.
2621 * top.h (all_uis): New function.
2622 (ALL_UIS): Remove.
2623
59f7bd8d
SM
26242020-05-16 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
2627
9bf058f0
PA
26282020-05-16 Pedro Alves <palves@redhat.com>
2629
2630 * ia64-linux-nat.c
2631 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
2632 Declare method.
2633 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
2634
8f86ae1a
SM
26352020-05-15 Simon Marchi <simon.marchi@efficios.com>
2636
2637 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
2638 (sparc64_adi_info): Likewise.
2639
d6bc0792
TT
26402020-05-15 Tom Tromey <tom@tromey.com>
2641
2642 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
2643 block_objfile.
2644 (lookup_objfile_from_block): Remove.
2645 (lookup_symbol_in_block, lookup_symbol_in_static_block)
2646 (lookup_global_symbol): Use block_objfile.
2647 * symtab.h (lookup_objfile_from_block): Don't declare.
2648 * printcmd.c (clear_dangling_display_expressions): Use
2649 block_objfile.
2650 * parse.c (operator_check_standard): Use block_objfile.
2651
8c14c3a3
TT
26522020-05-15 Tom Tromey <tom@tromey.com>
2653
2654 * language.c (language_alloc_type_symbol): Set
2655 SYMBOL_SECTION.
2656 * symtab.c (initialize_objfile_symbol): Remove.
2657 (allocate_symbol): Remove.
2658 (allocate_template_symbol): Remove.
2659 * dwarf2/read.c (fixup_go_packaging): Use "new".
2660 (new_symbol): Use "new".
2661 (read_variable): Don't call initialize_objfile_symbol. Use
2662 "new".
2663 (read_func_scope): Use "new".
2664 * xcoffread.c (process_xcoff_symbol): Don't call
2665 initialize_objfile_symbol.
2666 (SYMBOL_DUP): Remove.
2667 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
2668 "new".
2669 * symtab.h (allocate_symbol, initialize_objfile_symbol)
2670 (allocate_template_symbol): Don't declare.
2671 (struct symbol): Add copy constructor. Change defaults.
2672 * jit.c (finalize_symtab): Use "new".
2673 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
2674 Use "new".
2675 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2676 (common_block_end): Use "new".
2677 * mdebugread.c (parse_symbol): Use "new".
2678 (new_symbol): Likewise.
2679
5b4a1a8d
PW
26802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2681
2682 * NEWS: Mention changes to help and apropos.
2683
57b4f16e
PW
26842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2685
2686 * command.h (enum command_class): Improve comments, document
2687 that class_alias is for user-defined aliases, give the class
2688 name for each class, remove unused class_xdb.
2689 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
2690 * breakpoint.c (_initialize_breakpoint): Replace class_alias
2691 by a precise class.
2692 * infcmd.c (_initialize_infcmd): Likewise.
2693 * reverse.c (_initialize_reverse): Likewise.
2694 * stack.c (_initialize_stack): Likewise.
2695 * symfile.c (_initialize_symfile): Likewise.
2696 * tracepoint.c (_initialize_tracepoint): Likewise.
2697
7c05caf7
PW
26982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2699
2700 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
2701 when their aliased command is traversed.
2702 (help_cmd): Add fput_command_names_styled call to
2703 output command name and aliases when command has an alias.
2704
3b3aaacb
PW
27052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2706
2707 * cli/cli-decode.h (help_cmd_list): Remove declaration.
2708 * cli/cli-decode.c (help_cmd_list): Declare as static,
2709 remove prefix argument, use bool for recurse arg, rework to show the aliases of
2710 a command together with the command.
2711 (fput_command_name_styled, fput_command_names_styled): New functions.
2712 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
2713 fput_command_name_styled.
2714 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
2715 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
2716
7aa1b46f
PW
27172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2718
2719 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
2720 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
2721 * command.h (cmd_show_list): Likewise.
2722 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
2723 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
2724
89bcba74
PW
27252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2726
2727 * unittests/command-def-selftests.c (traverse_command_structure):
2728 Verify all commands of a list have the same prefix command and
2729 that only the top cmdlist commands have a null prefix.
2730
3f4d92eb
PW
27312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2732
2733 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
2734 as prefix, not one of its aliases.
2735 (set_cmd_prefix): Remove.
2736 (do_add_cmd): Centralize the setting of the prefix of a command, when
2737 command is defined after its full chain of prefix commands.
2738 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
2739 (add_setshow_cmd_full): Likewise.
2740 (update_prefix_field_of_prefixed_commands): New function.
2741 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
2742 update_prefix_field_of_prefixed_commands.
2743 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
2744 addresses of remote_set_cmdlist and remote_show_cmdlist given
2745 as argument, not the address of an argument.
2746 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
2747 * gdb/remote.c (_initialize_remote): Likewise.
2748
0605465f
PW
27492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2750
2751 * cli/cli-cmds.c (alias_command): Check for an existing alias
2752 using lookup_cmd_composition, as valid_command_p is too strict
2753 and forbids aliases that are the prefix of an existing alias
2754 or command.
2755 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
2756 command is properly recognised as a valid command.
2757
58e6ac70
PW
27582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2759
2760 * unittests/help-doc-selftests.c: Rename to
2761 unittests/command-def-selftests.c
2762 * unittests/command-def-selftests.c (help_doc_tests): Update some
2763 comments.
2764 (command_structure_tests, traverse_command_structure): New namespace
2765 and function.
2766 (command_structure_invariants_tests): New function.
2767 (_initialize_command_def_selftests) Renamed from
2768 _initialize_help_doc_selftests, register command_structure_invariants
2769 selftest.
2770
a7b9ceb8
PW
27712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2772
2773 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
2774 an alias of 'show'.
2775
b2188a06
JB
27762020-05-15 Joel Brobecker <brobecker@adacore.com>
2777
2778 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
2779 ada_is_fixed_point_type. Update all callers.
2780 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
2781 all callers.
2782 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
2783 Update all callers.
2784 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
2785 print_fixed_point_type. Update all callers.
2786 * ada-valprint.c (ada_value_print_num): Replace call to
2787 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
2788
a51951c2
KB
27892020-05-14 Kevin Buettner <kevinb@redhat.com>
2790
2791 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
2792 processors.
2793 (cpu_supports_bts): Add CV_AMD case.
2794
29d6859f
LM
27952020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
2796 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * infrun.c (stop_all_threads): Collect multiple wait events at
2799 each pass.
2800
78134374
SM
28012020-05-14 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
2804 type::code instead.
2805
67607e24
SM
28062020-05-14 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * gdbtypes.h (struct type) <code, set_code>: New methods.
2809 (TYPE_CODE): Use type::code. Change all call sites used to set
2810 the code to use type::set_code instead.
2811
a05575d3
TBA
28122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2813 Tom de Vries <tdevries@suse.de>
2814 Pedro Alves <palves@redhat.com>
2815
2816 PR threads/25478
2817 * infrun.c (stop_all_threads): Do NOT ignore
2818 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
2819 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
2820 received.
2821 (handle_no_resumed): Remove code handling a live inferior with no
2822 threads.
2823 * remote.c (has_single_non_exited_thread): New.
2824 (remote_target::update_thread_list): Do not delete a thread if is
2825 the last thread of the process.
2826 * thread.c (thread_select): Call delete_exited_threads instead of
2827 prune_threads.
2828
6ad82919
TBA
28292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 * infrun.c (stop_all_threads): Enable/disable thread events of all
2832 targets. Move a debug message denoting the end of the function
2833 into the SCOPED_EXIT block.
2834
d890404b
TBA
28352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836
2837 * process-stratum-target.h: Include <set>.
2838 (all_non_exited_process_targets, switch_to_target_no_thread): New
2839 function declarations.
2840 * process-stratum-target.c (all_non_exited_process_targets)
2841 (switch_to_target_no_thread): New function implementations.
2842
293b3ebc
TBA
28432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844
2845 * infrun.c (handle_inferior_event): Extract out a piece of code
2846 into...
2847 (mark_non_executing_threads): ...this new function.
2848
7ca9b62a
TBA
28492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2850
2851 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
2852 use.
2853
fc75c28b
TBA
28542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2855
2856 * regcache.c (regcache_read_pc_protected): New function
2857 implementation that returns 0 if the PC cannot read via
2858 'regcache_read_pc'.
2859 * infrun.c (proceed): Call 'regcache_read_pc_protected'
2860 instead of 'regcache_read_pc'.
2861 (keep_going_pass_signal): Ditto.
2862
a89febbd
TT
28632020-05-13 Tom Tromey <tromey@adacore.com>
2864
2865 * ada-lang.c (align_value): Remove.
2866 (ada_template_to_fixed_record_type_1): Use align_up.
2867
f7e23710
TBA
28682020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2869
2870 * async-event.c: Update the copyright year.
2871 * async-event.h: Update the copyright year.
2872
02ff80c2
SM
28732020-05-12 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * objfiles.h (is_addr_in_objfile,
2876 shared_objfile_contains_address_p): Return bool.
2877 * objfile.c (is_addr_in_objfile,
2878 shared_objfile_contains_address_p): Return bool.
2879
4fd6c7e8
TT
28802020-05-11 Tom Tromey <tromey@adacore.com>
2881
2882 * cli/cli-cmds.c (info_command): Restore.
2883 (_initialize_cli_cmds): Use add_prefix_command for "info".
2884 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
2885
5eb68a39
TT
28862020-05-11 Tom Tromey <tromey@adacore.com>
2887
2888 * ada-lang.c (ada_value_primitive_field): Now public.
2889 * ada-lang.h (ada_value_primitive_field): Declare.
2890 * ada-valprint.c (print_field_values): Use
2891 ada_value_primitive_field for wrapper fields.
2892
7666722f
TV
28932020-05-11 Tom de Vries <tdevries@suse.de>
2894
2895 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
2896 MODULE_DOMAIN.
2897
3ee6bb11
TV
28982020-05-11 Tom de Vries <tdevries@suse.de>
2899
2900 PR symtab/25941
2901 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
2902 with length 0, if not gdb-produced.
2903 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
2904
43434996
TV
29052020-05-09 Tom de Vries <tdevries@suse.de>
2906
2907 PR gdb/25955
2908 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
2909 calculation.
2910
2f78cffc
TT
29112020-05-09 Tom Tromey <tom@tromey.com>
2912
2913 * top.c (server_command): Now bool.
2914 * top.h (server_command): Now bool.
2915
4f7bc5ed
TT
29162020-05-08 Tom Tromey <tromey@adacore.com>
2917
2918 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
2919 already being processed.
2920
8be4b118
TT
29212020-05-08 Tom Tromey <tom@tromey.com>
2922
2923 * printcmd.c (struct display) <next>: Remove.
2924 <display>: New constructor.
2925 <exp_string>: Now a std::string.
2926 <enabled_p>: Now a bool.
2927 (display_number): Move definition earlier.
2928 (displays): Rename from display_chain. Now a std::vector.
2929 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
2930 (display_command): Update.
2931 (do_one_display, disable_display)
2932 (enable_disable_display_command, do_enable_disable_display):
2933 Update.
2934 (free_display): Remove.
2935 (clear_displays): Rewrite.
2936 (delete_display): Update.
2937 (map_display_numbers): Use function_view. Remove "data"
2938 parameter. Update.
2939 (do_delete_display): Remove.
2940 (undisplay_command): Update.
2941 (do_one_display, do_displays, disable_display)
2942 (info_display_command): Update.
2943 (do_enable_disable_display): Remove.
2944 (enable_disable_display_command)
2945 (clear_dangling_display_expressions): Update.
2946
94c93c35
TT
29472020-05-08 Tom Tromey <tom@tromey.com>
2948
2949 * symtab.c (set_symbol_cache_size)
2950 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
2951 (maintenance_print_symbol_cache_statistics): Update.
2952 * symmisc.c (print_symbol_bcache_statistics)
2953 (print_objfile_statistics, maintenance_print_objfiles)
2954 (maintenance_info_symtabs, maintenance_check_symtabs)
2955 (maintenance_expand_symtabs, maintenance_info_line_tables):
2956 Update.
2957 * symfile-debug.c (set_debug_symfile): Update.
2958 * source.c (forget_cached_source_info): Update.
2959 * python/python.c (gdbpy_progspaces): Update.
2960 * psymtab.c (maintenance_info_psymtabs): Update.
2961 * probe.c (parse_probes): Update.
2962 * linespec.c (iterate_over_all_matching_symtabs)
2963 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
2964 * guile/scm-progspace.c (gdbscm_progspaces): Update.
2965 * exec.c (exec_target::close): Update.
2966 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
2967 * breakpoint.c (print_one_breakpoint_location)
2968 (create_longjmp_master_breakpoint)
2969 (create_std_terminate_master_breakpoint): Update.
2970 * progspace.c (program_spaces): Now a std::vector.
2971 (maybe_new_address_space): Update.
2972 (add_program_space): Remove.
2973 (program_space::program_space): Update.
2974 (remove_program_space): Update.
2975 (number_of_program_spaces): Remove.
2976 (print_program_space, update_address_spaces): Update.
2977 * progspace.h (program_spaces): Change type.
2978 (ALL_PSPACES): Remove.
2979 (number_of_program_spaces): Don't declare.
2980 (struct program_space) <next>: Remove.
2981
a1fd1ac9
TT
29822020-05-08 Tom Tromey <tom@tromey.com>
2983
2984 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
2985 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
2986 (enable_break): Update.
2987 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
2988 (frv_fdpic_find_canonical_descriptor): Update.
2989 (frv_fetch_objfile_link_map): Update.
2990 * progspace.c (program_space::free_all_objfiles): Update.
2991 (program_space::solibs): New method.
2992 * progspace.h (struct program_space) <solibs>: New method.
2993 * solist.h (master_so_list): Don't declare.
2994 (ALL_SO_LIBS): Remove.
2995 * solib.h (so_list_head): Remove.
2996 (update_solib_list): Update comment.
2997 * solib.c (master_so_list): Remove.
2998 (solib_used, update_solib_list, solib_add)
2999 (info_sharedlibrary_command, clear_solib)
3000 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3001
38eae084
TT
30022020-05-08 Tom Tromey <tom@tromey.com>
3003
3004 * extension.c (extension_languages): Now a std::array.
3005 (ALL_EXTENSION_LANGUAGES): Remove.
3006 (get_ext_lang_defn, get_ext_lang_of_file)
3007 (eval_ext_lang_from_control_command): Update.
3008 (finish_ext_lang_initialization)
3009 (auto_load_ext_lang_scripts_for_objfile)
3010 (ext_lang_type_printers::ext_lang_type_printers)
3011 (apply_ext_lang_type_printers)
3012 (ext_lang_type_printers::~ext_lang_type_printers)
3013 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3014 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3015 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3016 (get_matching_xmethod_workers, ext_lang_colorize)
3017 (ext_lang_before_prompt): Update.
3018 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3019
596dc4ad
TT
30202020-05-08 Tom Tromey <tom@tromey.com>
3021
3022 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3023 overload.
3024 <swap_string, m_string>: Remove.
3025 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3026 Update.
3027 * stabsread.c (define_symbol, read_type): Update.
3028 * linespec.c (find_linespec_symbols): Update.
3029 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3030 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3031 * dbxread.c (read_dbx_symtab): Update.
3032 * cp-support.h (cp_canonicalize_string_full)
3033 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3034 Return unique_xmalloc_ptr.
3035 * cp-support.c (inspect_type): Update.
3036 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3037 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3038 Likewise.
3039 * c-typeprint.c (print_name_maybe_canonical): Update.
3040 * break-catch-throw.c (check_status_exception_catchpoint):
3041 Update.
3042
bf4cb9be
TV
30432020-05-08 Tom de Vries <tdevries@suse.de>
3044
3045 * infrun.c (follow_fork): Copy current_line and current_symtab to
3046 child thread.
3047
a1b68f28
SM
30482020-05-07 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * async-event.c (struct async_signal_handler, struct
3051 async_event_handler): Reformat, remove typedef.
3052
98d48915
SM
30532020-05-07 Simon Marchi <simon.marchi@efficios.com>
3054
3055 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3056 access thistype->main_type->dyn_prop_list directly.
3057
7aa91313
SM
30582020-05-07 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3061 (remove_dyn_prop): Remove. Update all users to use
3062 type::remove_dyn_prop.
3063 * gdbtypes.c (remove_dyn_prop): Rename to...
3064 (type::remove_dyn_prop): ... this.
3065
5c54719c
SM
30662020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3067
3068 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3069 (add_dyn_prop): Remove. Update all users to use
3070 type::add_dyn_prop.
3071 * gdbtypes.c (add_dyn_prop): Rename to...
3072 (type::add_dyn_prop): ... this.
3073
24e99c6c
SM
30742020-05-07 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3077 (get_dyn_prop): Remove. Update all users to use
3078 type::dyn_prop.
3079 * gdbtypes.c (get_dyn_prop): Rename to...
3080 (type::dyn_prop): ... this.
3081
0d4bf016
SM
30822020-05-06 Simon Marchi <simon.marchi@efficios.com>
3083
3084 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3085
ac4a4f1c
SM
30862020-05-06 Simon Marchi <simon.marchi@efficios.com>
3087
3088 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3089 instruction, skip it if it's there.
3090
a3bbacc1
SM
30912020-05-05 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3094
c3236f84
SM
30952020-05-04 Simon Marchi <simon.marchi@efficios.com>
3096
3097 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3098 * gdbtypes.c (recursive_dump_type): Remove use of
3099 TYPE_INCOMPLETE.
3100
3b6acaee
TT
31012020-05-03 Tom Tromey <tom@tromey.com>
3102
3103 * breakpoint.c (catch_command, tcatch_command): Remove.
3104 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3105 add_show_prefix_cmd.
3106 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3107 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3108 Remove.
3109 (add_internal_problem_command): Use add_basic_prefix_cmd,
3110 add_show_prefix_cmd.
3111 * mips-tdep.c (set_mipsfpu_command): Remove.
3112 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3113 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3114 (_initialize_index_cache): Use add_basic_prefix_cmd.
3115 * memattr.c (dummy_cmd): Remove.
3116 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3117 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3118 (_initialize_tui_win): Use add_basic_prefix_cmd,
3119 add_show_prefix_cmd.
3120 * cli/cli-logging.c (set_logging_command): Remove.
3121 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3122 add_show_prefix_cmd.
3123 (show_logging_command): Remove.
3124 * target.c (target_command): Remove.
3125 (add_target): Use add_basic_prefix_cmd.
3126
a51119cd
HD
31272020-05-02 Hannes Domani <ssbssa@yahoo.de>
3128
3129 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3130
652fc23a 31312020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3132
652fc23a
PW
3133 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3134 info_command.
3135
117539e6
KR
31362020-04-30 Kamil Rytarowski <n54@gmx.com>
3137
3138 * nbsd-nat.c (nbsd_enable_proc_events)
3139 (nbsd_nat_target::post_startup_inferior): Add.
3140 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3141 (nbsd_nat_target::update_thread_list): Rewrite.
3142 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3143 "PTRACE_LWP_CREATE".
3144 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3145
102e38eb 31462020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3147
102e38eb
PW
3148 * stack.c (_initialize_stack): Remove duplicated creation
3149 of "frame" command and "f" alias.
3150
ee9d1e5f
HD
31512020-04-30 Hannes Domani <ssbssa@yahoo.de>
3152
3153 PR gdb/18706
3154 * gdbtypes.c (check_typedef): Calculate size of array of
3155 stubbed type.
3156
627c7fb8
HD
31572020-04-30 Hannes Domani <ssbssa@yahoo.de>
3158
3159 PR gdb/15559
3160 * i386-tdep.c (i386_push_dummy_call): Call
3161 i386_thiscall_push_dummy_call.
3162 (i386_thiscall_push_dummy_call): New function.
3163 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3164 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3165 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3166
ffc2844e
SM
31672020-04-29 Simon Marchi <simon.marchi@efficios.com>
3168
3169 * gdbarch.sh (do_read): Add shellcheck disable directive for
3170 warning SC2162.
3171
1207375d
SM
31722020-04-29 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3175 "referenced but not assigned" warning.
3176
9fdb2916
SM
31772020-04-29 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * gdbarch.sh: Remove code that sets fallbackdefault.
3180
759cea5e
SM
31812020-04-29 Simon Marchi <simon.marchi@efficios.com>
3182
3183 * gdbarch.sh: Use shell operators && and || instead of
3184 -a and -o.
3185
cb02ab24
SM
31862020-04-29 Simon Marchi <simon.marchi@efficios.com>
3187
3188 * gdbarch.sh: Use $(...) instead of `...`.
3189
a6fc5ffc
SM
31902020-04-29 Simon Marchi <simon.marchi@efficios.com>
3191
3192 * gdbarch.sh: Use double quotes around variables.
3193
8d113d13
SM
31942020-04-29 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbarch.sh: Use %s with printf, instead of variables in the
3197 format string.
3198
ed6acedd
TT
31992020-04-29 Tom Tromey <tromey@adacore.com>
3200
3201 PR ada/25875:
3202 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3203 type fields here.
3204 (read_enumeration_type): Call
3205 update_enumeration_type_from_children later. Update comments.
3206 (process_enumeration_scope): Don't create type fields.
3207
b68b1b58
KR
32082020-04-29 Kamil Rytarowski <n54@gmx.com>
3209
3210 * nbsd-tdep.c: Include "xml-syscall.h".
3211 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3212
f94b2e03
KR
32132020-04-29 Kamil Rytarowski <n54@gmx.com>
3214
3215 * nbsd-nat.c: Include "sys/wait.h".
3216 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3217 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3218 (nbsd_nat_target::remove_exec_catchpoint)
3219 (nbsd_nat_target::set_syscall_catchpoint): Add.
3220 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3221 (nbsd_nat_target::insert_exec_catchpoint)
3222 (nbsd_nat_target::remove_exec_catchpoint)
3223 (nbsd_nat_target::set_syscall_catchpoint): Add.
3224 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3225 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3226 `nbsd_get_syscall_number'.
3227
fc49bc72
TT
32282020-04-29 Tom Tromey <tom@tromey.com>
3229
3230 * stack.c (print_block_frame_labels): Remove.
3231
d642b692
HD
32322020-04-29 Hannes Domani <ssbssa@yahoo.de>
3233
3234 PR gdb/17320
3235 * ada-valprint.c (val_print_packed_array_elements): Move array
3236 end bracket to new line.
3237 (ada_val_print_string): Remove extra spaces before first array
3238 element.
3239 * c-valprint.c (c_value_print_array): Likewise.
3240 * m2-valprint.c (m2_print_array_contents): Likewise.
3241 (m2_value_print_inner): Likewise.
3242 * p-valprint.c (pascal_value_print_inner): Likewise.
3243 * valprint.c (generic_val_print_array): Likewise.
3244 (value_print_array_elements): Move first array element and array
3245 end bracket to new line.
3246
ea90f227
TV
32472020-04-29 Tom de Vries <tdevries@suse.de>
3248
3249 PR symtab/25889
3250 * linespec.c (find_method): Fix ix calculation.
3251
4498ef4f
KR
32522020-04-28 Kamil Rytarowski <n54@gmx.com>
3253
3254 * syscalls/update-netbsd.sh: New file.
3255 * syscalls/netbsd.xml: Regenerate.
3256 * data-directory/Makefile.in: Register `netbsd.xml' in
3257 `SYSCALLS_FILES'.
3258
a55e30b5
SM
32592020-04-28 Simon Marchi <simon.marchi@efficios.com>
3260
3261 * syscalls/update-freebsd.sh: Add double quotes.
3262
2b2fbab8
TT
32632020-04-28 Tom Tromey <tom@tromey.com>
3264
3265 * NEWS: Update.
3266 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3267 (cmdpy_init): Allow class_tui.
3268
a65189c9
TV
32692020-04-28 Mark Williams <mark@myosotissp.com>
3270
3271 PR gdb/24480
3272 * dwarf2read.c: Add missing assingments to list_in_scope when
3273 start_symtab was already called.
3274
1b95cdb7
SM
32752020-04-28 Simon Marchi <simon.marchi@efficios.com>
3276
3277 PR gdb/25881
3278 * dwarf2/read.c (offset_map_type): Use
3279 gdb:hash_enum<sect_offset> as hash function.
3280
15cd93d0
TV
32812020-04-28 Tom de Vries <tdevries@suse.de>
3282
3283 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3284 with DW_AT_signature.
3285
1eb39914
SM
32862020-04-27 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * configure.ac: Remove check for fs_base/gs_base in
3289 user_regs_struct.
3290 * configure: Re-generate.
3291 * config.in: Re-generate.
3292 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3293 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3294 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3295
991a3e2e
LM
32962020-04-27 Luis Machado <luis.machado@linaro.org>
3297
3298 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3299 problematic inline frame unwinding situation.
3300 * frame.c (frame_id_computed_p): New function.
3301 * frame.h (frame_id_computed_p): New prototype.
3302
361ba0e8
TT
33032020-04-26 Tom Tromey <tom@tromey.com>
3304
3305 * command.h (enum command_class) <class_pseudo>: Remove.
3306
bc3609fd
PW
33072020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3308
3309 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3310 and whitespace.
3311
b9771db7
KR
33122020-04-25 Kamil Rytarowski <n54@gmx.com>
3313
ec16513e
SM
3314 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3315 `PT_GET_PROCESS_STATE' block.
b9771db7 3316
7151c1af
TT
33172020-04-24 Tom Tromey <tom@tromey.com>
3318
3319 * symtab.h (symbol_get_demangled_name): Don't declare.
3320 * symtab.c (symbol_get_demangled_name): Remove.
3321 (general_symbol_info::natural_name)
3322 (general_symbol_info::demangled_name): Update.
3323
906bb4c5
TT
33242020-04-24 Tom Tromey <tom@tromey.com>
3325
3326 PR rust/25025:
3327 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3328
bcfe6157
TT
33292020-04-24 Tom Tromey <tom@tromey.com>
3330
3331 PR symtab/12707:
3332 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3333 exists.
3334 (new_symbol): Likewise.
3335 * compile/compile-object-load.c (get_out_value_type): Use
3336 symbol_matches_search_name.
3337
f049a313
TT
33382020-04-24 Tom Tromey <tom@tromey.com>
3339
3340 * dwarf2/read.c (add_partial_symbol): Do not call
3341 compute_and_set_names.
3342
76e288d1
TT
33432020-04-24 Tom Tromey <tom@tromey.com>
3344
3345 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
3346 overload.
3347
2467f4f6
TT
33482020-04-24 Tom Tromey <tom@tromey.com>
3349
3350 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
3351 (add_psymbol_to_list): New overload. Make old overload call new
3352 one.
3353 * psympriv.h (add_psymbol_to_list): New overload.
3354
e61108c9
TT
33552020-04-24 Tom Tromey <tom@tromey.com>
3356
3357 * dwarf2/read.c (partial_die_info::read) <case
3358 DW_AT_linkage_name>: Use value_as_string.
3359 (dwarf2_string_attr): Use value_as_string.
3360 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3361 method.
3362 * dwarf2/attribute.c (attribute::value_as_string): New method.
3363
8c87a452
TT
33642020-04-24 Tom Tromey <tom@tromey.com>
3365
3366 * symtab.c (general_symbol_info::natural_name)
3367 (general_symbol_info::demangled_name): Check for language_rust.
3368
787de330
TT
33692020-04-24 Tom Tromey <tom@tromey.com>
3370
3371 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
3372 (dwarf2_physname): ... from here.
3373 (partial_die_info::read): Add Rust "{" hack.
3374
ff985671
TT
33752020-04-24 Tom Tromey <tom@tromey.com>
3376
3377 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
3378 method.
3379 (symbol_set_demangled_name): Don't declare.
3380 * symtab.c (general_symbol_info::set_demangled_name): Rename from
3381 symbol_set_demangled_name.
3382 (general_symbol_info::set_language)
3383 (general_symbol_info::compute_and_set_names): Update.
3384 * minsyms.c (minimal_symbol_reader::install): Update.
3385 * dwarf2/read.c (new_symbol): Update.
3386
1acda803
TT
33872020-04-24 Tom Tromey <tromey@adacore.com>
3388
3389 PR python/23662:
3390 * python/py-type.c (convert_field): Handle
3391 FIELD_LOC_KIND_DWARF_BLOCK.
3392 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
3393 (typy_get_dynamic): Nw function.
3394 (type_object_getset): Add "dynamic".
3395 * NEWS: Add entry.
3396
d656f129
TT
33972020-04-24 Tom Tromey <tromey@adacore.com>
3398
3399 * ada-typeprint.c (print_choices, print_variant_part)
3400 (print_record_field_types_dynamic): New functions.
3401 (print_record_field_types): Use print_record_field_types_dynamic.
3402
7d79de9a
TT
34032020-04-24 Tom Tromey <tromey@adacore.com>
3404
3405 * dwarf2/read.c (handle_data_member_location): New overload.
3406 (dwarf2_add_field): Use it.
3407 (decode_locdesc): Add "computed" parameter. Update comment.
3408 * gdbtypes.c (is_dynamic_type_internal): Also look for
3409 FIELD_LOC_KIND_DWARF_BLOCK.
3410 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
3411 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
3412 virtual base classes.
3413 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
3414 FIELD_LOC_KIND_DWARF_BLOCK.
3415
f8e89861
TT
34162020-04-24 Tom Tromey <tromey@adacore.com>
3417
3418 * dwarf2/read.c (read_structure_type): Handle dynamic length.
3419 * gdbtypes.c (is_dynamic_type_internal): Check
3420 TYPE_HAS_DYNAMIC_LENGTH.
3421 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
3422 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
3423 New macros.
3424 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
3425 constant.
3426
9c6a1327
TT
34272020-04-24 Tom Tromey <tromey@adacore.com>
3428
3429 * dwarf2/read.c (struct variant_field): Rewrite.
3430 (struct variant_part_builder): New.
3431 (struct nextfield): Remove "variant" field. Add "offset".
3432 (struct field_info): Add "current_variant_part" and
3433 "variant_parts".
3434 (alloc_discriminant_info): Remove.
3435 (alloc_rust_variant): New function.
3436 (quirk_rust_enum): Update.
3437 (dwarf2_add_field): Set "offset" member. Don't handle
3438 DW_TAG_variant_part.
3439 (offset_map_type): New typedef.
3440 (convert_variant_range, create_one_variant)
3441 (create_one_variant_part, create_variant_parts)
3442 (add_variant_property): New functions.
3443 (dwarf2_attach_fields_to_type): Call add_variant_property.
3444 (read_structure_type): Don't handle DW_TAG_variant_part.
3445 (handle_variant_part, handle_variant): New functions.
3446 (handle_struct_member_die): Use them.
3447 (process_structure_scope): Don't handle variant parts.
3448 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
3449 (struct discriminant_info): Remove.
3450 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
3451 (struct main_type) <flag_discriminated_union>: Remove.
3452 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
3453 (rust_enum_variant): Return int. Remove "contents". Rewrite.
3454 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
3455 Update.
3456 * valops.c (value_union_variant): Remove.
3457 * value.h (value_union_variant): Don't declare.
3458
b249d2c2
TT
34592020-04-24 Tom Tromey <tromey@adacore.com>
3460
3461 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
3462 (ada_value_primitive_packed_val): Update.
3463 * ada-valprint.c (ada_value_print_1): Update.
3464 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
3465 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
3466 just an address. Use evaluate_for_locexpr_baton.
3467 (dwarf2_evaluate_property): Update.
3468 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
3469 array_view.
3470 * findvar.c (default_read_var_value): Update.
3471 * gdbtypes.c (compute_variant_fields_inner)
3472 (resolve_dynamic_type_internal): Update.
3473 (resolve_dynamic_type): Change type of valaddr parameter.
3474 * gdbtypes.h (resolve_dynamic_type): Update.
3475 * valarith.c (value_subscripted_rvalue): Update.
3476 * value.c (value_from_contents_and_address): Update.
3477
61122aa9
TT
34782020-04-24 Tom Tromey <tromey@adacore.com>
3479
3480 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
3481 "push_initial_value" parameter.
3482 (dwarf2_evaluate_property): Likewise.
3483 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
3484
ef83a141
TT
34852020-04-24 Tom Tromey <tromey@adacore.com>
3486
3487 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
3488 (variant::matches, compute_variant_fields_recurse)
3489 (compute_variant_fields_inner, compute_variant_fields): New
3490 functions.
3491 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
3492 Use resolved_type after type is made.
3493 (operator==): Add new cases.
3494 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
3495 (struct discriminant_range, struct variant, struct variant_part):
3496 New.
3497 (union dynamic_prop_data) <variant_parts, original_type>: New
3498 members.
3499 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
3500 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
3501 constants.
3502 * value.c (unpack_bits_as_long): Now public.
3503 * value.h (unpack_bits_as_long): Declare.
3504
675127ec
TT
35052020-04-24 Tom Tromey <tromey@adacore.com>
3506
3507 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
3508 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
3509
9852ceef
HD
35102020-04-24 Hannes Domani <ssbssa@yahoo.de>
3511
3512 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
3513
7632c6ce
KR
35142020-04-24 Kamil Rytarowski <n54@gmx.com>
3515
3516 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
3517 (remove_fork_catchpoint, post_startup_inferior)
3518 (post_attach): Move...
3519 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
3520 (remove_fork_catchpoint, post_startup_inferior)
3521 (post_attach): ...here.
3522 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
3523 (remove_fork_catchpoint, post_startup_inferior)
3524 (post_attach): Move...
3525 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
3526 (remove_fork_catchpoint, post_startup_inferior)
3527 (post_attach): ...here.
3528
7be2bb4f
TT
35292020-04-24 Tom Tromey <tromey@adacore.com>
3530
3531 * nat/windows-nat.h (struct windows_thread_info)
3532 <pc_adjusted>: New member.
3533 * windows-nat.c (windows_fetch_one_register): Check
3534 pc_adjusted.
3535 (windows_nat_target::get_windows_debug_event)
3536 (windows_nat_target::wait): Set pc_adjusted.
3537
f80cb3b4
TV
35382020-04-24 Tom de Vries <tdevries@suse.de>
3539
3540 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
3541 Run gdb-add-index inside temp dir.
3542
29514b87
TT
35432020-04-23 Tom Tromey <tromey@adacore.com>
3544
3545 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
3546 in loop.
3547
5939967b
LM
35482020-04-23 Luis Machado <luis.machado@linaro.org>
3549
3550 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3551 get_frame_register instead of gdbarch_unwind_pc.
3552
70bc38f5
TV
35532020-04-23 Tom de Vries <tdevries@suse.de>
3554
3555 * symtab.c (lookup_global_symbol): Prefer def over decl.
3556
de82891c
TV
35572020-04-23 Tom de Vries <tdevries@suse.de>
3558
3559 PR symtab/25807
3560 * block.c (best_symbol, better_symbol): Promote to external.
3561 * block.h (best_symbol, better_symbol): Declare.
3562 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
3563 decl.
3564
ecc6c606
TT
35652020-04-23 Tom Tromey <tromey@adacore.com>
3566
3567 PR ada/25837:
3568 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
3569 "const char *", not a "const std::string &".
3570 <name_and_matcher::operator==>: Update.
3571 * unittests/lookup_name_info-selftests.c: Change type of
3572 "result".
3573
740480b8
TT
35742020-04-23 Tom Tromey <tom@tromey.com>
3575
3576 * inferior.h (iterate_over_inferiors): Don't declare.
3577 * inferior.c (iterate_over_inferiors): Remove.
3578 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
3579 Remove.
3580 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
3581 use iterate_over_inferiors.
3582 (darwin_resume_inferior_it)
3583 (struct resume_inferior_threads_param)
3584 (darwin_resume_inferior_threads_it): Remove.
3585 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
3586
ae3ab1f0
TV
35872020-04-23 Tom de Vries <tdevries@suse.de>
3588
3589 * blockframe.c (find_pc_partial_function): Use
3590 find_pc_sect_compunit_symtab rather than
3591 objfile->sf->qf->find_pc_sect_compunit_symtab.
3592
317d2668
TV
35932020-04-22 Tom de Vries <tdevries@suse.de>
3594
3595 PR symtab/25764
3596 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
3597 in psymtabs.
3598
eea9e357
TV
35992020-04-22 Tom de Vries <tdevries@suse.de>
3600
3601 PR symtab/25801
3602 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
3603 symtabs.
3604
3d5afab3
TV
36052020-04-22 Tom de Vries <tdevries@suse.de>
3606
3607 PR symtab/25700
3608 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
3609 CU if already created.
3610
d43b7a2d
TBA
36112020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3612
3613 * infrun.c (displaced_step_fixup): Switch to the event_thread
3614 before calling displaced_step_restore, not after.
3615
d89edf9b
MM
36162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3617
3618 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
3619 its inferior is not recorded by us.
3620 (record_btrace_target_open): Replace call to
3621 all_non_exited_threads () with call to current_inferior
3622 ()->non_exited_threads ().
3623 (record_btrace_target::stop_recording): Likewise.
3624 (record_btrace_target::close): Likewise.
3625 (record_btrace_target::wait): Likewise.
3626 (record_btrace_target::record_stop_replaying): Likewise.
3627
5897fd49
MM
36282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3629
3630 * btrace.c (btrace_enable): Throw an error on double enables and
3631 when enabling recording fails.
3632 (btrace_disable): Throw an error if the thread is not recorded.
3633
1a476b6d
MM
36342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3635
3636 * record-btrace.c (record_btrace_target::fetch_registers): Forward
3637 request if we do not have a thread_info.
3638
4778a5f8
TV
36392020-04-21 Tom de Vries <tdevries@suse.de>
3640
3641 PR gdb/25471
3642 * thread.c
3643 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
3644 exception in get_frame_id.
3645
0fa7617d
TT
36462020-04-20 Tom Tromey <tromey@adacore.com>
3647
3648 * python/python.c (struct gdbpy_event): Mark move constructor as
3649 noexcept.
3650 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
3651 constructor as noexcept.
3652 * completer.h (struct completion_result): Mark move constructor as
3653 noexcept.
3654 * completer.c (completion_result::completion_result): Use
3655 initialization style. Don't call reset_match_list.
3656
ad23bda0
MS
36572020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
3658
3659 * MAINTAINERS (Write After Approval): Add myself.
3660
45e1f031
TT
36612020-04-18 Tom Tromey <tom@tromey.com>
3662
3663 * windows-tdep.c (init_w32_command_list)
3664 (w32_prefix_command_valid): Restore.
3665 (_initialize_windows_tdep): Call init_w32_command_list.
3666
08feed99
TT
36672020-04-18 Tom Tromey <tom@tromey.com>
3668
3669 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
3670 * value.c (value_fn_field): Update.
3671 * valops.c (find_function_in_inferior)
3672 (value_allocate_space_in_inferior): Update.
3673 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3674 Update.
3675 * tui/tui-source.c (tui_source_window::set_contents): Update.
3676 * symtab.c (lookup_global_or_static_symbol)
3677 (find_function_start_sal_1, skip_prologue_sal)
3678 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
3679 * symmisc.c (dump_msymbols, dump_symtab_1)
3680 (maintenance_print_one_line_table): Update.
3681 * symfile.c (init_entry_point_info, section_is_mapped)
3682 (list_overlays_command, simple_read_overlay_table)
3683 (simple_overlay_update_1): Update.
3684 * stap-probe.c (handle_stap_probe): Update.
3685 * stabsread.c (dbx_init_float_type, define_symbol)
3686 (read_one_struct_field, read_enum_type, read_range_type): Update.
3687 * source.c (info_line_command): Update.
3688 * python/python.c (gdbpy_source_objfile_script)
3689 (gdbpy_execute_objfile_script): Update.
3690 * python/py-type.c (save_objfile_types): Update.
3691 * python/py-objfile.c (py_free_objfile): Update.
3692 * python/py-inferior.c (python_new_objfile): Update.
3693 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
3694 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
3695 (maintenance_check_psymtabs): Update.
3696 * printcmd.c (info_address_command): Update.
3697 * objfiles.h (struct objfile) <arch>: New method, from
3698 get_objfile_arch.
3699 (get_objfile_arch): Don't declare.
3700 * objfiles.c (get_objfile_arch): Remove.
3701 (filter_overlapping_sections): Update.
3702 * minsyms.c (msymbol_is_function): Update.
3703 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
3704 (output_nondebug_symbol): Update.
3705 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
3706 (mdebug_expand_psymtab): Update.
3707 * machoread.c (macho_add_oso_symfile): Update.
3708 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
3709 Update.
3710 * linux-fork.c (checkpoint_command): Update.
3711 * linespec.c (convert_linespec_to_sals): Update.
3712 * jit.c (finalize_symtab): Update.
3713 * infrun.c (insert_exception_resume_from_probe): Update.
3714 * ia64-tdep.c (ia64_find_unwind_table): Update.
3715 * hppa-tdep.c (internalize_unwinds): Update.
3716 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
3717 Update.
3718 * gcore.c (call_target_sbrk): Update.
3719 * elfread.c (record_minimal_symbol, elf_symtab_read)
3720 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3721 (elf_gnu_ifunc_resolve_by_got): Update.
3722 * dwarf2/read.c (create_addrmap_from_index)
3723 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3724 (read_debug_names_from_section)
3725 (process_psymtab_comp_unit_reader, add_partial_symbol)
3726 (add_partial_subprogram, process_full_comp_unit)
3727 (read_file_scope, read_func_scope, read_lexical_block_scope)
3728 (read_call_site_scope, dwarf2_ranges_read)
3729 (dwarf2_record_block_ranges, dwarf2_add_field)
3730 (mark_common_block_symbol_computed, read_tag_pointer_type)
3731 (read_tag_string_type, dwarf2_init_float_type)
3732 (dwarf2_init_complex_target_type, read_base_type)
3733 (partial_die_info::read, partial_die_info::read)
3734 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
3735 (dwarf2_fetch_die_loc_sect_off): Update.
3736 * dwarf2/loc.c (dwarf2_find_location_expression)
3737 (class dwarf_evaluate_loc_desc, rw_pieced_value)
3738 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
3739 (dwarf2_loc_desc_get_symbol_read_needs)
3740 (locexpr_describe_location_piece, locexpr_describe_location_1)
3741 (loclist_describe_location): Update.
3742 * dwarf2/index-write.c (write_debug_names): Update.
3743 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
3744 * dtrace-probe.c (dtrace_process_dof): Update.
3745 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
3746 (process_one_symbol): Update.
3747 * ctfread.c (ctf_init_float_type, read_base_type): Update.
3748 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
3749 (coff_read_enum_type): Update.
3750 * cli/cli-cmds.c (edit_command, list_command): Update.
3751 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
3752 * breakpoint.c (create_overlay_event_breakpoint)
3753 (create_longjmp_master_breakpoint)
3754 (create_std_terminate_master_breakpoint)
3755 (create_exception_master_breakpoint, get_sal_arch): Update.
3756 * block.c (block_gdbarch): Update.
3757 * annotate.c (annotate_source_line): Update.
3758
0743fc83
TT
37592020-04-17 Tom Tromey <tromey@adacore.com>
3760
3761 * auto-load.c (show_auto_load_cmd): Remove.
3762 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
3763 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
3764 (maintenance_print_arc_command): Remove.
3765 * tui/tui-win.c (tui_command): Remove.
3766 (tui_get_cmd_list): Use add_basic_prefix_cmd.
3767 * tui/tui-layout.c (tui_layout_command): Remove.
3768 (_initialize_tui_layout): Use add_basic_prefix_cmd.
3769 * python/python.c (user_set_python, user_show_python): Remove.
3770 (_initialize_python): Use add_basic_prefix_cmd,
3771 add_show_prefix_cmd.
3772 * guile/guile.c (set_guile_command, show_guile_command): Remove.
3773 (install_gdb_commands): Use add_basic_prefix_cmd,
3774 add_show_prefix_cmd.
3775 (info_guile_command): Remove.
3776 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
3777 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
3778 add_show_prefix_cmd.
3779 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
3780 Remove do_set and do_show parameters.
3781 * cli/cli-style.c (set_style, show_style): Remove.
3782 (_initialize_cli_style): Use add_basic_prefix_cmd,
3783 add_show_prefix_cmd.
3784 (cli_style_option::add_setshow_commands): Remove do_set and
3785 do_show parameters.
3786 (cli_style_option::add_setshow_commands): Use
3787 add_basic_prefix_cmd, add_show_prefix_cmd.
3788 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
3789 (set_style_name): Remove.
3790 * cli/cli-dump.c (dump_command, append_command): Remove.
3791 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3792 (tekhex_dump_command, binary_dump_command)
3793 (binary_append_command): Remove.
3794 (_initialize_cli_dump): Use add_basic_prefix_cmd.
3795 * windows-tdep.c (w32_prefix_command_valid): Remove global.
3796 (init_w32_command_list): Remove; move into ...
3797 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
3798 * valprint.c (set_print, show_print, set_print_raw)
3799 (show_print_raw): Remove.
3800 (_initialize_valprint): Use add_basic_prefix_cmd,
3801 add_show_prefix_cmd.
3802 * typeprint.c (set_print_type, show_print_type): Remove.
3803 (_initialize_typeprint): Use add_basic_prefix_cmd,
3804 add_show_prefix_cmd.
3805 * record.c (set_record_command, show_record_command): Remove.
3806 (_initialize_record): Use add_basic_prefix_cmd,
3807 add_show_prefix_cmd.
3808 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
3809 add_show_prefix_cmd.
3810 (info_command, show_command, set_debug, show_debug): Remove.
3811 * top.h (set_history, show_history): Don't declare.
3812 * top.c (set_history, show_history): Remove.
3813 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3814 (unset_tdesc_cmd): Remove.
3815 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
3816 add_show_prefix_cmd.
3817 * symtab.c (info_module_command): Remove.
3818 (_initialize_symtab): Use add_basic_prefix_cmd.
3819 * symfile.c (overlay_command): Remove.
3820 (_initialize_symfile): Use add_basic_prefix_cmd.
3821 * sparc64-tdep.c (info_adi_command): Remove.
3822 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
3823 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
3824 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
3825 add_show_prefix_cmd.
3826 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
3827 (_initialize_serial): Use add_basic_prefix_cmd,
3828 add_show_prefix_cmd.
3829 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
3830 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
3831 add_show_prefix_cmd.
3832 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
3833 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
3834 add_show_prefix_cmd.
3835 * riscv-tdep.c (show_riscv_command, set_riscv_command)
3836 (show_debug_riscv_command, set_debug_riscv_command): Remove.
3837 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
3838 add_show_prefix_cmd.
3839 * remote.c (remote_command, set_remote_cmd): Remove.
3840 (_initialize_remote): Use add_basic_prefix_cmd.
3841 * record-full.c (set_record_full_command)
3842 (show_record_full_command): Remove.
3843 (_initialize_record_full): Use add_basic_prefix_cmd,
3844 add_show_prefix_cmd.
3845 * record-btrace.c (cmd_set_record_btrace)
3846 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
3847 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
3848 (cmd_show_record_btrace_pt): Remove.
3849 (_initialize_record_btrace): Use add_basic_prefix_cmd,
3850 add_show_prefix_cmd.
3851 * ravenscar-thread.c (set_ravenscar_command)
3852 (show_ravenscar_command): Remove.
3853 (_initialize_ravenscar): Use add_basic_prefix_cmd,
3854 add_show_prefix_cmd.
3855 * mips-tdep.c (show_mips_command, set_mips_command)
3856 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
3857 add_show_prefix_cmd.
3858 * maint.c (maintenance_command, maintenance_info_command)
3859 (maintenance_check_command, maintenance_print_command)
3860 (maintenance_set_cmd, maintenance_show_cmd): Remove.
3861 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
3862 add_show_prefix_cmd.
3863 (show_per_command_cmd): Remove.
3864 * maint-test-settings.c (maintenance_set_test_settings_cmd):
3865 Remove.
3866 (maintenance_show_test_settings_cmd): Remove.
3867 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
3868 add_show_prefix_cmd.
3869 * maint-test-options.c (maintenance_test_options_command):
3870 Remove.
3871 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
3872 * macrocmd.c (macro_command): Remove
3873 (_initialize_macrocmd): Use add_basic_prefix_cmd.
3874 * language.c (set_check, show_check): Remove.
3875 (_initialize_language): Use add_basic_prefix_cmd,
3876 add_show_prefix_cmd.
3877 * infcmd.c (unset_command): Remove.
3878 (_initialize_infcmd): Use add_basic_prefix_cmd.
3879 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
3880 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
3881 add_show_prefix_cmd.
3882 * go32-nat.c (go32_info_dos_command): Remove.
3883 (_initialize_go32_nat): Use add_basic_prefix_cmd.
3884 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
3885 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
3886 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
3887 (_initialize_frame): Use add_basic_prefix_cmd,
3888 add_show_prefix_cmd.
3889 * dcache.c (set_dcache_command, show_dcache_command): Remove.
3890 (_initialize_dcache): Use add_basic_prefix_cmd,
3891 add_show_prefix_cmd.
3892 * cp-support.c (maint_cplus_command): Remove.
3893 (_initialize_cp_support): Use add_basic_prefix_cmd.
3894 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3895 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3896 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
3897 add_basic_prefix_cmd, add_show_prefix_cmd.
3898 * breakpoint.c (save_command): Remove.
3899 (_initialize_breakpoint): Use add_basic_prefix_cmd.
3900 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
3901 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
3902 add_show_prefix_cmd.
3903 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
3904 (set_ada_command, show_ada_command): Remove.
3905 (_initialize_ada_language): Use add_basic_prefix_cmd,
3906 add_show_prefix_cmd.
3907 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
3908
3557f442
KR
39092020-04-16 Kamil Rytarowski <n54@gmx.com>
3910
3911 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
3912 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
3913
16197208
SM
39142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3915
3916 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
3917 warning messages.
3918
00ac85d3
SM
39192020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3920
3921 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
3922 import table is not at beginning of .idata section.
3923
381ce63f
PA
39242020-04-16 Pedro Alves <palves@redhat.com>
3925
3926 * inferior.c (delete_inferior): Use delete operator directly
3927 instead of delete_program_space.
3928 * progspace.c (add_program_space): New, factored out from
3929 program_space::program_space.
3930 (remove_program_space): New, factored out from
3931 delete_program_space.
3932 (program_space::program_space): Remove intro comment. Rewrite.
3933 (program_space::~program_space): Remove intro comment. Call
3934 remove_program_space.
3935 (delete_program_space): Delete.
3936 * progspace.h (program_space::program_space): Make explicit. Move
3937 intro comment here, adjusted.
3938 (program_space::~program_space): Move intro comment here,
3939 adjusted.
3940 (delete_program_space): Remove.
3941
a010605f
TT
39422020-04-16 Tom Tromey <tromey@adacore.com>
3943
3944 * windows-nat.c (windows_nat::handle_access_violation): New
3945 function.
3946 * nat/windows-nat.h (handle_access_violation): Declare.
3947 * nat/windows-nat.c (handle_exception): Move Cygwin code to
3948 windows-nat.c. Call handle_access_violation.
3949
efba5c23
TV
39502020-04-16 Tom de Vries <tdevries@suse.de>
3951
3952 PR symtab/25791
3953 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
3954 CUs without psymtab.
3955
97ed802d
KB
39562020-04-16 Kevin Buettner <kevinb@redhat.com>
3957
3958 * python/python.c (do_start_initialization): Don't call
3959 PyEval_InitThreads for Python 3.9 and beyond.
3960
c7d64809
KR
39612020-04-15 Kamil Rytarowski <n54@gmx.com>
3962
3963 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
3964 thread functions.
3965 (obsd_nat_target::wait): Likewise.
3966
ce127a96
TT
39672020-04-15 Tom Tromey <tromey@adacore.com>
3968
3969 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3970 (DEBUG_EXCEPT): Use debug_printf.
3971
99f1bc6a
AB
39722020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * completer.c (class completion_tracker::completion_hash_entry)
3975 <hash_name>: New member function.
3976 (completion_tracker::discard_completions): New callback to hash a
3977 completion_hash_entry, pass this to htab_create_alloc.
3978
a0e9b532
JT
39792016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
3980
3981 * windows-nat.c (windows_make_so): Warn rather than stopping with
3982 an error if realpath() fails.
3983
06ca5dd4
KR
39842020-04-14 Kamil Rytarowski <n54@gmx.com>
3985
3986 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
3987 (nbsd_nat_target::info_proc): Add do_status.
3988
194d088f
TV
39892020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
3990 Tom de Vries <tdevries@suse.de>
3991
3992 PR symtab/25718
3993 * psympriv.h (struct partial_symtab::read_symtab)
3994 (struct partial_symtab::expand_psymtab)
3995 (struct partial_symtab::read_dependencies): Update comments.
3996 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
3997 read_symtab for includer.
3998 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
3999 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4000 (struct dwarf2_include_psymtab::m_readin): Remove.
4001 (struct dwarf2_include_psymtab::includer): New member function.
4002 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4003
c1a66c06
TV
40042020-04-14 Tom de Vries <tdevries@suse.de>
4005
4006 PR symtab/25720
4007 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4008 with NULL symbol_matcher and lookup_name.
4009 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4010 and lookup_name.
4011 * dwarf2/read.c (dw2_expand_symtabs_matching)
4012 (dw2_debug_names_expand_symtabs_matching): Same.
4013 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4014 Make lookup_name a pointer. Update comment.
4015 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4016 lookup_name being a pointer.
4017 * symfile.c (expand_symtabs_matching): Same.
4018 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4019 * linespec.c (iterate_over_all_matching_symtabs): Same.
4020
400b5eca
TT
40212020-04-13 Tom Tromey <tom@tromey.com>
4022
4023 * run-on-main-thread.c: Update include.
4024 * unittests/main-thread-selftests.c: Update include.
4025 * tui/tui-win.c: Update include.
4026 * tui/tui-io.c: Update include.
4027 * tui/tui-interp.c: Update include.
4028 * tui/tui-hooks.c: Update include.
4029 * top.h: Update include.
4030 * top.c: Update include.
4031 * ser-base.c: Update include.
4032 * remote.c: Update include.
4033 * remote-notif.c: Update include.
4034 * remote-fileio.c: Update include.
4035 * record-full.c: Update include.
4036 * record-btrace.c: Update include.
4037 * python/python.c: Update include.
4038 * posix-hdep.c: Update include.
4039 * mingw-hdep.c: Update include.
4040 * mi/mi-main.c: Update include.
4041 * mi/mi-interp.c: Update include.
4042 * main.c: Update include.
4043 * linux-nat.c: Update include.
4044 * interps.c: Update include.
4045 * infrun.c: Update include.
4046 * inf-loop.c: Update include.
4047 * event-top.c: Update include.
4048 * event-loop.c: Move to ../gdbsupport/.
4049 * event-loop.h: Move to ../gdbsupport/.
4050 * async-event.h: Update include.
4051 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4052
93b54c8e
TT
40532020-04-13 Tom Tromey <tom@tromey.com>
4054
4055 * tui/tui-win.c: Include async-event.h.
4056 * remote.c: Include async-event.h.
4057 * remote-notif.c: Include async-event.h.
4058 * record-full.c: Include async-event.h.
4059 * record-btrace.c: Include async-event.h.
4060 * infrun.c: Include async-event.h.
4061 * event-top.c: Include async-event.h.
4062 * event-loop.h: Move some declarations to async-event.h.
4063 * event-loop.c: Don't include ser-event.h or top.h. Move some
4064 code to async-event.c.
4065 * async-event.h: New file.
4066 * async-event.c: New file.
4067 * Makefile.in (COMMON_SFILES): Add async-event.c.
4068 (HFILES_NO_SRCDIR): Add async-event.h.
4069
c1cd3163
TT
40702020-04-13 Tom Tromey <tom@tromey.com>
4071
4072 * utils.c (flush_streams): New function.
4073 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4074
29f2bf4f
TT
40752020-04-13 Tom Tromey <tom@tromey.com>
4076
4077 * event-loop.c (handle_file_event): Use warning, not
4078 printf_unfiltered.
4079
98029d02
TT
40802020-04-13 Tom Tromey <tom@tromey.com>
4081
4082 * event-loop.c: Include <chrono>.
4083
06cc9596
TT
40842020-04-13 Tom Tromey <tom@tromey.com>
4085
4086 * gdb_select.h: Move to ../gdbsupport/.
4087 * event-loop.c: Update include path.
4088 * top.c: Update include path.
4089 * ser-base.c: Update include path.
4090 * ui-file.c: Update include path.
4091 * ser-tcp.c: Update include path.
4092 * guile/scm-ports.c: Update include path.
4093 * posix-hdep.c: Update include path.
4094 * ser-unix.c: Update include path.
4095 * gdb_usleep.c: Update include path.
4096 * mingw-hdep.c: Update include path.
4097 * inflow.c: Update include path.
4098 * infrun.c: Update include path.
4099 * event-top.c: Update include path.
4100
8ae8e197
TT
41012020-04-13 Tom Tromey <tom@tromey.com>
4102
4103 * configure: Rebuild.
4104 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4105
58cf28e8
TT
41062020-04-13 Tom Tromey <tom@tromey.com>
4107
4108 * event-loop.h (start_event_loop): Don't declare.
4109 * event-loop.c (start_event_loop): Move...
4110 * main.c (start_event_loop): ...here. Now static.
4111
b7f999ae
SDJ
41122020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4113
4114 * MAINTAINERS: Update my email address.
4115
1085dfd4
KR
41162020-04-12 Kamil Rytarowski <n54@gmx.com>
4117
4118 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4119 IP_ALL.
4120
49d1d1f5
KR
41212020-04-12 Kamil Rytarowski <n54@gmx.com>
4122
4123 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4124 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4125
b4848d2a
KR
41262020-04-12 Kamil Rytarowski <n54@gmx.com>
4127
4128 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4129 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4130
51c133d5
KR
41312020-04-12 Kamil Rytarowski <n54@gmx.com>
4132
4133 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4134
54b8cbd0
KR
41352020-04-11 Kamil Rytarowski <n54@gmx.com>
4136
4137 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4138 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4139 (nbsd_nat_target::info_proc): New functions.
4140 * nbsd-nat.c (kinfo_get_vmmap): New function.
4141 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4142 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4143 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4144 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4145 functions.
4146 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4147 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4148 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4149 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4150 (KINFO_VME_FLAG_GROWS_DOWN): New.
4151
cf83625d
AS
41522020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4153
4154 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4155 bit shift.
4156
0c4311ab
TT
41572020-04-10 Tom Tromey <tromey@adacore.com>
4158
4159 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4160
3e65b3e9
TT
41612020-04-10 Tom Tromey <tromey@adacore.com>
4162
4163 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4164 separate debug files.
4165
13302e95
HD
41662020-04-10 Hannes Domani <ssbssa@yahoo.de>
4167
4168 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4169 Move to...
4170 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4171 ... here.
4172 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4173 Check for STATUS_WX86_BREAKPOINT.
4174 (windows_nat_target::wait): Same.
4175
bdfc1e8a
TV
41762020-04-10 Tom de Vries <tdevries@suse.de>
4177
4178 PR cli/25808
4179 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4180
f4460aec
SM
41812020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4182
4183 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4184 (Write After Approval): Remove Tom de Vries.
4185
a25198bb
BE
41862020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4187
4188 revert partially:
4189 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4190
aac66a4c
SM
4191 * buildsym.c (record_line): Fix undefined behavior and preserve
4192 lines at eof.
a25198bb 4193
206c98a6
KR
41942020-04-09 Kamil Rytarowski <n54@gmx.com>
4195
4196 * auxv.h (svr4_auxv_parse): New.
4197 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4198 and generic_auxv_parse.
4199 (svr4_auxv_parse): Add.
4200 * obsd-tdep.c: Include "auxv.h".
4201 (obsd_auxv_parse): Remove.
4202 (obsd_init_abi): Remove comment.
4203 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4204 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4205 * nbsd-tdep.c: Include "auxv.h".
4206 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4207
71fbdbaf
TT
42082020-04-08 Tom Tromey <tromey@adacore.com>
4209
4210 * nat/windows-nat.h (last_wait_event): Don't declare.
4211 (wait_for_debug_event): Update comment.
4212 * nat/windows-nat.c (last_wait_event): Now static.
4213
2c1d95e8
TT
42142020-04-08 Tom Tromey <tromey@adacore.com>
4215
4216 * windows-nat.c (wait_for_debug_event): Move to
4217 nat/windows-nat.c.
4218 * nat/windows-nat.h (wait_for_debug_event): Declare.
4219 * nat/windows-nat.c (wait_for_debug_event): Move from
4220 windows-nat.c. No longer static.
4221
d2977bc4
TT
42222020-04-08 Tom Tromey <tromey@adacore.com>
4223
4224 * windows-nat.c (get_windows_debug_event): Use
4225 fetch_pending_stop.
4226 * nat/windows-nat.h (fetch_pending_stop): Declare.
4227 * nat/windows-nat.c (fetch_pending_stop): New function.
4228
e758e19c
TT
42292020-04-08 Tom Tromey <tromey@adacore.com>
4230
4231 * windows-nat.c (windows_continue): Use matching_pending_stop and
4232 continue_last_debug_event.
4233 * nat/windows-nat.h (matching_pending_stop)
4234 (continue_last_debug_event): Declare.
4235 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4236 (matching_pending_stop, continue_last_debug_event): New
4237 functions.
4238
8d30e395
TT
42392020-04-08 Tom Tromey <tromey@adacore.com>
4240
4241 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4242 (handle_exception_result): Move to nat/windows-nat.h.
4243 (DEBUG_EXCEPTION_SIMPLE): Remove.
4244 (windows_nat::handle_ms_vc_exception): New function.
4245 (handle_exception): Move to nat/windows-nat.c.
4246 (get_windows_debug_event): Update.
4247 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4248 nat/windows-nat.c.
4249 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4250 (handle_exception_result): Move from windows-nat.c.
4251 (handle_exception): Declare.
4252 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4253 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4254 windows-nat.c.
4255
29de418d
TT
42562020-04-08 Tom Tromey <tromey@adacore.com>
4257
4258 * windows-nat.c (exception_count, event_count): Remove.
4259 (handle_exception, get_windows_debug_event)
4260 (do_initial_windows_stuff): Update.
4261
a816ba18
TT
42622020-04-08 Tom Tromey <tromey@adacore.com>
4263
4264 * windows-nat.c (windows_nat::handle_load_dll)
4265 (windows_nat::handle_unload_dll): Rename. No longer static.
4266 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4267 Declare.
4268
a00caa12
TT
42692020-04-08 Tom Tromey <tromey@adacore.com>
4270
4271 * complaints.h (stop_whining): Declare at top-level.
4272 (complaint): Don't declare stop_whining.
4273
d41b524f
TT
42742020-04-08 Tom Tromey <tromey@adacore.com>
4275
4276 * windows-nat.c (windows_nat::handle_output_debug_string):
4277 Rename. No longer static.
4278 * nat/windows-nat.h (handle_output_debug_string): Declare.
4279
3c76026d
TT
42802020-04-08 Tom Tromey <tromey@adacore.com>
4281
4282 * windows-nat.c (current_process_handle, current_process_id)
4283 (main_thread_id, last_sig, current_event, last_wait_event)
4284 (current_windows_thread, desired_stop_thread_id, pending_stops)
4285 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4286 (display_selectors, fake_create_process)
4287 (get_windows_debug_event): Update.
4288 * nat/windows-nat.h (current_process_handle, current_process_id)
4289 (main_thread_id, last_sig, current_event, last_wait_event)
4290 (current_windows_thread, desired_stop_thread_id, pending_stops)
4291 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4292 * nat/windows-nat.c (current_process_handle, current_process_id)
4293 (main_thread_id, last_sig, current_event, last_wait_event)
4294 (current_windows_thread, desired_stop_thread_id, pending_stops)
4295 (siginfo_er): New globals. Move from windows-nat.c.
4296
9d8679cc
TT
42972020-04-08 Tom Tromey <tromey@adacore.com>
4298
4299 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4300 (handle_load_dll): Update.
4301 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4302
28688adf
TT
43032020-04-08 Tom Tromey <tromey@adacore.com>
4304
4305 * windows-nat.c (enum thread_disposition_type): Move to
4306 nat/windows-nat.h.
4307 (windows_nat::thread_rec): Rename from thread_rec. No longer
4308 static.
4309 (windows_add_thread, windows_nat_target::fetch_registers)
4310 (windows_nat_target::store_registers, handle_exception)
4311 (windows_nat_target::resume, get_windows_debug_event)
4312 (windows_nat_target::get_tib_address)
4313 (windows_nat_target::thread_name)
4314 (windows_nat_target::thread_alive): Update.
4315 * nat/windows-nat.h (enum thread_disposition_type): Move from
4316 windows-nat.c.
4317 (thread_rec): Declare.
4318
4834dad0
TT
43192020-04-08 Tom Tromey <tromey@adacore.com>
4320
4321 * windows-nat.c: Add "using namespace".
4322 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4323 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4324
65bafd5b
TT
43252020-04-08 Tom Tromey <tromey@adacore.com>
4326
4327 * nat/windows-nat.h (struct windows_thread_info): Declare
4328 destructor.
4329 * nat/windows-nat.c (~windows_thread_info): New.
4330
0a4afda3
TT
43312020-04-08 Tom Tromey <tromey@adacore.com>
4332
4333 PR gdb/22992
4334 * windows-nat.c (current_event): Update comment.
4335 (last_wait_event, desired_stop_thread_id): New globals.
4336 (struct pending_stop): New.
4337 (pending_stops): New global.
4338 (windows_nat_target) <stopped_by_sw_breakpoint>
4339 <supports_stopped_by_sw_breakpoint>: New methods.
4340 (windows_fetch_one_register): Add assertions. Adjust PC.
4341 (windows_continue): Handle pending stops. Suspend other threads
4342 when stepping. Use last_wait_event
4343 (wait_for_debug_event): New function.
4344 (get_windows_debug_event): Use wait_for_debug_event. Handle
4345 pending stops. Queue spurious stops.
4346 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
4347 (windows_nat_target::kill): Use wait_for_debug_event.
4348 * nat/windows-nat.h (struct windows_thread_info)
4349 <stopped_at_software_breakpoint>: New field.
4350 * nat/windows-nat.c (windows_thread_info::resume): Clear
4351 stopped_at_software_breakpoint.
4352
8e61ebec
TT
43532020-04-08 Tom Tromey <tromey@adacore.com>
4354
4355 * windows-nat.c (enum thread_disposition_type): New.
4356 (thread_rec): Replace "get_context" parameter with "disposition";
4357 change type.
4358 (windows_add_thread, windows_nat_target::fetch_registers)
4359 (windows_nat_target::store_registers, handle_exception)
4360 (windows_nat_target::resume, get_windows_debug_event)
4361 (windows_nat_target::get_tib_address)
4362 (windows_nat_target::thread_name)
4363 (windows_nat_target::thread_alive): Update.
4364
98a03287
TT
43652020-04-08 Tom Tromey <tromey@adacore.com>
4366
4367 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
4368 (windows_continue): Use windows_continue::resume.
4369 * nat/windows-nat.h (struct windows_thread_info) <suspend,
4370 resume>: Declare new methods.
4371 * nat/windows-nat.c: New file.
4372 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
4373
7c7411bc
TT
43742020-04-08 Tom Tromey <tromey@adacore.com>
4375
4376 * windows-nat.c (windows_add_thread, windows_delete_thread)
4377 (windows_nat_target::fetch_registers)
4378 (windows_nat_target::store_registers, fake_create_process)
4379 (windows_nat_target::resume, windows_nat_target::resume)
4380 (get_windows_debug_event, windows_nat_target::wait)
4381 (windows_nat_target::pid_to_str)
4382 (windows_nat_target::get_tib_address)
4383 (windows_nat_target::get_ada_task_ptid)
4384 (windows_nat_target::thread_name)
4385 (windows_nat_target::thread_alive): Use lwp, not tid.
4386
2950fdf7
TT
43872020-04-08 Tom Tromey <tromey@adacore.com>
4388
4389 * windows-nat.c (handle_exception)
4390 (windows_nat_target::thread_name): Update.
4391 * nat/windows-nat.h (windows_thread_info): Remove destructor.
4392 <name>: Now unique_xmalloc_ptr.
4393
62fe396b
TT
43942020-04-08 Tom Tromey <tromey@adacore.com>
4395
4396 * windows-nat.c (thread_rec)
4397 (windows_nat_target::fetch_registers): Update.
4398 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
4399 Update comment.
4400 <debug_registers_changed, reload_context>: Now bool.
4401
e9534bd2
TT
44022020-04-08 Tom Tromey <tromey@adacore.com>
4403
4404 * windows-nat.c (windows_add_thread): Use new.
4405 (windows_init_thread_list, windows_delete_thread): Use delete.
4406 (get_windows_debug_event): Update.
4407 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
4408 destructor, and initializers.
4409
ae1f8880
TT
44102020-04-08 Tom Tromey <tromey@adacore.com>
4411
4412 * windows-nat.c (struct windows_thread_info): Remove.
4413 * nat/windows-nat.h: New file.
4414
55a1e039
TT
44152020-04-08 Tom Tromey <tromey@adacore.com>
4416
4417 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
4418 (thread_rec, windows_add_thread, windows_delete_thread)
4419 (windows_continue): Update.
4420
93366324
TT
44212020-04-08 Tom Tromey <tromey@adacore.com>
4422
4423 * windows-nat.c (struct windows_thread_info): Remove typedef.
4424 (thread_head): Remove.
4425 (thread_list): New global.
4426 (thread_rec, windows_add_thread, windows_init_thread_list)
4427 (windows_delete_thread, windows_continue): Update.
4428
0f2265e2
SM
44292020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * windows-tdep.h (windows_init_abi): Add comment.
4432 (cygwin_init_abi): New declaration.
4433 * windows-tdep.c: Split signal enumeration in two, one for
4434 Windows and one for Cygwin.
4435 (windows_gdb_signal_to_target): Only deal with signal of the
4436 Windows OS ABI.
4437 (cygwin_gdb_signal_to_target): New function.
4438 (windows_init_abi): Rename to windows_init_abi_common, don't set
4439 gdb_signal_to_target gdbarch method. Add new new function with
4440 this name.
4441 (cygwin_init_abi): New function.
4442 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
4443 comment. Don't call windows_init_abi.
4444 (amd64_windows_init_abi): Add comment, call windows_init_abi.
4445 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
4446 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
4447 i386_windows_init_abi_common, don't call windows_init_abi. Add
4448 a new function of this name.
4449 (i386_cygwin_init_abi): New function.
4450 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
4451 OS ABI Cygwin.
4452
3810f182
SM
44532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4454
4455 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
4456 parameter.c.
4457 (dwarf2_read_gdb_index): Update.
4458
063f8e80
KR
44592020-04-07 Kamil Rytarowski <n54@gmx.com>
4460
4461 * nbsd-tdep.c: Include "objfiles.h".
4462 (nbsd_skip_solib_resolver): New.
4463 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
4464
85a9510c 44652020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4466
4467 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
4468 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
4469 with DW_LLE_base_addressx are being emitted in DWARFv5.
4470 Add the newly added kind DW_LOC_OFFSET_PAIR also.
4471 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
4472 unsigned integer.
4473
9fc3eaae 44742020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4475
4476 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
4477 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
4478 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
4479 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
4480 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
4481 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
4482 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
4483
4484
41144253 44852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4486
4487 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
4488 (read_loclist_index): New function definition.
4489 (lookup_loclist_base): New function definition.
4490 (read_loclist_header): New function definition.
4491 (dwarf2_cu): Add loclist_base and loclist_header field.
4492 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
4493 (read_full_die_1): Read the value of DW_AT_loclists_base.
4494 (read_attribute_reprocess): Handle DW_FORM_loclistx.
4495 (read_attribute_value): Handle DW_FORM_loclistx.
4496 (skip_one_die): Handle DW_FORM_loclistx.
4497 (loclist_header): New structure declaration.
4498 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
4499
9f4e76a4
SM
45002020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4501
4502 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
4503 constructor. Remove `addr` parameter from other constructor and
4504 add `per_cu` parameter.
4505 * dwarf2/read.c (create_partial_symtab): Update.
4506
25c11aca
TV
45072020-04-07 Tom de Vries <tdevries@suse.de>
4508
4509 PR symtab/25796
4510 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
4511 (partial_die_info::fixup): Inherit has_const_value.
4512
5707e24b
TV
45132020-04-07 Tom de Vries <tdevries@suse.de>
4514
4515 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
4516 symbols without address.
4517
05f00e22
KR
45182020-04-06 Kamil Rytarowski <n54@gmx.com>
4519
4520 * nbsd-nat.h (struct thread_info): Add forward declaration.
4521 (nbsd_nat_target::thread_alive): Add.
4522 (nbsd_nat_target::thread_name): Likewise.
4523 (nbsd_nat_target::update_thread_list): Likewise.
4524 (update_thread_list::post_attach): Likewise.
4525 (post_attach::pid_to_str): Likewise.
4526 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
4527 (nbsd_thread_lister): Add.
4528 (nbsd_nat_target::thread_alive): Likewise.
4529 (nbsd_nat_target::thread_name): Likewise.
4530 (nbsd_add_threads): Likewise.
4531 (update_thread_list::post_attach): Likewise.
4532 (nbsd_nat_target::update_thread_list): Likewise.
4533 (post_attach::pid_to_str): Likewise.
4534
6ee448cc
TT
45352020-04-06 Tom Tromey <tromey@adacore.com>
4536
4537 * ada-valprint.c (print_variant_part): Extract the variant field.
4538 (print_field_values): Use the field as the outer value when
4539 recursing.
4540
dea34e8c
TT
45412020-04-06 Tom Tromey <tromey@adacore.com>
4542
4543 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
4544 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
4545 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
4546 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
4547 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
4548
93689ce9
TT
45492020-04-06 Tom Tromey <tromey@adacore.com>
4550
4551 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
4552 TYPE_CODE_ERROR.
4553
79743962
KR
45542020-04-06 Kamil Rytarowski <n54@gmx.com>
4555
4556 * nbsd-tdep.c: Include "gdbarch.h".
4557 Define enum with NetBSD signal numbers.
4558 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
4559 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
4560 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4561 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
4562 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
4563 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
4564 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
4565 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4566 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
4567 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4568 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4569 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
4570
9e7c9a03
HD
45712020-04-03 Hannes Domani <ssbssa@yahoo.de>
4572
4573 PR gdb/25325
4574 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
4575
d9e49b61
TT
45762020-04-03 Tom Tromey <tromey@adacore.com>
4577
4578 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
4579 Read constant block.
4580
e0fc5c3f
SM
45812020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4582
4583 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
4584 (gdb_bfd_get_full_section_contents): New declaration.
4585 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
4586 * windows-tdep.c (is_linked_with_cygwin_dll): Use
4587 gdb_bfd_get_full_section_contents.
4588
e2ff18a0
SM
45892020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4590
4591 * exec.c (build_section_table): Replace internal_error with
4592 gdb_assert.
4593 (section_table_xfer_memory_partial): Likewise.
4594 * mdebugread.c (parse_partial_symbols): Likewise.
4595 * psymtab.c (lookup_partial_symbol): Likewise.
4596 * utils.c (wrap_here): Likewise.
4597
0830d301
TT
45982020-04-02 Tom Tromey <tromey@adacore.com>
4599
4600 * f-lang.c (build_fortran_types): Use arch_type to initialize
4601 builtin_complex_s32 in the TYPE_CODE_ERROR case.
4602
e7da7f8f
TT
46032020-04-02 Tom Tromey <tromey@adacore.com>
4604
4605 * dwarf2/read.c (partial_die_info::read): Do not create a vector
4606 of attributes.
4607
c90d28ac
AB
46082020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
4609 Bernd Edlinger <bernd.edlinger@hotmail.de>
4610 Tom Tromey <tromey@adacore.com>
4611
4612 * buildsym.c (buildsym_compunit::record_line): Remove
4613 deduplication code.
4614
1aa98955
TV
46152020-04-02 Tom de Vries <tdevries@suse.de>
4616
4617 PR ada/24671
4618 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
4619
d3214198
TV
46202020-04-02 Tom de Vries <tdevries@suse.de>
4621
4622 * dwarf2/read.c (dwarf2_gdb_index_functions,
4623 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
4624 NULL.
4625 * psymtab.c (psym_lookup_global_symbol_language): New function.
4626 (psym_functions): Init psym_lookup_global_symbol_language with
4627 psym_lookup_global_symbol_language.
4628 * symfile-debug.c (debug_sym_quick_functions): Init
4629 lookup_global_symbol_language with NULL.
4630 * symfile.c (set_initial_language): Remove fixme comment.
4631 * symfile.h (struct quick_symbol_functions): Add
4632 lookup_global_symbol_language.
4633 * symtab.c (find_quick_global_symbol_language): New function.
4634 (find_main_name): Use find_quick_global_symbol_language.
4635
2836752f
SM
46362020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
4637
4638 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
4639
64dc2d4b
BE
46402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4641
4642 * buildsym.c (record_line): Fix undefined behavior and preserve
4643 lines at eof.
4644
bbe3dc41
BE
46452020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4646
4647 * buildsym.c (record_line): Fix the resizing condition.
4648
6b4a335b
TT
46492020-04-01 Tom Tromey <tom@tromey.com>
4650
4651 * value.h (value_literal_complex): Add comment.
4652 * valops.c (value_literal_complex): Refer to value.h.
4653
3638a098
TT
46542020-04-01 Tom Tromey <tom@tromey.com>
4655
4656 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
4657 (scalar_type): New rule, from typebase.
4658 (typebase): Use scalar_type. Recognize complex types.
4659 (field_name): Handle FLOAT_KEYWORD.
4660 (ident_tokens): Add _Complex and __complex__.
4661
c34e8714
TT
46622020-04-01 Tom Tromey <tom@tromey.com>
4663
4664 PR exp/25299:
4665 * valarith.c (promotion_type, complex_binop): New functions.
4666 (scalar_binop): Handle complex numbers. Use promotion_type.
4667 (value_pos, value_neg, value_complement): Handle complex numbers.
4668
fa649bb7
TT
46692020-04-01 Tom Tromey <tom@tromey.com>
4670
4671 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
4672 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
4673 (parse_number): Handle complex numbers.
4674
981c08ce
TT
46752020-04-01 Tom Tromey <tom@tromey.com>
4676
4677 * c-valprint.c (c_decorations): Change complex suffix to "i".
4678
4c99290d
TT
46792020-04-01 Tom Tromey <tom@tromey.com>
4680
4681 * valprint.c (generic_value_print_complex): Use accessors.
4682 * value.h (value_real_part, value_imaginary_part): Declare.
4683 * valops.c (value_real_part, value_imaginary_part): New
4684 functions.
4685 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
4686
5b930b45
TT
46872020-04-01 Tom Tromey <tom@tromey.com>
4688
4689 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
4690 (read_range_type): Update.
4691 * mdebugread.c (basic_type): Update.
4692 * go-lang.c (build_go_types): Use init_complex_type.
4693 * gdbtypes.h (struct main_type) <complex_type>: New member.
4694 (init_complex_type): Update.
4695 (arch_complex_type): Don't declare.
4696 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
4697 Make name if none given. Use alloc_type_copy. Look for cached
4698 complex type.
4699 (arch_complex_type): Remove.
4700 (gdbtypes_post_init): Use init_complex_type.
4701 * f-lang.c (build_fortran_types): Use init_complex_type.
4702 * dwarf2/read.c (read_base_type): Update.
4703 * d-lang.c (build_d_types): Use init_complex_type.
4704 * ctfread.c (read_base_type): Update.
4705
53cccef1
TBA
47062020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4707
4708 * infrun.c (stop_all_threads): Update assertion, plus when
4709 stopping threads, take into account that we might be trying
4710 to stop an all-stop target.
4711 (stop_waiting): Call 'stop_all_threads' if there exists a
4712 non-stop target.
4713
a0714d30
TBA
47142020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4715
4716 * target.h (exists_non_stop_target): New function declaration.
4717 * target.c (exists_non_stop_target): New function.
4718
60e22c1e
HD
47192020-04-01 Hannes Domani <ssbssa@yahoo.de>
4720
4721 PR gdb/24789
4722 * eval.c (is_integral_or_integral_reference): New function.
4723 (evaluate_subexp_standard): Allow integer references in
4724 pointer arithmetic.
4725
e139a727
TBA
47262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4727
4728 * remote.c (remote_target::remote_parse_stop_reply): Remove the
4729 check for no ptid in the stop reply when the target is non-stop.
4730
e0802d59
TT
47312020-04-01 Tom Tromey <tromey@adacore.com>
4732
4733 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
4734 "name" parameter to rvalue reference. Initialize m_name_holder.
4735 <lookup_name_info>: New overloads.
4736 <name>: Return gdb::string_view.
4737 <c_str>: New method.
4738 <make_ignore_params>: Update.
4739 <search_name_hash>: Update.
4740 <language_lookup_name>: Return const char *.
4741 <m_name>: Change type.
4742 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
4743 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
4744 (lookup_name_info::match_any): Update.
4745 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
4746 Update.
4747 * minsyms.c (linkage_name_str): Update.
4748 * language.c (default_symbol_name_matcher): Update.
4749 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
4750 Update.
4751 * ada-lang.c (ada_fold_name): Change parameter to string_view.
4752 (ada_lookup_name_info::ada_lookup_name_info): Update.
4753 (literal_symbol_name_matcher): Update.
4754
8c072cb6
TT
47552020-04-01 Tom Tromey <tromey@adacore.com>
4756
4757 * psymtab.c (psymtab_search_name): Remove function.
4758 (psym_lookup_symbol): Create search name and lookup name here.
4759 (lookup_partial_symbol): Remove "name" parameter; add
4760 lookup_name.
4761 (psym_expand_symtabs_for_function): Update.
4762
6f29a534
TT
47632020-03-31 Joel Jones <joelkevinjones@gmail.com>
4764
4765 PR tui/25597:
4766 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
4767
af62665e
TT
47682020-03-31 Tom Tromey <tromey@adacore.com>
4769
4770 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
4771 memcpy.
4772
d1a89da5
NC
47732020-03-30 Nelson Chu <nelson.chu@sifive.com>
4774
4775 * features/riscv/32bit-csr.xml: Regenerated.
4776 * features/riscv/64bit-csr.xml: Regenerated.
4777
d8af9068
TT
47782020-03-30 Tom Tromey <tromey@adacore.com>
4779
4780 * ada-valprint.c (print_variant_part): Update.
4781 * ada-lang.h (ada_which_variant_applies): Update.
4782 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
4783 outer_valaddr parameters; replace with "outer" value parameter.
4784 (to_fixed_variant_branch_type): Update.
4785
227c0bf4
PFC
47862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4787
4788 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
4789 <list>. Remove inclusion of observable.h.
4790 (PPC_DEBUG_CURRENT_VERSION): Move up define.
4791 (struct arch_lwp_info): New struct.
4792 (class ppc_linux_dreg_interface): New class.
4793 (struct ppc_linux_process_info): New struct.
4794 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
4795 <low_new_clone, low_forget_process, low_prepare_to_resume>
4796 <copy_thread_dreg_state, mark_thread_stale>
4797 <mark_debug_registers_changed, register_hw_breakpoint>
4798 <clear_hw_breakpoint, register_wp, clear_wp>
4799 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
4800 <num_memory_accesses, get_trigger_type>
4801 <create_watchpoint_request, hwdebug_point_cmp>
4802 <init_arch_lwp_info, get_arch_lwp_info>
4803 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
4804 methods.
4805 <struct ptid_hash>: New inner struct.
4806 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
4807 members.
4808 (saved_dabr_value, hwdebug_info, max_slots_number)
4809 (struct hw_break_tuple, struct thread_points, ppc_threads)
4810 (have_ptrace_hwdebug_interface)
4811 (hwdebug_find_thread_points_by_tid)
4812 (hwdebug_insert_point, hwdebug_remove_point): Remove.
4813 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
4814 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
4815 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
4816 use m_dreg_interface.
4817 (hwdebug_point_cmp): Change to...
4818 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
4819 reference arguments instead of pointers.
4820 (ppc_linux_nat_target::ranged_break_num_registers): Use
4821 m_dreg_interface.
4822 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
4823 m_dreg_interface. Call register_hw_breakpoint.
4824 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
4825 m_dreg_interface. Call clear_hw_breakpoint.
4826 (get_trigger_type): Change to...
4827 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
4828 comment.
4829 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
4830 use m_dreg_interface. Call register_hw_breakpoint.
4831 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
4832 use m_dreg_interface. Call clear_hw_breakpoint.
4833 (can_use_watchpoint_cond_accel): Change to...
4834 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
4835 method. Update comment, use m_dreg_interface and
4836 m_process_info.
4837 (calculate_dvc): Change to...
4838 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
4839 m_dreg_interface.
4840 (num_memory_accesses): Change to...
4841 (ppc_linux_nat_target::num_memory_accesses): ...this method.
4842 (check_condition): Change to...
4843 (ppc_linux_nat_target::check_condition): ...this method.
4844 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
4845 comment, use m_dreg_interface.
4846 (create_watchpoint_request): Change to...
4847 (ppc_linux_nat_target::create_watchpoint_request): ...this
4848 method. Use m_dreg_interface.
4849 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
4850 m_dreg_interface. Call register_hw_breakpoint or register_wp.
4851 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
4852 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
4853 (ppc_linux_nat_target::low_forget_process)
4854 (ppc_linux_nat_target::low_new_fork)
4855 (ppc_linux_nat_target::low_new_clone)
4856 (ppc_linux_nat_target::low_delete_thread)
4857 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
4858 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
4859 only call mark_thread_stale.
4860 (ppc_linux_thread_exit): Remove.
4861 (ppc_linux_nat_target::stopped_data_address): Change to...
4862 (ppc_linux_nat_target::low_stopped_data_address): This. Add
4863 comment, use m_dreg_interface and m_thread_hw_breakpoints.
4864 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
4865 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
4866 comment. Call low_stopped_data_address.
4867 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
4868 m_dreg_interface.
4869 (ppc_linux_nat_target::masked_watch_num_registers): Use
4870 m_dreg_interface.
4871 (ppc_linux_nat_target::copy_thread_dreg_state)
4872 (ppc_linux_nat_target::mark_thread_stale)
4873 (ppc_linux_nat_target::mark_debug_registers_changed)
4874 (ppc_linux_nat_target::register_hw_breakpoint)
4875 (ppc_linux_nat_target::clear_hw_breakpoint)
4876 (ppc_linux_nat_target::register_wp)
4877 (ppc_linux_nat_target::clear_wp)
4878 (ppc_linux_nat_target::init_arch_lwp_info)
4879 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
4880 (_initialize_ppc_linux_nat): Remove observer callback.
4881
4db10d8f
PFC
48822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4883
4884 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
4885 (ppc_linux_nat_target::auxv_parse)
4886 (ppc_linux_nat_target::read_description)
4887 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4888 Move up.
4889
1310c1b0
PFC
48902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4891
4892 * linux-nat.h (low_new_clone): New method.
4893 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
4894
69b037c3
SM
48952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
4898 (dbx_expand_psymtab): ... this.
4899 (start_psymtab): Update.
4900 * mdebugread.c (psymtab_to_symtab_1): Rename to...
4901 (mdebug_expand_psymtab): ... this.
4902 (parse_partial_symbols): Update.
4903 (new_psymtab): Update.
4904 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
4905 (xcoff_expand_psymtab): ... this.
4906 (xcoff_start_psymtab): Update.
4907
48993951
SM
49082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4909
4910 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
4911 <expand_dependencies>: ... this.
4912 * psymtab.c (partial_symtab::read_dependencies): Rename to...
4913 (partial_symtab::expand_dependencies): ... this.
4914 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
4915 Update.
4916 (dwarf2_psymtab::expand_psymtab): Update.
4917 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4918 * mdebugread.c (psymtab_to_symtab_1): Update.
4919 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4920
3ad83046
SM
49212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * psympriv.h (discard_psymtab): Remove.
4924 * dbxread.c (dbx_end_psymtab): Update.
4925 * xcoffread.c (xcoff_end_psymtab): Update.
4926
4d1b9ab6
TT
49272020-03-28 Tom Tromey <tom@tromey.com>
4928
4929 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
4930 comment.
4931
f1749218
TT
49322020-03-28 Tom Tromey <tom@tromey.com>
4933
4934 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4935
ebea7626
HD
49362020-03-27 Hannes Domani <ssbssa@yahoo.de>
4937
4938 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4939
a879b4d5
JB
49402020-03-26 John Baldwin <jhb@FreeBSD.org>
4941
4942 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
4943
0826b30a
TT
49442020-03-26 Tom Tromey <tom@tromey.com>
4945
4946 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
4947 (mark_common_block_symbol_computed, read_tag_string_type)
4948 (attr_to_dynamic_prop, read_subrange_type): Update.
4949 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
4950 to be methods on struct attribute.
4951 (skip_one_die, process_imported_unit_die, read_namespace_alias)
4952 (read_call_site_scope, partial_die_info::read)
4953 (partial_die_info::read, lookup_die_type, follow_die_ref):
4954 Update.
4955 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
4956 from dwarf2_get_ref_die_offset.
4957 (attribute::constant_value): New method, from
4958 dwarf2_get_attr_constant_value.
4959 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
4960 Declare method.
4961 <constant_value>: New method.
4962
2b2558bf
TT
49632020-03-26 Tom Tromey <tom@tromey.com>
4964
4965 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
4966 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
4967 (dwarf_type_encoding_name): Move to stringify.c.
4968 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
4969 * dwarf2/stringify.c: New file.
4970 * dwarf2/stringify.h: New file.
4971
eeb64781
TT
49722020-03-26 Tom Tromey <tom@tromey.com>
4973
4974 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
4975 Rewrite.
4976
a39fdb41
TT
49772020-03-26 Tom Tromey <tom@tromey.com>
4978
4979 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
4980 methods.
4981 * dwarf2/read.c (lookup_addr_base): Move to die.h.
4982 (lookup_ranges_base): Likewise.
4983 (read_cutu_die_from_dwo, read_full_die_1): Update.
4984
436c571c
TT
49852020-03-26 Tom Tromey <tom@tromey.com>
4986
4987 * dwarf2/read.c (read_import_statement, read_file_scope)
4988 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
4989 (read_lexical_block_scope, read_call_site_scope)
4990 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
4991 (handle_struct_member_die, process_structure_scope)
4992 (update_enumeration_type_from_children)
4993 (process_enumeration_scope, read_array_type, read_common_block)
4994 (read_namespace, read_module, read_subroutine_type): Update.
4995 (sibling_die): Remove.
4996
052c8bb8
TT
49972020-03-26 Tom Tromey <tom@tromey.com>
4998
4999 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5000 (build_type_psymtabs_reader, read_structure_type)
5001 (read_enumeration_type, read_full_die_1): Update.
5002 (dwarf2_attr_no_follow): Move to die.h.
5003 * dwarf2/die.h (struct die_info) <attr>: New method.
5004
2b24b6e4
TT
50052020-03-26 Tom Tromey <tom@tromey.com>
5006
5007 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5008 <base_address>: Now an optional.
5009 (dwarf2_find_base_address, dwarf2_rnglists_process)
5010 (dwarf2_ranges_process, fill_in_loclist_baton)
5011 (dwarf2_symbol_mark_computed): Update.
5012
c2d50fd0
TT
50132020-03-26 Tom Tromey <tom@tromey.com>
5014
5015 * dwarf2/read.c (struct die_info): Move to die.h.
5016 * dwarf2/die.h: New file.
5017
0df7ad3a
TT
50182020-03-26 Tom Tromey <tom@tromey.com>
5019
5020 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5021 * dwarf2/read.c
5022 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5023 Move to line-header.c.
5024 (read_checked_initial_length_and_offset, read_formatted_entries):
5025 Likewise.
5026 (dwarf_decode_line_header): Split into two.
5027 * dwarf2/line-header.c
5028 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5029 Move from read.c.
5030 (read_checked_initial_length_and_offset, read_formatted_entries):
5031 Likewise.
5032 (dwarf_decode_line_header): New function, split from read.c.
5033
86c0bb4c
TT
50342020-03-26 Tom Tromey <tom@tromey.com>
5035
5036 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5037 Declare method.
5038 * dwarf2/read.c (read_attribute_value): Update.
5039 (dwarf2_per_objfile::read_line_string): Rename from
5040 read_indirect_line_string.
5041 (read_formatted_entries): Update.
5042
2ef46c2f
TT
50432020-03-26 Tom Tromey <tom@tromey.com>
5044
5045 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5046 variable.
5047
4f9c1eda
TT
50482020-03-26 Tom Tromey <tom@tromey.com>
5049
5050 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5051 const.
5052 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5053 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5054 parameter const.
5055
5a0e026f
TT
50562020-03-26 Tom Tromey <tom@tromey.com>
5057
5058 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5059 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5060 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5061 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5062
8844c11b
TT
50632020-03-26 Tom Tromey <tom@tromey.com>
5064
5065 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5066 file_names_size, file_full_name, file_file_name>: Use const.
5067 <file_name_at, file_names>: Add const overload.
5068 * dwarf2/line-header.c (line_header::file_file_name)
5069 (line_header::file_full_name): Update.
5070
c90ec28a
TT
50712020-03-26 Tom Tromey <tom@tromey.com>
5072
5073 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5074 (macro_start_file, consume_improper_spaces)
5075 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5076 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5077 (dwarf_decode_macros): Move to macro.c.
5078 * dwarf2/macro.c: New file.
5079 * dwarf2/macro.h: New file.
5080 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5081
4f44ae6c
TT
50822020-03-26 Tom Tromey <tom@tromey.com>
5083
5084 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5085 method.
5086 * dwarf2/section.c: New method. From
5087 read_indirect_string_at_offset_from.
5088 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5089 (read_indirect_string_at_offset_from): Move to section.c.
5090 (read_indirect_string_at_offset): Rewrite.
5091 (read_indirect_line_string_at_offset): Remove.
5092 (read_indirect_string, read_indirect_line_string)
5093 (dwarf_decode_macro_bytes): Update.
5094
a0194fa8
TT
50952020-03-26 Tom Tromey <tom@tromey.com>
5096
5097 * dwarf2/section.h (struct dwarf2_section_info)
5098 <overload_complaint>: Declare.
5099 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5100 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5101 Rename from dwarf2_section_buffer_overflow_complaint.
5102 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5103 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5104
3d27bbdb
TT
51052020-03-26 Tom Tromey <tom@tromey.com>
5106
5107 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5108 Declare.
5109 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5110 Move from read.c.
5111 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5112 to section.c.
5113
9eac9650
TT
51142020-03-26 Tom Tromey <tom@tromey.com>
5115
5116 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5117
bf80d710
TT
51182020-03-26 Tom Tromey <tom@tromey.com>
5119
5120 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5121 "builder".
5122 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5123 parameter.
5124 (dwarf_decode_macros): Update.
5125
0314b390
TT
51262020-03-26 Tom Tromey <tom@tromey.com>
5127
5128 * dwarf2/read.c (read_attribute_value): Update.
5129 (read_indirect_string_from_dwz): Move to dwz.c; change into
5130 method.
5131 (dwarf_decode_macro_bytes): Update.
5132 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5133 * dwarf2/dwz.c: New file.
5134 * Makefile.in (COMMON_SFILES): Add dwz.c.
5135
9fda78b6
TT
51362020-03-26 Tom Tromey <tom@tromey.com>
5137
5138 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5139 * dwarf2/read.c: Add include.
5140 * dwarf2/index-write.c: Add include.
5141 * dwarf2/index-cache.c: Add include.
5142 * dwarf2/dwz.h: New file.
5143
33aa3c10
TT
51442020-03-25 Tom Tromey <tom@tromey.com>
5145
5146 * compile/compile-object-load.c (get_out_value_type): Mention
5147 correct symbol name in error message.
5148
d503b685
HD
51492020-03-25 Hannes Domani <ssbssa@yahoo.de>
5150
5151 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5152
7b1eff95
TV
51532020-03-25 Tom de Vries <tdevries@suse.de>
5154
5155 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5156 * symmisc.c (dump_symtab_1): Print user and includes fields.
5157 (maintenance_info_symtabs): Same.
5158
dd895392
AB
51592020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 PR gdb/25534
5162 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5163 (riscv_regcache_cooked_write): New function.
5164 (riscv_push_dummy_call): Use new function.
5165 (riscv_return_value): Likewise.
5166
5ab2fbf1
SM
51672020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5168
5169 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5170 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5171 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5172 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5173 * infrun.c (follow_fork): Likewise.
5174 (follow_fork_inferior): Likewise.
5175 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5176 * linux-nat.h (class linux_nat_target): Likewise.
5177 * remote.c (class remote_target) <follow_fork>: Likewise.
5178 (remote_target::follow_fork): Likewise.
5179 * target-delegates.c: Re-generate.
5180 * target.c (default_follow_fork): Likewise.
5181 (target_follow_fork): Likewise.
5182 * target.h (struct target_ops) <follow_fork>: Likewise.
5183 (target_follow_fork): Likewise.
5184
a64fafb5
TV
51852020-03-24 Tom de Vries <tdevries@suse.de>
5186
5187 * psymtab.c (maintenance_info_psymtabs): Print user field.
5188
fe26d3a3
TT
51892020-03-20 Tom Tromey <tromey@adacore.com>
5190
5191 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5192 const.
5193 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5194 const.
5195
c884cc46
SM
51962020-03-20 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * ptrace.m4: Don't check for ptrace declaration.
5199 * config.in: Re-generate.
5200 * configure: Re-generate.
5201 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5202 not defined.
5203
1ff700c2
KR
52042020-03-20 Kamil Rytarowski <n54@gmx.com>
5205
5206 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5207 `PTRACE_TYPE_RET'.
5208 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5209 * sparc-nat.c (gdb_ptrace): Likewise.
5210 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5211
f7d4f0b1
TT
52122020-03-20 Tom Tromey <tromey@adacore.com>
5213
5214 * c-exp.y (lex_one_token): Fix assert.
5215
f67210ff
TT
52162020-03-20 Tom Tromey <tromey@adacore.com>
5217
5218 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5219 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5220 strncpy call.
5221
1773be9e
TT
52222020-03-20 Tom Tromey <tromey@adacore.com>
5223
5224 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5225
70304be9
TT
52262020-03-20 Tom Tromey <tromey@adacore.com>
5227
5228 * ada-valprint.c (print_variant_part): Remove parameters; switch
5229 to value-based API.
5230 (print_field_values): Likewise.
5231 (ada_val_print_struct_union): Likewise.
5232 (ada_value_print_1): Update.
5233
9faa006d
KR
52342020-03-20 Kamil Rytarowski <n54@gmx.com>
5235
5236 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5237 nbsd_nat_target instead of inf_ptrace_target.
5238 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5239 nbsd_nat_target.
5240
4a90f062
KR
52412020-03-20 Kamil Rytarowski <n54@gmx.com>
5242
5243 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5244 it to the ptrace call.
5245 * (store_registers): Likewise.
5246
52472020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5248
5249 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5250 it to the ptrace call.
5251 * (store_registers): Likewise.
5252
2d07da27
LM
52532020-03-19 Luis Machado <luis.machado@linaro.org>
5254
5255 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5256 valid, fetch vg value from ptrace.
5257
f09db380
KR
52582020-03-19 Kamil Rytarowski <n54@gmx.com>
5259 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5260 * inf-ptrace.c: Likewise.
5261 * (gdb_ptrace): Add.
5262 * (inf_ptrace_target::resume): Update.
5263 * (inf_ptrace_target::xfer_partial): Likewise.
5264 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5265 * (inf_ptrace_peek_poke): Update.
5266
fcc7376e
KR
52672020-03-19 Kamil Rytarowski <n54@gmx.com>
5268
5269 * x86-bsd-nat.c (gdb_ptrace): New.
5270 * (x86bsd_dr_set): Add new argument `ptid'.
5271 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5272 x86bsd_dr_set_addr): Update.
5273
cada5fc9
AB
52742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5275
5276 * remote.c (remote_target::process_stop_reply): Handle events for
5277 all threads differently.
5278
19a2740f
AB
52792020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * completer.c (completion_tracker::remove_completion): Define new
5282 function.
5283 * completer.h (completion_tracker::remove_completion): Declare new
5284 function.
5285 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5286 when adding a C++ function symbol.
5287
724fd9ba
AB
52882020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * completer.c (completion_tracker::completion_hash_entry): Define
5291 new class.
5292 (advance_to_filename_complete_word_point): Call
5293 recompute_lowest_common_denominator.
5294 (completion_tracker::completion_tracker): Call discard_completions
5295 to setup the hash table.
5296 (completion_tracker::discard_completions): Allow for being called
5297 from the constructor, pass new equal function, and element deleter
5298 when constructing the hash table. Initialise new class member
5299 variables.
5300 (completion_tracker::maybe_add_completion): Remove use of
5301 m_entries_vec, and store more information into m_entries_hash.
5302 (completion_tracker::recompute_lcd_visitor): New function, most
5303 content taken from...
5304 (completion_tracker::recompute_lowest_common_denominator):
5305 ...here, this now just visits each item in the hash calling the
5306 above visitor.
5307 (completion_tracker::build_completion_result): Remove use of
5308 m_entries_vec, call recompute_lowest_common_denominator.
5309 * completer.h (completion_tracker::have_completions): Remove use
5310 of m_entries_vec.
5311 (completion_tracker::completion_hash_entry): Declare new class.
5312 (completion_tracker::recompute_lowest_common_denominator): Change
5313 function signature.
5314 (completion_tracker::recompute_lcd_visitor): Declare new function.
5315 (completion_tracker::m_entries_vec): Delete.
5316 (completion_tracker::m_entries_hash): Initialize to NULL.
5317 (completion_tracker::m_lowest_common_denominator_valid): New
5318 member variable.
5319 (completion_tracker::m_lowest_common_denominator_max_length): New
5320 member variable.
5321
5a82b8a1
KR
53222020-03-17 Kamil Rytarowski <n54@gmx.com>
5323
5324 * regformats/regdef.h: Put reg in gdb namespace.
5325
fb516a69
KR
53262020-03-17 Kamil Rytarowski <n54@gmx.com>
5327
5328 * i386-bsd-nat.c (gdb_ptrace): New.
5329 * (i386bsd_fetch_inferior_registers,
5330 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5331 * (i386bsd_fetch_inferior_registers,
5332 i386bsd_store_inferior_registers) Use gdb_ptrace.
5333
1c0aa1fb
KR
53342020-03-17 Kamil Rytarowski <n54@gmx.com>
5335
5336 * amd64-bsd-nat.c (gdb_ptrace): New.
5337 * (amd64bsd_fetch_inferior_registers,
5338 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5339 * (amd64bsd_fetch_inferior_registers,
5340 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5341
5ccd2fb7
KR
53422020-03-17 Kamil Rytarowski <n54@gmx.com>
5343
5344 * user-regs.c (user_reg::read): Rename to...
5345 (user_reg::xread): ...this.
5346 * (append_user_reg): Rename argument `read' to `xread'.
5347 * (user_reg_add_builtin): Likewise.
5348 * (user_reg_add): Likewise.
5349 * (value_of_user_reg): Likewise.
5350
2108a63a
KR
53512020-03-17 Kamil Rytarowski <n54@gmx.com>
5352
5353 * sparc-nat.c (gdb_ptrace): New.
5354 * sparc-nat.c (sparc_fetch_inferior_registers)
5355 (sparc_store_inferior_registers) Remove obsolete comment.
5356 * sparc-nat.c (sparc_fetch_inferior_registers)
5357 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
5358 * sparc-nat.c (sparc_fetch_inferior_registers)
5359 (sparc_store_inferior_registers) Use gdb_ptrace.
5360
a225c9a8
KR
53612020-03-17 Kamil Rytarowski <n54@gmx.com>
5362
5363 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
5364 it to the ptrace call.
5365 * sh-nbsd-nat.c (store_registers): Likewise.
5366
98097623
KR
53672020-03-17 Kamil Rytarowski <n54@gmx.com>
5368
5369 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
5370 nbsd_nat_target instead of inf_ptrace_target.
5371 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5372 nbsd_nat_target.
5373
9e38d619
KR
53742020-03-17 Kamil Rytarowski <n54@gmx.com>
5375
5376 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
5377
a2ecbe9f
KR
53782020-03-17 Kamil Rytarowski <n54@gmx.com>
5379
5380 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
5381 <sys/sysctl.h>.
5382 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
5383
58990295
TV
53842020-03-17 Tom de Vries <tdevries@suse.de>
5385
5386 PR gdb/23710
5387 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
5388 fields.
5389 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
5390 fields.
5391 (process_imported_unit_die): Skip import of c++ CUs.
5392
771dd3a8
TT
53932020-03-16 Tom Tromey <tom@tromey.com>
5394
5395 * p-valprint.c (pascal_object_print_value): Initialize
5396 base_value.
5397
817a7585
AK
53982020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
5399 Shahab Vahedi <shahab@synopsys.com>
5400
5401 * Makefile.in: Add arch/arc.o
5402 * configure.tgt: Likewise.
5403 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
5404 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 5405 (arc_read_description): New function to cache target descriptions.
817a7585
AK
5406 * arc-tdep.h (arc_read_description): Add proto type.
5407 * arch/arc.c: New file.
5408 * arch/arc.h: Likewise.
5409 * features/Makefile: Replace old target descriptions with new.
5410 * features/arc-arcompact.c: Remove.
5411 * features/arc-arcompact.xml: Likewise.
5412 * features/arc-v2.c: Likewise
5413 * features/arc-v2.xml: Likewise
5414 * features/arc/aux-arcompact.xml: New file.
5415 * features/arc/aux-v2.xml: Likewise.
5416 * features/arc/core-arcompact.xml: Likewise.
5417 * features/arc/core-v2.xml: Likewise.
5418 * features/arc/aux-arcompact.c: Generate.
5419 * features/arc/aux-v2.c: Likewise.
5420 * features/arc/core-arcompact.c: Likewise.
5421 * features/arc/core-v2.c: Likewise.
5422 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
5423
67430cd0
TT
54242020-03-16 Tom Tromey <tromey@adacore.com>
5425
5426 PR gdb/25663:
5427 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
5428 putting value into bcache.
5429
30efb6c7
SM
54302020-03-16 Simon Marchi <simon.marchi@efficios.com>
5431
5432 PR gdb/21500
5433 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
5434 to...
5435 (amd64_windows_init_abi_common): ... this. Don't set size of
5436 long type.
5437 (amd64_windows_init_abi): New function.
5438 (amd64_cygwin_init_abi): New function.
5439 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
5440 the Cygwin OS ABI.
5441 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
5442 comment.
5443
8db52437
SM
54442020-03-16 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
5447 * windows-tdep.c (CYGWIN_DLL_NAME): New.
5448 (pe_import_directory_entry): New struct type.
5449 (is_linked_with_cygwin_dll): New function.
5450 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
5451 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
5452 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
5453
5982a56a
SM
54542020-03-16 Simon Marchi <simon.marchi@efficios.com>
5455
5456 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
5457 i386_cygwin_core_osabi_sniffer.
5458
7a1998df
SM
54592020-03-16 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * i386-cygwin-tdep.c: Rename to...
5462 * i386-windows-tdep.c: ... this.
5463 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
5464 i386-windows-tdep.c.
5465 * configure.tgt: Likewise.
5466
053205cc
SM
54672020-03-16 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
5470 * osabi.c (gdb_osabi_names): Add "Windows".
5471 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
5472 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
5473 (i386_cygwin_core_osabi_sniffer): New function, extracted from
5474 i386_cygwin_osabi_sniffer.
5475 (_initialize_i386_cygwin_tdep): Register OS ABI
5476 GDB_OSABI_WINDOWS for i386.
5477 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
5478 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
5479 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
5480 for x86-64.
5481 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
5482 when the target matches '*-*-mingw*'.
5483
fe4b2ee6
SM
54842020-03-16 Simon Marchi <simon.marchi@efficios.com>
5485
5486 * defs.h (enum gdb_osabi): Move to...
5487 * osabi.h (enum gdb_osabi): ... here.
5488 * gdbarch.sh: Include osabi.h in gdbarch.h.
5489 * gdbarch.h: Re-generate.
5490
cb9b645d
SM
54912020-03-16 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
5494 function.
5495 (_initialize_amd64_windows_tdep): Register osabi sniffer.
5496
3293bbaf
TT
54972020-03-14 Tom Tromey <tom@tromey.com>
5498
5499 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
5500 for C++.
5501 (c_type_print_modifier): Likewise. Add "language" parameter.
5502 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
5503 (c_type_print_base_1): Update.
5504 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
5505 constants.
5506 * type-stack.c (type_stack::insert): Handle tp_atomic and
5507 tp_restrict.
5508 (type_stack::follow_type_instance_flags): Likewise.
5509 (type_stack::follow_types): Likewise. Merge type-following code.
5510 * c-exp.y (RESTRICT, ATOMIC): New tokens.
5511 (space_identifier, cv_with_space_id)
5512 (const_or_volatile_or_space_identifier_noopt)
5513 (const_or_volatile_or_space_identifier): Remove.
5514 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
5515 rules.
5516 (ptr_operator, typebase): Update.
5517 (enum token_flag) <FLAG_C>: New constant.
5518 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
5519 "_Atomic".
5520 (lex_one_token): Handle FLAG_C.
5521
154151a6
KR
55222020-03-14 Kamil Rytarowski <n54@gmx.com>
5523
5524 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
5525 it to the ptrace call.
5526 * m68k-bsd-nat.c (store_registers): Likewise.
5527
bc107784
KR
55282020-03-14 Kamil Rytarowski <n54@gmx.com>
5529
5530 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
5531 gdb_byte *.
5532 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
5533 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
5534 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
5535
01a80117
KR
55362020-03-14 Kamil Rytarowski <n54@gmx.com>
5537
5538 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
5539 nbsd_nat_target instead of inf_ptrace_target.
5540 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5541 nbsd_nat_target.
5542
f90280ca
KR
55432020-03-14 Kamil Rytarowski <n54@gmx.com>
5544
5545 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
5546 register_t.
5547
6def66f1
KR
55482020-03-14 Kamil Rytarowski <n54@gmx.com>
5549
5550 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
5551 it to the ptrace call.
5552 * alpha-bsd-nat.c (store_registers): Likewise.
5553
66eaca97
KR
55542020-03-14 Kamil Rytarowski <n54@gmx.com>
5555
5556 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
5557 includes.
5558 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
5559 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5560 fill_fpregset): Likewise.
5561
4fed520b
KR
55622020-03-14 Kamil Rytarowski <n54@gmx.com>
5563
5564 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
5565 nbsd_nat_target instead of inf_ptrace_target.
5566 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5567 nbsd_nat_target.
5568
2190cf06
KR
55692020-03-14 Kamil Rytarowski <n54@gmx.com>
5570
5571 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
5572 register_t.
5573
75c56d3d
KR
55742020-03-14 Kamil Rytarowski <n54@gmx.com>
5575
5576 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
5577 it to the ptrace call.
5578 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
5579 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
5580 * arm-nbsd-nat.c (store_register): Likewise.
5581 * arm-nbsd-nat.c (store_regs): Likewise.
5582 * arm-nbsd-nat.c (store_fp_register): Likewise.
5583 * arm-nbsd-nat.c (store_fp_regs): Likewise.
5584
6018d381
KR
55852020-03-14 Kamil Rytarowski <n54@gmx.com>
5586
5587 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
5588 nbsd_nat_target instead of inf_ptrace_target.
5589 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5590 nbsd_nat_target.
5591
013f99f0
KR
55922020-03-14 Kamil Rytarowski <n54@gmx.com>
5593
5594 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
5595 it to the ptrace call.
5596 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
5597
12753073
KR
55982020-03-14 Kamil Rytarowski <n54@gmx.com>
5599
6227b330
KR
5600 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
5601 it to the ptrace call.
5602 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
5603
56042020-03-14 Kamil Rytarowski <n54@gmx.com>
5605
5606 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
5607 gdb_byte *.
12753073
KR
5608 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
5609
d5be5fa4
KR
56102020-03-14 Kamil Rytarowski <n54@gmx.com>
5611
5612 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
5613 instead of inf_ptrace_target.
5614 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5615 nbsd_nat_target.
5616
8110f842
KR
56172020-03-14 Kamil Rytarowski <n54@gmx.com>
5618
5619 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5620 register_t.
5621
52feded7
KR
56222020-03-14 Kamil Rytarowski <n54@gmx.com>
5623
5624 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5625 register_t.
5626
25567eee
KR
56272020-03-14 Kamil Rytarowski <n54@gmx.com>
5628
5629 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
5630 register_t.
5631
426a9c18
TT
56322020-03-13 Tom Tromey <tom@tromey.com>
5633
5634 * value.h (val_print): Don't declare.
5635 * valprint.h (val_print_array_elements)
5636 (val_print_scalar_formatted, generic_val_print): Don't declare.
5637 * valprint.c (generic_val_print_array): Take a struct value.
5638 (generic_val_print_ptr, generic_val_print_memberptr)
5639 (generic_val_print_bool, generic_val_print_int)
5640 (generic_val_print_char, generic_val_print_complex)
5641 (generic_val_print): Remove.
5642 (generic_value_print): Update.
5643 (do_val_print): Remove unused parameters. Don't call
5644 la_val_print.
5645 (val_print): Remove.
5646 (common_val_print): Update. Don't call value_check_printable.
5647 (val_print_scalar_formatted, val_print_array_elements): Remove.
5648 * rust-lang.c (rust_val_print): Remove.
5649 (rust_language_defn): Update.
5650 * p-valprint.c (pascal_val_print): Remove.
5651 (pascal_value_print_inner): Update.
5652 (pascal_object_print_val_fields, pascal_object_print_val):
5653 Remove.
5654 (pascal_object_print_static_field): Update.
5655 * p-lang.h (pascal_val_print): Don't declare.
5656 * p-lang.c (pascal_language_defn): Update.
5657 * opencl-lang.c (opencl_language_defn): Update.
5658 * objc-lang.c (objc_language_defn): Update.
5659 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
5660 * m2-lang.h (m2_val_print): Don't declare.
5661 * m2-lang.c (m2_language_defn): Update.
5662 * language.h (struct language_defn) <la_val_print>: Remove.
5663 * language.c (unk_lang_value_print_inner): Rename. Change
5664 argument types.
5665 (unknown_language_defn, auto_language_defn): Update.
5666 * go-valprint.c (go_val_print): Remove.
5667 * go-lang.h (go_val_print): Don't declare.
5668 * go-lang.c (go_language_defn): Update.
5669 * f-valprint.c (f_val_print): Remove.
5670 * f-lang.h (f_value_print): Don't declare.
5671 * f-lang.c (f_language_defn): Update.
5672 * d-valprint.c (d_val_print): Remove.
5673 * d-lang.h (d_value_print): Don't declare.
5674 * d-lang.c (d_language_defn): Update.
5675 * cp-valprint.c (cp_print_value_fields)
5676 (cp_print_value_fields_rtti, cp_print_value): Remove.
5677 (cp_print_static_field): Update.
5678 * c-valprint.c (c_val_print_array, c_val_print_ptr)
5679 (c_val_print_struct, c_val_print_union, c_val_print_int)
5680 (c_val_print_memberptr, c_val_print): Remove.
5681 * c-lang.h (c_val_print_array, cp_print_value_fields)
5682 (cp_print_value_fields_rtti): Don't declare.
5683 * c-lang.c (c_language_defn, cplus_language_defn)
5684 (asm_language_defn, minimal_language_defn): Update.
5685 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
5686 (ada_val_print_enum): Take a struct value.
5687 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
5688 (ada_val_print): Remove.
5689 (ada_value_print_1): Update.
5690 (printable_val_type): Remove.
5691 * ada-lang.h (ada_val_print): Don't declare.
5692 * ada-lang.c (ada_language_defn): Update.
5693
42331a1e
TT
56942020-03-13 Tom Tromey <tom@tromey.com>
5695
5696 * valprint.c (do_val_print): Update.
5697 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
5698 a struct value.
5699 (value_to_value_object_no_release): Declare.
5700 * python/py-value.c (value_to_value_object_no_release): New
5701 function.
5702 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
5703 struct value.
5704 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
5705 function.
5706 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
5707 a struct value.
5708 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
5709 Declare.
5710 (gdbscm_apply_val_pretty_printer): Take a struct value.
5711 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
5712 value.
5713 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
5714 value.
5715 * extension-priv.h (struct extension_language_ops)
5716 <apply_val_pretty_printer>: Take a struct value.
5717 * cp-valprint.c (cp_print_value): Create a struct value.
5718 (cp_print_value): Update.
5719
3a916a97
TT
57202020-03-13 Tom Tromey <tom@tromey.com>
5721
5722 * ada-valprint.c (print_field_values): Call common_val_print.
5723
b59eac37
TT
57242020-03-13 Tom Tromey <tom@tromey.com>
5725
5726 * ada-valprint.c (val_print_packed_array_elements): Remove
5727 bitoffset and val parameters. Call common_val_print.
5728 (ada_val_print_string): Remove offset, address, and original_value
5729 parameters.
5730 (ada_val_print_array): Update.
5731 (ada_value_print_array): New function.
5732 (ada_value_print_1): Call it.
5733
03371129
TT
57342020-03-13 Tom Tromey <tom@tromey.com>
5735
5736 * ada-valprint.c (ada_value_print): Use common_val_print.
5737
2e088f8b
TT
57382020-03-13 Tom Tromey <tom@tromey.com>
5739
5740 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
5741
39ef85a8
TT
57422020-03-13 Tom Tromey <tom@tromey.com>
5743
5744 * ada-valprint.c (ada_value_print_num): New function.
5745 (ada_value_print_1): Use it.
5746
b9fa6e07
TT
57472020-03-13 Tom Tromey <tom@tromey.com>
5748
5749 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
5750
416595d6
TT
57512020-03-13 Tom Tromey <tom@tromey.com>
5752
5753 * ada-valprint.c (ada_value_print_ptr): New function.
5754 (ada_value_print_1): Use it.
5755
5b5e15ec
TT
57562020-03-13 Tom Tromey <tom@tromey.com>
5757
5758 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
5759 call common_val_print.
5760 (ada_val_print_1): Update.
5761 (ada_value_print_1): New function.
5762 (ada_value_print_inner): Rewrite.
5763
fbf54e75
TT
57642020-03-13 Tom Tromey <tom@tromey.com>
5765
5766 * cp-valprint.c (cp_print_value_fields): Update.
5767 (cp_print_value): New function.
5768
64b653ca
TT
57692020-03-13 Tom Tromey <tom@tromey.com>
5770
5771 * m2-valprint.c (m2_value_print_inner): Use
5772 cp_print_value_fields.
5773 * cp-valprint.c (cp_print_value_fields): New function.
5774 * c-valprint.c (c_value_print_struct): New function.
5775 (c_value_print_inner): Use c_value_print_struct.
5776 * c-lang.h (cp_print_value_fields): Declare.
5777
6999f067
TT
57782020-03-13 Tom Tromey <tom@tromey.com>
5779
5780 * c-valprint.c (c_value_print_array): New function.
5781 (c_value_print_inner): Use it.
5782
ce80b8bd
TT
57832020-03-13 Tom Tromey <tom@tromey.com>
5784
5785 * c-valprint.c (c_value_print_memberptr): New function.
5786 (c_value_print_inner): Use it.
5787
2faac269
TT
57882020-03-13 Tom Tromey <tom@tromey.com>
5789
5790 * c-valprint.c (c_value_print_int): New function.
5791 (c_value_print_inner): Use it.
5792
da3e2c29
TT
57932020-03-13 Tom Tromey <tom@tromey.com>
5794
5795 * c-valprint.c (c_value_print_ptr): New function.
5796 (c_value_print_inner): Use it.
5797
50836231
TT
57982020-03-13 Tom Tromey <tom@tromey.com>
5799
5800 * c-valprint.c (c_value_print_inner): Rewrite.
5801
4f412b6e
TT
58022020-03-13 Tom Tromey <tom@tromey.com>
5803
5804 * valprint.c (generic_value_print_complex): New function.
5805 (generic_value_print): Use it.
5806
f5354008
TT
58072020-03-13 Tom Tromey <tom@tromey.com>
5808
5809 * valprint.c (generic_val_print_float): Don't call
5810 val_print_scalar_formatted.
5811 (generic_val_print, generic_value_print): Update.
5812
3eec3b05
TT
58132020-03-13 Tom Tromey <tom@tromey.com>
5814
5815 * valprint.c (generic_value_print_char): New function
5816 (generic_value_print): Use it.
5817
fdddfccb
TT
58182020-03-13 Tom Tromey <tom@tromey.com>
5819
5820 * valprint.c (generic_value_print_int): New function.
5821 (generic_value_print): Use it.
5822
6dde7521
TT
58232020-03-13 Tom Tromey <tom@tromey.com>
5824
5825 * valprint.c (generic_value_print_bool): New function.
5826 (generic_value_print): Use it.
5827
4112d2e6
TT
58282020-03-13 Tom Tromey <tom@tromey.com>
5829
5830 * valprint.c (generic_val_print_func): Simplify.
5831 (generic_val_print, generic_value_print): Update.
5832
65786af6
TT
58332020-03-13 Tom Tromey <tom@tromey.com>
5834
5835 * valprint.c (generic_val_print_flags): Remove.
5836 (generic_val_print, generic_value_print): Update.
5837 (val_print_type_code_flags): Add original_value parameter.
5838
40f3ce18
TT
58392020-03-13 Tom Tromey <tom@tromey.com>
5840
5841 * valprint.c (generic_val_print): Update.
5842 (generic_value_print): Update.
5843 * valprint.c (generic_val_print_enum): Don't call
5844 val_print_scalar_formatted.
5845
2a5b130b
TT
58462020-03-13 Tom Tromey <tom@tromey.com>
5847
5848 * valprint.c (generic_value_print): Call generic_value_print_ptr.
5849 * valprint.c (generic_value_print_ptr): New function.
5850
abc66ce9
TT
58512020-03-13 Tom Tromey <tom@tromey.com>
5852
5853 * valprint.c (generic_value_print): Rewrite.
5854
07a32858
TT
58552020-03-13 Tom Tromey <tom@tromey.com>
5856
5857 * p-valprint.c (pascal_object_print_value_fields)
5858 (pascal_object_print_value): New functions.
5859
64d64d3a
TT
58602020-03-13 Tom Tromey <tom@tromey.com>
5861
5862 * p-valprint.c (pascal_value_print_inner): Rewrite.
5863
6a95a1f5
TT
58642020-03-13 Tom Tromey <tom@tromey.com>
5865
5866 * f-valprint.c (f_value_print_innner): Rewrite.
5867
59fcdac6
TT
58682020-03-13 Tom Tromey <tom@tromey.com>
5869
5870 * m2-valprint.c (m2_print_unbounded_array): New overload.
5871 (m2_print_unbounded_array): Update.
5872 (m2_print_array_contents): Take a struct value.
5873 (m2_value_print_inner): Rewrite.
5874
d133c3e1
TT
58752020-03-13 Tom Tromey <tom@tromey.com>
5876
5877 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
5878 (d_value_print_inner): New function.
5879 * d-lang.h (d_value_print_inner): Declare.
5880 * d-lang.c (d_language_defn): Use d_value_print_inner.
5881
23b0f06b
TT
58822020-03-13 Tom Tromey <tom@tromey.com>
5883
5884 * go-valprint.c (go_value_print_inner): New function.
5885 * go-lang.h (go_value_print_inner): Declare.
5886 * go-lang.c (go_language_defn): Use go_value_print_inner.
5887
5f56f7cb
TT
58882020-03-13 Tom Tromey <tom@tromey.com>
5889
5890 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
5891 API.
5892 (rust_val_print): Rewrite.
5893 (rust_value_print_inner): New function, from rust_val_print.
5894 (rust_language_defn): Use rust_value_print_inner.
5895
26792ee0
TT
58962020-03-13 Tom Tromey <tom@tromey.com>
5897
5898 * ada-valprint.c (ada_value_print_inner): New function.
5899 * ada-lang.h (ada_value_print_inner): Declare.
5900 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
5901
24051bbe
TT
59022020-03-13 Tom Tromey <tom@tromey.com>
5903
5904 * f-valprint.c (f_value_print_innner): New function.
5905 * f-lang.h (f_value_print_innner): Declare.
5906 * f-lang.c (f_language_defn): Use f_value_print_innner.
5907
c0941be6
TT
59082020-03-13 Tom Tromey <tom@tromey.com>
5909
5910 * p-valprint.c (pascal_value_print_inner): New function.
5911 * p-lang.h (pascal_value_print_inner): Declare.
5912 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
5913
62c4663d
TT
59142020-03-13 Tom Tromey <tom@tromey.com>
5915
5916 * m2-valprint.c (m2_value_print_inner): New function.
5917 * m2-lang.h (m2_value_print_inner): Declare.
5918 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
5919
62182190
TT
59202020-03-13 Tom Tromey <tom@tromey.com>
5921
5922 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
5923 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
5924 * c-valprint.c (c_value_print_inner): New function.
5925 * c-lang.h (c_value_print_inner): Declare.
5926 * c-lang.c (c_language_defn, cplus_language_defn)
5927 (asm_language_defn, minimal_language_defn): Use
5928 c_value_print_inner.
5929
1e592a8a
TT
59302020-03-13 Tom Tromey <tom@tromey.com>
5931
5932 * p-valprint.c (pascal_object_print_value_fields): Now static.
5933 * p-lang.h (pascal_object_print_value_fields): Don't declare.
5934
7fe471e9
TT
59352020-03-13 Tom Tromey <tom@tromey.com>
5936
5937 * c-valprint.c (c_val_print_array): Simplify.
5938
d121c6ce
TT
59392020-03-13 Tom Tromey <tom@tromey.com>
5940
5941 * valprint.c (value_print_array_elements): New function.
5942 * valprint.h (value_print_array_elements): Declare.
5943
4dba70ee
TT
59442020-03-13 Tom Tromey <tom@tromey.com>
5945
5946 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
5947 * mips-tdep.c (mips_print_register): Use
5948 value_print_scalar_formatted.
5949
4f9ae810
TT
59502020-03-13 Tom Tromey <tom@tromey.com>
5951
5952 * valprint.h (value_print_scalar_formatted): Declare.
5953 * valprint.c (value_print_scalar_formatted): New function.
5954
156bfec9
TT
59552020-03-13 Tom Tromey <tom@tromey.com>
5956
5957 * valprint.h (generic_value_print): Declare.
5958 * valprint.c (generic_value_print): New function.
5959
2b4e573d
TT
59602020-03-13 Tom Tromey <tom@tromey.com>
5961
5962 * valprint.c (do_val_print): Call la_value_print_inner, if
5963 available.
5964 * rust-lang.c (rust_language_defn): Update.
5965 * p-lang.c (pascal_language_defn): Update.
5966 * opencl-lang.c (opencl_language_defn): Update.
5967 * objc-lang.c (objc_language_defn): Update.
5968 * m2-lang.c (m2_language_defn): Update.
5969 * language.h (struct language_defn) <la_value_print_inner>: New
5970 member.
5971 * language.c (unknown_language_defn, auto_language_defn): Update.
5972 * go-lang.c (go_language_defn): Update.
5973 * f-lang.c (f_language_defn): Update.
5974 * d-lang.c (d_language_defn): Update.
5975 * c-lang.c (c_language_defn, cplus_language_defn)
5976 (asm_language_defn, minimal_language_defn): Update.
5977 * ada-lang.c (ada_language_defn): Update.
5978
a1f6a07c
TT
59792020-03-13 Tom Tromey <tom@tromey.com>
5980
5981 * c-valprint.c (c_value_print): Use common_val_print.
5982
410cf315
TT
59832020-03-13 Tom Tromey <tom@tromey.com>
5984
5985 * cp-valprint.c (cp_print_static_field): Use common_val_print.
5986
72a45c93
TT
59872020-03-13 Tom Tromey <tom@tromey.com>
5988
5989 * f-valprint.c (f77_print_array_1, f_val_print): Use
5990 common_val_print.
5991
040f66bd
TT
59922020-03-13 Tom Tromey <tom@tromey.com>
5993
5994 * riscv-tdep.c (riscv_print_one_register_info): Use
5995 common_val_print.
5996
a6e05a6c
TT
59972020-03-13 Tom Tromey <tom@tromey.com>
5998
5999 * mi/mi-main.c (output_register): Use common_val_print.
6000
3444c526
TT
60012020-03-13 Tom Tromey <tom@tromey.com>
6002
6003 * infcmd.c (default_print_one_register_info): Use
6004 common_val_print.
6005
c2a44efe
TT
60062020-03-13 Tom Tromey <tom@tromey.com>
6007
6008 * valprint.h (common_val_print_checked): Declare.
6009 * valprint.c (common_val_print_checked): New function.
6010 * stack.c (print_frame_arg): Use common_val_print_checked.
6011
b0c26e99
TT
60122020-03-13 Tom Tromey <tom@tromey.com>
6013
6014 * valprint.c (do_val_print): New function, from val_print.
6015 (val_print): Use do_val_print.
6016 (common_val_print): Use do_val_print.
6017
ce3acbe9
TT
60182020-03-13 Tom Tromey <tom@tromey.com>
6019
6020 * valprint.c (value_print): Use scoped_value_mark.
6021
96c7f873
TV
60222020-03-13 Tom de Vries <tdevries@suse.de>
6023
6024 PR symtab/25646
6025 * psymtab.c (partial_symtab::partial_symtab): Don't set
6026 globals_offset and statics_offset. Push element onto
6027 current_global_psymbols and current_static_psymbols stacks.
6028 (concat): New function.
6029 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6030 element from current_global_psymbols and current_static_psymbols
6031 stacks. Concat popped elements to global_psymbols and
6032 static_symbols.
6033 (add_psymbol_to_list): Use current_global_psymbols and
6034 current_static_psymbols stacks.
6035 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6036 current_static_psymbols fields.
6037
6ba0a321
CB
60382020-03-12 Christian Biesinger <cbiesinger@google.com>
6039
6040 * corelow.c (sniff_core_bfd): Remove.
6041 (class core_target) <m_core_vec>: Remove.
6042 (core_target::core_target): Update.
6043 (core_file_fns): Remove.
6044 (deprecated_add_core_fns): Remove.
6045 (default_core_sniffer): Remove.
6046 (sniff_core_bfd): Remove.
6047 (default_check_format): Remove.
6048 (gdb_check_format): Remove.
6049 (core_target_open): Update.
6050 (core_target::get_core_register_section): Update.
6051 (get_core_registers_cb): Update.
6052 (core_target::fetch_registers): Update.
6053 * gdbcore.h (struct core_fns): Remove.
6054 (deprecated_add_core_fns): Remove.
6055 (default_core_sniffer): Remove.
6056 (default_check_format): Remove.
6057
227031b2
TT
60582020-03-12 Tom Tromey <tom@tromey.com>
6059
6060 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6061 CORE_ADDR.
6062 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6063
53807e9f
TT
60642020-03-12 Tom Tromey <tom@tromey.com>
6065
6066 * remote.c (remote_target::download_tracepoint)
6067 (remote_target::enable_tracepoint)
6068 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6069 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6070 sprintf_vma.
6071
64f25102
TT
60722020-03-12 Tom Tromey <tom@tromey.com>
6073
6074 * symfile-mem.c: Update CORE_ADDR size assert.
6075
272cd5a3
SM
60762020-03-12 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * selftest.m4: Move to gdbsupport/.
6079 * acinclude.m4: Update path to selftest.m4.
6080
74cd3f9d
SM
60812020-03-12 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6084 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6085 gdbarch-selfselftests.c and selftest-arch.c.
6086 (SUBDIR_UNITTESTS_OBS): Rename to...
6087 (SELFTESTS_OBS): ... this.
6088 (COMMON_SFILES): Remove disasm-selftests.c and
6089 gdbarch-selftests.c.
6090 * configure.ac: Don't add selftest-arch.{c,o} to
6091 CONFIG_{SRCS,OBS}.
6092 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6093 preprocessor conditions.
6094
db6878ac
SM
60952020-03-12 Simon Marchi <simon.marchi@efficios.com>
6096
6097 * configure.ac: Don't source bfd/development.sh.
6098 * selftest.m4: Modify comment.
6099 * configure: Re-generate.
6100
4d696a5c
SM
61012020-03-12 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6104 not "true" or "false".
6105 * configure: Re-generate.
6106
8dd8e1c7
CB
61072020-03-12 Christian Biesinger <cbiesinger@google.com>
6108
6109 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6110 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6111 renamed to arm_nbsd_supply_gregset.
6112 (fetch_register): Update to call arm_nbsd_supply_gregset.
6113 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6114 (arm_netbsd_nat_target::fetch_registers): Update.
6115 (fetch_elfcore_registers): Removed.
6116 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6117 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6118 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6119 not require NetBSD system headers.
6120 (arm_nbsd_regset): New struct.
6121 (arm_nbsd_iterate_over_regset_sections): New function.
6122 (arm_netbsd_init_abi_common): Updated to call
6123 set_gdbarch_iterate_over_regset_sections.
6124 * arm-nbsd-tdep.h: New file.
6125
dd69bf7a
KB
61262020-03-11 Kevin Buettner <kevinb@redhat.com>
6127
6128 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6129 recursion.
6130
a0761e34
SM
61312020-03-11 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * configure: Re-generate.
6134
e7a82140
TT
61352020-03-11 Tom Tromey <tromey@adacore.com>
6136
6137 * ada-typeprint.c (print_choices): Fix comment.
6138
dcc050c8
AB
61392020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6142 previous item in the list, when the list has no items.
6143
1c33af77
TV
61442020-03-11 Tom de Vries <tdevries@suse.de>
6145
6146 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6147 PROP_LOCLIST handling code.
6148
8c95582d
AB
61492020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6150
6151 * buildsym-legacy.c (record_line): Pass extra parameter to
6152 record_line.
6153 * buildsym.c (buildsym_compunit::record_line): Take an extra
6154 parameter, reduce duplication in the line table, and record the
6155 is_stmt flag in the line table.
6156 * buildsym.h (buildsym_compunit::record_line): Add extra
6157 parameter.
6158 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6159 non-statement lines.
6160 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6161 this to the symtab builder.
6162 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6163 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6164 through to dwarf_record_line_1.
6165 * infrun.c (process_event_stop_test): When stepping, don't stop at
6166 a non-statement instruction, and only refresh the step info when
6167 we land in the middle of a line's range. Also add an extra
6168 comment.
6169 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6170 field.
6171 * record-btrace.c (btrace_find_line_range): Only record lines
6172 marked as is-statement.
6173 * stack.c (frame_show_address): Show the frame address if we are
6174 in a non-statement sal.
6175 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6176 (maintenance_print_one_line_table): Print a header for the is_stmt
6177 column, and include is_stmt information in the output.
6178 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6179 preference to non-statements.
6180 (find_pcs_for_symtab_line): Prefer is-statement entries.
6181 (find_line_common): Likewise.
6182 * symtab.h (struct linetable_entry): Add is_stmt field.
6183 (struct symtab_and_line): Likewise.
6184 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6185 arranging the line table.
6186
e4003a34
TV
61872020-03-07 Tom de Vries <tdevries@suse.de>
6188
6189 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6190 DIE.
6191
e8932576
TT
61922020-03-07 Tom Tromey <tom@tromey.com>
6193
6194 * valops.c (value_literal_complex): Remove obsolete comment.
6195 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6196 comment.
6197
29734269
SM
61982020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6199
6200 * infrun.h: Forward-declare thread_info.
6201 (set_step_info): Add thread_info parameter, add doc.
6202 * infrun.c (set_step_info): Add thread_info parameter, move doc
6203 to header.
6204 * infrun.c (process_event_stop_test): Pass thread to
6205 set_step_info call.
6206 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6207 set_step_info.
6208 (prepare_one_step): Add thread_info parameter, pass it to
6209 set_step_frame and prepare_one_step (recursive) call.
6210 (step_1): Pass thread to prepare_one_step call.
6211 (step_command_fsm::should_stop): Pass thread to
6212 prepare_one_step.
6213 (until_next_fsm): Pass thread to set_step_frame call.
6214 (finish_command): Pass thread to set_step_info call.
6215
b7d64b29
HD
62162020-03-06 Hannes Domani <ssbssa@yahoo.de>
6217
6218 * windows-tdep.c (windows_solib_create_inferior_hook):
6219 Check if inferior is running.
6220
09f2921c
TV
62212020-03-06 Tom de Vries <tdevries@suse.de>
6222
6223 * NEWS: Fix "the the".
6224 * ctfread.c: Same.
6225
fd760e79
TV
62262020-03-06 Tom de Vries <tdevries@suse.de>
6227
6228 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6229
20ea4a60
AB
62302020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6231
6232 * .dir-locals.el: Add a comment referencing the other copies of
6233 this file.
6234
0afbabf0
JB
62352020-03-05 John Baldwin <jhb@FreeBSD.org>
6236
6237 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6238 psargs.
6239
842806cb
TBA
62402020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6241
6242 * .gitattributes: New file.
6243
be1e3d3e
TT
62442020-03-04 Tom Tromey <tom@tromey.com>
6245
6246 * symmisc.c (print_symbol_bcache_statistics)
6247 (print_objfile_statistics): Update.
6248 * symfile.c (allocate_symtab): Use intern.
6249 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6250 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6251 macro_cache>: Remove.
6252 <string_cache>: New member.
6253 (struct objfile) <intern>: New methods.
6254 * elfread.c (elf_symtab_read): Use intern.
6255 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6256 (dwarf2_compute_name, dwarf2_physname)
6257 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6258 names.
6259 (guess_partial_die_structure_name): Update.
6260 (partial_die_info::fixup): Intern name.
6261 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6262 name.
6263 (dwarf2_name): Intern name. Update.
6264 * buildsym.c (buildsym_compunit::get_macro_table): Use
6265 string_cache.
6266
4e7625fd
TT
62672020-03-04 Tom Tromey <tom@tromey.com>
6268
6269 * jit.c (bfd_open_from_target_memory): Make "target" const.
6270 * corefile.c (gnutarget): Now const.
6271 * gdbcore.h (gnutarget): Now const.
6272
46f9f931
HD
62732020-03-04 Hannes Domani <ssbssa@yahoo.de>
6274
6275 * NEWS: Mention support for WOW64 processes.
6276 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6277 (amd64_windows_segment_register_p): Remove static.
6278 (_initialize_amd64_windows_nat): Update.
6279 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6280 * i386-windows-nat.c (context_offset): Update.
6281 (i386_mappings): Rename and remove static.
6282 (i386_windows_segment_register_p): Remove static.
6283 (_initialize_i386_windows_nat): Update.
6284 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6285 (STATUS_WX86_SINGLE_STEP): New macro.
6286 (EnumProcessModulesEx): New macro.
6287 (Wow64SuspendThread): New macro.
6288 (Wow64GetThreadContext): New macro.
6289 (Wow64SetThreadContext): New macro.
6290 (Wow64GetThreadSelectorEntry): New macro.
6291 (windows_set_context_register_offsets): Add static.
6292 (windows_set_segment_register_p): Likewise.
6293 (windows_add_thread): Adapt for WOW64 processes.
6294 (windows_fetch_one_register): Likewise.
6295 (windows_nat_target::fetch_registers): Likewise.
6296 (windows_store_one_register): Likewise.
6297 (display_selector): Likewise.
6298 (display_selectors): Likewise.
6299 (handle_exception): Likewise.
6300 (windows_continue): Likewise.
6301 (windows_nat_target::resume): Likewise.
6302 (windows_add_all_dlls): Likewise.
6303 (do_initial_windows_stuff): Likewise.
6304 (windows_nat_target::attach): Likewise.
6305 (windows_get_exec_module_filename): Likewise.
6306 (windows_nat_target::create_inferior): Likewise.
6307 (windows_xfer_siginfo): Likewise.
6308 (_initialize_loadable): Initialize Wow64SuspendThread,
6309 Wow64GetThreadContext, Wow64SetThreadContext,
6310 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6311 * windows-nat.h (windows_set_context_register_offsets):
6312 Remove declaration.
6313 (windows_set_segment_register_p): Likewise.
6314 (i386_windows_segment_register_p): Add declaration.
6315 (amd64_windows_segment_register_p): Likewise.
6316
440cf44e
LM
63172020-03-04 Luis Machado <luis.machado@linaro.org>
6318
6319 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6320 in "info registers" for AArch64/ARM.
6321
6322 The change caused "info registers" to not print GPR's.
6323
6324 gdb/ChangeLog:
6325
6326 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6327
6328 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6329 when reg->group is empty and reggroup is not.
6330
1009d92f
TT
63312020-03-03 Tom Tromey <tromey@adacore.com>
6332
6333 * dwarf2/frame.c (struct dwarf2_frame_cache)
6334 <checked_tailcall_bottom, entry_cfa_sp_offset,
6335 entry_cfa_sp_offset_p>: Remove members.
6336 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6337 (dwarf2_frame_prev_register): Don't call
6338 dwarf2_tailcall_sniffer_first.
6339 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6340 * frame-unwind.c (add_unwinder): New fuction.
6341 (frame_unwind_init): Use it. Add tailcall unwinder.
6342
5e5d66b6
AB
63432020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6344 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6345
6346 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
6347 value should be printed as true.
6348
584cf46d
HD
63492020-03-03 Hannes Domani <ssbssa@yahoo.de>
6350
6351 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
6352 (windows_init_abi): Set and use windows_so_ops.
6353
7b973adc
SDJ
63542020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
6355
6356 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
6357 when verifying if dealing with a convenience variable.
6358
bb7b70ab
LM
63592020-03-03 Luis Machado <luis.machado@linaro.org>
6360
6361 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
6362
9822cb57
SM
63632020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6364
6365 * infrun.c (gdbarch_supports_displaced_stepping): New.
6366 (use_displaced_stepping): Break up conditions in smaller pieces.
6367 Use gdbarch_supports_displaced_stepping.
6368 (displaced_step_prepare_throw): Use
6369 gdbarch_supports_displaced_stepping.
6370
63e163f2
AB
63712020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 * NEWS: Mention new behaviour of the history filename.
6374 * top.c (write_history_p): Add comment.
6375 (show_write_history_p): Add header comment, give a different
6376 message when history writing is on, but the history filename is
6377 empty.
6378 (history_filename): Add comment.
6379 (history_filename_empty): New function.
6380 (show_history_filename): Add header comment, give a different
6381 message when the filename is empty.
6382 (init_history): Compare history_filename against nullptr, and only
6383 read history if the filename is not empty.
6384 (set_history_filename): Add header comment, and only make
6385 non-empty filenames absolute.
6386 (init_main): Make the filename argument to 'set history filename'
6387 optional.
6388
81b86b97
CB
63892020-03-02 Christian Biesinger <cbiesinger@google.com>
6390
6391 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
6392 (arm_supply_vfpregset): ...this, and update to use VFP registers.
6393 (fetch_fp_register): Update.
6394 (fetch_fp_regs): Update.
6395 (store_fp_register): Update.
6396 (store_fp_regs): Update.
6397 (arm_netbsd_nat_target::read_description): New function.
6398 (fetch_elfcore_registers): Update.
6399
24ed6739
AB
64002020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6401
6402 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
6403 general_thread if the stop reply is missing a thread-id.
6404 (remote_target::process_stop_reply): Use the first non-exited
6405 thread if the target didn't pass a thread-id.
6406 * infrun.c (do_target_wait): Move call to
6407 switch_to_inferior_no_thread to ....
6408 (do_target_wait_1): ... here.
6409
a84bb2a0
JT
64102020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
6411
6412 * debuginfod-support.c: Include defs.h first.
6413
658dadf0
TV
64142020-02-28 Tom de Vries <tdevries@suse.de>
6415
6416 * symfile.c (set_initial_language): Use default language for lookup.
6417
4ebe4877
SM
64182020-02-28 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
6421 reader variable, pass `this` to read_cutu_die_from_dwo.
6422
e5da1139
AM
64232020-02-27 Aaron Merey <amerey@redhat.com>
6424
6425 * source.c (open_source_file): Check for nullptr when computing
6426 srcpath.
6427
317f7127
TT
64282020-02-27 Tom Tromey <tromey@adacore.com>
6429
6430 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
6431 member.
6432 (dwarf2_add_field): Don't update nfields.
6433 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
6434
3104d9ee
AB
64352020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
6438 abs.
6439
b83470bf
TT
64402020-02-26 Tom Tromey <tom@tromey.com>
6441
6442 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
6443 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
6444 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
6445 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
6446 per_cu_data.
6447
edfe0a0c
TT
64482020-02-26 Tom Tromey <tom@tromey.com>
6449
6450 * dwarf2/index-write.c (psym_index_map): Change type.
6451 (add_address_entry_worker, write_one_signatured_type)
6452 (recursively_count_psymbols, recursively_write_psymbols)
6453 (class debug_names, psyms_seen_size, write_gdbindex)
6454 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
6455
0d79cdc4
AM
64562020-02-26 Aaron Merey <amerey@redhat.com>
6457
6458 * Makefile.in: Handle optional debuginfod support.
6459 * NEWS: Update.
6460 * README: Add --with-debuginfod summary.
6461 * config.in: Regenerate.
6462 * configure: Regenerate.
6463 * configure.ac: Handle optional debuginfod support.
6464 * debuginfod-support.c: debuginfod helper functions.
6465 * debuginfod-support.h: Ditto.
6466 * doc/gdb.texinfo: Add --with-debuginfod to configure options
6467 summary.
6468 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
6469 when a dwz file cannot be found.
6470 * elfread.c (elf_symfile_read): Query debuginfod servers when a
6471 debuginfo file cannot be found.
6472 * source.c (open_source_file): Query debuginfod servers when a
6473 source file cannot be found.
6474 * top.c (print_gdb_configuration): Include
6475 --{with,without}-debuginfod in the output.
6476
b65ce565
JG
64772020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6478
6479 * thread.c (thr_try_catch_cmd): Print thread name.
6480
d4c9a4f8
SM
64812020-02-26 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
6484 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6485 dwarf2_fetch_die_type_sect_off): Move to...
6486 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6487 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6488 dwarf2_fetch_die_type_sect_off): ... here.
6489 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6490 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6491 dwarf2_fetch_die_type_sect_off): Move doc to header file.
6492
0dce4280
TV
64932020-02-26 Tom de Vries <tdevries@suse.de>
6494
6495 PR gdb/25603
6496 * symfile.c (set_initial_language): Exit-early if
6497 language_mode == language_mode_manual.
6498
450a1bfc
SM
64992020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6500
6501 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
6502 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
6503 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
6504
9e80cfa1
AB
65052020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6506
6507 * gdbtypes.c (create_array_type_with_stride): Handle negative
6508 array strides.
6509 * valarith.c (value_subscripted_rvalue): Likewise.
6510
09624f1f
LM
65112020-02-25 Luis Machado <luis.machado@linaro.org>
6512
6513 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
6514
8cb5117c
SM
65152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6516
6517 * loc.h (dwarf2_get_die_type): Move to...
6518 * read.h (dwarf2_get_die_type): ... here.
6519 * read.c (dwarf2_get_die_type): Move doc to header.
6520
c325c44e
JB
65212020-02-25 Joel Brobecker <brobecker@adacore.com>
6522
6523 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
6524 'gnulib/Makefile.in' to the list.
6525
4ac93832
TT
65262020-02-24 Tom Tromey <tom@tromey.com>
6527
6528 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
6529 Remove.
6530 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
6531 XOBNEWVEC.
6532
197400e8
TT
65332020-02-24 Tom Tromey <tom@tromey.com>
6534
6535 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
6536 New method.
6537 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
6538 (dw2_do_instantiate_symtab, dw2_get_file_names)
6539 (build_type_psymtab_dependencies, load_full_type_unit): Update.
6540
76935768
TT
65412020-02-24 Tom Tromey <tom@tromey.com>
6542
6543 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
6544 make_scoped_restore.
6545 (dwarf2_psymtab::read_symtab): Don't clear
6546 reading_partial_symbols.
6547
a88ef40d
TV
65482020-02-24 Tom de Vries <tdevries@suse.de>
6549
6550 PR gdb/25592
6551 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
6552
c9af6521
TV
65532020-02-24 Tom de Vries <tdevries@suse.de>
6554
6555 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
6556 commands layout next/prev/regs.
6557
5707a07a
TT
65582020-02-22 Tom Tromey <tom@tromey.com>
6559
6560 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
6561 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
6562
3b0fb49e
TT
65632020-02-22 Tom Tromey <tom@tromey.com>
6564
6565 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
6566
283be8bf
TT
65672020-02-22 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-win.c (_initialize_tui_win): Add usage text.
6570 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
6571 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
6572 * tui/tui.c (_initialize_tui): Add usage text.
6573
ca793b96
TT
65742020-02-22 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-win.c (tui_set_focus_command)
6577 (tui_set_win_height_command): Use error_no_arg.
6578 (_initialize_tui_win): Update help text.
6579 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
6580
432b5c40
TT
65812020-02-22 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
6584 * tui/tui-disasm.h (struct tui_disasm_window)
6585 <display_start_addr>: Declare.
6586 * tui/tui-source.h (struct tui_source_window)
6587 <display_start_addr>: Declare.
6588 * tui/tui-winsource.h (struct tui_source_window_base)
6589 <show_source_line, display_start_addr>: New methods.
6590 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
6591 Rename and move to protected section.
6592 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
6593 (tui_source_window_base::do_erase_source_content): Update.
6594 (tui_source_window_base::show_source_line): Now a method.
6595 (tui_source_window_base::show_source_content)
6596 (tui_source_window_base::tui_source_window_base)
6597 (tui_source_window_base::rerender)
6598 (tui_source_window_base::refill)
6599 (tui_source_window_base::do_scroll_horizontal)
6600 (tui_source_window_base::set_is_exec_point_at)
6601 (tui_source_window_base::update_breakpoint_info)
6602 (tui_source_window_base::update_exec_info): Update.
6603 * tui/tui-source.c (tui_source_window::set_contents)
6604 (tui_source_window::showing_source_p)
6605 (tui_source_window::do_scroll_vertical)
6606 (tui_source_window::location_matches_p)
6607 (tui_source_window::line_is_displayed): Update.
6608 (tui_source_window::display_start_addr): New method.
6609 * tui/tui-disasm.c (tui_disasm_window::set_contents)
6610 (tui_disasm_window::do_scroll_vertical)
6611 (tui_disasm_window::location_matches_p): Update.
6612 (tui_disasm_window::display_start_addr): New method.
6613
01b1af32
TT
66142020-02-22 Tom Tromey <tom@tromey.com>
6615
6616 * NEWS: Add entry for gdb.register_window_type.
6617 * tui/tui-layout.h (window_factory): New typedef.
6618 (tui_register_window): Declare.
6619 * tui/tui-layout.c (saved_tui_windows): New global.
6620 (tui_apply_current_layout): Use it.
6621 (tui_register_window): New function.
6622 * python/python.c (do_start_initialization): Call
6623 gdbpy_initialize_tui.
6624 (python_GdbMethods): Add "register_window_type" function.
6625 * python/python-internal.h (gdbpy_register_tui_window)
6626 (gdbpy_initialize_tui): Declare.
6627 * python/py-tui.c: New file.
6628 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
6629
fc96d20b
TT
66302020-02-22 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
6633
935c78c0
TT
66342020-02-22 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
6637 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
6638 * tui/tui-data.c (tui_set_win_with_focus): Remove.
6639 (tui_set_win_focus_to): Move from tui-win.c.
6640
0240c8f1
TT
66412020-02-22 Tom Tromey <tom@tromey.com>
6642
6643 * tui/tui-layout.c (make_standard_window, get_locator_window): New
6644 functions.
6645 (known_window_types): New global.
6646 (tui_get_window_by_name): Reimplement.
6647 (initialize_known_windows): New function.
6648 (validate_window_name): Rewrite.
6649 (_initialize_tui_layout): Call initialize_known_windows.
6650
fdb01f0c
TT
66512020-02-22 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
6654 Remove constants.
6655 * tui/tui-winsource.h (struct tui_source_window_base)
6656 <tui_source_window_base>: Remove parameter.
6657 * tui/tui-winsource.c
6658 (tui_source_window_base::tui_source_window_base): Remove
6659 parameter.
6660 (tui_source_window_base::refill): Update.
6661 * tui/tui-stack.h (struct tui_locator_window)
6662 <tui_locator_window>: Update.
6663 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
6664 Default the constructor.
6665 * tui/tui-regs.h (struct tui_data_item_window)
6666 <tui_data_item_window>: Default the constructor.
6667 (struct tui_data_window) <tui_data_window>: Likewise.
6668 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
6669 Default the constructor.
6670 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
6671 Default the constructor.
6672 <type>: Remove.
6673 (struct tui_win_info) <tui_win_info>: Default the constructor.
6674 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
6675 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
6676 Default the constructor.
6677
865a5aec
TT
66782020-02-22 Tom Tromey <tom@tromey.com>
6679
6680 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
6681 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
6682 * tui/tui-win.c (tui_resize_all): Don't call
6683 tui_delete_invisible_windows.
6684 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
6685 done.
6686 (tui_set_layout): Update.
6687 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
6688 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
6689 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
6690
e098d18c
TT
66912020-02-22 Tom Tromey <tom@tromey.com>
6692
6693 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
6694 correctly.
6695
eb9c8874
TT
66962020-02-22 Tom Tromey <tom@tromey.com>
6697
6698 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
6699
7eed1a8e
TT
67002020-02-22 Tom Tromey <tom@tromey.com>
6701
6702 * tui/tui-winsource.h (struct tui_source_window_iterator)
6703 <inner_iterator>: New etytypedef.
6704 <tui_source_window_iterator>: Take "end" parameter.
6705 <tui_source_window_iterator>: Take iterator.
6706 <operator*, advance>: Update.
6707 <m_iter>: Change type.
6708 <m_end>: New field.
6709 (struct tui_source_windows) <begin, end>: Update.
6710 * tui/tui-layout.c (tui_windows): New global.
6711 (tui_apply_current_layout): Clear tui_windows.
6712 (tui_layout_window::apply): Update tui_windows.
6713 * tui/tui-data.h (tui_windows): Declare.
6714 (all_tui_windows): Now inline function.
6715 (class tui_window_iterator, struct all_tui_windows): Remove.
6716
7c043ba6
TT
67172020-02-22 Tom Tromey <tom@tromey.com>
6718
6719 PR tui/17850:
6720 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
6721 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
6722 "height" argument.
6723 (class tui_layout_window) <get_sizes>: Likewise.
6724 (class tui_layout_split) <tui_layout_split>: Add "vertical"
6725 argument.
6726 <get_sizes>: Add "height" argument.
6727 <m_vertical>: New field.
6728 * tui/tui-layout.c (tui_layout_split::clone): Update.
6729 (tui_layout_split::get_sizes): Add "height" argument.
6730 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
6731 (tui_new_layout_command): Parse "-horizontal".
6732 (_initialize_tui_layout): Update help string.
6733 (tui_layout_split::specification): Add "-horizontal" when needed.
6734 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
6735 argument.
6736 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
6737 New methods.
6738
6bc56648
TT
67392020-02-22 Tom Tromey <tom@tromey.com>
6740
6741 * tui/tui-layout.h (enum tui_adjust_result): New.
6742 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
6743 (class tui_layout_window) <adjust_size>: Return
6744 tui_adjust_result. Rewrite.
6745 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
6746 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
6747
c22fef7e
TT
67482020-02-22 Tom Tromey <tom@tromey.com>
6749
6750 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
6751 parameter and return types.
6752 (class tui_layout_base) <specification>: Add "depth".
6753 (class tui_layout_window) <specification>: Add "depth".
6754 (class tui_layout_split) <specification>: Add "depth".
6755 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
6756 and return types.
6757 (tui_new_layout_command): Parse sub-layouts.
6758 (_initialize_tui_layout): Update help string.
6759 (tui_layout_window::specification): Add "depth".
6760 (add_layout_command): Update.
6761
ee325b61
TT
67622020-02-22 Tom Tromey <tom@tromey.com>
6763
6764 * NEWS: Add "tui new-layout" item.
6765 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
6766 Add new-layout command to help text.
6767 (validate_window_name): New function.
6768 (tui_new_layout_command): New function.
6769 (_initialize_tui_layout): Register "new-layout".
6770 (tui_layout_window::specification): New method.
6771 (tui_layout_window::specification): New method.
6772 * tui/tui-layout.h (class tui_layout_base) <specification>: New
6773 method.
6774 (class tui_layout_window) <specification>: New method.
6775 (class tui_layout_split) <specification>: New method.
6776
416eb92d
TT
67772020-02-22 Tom Tromey <tom@tromey.com>
6778
6779 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
6780 * tui/tui-win.c (window_name_completer): Update comment.
6781 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
6782 Declare method.
6783 (class tui_layout_window) <replace_window>: Likewise.
6784 (class tui_layout_split) <replace_window>: Likewise.
6785 (tui_set_layout): Don't declare.
6786 (tui_set_initial_layout): Declare function.
6787 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
6788 (asm_regs_layout): New globals.
6789 (tui_current_layout, show_layout): Remove.
6790 (tui_set_layout, tui_add_win_to_layout): Rewrite.
6791 (find_layout, tui_apply_layout): New function.
6792 (layout_completer): Remove.
6793 (tui_next_layout): Reimplement.
6794 (tui_next_layout_command): New function.
6795 (tui_set_initial_layout, tui_prev_layout_command): New functions.
6796 (tui_regs_layout): Reimplement.
6797 (tui_regs_layout_command): New function.
6798 (extract_display_start_addr): Rewrite.
6799 (next_layout, prev_layout): Remove.
6800 (tui_layout_window::replace_window): New method.
6801 (tui_layout_split::replace_window): New method.
6802 (destroy_layout): New function.
6803 (layout_list): New global.
6804 (add_layout_command): New function.
6805 (initialize_layouts): Update.
6806 (tui_layout_command): New function.
6807 (_initialize_tui_layout): Install "layout" commands.
6808 * tui/tui-data.h (enum tui_layout_type): Remove.
6809 (tui_current_layout): Don't declare.
6810
0dbc2fc7
TT
68112020-02-22 Tom Tromey <tom@tromey.com>
6812
6813 * tui/tui-regs.c (tui_reg_layout): Remove.
6814 (tui_reg_command): Use tui_regs_layout.
6815 * tui/tui-layout.h (tui_reg_command): Declare.
6816 * tui/tui-layout.c (tui_reg_command): New function.
6817
5afe342e
TT
68182020-02-22 Tom Tromey <tom@tromey.com>
6819
6820 * tui/tui.c (tui_rl_delete_other_windows): Call
6821 tui_remove_some_windows.
6822 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
6823 Declare method.
6824 (class tui_layout_window) <remove_windows>: New method.
6825 (class tui_layout_split) <remove_windows>: Declare.
6826 (tui_remove_some_windows): Declare.
6827 * tui/tui-layout.c (tui_remove_some_windows): New function.
6828 (tui_layout_split::remove_windows): New method.
6829
427326a8
TT
68302020-02-22 Tom Tromey <tom@tromey.com>
6831
6832 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
6833 * tui/tui-layout.h (tui_next_layout): Declare.
6834 * tui/tui-layout.c (tui_next_layout): New function.
6835
3fe12b6d
TT
68362020-02-22 Tom Tromey <tom@tromey.com>
6837
6838 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
6839 correct coordinates.
6840
59b8b5d2
TT
68412020-02-22 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
6844 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
6845 DATA_WIN case.
6846
2a3d458b
TT
68472020-02-22 Tom Tromey <tom@tromey.com>
6848
6849 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
6850 TUI_DISASM_WIN, not tui_win_list.
6851
3f0cbb04
TT
68522020-02-22 Tom Tromey <tom@tromey.com>
6853
6854 * valprint.c (generic_val_print_enum_1)
6855 (val_print_type_code_flags): Style member names.
6856 * rust-lang.c (val_print_struct, rust_print_enum)
6857 (rust_print_struct_def, rust_internal_print_type): Style member
6858 names.
6859 * p-valprint.c (pascal_object_print_value_fields): Style member
6860 names. Only call fprintf_symbol_filtered for static members.
6861 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
6862 * f-valprint.c (f_val_print): Style member names.
6863 * f-typeprint.c (f_type_print_base): Style member names.
6864 * cp-valprint.c (cp_print_value_fields): Style member names. Only
6865 call fprintf_symbol_filtered for static members.
6866 (cp_print_class_member): Style member names.
6867 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
6868 member names.
6869 * ada-valprint.c (ada_print_scalar): Style enum names.
6870 (ada_val_print_enum): Likewise.
6871 * ada-typeprint.c (print_enum_type): Style enum names.
6872
d4d947ae
TT
68732020-02-21 Tom Tromey <tom@tromey.com>
6874
6875 * psympriv.h (struct partial_symtab): Update comment.
6876
e94e944b
TT
68772020-02-21 Tom Tromey <tromey@adacore.com>
6878
6879 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
6880 type is CORE_ADDR.
6881
1eb73179
TV
68822020-02-21 Tom de Vries <tdevries@suse.de>
6883
6884 PR gdb/25534
6885 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
6886 if dependencies[i]->user != NULL.
6887
4f180d53
AT
68882020-02-21 Ali Tamur <tamur@google.com>
6889
6890 * dwarf2/read.c (dwarf2_name): Add null check.
6891
22b6cd70
TT
68922020-02-20 Tom Tromey <tom@tromey.com>
6893
6894 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
6895 ">=", in binary search.
6896 (dwarf2_find_containing_comp_unit): New overload.
6897 (run_test): New self-test.
6898 (_initialize_dwarf2_read): Register new test.
6899
bd0cf5a6
NC
69002020-02-20 Nelson Chu <nelson.chu@sifive.com>
6901
6902 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
6903 * riscv-tdep.h: Likewise.
6904 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
6905 rv32-only CSR.
6906 * features/riscv/64bit-csr.xml: Regenerated.
6907
3f702acd
SDJ
69082020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6909 Tom Tromey <tom@tromey.com>
6910
6911 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
6912 of 'fputc_unfiltered'.
6913 (putchar_unfiltered): Call 'fputc_unfiltered'.
6914 (fputc_unfiltered): Call 'fputs_unfiltered'.
6915
d13c7322
AB
69162020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * config.in: Regenerate.
6919 * configure: Regenerate.
6920 * configure.ac: Add --with-python-libdir option.
6921 * main.c: Use WITH_PYTHON_LIBDIR.
6922
869d8950
TT
69232020-02-19 Tom Tromey <tom@tromey.com>
6924
6925 * symtab.c (general_symbol_info::compute_and_set_names): Use
6926 obstack_strndup. Simplify call to symbol_set_demangled_name.
6927
298e9637
SM
69282020-02-19 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * dwarf2/read.c (allocate_signatured_type_table,
6931 allocate_dwo_unit_table, allocate_type_unit_groups_table,
6932 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
6933 Remove objfile parameter, update all callers.
6934
08410482
DE
69352020-02-19 Doug Evans <dje@google.com>
6936
6937 PR rust/25535
6938 * rust-lang.c (rust_print_enum): Apply embedded_offset to
6939 rust_enum_variant calculation.
6940
dfdeeca1
TT
69412020-02-19 Tom Tromey <tromey@adacore.com>
6942
6943 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
6944
2ef5453b
TT
69452020-02-19 Tom Tromey <tromey@adacore.com>
6946
6947 * ada-lang.c (cache_symbol): Use obstack_strdup.
6948
9f1528a1
AB
69492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6950
6951 * configure: Regenerate.
6952
d3c22fa8
TT
69532020-02-19 Tom Tromey <tromey@adacore.com>
6954
6955 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
6956 NULL check.
6957
bf84f706
MR
69582020-02-19 Maciej W. Rozycki <macro@wdc.com>
6959
6960 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
6961
d1c9b20f
AB
69622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
6965 if GDBSERVER is not defined.
6966 (riscv_tdesc_cache): Likewise, also store const target_desc.
6967 (STATIC_IN_GDB): Define.
6968 (riscv_create_target_description): Update declaration with
6969 STATIC_IN_GDB.
6970 (riscv_lookup_target_description): New function, only define if
6971 GDBSERVER is not defined.
6972 * arch/riscv.h (riscv_create_target_description): Declare only
6973 when GDBSERVER is defined.
6974 (riscv_lookup_target_description): New declaration when GDBSERVER
6975 is not defined.
6976 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
6977 (riscv_linux_read_features): ...this, and return
6978 riscv_gdbarch_features instead of target_desc.
6979 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
6980 (riscv_linux_read_description): Rename to...
6981 (riscv_linux_read_features): ...this.
6982 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6983 Update to use riscv_gdbarch_features and
6984 riscv_lookup_target_description.
6985 * riscv-tdep.c (riscv_find_default_target_description): Use
6986 riscv_lookup_target_description instead of
6987 riscv_create_target_description.
6988
373d7ac0
SM
69892020-02-18 Simon Marchi <simon.marchi@efficios.com>
6990
6991 * valprint.c (generic_val_print_enum_1): When printing a flag
6992 enum with value 0 and there is no enumerator with value 0, print
6993 just "0" instead of "(unknown: 0x0)".
6994
b29a2df0
SM
69952020-02-18 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * valprint.c (generic_val_print_enum_1): Print unknown part of
6998 flag enum in hex.
6999
6740f0cc
SM
70002020-02-18 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7003 flag enums to contain duplicate enumerators.
7004 * valprint.c (generic_val_print_enum_1): Update comment.
7005
edd45eb0
SM
70062020-02-18 Simon Marchi <simon.marchi@efficios.com>
7007
7008 * dwarf2/read.c: Include "count-one-bits.h".
7009 (update_enumeration_type_from_children): If an enumerator has
7010 multiple bits set, don't treat the enumeration as a "flag enum".
7011 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7012 of flag enums have 0 or 1 bit set.
7013
6d0cf446
BE
70142020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7015
7016 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7017 conversion.
7018 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7019 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7020 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7021 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7022 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7023
7001c1b7
SM
70242020-02-18 Simon Marchi <simon.marchi@efficios.com>
7025
7026 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7027
fdb61c6c
SM
70282020-02-14 Simon Marchi <simon.marchi@efficios.com>
7029
7030 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7031 displaced_step_closure_up.
7032 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7033 (struct displaced_step_closure_up):
7034 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7035 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7036 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7037 Likewise.
7038 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7039 * gdbarch.c, gdbarch.h: Re-generate.
7040 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7041 displaced_step_closure_up.
7042 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7043 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7044 * infrun.h (displaced_step_closure_up): New type alias.
7045 (struct displaced_step_inferior_state) <step_closure>: Change
7046 type to displaced_step_closure_up.
7047 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7048 displaced_step_closure_up.
7049 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7050
a4a38eb4
TT
70512020-02-14 Tom Tromey <tom@tromey.com>
7052
7053 * minidebug.c (gnu_debug_key): New global.
7054 (find_separate_debug_file_in_section): Use it.
7055
e8217e61
SM
70562020-02-14 Simon Marchi <simon.marchi@efficios.com>
7057
7058 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7059 std::unique_ptr.
7060 * gdbarch.c: Re-generate.
7061 * gdbarch.h: Re-generate.
7062 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7063 change.
7064 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7065 type to std::unique_ptr.
7066 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7067 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7068 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7069 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7070 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7071 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7072 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7073 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7074 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7075
d8d83535
SM
70762020-02-14 Simon Marchi <simon.marchi@efficios.com>
7077
7078 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7079 std::unique_ptr.
7080 (displaced_step_clear): Rename to...
7081 (displaced_step_reset): ... this. Just call displaced->reset ().
7082 (displaced_step_clear_cleanup): Rename to...
7083 (displaced_step_reset_cleanup): ... this.
7084 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7085 (displaced_step_fixup): Likewise.
7086 (resume_1): Likewise.
7087 (handle_inferior_event): Restore child's memory before calling
7088 displaced_step_fixup on the parent.
7089 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7090 to std::unique_ptr.
7091 <step_closure>: Change type to std::unique_ptr.
7092
5f661e03
SM
70932020-02-14 Simon Marchi <simon.marchi@efficios.com>
7094
7095 * arm-tdep.c: Include count-one-bits.h.
7096 (cleanup_block_store_pc): Use count_one_bits.
7097 (cleanup_block_load_pc): Use count_one_bits.
7098 (arm_copy_block_xfer): Use count_one_bits.
7099 (thumb2_copy_block_xfer): Use count_one_bits.
7100 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7101 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7102 (thumb_get_next_pcs_raw): Use count_one_bits.
7103 (arm_get_next_pcs_raw): Use count_one_bits_l.
7104 * arch/arm.c (bitcount): Remove.
7105 * arch/arm.h (bitcount): Remove.
7106
8084e579
TT
71072020-02-14 Tom Tromey <tromey@adacore.com>
7108
7109 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7110 Update.
7111 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7112 * dwarf2/loc.c (call_site_find_chain_1): Return
7113 unique_xmalloc_ptr.
7114 (call_site_find_chain): Likewise.
7115
258bf0ee
RB
71162020-02-14 Richard Biener <rguenther@suse.de>
7117
7118 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7119 on expression with division operators.
7120
f98a8458
AKS
71212020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7122
7123 * MAINTAINERS (Write After Approval): Adding myself.
7124
d1437c0e
TT
71252020-02-12 Tom Tromey <tom@tromey.com>
7126
7127 * event-loop.c (event_data, gdb_event, event_handler_func):
7128 Remove.
7129
3d4560f7
TT
71302020-02-12 Tom Tromey <tom@tromey.com>
7131
7132 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7133 (dwarf2_frame_objfile_data): Add comment.
7134 (find_comp_unit, set_comp_unit): New functions.
7135 (dwarf2_frame_find_fde): Use find_comp_unit.
7136 (dwarf2_build_frame_info): Use set_comp_unit.
7137
21982304
TT
71382020-02-12 Tom Tromey <tom@tromey.com>
7139
7140 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7141 (comp_unit): Don't initialize objfile.
7142 (execute_cfa_program): Add text_offset parameter.
7143 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7144 (dwarf2_frame_cache): Update.
7145 (dwarf2_build_frame_info): Don't set "objfile" member.
7146
4debb237
TT
71472020-02-12 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7150 (decode_frame_entry): Likewise.
7151 (dwarf2_build_frame_info): Update.
7152
0d404d44
TT
71532020-02-12 Tom Tromey <tom@tromey.com>
7154
7155 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7156 (decode_frame_entry_1): Use the comp_unit obstack.
7157
a7a3ae5c
TT
71582020-02-12 Tom Tromey <tom@tromey.com>
7159
7160 * dwarf2/frame.c (struct comp_unit): Add initializers and
7161 constructor.
7162 (dwarf2_frame_objfile_data): Store a comp_unit.
7163 (dwarf2_frame_find_fde): Update.
7164 (dwarf2_build_frame_info): Use "new".
7165
a9d65418
TT
71662020-02-12 Tom Tromey <tom@tromey.com>
7167
7168 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7169 (dwarf2_fde_table): Typedef for std::vector.
7170 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7171 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7172 (decode_frame_entry): Update.
7173 (dwarf2_build_frame_info): Use "new".
7174
7559c217
CB
71752020-02-12 Christian Biesinger <cbiesinger@google.com>
7176
7177 * arm-tdep.c (arm_gdbarch_init): Update.
7178 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7179 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7180 have_neon, is_m>: Change to bool.
7181
aeefc73c
CB
71822020-02-12 Christian Biesinger <cbiesinger@google.com>
7183
7184 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7185
d27b8e5f
TT
71862020-02-12 Tom Tromey <tom@tromey.com>
7187
7188 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7189
cd5900f3
HD
71902020-02-12 Hannes Domani <ssbssa@yahoo.de>
7191
7192 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7193 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7194
f056b22b
TT
71952020-02-11 Tom Tromey <tom@tromey.com>
7196
7197 * psymtab.h: Update comment.
7198
f92ff6b5
TT
71992020-02-11 Tom Tromey <tom@tromey.com>
7200
7201 * gdb_obstack.h (struct auto_obstack): Use
7202 DISABLE_COPY_AND_ASSIGN.
7203
3fd6912b
TT
72042020-02-11 Tom Tromey <tom@tromey.com>
7205
7206 * dwarf2/frame.h (struct objfile): Don't forward declare.
7207
69ed9b74
CB
72082020-02-11 Christian Biesinger <cbiesinger@google.com>
7209
7210 * cris-tdep.c (cris_supply_gregset): Change signature to match
7211 what struct regset expects.
7212 (cris_regset): New struct.
7213 (fetch_core_registers): Remove.
7214 (cris_iterate_over_regset_sections): New function.
7215 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7216 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7217
bda874f6
CB
72182020-02-11 Christian Biesinger <cbiesinger@google.com>
7219
7220 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7221 registers.
7222
754e1564
CB
72232020-02-11 Christian Biesinger <cbiesinger@google.com>
7224
7225 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7226
8ddd8e0e
SM
72272020-02-11 Simon Marchi <simon.marchi@efficios.com>
7228
7229 * configure: Re-generate.
7230
898e7f60
SM
72312020-02-11 Simon Marchi <simon.marchi@efficios.com>
7232
7233 * configure: Re-generate.
7234
58df732b
SM
72352020-02-11 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * acinclude: Update warning.m4 path.
7238 * warning.m4: Move to gdbsupport.
7239
da5bd37e
TT
72402020-02-11 Tom Tromey <tromey@adacore.com>
7241
7242 * remote.c (remote_console_output): Update.
7243 * printcmd.c (printf_command): Update.
7244 * event-loop.c (gdb_wait_for_event): Update.
7245 * linux-nat.c (sigchld_handler): Update.
7246 * remote-sim.c (gdb_os_write_stdout): Update.
7247 (gdb_os_flush_stdout): Update.
7248 (gdb_os_flush_stderr): Update.
7249 (gdb_os_write_stderr): Update.
7250 * exceptions.c (print_exception): Update.
7251 * remote-fileio.c (remote_fileio_func_read): Update.
7252 (remote_fileio_func_write): Update.
7253 * tui/tui.c (tui_enable): Update.
7254 * tui/tui-interp.c (tui_interp::init): Update.
7255 * utils.c (init_page_info): Update.
7256 (putchar_unfiltered, fputc_unfiltered): Update.
7257 (gdb_flush): Update.
7258 (emit_style_escape): Update.
7259 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7260 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7261 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7262 (stderr_file::write): Update.
7263 (stderr_file::puts): Update.
7264 * ui-file.h (ui_file_isatty, ui_file_write)
7265 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7266 (ui_file_puts): Don't declare.
7267
85f0dd3c
TV
72682020-02-10 Tom de Vries <tdevries@suse.de>
7269
7270 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7271 sentinel to char *.
7272
2e927613
TV
72732020-02-09 Tom de Vries <tdevries@suse.de>
7274
7275 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7276 filename if it matches "<artificial>".
7277
6bafc845
HD
72782020-02-09 Hannes Domani <ssbssa@yahoo.de>
7279
7280 * windows-tdep.c (struct enum_value_name): New struct.
7281 (create_enum): New function.
7282 (windows_get_siginfo_type): Create and use enum types.
7283
7928d571
HD
72842020-02-09 Hannes Domani <ssbssa@yahoo.de>
7285
7286 * NEWS: Mention $_siginfo support for Windows.
7287 * windows-nat.c (handle_exception): Set siginfo_er.
7288 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7289 (windows_xfer_siginfo): New function.
7290 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7291 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7292 (init_windows_gdbarch_data): New function.
7293 (get_windows_gdbarch_data): New function.
7294 (windows_get_siginfo_type): New function.
7295 (windows_init_abi): Register windows_get_siginfo_type.
7296 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7297
6751ebae
TT
72982020-02-08 Tom Tromey <tom@tromey.com>
7299
7300 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7301 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7302 <keep>: Declare method.
7303 <m_keep>: Remove member.
7304 <~cutu_reader>: Remove.
7305 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7306 (cutu_reader::cutu_reader): Update.
7307 (cutu_reader::keep): Rename from ~cutu_reader.
7308 (process_psymtab_comp_unit, build_type_psymtabs_1)
7309 (process_skeletonless_type_unit, load_partial_comp_unit)
7310 (load_full_comp_unit, dwarf2_read_addr_index)
7311 (read_signatured_type): Update.
7312
135f5437
TT
73132020-02-08 Tom Tromey <tom@tromey.com>
7314
7315 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7316 "want_partial_unit" parameter.
7317 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7318 Inline check for DW_TAG_partial_unit.
7319 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7320
9f66ff1c
TT
73212020-02-08 Tom Tromey <tom@tromey.com>
7322
7323 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7324 read.c.
7325 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7326 read.c.
7327
c8a7a66f
TT
73282020-02-08 Tom Tromey <tom@tromey.com>
7329
7330 * dwarf2/read.c (read_address): Move to comp-unit.c.
7331 (dwarf2_rnglists_process, dwarf2_ranges_process)
7332 (read_attribute_value, dwarf_decode_lines_1)
7333 (var_decode_location, decode_locdesc): Update.
7334 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7335 read.c. Remove "cu" parameter.
7336 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7337 method.
7338
8266302d
TT
73392020-02-08 Tom Tromey <tom@tromey.com>
7340
7341 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7342 (read_indirect_line_string): Update.
7343 * dwarf2/comp-unit.c (read_offset): Remove.
7344 (read_comp_unit_head): Update.
7345 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
7346 method.
7347 (read_offset): Don't declare.
7348
4057dfde
TT
73492020-02-08 Tom Tromey <tom@tromey.com>
7350
7351 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
7352 * dwarf2/read.c (struct comp_unit_head): Move to
7353 dwarf2/comp-unit.h.
7354 (enum class rcuh_kind): Move to comp-unit.h.
7355 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
7356 (read_comp_unit_head, error_check_comp_unit_head)
7357 (read_and_check_comp_unit_head): Move to comp-unit.c.
7358 (read_offset, dwarf_unit_type_name): Likewise.
7359 (create_debug_type_hash_table, read_cutu_die_from_dwo)
7360 (cutu_reader::cutu_reader, read_call_site_scope)
7361 (find_partial_die, follow_die_offset): Update.
7362 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
7363
24aa364d
TT
73642020-02-08 Tom Tromey <tom@tromey.com>
7365
7366 * dwarf2/read.c (read_offset_1): Move to leb.c.
7367 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
7368 (dwarf_decode_macro_bytes): Update.
7369 * dwarf2/leb.c (read_offset): Rename; move from read.c.
7370 * dwarf2/leb.h (read_offset): Declare.
7371
2c7d5afc
TT
73722020-02-08 Tom Tromey <tom@tromey.com>
7373
7374 * dwarf2/read.c (dwarf2_section_size): Remove.
7375 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
7376 Update.
7377 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
7378
4075cb26
TT
73792020-02-08 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2/read.c (read_initial_length): Move to leb.c.
7382 * dwarf2/leb.h (read_initial_length): Declare.
7383 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
7384 handle_nonstd parameter.
7385 * dwarf2/frame.c (read_initial_length): Remove.
7386 (decode_frame_entry_1): Update.
7387
09ba997f
TT
73882020-02-08 Tom Tromey <tom@tromey.com>
7389
7390 * dwarf2/loc.c (dwarf2_find_location_expression)
7391 (dwarf_evaluate_loc_desc::get_tls_address)
7392 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
7393 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
7394 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
7395 (dwarf2_compile_property_to_c)
7396 (dwarf2_loc_desc_get_symbol_read_needs)
7397 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
7398 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
7399 (loclist_describe_location, loclist_tracepoint_var_ref)
7400 (loclist_generate_c_location): Update.
7401 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
7402 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
7403 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
7404 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
7405 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
7406 (dwarf2_per_cu_data::addr_size)
7407 (dwarf2_per_cu_data::ref_addr_size)
7408 (dwarf2_per_cu_data::text_offset)
7409 (dwarf2_per_cu_data::addr_type): Now methods.
7410 (per_cu_header_read_in): Make per_cu "const".
7411 (dwarf2_version): Remove.
7412 (dwarf2_per_cu_data::int_type): Now a method.
7413 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
7414 (set_die_type, read_array_type, read_subrange_index_type)
7415 (read_tag_string_type, read_subrange_type): Update.
7416 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
7417 offset_size, ref_addr_size, text_offset, addr_type, version,
7418 objfile, int_type, addr_sized_int_type>: Declare methods.
7419
96c738c0
TT
74202020-02-08 Tom Tromey <tom@tromey.com>
7421
7422 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
7423 Move earlier.
7424
8fdd972c
TT
74252020-02-08 Tom Tromey <tom@tromey.com>
7426
7427 * dwarf2/read.h (dwarf_line_debug): Declare.
7428 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
7429 * dwarf2/read.c: Move line_header code to new files.
7430 (dwarf_line_debug): No longer static.
7431 * dwarf2/line-header.c: New file.
7432 * dwarf2/line-header.h: New file.
7433
03075812
TT
74342020-02-08 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2/read.c (struct line_header) <file_full_name,
7437 file_file_name>: Return unique_xmalloc_ptr.
7438 (line_header::file_file_name): Update.
7439 (line_header::file_full_name): Update.
7440 (dw2_get_file_names_reader): Update.
7441 (macro_start_file): Update.
7442
bb822404
TT
74432020-02-08 Tom Tromey <tom@tromey.com>
7444
7445 * dwarf2/read.c (struct line_header) <file_full_name,
7446 file_file_name>: Declare methods.
7447 (dw2_get_file_names_reader): Update.
7448 (file_file_name): Now a method.
7449 (file_full_name): Likewise.
7450 (macro_start_file): Update.
7451
009b64fc
TT
74522020-02-08 Tom Tromey <tom@tromey.com>
7453
7454 * dwarf2/read.c (dwarf_always_disassemble)
7455 (show_dwarf_always_disassemble): Move to loc.c.
7456 (_initialize_dwarf2_read): Move "always-disassemble" registration
7457 to loc.c.
7458 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
7459 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
7460 static.
7461 (show_dwarf_always_disassemble): Move from read.c.
7462 (_initialize_dwarf2loc): Move always-disassemble from read.c.
7463
5895093f
TT
74642020-02-08 Tom Tromey <tom@tromey.com>
7465
7466 * dwarf2/read.c (~dwarf2_per_objfile): Update.
7467 (create_quick_file_names_table): Return htab_up.
7468 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
7469 Update.
7470 * dwarf2/read.h (struct dwarf2_per_objfile)
7471 <quick_file_names_table>: Now htab_up.
7472
b3b32279
TT
74732020-02-08 Tom Tromey <tom@tromey.com>
7474
7475 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
7476
1d33d811
TT
74772020-02-08 Tom Tromey <tom@tromey.com>
7478
7479 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
7480 Rewrite.
7481 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
7482 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
7483 (abbrev_table::abbrev_table): No longer inline.
7484 (ABBREV_HASH_SIZE): Remove.
7485 (abbrev_table::m_abbrevs): Now an htab_up.
7486
86de1d91
TT
74872020-02-08 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
7490 (cutu_reader): Update.
7491 (build_type_psymtabs_1): Update.
7492 * dwarf2/abbrev.c (abbrev_table::read): Rename.
7493 (abbrev_table::alloc_abbrev): Update.
7494 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
7495 (abbrev_table::read): New static method, renamed from
7496 abbrev_table_read_table.
7497 (abbrev_table::alloc_abbrev)
7498 (abbrev_table::add_abbrev): Now private.
7499 (abbrev_table::abbrev_table): Now private.
7500 (abbrev_table::m_abbrev_obstack): Now private. Rename.
7501
0335378b
TT
75022020-02-08 Tom Tromey <tom@tromey.com>
7503
7504 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
7505 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
7506 htab_up.
7507
48b490f2
TT
75082020-02-08 Tom Tromey <tom@tromey.com>
7509
7510 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
7511 htab_up.
7512 (lookup_dwo_unit_in_dwp): Update.
7513 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
7514 on obstack.
7515
bc68fb19
TT
75162020-02-08 Tom Tromey <tom@tromey.com>
7517
7518 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
7519 obstack.
7520
d15acc42
TT
75212020-02-08 Tom Tromey <tom@tromey.com>
7522
7523 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
7524 line_header_hash.
7525 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
7526 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
7527 Change type to htab_up.
7528
eaa5fa8b
TT
75292020-02-08 Tom Tromey <tom@tromey.com>
7530
7531 * dwarf2/read.c (allocate_type_unit_groups_table): Return
7532 htab_up. Don't allocate on obstack.
7533 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
7534 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
7535 Change type to htab_up.
7536
b0b6a987
TT
75372020-02-08 Tom Tromey <tom@tromey.com>
7538
7539 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
7540 Change type to htab_up.
7541 * dwarf2/read.c (create_signatured_type_table_from_index)
7542 (create_signatured_type_table_from_debug_names)
7543 (create_all_type_units, add_type_unit)
7544 (lookup_dwo_signatured_type, lookup_signatured_type)
7545 (process_skeletonless_type_unit): Update.
7546 (create_debug_type_hash_table, create_debug_types_hash_table):
7547 Change type of types_htab.
7548 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
7549 htab_up. Don't allocate on obstack.
7550 (create_cus_hash_table): Change type of cus_htab parameter.
7551 (struct dwo_file) <cus, tus>: Now htab_up.
7552 (lookup_dwo_signatured_type, lookup_dwo_cutu)
7553 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
7554 (queue_and_load_all_dwo_tus): Update.
7555 * dwarf2/index-write.c (write_gdbindex): Update.
7556 (write_debug_names): Update.
7557
39856def
TT
75582020-02-08 Tom Tromey <tom@tromey.com>
7559
7560 * dwarf2/read.h (struct dwarf2_queue_item): Move from
7561 dwarf2/read.c. Remove "next" member. Add constructor ntad
7562 destructor.
7563 (struct dwarf2_per_objfile) <queue>: New member.
7564 * dwarf2/read.c (struct dwarf2_queue_item): Move to
7565 dwarf2/read.h.
7566 (dwarf2_queue, dwarf2_queue_tail): Remove.
7567 (class dwarf2_queue_guard): Add parameter to constructor. Use
7568 DISABLE_COPY_AND_ASSIGN.
7569 <m_per_objfile>: New member.
7570 <~dwarf2_queue_guard>: Rewrite.
7571 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
7572 Update.
7573 (~dwarf2_queue_item): New.
7574
3e225074
TT
75752020-02-08 Tom Tromey <tom@tromey.com>
7576
7577 * dwarf2/read.c (struct die_info) <has_children>: New member.
7578 (dw2_get_file_names_reader): Remove has_children.
7579 (dw2_get_file_names): Update.
7580 (read_cutu_die_from_dwo): Remove has_children.
7581 (cutu_reader::init_tu_and_read_dwo_dies)
7582 (cutu_reader::cutu_reader): Update.
7583 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
7584 Remove has_children.
7585 (build_type_psymtabs_1, process_skeletonless_type_unit)
7586 (load_partial_comp_unit, load_full_comp_unit): Update.
7587 (create_dwo_cu_reader): Remove has_children.
7588 (create_cus_hash_table, read_die_and_children): Update.
7589 (read_full_die_1,read_full_die): Remove has_children.
7590 (read_signatured_type): Update.
7591 (class cutu_reader) <has_children>: Remove.
7592
82ca8957
TT
75932020-02-08 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/expr.c: Rename from dwarf2expr.c.
7596 * dwarf2/expr.h: Rename from dwarf2expr.h.
7597 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
7598 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
7599 * dwarf2/frame.c: Rename from dwarf2-frame.c.
7600 * dwarf2/frame.h: Rename from dwarf2-frame.h.
7601 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
7602 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
7603 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
7604 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
7605 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
7606 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
7607 * dwarf2/loc.c: Rename from dwarf2loc.c.
7608 * dwarf2/loc.h: Rename from dwarf2loc.h.
7609 * dwarf2/read.c: Rename from dwarf2read.c.
7610 * dwarf2/read.h: Rename from dwarf2read.h.
7611 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
7612 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
7613 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
7614 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
7615 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
7616 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
7617 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
7618 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
7619 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
7620 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
7621 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
7622 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
7623 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
7624 Update.
7625 * Makefile.in (COMMON_SFILES): Update.
7626 (HFILES_NO_SRCDIR): Update.
7627
9e35d499
TT
76282020-02-08 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
7631 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
7632
1eba2311
TT
76332020-02-08 Tom Tromey <tom@tromey.com>
7634
7635 * dwarf2read.h (struct die_info): Don't declare.
7636
e41c2da2
TT
76372020-02-08 Tom Tromey <tom@tromey.com>
7638
7639 * dwarf2read.h (die_info_ptr): Remove typedef.
7640
4fc6c0d5
TT
76412020-02-08 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2read.c (read_call_site_scope)
7644 (handle_data_member_location, dwarf2_add_member_fn)
7645 (mark_common_block_symbol_computed, read_common_block)
7646 (attr_to_dynamic_prop, partial_die_info::read)
7647 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
7648 (dwarf2_symbol_mark_computed, set_die_type): Update.
7649 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
7650 method.
7651 (attr_form_is_block): Don't declare.
7652 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
7653
cd6c91b4
TT
76542020-02-08 Tom Tromey <tom@tromey.com>
7655
7656 * dwarf2read.c (dwarf2_find_base_address, )
7657 (read_call_site_scope, rust_containing_type)
7658 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
7659 (handle_data_member_location, dwarf2_add_member_fn)
7660 (get_alignment, read_structure_type, process_structure_scope)
7661 (mark_common_block_symbol_computed, read_common_block)
7662 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
7663 (partial_die_info::read, read_attribute_value, new_symbol)
7664 (lookup_die_type, dwarf2_get_ref_die_offset)
7665 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
7666 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
7667 (dwarf2_symbol_mark_computed): Update.
7668 * dwarf2/attribute.h (struct attribute) <value_as_address,
7669 form_is_section_offset, form_is_constant, form_is_ref>: Declare
7670 methods.
7671 (value_as_address, attr_form_is_section_offset)
7672 (attr_form_is_constant, attr_form_is_ref): Don't declare.
7673 * dwarf2/attribute.c (attribute::value_as_address)
7674 (attribute::form_is_section_offset, attribute::form_is_constant)
7675 (attribute::form_is_ref): Now methods.
7676
162dce55
TT
76772020-02-08 Tom Tromey <tom@tromey.com>
7678
7679 * dwarf2read.c (struct attribute, DW_STRING)
7680 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
7681 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
7682 (attr_form_is_block, attr_form_is_section_offset)
7683 (attr_form_is_constant, attr_form_is_ref): Move.
7684 * dwarf2/attribute.h: New file.
7685 * dwarf2/attribute.c: New file, from dwarf2read.c.
7686 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
7687
3054dd54
TT
76882020-02-08 Tom Tromey <tom@tromey.com>
7689
7690 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
7691 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
7692 Move.
7693 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
7694 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
7695 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
7696 abbrev.c.
7697 * dwarf2/abbrev.h: New file.
7698 * dwarf2/abbrev.c: New file, from dwarf2read.c.
7699 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
7700
96b79293
TT
77012020-02-08 Tom Tromey <tom@tromey.com>
7702
7703 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
7704 (dwarf2_section_size, dwarf2_get_section_info)
7705 (create_signatured_type_table_from_debug_names)
7706 (create_addrmap_from_aranges, read_debug_names_from_section)
7707 (get_gdb_index_contents_from_section, read_comp_unit_head)
7708 (error_check_comp_unit_head, read_abbrev_offset)
7709 (create_debug_type_hash_table, init_cu_die_reader)
7710 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
7711 (read_comp_units_from_section, create_cus_hash_table)
7712 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7713 (create_dwp_v2_section, dwarf2_rnglists_process)
7714 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
7715 (abbrev_table_read_table, read_indirect_string_at_offset_from)
7716 (read_indirect_string_from_dwz, read_addr_index_1)
7717 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
7718 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7719 (fill_in_loclist_baton): Update.
7720 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
7721 get_containing_section, get_bfd_owner, get_bfd_section,
7722 get_file_name, get_id, get_flags, empty, read>: Declare methods.
7723 (dwarf2_read_section, get_section_name, get_section_file_name)
7724 (get_containing_section, get_section_bfd_owner)
7725 (get_section_bfd_section, get_section_name, get_section_file_name)
7726 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
7727 declare.
7728 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
7729 (dwarf2_section_info::get_bfd_owner)
7730 (dwarf2_section_info::get_bfd_section)
7731 (dwarf2_section_info::get_name)
7732 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
7733 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
7734 (dwarf2_section_info::read): Now methods.
7735 * dwarf-index-write.c (class debug_names): Update.
7736
2c86cff9
TT
77372020-02-08 Tom Tromey <tom@tromey.com>
7738
7739 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
7740 Move to dwarf2/section.h.
7741 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
7742 (get_section_bfd_section, get_section_name)
7743 (get_section_file_name, get_section_id, get_section_flags)
7744 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
7745 dwarf2/section.c.
7746 * dwarf2/section.h: New file.
7747 * dwarf2/section.c: New file, from dwarf2read.c.
7748 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
7749
f4382c45
TT
77502020-02-08 Tom Tromey <tom@tromey.com>
7751
7752 * dwarf2read.h (read_unsigned_leb128): Don't declare.
7753 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
7754 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
7755 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
7756 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
7757 * dwarf2/leb.h: New file, from dwarf2read.c.
7758 * dwarf2/leb.c: New file, from dwarf2read.c.
7759 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
7760 Remove.
7761 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
7762 (COMMON_SFILES): Add dwarf2/leb.c.
7763
01840b7a
JB
77642020-02-08 Joel Brobecker <brobecker@adacore.com>
7765
7766 GDB 9.1 released.
7767
dfcb27e4
IB
77682020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7769
7770 PR gdb/25190:
aac66a4c
SM
7771 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
7772 * gdb/remote.c (remote_console_output): Update.
7773 * gdb/ui-file.c (fputs_unfiltered): Rename to...
7774 (ui_file_puts): ...this.
7775 * gdb/ui-file.h (ui_file_puts): Add declaration.
7776 * gdb/utils.c (emit_style_escape): Update.
7777 (flush_wrap_buffer): Update.
7778 (fputs_maybe_filtered): Update.
7779 (fputs_unfiltered): Add function.
dfcb27e4 7780
faa17681
IB
77812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7782
aac66a4c
SM
7783 * gdb/event-loop.c (gdb_wait_for_event): Update.
7784 * gdb/printcmd.c (printf_command): Update.
7785 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
7786 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
7787 (gdb_os_flush_stderr): Update.
7788 * gdb/remote.c (remote_console_output): Update.
7789 * gdb/ui-file.c (gdb_flush): Rename to...
7790 (ui_file_flush): ...this.
7791 (stderr_file::write): Update.
7792 (stderr_file::puts): Update.
7793 * gdb/ui-file.h (gdb_flush): Rename to...
7794 (ui_file_flush): ...this.
7795 * gdb/utils.c (gdb_flush): Add function.
7796 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 7797
5abbbe1d
TT
77982020-02-07 Tom Tromey <tromey@adacore.com>
7799
7800 PR breakpoints/24915:
7801 * source.c (find_and_open_source): Do not check basenames_may_differ.
7802
919adfe8
TT
78032020-02-07 Tom Tromey <tom@tromey.com>
7804
7805 * README: Update gdbserver documentation.
7806 * gdbserver: Move to top level.
7807 * configure.tgt (build_gdbserver): Remove.
7808 * configure.ac: Remove --enable-gdbserver.
7809 * configure: Rebuild.
7810 * Makefile.in (distclean): Don't mention gdbserver.
7811
1d5d29e7
SV
78122020-02-06 Shahab Vahedi <shahab@synopsys.com>
7813
7814 * source-cache.c (source_cache::ensure): Surround
7815 get_plain_source_lines with a try/catch.
7816 (source_cache::get_line_charpos): Get rid of try/catch
7817 and only check for the return value of "ensure".
7818 * tui/tui-source.c (tui_source_window::set_contents):
7819 Simplify "nlines" calculation.
7820
6eb1129c
SV
78212020-02-06 Shahab Vahedi <shahab@synopsys.com>
7822
7823 * MAINTAINERS (Write After Approval): Add myself.
7824
c6a42d11
CB
78252020-02-05 Christian Biesinger <cbiesinger@google.com>
7826
7827 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
7828 function call.
7829
c8ecdda6
CB
78302020-02-05 Christian Biesinger <cbiesinger@google.com>
7831
7832 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
7833
f6480e70
MR
78342020-02-05 Maciej W. Rozycki <macro@wdc.com>
7835
7836 * nat/riscv-linux-tdesc.h: New file.
7837 * nat/riscv-linux-tdesc.c: New file, taking code from...
7838 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7839 ... here.
7840 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
7841 NATDEPFILES.
7842
dcc9fbc6
AB
78432020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
7846 we don't set the fake simulator ptid to the null_ptid.
7847
719546c4
SM
78482020-02-03 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
7851 * gdbthread.h (class thread_info) <resumed>: Likewise.
7852 * infrun.c (resume_1): Likewise.
7853 (proceed): Likewise.
7854 (infrun_thread_stop_requested): Likewise.
7855 (stop_all_threads): Likewise.
7856 (handle_inferior_event): Likewise.
7857 (restart_threads): Likewise.
7858 (finish_step_over): Likewise.
7859 (keep_going_stepped_thread): Likewise.
7860 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
7861 (linux_handle_extended_wait): Likewise.
7862 * record-btrace.c (get_thread_current_frame_id): Likewise.
7863 * record-full.c (record_full_wait_1): Likewise.
7864 * remote.c (remote_target::process_initial_stop_replies): Likewise.
7865 * target.c (target_resume): Likewise.
7866 * thread.c (set_running_thread): Likewise.
7867
e409c542
AKS
78682020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7869
7870 * f-valprint.c (f77_print_array_1): Changed datatype of index
7871 variable to LONGEST from int to enable it to contain bound
7872 values correctly.
7873
ee98c0da
MR
78742020-02-03 Maciej W. Rozycki <macro@wdc.com>
7875
7876 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
7877 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
7878 offsets according to FLEN determined.
7879 (riscv_linux_nat_target::read_description): Determine FLEN
7880 dynamically.
7881 (riscv_linux_nat_target::fetch_registers): Size regset buffer
7882 according to FLEN determined.
7883 (riscv_linux_nat_target::store_registers): Likewise.
7884
aa66aac4
SV
78852020-02-01 Shahab Vahedi <shahab@synopsys.com>
7886
7887 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7888 when reg->group is empty and reggroup is not.
7889
fd9faca8
TT
78902020-01-31 Tom Tromey <tromey@adacore.com>
7891
7892 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
7893 Call beneath target's mourn_inferior after unpushing.
7894
42330a68
AB
78952020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 PR tui/9765
7898 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
7899 have enough lines to fill the screen, still return the lowest
7900 address we found.
7901
7a27a45b
AB
79022020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
7905 '-', '<', and '>' commands.
7906
c47f70e2
PA
79072020-01-29 Pedro Alves <palves@redhat.com>
7908 Sergio Durigan Junior <sergiodj@redhat.com>
7909
7910 * infcmd.c (construct_inferior_arguments): Assert that
7911 'argc' is greater than 0.
7912
5133a315
LM
79132020-01-29 Luis Machado <luis.machado@linaro.org>
7914
7915 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
7916 (BRK_INSN_MASK): Define to 0xd4200000.
7917 (aarch64_program_breakpoint_here_p): New function.
7918 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
7919 * arch-utils.c (default_program_breakpoint_here_p): Moved from
7920 breakpoint.c.
7921 * arch-utils.h (default_program_breakpoint_here_p): Moved from
7922 breakpoint.h
7923 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
7924 call gdbarch_program_breakpoint_here_p.
7925 (program_breakpoint_here): Moved to arch-utils.c, renamed to
7926 default_program_breakpoint_here_p, changed return type to bool and
7927 simplified.
7928 * breakpoint.h (program_breakpoint_here): Moved prototype to
7929 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
7930 return type to bool.
7931 * gdbarch.c: Regenerate.
7932 * gdbarch.h: Regenerate.
7933 * gdbarch.sh (program_breakpoint_here_p): New method.
7934 * infrun.c (handle_signal_stop): Call
7935 gdbarch_program_breakpoint_here_p.
7936
168f8c6b
TT
79372020-01-26 Tom Tromey <tom@tromey.com>
7938
7939 * ctfread.c (struct ctf_fp_info): Reindent.
7940 (_initialize_ctfread): Remove.
7941
128a391f
TT
79422020-01-26 Tom Tromey <tom@tromey.com>
7943
7944 * psymtab.c (partial_map_expand_apply)
7945 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7946 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7947 (psym_print_stats, psym_expand_symtabs_for_function)
7948 (psym_map_symbol_filenames, psym_map_matching_symbols)
7949 (psym_expand_symtabs_matching)
7950 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7951 (maintenance_check_psymtabs): Use new methods.
7952 * psympriv.h (struct partial_symtab) <readin_p,
7953 get_compunit_symtab>: New methods.
7954 <readin, compunit_symtab>: Remove members.
7955 (struct standard_psymtab): New.
7956 (struct legacy_psymtab): Derive from standard_psymtab.
7957 * dwarf2read.h (struct dwarf2_psymtab): Derive from
7958 standard_psymtab.
7959 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
7960
0494dbec
TT
79612020-01-26 Tom Tromey <tom@tromey.com>
7962
7963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
7964 read_dependencies. Add assert.
7965 * psymtab.c (partial_symtab::read_dependencies): New method.
7966 * psympriv.h (struct partial_symtab) <read_dependencies>: New
7967 method.
7968 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
7969 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
7970 read_dependencies.
7971 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
7972 Add assert.
7973
8566b89b
TT
79742020-01-26 Tom Tromey <tom@tromey.com>
7975
7976 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
7977 Call expand_psymtab.
7978 (xcoff_read_symtab): Call expand_psymtab.
7979 (xcoff_start_psymtab, xcoff_end_psymtab): Set
7980 legacy_expand_psymtab.
7981 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
7982 method.
7983 (struct legacy_psymtab) <expand_psymtab>: Implement.
7984 <legacy_expand_psymtab>: New member.
7985 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
7986 (parse_partial_symbols): Set legacy_expand_psymtab.
7987 (psymtab_to_symtab_1): Change argument order. Call
7988 expand_psymtab.
7989 (new_psymtab): Set legacy_expand_psymtab.
7990 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
7991 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
7992 expand_psymtab.
7993 (dwarf2_psymtab::expand_psymtab): Rename from
7994 psymtab_to_symtab_1. Call expand_psymtab.
7995 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
7996 (dbx_end_psymtab): Likewise.
7997 (dbx_psymtab_to_symtab_1): Change argument order. Call
7998 expand_psymtab.
7999 (dbx_read_symtab): Call expand_psymtab.
8000 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8001 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8002 (ctf_psymtab::read_symtab): Call expand_psymtab.
8003
077cbab2
TT
80042020-01-26 Tom Tromey <tom@tromey.com>
8005
8006 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8007 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8008 messages.
8009 * mdebugread.c (mdebug_read_symtab): Remove prints.
8010 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8011 assert.
8012 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8013
891813be
TT
80142020-01-26 Tom Tromey <tom@tromey.com>
8015
8016 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8017 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8018 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8019 legacy_symtab.
8020 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8021 * psymtab.c (psymtab_to_symtab): Call method.
8022 (dump_psymtab): Update.
8023 * psympriv.h (struct partial_symtab): Add virtual destructor.
8024 <read_symtab>: New method.
8025 (struct legacy_symtab): New.
8026 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8027 (struct pst_map) <pst>: Now a legacy_psymtab.
8028 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8029 (new_psymtab): Use legacy_psymtab.
8030 * dwarf2read.h (struct dwarf2_psymtab): New.
8031 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8032 * dwarf2read.c (dwarf2_create_include_psymtab)
8033 (dwarf2_build_include_psymtabs, create_type_unit_group)
8034 (create_partial_symtab, process_psymtab_comp_unit_reader)
8035 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8036 (set_partial_user): Use dwarf2_psymtab.
8037 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8038 (psymtab_to_symtab_1, process_full_comp_unit)
8039 (process_full_type_unit, dwarf2_ranges_read)
8040 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8041 (dwarf_decode_lines): Use dwarf2_psymtab.
8042 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8043 (add_address_entry_worker, write_one_signatured_type)
8044 (recursively_count_psymbols, recursively_write_psymbols)
8045 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8046 (write_debug_names): Likewise.
8047 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8048 <pst>: Now a legacy_psymtab.
8049 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8050 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8051 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8052 * ctfread.c (struct ctf_psymtab): New.
8053 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8054 ctf_psymtab.
8055 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8056 (create_partial_symtab): Return a ctf_psymtab.
8057 (scan_partial_symbols): Update.
8058
c3693a1d
TT
80592020-01-26 Tom Tromey <tom@tromey.com>
8060
8061 * xcoffread.c (xcoff_start_psymtab): Use new.
8062 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8063 renamed from start_psymtab_common.
8064 * psympriv.h (struct partial_symtab): Add new constructor.
8065 (start_psymtab_common): Don't declare.
8066 * mdebugread.c (parse_partial_symbols): Use new.
8067 * dwarf2read.c (create_partial_symtab): Use new.
8068 * dbxread.c (start_psymtab): Use new.
8069 * ctfread.c (create_partial_symtab): Use new.
8070
32caafd0
TT
80712020-01-26 Tom Tromey <tom@tromey.com>
8072
8073 * xcoffread.c (xcoff_end_psymtab): Use new.
8074 * psymtab.c (start_psymtab_common): Use new.
8075 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8076 Update.
8077 * psympriv.h (struct partial_symtab): Add parameters to
8078 constructor. Don't inline.
8079 (allocate_psymtab): Don't declare.
8080 * mdebugread.c (new_psymtab): Use new.
8081 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8082 * dbxread.c (dbx_end_psymtab): Use new.
8083
abaa2f23
TT
80842020-01-26 Tom Tromey <tom@tromey.com>
8085
8086 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8087 allocate_psymtab. Update documentation.
8088 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8089 allocate_psymtab. Do not use new.
8090 (allocate_psymtab): Use new. Update.
8091
6d94535f
TT
80922020-01-26 Tom Tromey <tom@tromey.com>
8093
8094 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8095 * psymtab.c (psym_print_stats): Update.
8096 * psympriv.h (struct partial_symtab) <readin,
8097 psymtabs_addrmap_supported, anonymous>: Now bool.
8098 * mdebugread.c (psymtab_to_symtab_1): Update.
8099 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8100 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8101 (process_full_comp_unit, process_full_type_unit): Update.
8102 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8103 * ctfread.c (psymtab_to_symtab): Update.
8104
6f17252b
TT
81052020-01-26 Tom Tromey <tom@tromey.com>
8106
8107 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8108 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8109 * psymtab.c (psymtab_storage): Delete psymtabs.
8110 (psymtab_storage::allocate_psymtab): Use new.
8111 (psymtab_storage::discard_psymtab): Use delete.
8112 * psympriv.h (struct partial_symtab): Add constructor and
8113 initializers.
8114
f6f1cebc
TT
81152020-01-26 Tom Tromey <tom@tromey.com>
8116
8117 * machoread.c: Do not include psympriv.h.
8118
e47e48f6
PW
81192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8120
8121 * NEWS: Mention the new option and the set/show commands.
8122
a2fedca9
PW
81232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8124
8125 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8126 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8127 (validate_exec_file): New variables, enums, functions.
8128 (exec_file_locate_attach, print_section_info): Style the filenames.
8129 (_initialize_exec): Install show_exec_file_mismatch_command and
8130 set_exec_file_mismatch_command.
8131 * gdbcore.h (validate_exec_file): Declare.
8132 * infcmd.c (attach_command): Call validate_exec_file.
8133 * remote.c ( remote_target::remote_add_inferior): Likewise.
8134
7ffa82e1
AB
81352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8136
8137 * frame.c (find_frame_sal): Move call to get_next_frame into more
8138 inner scope.
8139 * inline-frame.c (inilne_state) <inline_state>: Update argument
8140 types.
8141 (inilne_state) <skipped_symbol>: Rename to...
8142 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8143 (skip_inline_frames): Build vector of skipped symbols and use this
8144 to reate the inline_state.
8145 (inline_skipped_symbol): Add a comment and some assertions, fetch
8146 skipped symbol from the list.
8147
3d92a3e3
AB
81482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * buildsym.c (lte_is_less_than): Delete.
8151 (buildsym_compunit::end_symtab_with_blockvector): Create local
8152 lambda function to sort line table entries, and use
8153 std::stable_sort instead of std::sort.
8154 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8155 markers when looking for a previous line.
8156
94a72be7
AB
81572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * dwarf2read.c (lnp_state_machine::record_line): Include
8160 end_sequence parameter in debug print out. Record the line if we
8161 are at an end_sequence marker even if it's not the start of a
8162 statement.
8163 * symmisc.c (maintenance_print_one_line_table): Print end of
8164 sequence markers with 'END' not '0'.
8165
53af73bf
PA
81662020-01-24 Pedro Alves <palves@redhat.com>
8167
8168 PR gdb/25410
8169 * thread.c (scoped_restore_current_thread::restore): Use
8170 switch_to_inferior_no_thread.
8171 * exec.c: Include "progspace-and-thread.h".
8172 (add_target_sections, remove_target_sections):
8173 scoped_restore_current_pspace_and_thread instead of
8174 scoped_restore_current_thread.
8175 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8176 and aspace to the inferior before calling clone_program_space.
8177 Remove stale comment.
8178
3050c6f4
CB
81792020-01-24 Christian Biesinger <cbiesinger@google.com>
8180
8181 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8182 (arm_netbsd_nat_target::fetch_registers): ...this.
8183 (arm_nbsd_nat_target::store_registers): Rename to...
8184 (arm_netbsd_nat_target::store_registers): ...this.
8185
73685c7e
CB
81862020-01-24 Christian Biesinger <cbiesinger@google.com>
8187
8188 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8189 register_t.
8190
89203d40
CB
81912020-01-24 Christian Biesinger <cbiesinger@google.com>
8192
8193 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8194 Update comment.
8195 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8196 Likewise.
8197 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8198 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8199 the correct replacement (iterate_over_regset_sections).
8200 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8201 Update comment.
8202
1ba1ac88
AB
82032020-01-24 Graham Markall <graham.markall@embecosm.com>
8204
8205 PR gdb/23718
8206 * gdb/python/python.c (execute_gdb_command): Call
8207 async_enable_stdin in catch block.
8208
f3364a6d
AB
82092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8212 SWITCH_THRU_ALL_UIS.
8213
733d0a67
AB
82142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 PR tui/9765
8217 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8218 comment, add extra parameter, and update to store previous symbol
8219 when appropriate.
8220 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8221 add extra parameter.
8222 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8223 remove unneeded parameter, add try/catch around gdb_print_insn,
8224 rewrite to add items to asm_lines vector.
8225 (tui_find_backward_disassembly_start_address): New function.
8226 (tui_find_disassembly_address): Updated throughout.
8227 (tui_disasm_window::set_contents): Update for changes to
8228 tui_disassemble.
8229 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8230 number of lines to scroll.
8231
b3b3bada
SM
82322020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8233
8234 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8235 (SECT_OFF_DATA): Likewise.
8236 (SECT_OFF_RODATA): Likewise.
8237 (SECT_OFF_TEXT): Likewise.
8238 (SECT_OFF_BSS): Likewise.
8239 (struct objfile) <text_section_offset, data_section_offset>: New
8240 methods.
8241 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8242 objfile::text_section_offset.
8243 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8244 * coffread.c (coff_symtab_read): Likewise.
8245 (enter_linenos): Likewise.
8246 (process_coff_symbol): Likewise.
8247 * ctfread.c (get_objfile_text_range): Likewise.
8248 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8249 Use objfile::data_section_offset.
8250 * dwarf2-frame.c (execute_cfa_program): Use
8251 objfile::text_section_offset.
8252 (dwarf2_frame_find_fde): Likewise.
8253 * dwarf2read.c (create_addrmap_from_index): Likewise.
8254 (create_addrmap_from_aranges): Likewise.
8255 (dw2_find_pc_sect_compunit_symtab): Likewise.
8256 (process_psymtab_comp_unit_reader): Likewise.
8257 (add_partial_symbol): Likewise.
8258 (add_partial_subprogram): Likewise.
8259 (process_full_comp_unit): Likewise.
8260 (read_file_scope): Likewise.
8261 (read_func_scope): Likewise.
8262 (read_lexical_block_scope): Likewise.
8263 (read_call_site_scope): Likewise.
8264 (dwarf2_rnglists_process): Likewise.
8265 (dwarf2_ranges_process): Likewise.
8266 (dwarf2_ranges_read): Likewise.
8267 (dwarf_decode_lines_1): Likewise.
8268 (new_symbol): Likewise.
8269 (dwarf2_fetch_die_loc_sect_off): Likewise.
8270 (dwarf2_per_cu_text_offset): Likewise.
8271 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8272 * hppa-tdep.c (read_unwind_info): Likewise.
8273 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8274 * psympriv.h (struct partial_symtab): Likewise.
8275 * psymtab.c (find_pc_sect_psymtab): Likewise.
8276 * solib-svr4.c (enable_break): Likewise.
8277 * stap-probe.c (relocate_address): Use
8278 objfile::data_section_offset.
8279 * xcoffread.c (enter_line_range): Use
8280 objfile::text_section_offset.
8281 (read_xcoff_symtab): Likewise.
8282
ab53f382
SM
82832020-01-23 Simon Marchi <simon.marchi@efficios.com>
8284
8285 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8286 declaration to narrower scopes.
8287
e7eee665
SM
82882020-01-23 Simon Marchi <simon.marchi@efficios.com>
8289
8290 * darwin-nat.h (struct darwin_exception_msg, enum
8291 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8292 Move up.
8293 (class darwin_nat_target) <wait_1, check_new_threads,
8294 decode_exception_message, decode_message, stop_inferior,
8295 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8296 * darwin-nat.c (darwin_check_new_threads): Rename to...
8297 (darwin_nat_target::check_new_threads): ... this.
8298 (darwin_suspend_inferior_it): Remove.
8299 (darwin_decode_exception_message): Rename to...
8300 (darwin_nat_target::decode_exception_message): ... this.
8301 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8302 (darwin_decode_message): Rename to...
8303 (darwin_nat_target::decode_message): ... this.
8304 (cancel_breakpoint): Rename to...
8305 (darwin_nat_target::cancel_breakpoint): ... this.
8306 (darwin_wait): Rename to...
8307 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8308 instead of iterate_over_inferiors.
8309 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8310 (darwin_stop_inferior): Rename to...
8311 (darwin_nat_target::stop_inferior): ... this.
8312 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8313 (darwin_init_thread_list): Rename to...
8314 (darwin_nat_target::init_thread_list): ... this.
8315 (darwin_ptrace_him): Rename to...
8316 (darwin_nat_target::ptrace_him): ... this.
8317 (darwin_nat_target::create_inferior): Pass lambda function to
8318 fork_inferior.
8319 (darwin_nat_target::detach): Call stop_inferior instead of
8320 darwin_stop_inferior.
8321 * fork-inferior.h (fork_inferior): Change init_trace_fun
8322 parameter to gdb::function_view.
8323 * fork-inferior.c (fork_inferior): Likewise.
8324
c162ed3e
HD
83252020-01-23 Hannes Domani <ssbssa@yahoo.de>
8326
8327 * i386-cygwin-tdep.c (core_process_module_section): Update.
8328 * windows-nat.c (struct lm_info_windows): Add text_offset.
8329 (windows_xfer_shared_libraries): Update.
8330 * windows-tdep.c (windows_xfer_shared_library):
8331 Add text_offset_cached argument.
8332 * windows-tdep.h (windows_xfer_shared_library): Update.
8333
a1237872
SM
83342020-01-21 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8337
b3ee6dd9
SM
83382020-01-21 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8341 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8342 replace with range-based for.
8343 (gdbsim_interrupt_inferior): Remove.
8344 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
8345 with a range-based for. Inline code from
8346 gdbsim_interrupt_inferior.
8347
f9fac3c8
SM
83482020-01-21 Simon Marchi <simon.marchi@efficios.com>
8349
8350 * infrun.c (proceed): Fix indentation.
8351
f6474de9
TT
83522020-01-21 Tom Tromey <tromey@adacore.com>
8353
8354 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
8355 * python/python.c (python_extension_ops): Update.
8356 (gdbpy_colorize): New function.
8357 * python/lib/gdb/__init__.py (colorize): New function.
8358 * extension.h (ext_lang_colorize): Declare.
8359 * extension.c (ext_lang_colorize): New function.
8360 * extension-priv.h (struct extension_language_ops) <colorize>: New
8361 member.
8362 * cli/cli-style.c (_initialize_cli_style): Update help text.
8363
f0c702d4
LM
83642020-01-21 Luis Machado <luis.machado@linaro.org>
8365
8366 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
8367 <cond>: Change type to bool.
8368 (aarch64_displaced_step_b_cond): Update cond to use bool type.
8369 (aarch64_displaced_step_cb): Likewise.
8370 (aarch64_displaced_step_tb): Likewise.
8371
1ab139e5
LM
83722020-01-21 Luis Machado <luis.machado@linaro.org>
8373
8374 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
8375 output.
8376
0c271889
LM
83772020-01-21 Luis Machado <luis.machado@linaro.org>
8378
8379 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
8380 <pc_adjust>: Adjust the documentation.
8381 (aarch64_displaced_step_fixup): Check if PC really moved before
8382 adjusting it.
8383
4d89c1c7
TT
83842020-01-19 Tom Tromey <tom@tromey.com>
8385
8386 * disasm.c (~gdb_disassembler): New destructor.
8387 (gdb_buffered_insn_length): Call disassemble_free_target.
8388 * disasm.h (class gdb_disassembler): Declare destructor. Use
8389 DISABLE_COPY_AND_ASSIGN.
8390
c0ab21c2
TT
83912020-01-19 Tom Tromey <tom@tromey.com>
8392
8393 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
8394 (die_reader_func_ftype): Remove.
8395 (cutu_reader): New class.
8396 (dw2_get_file_names_reader): Remove "data" parameter.
8397 (dw2_get_file_names): Use cutu_reader.
8398 (create_debug_type_hash_table): Update.
8399 (read_cutu_die_from_dwo): Update comment.
8400 (lookup_dwo_unit): Add dwo_name parameter.
8401 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
8402 die_reader_func_ftype and data parameters.
8403 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
8404 Remove die_reader_func_ftype and data parameters.
8405 (~cutu_reader): New; from init_cutu_and_read_dies.
8406 (cutu_reader::cutu_reader): Rename from
8407 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
8408 and data parameters.
8409 (init_cutu_and_read_dies_simple): Remove.
8410 (struct process_psymtab_comp_unit_data): Remove.
8411 (process_psymtab_comp_unit_reader): Remove data parameter; add
8412 want_partial_unit and pretend_language parameters.
8413 (process_psymtab_comp_unit): Use cutu_reader.
8414 (build_type_psymtabs_reader): Remove data parameter.
8415 (build_type_psymtabs_1): Use cutu_reader.
8416 (process_skeletonless_type_unit): Likewise.
8417 (load_partial_comp_unit_reader): Remove.
8418 (load_partial_comp_unit): Use cutu_reader.
8419 (load_full_comp_unit_reader): Remove.
8420 (load_full_comp_unit): Use cutu_reader.
8421 (struct create_dwo_cu_data): Remove.
8422 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
8423 dwo_unit parameters.
8424 (create_cus_hash_table): Use cutu_reader.
8425 (struct dwarf2_read_addr_index_data): Remove.
8426 (dwarf2_read_addr_index_reader): Remove.
8427 (dwarf2_read_addr_index): Use cutu_reader.
8428 (read_signatured_type_reader): Remove.
8429 (read_signatured_type): Use cutu_reader.
8430
45bbae5c
TT
84312020-01-19 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
8434 * tui/tui-wingeneral.h (class tui_suppress_output): New.
8435 (tui_wrefresh): Declare.
8436 * tui/tui-wingeneral.c (suppress_output): New global.
8437 (tui_suppress_output, ~tui_suppress_output): New constructor and
8438 destructor.
8439 (tui_wrefresh): New function.
8440 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
8441 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
8442 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
8443 method.
8444 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
8445 tui_wrefresh.
8446 (tui_data_window::no_refresh): New method.
8447 (tui_data_item_window::refresh_window): Call tui_wrefresh.
8448 (tui_reg_command): Use tui_suppress_output
8449 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
8450 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
8451 method.
8452 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
8453
4f13c1c0
TT
84542020-01-19 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8457 Handle case where symtab is null.
8458
fa47e446
SM
84592020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
8460
8461 * linux-fork.c (one_fork_p): Simplify.
8462
26f42329
SM
84632020-01-17 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * top.c (struct qt_args): Remove.
8466 (kill_or_detach): Change return type to void, replace `void *`
8467 parameter with a proper one.
8468 (print_inferior_quit_action): Likewise.
8469 (quit_confirm): Use range-based for loop to iterate over inferiors.
8470 (quit_force): Likewise.
8471
a9ac81b1
SM
84722020-01-17 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
8475 `void *` parameter with proper parameters.
8476 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
8477 (print_one_inferior): Change return type to void, replace `void *`
8478 parameter with proper parameters.
8479 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
8480 inferiors.
8481 (get_other_inferior): Remove.
8482 (mi_cmd_remove_inferior): Use range-based loop to iterate over
8483 inferiors.
8484
788eca49
SM
84852020-01-17 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * mi/mi-interp.c (report_initial_inferior): Remove.
8488 (mi_interp::init): Use range-based for to iterate over inferiors.
8489
d9bc85b6
SM
84902020-01-17 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * python/py-inferior.c (build_inferior_list): Remove.
8493 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
8494
40c94099
CB
84952020-01-16 Christian Biesinger <cbiesinger@google.com>
8496
8497 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
8498 (btrace_stitch_trace): Likewise.
8499 * charset.c (intermediate_encoding): Likewise (vaild).
8500 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
8501 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
8502 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
8503
e0cdfe3c
HD
85042020-01-16 Hannes Domani <ssbssa@yahoo.de>
8505
8506 * windows-tdep.c (windows_get_tlb_type):
8507 Add rtl_user_process_parameters type.
8508
790f1718 85092020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 8510 Norbert Lange <nolange79@gmail.com>
790f1718
PA
8511
8512 PR build/24805
8513 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
8514 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
8515 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
8516 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
8517 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
8518 (ps_plog): Redeclare exported functions with default visibility.
8519
3112ed97
NA
85202020-01-16 Nitika Achra <Nitika.Achra@amd.com>
8521
8522 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
8523 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
8524
8dc3273e
SM
85252020-01-15 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * infcmd.c (post_create_inferior): Use get_thread_regcache
8528 instead of get_current_regcache.
8529
ff47f4f0
TT
85302020-01-14 Tom Tromey <tom@tromey.com>
8531
8532 PR symtab/12535:
8533 * python/python.c (gdbpy_decode_line): Treat empty string the same
8534 as no argument.
8535
975f45b7
TT
85362020-01-14 Tom Tromey <tom@tromey.com>
8537
8538 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
8539
25e57356
TT
85402020-01-14 Tom Tromey <tom@tromey.com>
8541
8542 * nat/linux-btrace.c: Don't include <config.h>.
8543 * nat/linux-ptrace.c: Don't include <config.h>.
8544 * nat/x86-linux-dregs.c: Don't include <config.h>.
8545
05ea2a05
TT
85462020-01-14 Tom Tromey <tom@tromey.com>
8547
8548 * configure: Rebuild.
8549 * configure.ac: Move many checks to ../gdbsupport/common.m4.
8550
01027315
TT
85512020-01-14 Tom Tromey <tom@tromey.com>
8552
8553 * nat/x86-linux-dregs.c: Include configh.h.
8554 * nat/linux-ptrace.c: Include configh.h.
8555 * nat/linux-btrace.c: Include configh.h.
8556 * defs.h: Include config.h, bfd.h.
8557 * configure.ac: Don't source common.host.
8558 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
8559 * configure: Rebuild.
8560 * acinclude.m4: Update path.
8561 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
8562 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
8563 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
8564 (CLIBS): Add LIBSUPPORT.
8565 (CDEPS): Likewise.
8566 (COMMON_SFILES): Remove gdbsupport files.
8567 (HFILES_NO_SRCDIR): Likewise.
8568 (stamp-version): Update path to create-version.sh.
8569 (ALLDEPFILES): Remove gdbsupport files.
8570
b2ceabe8
TT
85712020-01-14 Tom Tromey <tom@tromey.com>
8572
8573 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
8574 USE_WIN32API when needed.
8575 * configure.ac (USE_WIN32API): Don't define.
8576 (WIN32LIBS): Use WIN32APILIBS.
8577 * configure: Rebuild.
8578
25c51f71
TT
85792020-01-14 Tom Tromey <tom@tromey.com>
8580
8581 * configure: Rebuild.
8582 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
8583
717c684d
BE
85842020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8585
8586 * skip.c (skip_function_command): Make skip w/o arguments use the
8587 name of the inlined function if pc is inside any inlined function.
8588
7da6a5b9
LM
85892020-01-14 Luis Machado <luis.machado@linaro.org>
8590
8591 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
8592 * infrun.c (resume_1): Likewise.
8593 (handle_inferior_event): Remove stale comment.
8594 * linux-nat.c (linux_nat_target::resume): Update comments.
8595 (save_stop_reason): Likewise.
8596 (linux_nat_filter_event): Likewise.
8597 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
8598
44e4c775
AB
85992020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8600
8601 * elfread.c (record_minimal_symbol): Set section index to 0 for
8602 non-allocatable sections.
8603
18a8505e
AT
8604
86052020-01-13 Ali Tamur <tamur@google.com>
8606
8607 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
8608 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
8609 to gdb::optional. Update comments.
8610 (dwo_file): Update comments.
8611 (read_attribute): Update API to take an additional out parameter,
8612 need_reprocess. This is used to mark attributes that need other
8613 attributes (e.g. str_offsets_base) for correct computation which may not
8614 have been read yet.
8615 (read_attribute_reprocess): New function declaration.
8616 (read_addr_index): Likewise.
8617 (read_dwo_str_index): Likewise.
8618 (read_stub_str_index): Likewise.
8619 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
8620 (lookup_addr_base): New function definition.
8621 (lookup_ranges_base): Likewise.
8622 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
8623 lookup_ranges_base.
8624 (init_cutu_and_read_dies): Update comments.
8625 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
8626 unit. This is used to inherit parent's str_offsets_base and addr_base.
8627 Update comments.
8628 (init_cutu_and_read_dies_simple): Reflect API changes.
8629 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
8630 (create_cus_hash_table): Change API to take parent compile unit.
8631 Reflect API changes.
8632 (open_and_init_dwo_file): Reflect API changes.
8633 (dwarf2_get_pc_bounds): Update comments.
8634 (dwarf2_record_block_ranges): Likewise.
8635 (read_full_die_1): Change implementation to reprocess attributes that
8636 need str_offsets_base and addr_base.
8637 (partial_die_info::read): Likewise.
8638 (read_attribute_reprocess): New function definition.
8639 (read_attribute_value): Change API to take an additional out parameter,
8640 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
8641 when a non-dwo compile unit has index based attributes.
8642 (read_attribute): Reflect API changes.
8643 (read_addr_index_1): Reflect API changes. Update comments.
8644 (dwarf2_read_addr_index_data): Reflect API changes.
8645 (dwarf2_read_addr_index): Likewise.
8646 (read_str_index): Change API and implementation. This becomes a helper
8647 to be used by the new string index related methods. Update error
8648 message and comments.
8649 (read_dwo_str_index): New function definition.
8650 (read_stub_str_index): Likewise.
8651 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
8652 * symfile.h (dwarf2_debug_sections): Likewise.
8653 * xcoffread.c (dwarf2_debug_sections): Likewise.
8654
0cac9354
SM
86552020-01-13 Simon Marchi <simon.marchi@efficios.com>
8656
8657 * gdbcore.h (struct core_fns) <core_read_registers>: Change
8658 core_reg_sect type to gdb_byte *.
8659 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
8660 * cris-tdep.c (fetch_core_registers): Likewise.
8661 * corelow.c (core_target::get_core_register_section): Change
8662 type of `contents` to gdb::byte_vector.
8663
9a6d629c
AB
86642020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8665
8666 * tui/tui-wingeneral.c (box_win): Position the title in the center
8667 of the border.
8668
d8b2f9e3
SM
86692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8670
8671 * corelow.c (core_target::get_core_register_section): Use
8672 std::vector instead of alloca.
8673
bb564c58
SM
86742020-01-13 Simon Marchi <simon.marchi@efficios.com>
8675
8676 * warning.m4: Add -Wmissing-declarations to build_warnings.
8677 * configure: Re-generate.
8678
6b366111
SM
86792020-01-13 Simon Marchi <simon.marchi@efficios.com>
8680
8681 * python/python.c (init__gdb_module): Add declaration.
8682
6c265988
SM
86832020-01-13 Simon Marchi <simon.marchi@efficios.com>
8684
8685 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
8686 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
8687 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
8688 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
8689 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
8690 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
8691 * ada-exp.y (_initialize_ada_exp): Add declaration.
8692 * ada-lang.c (_initialize_ada_language): Add declaration.
8693 * ada-tasks.c (_initialize_tasks): Add declaration.
8694 * agent.c (_initialize_agent): Add declaration.
8695 * aix-thread.c (_initialize_aix_thread): Add declaration.
8696 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
8697 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
8698 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
8699 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
8700 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
8701 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
8702 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
8703 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
8704 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
8705 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
8706 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
8707 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
8708 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
8709 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
8710 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
8711 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
8712 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
8713 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
8714 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
8715 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
8716 * annotate.c (_initialize_annotate): Add declaration.
8717 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
8718 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
8719 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
8720 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
8721 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
8722 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
8723 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
8724 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
8725 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
8726 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
8727 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
8728 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
8729 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
8730 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
8731 * auto-load.c (_initialize_auto_load): Add declaration.
8732 * auxv.c (_initialize_auxv): Add declaration.
8733 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
8734 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
8735 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
8736 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
8737 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
8738 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
8739 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
8740 * breakpoint.c (_initialize_breakpoint): Add declaration.
8741 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
8742 * btrace.c (_initialize_btrace): Add declaration.
8743 * charset.c (_initialize_charset): Add declaration.
8744 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
8745 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
8746 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
8747 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
8748 * cli/cli-script.c (_initialize_cli_script): Add declaration.
8749 * cli/cli-style.c (_initialize_cli_style): Add declaration.
8750 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
8751 * coffread.c (_initialize_coffread): Add declaration.
8752 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
8753 * compile/compile.c (_initialize_compile): Add declaration.
8754 * complaints.c (_initialize_complaints): Add declaration.
8755 * completer.c (_initialize_completer): Add declaration.
8756 * copying.c (_initialize_copying): Add declaration.
8757 * corefile.c (_initialize_core): Add declaration.
8758 * corelow.c (_initialize_corelow): Add declaration.
8759 * cp-abi.c (_initialize_cp_abi): Add declaration.
8760 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
8761 * cp-support.c (_initialize_cp_support): Add declaration.
8762 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
8763 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
8764 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
8765 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
8766 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
8767 * ctfread.c (_initialize_ctfread): Add declaration.
8768 * d-lang.c (_initialize_d_language): Add declaration.
8769 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
8770 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
8771 * dbxread.c (_initialize_dbxread): Add declaration.
8772 * dcache.c (_initialize_dcache): Add declaration.
8773 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
8774 * disasm.c (_initialize_disasm): Add declaration.
8775 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
8776 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
8777 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
8778 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
8779 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
8780 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
8781 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
8782 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
8783 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
8784 * elfread.c (_initialize_elfread): Add declaration.
8785 * exec.c (_initialize_exec): Add declaration.
8786 * extension.c (_initialize_extension): Add declaration.
8787 * f-lang.c (_initialize_f_language): Add declaration.
8788 * f-valprint.c (_initialize_f_valprint): Add declaration.
8789 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
8790 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
8791 * filesystem.c (_initialize_filesystem): Add declaration.
8792 * findcmd.c (_initialize_mem_search): Add declaration.
8793 * findvar.c (_initialize_findvar): Add declaration.
8794 * fork-child.c (_initialize_fork_child): Add declaration.
8795 * frame-base.c (_initialize_frame_base): Add declaration.
8796 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
8797 * frame.c (_initialize_frame): Add declaration.
8798 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
8799 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
8800 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
8801 * gcore.c (_initialize_gcore): Add declaration.
8802 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
8803 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
8804 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
8805 * gdbarch.c (_initialize_gdbarch): Add declaration.
8806 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
8807 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
8808 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
8809 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
8810 * go-lang.c (_initialize_go_language): Add declaration.
8811 * go32-nat.c (_initialize_go32_nat): Add declaration.
8812 * guile/guile.c (_initialize_guile): Add declaration.
8813 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
8814 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
8815 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
8816 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
8817 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
8818 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
8819 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
8820 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
8821 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
8822 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
8823 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
8824 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
8825 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
8826 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
8827 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
8828 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
8829 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
8830 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
8831 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
8832 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
8833 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
8834 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
8835 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
8836 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
8837 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
8838 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
8839 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
8840 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
8841 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
8842 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
8843 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
8844 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
8845 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
8846 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
8847 * infcall.c (_initialize_infcall): Add declaration.
8848 * infcmd.c (_initialize_infcmd): Add declaration.
8849 * inflow.c (_initialize_inflow): Add declaration.
8850 * infrun.c (_initialize_infrun): Add declaration.
8851 * interps.c (_initialize_interpreter): Add declaration.
8852 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
8853 * jit.c (_initialize_jit): Add declaration.
8854 * language.c (_initialize_language): Add declaration.
8855 * linux-fork.c (_initialize_linux_fork): Add declaration.
8856 * linux-nat.c (_initialize_linux_nat): Add declaration.
8857 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
8858 * linux-thread-db.c (_initialize_thread_db): Add declaration.
8859 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
8860 * m2-lang.c (_initialize_m2_language): Add declaration.
8861 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
8862 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
8863 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
8864 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
8865 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
8866 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
8867 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
8868 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
8869 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
8870 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
8871 * machoread.c (_initialize_machoread): Add declaration.
8872 * macrocmd.c (_initialize_macrocmd): Add declaration.
8873 * macroscope.c (_initialize_macroscope): Add declaration.
8874 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
8875 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
8876 * maint.c (_initialize_maint_cmds): Add declaration.
8877 * mdebugread.c (_initialize_mdebugread): Add declaration.
8878 * memattr.c (_initialize_mem): Add declaration.
8879 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
8880 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
8881 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
8882 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
8883 * mi/mi-main.c (_initialize_mi_main): Add declaration.
8884 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
8885 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
8886 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
8887 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
8888 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
8889 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
8890 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
8891 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
8892 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
8893 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
8894 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
8895 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
8896 * mipsread.c (_initialize_mipsread): Add declaration.
8897 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
8898 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
8899 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
8900 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
8901 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
8902 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
8903 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
8904 * nto-procfs.c (_initialize_procfs): Add declaration.
8905 * objc-lang.c (_initialize_objc_language): Add declaration.
8906 * observable.c (_initialize_observer): Add declaration.
8907 * opencl-lang.c (_initialize_opencl_language): Add declaration.
8908 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
8909 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
8910 * osabi.c (_initialize_gdb_osabi): Add declaration.
8911 * osdata.c (_initialize_osdata): Add declaration.
8912 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
8913 * parse.c (_initialize_parse): Add declaration.
8914 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
8915 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
8916 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
8917 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
8918 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
8919 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
8920 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
8921 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
8922 * printcmd.c (_initialize_printcmd): Add declaration.
8923 * probe.c (_initialize_probe): Add declaration.
8924 * proc-api.c (_initialize_proc_api): Add declaration.
8925 * proc-events.c (_initialize_proc_events): Add declaration.
8926 * proc-service.c (_initialize_proc_service): Add declaration.
8927 * procfs.c (_initialize_procfs): Add declaration.
8928 * producer.c (_initialize_producer): Add declaration.
8929 * psymtab.c (_initialize_psymtab): Add declaration.
8930 * python/python.c (_initialize_python): Add declaration.
8931 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
8932 * record-btrace.c (_initialize_record_btrace): Add declaration.
8933 * record-full.c (_initialize_record_full): Add declaration.
8934 * record.c (_initialize_record): Add declaration.
8935 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
8936 * regcache.c (_initialize_regcache): Add declaration.
8937 * reggroups.c (_initialize_reggroup): Add declaration.
8938 * remote-notif.c (_initialize_notif): Add declaration.
8939 * remote-sim.c (_initialize_remote_sim): Add declaration.
8940 * remote.c (_initialize_remote): Add declaration.
8941 * reverse.c (_initialize_reverse): Add declaration.
8942 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
8943 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
8944 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
8945 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
8946 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
8947 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
8948 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
8949 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
8950 Add declaration.
8951 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
8952 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
8953 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
8954 * rust-exp.y (_initialize_rust_exp): Add declaration.
8955 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
8956 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
8957 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
8958 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
8959 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
8960 * score-tdep.c (_initialize_score_tdep): Add declaration.
8961 * ser-go32.c (_initialize_ser_dos): Add declaration.
8962 * ser-mingw.c (_initialize_ser_windows): Add declaration.
8963 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
8964 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
8965 * ser-uds.c (_initialize_ser_socket): Add declaration.
8966 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
8967 * serial.c (_initialize_serial): Add declaration.
8968 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
8969 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
8970 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
8971 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
8972 * skip.c (_initialize_step_skip): Add declaration.
8973 * sol-thread.c (_initialize_sol_thread): Add declaration.
8974 * solib-aix.c (_initialize_solib_aix): Add declaration.
8975 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
8976 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
8977 * solib-frv.c (_initialize_frv_solib): Add declaration.
8978 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
8979 * solib-target.c (_initialize_solib_target): Add declaration.
8980 * solib.c (_initialize_solib): Add declaration.
8981 * source-cache.c (_initialize_source_cache): Add declaration.
8982 * source.c (_initialize_source): Add declaration.
8983 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
8984 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
8985 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
8986 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
8987 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
8988 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
8989 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
8990 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
8991 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
8992 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
8993 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
8994 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
8995 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
8996 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
8997 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
8998 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
8999 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9000 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9001 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9002 * stabsread.c (_initialize_stabsread): Add declaration.
9003 * stack.c (_initialize_stack): Add declaration.
9004 * stap-probe.c (_initialize_stap_probe): Add declaration.
9005 * std-regs.c (_initialize_frame_reg): Add declaration.
9006 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9007 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9008 * symfile.c (_initialize_symfile): Add declaration.
9009 * symmisc.c (_initialize_symmisc): Add declaration.
9010 * symtab.c (_initialize_symtab): Add declaration.
9011 * target.c (_initialize_target): Add declaration.
9012 * target-connection.c (_initialize_target_connection): Add
9013 declaration.
9014 * target-dcache.c (_initialize_target_dcache): Add declaration.
9015 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9016 * thread.c (_initialize_thread): Add declaration.
9017 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9018 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9019 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9020 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9021 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9022 * tracectf.c (_initialize_ctf): Add declaration.
9023 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9024 * tracefile.c (_initialize_tracefile): Add declaration.
9025 * tracepoint.c (_initialize_tracepoint): Add declaration.
9026 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9027 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9028 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9029 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9030 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9031 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9032 * tui/tui.c (_initialize_tui): Add declaration.
9033 * typeprint.c (_initialize_typeprint): Add declaration.
9034 * ui-style.c (_initialize_ui_style): Add declaration.
9035 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9036 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9037 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9038 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9039 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9040 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9041 * unittests/filtered_iterator-selftests.c
9042 (_initialize_filtered_iterator_selftests): Add declaration.
9043 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9044 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9045 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9046 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9047 * unittests/main-thread-selftests.c
9048 (_initialize_main_thread_selftests): Add declaration.
9049 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9050 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9051 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9052 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9053 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9054 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9055 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9056 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9057 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9058 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9059 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9060 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9061 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9062 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9063 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9064 declaration.
9065 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9066 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9067 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9068 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9069 * user-regs.c (_initialize_user_regs): Add declaration.
9070 * utils.c (_initialize_utils): Add declaration.
9071 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9072 * valops.c (_initialize_valops): Add declaration.
9073 * valprint.c (_initialize_valprint): Add declaration.
9074 * value.c (_initialize_values): Add declaration.
9075 * varobj.c (_initialize_varobj): Add declaration.
9076 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9077 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9078 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9079 * windows-nat.c (_initialize_windows_nat): Add declaration.
9080 (_initialize_check_for_gdb_ini): Add declaration.
9081 (_initialize_loadable): Add declaration.
9082 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9083 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9084 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9085 * xcoffread.c (_initialize_xcoffread): Add declaration.
9086 * xml-support.c (_initialize_xml_support): Add declaration.
9087 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9088 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9089 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9090 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9091
e2de1eec
SM
90922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9093
9094 * regformats/regdat.sh: Generate declaration for init function.
9095
e0037b4c
SM
90962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9097
9098 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9099 up.
9100 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9101 close_one_inferior>: New methods.
9102 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9103 pass down target to find_inferior_pid.
9104 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9105 Pass down target to find_inferior_ptid.
9106 (gdbsim_target::create_inferior): Pass down target to
9107 add_thread_silent.
9108 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9109 target down to find_inferior_ptid and switch_to_thread.
9110 (gdbsim_target::close): Update to call close_one_inferior.
9111 (struct resume_data): Remove.
9112 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9113 directly, rather than through a void pointer.
9114 (gdbsim_target::resume): Update to call resume_one_inferior.
9115
58920b5b
SM
91162020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9117
9118 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9119
4ec89149
PA
91202020-01-12 Pedro Alves <palves@redhat.com>
9121
9122 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9123 directly for the current inferior instead of
9124 discard_all_inferiors.
9125 (discard_all_inferiors): Delete.
9126
7c392d1d
TT
91272020-01-11 Tom Tromey <tom@tromey.com>
9128
9129 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9130 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9131 deprecated_safe_get_selected_frame.
9132
d9ebdab7
TBA
91332020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9134
9135 * inferior.c (print_inferior): Switch inferior before printing it.
9136
f3c469b9
PA
91372020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9138 Pedro Alves <palves@redhat.com>
9139
9140 * progspace-and-thread.c (switch_to_program_space_and_thread):
9141 Assert there's an inferior for PSPACE. Use
9142 switch_to_inferior_no_thread to switch the inferior too.
9143 * progspace.c (program_space::~program_space): Call
9144 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9145 (program_space::free_all_objfiles): Don't call clear_symtab_users
9146 here.
9147 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9148
65c574f6
PA
91492020-01-10 Pedro Alves <palves@redhat.com>
9150
9151 * NEWS: Mention multi-target debugging, "info connections", and
9152 "add-inferior -no-connection".
9153
2f4fcf00
PA
91542020-01-10 Pedro Alves <palves@redhat.com>
9155
9156 * infrun.c: Include "target-connection.h".
9157 (check_multi_target_resumption): New.
9158 (proceed): Call it.
9159 * target-connection.c (make_target_connection_string): Make
9160 extern.
9161 * target-connection.h (make_target_connection_string): Declare.
9162
121b3efd
PA
91632020-01-10 Pedro Alves <palves@redhat.com>
9164
9165 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9166 * inferior.c (uiout_field_connection): New function.
9167 (print_inferior): Add new "connection-id" column.
9168 (add_inferior_command): Show connection number/string of added
9169 inferior.
9170 * process-stratum-target.h
9171 (process_stratum_target::connection_string): New virtual method.
9172 (process_stratum_target::connection_number): New field.
9173 * remote.c (remote_target::connection_string): New override.
9174 * target-connection.c: New file.
9175 * target-connection.h: New file.
9176 * target.c (decref_target): Remove process_stratum targets from
9177 the connection list.
9178 (target_stack::push): Add process_stratum targets to the
9179 connection list.
9180
4f837581
PA
91812020-01-10 Pedro Alves <palves@redhat.com>
9182
9183 Revert:
9184 2016-04-12 Pedro Alves <palves@redhat.com>
9185 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9186 Remove references to name.
9187 * serial.h (struct serial) <name>: Delete.
9188
f4ec508e
PA
91892020-01-10 Pedro Alves <palves@redhat.com>
9190
9191 * gdbarch-selftests.c (register_to_value_test): Remove "target
9192 already pushed" check.
9193
5b6d1e4f
PA
91942020-01-10 Pedro Alves <palves@redhat.com>
9195 John Baldwin <jhb@FreeBSD.org>
9196
9197 * aarch64-linux-nat.c
9198 (aarch64_linux_nat_target::thread_architecture): Adjust.
9199 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9200 (task_command_1): Likewise.
9201 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9202 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9203 (aix_thread_target::store_registers)
9204 (aix_thread_target::thread_alive): Adjust.
9205 * amd64-fbsd-tdep.c: Include "inferior.h".
9206 (amd64fbsd_get_thread_local_address): Pass down target.
9207 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9208 thread's gdbarch instead of target_gdbarch.
9209 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9210 get_last_target_status.
9211 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9212 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9213 inferiors.
9214 (update_inserted_breakpoint_locations): Skip if inferiors with no
9215 execution.
9216 (update_global_location_list): When handling moribund locations,
9217 find representative inferior for location's pspace, and use thread
9218 count of its process_stratum target.
9219 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9220 * bsd-uthread.c (bsd_uthread_target::wait): Use
9221 as_process_stratum_target and adjust thread_change_ptid and
9222 add_thread calls.
9223 (bsd_uthread_target::update_thread_list): Use
9224 as_process_stratum_target and adjust find_thread_ptid,
9225 thread_change_ptid and add_thread calls.
9226 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9227 find_thread_ptid call.
9228 * corelow.c (add_to_thread_list): Adjust add_thread call.
9229 (core_target_open): Adjust add_thread_silent and thread_count
9230 calls.
9231 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9232 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9233 * event-top.c (async_disconnect): Pop targets from all inferiors.
9234 * exec.c (add_target_sections): Push exec target on all inferiors
9235 sharing the program space.
9236 (remove_target_sections): Remove the exec target from all
9237 inferiors sharing the program space.
9238 (exec_on_vfork): New.
9239 * exec.h (exec_on_vfork): Declare.
9240 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9241 Pass it down.
9242 (fbsd_nat_target::update_thread_list): Adjust.
9243 (fbsd_nat_target::resume): Adjust.
9244 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9245 down.
9246 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9247 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9248 get_thread_arch_regcache call.
9249 * fork-child.c (gdb_startup_inferior): Pass target down to
9250 startup_inferior and set_executing.
9251 * gdbthread.h (struct process_stratum_target): Forward declare.
9252 (add_thread, add_thread_silent, add_thread_with_info)
9253 (in_thread_list): Add process_stratum_target parameter.
9254 (find_thread_ptid(inferior*, ptid_t)): New overload.
9255 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9256 parameter.
9257 (all_threads()): Delete overload.
9258 (all_threads, all_non_exited_threads): Add process_stratum_target
9259 parameter.
9260 (all_threads_safe): Use brace initialization.
9261 (thread_count): Add process_stratum_target parameter.
9262 (set_resumed, set_running, set_stop_requested, set_executing)
9263 (threads_are_executing, finish_thread_state): Add
9264 process_stratum_target parameter.
9265 (switch_to_thread): Use is_current_thread.
9266 * i386-fbsd-tdep.c: Include "inferior.h".
9267 (i386fbsd_get_thread_local_address): Pass down target.
9268 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9269 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9270 have_inferiors check.
9271 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9272 (inf_ptrace_target::attach): Adjust.
9273 * infcall.c (run_inferior_call): Adjust.
9274 * infcmd.c (run_command_1): Pass target to
9275 scoped_finish_thread_state.
9276 (proceed_thread_callback): Skip inferiors with no execution.
9277 (continue_command): Rename 'all_threads' local to avoid hiding
9278 'all_threads' function. Adjust get_last_target_status call.
9279 (prepare_one_step): Adjust set_running call.
9280 (signal_command): Use user_visible_resume_target. Compare thread
9281 pointers instead of inferior_ptid.
9282 (info_program_command): Adjust to pass down target.
9283 (attach_command): Mark target's 'thread_executing' flag.
9284 (stop_current_target_threads_ns): New, factored out from ...
9285 (interrupt_target_1): ... this. Switch inferior before making
9286 target calls.
9287 * inferior-iter.h
9288 (struct all_inferiors_iterator, struct all_inferiors_range)
9289 (struct all_inferiors_safe_range)
9290 (struct all_non_exited_inferiors_range): Filter on
9291 process_stratum_target too. Remove explicit.
9292 * inferior.c (inferior::inferior): Push dummy target on target
9293 stack.
9294 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9295 Add process_stratum_target parameter, and pass it down.
9296 (have_live_inferiors): Adjust.
9297 (switch_to_inferior_and_push_target): New.
9298 (add_inferior_command, clone_inferior_command): Handle
9299 "-no-connection" parameter. Use
9300 switch_to_inferior_and_push_target.
9301 (_initialize_inferior): Mention "-no-connection" option in
9302 the help of "add-inferior" and "clone-inferior" commands.
9303 * inferior.h: Include "process-stratum-target.h".
9304 (interrupt_target_1): Use bool.
9305 (struct inferior) <push_target, unpush_target, target_is_pushed,
9306 find_target_beneath, top_target, process_target, target_at,
9307 m_stack>: New.
9308 (discard_all_inferiors): Delete.
9309 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9310 (all_inferiors, all_non_exited_inferiors): Add
9311 process_stratum_target parameter.
9312 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9313 (target_last_proc_target): New global.
9314 (follow_fork_inferior): Push target on new inferior. Pass target
9315 to add_thread_silent. Call exec_on_vfork. Handle target's
9316 reference count.
9317 (follow_fork): Adjust get_last_target_status call. Also consider
9318 target.
9319 (follow_exec): Push target on new inferior.
9320 (struct execution_control_state) <target>: New field.
9321 (user_visible_resume_target): New.
9322 (do_target_resume): Call target_async.
9323 (resume_1): Set target's threads_executing flag. Consider resume
9324 target.
9325 (commit_resume_all_targets): New.
9326 (proceed): Also consider resume target. Skip threads of inferiors
9327 with no execution. Commit resumtion in all targets.
9328 (start_remote): Pass current inferior to wait_for_inferior.
9329 (infrun_thread_stop_requested): Consider target as well. Pass
9330 thread_info pointer to clear_inline_frame_state instead of ptid.
9331 (infrun_thread_thread_exit): Consider target as well.
9332 (random_pending_event_thread): New inferior parameter. Use it.
9333 (do_target_wait): Rename to ...
9334 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9335 down.
9336 (threads_are_resumed_pending_p, do_target_wait): New.
9337 (prepare_for_detach): Adjust calls.
9338 (wait_for_inferior): New inferior parameter. Handle it. Use
9339 do_target_wait_1 instead of do_target_wait.
9340 (fetch_inferior_event): Adjust. Switch to representative
9341 inferior. Pass target down.
9342 (set_last_target_status): Add process_stratum_target parameter.
9343 Save target in global.
9344 (get_last_target_status): Add process_stratum_target parameter and
9345 handle it.
9346 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
9347 (context_switch): Check inferior_ptid == null_ptid before calling
9348 inferior_thread().
9349 (get_inferior_stop_soon): Pass down target.
9350 (wait_one): Rename to ...
9351 (poll_one_curr_target): ... this.
9352 (struct wait_one_event): New.
9353 (wait_one): New.
9354 (stop_all_threads): Adjust.
9355 (handle_no_resumed, handle_inferior_event): Adjust to consider the
9356 event's target.
9357 (switch_back_to_stepped_thread): Also consider target.
9358 (print_stop_event): Update.
9359 (normal_stop): Update. Also consider the resume target.
9360 * infrun.h (wait_for_inferior): Remove declaration.
9361 (user_visible_resume_target): New declaration.
9362 (get_last_target_status, set_last_target_status): New
9363 process_stratum_target parameter.
9364 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9365 process_stratum_target parameter, and use it.
9366 (clear_inline_frame_state (thread_info*)): New.
9367 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9368 process_stratum_target parameter.
9369 (clear_inline_frame_state (thread_info*)): Declare.
9370 * linux-fork.c (delete_checkpoint_command): Pass target down to
9371 find_thread_ptid.
9372 (checkpoint_command): Adjust.
9373 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
9374 instead of just tweaking inferior_ptid.
9375 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
9376 (exit_lwp): Pass target down to find_thread_ptid.
9377 (attach_proc_task_lwp_callback): Pass target down to
9378 add_thread/set_running/set_executing.
9379 (linux_nat_target::attach): Pass target down to
9380 thread_change_ptid.
9381 (get_detach_signal): Pass target down to find_thread_ptid.
9382 Consider last target status's target.
9383 (linux_resume_one_lwp_throw, resume_lwp)
9384 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
9385 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
9386 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
9387 (linux_nat_target::async_wait_fd): New.
9388 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
9389 target down.
9390 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
9391 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
9392 * linux-thread-db.c (struct thread_db_info::process_target): New
9393 field.
9394 (add_thread_db_info): Save target.
9395 (get_thread_db_info): New process_stratum_target parameter. Also
9396 match target.
9397 (delete_thread_db_info): New process_stratum_target parameter.
9398 Also match target.
9399 (thread_from_lwp): Adjust to pass down target.
9400 (thread_db_notice_clone): Pass down target.
9401 (check_thread_db_callback): Pass down target.
9402 (try_thread_db_load_1): Always push the thread_db target.
9403 (try_thread_db_load, record_thread): Pass target down.
9404 (thread_db_target::detach): Pass target down. Always unpush the
9405 thread_db target.
9406 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
9407 target down. Always unpush the thread_db target.
9408 (find_new_threads_callback, thread_db_find_new_threads_2)
9409 (thread_db_target::update_thread_list): Pass target down.
9410 (thread_db_target::pid_to_str): Pass current inferior down.
9411 (thread_db_target::get_thread_local_address): Pass target down.
9412 (thread_db_target::resume, maintenance_check_libthread_db): Pass
9413 target down.
9414 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
9415 * procfs.c (procfs_target::procfs_init_inferior): Declare.
9416 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
9417 (procfs_init_inferior): Rename to ...
9418 (procfs_target::procfs_init_inferior): ... this and adjust.
9419 (procfs_target::create_inferior, procfs_notice_thread)
9420 (procfs_do_thread_registers): Adjust.
9421 * ppc-fbsd-tdep.c: Include "inferior.h".
9422 (ppcfbsd_get_thread_local_address): Pass down target.
9423 * proc-service.c (ps_xfer_memory): Switch current inferior and
9424 program space as well.
9425 (get_ps_regcache): Pass target down.
9426 * process-stratum-target.c
9427 (process_stratum_target::thread_address_space)
9428 (process_stratum_target::thread_architecture): Pass target down.
9429 * process-stratum-target.h
9430 (process_stratum_target::threads_executing): New field.
9431 (as_process_stratum_target): New.
9432 * ravenscar-thread.c
9433 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
9434 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
9435 down.
9436 * record-btrace.c (record_btrace_target::info_record): Adjust.
9437 (record_btrace_target::record_method)
9438 (record_btrace_target::record_is_replaying)
9439 (record_btrace_target::fetch_registers)
9440 (get_thread_current_frame_id, record_btrace_target::resume)
9441 (record_btrace_target::wait, record_btrace_target::stop): Pass
9442 target down.
9443 * record-full.c (record_full_wait_1): Switch to event thread.
9444 Pass target down.
9445 * regcache.c (regcache::regcache)
9446 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
9447 process_stratum_target parameter and handle it.
9448 (current_thread_target): New global.
9449 (get_thread_regcache): Add process_stratum_target parameter and
9450 handle it. Switch inferior before calling target method.
9451 (get_thread_regcache): Pass target down.
9452 (get_thread_regcache_for_ptid): Pass target down.
9453 (registers_changed_ptid): Add process_stratum_target parameter and
9454 handle it.
9455 (registers_changed_thread, registers_changed): Pass target down.
9456 (test_get_thread_arch_aspace_regcache): New.
9457 (current_regcache_test): Define a couple local test_target_ops
9458 instances and use them for testing.
9459 (readwrite_regcache): Pass process_stratum_target parameter.
9460 (cooked_read_test, cooked_write_test): Pass mock_target down.
9461 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
9462 (get_thread_arch_aspace_regcache): Add process_stratum_target
9463 parameter.
9464 (regcache::target): New method.
9465 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
9466 (regcache::registers_changed_ptid): Add process_stratum_target
9467 parameter.
9468 (regcache::m_target): New field.
9469 (registers_changed_ptid): Add process_stratum_target parameter.
9470 * remote.c (remote_state::supports_vCont_probed): New field.
9471 (remote_target::async_wait_fd): New method.
9472 (remote_unpush_and_throw): Add remote_target parameter.
9473 (get_current_remote_target): Adjust.
9474 (remote_target::remote_add_inferior): Push target.
9475 (remote_target::remote_add_thread)
9476 (remote_target::remote_notice_new_inferior)
9477 (get_remote_thread_info): Pass target down.
9478 (remote_target::update_thread_list): Skip threads of inferiors
9479 bound to other targets. (remote_target::close): Don't discard
9480 inferiors. (remote_target::add_current_inferior_and_thread)
9481 (remote_target::process_initial_stop_replies)
9482 (remote_target::start_remote)
9483 (remote_target::remote_serial_quit_handler): Pass down target.
9484 (remote_target::remote_unpush_target): New remote_target
9485 parameter. Unpush the target from all inferiors.
9486 (remote_target::remote_unpush_and_throw): New remote_target
9487 parameter. Pass it down.
9488 (remote_target::open_1): Check whether the current inferior has
9489 execution instead of checking whether any inferior is live. Pass
9490 target down.
9491 (remote_target::remote_detach_1): Pass down target. Use
9492 remote_unpush_target.
9493 (extended_remote_target::attach): Pass down target.
9494 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
9495 (remote_target::append_resumption): Pass down target.
9496 (remote_target::append_pending_thread_resumptions)
9497 (remote_target::remote_resume_with_hc, remote_target::resume)
9498 (remote_target::commit_resume): Pass down target.
9499 (remote_target::remote_stop_ns): Check supports_vCont_probed.
9500 (remote_target::interrupt_query)
9501 (remote_target::remove_new_fork_children)
9502 (remote_target::check_pending_events_prevent_wildcard_vcont)
9503 (remote_target::remote_parse_stop_reply)
9504 (remote_target::process_stop_reply): Pass down target.
9505 (first_remote_resumed_thread): New remote_target parameter. Pass
9506 it down.
9507 (remote_target::wait_as): Pass down target.
9508 (unpush_and_perror): New remote_target parameter. Pass it down.
9509 (remote_target::readchar, remote_target::remote_serial_write)
9510 (remote_target::getpkt_or_notif_sane_1)
9511 (remote_target::kill_new_fork_children, remote_target::kill): Pass
9512 down target.
9513 (remote_target::mourn_inferior): Pass down target. Use
9514 remote_unpush_target.
9515 (remote_target::core_of_thread)
9516 (remote_target::remote_btrace_maybe_reopen): Pass down target.
9517 (remote_target::pid_to_exec_file)
9518 (remote_target::thread_handle_to_thread_info): Pass down target.
9519 (remote_target::async_wait_fd): New.
9520 * riscv-fbsd-tdep.c: Include "inferior.h".
9521 (riscv_fbsd_get_thread_local_address): Pass down target.
9522 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
9523 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
9524 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
9525 Adjust.
9526 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
9527 * solib-svr4.c (enable_break): Pass down target.
9528 * spu-multiarch.c (parse_spufs_run): Pass down target.
9529 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
9530 * target-delegates.c: Regenerate.
9531 * target.c (g_target_stack): Delete.
9532 (current_top_target): Return the current inferior's top target.
9533 (target_has_execution_1): Refer to the passed-in inferior's top
9534 target.
9535 (target_supports_terminal_ours): Check whether the initial
9536 inferior was already created.
9537 (decref_target): New.
9538 (target_stack::push): Incref/decref the target.
9539 (push_target, push_target, unpush_target): Adjust.
9540 (target_stack::unpush): Defref target.
9541 (target_is_pushed): Return bool. Adjust to refer to the current
9542 inferior's target stack.
9543 (dispose_inferior): Delete, and inline parts ...
9544 (target_preopen): ... here. Only dispose of the current inferior.
9545 (target_detach): Hold strong target reference while detaching.
9546 Pass target down.
9547 (target_thread_name): Add assertion.
9548 (target_resume): Pass down target.
9549 (target_ops::beneath, find_target_at): Adjust to refer to the
9550 current inferior's target stack.
9551 (get_dummy_target): New.
9552 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
9553 has a thread running.
9554 (initialize_targets): Rename to ...
9555 (_initialize_target): ... this.
9556 * target.h: Include "gdbsupport/refcounted-object.h".
9557 (struct target_ops): Inherit refcounted_object.
9558 (target_ops::shortname, target_ops::longname): Make const.
9559 (target_ops::async_wait_fd): New method.
9560 (decref_target): Declare.
9561 (struct target_ops_ref_policy): New.
9562 (target_ops_ref): New typedef.
9563 (get_dummy_target): Declare function.
9564 (target_is_pushed): Return bool.
9565 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
9566 (all_matching_threads_iterator::all_matching_threads_iterator):
9567 Handle filter target.
9568 * thread-iter.h (struct all_matching_threads_iterator, struct
9569 all_matching_threads_range, class all_non_exited_threads_range):
9570 Filter by target too. Remove explicit.
9571 * thread.c (threads_executing): Delete.
9572 (inferior_thread): Pass down current inferior.
9573 (clear_thread_inferior_resources): Pass down thread pointer
9574 instead of ptid_t.
9575 (add_thread_silent, add_thread_with_info, add_thread): Add
9576 process_stratum_target parameter. Use it for thread and inferior
9577 searches.
9578 (is_current_thread): New.
9579 (thread_info::deletable): Use it.
9580 (find_thread_ptid, thread_count, in_thread_list)
9581 (thread_change_ptid, set_resumed, set_running): New
9582 process_stratum_target parameter. Pass it down.
9583 (set_executing): New process_stratum_target parameter. Pass it
9584 down. Adjust reference to 'threads_executing'.
9585 (threads_are_executing): New process_stratum_target parameter.
9586 Adjust reference to 'threads_executing'.
9587 (set_stop_requested, finish_thread_state): New
9588 process_stratum_target parameter. Pass it down.
9589 (switch_to_thread): Also match inferior.
9590 (switch_to_thread): New process_stratum_target parameter. Pass it
9591 down.
9592 (update_threads_executing): Reimplement.
9593 * top.c (quit_force): Pop targets from all inferior.
9594 (gdb_init): Don't call initialize_targets.
9595 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
9596 Declare.
9597 (windows_add_thread, windows_delete_thread): Adjust.
9598 (get_windows_debug_event): Rename to ...
9599 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
9600 * tracefile-tfile.c (tfile_target_open): Pass down target.
9601 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
9602 Forward declare.
9603 (switch_to_thread): Add process_stratum_target parameter.
9604 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
9605 parameter. Use it.
9606 (mi_on_resume): Pass target down.
9607 * nat/fork-inferior.c (startup_inferior): Add
9608 process_stratum_target parameter. Pass it down.
9609 * nat/fork-inferior.h (startup_inferior): Add
9610 process_stratum_target parameter.
9611 * python/py-threadevent.c (py_get_event_thread): Pass target down.
9612
75c6c844
PA
96132020-01-10 Pedro Alves <palves@redhat.com>
9614
9615 * remote.c (remote_target::start_remote): Don't set inferior_ptid
9616 directly. Instead find the first thread in the thread list and
9617 use switch_to_thread.
9618
78f2c40a
PA
96192020-01-10 Pedro Alves <palves@redhat.com>
9620
9621 * remote.c (remote_target::remote_add_inferior): Don't bind a
9622 process to the current inferior if the current inferior is already
9623 bound to a process.
9624
e7af6c70
TBA
96252020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9626 Pedro Alves <palves@redhat.com>
9627
9628 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
9629 If no process is specified, return null_ptid instead of
9630 inferior_ptid.
9631 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
9632 TARGET_WAITKIND_SIGNALLED with no pid.
9633
31ba933e
PA
96342020-01-10 Pedro Alves <palves@redhat.com>
9635
9636 * remote.c (first_remote_resumed_thread): New.
9637 (remote_target::wait_as): Use it as default event_ptid instead of
9638 inferior_ptid.
9639
735fc2ca
PA
96402020-01-10 Pedro Alves <palves@redhat.com>
9641
9642 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
9643
c17e02e1
PA
96442020-01-10 Pedro Alves <palves@redhat.com>
9645
9646 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
9647 not -1.
9648
ab1ddbcf
PA
96492020-01-10 Pedro Alves <palves@redhat.com>
9650
9651 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
9652 ptid to get_last_target_status.
9653 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
9654 ptid to get_last_target_status.
9655 * infcmd.c (continue_command): Don't pass a target_waitstatus to
9656 get_last_target_status.
9657 (info_program_command): Don't pass a target_waitstatus to
9658 get_last_target_status.
9659 * infrun.c (init_wait_for_inferior): Use
9660 nullify_last_target_wait_ptid.
9661 (get_last_target_status): Handle nullptr arguments.
9662 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
9663 (print_stop_event): Don't pass a ptid to get_last_target_status.
9664 (normal_stop): Don't pass a ptid to get_last_target_status.
9665 * infrun.h (get_last_target_status, set_last_target_status): Move
9666 comments here and update.
9667 (nullify_last_target_wait_ptid): Declare.
9668 * linux-fork.c (fork_load_infrun_state): Remove local extern
9669 declaration of nullify_last_target_wait_ptid.
9670 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
9671 to get_last_target_status.
9672
f3f8ece4
PA
96732020-01-10 Pedro Alves <palves@redhat.com>
9674
9675 * gdbthread.h (scoped_restore_current_thread)
9676 <dont_restore, restore, m_dont_restore>: Declare.
9677 * thread.c (thread_alive): Add assertion. Return bool.
9678 (switch_to_thread_if_alive): New.
9679 (prune_threads): Switch inferior/thread.
9680 (print_thread_info_1): Switch thread before calling target methods.
9681 (scoped_restore_current_thread::restore): New, factored out from
9682 ...
9683 (scoped_restore_current_thread::~scoped_restore_current_thread):
9684 ... this.
9685 (scoped_restore_current_thread::scoped_restore_current_thread):
9686 Add assertion.
9687 (thread_apply_all_command, thread_select): Use
9688 switch_to_thread_if_alive.
9689 * infrun.c (proceed, restart_threads, handle_signal_stop)
9690 (switch_back_to_stepped_thread): Switch current thread before
9691 calling target methods.
9692
db2d40f7
PA
96932020-01-10 Pedro Alves <palves@redhat.com>
9694
9695 * inferior.c (switch_to_inferior_no_thread): New function,
9696 factored out from ...
9697 (inferior_command): ... here.
9698 * inferior.h (switch_to_inferior_no_thread): Declare.
9699 * mi/mi-main.c (run_one_inferior): Use
9700 switch_to_inferior_no_thread.
9701
bd420a2d
PA
97022020-01-10 Pedro Alves <palves@redhat.com>
9703
9704 * infcmd.c (kill_command): Remove dead code.
9705
ddf5db90
PA
97062020-01-10 Pedro Alves <palves@redhat.com>
9707
9708 * remote.c (remote_target::mourn_inferior): No longer check
9709 whether the target is running.
9710
5018ce90
PA
97112020-01-10 Pedro Alves <palves@redhat.com>
9712
9713 * corelow.c (core_target::has_execution): Change parameter type to
9714 inferior pointer.
9715 * inferior.c (number_of_live_inferiors): Use
9716 inferior::has_execution instead of target_has_execution_1.
9717 * inferior.h (inferior::has_execution): New.
9718 * linux-thread-db.c (thread_db_target::update_thread_list): Use
9719 inferior::has_execution instead of target_has_execution_1.
9720 * process-stratum-target.c
9721 (process_stratum_target::has_execution): Change parameter type to
9722 inferior pointer. Check the inferior's PID instead of
9723 inferior_ptid.
9724 * process-stratum-target.h
9725 (process_stratum_target::has_execution): Change parameter type to
9726 inferior pointer.
9727 * record-full.c (record_full_core_target::has_execution): Change
9728 parameter type to inferior pointer.
9729 * target.c (target_has_execution_1): Change parameter type to
9730 inferior pointer.
9731 (target_has_execution_current): Adjust.
9732 * target.h (target_ops::has_execution): Change parameter type to
9733 inferior pointer.
9734 (target_has_execution_1): Change parameter type to inferior
9735 pointer. Change return type to bool.
9736 * tracefile.h (tracefile_target::has_execution): Change parameter
9737 type to inferior pointer.
9738
74375d18
PA
97392020-01-10 Pedro Alves <palves@redhat.com>
9740
9741 * exceptions.c (print_flush): Remove current_top_target() check.
9742
acdf84a6
PA
97432020-01-10 Pedro Alves <palves@redhat.com>
9744
9745 * remote.c (show_remote_exec_file): Show the current inferior's
9746 exec-file instead of the command variable's value.
9747
ec506636
PA
97482020-01-10 Pedro Alves <palves@redhat.com>
9749
9750 * record-full.c (record_full_resume_ptid): New global.
9751 (record_full_target::resume): Set it.
9752 (record_full_wait_1): Use record_full_resume_ptid instead of
9753 inferior_ptid.
9754
873657b9
PA
97552020-01-10 Pedro Alves <palves@redhat.com>
9756
9757 * gdbthread.h (scoped_restore_current_thread)
9758 <dont_restore, restore, m_dont_restore>: Declare.
9759 * thread.c (thread_alive): Add assertion. Return bool.
9760 (switch_to_thread_if_alive): New.
9761 (prune_threads): Switch inferior/thread.
9762 (print_thread_info_1): Switch thread before calling target methods.
9763 (scoped_restore_current_thread::restore): New, factored out from
9764 ...
9765 (scoped_restore_current_thread::~scoped_restore_current_thread):
9766 ... this.
9767 (scoped_restore_current_thread::scoped_restore_current_thread):
9768 Add assertion.
9769 (thread_apply_all_command, thread_select): Use
9770 switch_to_thread_if_alive.
9771
7f0ae84c
GB
97722020-01-10 George Barrett <bob@bob131.so>
9773
9774 * stap-probe.c (stap_modify_semaphore): Don't check for null
9775 semaphores.
9776 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
9777 for null semaphores.
9778
f5a7c406
AB
97792020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9780
9781 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
9782 all source windows, and maintain horizontal scroll status while
9783 doing so.
9784
9ae6bf64
TT
97852020-01-09 Tom Tromey <tom@tromey.com>
9786
9787 PR tui/18932:
9788 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
9789 update_source_window, not print_source_lines.
9790
b2efe70c
AB
97912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9792
9793 * tui/tui.c (tui_enable): Register tui hooks after calling
9794 tui_display_main.
9795
5f23a082
CB
97962020-01-09 Christian Biesinger <cbiesinger@google.com>
9797
9798 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
9799
3061113b
SM
98002020-01-08 Simon Marchi <simon.marchi@efficios.com>
9801
9802 * thread.c (print_thread_info_1): Fix indentation.
9803
57d75002
CB
98042020-01-09 Christian Biesinger <cbiesinger@google.com>
9805
9806 * symtab.c (general_symbol_info::compute_and_set_names): Move the
9807 unique_xmalloc_ptr outside the if to always free the demangled name.
9808
6a053cb1
TT
98092020-01-08 Tom Tromey <tromey@adacore.com>
9810
9811 * xcoffread.c (enter_line_range, read_xcoff_symtab)
9812 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
9813 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
9814 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
9815 Remove.
9816 (section_offsets): New typedef.
9817 * symtab.c (fixup_section, get_msymbol_address): Update.
9818 * symmisc.c (dump_msymbols): Update.
9819 * symfile.h (relative_addr_info_to_section_offsets)
9820 (symfile_map_offsets_to_segments): Update.
9821 * symfile.c (build_section_addr_info_from_objfile)
9822 (init_objfile_sect_indices): Update.
9823 (struct place_section_arg): Change type of "offsets".
9824 (place_section): Update.
9825 (relative_addr_info_to_section_offsets): Change type of
9826 "section_offsets". Remove "num_sections" parameter.
9827 (default_symfile_offsets, syms_from_objfile_1)
9828 (set_objfile_default_section_offset): Update.
9829 (reread_symbols): No need to preserve section offsets by hand.
9830 (symfile_map_offsets_to_segments): Change type of "offsets".
9831 * stap-probe.c (relocate_address): Update.
9832 * stabsread.h (process_one_symbol): Update.
9833 * solib-target.c (struct lm_info_target) <offsets>: Change type.
9834 (solib_target_relocate_section_addresses): Update.
9835 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
9836 Update.
9837 * solib-frv.c (frv_relocate_main_executable): Update.
9838 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9839 * solib-aix.c (solib_aix_get_section_offsets): Change return
9840 type.
9841 (solib_aix_solib_create_inferior_hook): Update.
9842 * remote.c (remote_target::get_offsets): Update.
9843 * psymtab.c (find_pc_sect_psymtab): Update.
9844 * psympriv.h (struct partial_symbol) <address, text_low,
9845 text_high>: Update.
9846 * objfiles.h (obj_section_offset): Update.
9847 (struct objfile) <section_offsets>: Change type.
9848 <num_sections>: Remove.
9849 (objfile_relocate): Update.
9850 * objfiles.c (entry_point_address_query): Update
9851 (relocate_one_symbol): Change type of "section_offsets".
9852 (objfile_relocate1, objfile_relocate1): Change type of
9853 "new_offsets".
9854 (objfile_rebase1): Update.
9855 * mipsread.c (mipscoff_symfile_read): Update.
9856 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
9857 parameter.
9858 * mdebugread.c (parse_symbol): Change type of "section_offsets".
9859 (parse_external, psymtab_to_symtab_1): Update.
9860 * machoread.c (macho_symfile_offsets): Update.
9861 * ia64-tdep.c (ia64_find_unwind_table): Update.
9862 * hppa-tdep.c (read_unwind_info): Update.
9863 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
9864 * dwarf2read.c (create_addrmap_from_index)
9865 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9866 (process_psymtab_comp_unit_reader, add_partial_symbol)
9867 (add_partial_subprogram, process_full_comp_unit)
9868 (read_file_scope, read_func_scope, read_lexical_block_scope)
9869 (read_call_site_scope, dwarf2_rnglists_process)
9870 (dwarf2_ranges_process, dwarf2_ranges_read)
9871 (dwarf_decode_lines_1, var_decode_location, new_symbol)
9872 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
9873 Update.
9874 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
9875 Update.
9876 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
9877 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
9878 (process_one_symbol): Change type of "section_offsets".
9879 * ctfread.c (get_objfile_text_range): Update.
9880 * coffread.c (coff_symtab_read, enter_linenos)
9881 (process_coff_symbol): Update.
9882 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9883 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
9884
456e800a
TT
98852020-01-08 Tom Tromey <tromey@adacore.com>
9886
9887 * dwarf2read.c (parse_macro_definition): Use std::string.
9888 (parse_macro_definition): Likewise.
9889
6dfa2fc2
TT
98902020-01-08 Tom Tromey <tromey@adacore.com>
9891
9892 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
9893 (ATTR_ALLOC_CHUNK): Remove.
9894
421d1616
TT
98952020-01-08 Tom Tromey <tromey@adacore.com>
9896
9897 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
9898
43816ebc
TT
98992020-01-08 Tom Tromey <tromey@adacore.com>
9900
9901 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
9902 (dwarf2_compute_name, open_dwo_file): Likewise.
9903 (process_enumeration_scope): Use std::vector.
9904 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
9905 (partial_die_info::fixup, dwarf2_start_subfile)
9906 (guess_full_die_structure_name, dwarf2_name): Likewise.
9907 (determine_prefix): Update.
9908 (guess_full_die_structure_name): Make return type const.
9909 (partial_die_full_name): Return unique_xmalloc_ptr.
9910 (DW_FIELD_ALLOC_CHUNK): Remove.
9911
4212d509
TT
99122020-01-07 Tom Tromey <tromey@adacore.com>
9913
9914 PR build/24937:
9915 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9916
06a6207a
JT
99172020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9918
9919 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
9920
153d79c4
AB
99212020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * stack.c (print_frame_info): Move disassemble_next_line code
9924 inside source_print block.
9925
66182876
EZ
99262020-01-06 Eli Zaretskii <eliz@gnu.org>
9927
9928 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
9929 gdb/signals.h, as we are now using native signal symbols.
9930
cbfa8581
SV
99312020-01-06 Shahab Vahedi <shahab@synopsys.com>
9932
9933 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
9934 overflow by an early check of content vs threshold.
aac66a4c 9935 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
9936 Likewise.
9937
3f602821
EZ
99382020-01-06 Eli Zaretskii <eliz@gnu.org>
9939
9940 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
9941
a08c904d
JT
99422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9943
9944 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
9945 export table if no section contains it's RVA.
9946
89a65580
EZ
99472020-01-06 Eli Zaretskii <eliz@gnu.org>
9948
9949 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
9950
8b7fcda2
HD
99512020-01-06 Hannes Domani <ssbssa@yahoo.de>
9952
9953 * source.c (print_source_lines_base): Set last_line_listed.
9954
a61b4f69
SV
99552020-01-06 Shahab Vahedi <shahab@synopsys.com>
9956
9957 * tui/tui-disasm.c: Remove trailing spaces.
9958
559e7e50
EZ
99592020-01-06 Eli Zaretskii <eliz@gnu.org>
9960 Pedro Alves <palves@redhat.com>
9961
9962 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
9963 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
9964 (windows_gdb_signal_to_target): New function, uses the above
9965 enumeration to convert GDB internal signal codes to equivalent
9966 Windows codes.
9967 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
9968 * windows-nat.c: Include "gdb_wait.h".
9969 (get_windows_debug_event): Extract the fatal exception from the
9970 exit status and convert to the equivalent Posix signal number.
9971 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
9972 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
9973 * gdbsupport/gdb_wait.c: New file, implements
9974 windows_status_to_termsig.
9975 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
9976 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
9977
f2302a34
AB
99782020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
9979
9980 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
9981 show_layout.
9982
6a5206eb
LM
99832020-01-05 Luis Machado <luis.machado@linaro.org>
9984
9985 * aarch64-linux-nat.c
9986 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
9987 and bfd_mach_aarch64.
9988
6ec1d75e
PW
99892020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9990
9991 * ui-file.c (stdio_file::can_emit_style_escape)
9992 (tee_file::can_emit_style_escape): Ensure style is used also on
9993 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
9994 to gdb_stdout.
9995 * main.c (set_gdb_data_directory): Use file style to output the
9996 warning that the given pathname is not a directory.
9997 * top.c (show_history_filename, gdb_safe_append_history)
9998 (show_gdb_datadir): Use file style.
9999
44f81a76
HD
100002020-01-03 Hannes Domani <ssbssa@yahoo.de>
10001
10002 * solib-target.c (struct lm_info_target):
10003 Change offsets to be a unique_xmalloc_ptr.
10004 (solib_target_relocate_section_addresses): Update.
10005
25057eb0
HD
100062020-01-03 Hannes Domani <ssbssa@yahoo.de>
10007
10008 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10009
6e2118f5
BE
100102020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10011
10012 * MAINTAINERS (Write After Approval): Add myself.
10013
8133c7dc
LM
100142020-01-02 Luis Machado <luis.machado@linaro.org>
10015
10016 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10017 Cell BE architecture.
10018 * target.h (struct target_ops) <thread_architecture>: Likewise.
10019
48189bec
HD
100202020-01-01 Hannes Domani <ssbssa@yahoo.de>
10021
10022 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10023
ead1063b
HD
100242020-01-01 Hannes Domani <ssbssa@yahoo.de>
10025
10026 * MAINTAINERS (Write After Approval): Add myself.
10027
e5d78223
JB
100282020-01-01 Joel Brobecker <brobecker@adacore.com>
10029
10030 * gdbarch.sh: Update copyright year range of generated files.
10031
b811d2c2
JB
100322020-01-01 Joel Brobecker <brobecker@adacore.com>
10033
10034 Update copyright year range in all GDB files.
10035
5f4def5c
JB
100362020-01-01 Joel Brobecker <brobecker@adacore.com>
10037
10038 * copyright.py: Convert to Python 3.
10039
51fd4002
JB
100402020-01-01 Joel Brobecker <brobecker@adacore.com>
10041
10042 * copyright.py: Adapt after move of gnulib directory from gdb
10043 directory to toplevel directory.
10044
5fb651f2
JB
100452020-01-01 Joel Brobecker <brobecker@adacore.com>
10046
10047 * copyright.py (main): Exit if run from the wrong directory.
10048
5dd8bf88
JB
100492020-01-01 Joel Brobecker <brobecker@adacore.com>
10050
10051 * top.c (print_gdb_version): Change copyright year to 2020.
10052
9f71dacb 100532020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10054
9f71dacb 10055 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10056
9f71dacb 10057For older changes see ChangeLog-2019.
c906108c
SS
10058\f
10059Local Variables:
10060mode: change-log
10061left-margin: 8
10062fill-column: 74
10063version-control: never
57da7796 10064coding: utf-8
c906108c 10065End:
This page took 3.684733 seconds and 4 git commands to generate.