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