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