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