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