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