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