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