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