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