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