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