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