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