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