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