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