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