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