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