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