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