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