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