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