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