]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
ada-typeprint.c::ada_print_type: Remove redundant call to ada_check_typedef
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-typeprint.c (ada_print_type): Remove superfluous second call
4 to ada_check_typedef.
5
6 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * f-exp.y (f_parse): Rename to...
9 (f_language::parser): ...this.
10 * f-lang.c (f_get_encoding): Rename to...
11 (f_language::get_encoding): ...this.
12 (f_op_print_tab): Rename to...
13 (f_language::op_print_tab): ...this.
14 (exp_descriptor_f): Rename to...
15 (f_language::exp_descriptor_tab): ...this.
16 (class f_language): Moved to f-lang.h.
17 (f_language::language_arch_info): New function, moved out of class
18 declaration.
19 (f_language::search_name_hash): Likewise.
20 (f_language::lookup_symbol_nonlocal): Likewise.
21 (f_language::get_symbol_name_matcher_inner): Likewise.
22 * f-lang.h: Add 'valprint.h' include.
23 (class f_language): Moved here from f-lang.c.
24 * f-typeprint.c (f_type_print_args): Delete commented out
25 declaration.
26 (f_print_typedef): Rename to...
27 (f_language::print_typedef): ...this.
28 (f_print_type): Rename to...
29 (f_language::print_type): ...this.
30 (f_type_print_varspec_prefix): Delete declaration and rename to...
31 (f_language::f_type_print_varspec_prefix): ...this.
32 (f_type_print_varspec_suffix): Delete declaration and rename to...
33 (f_language::f_type_print_varspec_suffix): ...this.
34 (f_type_print_base): Delete declaration and rename to...
35 (f_language::f_type_print_base): ...this.
36 * f-valprint.c (f_value_print_inner): Rename to...
37 (f_language::value_print_inner): ...this.
38 * parse.c: Delete 'f-lang.h' include.
39
40 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * language.h (language_defn::print_type): Add variable names in
43 declaration, and update header comment.
44
45 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * ada-lang.c (ada_language::demangle): Rename to...
48 (ada_language::demangle_symbol): ...this.
49 * c-lang.c (cplus_language::demangle): Rename to...
50 (cplus_language::demangle_symbol): ...this.
51 * d-lang.c (d_language::demangle): Rename to...
52 (d_language::demangle_symbol): ...this.
53 * f-lang.c (f_language::demangle): Rename to...
54 (f_language::demangle_symbol): ...this.
55 * go-lang.c (go_language::demangle): Rename to...
56 (go_language::demangle_symbol): ...this.
57 * language.c (language_demangle): Update call to demangle_symbol.
58 (auto_or_unknown_language::demangle): Rename to...
59 (auto_or_unknown_language::demangle_symbol): ...this.
60 * language.h (language_defn::demangle): Rename to...
61 (language_defn::demangle_symbol): ...this.
62 * objc-lang.c (objc_language::demangle): Rename to...
63 (objc_language::demangle_symbol): ...this.
64 * rust-lang.c (rust_language::demangle): Rename to...
65 (rust_language::demangle_symbol): ...this.
66
67 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
70 (iterate_over_file_blocks): Replace use of macro with the macros
71 definition.
72
73 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
76 * valprint.c (maybe_print_array_index): Replace use of macro with
77 the macros definition.
78
79 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
80
81 * ada-lang.c (ada_language::print_array_index): Call value_print
82 directly.
83 * language.c (language_defn::print_array_index): Likewise.
84 * language.h (LA_VALUE_PRINT): Delete.
85 * valprint.c (value_print): Call value_print on the
86 current_language directly.
87
88 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * language.h (LA_PRINT_TYPEDEF): Delete.
91 * typeprint.c (typedef_print): Call print_typedef directly on the
92 current_language object.
93
94 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * m2-exp.y (m2_parse): Rename to...
97 (m2_language::parser): ...this. Update function signature.
98 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
99 (m2_op_print): Rename to...
100 (m2_language::op_print_tab): ...this, and make const.
101 (exp_descriptor_modula2): Rename to...
102 (m2_language::exp_descriptor_modula2): ...this.
103 (class m2_language): Move to m2-lang.h.
104 (m2_language::language_arch_info): New function, moved out of
105 class declaration.
106 (m2_language::printchar): New function, body from m2_printchar.
107 (m2_language::printstr): New function, moved out of class
108 declaration.
109 (m2_language::emitchar): Likewise.
110 * m2-lang.h (m2_parse): Delete declaration.
111 (m2_print_typedef): Delete declaration.
112 (m2_value_print_inner): Delete declaration.
113 (class m2_language): Class declaration moved from m2-lang.c,
114 larger functions are left in m2-lang.c.
115 * m2-typeprint.c (m2_print_typedef): Rename to...
116 (m2_language::print_typedef): ...this, and update function
117 signature.
118 * m2-valprint.c (m2_value_print_inner): Rename to...
119 (m2_language::value_print_inner): ...this, replace use of
120 LA_PRINT_STRING with a direct call to printstr member function,
121 and update recursive call.
122
123 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * language.c (default_is_string_type_p): Delete, implementation
126 moved into auto_or_unknown_language::is_string_type_p.
127 (unk_op_print_tab): Moved into
128 auto_or_unknown_language::opcode_print_table.
129 (unknown_language_arch_info): Delete, implementation moved into
130 auto_or_unknown_language::language_arch_info.
131 (class auto_or_unknown_language): New class, member functions
132 copied from unknown_language class, with some updates.
133 (class unknown_language): Most member functions moved into
134 auto_or_unknown_language class. Inherit from
135 auto_or_unknown_language class.
136 (class auto_language): Inherit from auto_or_unknown_language.
137 Delete most member functions.
138
139 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
140
141 * stabsread.c (read_member_functions): Remove gdb_assert.
142
143 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
144
145 * gdbtypes.c (init_complex_type): Check target type name.
146
147 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * target-debug.h (target_debug_print_struct_target_ops_p):
150 Remove.
151 (target_debug_print_async_callback_ftype_p): Remove.
152 (target_debug_print_struct_trace_state_variable_p): Remove.
153 (target_debug_print_struct_traceframe_info_p): Remove.
154 (target_debug_print_VEC__btrace_block_s__pp): Remove.
155 (target_debug_print_enum_btrace_format): Remove.
156 (target_debug_print_enum_info_proc_what): Remove.
157 (target_debug_print_thread_info_pp): Remove.
158
159 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
160
161 * target.h (struct target_ops) <make_corefile_notes>:
162 Change return type to unique pointer.
163 * target.c (dummy_make_corefile_notes): Likewise.
164 * exec.c (struct exec_target) <make_corefile_notes>:
165 Likewise.
166 (exec_target::make_corefile_notes): Likewise.
167 * procfs.c (class procfs_target) <make_corefile_notes>:
168 Likewise.
169 (procfs_do_thread_registers): Adjust to unique pointer.
170 (struct procfs_corefile_thread_data): Add constructor.
171 <note_data>: Change type to unique pointer.
172 (procfs_corefile_thread_callback): Adjust to unique pointer.
173 (procfs_target::make_corefile_notes): Change return type to
174 unique pointer.
175 * target-delegates.c: Re-generate.
176 * gcore.c (write_gcore_file_1): Adjust.
177 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
178 New.
179
180 2020-10-22 Tom de Vries <tdevries@suse.de>
181
182 * block.c (find_block_in_blockvector): Make sure the returned block
183 contains pc.
184
185 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
186
187 PR gdb/26693
188 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
189 parameter.
190 (load_cu): Pass existing CU.
191 (process_imported_unit_die): Likewise.
192 (follow_die_offset): Likewise.
193
194 2020-10-22 Luis Machado <luis.machado@linaro.org>
195
196 * corelow.c (core_target::xfer_partial): Also check for an empty
197 m_core_unavailable_mappings vector.
198
199 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
202 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
203 * f-exp.y (arglist): Allow for a series of subranges.
204 (subrange): Add cases for subranges with strides.
205 * f-lang.c (value_f90_subarray): Catch use of array strides and
206 throw an error.
207 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
208
209 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * expprint.c (print_subexp_standard): Change enum range_type to
212 range_flag and rename variables to match.
213 (dump_subexp_body_standard): Likewise.
214 * expression.h (enum range_type): Rename to...
215 (enum range_flag): ...this.
216 (range_types): Rename to...
217 (range_flags): ...this.
218 * f-lang.c (value_f90_subarray): Change enum range_type to
219 range_flag and rename variables to match.
220 * parse.c (operator_length_standard): Likewise.
221 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
222 range_type to range_flag.
223 * rust-lang.c (rust_evaluate_funcall): Likewise.
224 (rust_range): Likewise.
225 (rust_compute_range): Likewise.
226 (rust_subscript): Likewise.
227
228 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * expprint.c (print_subexp_standard): Update to reflect changes to
231 enum range_type.
232 (dump_subexp_body_standard): Likewise.
233 * expression.h (enum range_type): Convert to a bit field enum, and
234 make the enum unsigned.
235 * f-exp.y (subrange): Update to reflect changes to enum
236 range_type.
237 * f-lang.c (value_f90_subarray): Likewise.
238 * parse.c (operator_length_standard): Likewise.
239 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
240 * rust-lang.c (rust_range): Likewise.
241 (rust_compute_range): Likewise.
242 (rust_subscript): Likewise.
243
244 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
245
246 * infrun.c (displaced_step_in_progress_thread): Fix comment.
247 (displaced_step_in_progress): Fix comment.
248
249 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * gdbarch.sh (make_corefile_notes): Return unique pointer.
252 * gdbarch.c: Re-generate.
253 * gdbarch.h: Re-generate.
254 * gcore.c (write_gcore_file_1): Adjust.
255 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
256 constructor.
257 <note_data>: Change type to unique pointer.
258 <abort_iteration>: Change type to bool.
259 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
260 (fbsd_collect_thread_registers): Return void, adjust.
261 (struct fbsd_corefile_thread_data): Add construtor.
262 <note_data>: Change type to unique pointer.
263 (fbsd_corefile_thread): Adjust.
264 (fbsd_make_corefile_notes): Return unique pointer, adjust.
265 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
266 to unique pointer, adjust.
267 (struct linux_collect_regset_section_cb_data): Add constructor.
268 <note_data>: Change type to unique pointer.
269 <abort_iteration>: Change type to bool.
270 (linux_collect_thread_registers): Return void, adjust.
271 (struct linux_corefile_thread_data): Add constructor.
272 <note_data>: Change type to unique pointer.
273 (linux_corefile_thread): Adjust.
274 (linux_make_corefile_notes): Return unique pointer, adjust.
275
276 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
279 * gdbarch.c: Re-generate.
280 * gdbarch.h: Re-generate.
281 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
282 bool.
283 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
284 Likewise.
285 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
286 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
287 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
288 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
289
290 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
291
292 * gdbarch.sh: Make generated predicates return bool.
293 * gdbarch.c: Re-generate.
294 * gdbarch.h: Re-generate.
295
296 2020-10-20 Tom Tromey <tom@tromey.com>
297
298 * varobj-iter.h (struct varobj_item): Remove typedef.
299
300 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * infrun.c (currently_stepping): Change int to bool
303 (maybe_software_singlestep): Likewise.
304 (show_stop_on_solib_events): Likewise.
305 (stepping_past_nonsteppable_watchpoint): Likewise.
306 (displaced_step_in_progress_any_inferior): Likewise.
307 (displaced_step_in_progress_thread): Likewise.
308 (keep_going_stepped_thread): Likewise.
309 (thread_still_needs_step_over): Likewise.
310 (start_step_over): Likewise.
311 (do_target_resume): Likewise.
312 (resume_1): Likewise.
313 (clear_proceed_status): Likewise.
314 (thread_still_needs_step_over_bp): Likewise.
315 (proceed): Likewise.
316 (switch_back_to_stepped_thread): Likewise.
317 (adjust_pc_after_break): Likewise.
318 (stepped_in_from): Likewise.
319 (handle_stop_requested): Likewise.
320 (handle_syscall_event): Likewise.
321 (handle_no_resumed): Likewise.
322 (handle_inferior_event): Likewise.
323 (finish_step_over): Likewise.
324 (handle_signal_stop): Likewise.
325 (process_event_stop_test): Likewise.
326
327 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * infrun.c (get_displaced_stepping_state): Fix comment.
330
331 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
332
333 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
334
335 2020-10-19 Tom Tromey <tromey@adacore.com>
336
337 PR tui/26719
338 * tui/tui-winsource.h (struct tui_source_window_base)
339 <refresh_window>: Rename from refresh_pad.
340 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
341 Rename from refresh_pad.
342 (tui_source_window_base::show_source_content)
343 (tui_source_window_base::do_scroll_horizontal): Update.
344
345 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 * thread.c (_initialize_thread): Fine-tune the help text of
348 'info threads'.
349
350 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
351
352 * frame.c: Remove the unused 'uinteger_option_def' type alias.
353
354 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
355
356 * breakpoint.c (handle_jit_event): Add an argument, change how
357 `jit_event_handler` is called.
358
359 2020-10-17 Tom Tromey <tom@tromey.com>
360
361 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
362 (scan_xcoff_symtab): Update.
363 * psymtab.h (class psymtab_storage) <global_psymbols,
364 static_psymbols, current_global_psymbols,
365 current_static_psymbols>: Remove.
366 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
367 (match_partial_symbol, lookup_partial_symbol): Update.
368 (print_partial_symbols): Change parameters.
369 (dump_psymtab, recursively_search_psymtabs)
370 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
371 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
372 (concat): Remove.
373 (end_psymtab_common): Simplify.
374 (append_psymbol_to_list): Change parameters.
375 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
376 (init_psymbol_list): Simplify.
377 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
378 * psympriv.h (struct partial_symtab) <empty>: New method.
379 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
380 Remove.
381 <global_psymbols, static_psymbols>: New members.
382 <add_psymbol>: New methods.
383 (add_psymbol_to_list): Don't declare.
384 (psymbol_placement): Move earlier.
385 * mdebugread.c (parse_partial_symbols): Update.
386 (handle_psymbol_enumerators): Change parameters.
387 (mdebug_expand_psymtab): Update.
388 * dwarf2/read.c (process_psymtab_comp_unit_reader)
389 (add_partial_symbol): Update.
390 * dwarf2/index-write.c (write_psymbols): Change parameters.
391 (write_one_signatured_type): Update.
392 (recursively_count_psymbols): Update.
393 (recursively_write_psymbols): Update.
394 (class debug_names) <recursively_write_psymbols>: Update.
395 <write_psymbols>: Change parameters.
396 <write_one_signatured_type>: Update.
397 * dbxread.c (read_dbx_symtab): Update.
398 (dbx_end_psymtab): Use partial_symtab::empty.
399 * ctfread.c (struct ctf_context) <pst>: New member.
400 (create_partial_symtab): Set it.
401 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
402 (scan_partial_symbols): Use the psymtab's context. Update.
403
404 2020-10-17 Tom Tromey <tom@tromey.com>
405
406 * valprint.c (generic_value_print): Remove comment.
407 * m2-valprint.c (m2_value_print_inner): Remove comment.
408 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
409 type.
410
411 2020-10-17 Tom de Vries <tdevries@suse.de>
412
413 PR symtab/26317
414 * source.c (select_source_symtab): Handling sal.symtab == NULL for
415 symbol main.
416
417 2020-10-14 Tom de Vries <tdevries@suse.de>
418
419 PR gdb/26733
420 * solib.c (solib_contains_address_p): Handle
421 'solib->sections == nullptr'.
422
423 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
424
425 PR gdb/26642
426 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
427 target can't do async.
428 * target.c (target_wait): Assert that we don't pass
429 TARGET_WNOHANG to a target that can't async.
430
431 2020-10-13 Kamil Rytarowski <n54@gmx.com>
432
433 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
434 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
435 * alpha-bsd-nat.c: Adjust include.
436 * alpha-bsd-tdep.h: Adjust comment.
437 * alpha-nbsd-tdep.c: Rename to ...
438 * alpha-netbsd-tdep.c: ... this, adjust include.
439 * amd64-nbsd-nat.c: Rename to ...
440 * amd64-netbsd-nat.c: ... this, adjust include.
441 * amd64-nbsd-tdep.c: Rename to ...
442 * amd64-netbsd-tdep.c: ... this, adjust include.
443 * amd64-tdep.h: Adjust include.
444 * arm-nbsd-nat.c: Rename to ...
445 * arm-netbsd-nat.c: ... this, adjust include.
446 * arm-nbsd-tdep.c: Rename to ...
447 * arm-netbsd-tdep.c: ... this, adjust include.
448 * arm-nbsd-tdep.h: Rename to ...
449 * arm-netbsd-tdep.h: ... this, adjust include.
450 * configure.nat: Adjust file lists.
451 * configure.tgt: Likewise.
452 * hppa-nbsd-nat.c: Rename to ...
453 * hppa-netbsd-nat.c: ... this, adjust include.
454 * hppa-nbsd-tdep.c: Rename to ...
455 * hppa-netbsd-tdep.c: ... this, adjust include.
456 * i386-nbsd-nat.c: Rename to ...
457 * i386-netbsd-nat.c: ... this, adjust include.
458 * i386-nbsd-tdep.c: Rename to ...
459 * i386-netbsd-tdep.c: ... this, adjust include.
460 * m68k-bsd-nat.c: Adjust include.
461 * mips-nbsd-nat.c: Rename to ...
462 * mips-netbsd-nat.c: ... this, adjust include.
463 * mips-nbsd-tdep.c: Rename to ...
464 * mips-netbsd-tdep.c: ... this, adjust include.
465 * mips-nbsd-tdep.h: Rename to ...
466 * mips-netbsd-tdep.h: ... this.
467 * nbsd-nat.c: Rename to ...
468 * netbsd-nat.c: ... this, adjust include.
469 * nbsd-nat.h: Rename to ...
470 * netbsd-nat.h: ... this, adjust include.
471 * nbsd-tdep.c: Rename to ...
472 * netbsd-tdep.c: ... this, adjust include.
473 * nbsd-tdep.h: Rename to ...
474 * netbsd-tdep.h: ... this.
475 * ppc-nbsd-nat.c: Rename to ...
476 * ppc-netbsd-nat.c: ... this, adjust include.
477 * ppc-nbsd-tdep.c: Rename to ...
478 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
479 * ppc-nbsd-tdep.h: Rename to ...
480 * ppc-netbsd-tdep.h: ... this.
481 * sh-nbsd-nat.c: Rename to ...
482 * sh-netbsd-nat.c: ... this, adjust include.
483 * sh-nbsd-tdep.c: Rename to ...
484 * sh-netbsd-tdep.c: ... this, adjust include.
485 * sparc-nbsd-nat.c: Rename to ...
486 * sparc-netbsd-nat.c: ... this.
487 * sparc-nbsd-tdep.c: Rename to ...
488 * sparc-netbsd-tdep.c: ... this, adjust include.
489 * sparc64-nbsd-nat.c: Rename to ...
490 * sparc64-netbsd-nat.c: ... this.
491 * sparc64-nbsd-tdep.c: Rename to ...
492 * sparc64-netbsd-tdep.c: ... this, adjust include.
493 * sparc64-tdep.h: Adjust comment.
494 * vax-bsd-nat.c: Adjust include.
495 * vax-nbsd-tdep.c: Rename to ...
496 * vax-netbsd-tdep.c: ... this, adjust include.
497
498 2020-10-12 Tom Tromey <tom@tromey.com>
499
500 * target.h (struct target_ops) <get_section_table>: Update.
501 (target_get_section_table): Update.
502 * target.c (target_get_section_table, target_section_by_addr)
503 (memory_xfer_partial_1): Update.
504 * target-section.h (target_section_table): Now an alias.
505 * target-delegates.c: Rebuild.
506 * target-debug.h (target_debug_print_target_section_table_p):
507 Rename from target_debug_print_struct_target_section_table_p.
508 * symfile.c (build_section_addr_info_from_section_table): Update.
509 * solib.c (solib_map_sections, solib_contains_address_p): Update.
510 * solib-svr4.c (scan_dyntag): Update.
511 * solib-dsbt.c (scan_dyntag): Update.
512 * remote.c (remote_target::remote_xfer_live_readonly_partial):
513 Update.
514 * record-full.c (record_full_core_target::xfer_partial): Update.
515 * progspace.h (struct program_space) <target_sections>: Update.
516 * exec.h (print_section_info): Update.
517 * exec.c (exec_target::close, build_section_table)
518 (add_target_sections, add_target_sections_of_objfile)
519 (remove_target_sections, exec_on_vfork)
520 (section_table_available_memory)
521 (section_table_xfer_memory_partial)
522 (exec_target::get_section_table, exec_target::xfer_partial)
523 (print_section_info, set_section_command)
524 (exec_set_section_address, exec_target::has_memory): Update.
525 * corelow.c (core_target::build_file_mappings)
526 (core_target::xfer_partial, core_target::info_proc_mappings)
527 (core_target::info_proc_mappings): Update.
528 * bfd-target.c (class target_bfd): Update
529
530 2020-10-12 Tom Tromey <tom@tromey.com>
531
532 * progspace.c (program_space::~program_space): Don't call
533 clear_section_table.
534 * exec.h (clear_section_table): Don't declare.
535 * exec.c (exec_target::close): Update.
536 (clear_section_table): Remove.
537
538 2020-10-12 Tom Tromey <tom@tromey.com>
539
540 * exec.c (add_target_sections_of_objfile): Simplify.
541
542 2020-10-12 Tom Tromey <tom@tromey.com>
543
544 * solib.c (solib_map_sections): Update.
545 * record-full.c (record_full_core_open_1): Update.
546 * exec.h (build_section_table): Return a target_section_table.
547 * exec.c (exec_file_attach): Update.
548 (build_section_table): Return a target_section_table.
549 * corelow.c (core_target::core_target): Update.
550 * bfd-target.c (target_bfd::target_bfd): Update.
551
552 2020-10-12 Tom Tromey <tom@tromey.com>
553
554 * target.c (target_section_by_addr, memory_xfer_partial_1):
555 Update.
556 * target-section.h (struct target_section_table): Use
557 std::vector.
558 * symfile.h (build_section_addr_info_from_section_table): Take a
559 target_section_table.
560 * symfile.c (build_section_addr_info_from_section_table): Take a
561 target_section_table.
562 * solist.h (struct so_list) <sections>: Change type.
563 <sections_end>: Remove.
564 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
565 (solib_contains_address_p): Update.
566 * solib-svr4.c (scan_dyntag): Update.
567 * solib-dsbt.c (scan_dyntag): Update.
568 * remote.c (remote_target::remote_xfer_live_readonly_partial):
569 Update.
570 * record-full.c (record_full_core_start, record_full_core_end):
571 Remove.
572 (record_full_core_sections): New global.
573 (record_full_core_open_1, record_full_core_target::xfer_partial):
574 Update.
575 * exec.h (build_section_table, section_table_xfer_memory_partial)
576 (add_target_sections): Take a target_section_table.
577 * exec.c (exec_file_attach, clear_section_table): Update.
578 (resize_section_table): Remove.
579 (build_section_table, add_target_sections): Take a
580 target_section_table.
581 (add_target_sections_of_objfile, remove_target_sections)
582 (exec_on_vfork): Update.
583 (section_table_available_memory): Take a target_section_table.
584 (section_table_read_available_memory): Update.
585 (section_table_xfer_memory_partial): Take a target_section_table.
586 (print_section_info, set_section_command)
587 (exec_set_section_address, exec_target::has_memory): Update.
588 * corelow.c (class core_target) <m_core_section_table,
589 m_core_file_mappings>: Remove braces.
590 <~core_target>: Remove.
591 (core_target::core_target): Update.
592 (core_target::~core_target): Remove.
593 (core_target::build_file_mappings)
594 (core_target::xfer_memory_via_mappings)
595 (core_target::xfer_partial, core_target::info_proc_mappings):
596 Update.
597 * bfd-target.c (target_bfd::xfer_partial): Update.
598 (target_bfd::target_bfd): Update.
599 (target_bfd::~target_bfd): Remove.
600
601 2020-10-12 Tom Tromey <tom@tromey.com>
602
603 * target.h (struct target_section, struct target_section_table):
604 Move to target-section.h.
605 * target-section.h: New file.
606
607 2020-10-12 Pedro Alves <pedro@palves.net>
608
609 PR exp/26602
610 * valops.c (struct struct_field_searcher): New.
611 (update_search_result): Rename to ...
612 (struct_field_searcher::update_result): ... this. Simplify
613 prototype. Record all found fields.
614 (do_search_struct_field): Rename to ...
615 (struct_field_searcher::search): ... this. Simplify prototype.
616 Maintain stack of visited baseclass path. Call update_result for
617 fields too. Keep searching fields in baseclasses instead of
618 stopping at the first found field.
619 (search_struct_field): Use struct_field_searcher. When looking
620 for fields, report ambiguous access attempts.
621
622 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * frame.c (inside_main_func): Check full symbols as well as
625 minimal symbols.
626
627 2020-10-09 Joel Brobecker <brobecker@adacore.com>
628
629 * ada-lang.c (advance_wild_match): Rewrite the function's
630 description. Change the type of target0, t0 and t1 to char.
631
632 2020-10-09 Tom Tromey <tromey@adacore.com>
633
634 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
635
636 2020-10-09 Tom Tromey <tromey@adacore.com>
637
638 * ada-lang.h (ada_encode): Return std::string.
639 * ada-lang.c (ada_encode_1): Return std::string.
640 (ada_encode): Likewise.
641 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
642 Update.
643 * ada-exp.y (block_lookup, write_var_or_type): Update.
644
645 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
646
647 PR exp/26714
648 * printcmd.c (print_formatted): Handle void results as
649 unformatted prints.
650
651 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * arch/aarch32.c (aarch32_create_target_description): Release the
654 target_desc_up as late as possible.
655 * arch/aarch64.c (aarch64_create_target_description): Likewise.
656 * arch/amd64.c (amd64_create_target_description): Likewise.
657 * arch/arc.c (arc_create_target_description): Return a
658 target_desc_up, don't release it.
659 * arch/arc.h (arc_create_target_description): Update declaration.
660 (arc_lookup_target_description): Move target_desc_up into the
661 cache, and return a borrowed pointer.
662 * arch/arm.c (arm_create_target_description): Release the
663 target_desc_up as late as possible.
664 * arch/i386.c (i386_create_target_description): Likewise.
665 * arch/riscv.h (riscv_create_target_description): Update
666 declaration to match definition.
667 * arch/tic6x.c (tic6x_create_target_description): Release the
668 target_desc_up as late as possible.
669
670 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
671
672 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
673 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
674
675 2020-10-09 Jan Vrany <jan.vrany@labware.com>
676
677 * source.c (directory_command): Notify observers that "directories"
678 parameter has changed.
679
680 2020-10-08 Tom Tromey <tom@tromey.com>
681
682 * cli/cli-cmds.c (print_disassembly): Style function name and
683 addresses. Add _() wrappers.
684
685 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
686
687 * NEWS: Mention ARC support in GDBserver.
688
689 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * arch/aarch32.c (aarch32_create_target_description): Release
692 unique_ptr returned from allocate_target_description.
693 * arch/aarch64.c (aarch64_create_target_description): Likewise.
694 * arch/amd64.c (amd64_create_target_description): Likewise.
695 * arch/arc.c (arc_create_target_description): Likewise.
696 * arch/arm.c (arm_create_target_description): Likewise.
697 * arch/i386.c (i386_create_target_description): Likewise.
698 * arch/riscv.c (riscv_create_target_description): Update return
699 type. Handle allocate_target_description returning a unique_ptr.
700 (riscv_lookup_target_description): Update to handle unique_ptr.
701 * arch/tic6x.c (tic6x_create_target_description): Release
702 unique_ptr returned from allocate_target_description.
703 * features/microblaze-with-stack-protect.c: Regenerate.
704 * features/microblaze.c: Regenerate.
705 * features/mips-dsp-linux.c: Regenerate.
706 * features/mips-linux.c: Regenerate.
707 * features/mips64-dsp-linux.c: Regenerate.
708 * features/mips64-linux.c: Regenerate.
709 * features/nds32.c: Regenerate.
710 * features/nios2.c: Regenerate.
711 * features/or1k.c: Regenerate.
712 * features/rs6000/powerpc-32.c: Regenerate.
713 * features/rs6000/powerpc-32l.c: Regenerate.
714 * features/rs6000/powerpc-403.c: Regenerate.
715 * features/rs6000/powerpc-403gc.c: Regenerate.
716 * features/rs6000/powerpc-405.c: Regenerate.
717 * features/rs6000/powerpc-505.c: Regenerate.
718 * features/rs6000/powerpc-601.c: Regenerate.
719 * features/rs6000/powerpc-602.c: Regenerate.
720 * features/rs6000/powerpc-603.c: Regenerate.
721 * features/rs6000/powerpc-604.c: Regenerate.
722 * features/rs6000/powerpc-64.c: Regenerate.
723 * features/rs6000/powerpc-64l.c: Regenerate.
724 * features/rs6000/powerpc-7400.c: Regenerate.
725 * features/rs6000/powerpc-750.c: Regenerate.
726 * features/rs6000/powerpc-860.c: Regenerate.
727 * features/rs6000/powerpc-altivec32.c: Regenerate.
728 * features/rs6000/powerpc-altivec32l.c: Regenerate.
729 * features/rs6000/powerpc-altivec64.c: Regenerate.
730 * features/rs6000/powerpc-altivec64l.c: Regenerate.
731 * features/rs6000/powerpc-e500.c: Regenerate.
732 * features/rs6000/powerpc-e500l.c: Regenerate.
733 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
734 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
735 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
736 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
737 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
738 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
739 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
740 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
741 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
742 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
743 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
744 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
745 * features/rs6000/powerpc-vsx32.c: Regenerate.
746 * features/rs6000/powerpc-vsx32l.c: Regenerate.
747 * features/rs6000/powerpc-vsx64.c: Regenerate.
748 * features/rs6000/powerpc-vsx64l.c: Regenerate.
749 * features/rs6000/rs6000.c: Regenerate.
750 * features/rx.c: Regenerate.
751 * features/s390-gs-linux64.c: Regenerate.
752 * features/s390-linux32.c: Regenerate.
753 * features/s390-linux32v1.c: Regenerate.
754 * features/s390-linux32v2.c: Regenerate.
755 * features/s390-linux64.c: Regenerate.
756 * features/s390-linux64v1.c: Regenerate.
757 * features/s390-linux64v2.c: Regenerate.
758 * features/s390-te-linux64.c: Regenerate.
759 * features/s390-tevx-linux64.c: Regenerate.
760 * features/s390-vx-linux64.c: Regenerate.
761 * features/s390x-gs-linux64.c: Regenerate.
762 * features/s390x-linux64.c: Regenerate.
763 * features/s390x-linux64v1.c: Regenerate.
764 * features/s390x-linux64v2.c: Regenerate.
765 * features/s390x-te-linux64.c: Regenerate.
766 * features/s390x-tevx-linux64.c: Regenerate.
767 * features/s390x-vx-linux64.c: Regenerate.
768 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
769 from allocate_target_description.
770 * target-descriptions.c (allocate_target_description): Update
771 return type.
772 (print_c_tdesc::visit_pre): Release unique_ptr returned from
773 allocate_target_description.
774
775 2020-10-07 Tom Tromey <tromey@adacore.com>
776
777 * unittests/search-memory-selftests.c: New file.
778 * Makefile.in (SELFTESTS_SRCS): Add
779 unittests/search-memory-selftests.c.
780
781 2020-10-07 Tom Tromey <tromey@adacore.com>
782
783 PR gdb/16930:
784 * findcmd.c (_initialize_mem_search): Mention that the range is
785 inclusive.
786
787 2020-10-07 Tom Tromey <tromey@adacore.com>
788
789 * target.h (simple_search_memory): Don't declare.
790 * target.c (simple_search_memory): Move to gdbsupport.
791 (default_search_memory): Update.
792 * remote.c (remote_target::search_memory): Update.
793
794 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
795
796 * Makefile.in (COMPILE): Add CXXFLAGS.
797 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
798 (check-headers): Add CXXFLAGS.
799
800 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
801
802 * arc-linux-tdep.h: New file.
803 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
804 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
805 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
806 arc_linux_gregset, arc_linux_v2_regset,
807 arc_linux_iterate_over_regset_sections,
808 arc_linux_core_read_description): Implement.
809 (arc_linux_init_osabi): Set iterate_over_regset_sections.
810 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
811 (arc_gdbarch_features_create): Add.
812 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
813
814 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
815
816 * arch/arc.h: Rename "arc_gdbarch_features" to
817 "arc_arch_features".
818 * arc-tdep.h: Likewise.
819 * arc-tdep.c: Likewise.
820
821 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
822
823 * infcmd.c (attach_command): Remove the redundant call to
824 `clear_proceed_status`.
825
826 2020-10-07 Kamil Rytarowski <n54@gmx.com>
827
828 * nat/netbsd-nat.c (write_memory, read_memory): Update.
829
830 2020-10-07 Kamil Rytarowski <n54@gmx.com>
831
832 * nat/netbsd-nat.c (write_memory, read_memory): Add.
833 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
834 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
835
836 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
839 (_initialize_break_catch_sig): Don't allocate array.
840
841 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * symtab.c (find_pc_line): Return unmapped addresses when the
844 requested address is also unmapped.
845
846 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
847
848 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
849 tui/tui-out.h.
850
851 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
852
853 * amd64-windows-tdep.c (amd64_windows_return_value): Use
854 type::is_vector instead of TYPE_VECTOR.
855
856 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
857
858 * auto-load.c (auto_load_objfile_script_1): Don't use
859 debugfile_holder as temporary variable when stripping drive
860 letter.
861
862 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
863
864 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
865 Add TYPE_CODE_COMPLEX.
866 (amd64_windows_return_value): Fix types returned via XMM0.
867
868 2020-10-05 Alan Hayward <alan.hayward@arm.com>
869
870 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
871 AArch64/ARM maintainers.
872
873 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * NEWS: Mention set/show debug event-loop.
876
877 2020-10-02 Tom Tromey <tromey@adacore.com>
878
879 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
880 REG_EXTENDED.
881
882 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
883
884 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
885 * procfs.c (procfs_inferior_created): Remove.
886 (_initialize_procfs): Don't register procfs_inferior_created.
887
888 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
889
890 * async-event.c (invoke_async_signal_handlers): Add debug
891 print.
892 (check_async_event_handlers): Likewise.
893 * event-top.c (show_debug_event_loop): New function.
894 (_initialize_event_top): Register "set debug event-loop"
895 setting.
896
897 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
900 * debug.h: Remove.
901 * infrun.c: Include gdbsupport/common-debug.h.
902 * linux-nat.c: Likewise.
903
904 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
905
906 * async-event.h (create_async_signal_handler): Add name
907 parameter.
908 (create_async_event_handler): Likewise.
909 * async-event.c (struct async_signal_handler) <name>: New field.
910 (struct async_event_handler) <name>: New field.
911 (create_async_signal_handler): Assign name.
912 (create_async_event_handler): Assign name.
913 * event-top.c (async_init_signals): Pass name when creating
914 handler.
915 * infrun.c (_initialize_infrun): Likewise.
916 * record-btrace.c (record_btrace_push_target): Likewise.
917 * record-full.c (record_full_open): Likewise.
918 * remote-notif.c (remote_notif_state_allocate): Likewise.
919 * remote.c (remote_target::open_1): Likewise.
920 * tui/tui-win.c (tui_initialize_win): Likewise.
921
922 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * async-event.c (initialize_async_signal_handlers): Pass name to
925 add_file_handler
926 * event-top.c (ui_register_input_event_handler): Likewise.
927 * linux-nat.c (linux_nat_target::async): Likewise.
928 * run-on-main-thread.c (_initialize_run_on_main_thread):
929 Likewise
930 * ser-base.c (reschedule): Likewise.
931 (ser_base_async): Likewise.
932 * tui/tui-io.c: Likewise.
933 * top.h (struct ui) <num>: New field.
934 * top.c (highest_ui_num): New variable.
935 (ui::ui): Initialize num.
936
937 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * observable.h <inferior_created>: Remove parameters. Update all
940 listeners.
941 * inferior.h (post_create_inferior): Remove target parameter.
942 Update all callers.
943
944 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
945
946 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
947 and DW_MACRO_undef_strx.
948 (dwarf_decode_macros): Likewise
949 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
950 which is the value of DW_AT_str_offsets_base.
951 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
952 str_offsets_base.
953
954 2020-10-01 Kamil Rytarowski <n54@gmx.com>
955
956 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
957
958 2020-10-01 Kamil Rytarowski <n54@gmx.com>
959
960 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
961 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
962
963 2020-10-01 Kamil Rytarowski <n54@gmx.com>
964
965 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
966
967 2020-09-30 Tom de Vries <tdevries@suse.de>
968
969 PR symtab/26683
970 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
971
972 2020-09-30 Tom Tromey <tromey@adacore.com>
973
974 * dwarf2/read.c (handle_variant): Use constant_value.
975
976 2020-09-29 Tom Tromey <tom@tromey.com>
977
978 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
979 (read_file_scope, dwarf2_get_pc_bounds)
980 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
981 (read_structure_type, handle_struct_member_die)
982 (read_enumeration_type, read_array_type, read_set_type)
983 (read_tag_pointer_type, read_tag_reference_type)
984 (read_subroutine_type, read_base_type, read_subrange_type)
985 (read_full_die_1, partial_die_info::read)
986 (partial_die_info::read, by, new_symbol)
987 (dwarf2_const_value_data, dwarf2_const_value_attr)
988 (dump_die_shallow, dwarf2_fetch_constant_bytes)
989 (prepare_one_comp_unit): Update.
990 * dwarf2/attribute.h (DW_UNSND): Remove.
991
992 2020-09-29 Tom Tromey <tom@tromey.com>
993
994 * dwarf2/read.c (read_func_scope, prototyped_function_p)
995 (read_subroutine_type, partial_die_info::read)
996 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
997 (dwarf2_add_member_fn): Update.
998 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
999 * dwarf2/attribute.c (attribute::as_boolean): New method.
1000
1001 2020-09-29 Tom Tromey <tom@tromey.com>
1002
1003 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1004 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1005 method.
1006 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1007
1008 2020-09-29 Tom Tromey <tom@tromey.com>
1009
1010 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1011 the attribute's form.
1012
1013 2020-09-29 Tom Tromey <tom@tromey.com>
1014
1015 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1016 (dwarf2_add_member_fn): Update.
1017 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1018 * dwarf2/attribute.c (attribute::defaulted): New method, from
1019 is_valid_DW_AT_defaulted.
1020
1021 2020-09-29 Tom Tromey <tom@tromey.com>
1022
1023 * dwarf2/read.c (dw2_get_file_names_reader)
1024 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1025 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1026 (dwarf2_symbol_mark_computed): Use as_unsigned.
1027 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1028 method.
1029 <form_is_section_offset>: Update comment.
1030
1031 2020-09-29 Tom Tromey <tom@tromey.com>
1032
1033 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1034 dwarf2_default_access_attribute. Look up attribute.
1035 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1036 Update.
1037
1038 2020-09-29 Tom Tromey <tom@tromey.com>
1039
1040 * dwarf2/read.c (skip_one_die): Update.
1041 (read_full_die_1): Change how reprocessing is done.
1042 (partial_die_info::read): Update.
1043 (read_attribute_value): Remove need_reprocess parameter.
1044 (read_attribute): Likewise.
1045 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1046 New method.
1047
1048 2020-09-29 Tom Tromey <tom@tromey.com>
1049
1050 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1051 (dwarf2_const_value_attr, dump_die_shallow)
1052 (dwarf2_fetch_constant_bytes): Update.
1053 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1054 comment.
1055 <set_address>: New method.
1056 (DW_ADDR): Remove.
1057 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1058 (attribute::as_string, attribute::as_address): Add assert.
1059
1060 2020-09-29 Tom Tromey <tom@tromey.com>
1061
1062 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1063 (read_attribute_reprocess, read_attribute_value): Update.
1064 (read_attribute): Clear requires_reprocessing.
1065 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1066 form_requires_reprocessing>: New methods.
1067 <string_init>: Clear requires_reprocessing.
1068 <set_unsigned_reprocess>: New method.
1069 <name>: Shrink by one bit.
1070 <requires_reprocessing>: New member.
1071 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1072 method.
1073
1074 2020-09-29 Tom Tromey <tom@tromey.com>
1075
1076 * dwarf2/read.c (read_attribute_value): Update.
1077 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1078 set_unsigned>: New methods.
1079 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1080
1081 2020-09-29 Tom Tromey <tom@tromey.com>
1082
1083 * dwarf2/read.c (get_alignment, read_array_order)
1084 (read_attribute_value, dwarf2_const_value_attr)
1085 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1086 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1087 New methods.
1088 (DW_SND): Remove.
1089
1090 2020-09-29 Tom Tromey <tom@tromey.com>
1091
1092 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1093 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1094 Update.
1095 * dwarf2/attribute.h (struct attribute) <as_signature,
1096 set_signature>: New methods.
1097 (DW_SIGNATURE): Remove.
1098
1099 2020-09-29 Tom Tromey <tom@tromey.com>
1100
1101 * dwarf2/read.c (read_call_site_scope)
1102 (handle_data_member_location, dwarf2_add_member_fn)
1103 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1104 (partial_die_info::read, read_attribute_value)
1105 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1106 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1107 (dwarf2_symbol_mark_computed): Update.
1108 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1109 methods.
1110 (DW_BLOCK): Remove.
1111 * dwarf2/attribute.c (attribute::form_is_block): Add
1112 DW_FORM_data16.
1113
1114 2020-09-29 Tom Tromey <tom@tromey.com>
1115
1116 * dwarf2/read.c (read_cutu_die_from_dwo)
1117 (read_attribute_reprocess, read_attribute_value, read_attribute)
1118 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1119 (dwarf2_fetch_constant_bytes): Update.
1120 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1121 <set_string_noncanonical, set_string_canonical>: New methods.
1122 <string_is_canonical>: Update comment.
1123 <canonical_string_p>: Add assert.
1124 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1125 * dwarf2/attribute.c (attribute::form_is_string): New method.
1126 (attribute::string): Use it.
1127
1128 2020-09-29 Tom Tromey <tom@tromey.com>
1129
1130 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1131 (dump_die_shallow): Use canonical_string_p.
1132 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1133 method.
1134
1135 2020-09-29 Tom Tromey <tom@tromey.com>
1136
1137 * dwarf2/read.c (partial_die_info::read)
1138 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1139 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1140 attribute::as_string.
1141
1142 2020-09-29 Tom Tromey <tom@tromey.com>
1143
1144 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1145 DW_ADDR.
1146 (attribute::string): Don't use DW_STRING.
1147 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1148 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1149
1150 2020-09-29 Tom Tromey <tom@tromey.com>
1151
1152 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1153 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1154 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1155 * dwarf2/attribute.h (struct attribute): Rename methods.
1156 * dwarf2/attribute.c (attribute::as_address): Rename from
1157 value_as_address.
1158 (attribute::as_string): Rename from value_as_string.
1159
1160 2020-09-29 Tom Tromey <tom@tromey.com>
1161
1162 * dwarf2/read.c (partial_die_info::read) <case
1163 DW_AT_linkage_name>: Use value_as_string.
1164 (dwarf2_string_attr): Use value_as_string.
1165 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1166 method.
1167 * dwarf2/attribute.c (attribute::value_as_string): New method.
1168
1169 2020-09-29 Pedro Alves <pedro@palves.net>
1170
1171 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1172 defined before using '#pragma GCC diagnostic' instead of checking
1173 __clang__.
1174
1175 2020-09-28 Tom Tromey <tom@tromey.com>
1176
1177 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1178 (handle_signal_stop): Update.
1179 * procfs.c (procfs_target::insert_watchpoint): Update.
1180 * target.h (target_have_steppable_watchpoint): Now a function.
1181
1182 2020-09-28 Tom Tromey <tom@tromey.com>
1183
1184 * infrun.c (set_schedlock_func): Update.
1185 * target.h (target_can_lock_scheduler): Now a function.
1186
1187 2020-09-28 Tom Tromey <tom@tromey.com>
1188
1189 * inferior.h (class inferior) <has_execution>: Update.
1190 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1191 * valops.c (find_function_in_inferior)
1192 (value_allocate_space_in_inferior): Update.
1193 * top.c (kill_or_detach): Update.
1194 * target.c (target_preopen, set_target_permissions): Update.
1195 (target_has_execution_current): Remove.
1196 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1197 Update.
1198 * solib.c (update_solib_list, reload_shared_libraries): Update.
1199 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1200 * solib-dsbt.c (enable_break): Update.
1201 * score-tdep.c (score7_fetch_inst): Update.
1202 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1203 Update.
1204 * remote.c (remote_target::start_remote)
1205 (remote_target::remote_check_symbols, remote_target::open_1)
1206 (remote_target::remote_detach_1, remote_target::verify_memory)
1207 (remote_target::xfer_partial, remote_target::read_description)
1208 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1209 * record-full.c (record_full_open_1): Update.
1210 * record-btrace.c (record_btrace_target_open): Update.
1211 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1212 (value_nsstring): Update.
1213 * linux-thread-db.c (add_thread_db_info)
1214 (thread_db_find_new_threads_silently, check_thread_db_callback)
1215 (try_thread_db_load_1, record_thread): Update.
1216 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1217 Update.
1218 * linux-fork.c (checkpoint_command): Update.
1219 * infrun.c (set_non_stop, set_observer_mode)
1220 (check_multi_target_resumption, for_each_just_stopped_thread)
1221 (maybe_remove_breakpoints, normal_stop)
1222 (class infcall_suspend_state): Update.
1223 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1224 (info_program_command, attach_command): Update.
1225 * infcall.c (call_function_by_hand_dummy): Update.
1226 * inf-loop.c (inferior_event_handler): Update.
1227 * gcore.c (gcore_command, derive_heap_segment): Update.
1228 * exec.c (exec_file_command): Update.
1229 * eval.c (evaluate_subexp): Update.
1230 * compile/compile.c (compile_to_object): Update.
1231 * cli/cli-dump.c (restore_command): Update.
1232 * breakpoint.c (update_watchpoint)
1233 (update_inserted_breakpoint_locations)
1234 (insert_breakpoint_locations, get_bpstat_thread): Update.
1235 * target.h (target_has_execution): Remove macro.
1236 (target_has_execution_current): Don't declare.
1237 (target_has_execution): Rename from target_has_execution_1. Add
1238 argument default.
1239
1240 2020-09-28 Tom Tromey <tom@tromey.com>
1241
1242 * mi/mi-main.c (exec_reverse_continue)
1243 (mi_cmd_list_target_features): Update.
1244 * infrun.c (set_exec_direction_func): Update.
1245 * target.c (default_execution_direction): Update.
1246 * reverse.c (exec_reverse_once): Update.
1247 * target.h (target_can_execute_reverse): Now a function.
1248
1249 2020-09-28 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-regs.c (tui_get_register)
1252 (tui_data_window::show_registers): Update.
1253 * thread.c (scoped_restore_current_thread::restore)
1254 (scoped_restore_current_thread::scoped_restore_current_thread):
1255 Update.
1256 * regcache-dump.c (regcache_print): Update.
1257 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1258 Update.
1259 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1260 * mep-tdep.c (current_me_module, current_options): Update.
1261 * linux-thread-db.c (thread_db_load): Update.
1262 * infcmd.c (registers_info, info_vector_command)
1263 (info_float_command): Update.
1264 * ia64-tdep.c (ia64_frame_prev_register)
1265 (ia64_sigtramp_frame_prev_register): Update.
1266 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1267 * gcore.c (derive_stack_segment): Update.
1268 * frame.c (get_current_frame, has_stack_frames): Update.
1269 * findvar.c (language_defn::read_var_value): Update.
1270 * arm-tdep.c (arm_pc_is_thumb): Update.
1271 * target.c (target_has_registers): Rename from
1272 target_has_registers_1.
1273 * target.h (target_has_registers): Remove macro.
1274 (target_has_registers): Rename from target_has_registers_1.
1275
1276 2020-09-28 Tom Tromey <tom@tromey.com>
1277
1278 * windows-tdep.c (tlb_make_value): Update.
1279 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1280 * thread.c (scoped_restore_current_thread::restore)
1281 (scoped_restore_current_thread::scoped_restore_current_thread)
1282 (thread_command): Update.
1283 * stack.c (backtrace_command_1, frame_apply_level_command)
1284 (frame_apply_all_command, frame_apply_command): Update.
1285 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1286 Update.
1287 * gcore.c (derive_stack_segment): Update.
1288 * frame.c (get_current_frame, has_stack_frames): Update.
1289 * auxv.c (info_auxv_command): Update.
1290 * ada-tasks.c (ada_build_task_list): Update.
1291 * target.c (target_has_stack): Rename from target_has_stack_1.
1292 * target.h (target_has_stack): Remove macro.
1293 (target_has_stack): Rename from target_has_stack_1.
1294
1295 2020-09-28 Tom Tromey <tom@tromey.com>
1296
1297 * target.c (target_has_memory): Rename from target_has_memory_1.
1298 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1299 * thread.c (scoped_restore_current_thread::restore)
1300 (scoped_restore_current_thread::scoped_restore_current_thread):
1301 Update.
1302 * frame.c (get_current_frame, has_stack_frames): Update.
1303 * target.h (target_has_memory): Remove macro.
1304 (target_has_memory): Rename from target_has_memory_1.
1305
1306 2020-09-28 Tom Tromey <tom@tromey.com>
1307
1308 * target.c (target_has_all_memory_1): Remove.
1309 * target.h (target_has_all_memory): Remove define.
1310 (target_has_all_memory_1): Don't declare.
1311
1312 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1313
1314 * ser-base.c: Adjust comments formatting.
1315
1316 2020-09-27 Tom Tromey <tom@tromey.com>
1317
1318 PR tui/25342:
1319 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1320
1321 2020-09-27 Tom Tromey <tom@tromey.com>
1322
1323 PR tui/25342:
1324 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1325
1326 2020-09-27 Tom Tromey <tom@tromey.com>
1327
1328 * unittests/tui-selftests.c: Update.
1329 * tui/tui-winsource.h (struct tui_source_window_base)
1330 <extra_margin, show_line_number, refresh_pad>: New methods.
1331 <m_max_length, m_pad>: New members.
1332 (tui_copy_source_line): Update.
1333 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1334 first_col, line_width, ndigits parameters. Add length.
1335 (tui_source_window_base::show_source_line): Write to pad. Line
1336 number now 0-based.
1337 (tui_source_window_base::refresh_pad): New method.
1338 (tui_source_window_base::show_source_content): Write to pad. Call
1339 refresh_pad.
1340 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1341 not refill.
1342 (tui_source_window_base::update_exec_info): Call
1343 show_line_number.
1344 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1345 method.
1346 <m_digits>: New member.
1347 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1348 and m_max_length.
1349 (tui_source_window::show_line_number): New method.
1350 * tui/tui-io.h (tui_puts): Fix comment.
1351 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1352 m_max_length.
1353
1354 2020-09-27 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-winsource.c
1357 (tui_source_window_base::set_is_exec_point_at): Don't call
1358 show_source_line.
1359
1360 2020-09-27 Tom Tromey <tom@tromey.com>
1361
1362 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1363 method.
1364 <erase>: Update.
1365 <cursor_x, cursor_y>: Remove.
1366 <m_inner_window>: New member.
1367 (tui_py_window::rerender): Create inner window.
1368 (tui_py_window::output): Write to inner window.
1369
1370 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1371
1372 PR python/26586
1373 * cli/cli-script.c (execute_control_commands): don't set
1374 instream to nullptr here as this breaks the from_tty argument
1375 to gdb.execute in Python.
1376 (execute_user_command): set instream to nullptr here instead.
1377
1378 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * infrun.h (infrun_debug_printf): Fix formatting.
1381 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1382
1383 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1384
1385 * compile/compile-object-load.h (struct munmap_list): Add
1386 explicitly-defined move constructor.
1387
1388 2020-09-24 Tom Tromey <tromey@adacore.com>
1389
1390 PR tui/26638:
1391 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1392 method.
1393 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1394 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1395 (tui_prev_win): Rewrite.
1396
1397 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1398
1399 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1400 in WOW64 processes as SIGINT.
1401 * nat/windows-nat.h: Make wow64_process a shared variable.
1402 * windows-nat.c: Remove static wow64_process variable.
1403
1404 2020-09-23 Tom Tromey <tom@tromey.com>
1405
1406 PR symtab/25470:
1407 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1408 offset and bit size.
1409 * printcmd.c (print_scalar_formatted): Handle zero-length
1410 integer.
1411 (print_scalar_formatted): Use bit_size_differs_p.
1412 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1413 constant.
1414 (union type_specific): <int_stuff>: New member.
1415 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1416 methods.
1417 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1418 TYPE_SPECIFIC_FIELD.
1419 (recursive_dump_type, copy_type_recursive): Update.
1420 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1421 DW_AT_data_bit_offset.
1422
1423 2020-09-23 Tom Tromey <tom@tromey.com>
1424
1425 * utils.h (class gdb_argv): Add move operators.
1426 <append>: New methods.
1427 * compile/compile.c (build_argc_argv): Remove.
1428 (compile_args_argc): Remove.
1429 (compile_args_argv): Change type.
1430 (set_compile_args): Simplify.
1431 (append_args): Remove.
1432 (filter_args): Remove argcp parameter.
1433 (get_args): Return gdb_argv. Simplify.
1434 (compile_to_object): Update.
1435
1436 2020-09-23 Tom Tromey <tom@tromey.com>
1437
1438 * compile/compile-object-run.c (do_module_cleanup)
1439 <~do_module_cleanup> :Remove.
1440 (do_module_cleanup): Update.
1441 * compile/compile-object-load.h (struct munmap_list): Add move
1442 assignment operator.
1443 <source_file>: Now a std::string.
1444 <munmap_list>: Rename. No longer a pointer.
1445 * compile/compile-object-load.c (struct setup_sections_data): Add
1446 constructor.
1447 <setup_one_section>: Declare.
1448 <munmap_list>: Move earlier.
1449 <m_bfd>: New member.
1450 <m_last_size, m_last_section_first, m_last_prot,
1451 m_last_max_alignment>: Rename, add initializers where needed.
1452 (setup_sections_data::setup_one_section): Rename from
1453 setup_sections. Update.
1454 (compile_object_load): Update. Don't use bfd_map_over_sections.
1455
1456 2020-09-23 Tom Tromey <tom@tromey.com>
1457
1458 * compile/compile-object-run.c (struct do_module_cleanup): Add
1459 parameters to constructor. Update destructor.
1460 <source_file, scope, scope_data, out_value_type, out_value_addr,
1461 munmap_list_head, objfile_name_string>: Remove.
1462 <module>: New member.
1463 (do_module_cleanup): Update.
1464 (compile_object_run): Update.
1465
1466 2020-09-23 Tom Tromey <tom@tromey.com>
1467
1468 * compile/compile.c (eval_compile_command): Update.
1469 * compile/compile-object-run.h (compile_object_run): Take a
1470 compile_module_up.
1471 * compile/compile-object-run.c (compile_object_run): Take a
1472 compile_module_up.
1473 * compile/compile-object-load.h (struct compile_module): Add
1474 constructor, destructor.
1475 (compile_module_up): New typedef.
1476 (compile_object_load): Return compile_object_up.
1477 * compile/compile-object-load.c (compile_object_load): Return
1478 compile_module_up.
1479
1480 2020-09-23 Tom Tromey <tom@tromey.com>
1481
1482 * compile/compile-object-run.c (struct do_module_cleanup): Add
1483 constructor, destructor.
1484 <objfile_name_string>: Don't use struct hack.
1485 (do_module_cleanup): Use delete.
1486 (compile_object_run): Use new.
1487
1488 2020-09-23 Tom Tromey <tom@tromey.com>
1489
1490 * compile/compile-cplus-types.c
1491 (compile_cplus_convert_struct_or_union): Use std::vector.
1492 (compile_cplus_convert_func): Likewise.
1493 * compile/compile-c-types.c (convert_func): Use std::vector.
1494
1495 2020-09-21 Tom Tromey <tromey@adacore.com>
1496
1497 * sparc-tdep.c (sparc32_skip_prologue): Use
1498 skip_prologue_using_sal.
1499
1500 2020-09-19 Tom Tromey <tom@tromey.com>
1501
1502 * symfile.c (add_section_size_callback): Remove.
1503 (load_one_section): Rename from load_section_callback. Change
1504 parameters.
1505 (generic_load): Use foreach.
1506
1507 2020-09-19 Tom Tromey <tom@tromey.com>
1508
1509 * exec.c (add_to_section_table): Remove.
1510 (build_section_table): Use foreach.
1511
1512 2020-09-19 Tom Tromey <tom@tromey.com>
1513
1514 * elfread.c (elf_locate_sections): Change parameters.
1515 (elf_symfile_read): Use foreach.
1516
1517 2020-09-19 Tom Tromey <tom@tromey.com>
1518
1519 * cli/cli-dump.c (struct callback_data): Remove.
1520 (restore_one_section): Rename from restore_section_callback.
1521 Change parameters.
1522 (restore_binary_file): Change parameters.
1523 (restore_command): Use foreach.
1524
1525 2020-09-19 Tom Tromey <tom@tromey.com>
1526
1527 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1528 (gcore_copy_callback): Likewise.
1529 (gcore_memory_sections): Use foreach.
1530
1531 2020-09-19 Tom Tromey <tom@tromey.com>
1532
1533 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1534 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1535 parameters.
1536 (generic_elf_osabi_sniffer): Use foreach.
1537 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1538 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1539
1540 2020-09-19 Tom Tromey <tom@tromey.com>
1541
1542 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1543 (dwarf2_get_dwz_file): Use foreach.
1544 (dwarf2_locate_dwo_sections): Change parameters.
1545 (open_and_init_dwo_file): Use foreach.
1546 (dwarf2_locate_common_dwp_sections): Change parameters.
1547 (open_and_init_dwp_file): Use foreach.
1548
1549 2020-09-19 Tom Tromey <tom@tromey.com>
1550
1551 * symfile.h: (find_lowest_section): Don't declare.
1552 * symfile.c (find_lowest_section): Now static. Change
1553 parameters.
1554 (struct place_section_arg): Remove.
1555 (place_section): Change parameters.
1556 (addr_info_make_relative): Use foreach.
1557 (symfile_dummy_outputs): Remove.
1558 (default_symfile_relocate): Use foreach.
1559
1560 2020-09-19 Tom Tromey <tom@tromey.com>
1561
1562 * objfiles.c (add_to_objfile_sections): Rename from
1563 add_to_objfile_sections_full.
1564 (add_to_objfile_sections): Remove.
1565 (build_objfile_section_table): Use foreach.
1566
1567 2020-09-19 Tom Tromey <tom@tromey.com>
1568
1569 * stap-probe.c (get_stap_base_address_1): Remove.
1570 (get_stap_base_address): Use foreach.
1571
1572 2020-09-19 Tom Tromey <tom@tromey.com>
1573
1574 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1575 parameters.
1576 (gdb_bfd_close_or_warn): Use foreach.
1577
1578 2020-09-19 Tom Tromey <tom@tromey.com>
1579
1580 * corelow.c (add_to_thread_list): Change parameters.
1581 (core_target_open): Use foreach.
1582
1583 2020-09-19 Tom Tromey <tom@tromey.com>
1584
1585 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1586 existing function.
1587
1588 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1591 for arrays.
1592
1593 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * eval.c: Remove 'f-lang.h' include.
1596 (value_f90_subarray): Moved to f-lang.c.
1597 (eval_call): Renamed to...
1598 (evaluate_subexp_do_call): ...this, is no longer static, header
1599 comment moved into header file.
1600 (evaluate_funcall): Update call to eval_call.
1601 (skip_undetermined_arglist): Moved to f-lang.c.
1602 (fortran_value_subarray): Likewise.
1603 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1604 moved to evaluate_subexp_f.
1605 (calc_f77_array_dims): Moved to f-lang.c
1606 * expprint.c (print_subexp_funcall): New function.
1607 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1608 moved to print_subexp_f, OP_FUNCALL uses new function.
1609 (dump_subexp_body_funcall): New function.
1610 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1611 moved to dump_subexp_f, OP_FUNCALL uses new function.
1612 * expression.h (evaluate_subexp_do_call): Declare.
1613 * f-lang.c (value_f90_subarray): Moved from eval.c.
1614 (skip_undetermined_arglist): Likewise.
1615 (calc_f77_array_dims): Likewise.
1616 (fortran_value_subarray): Likewise.
1617 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1618 (operator_length_f): Likewise.
1619 (print_subexp_f): Likewise.
1620 (dump_subexp_body_f): Likewise.
1621 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1622 declaration of this operation to here.
1623 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1624 support moved to operator_length_f.
1625 * parser-defs.h (dump_subexp_body_funcall): Declare.
1626 (print_subexp_funcall): Declare.
1627 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1628 fortran-operator.def.
1629
1630 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1631
1632 * eval.c (fortran_value_subarray): New function, content is taken
1633 from...
1634 (evaluate_subexp_standard): ...here, in two places. Now arrays
1635 and strings both call the new function.
1636 (calc_f77_array_dims): Add header comment, handle strings.
1637
1638 2020-09-18 Victor Collod <vcollod@nvidia.com>
1639
1640 PR gdb/26635
1641 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1642 (i386_analyze_prologue): Call i386_skip_endbr.
1643
1644 2020-09-18 Tom Tromey <tromey@adacore.com>
1645
1646 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1647 (windows_nat_target::wait): Update.
1648 * target/wait.h (enum target_wait_flag): New. Use
1649 DEF_ENUM_FLAGS_TYPE.
1650 * target/target.h (target_wait): Change type of options.
1651 * target.h (target_options_to_string, default_target_wait):
1652 Update.
1653 (struct target_ops) <wait>: Change type of options.
1654 * target.c (target_wait, default_target_wait, do_option): Change
1655 type of "options".
1656 (target_options_to_string): Likewise.
1657 * target-delegates.c: Rebuild.
1658 * target-debug.h (target_debug_print_target_wait_flags): Rename
1659 from target_debug_print_options.
1660 * sol-thread.c (class sol_thread_target) <wait>: Update.
1661 (sol_thread_target::wait): Update.
1662 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1663 (rs6000_nat_target::wait): Update.
1664 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1665 Update.
1666 (remote_target::wait_ns, remote_target::wait_as): Change type of
1667 "options".
1668 (remote_target::wait): Update.
1669 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1670 (gdbsim_target::wait): Update.
1671 * record-full.c (class record_full_base_target) <wait>: Update.
1672 (record_full_wait_1): Change type of "options".
1673 (record_full_base_target::wait): Update.
1674 * record-btrace.c (class record_btrace_target) <wait>: Update.
1675 (record_btrace_target::wait): Update.
1676 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1677 Update.
1678 (ravenscar_thread_target::wait): Update.
1679 * procfs.c (class procfs_target) <wait>: Update.
1680 (procfs_target::wait): Update.
1681 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1682 * obsd-nat.c (obsd_nat_target::wait): Update.
1683 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1684 (nto_procfs_target::wait): Update.
1685 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1686 * nbsd-nat.c (nbsd_wait): Change type of "options".
1687 (nbsd_nat_target::wait): Update.
1688 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1689 (thread_db_target::wait): Update.
1690 * linux-nat.h (class linux_nat_target) <wait>: Update.
1691 * linux-nat.c (linux_nat_target::wait): Update.
1692 (linux_nat_wait_1): Update.
1693 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1694 "options".
1695 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1696 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1697 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1698 (go32_nat_target::wait): Update.
1699 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1700 * gnu-nat.c (gnu_nat_target::wait): Update.
1701 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1702 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1703 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1704 * darwin-nat.c (darwin_nat_target::wait): Update.
1705 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1706 (bsd_uthread_target::wait): Update.
1707 * aix-thread.c (class aix_thread_target) <wait>: Update.
1708 (aix_thread_target::wait): Update.
1709
1710 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * compile/compile-object-run.c (create_copied_type_recursive): New
1713 function.
1714 (compile_object_run): Use new function.
1715
1716 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1717
1718 * NEWS: Mention x86_64 Cygwin core file support.
1719
1720 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1721
1722 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1723 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1724
1725 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1726
1727 * windows-tdep.h: Add prototypes.
1728 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1729 (i386_windows_core_pid_to_str): Move and rename ...
1730 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1731 (windows_core_pid_to_str): ... and here.
1732 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1733
1734 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1735 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1736 (amd64_windows_init_abi_common): ... and register.
1737
1738 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1739
1740 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1741 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1742
1743 2020-09-18 Pedro Alves <pedro@palves.net>
1744
1745 PR gdb/26631
1746 * thread.c (thread_find_command): Switch inferior before calling
1747 target methods.
1748
1749 2020-09-17 Tom Tromey <tromey@adacore.com>
1750
1751 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1752 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1753 (tdesc_arch_data_up): New typedef.
1754 (tdesc_use_registers, tdesc_data_alloc): Update.
1755 (tdesc_data_cleanup): Don't declare.
1756 * target-descriptions.c (tdesc_data_alloc): Return a
1757 tdesc_arch_data_up.
1758 (tdesc_arch_data_deleter::operator()): Rename from
1759 tdesc_data_cleanup. Change argument type.
1760 (tdesc_use_registers): Change early_data to an rvalue reference.
1761 (tdesc_use_registers): Don't use delete.
1762 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1763 * s390-tdep.c (s390_gdbarch_init): Update.
1764 * rx-tdep.c (rx_gdbarch_init): Update.
1765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1766 * riscv-tdep.c (riscv_gdbarch_init): Update.
1767 * or1k-tdep.c (or1k_gdbarch_init): Update.
1768 * nios2-tdep.c (nios2_gdbarch_init): Update.
1769 * nds32-tdep.c (nds32_gdbarch_init): Update.
1770 * mips-tdep.c (mips_gdbarch_init): Update.
1771 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1772 * m68k-tdep.c (m68k_gdbarch_init): Update.
1773 * i386-tdep.c (i386_gdbarch_init): Update.
1774 * arm-tdep.c (arm_gdbarch_init): Update.
1775 * arc-tdep.c (arc_tdesc_init): Update.
1776 (arc_gdbarch_init): Update.
1777 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1778
1779 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1780
1781 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1782 for WOW64 processes.
1783
1784 2020-09-17 Tom Tromey <tom@tromey.com>
1785
1786 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1787
1788 2020-09-17 Tom Tromey <tom@tromey.com>
1789
1790 * value.c (preserve_values): Update.
1791 * python/py-type.c (save_objfile_types): Update.
1792 * guile/scm-type.c (save_objfile_types): Update.
1793 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1794 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1795 * compile/compile-object-run.c (compile_object_run): Update.
1796
1797 2020-09-17 Tom Tromey <tom@tromey.com>
1798
1799 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1800 Remove.
1801 <m_table>: Now htab_up.
1802 * typeprint.c (typedef_hash_table::recursively_update)
1803 (typedef_hash_table::add_template_parameters)
1804 (typedef_hash_table::typedef_hash_table): Update.
1805 (typedef_hash_table::~typedef_hash_table): Remove.
1806 (typedef_hash_table::typedef_hash_table)
1807 (typedef_hash_table::find_global_typedef)
1808 (typedef_hash_table::find_typedef): Update.
1809
1810 2020-09-17 Tom Tromey <tom@tromey.com>
1811
1812 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1813
1814 2020-09-17 Tom Tromey <tom@tromey.com>
1815
1816 * linespec.c (class decode_compound_collector)
1817 <~decode_compound_collector>: Remove.
1818 <m_unique_syms>: Now htab_up.
1819 (decode_compound_collector::operator ()): Update.
1820 (class symtab_collector) <~symtab_collector>: Remove.
1821 <m_symtab_table>: Now htab_up.
1822 (symtab_collector::operator ()): Update.
1823
1824 2020-09-17 Tom Tromey <tom@tromey.com>
1825
1826 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1827 (filename_seen_cache::clear): Update.
1828 (~filename_seen_cache): Remove.
1829 (filename_seen_cache::seen): Update.
1830 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1831 htab_up.
1832 <~filename_seen_cache>: Remove.
1833 <traverse>: Update.
1834
1835 2020-09-17 Tom Tromey <tom@tromey.com>
1836
1837 * completer.c (completion_tracker::discard_completions)
1838 (completion_tracker::~completion_tracker)
1839 (completion_tracker::maybe_add_completion)
1840 (completion_tracker::remove_completion)
1841 (completion_tracker::recompute_lowest_common_denominator)
1842 (completion_tracker::build_completion_result): Update.
1843 * completer.h (class completion_tracker) <have_completions>:
1844 Update.
1845 <m_entries_hash>: Now htab_up.
1846
1847 2020-09-17 Tom Tromey <tom@tromey.com>
1848
1849 * breakpoint.c (ambiguous_names_p): Use htab_up.
1850
1851 2020-09-17 Tom Tromey <tom@tromey.com>
1852
1853 * auto-load.c (struct auto_load_pspace_info)
1854 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1855 <loaded_script_files, loaded_script_texts>: Change type to
1856 htab_up.
1857 (~auto_load_pspace_info) Remove.
1858 (init_loaded_scripts_info, maybe_add_script_file)
1859 (maybe_add_script_text, auto_load_info_scripts): Update.
1860
1861 2020-09-17 Tom Tromey <tromey@adacore.com>
1862
1863 * c-exp.y (name_obstack): Now static.
1864
1865 2020-09-17 Chungyi Chi <demonic@csie.io>
1866
1867 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1868
1869 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1872 (add_solib_catchpoint): Likewise.
1873 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1874 to bool.
1875 (add_solib_catchpoint): Change int parameter/variable to bool.
1876 (catch_load_or_unload): Likewise.
1877 (init_catchpoint): Likewise.
1878 (create_fork_vfork_event_catchpoint): Likewise.
1879 (catch_fork_command_1): Likewise.
1880 (catch_exec_command_1): Likewise.
1881
1882 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1885 Change instance_flags to m_instance_flags.
1886
1887 2020-09-16 Tom Tromey <tromey@adacore.com>
1888
1889 PR gdb/26598:
1890 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1891
1892 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1893
1894 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1895 PL_FLAG_EXEC.
1896 (fbsd_nat_target::insert_exec_catchpoint)
1897 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1898 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1899 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1900
1901 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1902
1903 * configure.ac: Remove check for kinfo_getvmmap().
1904 * configure, config.in: Regenerate.
1905 * fbsd-nat.c (fbsd_read_mapping): Remove
1906 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1907 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1908 kinfo_get_vmmap() are always present.
1909
1910 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1911
1912 * fbsd-nat.c: Always include support for
1913 TARGET_OBJECT_SIGNAL_INFO.
1914
1915 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1916
1917 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1918 sysctl and remove procfs fallback.
1919
1920 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1921
1922 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1923 * fbsd-nat.h: Likewise.
1924
1925 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1926
1927 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1928 argument.
1929
1930 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * ada-lang.c (ada_language_data): Delete.
1933 (ada_language): Remove references to ada_language_data.
1934 * c-lang.c (c_language_data): Delete.
1935 (c_language): Remove references to c_language_data.
1936 (cplus_language_data): Delete.
1937 (cplus_language): Remove references to cplus_language_data.
1938 (asm_language_data): Delete.
1939 (asm_language): Remove references to asm_language_data.
1940 (minimal_language_data): Delete.
1941 (minimal_language): Remove references to minimal_language_data.
1942 * d-lang.c (d_language_data): Delete.
1943 (d_language): Remove references to d_language_data.
1944 * f-lang.c (f_language_data): Delete.
1945 (f_language): Remove references to f_language_data.
1946 * go-lang.c (go_language_data): Delete.
1947 (go_language): Remove references to go_language_data.
1948 * language.c (unknown_language_data): Delete.
1949 (unknown_language): Remove references to unknown_language_data.
1950 (auto_language_data): Delete.
1951 (auto_language): Remove references to auto_language_data.
1952 * language.h (language_data): Delete struct.
1953 (language_defn): No longer inherit from language_data.
1954 * m2-lang.c (m2_language_data): Delete.
1955 (m2_language): Remove references to m2_language_data.
1956 * objc-lang.c (objc_language_data): Delete.
1957 (objc_language): Remove references to objc_language_data.
1958 * opencl-lang.c (opencl_language_data): Delete.
1959 (opencl_language): Remove references to opencl_language_data.
1960 * p-lang.c (pascal_language_data): Delete.
1961 (pascal_language): Remove references to pascal_language_data.
1962 * rust-lang.c (rust_language_data): Delete.
1963 (rust_language): Remove references to rust_language_data.
1964
1965 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1968 initializer.
1969 (ada_language::opcode_print_table): New member function.
1970 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1971 (c_language::opcode_print_table): New member function.
1972 (cplus_language_data): Remove la_op_print_tab initializer.
1973 (cplus_language::opcode_print_table): New member function.
1974 (asm_language_data): Remove la_op_print_tab initializer.
1975 (asm_language::opcode_print_table): New member function.
1976 (minimal_language_data): Remove la_op_print_tab initializer.
1977 (minimal_language::opcode_print_table): New member function.
1978 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1979 (d_language::opcode_print_table): New member function.
1980 * expprint.c (print_subexp_standard): Update call to
1981 opcode_print_table.
1982 (op_string): Likewise.
1983 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1984 (f_language::opcode_print_table): New member function.
1985 * go-lang.c (go_language_data): Remove la_op_print_tab
1986 initializer.
1987 (go_language::opcode_print_table): New member function.
1988 * language.c (unknown_language_data): Remove la_op_print_tab
1989 initializer.
1990 (unknown_language::opcode_print_table): New member function.
1991 (auto_language_data): Remove la_op_print_tab initializer.
1992 (auto_language::opcode_print_table): New member function.
1993 * language.h (language_data): Remove la_op_print_tab field.
1994 (language_defn::opcode_print_table): Declare new member function.
1995 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1996 initializer.
1997 (m2_language::opcode_print_table): New member function.
1998 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1999 initializer.
2000 (objc_language::opcode_print_table): New member function.
2001 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2002 initializer.
2003 (opencl_language::opcode_print_table): New member function.
2004 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2005 initializer.
2006 (pascal_language::opcode_print_table): New member function.
2007 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2008 initializer.
2009 (rust_language::opcode_print_table): New member function.
2010
2011 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2014 (ada_language::expression_ops): New member function.
2015 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2016 (c_language::expression_ops): New member function.
2017 (cplus_language_data): Remove la_exp_desc initializer.
2018 (cplus_language::expression_ops): New member function.
2019 (asm_language_data): Remove la_exp_desc initializer.
2020 (asm_language::expression_ops): New member function.
2021 (minimal_language_data): Remove la_exp_desc initializer.
2022 (minimal_language::expression_ops): New member function.
2023 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2024 (d_language::expression_ops): New member function.
2025 * eval.c (evaluate_subexp): Update call to expression_ops.
2026 * expprint.c (print_subexp): Likewise.
2027 (op_name): Likewise.
2028 (dump_subexp_body): Likewise.
2029 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2030 (f_language::expression_ops): New member function.
2031 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2032 (go_language::expression_ops): New member function.
2033 * language.c (language_defn::expression_ops): New function.
2034 (unknown_language_data): Remove la_exp_desc initializer.
2035 (auto_language_data): Likewise.
2036 * language.h (language_data): Remove la_exp_desc field.
2037 (language_defn::expression_ops): Declare new member function.
2038 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2039 (m2_language::expression_ops): New member function.
2040 * objc-lang.c (objc_language_data): Remove la_exp_desc
2041 initializer.
2042 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2043 initializer.
2044 (opencl_language::expression_ops): New member function.
2045 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2046 * parse.c (operator_length): Update call to expression_ops.
2047 (exp_iterate): Likewise.
2048 * rust-lang.c (rust_language_data): Remove la_exp_desc
2049 initializer.
2050 (ruse_language::expression_ops): New member function.
2051
2052 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2055 initializer.
2056 (ada_language::varobj_ops): New member function.
2057 * c-lang.c (c_language_data): Remove la_varobj_ops
2058 initializer.
2059 (cplus_language_data): Likewise.
2060 (cplus_language::varobj_ops): New member function.
2061 (asm_language_data): Remove la_varobj_ops initializer.
2062 (minimal_language_data): Likewise.
2063 * d-lang.c (d_language_data): Likewise.
2064 * f-lang.c (f_language_data): Likewise.
2065 * go-lang.c (go_language_data): Likewise.
2066 * language.c (language_defn::varobj_ops): New function.
2067 (unknown_language_data): Remove la_varobj_ops
2068 initializer.
2069 (auto_language_data): Likewise.
2070 * language.h (language_data): Remove la_varobj_ops field.
2071 (language_defn::varobj_ops): Declare new member function.
2072 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2073 * objc-lang.c (objc_language_data): Likewise.
2074 * opencl-lang.c (opencl_language_data): Likewise.
2075 * p-lang.c (pascal_language_data): Likewise.
2076 * rust-lang.c (rust_language_data): Likewise.
2077 * varobj.c (varobj_create): Update call to varobj_ops.
2078 * varobj.h (default_varobj_ops): Delete define.
2079
2080 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2083 initializer.
2084 * c-lang.c (c_language_data): Likewise.
2085 (c_language::macro_expansion): New member function.
2086 (cplus_language_data): Likewise.
2087 (cplus_language::macro_expansion): New member function.
2088 (asm_language_data): Likewise.
2089 (asm_language::macro_expansion): New member function.
2090 (minimal_language_data): Likewise.
2091 (minimal_language::macro_expansion): New member function.
2092 * d-lang.c (d_language_data): Remove la_macro_expansion
2093 initializer.
2094 * f-lang.c (f_language_data): Likewise.
2095 * go-lang.c (go_language_data): Likewise.
2096 * language.c (unknown_language_data): Likewise.
2097 (auto_language_data): Likewise.
2098 * language.h (language_data): Remove la_macro_expansion field.
2099 (language_defn::macro_expansion): New member function.
2100 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2101 initializer.
2102 * objc-lang.c (objc_language_data): Likewise.
2103 (objc_language::macro_expansion): New member function.
2104 * opencl-lang.c (opencl_language_data): Likewise.
2105 (opencl_language::macro_expansion): New member function.
2106 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2107 initializer.
2108 * rust-lang.c (rust_language_data): Likewise.
2109 * symtab.c (default_collect_symbol_completion_matches_break_on):
2110 Update call to macro_expansion.
2111
2112 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * ada-lang.c (ada_language_data): Remove la_array_ordering
2115 initializer.
2116 * c-lang.c (c_language_data): Likewise.
2117 (cplus_language_data): Likewise.
2118 (asm_language_data): Likewise.
2119 (minimal_language_data): Likewise.
2120 * d-lang.c (d_language_data): Likewise.
2121 * dwarf2/read.c (read_array_order): Update for call to
2122 array_ordering.
2123 * f-lang.c (f_language_data): Remove la_array_ordering
2124 initializer.
2125 (f_language::array_ordering): New member function.
2126 * go-lang.c (go_language_data): Remove la_array_ordering
2127 initializer.
2128 * language.c (unknown_language_data): Likewise.
2129 (auto_language_data): Likewise.
2130 * language.h (language_data): Delete la_array_ordering field.
2131 (language_defn::array_ordering): New member function.
2132 * m2-lang.c (m2_language_data): Remove la_array_ordering
2133 initializer.
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138
2139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2142 initializer.
2143 * c-lang.c (c_language_data): Likewise.
2144 (cplus_language_data): Likewise.
2145 (asm_language_data): Likewise.
2146 (minimal_language_data): Likewise.
2147 * d-lang.c (d_language_data): Likewise.
2148 * f-lang.c (f_language_data): Likewise.
2149 (f_language::case_sensitivity): New member function.
2150 * go-lang.c (go_language_data): Remove la_case_sensitivity
2151 initializer.
2152 * language.c (enum case_mode): Moved here from language.h.
2153 (case_mode): Make static.
2154 (show_case_command): Update for case_sensitivity being a method.
2155 (set_case_command): Likewise.
2156 (set_range_case): Likewise.
2157 (unknown_language_data): Remove la_case_sensitivity initializer.
2158 (auto_language_data): Likewise.
2159 * language.h (case_mode): Delete, move enum declaration to
2160 language.c.
2161 (language_data): Delete la_case_sensitivity field.
2162 (language_defn::case_sensitivity): New member function.
2163 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2164 initializer.
2165 * objc-lang.c (objc_language_data): Likewise.
2166 * opencl-lang.c (opencl_language_data): Likewise.
2167 * p-lang.c (pascal_language_data): Likewise.
2168 * rust-lang.c (rust_language_data): Likewise.
2169
2170 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * ada-lang.c (ada_language_data): Remove la_range_check
2173 initializer.
2174 * c-lang.c (c_language_data): Likewise.
2175 (cplus_language_data): Likewise.
2176 (asm_language_data): Likewise.
2177 (minimal_language_data): Likewise.
2178 * d-lang.c (d_language_data): Likewise.
2179 * f-lang.c (f_language_data): Likewise.
2180 (f_language::range_checking_on_by_default): New member function.
2181 * go-lang.c (go_language_data): Remove la_range_check initializer.
2182 * language.c (enum range_mode): Moved here from language.h.
2183 (range_mode): Made static.
2184 (show_range_command): Update to use
2185 range_checking_on_by_default.
2186 (set_range_command): Likewise.
2187 (set_range_case): Likewise.
2188 (unknown_language_data): Remove la_range_check initializer.
2189 (auto_language_data): Likewise.
2190 * language.h (range_mode): Delete. Enum definition moved to
2191 language.c.
2192 (language_data): Remove la_range_check field.
2193 (language_defn::range_checking_on_by_default): New member
2194 function.
2195 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2196 (m2_language::range_checking_on_by_default): New member function.
2197 * objc-lang.c (objc_language_data): Remove la_range_check
2198 initializer.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 (pascal_language::range_checking_on_by_default): New member
2202 function.
2203 * rust-lang.c (rust_language_data): Remove la_range_check
2204 initializer.
2205 (rust_language::range_checking_on_by_default): New member
2206 function.
2207
2208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * dwarf2/read.c (dwarf2_physname): Remove special case for
2211 language_go.
2212 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2213 member function.
2214
2215 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * ada-lang.c (ada_language_data): Remove
2218 la_store_sym_names_in_linkage_form_p initializer.
2219 (ada_language::store_sym_names_in_linkage_form_p): New member
2220 function.
2221 * c-lang.c (c_language_data): Remove
2222 la_store_sym_names_in_linkage_form_p initializer.
2223 (c_language::store_sym_names_in_linkage_form_p): New member
2224 function.
2225 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2226 initializer.
2227 (asm_language_data): Likewise.
2228 (asm_language::store_sym_names_in_linkage_form_p): New member
2229 function.
2230 (minimal_language_data): Remove
2231 la_store_sym_names_in_linkage_form_p initializer.
2232 (minimal_language::store_sym_names_in_linkage_form_p): New member
2233 function.
2234 * d-lang.c (d_language_data): Remove
2235 la_store_sym_names_in_linkage_form_p initializer.
2236 * dwarf2/read.c (dwarf2_physname): Update call to
2237 store_sym_names_in_linkage_form_p.
2238 * f-lang.c (f_language_data): Remove
2239 la_store_sym_names_in_linkage_form_p initializer.
2240 * go-lang.c (go_language_data): Remove
2241 la_store_sym_names_in_linkage_form_p initializer.
2242 * language.c (unknown_language_data): Remove
2243 la_store_sym_names_in_linkage_form_p initializer.
2244 (unknown_language::store_sym_names_in_linkage_form_p): New member
2245 function.
2246 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2247 initializer.
2248 (auto_language::store_sym_names_in_linkage_form_p): New member
2249 function.
2250 * language.h (language_data): Remove
2251 la_store_sym_names_in_linkage_form_p member variable.
2252 (language_defn::store_sym_names_in_linkage_form_p): New member
2253 function.
2254 * m2-lang.c (m2_language_data): Remove
2255 la_store_sym_names_in_linkage_form_p initializer.
2256 * objc-lang.c (objc_language_data): Likewise.
2257 * opencl-lang.c (opencl_language_data): Likewise.
2258 * p-lang.c (pascal_language_data): Likewise.
2259 * rust-lang.c (rust_language_data): Likewise.
2260
2261 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * ada-lang.c (ada_language_data): Remove string_lower_bound
2264 initializer.
2265 * c-lang.c (c_language_data): Likewise.
2266 (cplus_language_data): Likewise.
2267 (asm_language_data): Likewise.
2268 (minimal_language_data): Likewise.
2269 * d-lang.c (d_language_data): Likewise.
2270 * f-lang.c (f_language_data): Likewise.
2271 * go-lang.c (go_language_data): Likewise.
2272 * language.c (unknown_language_data): Likewise.
2273 (auto_language_data): Likewise.
2274 * language.h (language_data): Remove string_lower_bound field.
2275 (language_defn::string_lower_bound): New member function.
2276 * m2-lang.c (m2_language_data): Remove string_lower_bound
2277 initializer.
2278 (m2_language::string_lower_bound): New member function.
2279 * objc-lang.c (objc_language_data): Remove string_lower_bound
2280 initializer.
2281 * opencl-lang.c (opencl_language_data): Likewise.
2282 * p-lang.c (pascal_language_data): Likewise.
2283 * rust-lang.c (rust_language_data): Likewise.
2284 * valops.c (value_cstring): Update call to string_lower_bound.
2285 (value_string): Likewise.
2286 * value.c (allocate_repeated_value): Likewise.
2287
2288 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * valops.c (value_repeat): Fix incorrect argument name in comment.
2291
2292 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * ada-lang.c (ada_language_data): Remove c_style_arrays
2295 initializer.
2296 (ada_language::c_style_arrays_p): New member fuction.
2297 * c-lang.c (c_language_data): Remove c_style_arrays
2298 initializer.
2299 (cplus_language_data): Likewise.
2300 (asm_language_data): Likewise.
2301 (minimal_language_data): Likewise.
2302 * d-lang.c (d_language_data): Likewise.
2303 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2304 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2305 (f_language::c_style_arrays_p): New member function.
2306 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2307 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2308 * language.c (unknown_language_data): Remove c_style_arrays
2309 initializer.
2310 (auto_language_data): Likewise.
2311 * language.h (language_data): Remove c_style_arrays field.
2312 (language_defn::c_style_arrays_p): New member function.
2313 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2314 (m2_language::c_style_arrays_p): New member function.
2315 * objc-lang.c (objc_language_data): Remove c_style_arrays
2316 initializer.
2317 * opencl-lang.c (opencl_language_data): Likewise.
2318 * p-lang.c (pascal_language_data): Likewise.
2319 * rust-lang.c (rust_language_data): Likewise.
2320 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2321 and update local variable to a bool.
2322 * valops.c (value_cast): Update call to c_style_arrays_p.
2323 (value_array): Likewise.
2324 * value.c (coerce_array): Likewise.
2325
2326 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * ada-lang.c (ada_language_data): Remove la_language initializer.
2329 * c-lang.c (c_language_data): Likewise.
2330 (cplus_language_data): Likewise.
2331 (asm_language_data): Likewise.
2332 (minimal_language_data): Likewise.
2333 * d-lang.c (d_language_data): Likewise.
2334 * f-lang.c (f_language_data): Likewise.
2335 * go-lang.c (go_language_data): Likewise.
2336 * language.c (unknown_language_data): Likewise.
2337 (auto_language_data): Likewise.
2338 * language.h (language_data): Remove la_language field.
2339 (language_defn::language_defn): Initialise la_language field.
2340 (language_defn::la_language): New member variable.
2341 * m2-lang.c (m2_language_data): Remove la_language field.
2342 * objc-lang.c (objc_language_data): Likewise.
2343 * opencl-lang.c (opencl_language_data): Likewise.
2344 * p-lang.c (pascal_language_data): Likewise.
2345 * rust-lang.c (rust_language_data): Likewise.
2346
2347 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * ada-lang.c (ada_extensions): Delete, moved into
2350 ada_language::filename_extensions.
2351 (ada_language_data): Remove la_filename_extensions initializer.
2352 (ada_language::filename_extensions): New member function.
2353 * c-lang.c (c_extensions): Delete, moved into
2354 c_language::filename_extensions.
2355 (c_language_data): Remove la_filename_extensions initializer.
2356 (c_language::filename_extensions): New member function.
2357 (cplus_extensions): Delete, moved into
2358 cplus_language::filename_extensions.
2359 (cplus_language_data): Remove la_filename_extensions initializer.
2360 (cplus_language::filename_extensions): New member function.
2361 (asm_extensions): Delete, moved into
2362 asm_language::filename_extensions.
2363 (asm_language_data): Remove la_filename_extensions initializer.
2364 (asm_language::filename_extensions): New member function.
2365 (minimal_language_data): Remove la_filename_extensions
2366 initializer.
2367 * d-lang.c (d_extensions): Delete, moved into
2368 d_language::filename_extensions.
2369 (d_language_data): Remove la_filename_extensions initializer.
2370 (d_language::filename_extensions): New member function.
2371 * f-lang.c (f_extensions): Delete, moved into
2372 f_language::filename_extensions.
2373 (f_language_data): Remove la_filename_extensions initializer.
2374 (f_language::filename_extensions): New member function.
2375 * go-lang.c (go_language_data): Remove la_filename_extensions
2376 initializer.
2377 * language.c (add_set_language_command): Update now that
2378 filename_extensions returns a vector.
2379 (unknown_language_data): Remove la_filename_extensions
2380 initializer.
2381 (auto_language_data): Likewise.
2382 * language.h (language_data): Remove la_filename_extensions field.
2383 (language_defn::filename_extensions): New member function.
2384 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2385 initializer.
2386 * objc-lang.c (objc_extensions): Delete, moved into
2387 objc_language::filename_extensions.
2388 (objc_language_data): Remove la_filename_extensions initializer.
2389 (objc_language::filename_extensions): New member function.
2390 * opencl-lang.c (opencl_language_data): Remove
2391 la_filename_extensions initializer.
2392 * p-lang.c (pascal_extensions): Delete, moved into
2393 pascal_language::filename_extensions.
2394 (pascal_language_data): Remove la_filename_extensions initializer.
2395 (pascal_language::filename_extensions): New member function.
2396 * rust-lang.c (rust_extensions): Delete, moved into
2397 rust_language::filename_extensions.
2398 (rust_language_data): Remove la_filename_extensions initializer.
2399 (rust_language::filename_extensions): New member function.
2400 * symfile.c (add_filename_language): Add new assert.
2401
2402 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * ada-lang.c (ada_language_data): Remove la_name and
2405 la_natural_name initializers.
2406 (ada_language::name): New member function.
2407 (ada_language::natural_name): New member function.
2408 * c-lang.c (c_language_data): Remove la_name and
2409 la_natural_name initializers.
2410 (c_language::name): New member function.
2411 (c_language::natural_name): New member function.
2412 (cplus_language_data): Remove la_name and
2413 la_natural_name initializers.
2414 (cplus_language::name): New member function.
2415 (cplus_language::natural_name): New member function.
2416 (asm_language_data): Remove la_name and
2417 la_natural_name initializers.
2418 (asm_language::name): New member function.
2419 (asm_language::natural_name): New member function.
2420 (minimal_language_data): Remove la_name and
2421 la_natural_name initializers.
2422 (minimal_language::name): New member function.
2423 (minimal_language::natural_name): New member function.
2424 * compile/compile.c (compile_to_object): Update call to
2425 lanugage_defn::name.
2426 * d-lang.c (d_language_data): Remove la_name and
2427 la_natural_name initializers.
2428 (d_language::name): New member function.
2429 (d_language::natural_name): New member function.
2430 * expprint.c (print_subexp_standard): Update call to
2431 language_defn::name.
2432 (dump_raw_expression): Likewise
2433 (dump_prefix_expression): Likewise.
2434 * f-lang.c (f_language_data): Remove la_name and
2435 la_natural_name initializers.
2436 (f_language::name): New member function.
2437 (f_language::natural_name): New member function.
2438 * go-lang.c (go_language_data): Remove la_name and
2439 la_natural_name initializers.
2440 (go_language::name): New member function.
2441 (go_language::natural_name): New member function.
2442 * language.c (show_language_command): Update call to
2443 language_defn::name.
2444 (set_language_command): Likewise.
2445 (language_enum): Likewise.
2446 (language_str): Likewise.
2447 (add_set_language_command): Likewise, use
2448 language_defn::natural_name in the doc string.
2449 (unknown_language_data): Remove la_name and
2450 la_natural_name initializers.
2451 (unknown_language::name): New member function.
2452 (unknown_language::natural_name): New member function.
2453 (auto_language_data): Remove la_name and
2454 la_natural_name initializers.
2455 (auto_language::name): New member function.
2456 (auto_language::natural_name): New member function.
2457 (language_lookup_primitive_type_as_symbol): Update call to
2458 language_defn::name.
2459 * language.h (language_data): Remove la_name and la_natural_name
2460 member variables.
2461 (language_defn::name): New member function.
2462 (language_defn::natural_name): New member function.
2463 * m2-lang.c (m2_language_data): Remove la_name and
2464 la_natural_name initializers.
2465 (m2_language::name): New member function.
2466 (m2_language::natural_name): New member function.
2467 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2468 language_defn::natural_name.
2469 * objc-lang.c (objc_language_data): Remove la_name and
2470 la_natural_name initializers.
2471 (objc_language::name): New member function.
2472 (objc_language::natural_name): New member function.
2473 * opencl-lang.c (opencl_language_data): Remove la_name and
2474 la_natural_name initializers.
2475 (opencl_language::name): New member function.
2476 (opencl_language::natural_name): New member function.
2477 * p-lang.c (pascal_language_data): Remove la_name and
2478 la_natural_name initializers.
2479 (pascal_language::name): New member function.
2480 (pascal_language::natural_name): New member function.
2481 * rust-lang.c (rust_language_data): Remove la_name and
2482 la_natural_name initializers.
2483 (rust_language::name): New member function.
2484 (rust_language::natural_name): New member function.
2485 * symtab.c (lookup_language_this): Update call to
2486 language_defn::name.
2487
2488 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2489
2490 * ada-lang.c (ada_language_data): Remove la_name_of_this
2491 initializer.
2492 * ax-gdb.c (gen_expr): Update call to name_of_this.
2493 * c-exp.y (classify_name): Likewise.
2494 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2495 (cplus_language_data): Likewise.
2496 (cplus_language::name_of_this): New member function.
2497 (asm_language_data): Remove la_name_of_this initializer.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 (d_language::name_of_this): New member function.
2501 * expprint.c (print_subexp_standard): Update call to name_of_this.
2502 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (unknown_language_data): Likewise.
2505 (unknown_language::name_of_this): New member function.
2506 (auto_language_data): Remove la_name_of_this initializer.
2507 (auto_language::name_of_this): New member function.
2508 * language.h (language_data): Delete la_name_of_this member
2509 variable.
2510 (language_defn::name_of_this): New member function.
2511 * m2-lang.c (m2_language_data): Remove la_name_of_this
2512 initializer.
2513 * objc-lang.c (objc_language_data): Likewise.
2514 (objc_language::name_of_this): New member function.
2515 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2516 initializer.
2517 * p-lang.c (pascal_language_data): Likewise.
2518 (pascal_language::name_of_this): New member function.
2519 * rust-lang.c (rust_language_data): Remove la_name_of_this
2520 initializer.
2521 * symtab.c (lookup_language_this): Update call to name_of_this.
2522 (lookup_symbol_aux): Likewise.
2523 * valops.c (value_of_this): Likewise.
2524
2525 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2526
2527 * ada-lang.c (ada_language_data): Remove
2528 la_struct_too_deep_ellipsis initializer.
2529 (ada_language::struct_too_deep_ellipsis): New member function.
2530 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2531 initializer.
2532 (cplus_language_data): Likewise.
2533 (asm_language_data): Likewise.
2534 (minimal_language_data): Likewise.
2535 * cp-valprint.c (cp_print_value): Update call to
2536 struct_too_deep_ellipsis.
2537 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2538 initializer.
2539 * f-lang.c (f_language_data): Likewise.
2540 (f_language::struct_too_deep_ellipsis): New member function.
2541 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2542 initializer.
2543 * language.c (unknown_language_data): Likewise.
2544 (auto_language_data): Likewise.
2545 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2546 member variable.
2547 (language_defn::struct_too_deep_ellipsis): New member function.
2548 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2549 initializer.Q
2550 * objc-lang.c (objc_language_data): Likewise.
2551 * opencl-lang.c (opencl_language_data): Likewise.
2552 * p-lang.c (pascal_language_data): Likewise.
2553 * rust-lang.c (rust_language_data): Likewise.
2554 * valprint.c (val_print_check_max_depth): Update call to
2555 struct_too_deep_ellipsis.
2556
2557 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2558
2559 * MAINTAINERS (Write After Approval): Add myself.
2560
2561 2020-09-15 Tom Tromey <tom@tromey.com>
2562
2563 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2564 Remove.
2565
2566 2020-09-15 Tom Tromey <tom@tromey.com>
2567
2568 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2569 and TYPE_CODE_METHODPTR cases.
2570 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2571 (c_value_print_inner): Update.
2572 * valprint.c (generic_value_print_memberptr): New function, from
2573 c_value_print_memberptr.
2574 (generic_value_print): Use it. Call cplus_print_method_ptr.
2575
2576 2020-09-15 Tom Tromey <tromey@adacore.com>
2577
2578 * python/python-internal.h (PyInt_FromLong): Remove define.
2579 * python/py-value.c (convert_value_from_python): Use
2580 gdb_py_object_from_longest.
2581 * python/py-type.c (typy_get_code): Use
2582 gdb_py_object_from_longest.
2583 * python/py-symtab.c (salpy_get_line): Use
2584 gdb_py_object_from_longest.
2585 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2586 gdb_py_object_from_longest.
2587 * python/py-record.c (recpy_gap_reason_code): Use
2588 gdb_py_object_from_longest.
2589 * python/py-record-btrace.c (recpy_bt_insn_size)
2590 (recpy_bt_func_level, btpy_list_count): Use
2591 gdb_py_object_from_longest.
2592 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2593 gdb_py_object_from_longest. Fix error handling.
2594 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2595 gdb_py_object_from_longest.
2596 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2597 gdb_py_object_from_longest.
2598 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2599 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2600 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2601
2602 2020-09-15 Tom Tromey <tromey@adacore.com>
2603
2604 * python/python.c (gdbpy_parameter_value): Use
2605 gdb_py_object_from_ulongest.
2606
2607 2020-09-15 Tom Tromey <tromey@adacore.com>
2608
2609 * python/py-infevents.c (create_register_changed_event_object):
2610 Use gdb_py_object_from_longest.
2611 * python/py-exitedevent.c (create_exited_event_object): Use
2612 gdb_py_object_from_longest.
2613
2614 2020-09-15 Tom Tromey <tromey@adacore.com>
2615
2616 * python/python.c (gdbpy_parameter_value): Use
2617 gdb_py_object_from_longest.
2618 * python/py-type.c (convert_field, typy_range): Use
2619 gdb_py_object_from_longest.
2620 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2621 gdb_py_object_from_longest.
2622 * python/py-lazy-string.c (stpy_get_length): Use
2623 gdb_py_object_from_longest.
2624 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2625 gdb_py_object_from_longest.
2626 * python/py-infevents.c (create_memory_changed_event_object): Use
2627 gdb_py_object_from_longest.
2628 * python/py-inferior.c (infpy_get_num): Use
2629 gdb_py_object_from_longest.
2630 (infpy_get_pid): Likewise.
2631
2632 2020-09-15 Tom Tromey <tromey@adacore.com>
2633
2634 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2635 defines.
2636 * python/py-value.c (valpy_long): Use
2637 gdb_py_object_from_ulongest.
2638 * python/py-symtab.c (salpy_get_pc): Use
2639 gdb_py_object_from_ulongest.
2640 (salpy_get_last): Likewise.
2641 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2642 gdb_py_object_from_ulongest.
2643 * python/py-lazy-string.c (stpy_get_address): Use
2644 gdb_py_object_from_ulongest.
2645 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2646 * python/py-arch.c (archpy_disassemble): Use
2647 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2648 error handling.
2649
2650 2020-09-15 Tom Tromey <tromey@adacore.com>
2651
2652 * python/python-internal.h (gdb_py_long_from_longest): Remove
2653 defines.
2654 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2655 * python/py-type.c (convert_field, typy_get_sizeof): Use
2656 gdb_py_object_from_longest.
2657 * python/py-record-btrace.c (btpy_list_index): Use
2658 gdb_py_object_from_longest.
2659
2660 2020-09-15 Tom Tromey <tromey@adacore.com>
2661
2662 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2663 * python/py-record.c (recpy_element_number): Use
2664 gdb_py_object_from_longest.
2665 (recpy_gap_number): Likewise.
2666
2667 2020-09-15 Tom Tromey <tromey@adacore.com>
2668
2669 * top.c (ui::ui): Update.
2670 (highest_ui_num): Remove.
2671 * top.h (struct ui) <num>: Remove.
2672
2673 2020-09-15 Tom Tromey <tromey@adacore.com>
2674
2675 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2676 * ui-style.c (ansi_regex_text): Now array.
2677 * rust-exp.y (number_regex_text): Now array.
2678 * linespec.c (linespec_quote_characters): Now array.
2679 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2680 Now arrays.
2681
2682 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * debuginfod-support.c (debuginfod_client_deleter): New.
2685 (debuginfod_client_up): New.
2686 (debuginfod_init): Return debuginfod_client_up.
2687 (debuginfod_source_query): Adjust.
2688 (debuginfod_debuginfo_query): Adjust.
2689
2690 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2691
2692 * debuginfod-support.c (debuginfod_source_query): Use
2693 make_unique_xstrdup.
2694
2695 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2696
2697 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2698 with `type::instance_flags`.
2699
2700 2020-09-14 Michael Mullin <masmullin@gmail.com>
2701
2702 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2703 Remove baton parameter.
2704
2705 2020-09-14 Pedro Alves <pedro@palves.net>
2706
2707 * Makefile.in (SELFTESTS_SRCS): Add
2708 unittests/enum-flags-selftests.c.
2709 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2710 btrace_function_flags instead of enum btrace_function_flag.
2711 * compile/compile-c-types.c (convert_qualified): Use
2712 enum_flags::raw.
2713 * compile/compile-cplus-symbols.c (convert_one_symbol)
2714 (convert_symbol_bmsym):
2715 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2716 (compile_cplus_convert_struct_or_union_methods)
2717 (compile_cplus_instance::convert_qualified_base):
2718 * go-exp.y (parse_string_or_char): Add cast to int.
2719 * unittests/enum-flags-selftests.c: New file.
2720 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2721 type to btrace_thread_flags from btrace_thread_flag.
2722 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2723 local's type to btrace_thread_flags from btrace_thread_flag. Add
2724 cast in DEBUG call.
2725
2726 2020-09-14 Pedro Alves <pedro@palves.net>
2727
2728 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2729 * gdbtypes.c (address_space_name_to_int): Rename to ...
2730 (address_space_name_to_type_instance_flags): ... this.
2731 (address_space_int_to_name): Rename to ...
2732 (address_space_type_instance_flags_to_name): ... this.
2733 * gdbtypes.h (address_space_name_to_int): Rename to ...
2734 (address_space_name_to_type_instance_flags): ... this.
2735 (address_space_int_to_name): Rename to ...
2736 (address_space_type_instance_flags_to_name): ... this.
2737 * type-stack.c (type_stack::insert): Adjust to rename.
2738 * type-stack.h (type_stack::insert): Likewise.
2739
2740 2020-09-14 Pedro Alves <pedro@palves.net>
2741 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * avr-tdep.c (avr_address_class_type_flags): Return
2744 type_instance_flags.
2745 (avr_address_class_type_flags_to_name): Take a
2746 type_instance_flags.
2747 (avr_address_class_name_to_type_flags): Return bool and take a
2748 type_instance_flags.
2749 * d-lang.c (build_d_types): Use type::set_instance_flags.
2750 * ft32-tdep.c (ft32_address_class_type_flags): Return
2751 type_instance_flags.
2752 (ft32_address_class_type_flags_to_name): Take a
2753 type_instance_flags.
2754 (ft32_address_class_name_to_type_flags): Return bool and take a
2755 type_instance_flags.
2756 (ft32_gdbarch_init): Use type::set_instance_flags.
2757 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2758 * gdbarch.h, gdbarch.c: Regenerate.
2759 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2760 (address_class_name_to_type_flags): Use type_instance_flags and
2761 bool.
2762 * gdbtypes.c (address_space_name_to_int)
2763 (address_space_int_to_name, make_qualified_type): Use
2764 type_instance_flags.
2765 (make_qualified_type): Use type_instance_flags and
2766 type::set_instance_flags.
2767 (make_type_with_address_space, make_cv_type, make_vector_type)
2768 (check_typedef): Use type_instance_flags.
2769 (recursive_dump_type): Cast type_instance_flags to unsigned for
2770 printing.
2771 (copy_type_recursive): Use type::set_instance_flags.
2772 (gdbtypes_post_init): Use type::set_instance_flags.
2773 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2774 <m_instance_flags>: ... this.
2775 <instance_flags, set_instance_flags>: New methods.
2776 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2777 (SET_TYPE_INSTANCE_FLAGS): New.
2778 (address_space_name_to_int, address_space_int_to_name)
2779 (make_type_with_address_space): Pass flags using
2780 type_instance_flags instead of int.
2781 * stabsread.c (cleanup_undefined_types_noname): Use
2782 type::set_instance_flags.
2783 * s390-tdep.c (s390_address_class_type_flags): Return
2784 type_instance_flags.
2785 (s390_address_class_type_flags_to_name): Take a
2786 type_instance_flags.
2787 (s390_address_class_name_to_type_flags): Return bool and take a
2788 type_instance_flags.
2789 * type-stack.c (type_stack::follow_types): Use
2790 type_instance_flags.
2791 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2792
2793 2020-09-14 Tom Tromey <tromey@adacore.com>
2794
2795 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2796 * x86-tdep.c (x86_is_thunk_register_name)
2797 (x86_in_indirect_branch_thunk): Update.
2798 * sparc64-tdep.c (sparc64_fpu_register_names)
2799 (sparc64_cp0_register_names, sparc64_register_names)
2800 (sparc64_pseudo_register_names): Now const.
2801 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2802 cp0_registers_num>: Now const.
2803 * sparc-tdep.c (sparc_core_register_names)
2804 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2805 (sparc32_pseudo_register_names): Now const.
2806 (validate_tdesc_registers): Update.
2807 * rust-lang.c (rust_extensions): Now const.
2808 * p-lang.c (p_extensions): Now const.
2809 * objc-lang.c (objc_extensions): Now const.
2810 * nto-tdep.c (nto_thread_state_str): Now const.
2811 * moxie-tdep.c (moxie_register_names): Now const.
2812 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2813 Now const.
2814 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2815 (mips_linux_reg_names): Now const.
2816 (mips_gdbarch_init): Update.
2817 * microblaze-tdep.c (microblaze_register_names): Now const.
2818 * m68k-tdep.c (m68k_register_names): Now const.
2819 * m32r-tdep.c (m32r_register_names): Now const.
2820 * ia64-tdep.c (ia64_register_names): Now const.
2821 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2822 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2823 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2824 ymm_avx512_register_names, pkeys_register_names>: Now const.
2825 * i386-tdep.c (i386_register_names, i386_zmm_names)
2826 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2827 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2828 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2829 * f-lang.c (f_extensions): Now const.
2830 * d-lang.c (d_extensions): Now const.
2831 * csky-tdep.c (csky_register_names): Now const.
2832 * charset.c (default_charset_names, charset_enum): Now const.
2833 (_initialize_charset): Update.
2834 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2835 const.
2836 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2837 (bsd_uthread_solib_loaded): Update.
2838 (bsd_uthread_state): Now const.
2839 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2840 (amd64_ymm_avx512_names, amd64_ymmh_names)
2841 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2842 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2843 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2844 (amd64_dword_names): Now const.
2845 * agent.c (can_use_agent_enum): Now const.
2846 * ada-tasks.c (task_states, long_task_states): Now const.
2847 * ada-lang.c (known_runtime_file_name_patterns)
2848 (known_auxiliary_function_name_patterns, attribute_names)
2849 (standard_exc, ada_extensions): Now const.
2850
2851 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2852
2853 * bcache.h (struct bcache) <bcache>: Remove constructor.
2854 <m_hash_function, m_compare_function>: Remove.
2855 <~bcache>: Make virtual.
2856 <compare>: Remove static method, introduce virtual method.
2857 <default_hash>: Remove.
2858 <hash>: New virtual method.
2859 * bcache.c (bcache::expand_hash_table): Update.
2860 (bcache::insert): Update.
2861 (bcache::hash): New.
2862 (bcache::compare): Update comment and parameter names.
2863 * gdbtypes.c (types_deeply_equal): Update.
2864 * psymtab.h (struct psymbol_bcache): New struct.
2865 (class psymtab_storage) <psymtab_storage>: Make default.
2866 <psymbol_cache>: Change type to psymbol_bcache.
2867 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2868 (psymbol_hash): Change to...
2869 (psymbol_bcache::hash): ... this.
2870 (psymbol_compare): Change to...
2871 (psymbol_bcache::compare): ... this.
2872
2873 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2876 checking for initial lwp.
2877
2878 2020-09-14 Tom Tromey <tromey@adacore.com>
2879
2880 * m68k-tdep.c (m68k_extract_return_value): Use
2881 pointer_result_regnum.
2882 (m68k_store_return_value): Likewise.
2883 (m68k_reg_struct_return_p): Handle vectors and arrays.
2884 (m68k_return_value): Handle arrays.
2885 (m68k_svr4_return_value): Fix single-element aggregate handling.
2886 Handle long double. Adjust for embedded ABI.
2887 (m68k_svr4_init_abi): Set pointer_result_regnum.
2888 (m68k_embedded_init_abi): New function.
2889 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2890 (m68k_osabi_sniffer): New function.
2891 (_initialize_m68k_tdep): Register osabi sniffer.
2892 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2893 member.
2894
2895 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2898 with gdb::unique_xmalloc_ptr<char>.
2899
2900 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * xml-support.h (xml_fetch_another): Change type to be a
2903 function_view.
2904 (xml_process_xincludes): Remove baton parameter.
2905 (xml_fetch_content_from_file): Change baton parameter to
2906 dirname.
2907 * xml-support.c (struct xinclude_parsing_data)
2908 <xinclude_parsing_data>: Remove baton parameter.
2909 <fetcher_baton>: Remove.
2910 (xinclude_start_include): Adjust.
2911 (xml_process_xincludes): Adjust.
2912 (xml_fetch_content_from_file): Replace baton parameter with
2913 dirname.
2914 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2915 (xml_init_syscalls_info): Use a lambda.
2916 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2917 (file_read_description_xml): Use a lambda.
2918 (fetch_available_features_from_target): Change baton parameter
2919 to target_ops.
2920 (target_read_description_xml): Use a lambda.
2921 (target_fetch_description_xml): Use a lambda.
2922 (string_read_description_xml): Update.
2923
2924 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2927 uses with type::endianity_is_not_default.
2928
2929 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2930
2931 * gdbtypes.h (struct type) <endianity_is_not_default,
2932 set_endianity_is_not_default>: New methods.
2933 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2934 type::endianity_is_not_default, change all write call sites to
2935 use type::set_endianity_is_not_default.
2936
2937 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2938
2939 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2940 uses with type::is_fixed_instance.
2941
2942 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2943
2944 * gdbtypes.h (struct type) <is_fixed_instance,
2945 set_is_fixed_instance>: New methods.
2946 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2947 write call sites to use type::set_is_fixed_instance.
2948
2949 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2950
2951 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2952 uses with type::is_gnu_ifunc.
2953
2954 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2955
2956 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2957 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2958 use type::set_is_gnu_ifunc.
2959
2960 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2963 uses with type::stub_is_supported.
2964
2965 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2968 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2969 use type::set_stub_is_supported.
2970
2971 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2974 uses with type::is_vector.
2975
2976 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2979 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2980 use type::set_is_vector.
2981
2982 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2983
2984 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2985 uses with type::has_varargs.
2986
2987 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2988
2989 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2990 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2991 use type::set_has_varargs.
2992
2993 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2996 uses with type::is_prototyped.
2997
2998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3001 New methods.
3002 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3003 call sites to use type::set_is_prototyped.
3004
3005 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3008 uses with type::target_is_stub.
3009
3010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3013 New methods.
3014 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3015 sites to use type::set_target_is_stub.
3016
3017 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.h (TYPE_STUB): Remove, replace all
3020 uses with type::is_stub.
3021
3022 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3025 (TYPE_STUB): Use type::is_stub, change all write call sites to
3026 use type::set_is_stub.
3027
3028 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3031 type::has_no_signedness.
3032
3033 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (struct type) <has_no_signedness,
3036 set_has_no_signedness>: New methods.
3037 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3038 call sites to use type::set_has_no_signedness.
3039
3040 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3041
3042 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3043 type::is_unsigned.
3044
3045 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3048 methods.
3049 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3050 sites to use type::set_is_unsigned.
3051
3052 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3053 Adam Renquinha <arenquinha@cimeq.qc.ca>
3054
3055 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3056 pointer and stack frame offset when unwinding.
3057
3058 2020-09-13 Pedro Alves <pedro@palves.net>
3059
3060 * NEWS: Document "-break-insert --qualified".
3061 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3062
3063 2020-09-13 Pedro Alves <pedro@palves.net>
3064
3065 * linespec.c (classify_mtype, compare_msyms): Delete.
3066 (search_minsyms_for_name): Remove classification logic. Instead
3067 filter out trampoline symbols if we also found an external
3068 function of the same name.
3069
3070 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3071
3072 * NEWS: Create a new section for the next release branch.
3073 Rename the section of the current branch, now that it has
3074 been cut.
3075
3076 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3077
3078 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3079 * version.in: Bump version to 11.0.50.DATE-git.
3080
3081 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3082
3083 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3084
3085 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3086 Felix Willgerodt <Felix.Willgerodt@intel.com>
3087
3088 * gdbarch.sh: Added bfloat16 type.
3089 * gdbarch.c: Regenerated.
3090 * gdbarch.h: Regenerated.
3091 * gdbtypes.c (floatformats_bfloat16): New struct.
3092 (gdbtypes_post_init): Add builtin_bfloat16.
3093 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3094 (floatformats_bfloat16): New struct.
3095 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3096 (i386_ymm_type): Add field "v16_bfloat16"
3097 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3098 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3099 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3100 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3101 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3102 * features/i386/64bit-avx512.c: Regenerated.
3103 * features/i386/64bit-sse.xml: Add bfloat16 type.
3104 * features/i386/64bit-sse.c: Regenerated.
3105
3106 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3107
3108 * i386-tdep.c (i386_zmm_type): Fix field names.
3109 (i386_ymm_type): Fix field names.
3110
3111 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3112
3113 * breakpoint.c: Fix typo in the help message of the
3114 "set breakpoint condition-evaluation" command.
3115
3116 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3117
3118 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3119 * (nbsd_nat_target::pid_to_exec_file)
3120 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3121 (nbsd_nat_target::post_startup_inferior)
3122 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3123 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3124 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3125 * (nbsd_thread_lister): Remove.
3126
3127 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3128
3129 * fork-inferior.c (startup_inferior): Avoid double free.
3130
3131 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3132
3133 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3134 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3135
3136 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3137
3138 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3139 * netbsd-nat.c: Include <sys/ptrace.h>.
3140 * (netbsd_nat::enable_proc_events): Add.
3141
3142 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3143
3144 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3145 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3146 (netbsd_nat::for_each_thread): Add.
3147 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3148 "gdbsupport/common-debug.h".
3149 * (netbsd_nat::netbsd_thread_lister)
3150 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3151 (netbsd_nat::for_each_thread): Add.
3152
3153 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3154
3155 * netbsd-nat.h: Include <unistd.h>.
3156 * (netbsd_nat::pid_to_exec_file): Add.
3157 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3158 * (netbsd_nat::pid_to_exec_file) Add.
3159
3160 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3161
3162 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3163
3164 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3165
3166 * netbsd-nat.h: New file.
3167 * netbsd-nat.c: Likewise.
3168
3169 2020-09-09 Tom Tromey <tromey@adacore.com>
3170
3171 * ada-lang.c (remove_extra_symbols): Do not increment when
3172 removing an element
3173
3174 2020-09-08 Tom Tromey <tromey@adacore.com>
3175
3176 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3177
3178 2020-09-08 Tom Tromey <tromey@adacore.com>
3179
3180 PR win32/25302:
3181 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3182 (gdb_bfd_init_data): New function.
3183 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3184
3185 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3186
3187 * infrun.c (fetch_inferior_event): Use
3188 `switch_to_target_no_thread` to switch the target.
3189
3190 2020-09-06 Tom Tromey <tom@tromey.com>
3191
3192 * symfile.h (dwarf2_free_objfile): Don't declare.
3193
3194 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3195
3196 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3197 to match 16 byte real/complex type generated by Flang compiler.
3198
3199 2020-09-03 Tom de Vries <tdevries@suse.de>
3200
3201 PR breakpoint/26546
3202 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3203 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3204
3205 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3206
3207 * maint.c (index_digits): New function.
3208 (struct maint_print_section_data): Remove.
3209 (print_bfd_section_info): Remove print_data parameter, add arg
3210 and index_digits.
3211 (print_objfile_section_info): Likewise.
3212 (print_bfd_section_info_maybe_relocated): Likewise (plus
3213 objfile).
3214 (maintenance_info_sections): Adjust calls.
3215
3216 2020-09-02 Tom Tromey <tromey@adacore.com>
3217
3218 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3219 for null pointers.
3220 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3221
3222 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 * bcache.h (struct bcache) <insert>: Change type of `added` to
3225 pointer to bool.
3226 * bcache.c (bcache::insert): Likewise.
3227 * gdbtypes.c (check_types_worklist): Adjust.
3228 * psymtab.c (add_psymbol_to_bcache): Adjust.
3229
3230 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3231
3232 * corelow.c (unordered_set): Include.
3233 (class core_target): Add field 'm_core_unavailable_mappings'.
3234 (core_target::build_file_mappings): Print only one warning
3235 per inaccessible file. Add unavailable/broken mappings
3236 to m_core_unavailable_mappings.
3237 (core_target::xfer_partial): Call...
3238 (core_target::xfer_memory_via_mappings): New method.
3239
3240 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3243 type to bool.
3244
3245 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3246
3247 * dwarf2/read.c (struct field_info): Fix indentation.
3248
3249 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3252 ordering in comment.
3253 * frame.c (frame_id_eq): Fix indentation.
3254
3255 2020-08-31 Scott Linder <scott@scottlinder.com>
3256 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3259 inline frame ids in outer frame.
3260
3261 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3264 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3265 (outer_frame_id): Use FID_STACK_OUTER instead of
3266 FID_STACK_INVALID.
3267 (frame_id_p): Don't check for outer_frame_id.
3268
3269 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3272 regnum/frame in value. Call allocate_value_lazy.
3273 * frame.c (frame_unwind_register_value): Use
3274 val_print_not_saved.
3275
3276 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3277
3278 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3279
3280 2020-08-29 Pedro Alves <pedro@palves.net>
3281
3282 * progspace.c (print_program_space): Use all_inferiors. Switch to
3283 the inferior before calling target_pid_to_str.
3284
3285 2020-08-28 Tom Tromey <tom@tromey.com>
3286
3287 * xcoffread.c (xcoff_end_psymtab): Update comment.
3288 * dbxread.c (dbx_end_psymtab): Update comment.
3289
3290 2020-08-28 Tom de Vries <tdevries@suse.de>
3291
3292 PR breakpoint/26544
3293 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3294 event_location.
3295 (create_breakpoint): Same.
3296 (base_breakpoint_decode_location): Same.
3297 (bkpt_create_sals_from_location): Same.
3298 (bkpt_decode_location): Same.
3299 (bkpt_probe_create_sals_from_location): Same.
3300 (bkpt_probe_decode_location): Same.
3301 (tracepoint_create_sals_from_location): Same.
3302 (tracepoint_decode_location): Same.
3303 (tracepoint_probe_decode_location): Same.
3304 (strace_marker_create_sals_from_location): Same.
3305 (strace_marker_decode_location): Same.
3306 (create_sals_from_location_default): Same.
3307 (decode_location_default): Same.
3308 * breakpoint.h (struct breakpoint_ops): Same.
3309 (create_breakpoint): Same.
3310 * linespec.h (decode_line_full): Same.
3311 * linespec.c (decode_line_full): Same. Throw error if
3312 result.size () == 0.
3313
3314 2020-08-27 Pedro Alves <pedro@palves.net>
3315
3316 PR gdb/26524
3317 * breakpoint.c (until_break_fsm) <location_breakpoint,
3318 caller_breakpoint>: Delete fields.
3319 <breakpoints>: New field.
3320 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3321 two individual breakpoints.
3322 (until_break_fsm::should_stop): Loop over breakpoints in the
3323 breakpoint vector.
3324 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3325 vector.
3326 (until_break_command): Handle location expanding into multiple
3327 sals.
3328
3329 2020-08-27 Pedro Alves <pedro@palves.net>
3330
3331 PR gdb/26523
3332 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3333 bp_until breakpoints user-specified locations. Update intro
3334 comment.
3335
3336 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3339 gdb_bfd_sections): New.
3340 * maint.c (print_bfd_section_info): Change param type to
3341 maint_print_section_data.
3342 (print_objfile_section_info): Likewise.
3343 (print_bfd_section_info_maybe_relocated): Likewise.
3344 (maintenance_info_sections): Use gdb_bfd_sections.
3345
3346 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3347
3348 * MAINTAINERS: Add ARC target and maintainer.
3349
3350 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3351
3352 * configure.tgt: ARC support for GNU/Linux.
3353 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3354 * arc-linux-tdep.c: New file.
3355 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3356 * arc-tdep.c (arc_write_pc): Use it.
3357
3358 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3359
3360 * arc-tdep.c (arc_check_for_hardware_loop): New.
3361 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3362
3363 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3364
3365 * arc-tdep.h: Include "gdbarch.h".
3366
3367 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3368
3369 * arch/arc.h
3370 (arc_gdbarch_features): New class to stir the selection of target XML.
3371 (arc_create_target_description): Use FEATURES to choose XML target.
3372 (arc_lookup_target_description): Use arc_create_target_description
3373 to create _new_ target descriptions or return the already created
3374 ones if the FEATURES is the same.
3375 * arch/arc.c: Implementation of prototypes described above.
3376 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3377 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3378 * arc-tdep.c (*_feature_name): Make feature names consistent.
3379 (arc_register_feature): A new struct to hold information about
3380 registers of a particular target/feature.
3381 (arc_check_tdesc_feature): Check if XML provides registers in
3382 compliance with ARC_REGISTER_FEATURE structs.
3383 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3384 (determine_*_reg_feature_set): Which feature name to look for.
3385 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3386 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3387 to expected ISA enums to be used in arc_gdbarch_features structs.
3388 * features/Makefile (FEATURE_XMLFILES): Add new files.
3389 * gdb/features/arc/v1-aux.c: New file.
3390 * gdb/features/arc/v1-aux.xml: Likewise.
3391 * gdb/features/arc/v1-core.c: Likewise.
3392 * gdb/features/arc/v1-core.xml: Likewise.
3393 * gdb/features/arc/v2-aux.c: Likewise.
3394 * gdb/features/arc/v2-aux.xml: Likewise.
3395 * gdb/features/arc/v2-core.c: Likewise.
3396 * gdb/features/arc/v2-core.xml: Likewise.
3397 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3398
3399 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3400 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 PR m2/26372
3403 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3404 an assert. Remove single element array indexing pattern as the
3405 MULTI_SUBSCRIPT support will handle this case too.
3406
3407 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3408
3409 * value.h (valprint_check_validity): Move declaration from
3410 here...
3411 * valprint.h (valprint_check_validity): ... to here.
3412
3413 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * debug.h: New file.
3416 * debug.c (debug_prefixed_vprintf): New function.
3417 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3418 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3419
3420 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * infrun.h (infrun_debug_printf_1): New function declaration.
3423 (infrun_debug_printf): New macro.
3424 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3425 throughout.
3426 (infrun_debug_printf): New function.
3427 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3428 (handle_jit_event): Likewise.
3429
3430 2020-08-21 Mark Wielaard <mark@klomp.org>
3431
3432 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3433
3434 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * frame.c (enum class frame_id_status): New.
3437 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3438 (fprintf_frame): Update.
3439 (compute_frame_id): Set frame id status to "computing" on entry.
3440 Set it back to "not_computed" on failure and to "computed" on
3441 success.
3442 (get_frame_id): Assert the frame id is not being computed.
3443 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3444 (create_new_frame): Likewise.
3445 (frame_cleanup_after_sniffer): Update assert.
3446
3447 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * regcache.c (pid_ptid_regcache_map): New type.
3450 (target_ptid_regcache_map): Remove.
3451 (target_pid_ptid_regcache_map): New type.
3452 (regcaches): Change type to target_pid_ptid_regcache_map.
3453 (get_thread_arch_aspace_regcache): Update.
3454 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3455 case.
3456 (regcaches_size): Update.
3457 (regcache_count): Update.
3458 (registers_changed_ptid_target_pid_test): New.
3459 (_initialize_regcache): Register new test.
3460
3461 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * regcache.c (regcache_count): New.
3464 (struct regcache_test_data): New.
3465 (regcache_test_data_up): New.
3466 (populate_regcaches_for_test): New.
3467 (regcaches_test): Remove.
3468 (get_thread_arch_aspace_regcache_test): New.
3469 (registers_changed_ptid_all_test): New.
3470 (registers_changed_ptid_target_test): New.
3471 (registers_changed_ptid_target_ptid_test): New.
3472 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3473 (_initialize_regcache): Register new tests.
3474
3475 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3478 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3479 gdbarch and aspace parameter. Use current inferior's aspace.
3480 Validate regcache's arch value.
3481 (regcaches_test): Update.
3482
3483 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * regcache.c (regcaches_test): Call registers_changed.
3486
3487 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3488
3489 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3490
3491 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3492
3493 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3494 to find the end of prologue for flang compiled binaries.
3495 * arm-tdep.c (arm_skip_prologue): Likewise.
3496 * i386-tdep.c (i386_skip_prologue): Likewise.
3497 * producer.c (producer_is_llvm): New function.
3498 (producer_parsing_tests): Added new tests for clang/flang.
3499 * producer.h (producer_is_llvm): New declaration.
3500
3501 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * linux-nat.c (linux_nat_debug_printf): New function.
3504 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3505
3506 2020-08-18 Aaron Merey <amerey@redhat.com>
3507
3508 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3509 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3510 (CLIBS): Add DEBUGINFOD_LIBS.
3511
3512 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3513
3514 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3515 'gdbarch_num_regs'.
3516
3517 2020-08-17 Tom Tromey <tromey@adacore.com>
3518
3519 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3520 ada_get_decoded_value returns NULL.
3521
3522 2020-08-17 Tom Tromey <tromey@adacore.com>
3523
3524 * python/py-inferior.c (infpy_search_memory): Use
3525 gdb_py_object_from_ulongest.
3526 * python/py-infevents.c (create_inferior_call_event_object)
3527 (create_memory_changed_event_object): Use
3528 gdb_py_object_from_ulongest.
3529 * python/py-linetable.c (ltpy_entry_get_pc): Use
3530 gdb_py_object_from_ulongest.
3531
3532 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * loc.c (class symbol_needs_eval_context): Fix indentation.
3535
3536 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3537
3538 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3539 bool.
3540
3541 2020-08-17 Tom de Vries <tdevries@suse.de>
3542
3543 PR gdb/26393
3544 * gdbtypes.c (dump_dynamic_prop): New function.
3545 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3546
3547 2020-08-15 Tom de Vries <tdevries@suse.de>
3548
3549 PR backtrace/26390
3550 * stack.c (print_frame_args): Temporarily set the selected
3551 frame to FRAME while printing the frame's arguments.
3552
3553 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3554
3555 PR breakpoints/26385
3556 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3557 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3558
3559 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3560
3561 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3562 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3563 and >= to check return value instead of == -1 and != -1.
3564
3565 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 * utils.h (class gdb_argv) <as_array_view>: New method.
3568 * utils.c (gdb_argv_as_array_view_test): New.
3569 (_initialize_utils): Register selftest.
3570 * maint.c (maintenance_selftest): Use the new method.
3571
3572 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3573
3574 * target.h (supports_dumpcore, dumpcore): New
3575 function declarations.
3576 * target.c (supports_dumpcore, dumpcore): New
3577 functions.
3578 * target-delegates.c: Rebuild.
3579 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3580 and target_dumpcore ().
3581
3582 2020-08-13 Aaron Merey <amerey@redhat.com>
3583
3584 * debuginfod-support.c: Replace global variables with user_data.
3585
3586 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * maint.c (maintenance_selftest): Split args and pass array_view
3589 to run_tests.
3590
3591 2020-08-12 Luis Machado <luis.machado@linaro.org>
3592
3593 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3594 type's length.
3595 Use %s and pulongest to print the length.
3596
3597 2020-08-12 Pedro Alves <palves@redhat.com>
3598
3599 * NEWS: Move "Multi-target debugging support" item to the
3600 "Changes since GDB 9" section.
3601
3602 2020-08-12 Pedro Alves <palves@redhat.com>
3603
3604 PR gdb/26336
3605 * progspace.c (program_space::remove_objfile): Invalidate the
3606 frame cache.
3607
3608 2020-08-11 Tom de Vries <tdevries@suse.de>
3609
3610 * MAINTAINERS: Mark ms1 as deleted.
3611
3612 2020-08-10 Luis Machado <luis.machado@linaro.org>
3613
3614 PR gdb/26310
3615
3616 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3617 act accordingly.
3618 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3619 movz/str/stur/stp skipping behavior.
3620
3621 2020-08-10 Luis Machado <luis.machado@linaro.org>
3622
3623 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3624 struct user_sve_header instead of struct sve_context.
3625
3626 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * read.h (dwarf2_fetch_die_loc_sect_off,
3629 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3630 `void *` parameter with function_view.
3631 * read.c (dwarf2_fetch_die_loc_sect_off,
3632 dwarf2_fetch_die_loc_cu_off): Likewise.
3633 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3634 (per_cu_dwarf_call): Adjust.
3635 (get_frame_address_in_block_wrapper): Remove.
3636 (indirect_synthetic_pointer): Adjust.
3637 (get_ax_pc): Remove.
3638 (dwarf2_compile_expr_to_ax): Adjust.
3639
3640 2020-08-08 Tom de Vries <tdevries@suse.de>
3641
3642 PR build/26344
3643 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3644 constructor.
3645 * regcache.c (get_thread_arch_aspace_regcache): Same.
3646
3647 2020-08-07 Tom Tromey <tromey@adacore.com>
3648
3649 * ravenscar-thread.c
3650 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3651 New method.
3652 (ravenscar_thread_target::wait): Check
3653 runtime_initialized.
3654 (ravenscar_thread_target::prepare_to_store)
3655 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3656 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3657 (ravenscar_thread_target::stopped_by_watchpoint)
3658 (ravenscar_thread_target::stopped_data_address)
3659 (ravenscar_thread_target::core_of_thread): Use
3660 scoped_restore_current_thread and
3661 set_base_thread_from_ravenscar_task.
3662
3663 2020-08-07 Tom Tromey <tromey@adacore.com>
3664
3665 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3666
3667 2020-08-07 Tom Tromey <tromey@adacore.com>
3668
3669 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3670 update_inferior_ptid before update_thread_list.
3671 (temporarily_change_regcache_ptid): New class.
3672 (ravenscar_thread_target::fetch_registers)
3673 (ravenscar_thread_target::store_registers)
3674 (ravenscar_thread_target::prepare_to_store): Use base thread when
3675 forwarding operation.
3676
3677 2020-08-07 Tom Tromey <tromey@adacore.com>
3678
3679 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3680 "is_pid" case.
3681
3682 2020-08-07 Tom Tromey <tromey@adacore.com>
3683
3684 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3685 New methods.
3686 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3687 first.
3688 (ravenscar_thread_target::add_thread): Rename from
3689 ravenscar_add_thread.
3690 (ravenscar_thread_target::update_thread_list): Use a lambda.
3691 (ravenscar_thread_target::xfer_partial): New method.
3692
3693 2020-08-07 Tom Tromey <tromey@adacore.com>
3694
3695 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3696 gdb::function_view.
3697 (iterate_over_live_ada_tasks): Change type of argument.
3698 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3699 of argument.
3700
3701 2020-08-07 Tom Tromey <tromey@adacore.com>
3702
3703 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3704 Remove.
3705 (ravenscar_thread_target::extra_thread_info): Remove.
3706 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3707 defer to target beneath for non-Ravenscar threads.
3708
3709 2020-08-07 Tom Tromey <tromey@adacore.com>
3710
3711 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3712 get_base_thread_from_ravenscar_task>: Now methods.
3713 <m_cpu_map>: New member.
3714 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3715 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3716 (ravenscar_thread_target::task_is_currently_active): Update.
3717 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3718 Now a method.
3719 (ravenscar_thread_target::add_active_thread): Put initial thread
3720 into the m_cpu_map.
3721
3722 2020-08-07 Tom Tromey <tromey@adacore.com>
3723
3724 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3725 event_ptid.
3726
3727 2020-08-07 Tom Tromey <tromey@adacore.com>
3728
3729 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3730 runtime_initialized.
3731
3732 2020-08-07 Tom Tromey <tromey@adacore.com>
3733
3734 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3735 add_active_thread.
3736 (ravenscar_thread_target::add_active_thread): Now public.
3737 (ravenscar_inferior_created): Call add_active_thread after pushing
3738 the target.
3739
3740 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3741
3742 * regcache.c (ptid_regcache_map): New type.
3743 (target_ptid_regcache_map): New type.
3744 (regcaches): Change type to target_ptid_regcache_map.
3745 (get_thread_arch_aspace_regcache): Update to regcaches' new
3746 type.
3747 (regcache_thread_ptid_changed): Likewise.
3748 (registers_changed_ptid): Likewise.
3749 (regcaches_size): Likewise.
3750 (regcaches_test): Update.
3751 (regcache_thread_ptid_changed): Update.
3752 * regcache.h (regcache_up): New type.
3753 * gdbsupport/ptid.h (hash_ptid): New struct.
3754
3755 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * observable.h (thread_ptid_changed): Add parameter
3758 `process_stratum_target *`.
3759 * infrun.c (infrun_thread_ptid_changed): Add parameter
3760 `process_stratum_target *` and use it.
3761 (selftests): New namespace.
3762 (infrun_thread_ptid_changed): New function.
3763 (_initialize_infrun): Register selftest.
3764 * regcache.c (regcache_thread_ptid_changed): Add parameter
3765 `process_stratum_target *` and use it.
3766 (regcache_thread_ptid_changed): New function.
3767 (_initialize_regcache): Register selftest.
3768 * thread.c (thread_change_ptid): Pass target to
3769 thread_ptid_changed observable.
3770
3771 2020-08-06 Caroline Tice <cmtice@google.com>
3772
3773 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3774 (struct dwp_sections): Update field comments. Add loclists and
3775 rnglists fields.
3776 (struct virtual_v2_dwo_sections): Rename struct to
3777 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3778 size & offset fields for loclists and rnglists.
3779 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3780 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3781 skipping dummy type units.
3782 (create_dwp_hash_table): Update the large comment above the function to
3783 discuss Version 5 DWP files as well, with references. Update all the
3784 version checks in the function to check for version 5 as well. Add new
3785 section at the end to create dwp hash table for version 5.
3786 (create_dwp_v2_section): Rename function to
3787 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3788 Add V5 to error message text.
3789 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3790 into calls to create_dwp_v2_or_v5_section.
3791 (create_dwo_unit_in_dwp_v5): New function.
3792 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3793 check for version2; add else clause to handle version 5.
3794 (open_and_init_dwo_file): Add code to check dwarf version & only call
3795 create_debug_types_hash_table (with sections.types) if version is not 5;
3796 else call create_debug_type_hash_table, with sections.info.
3797 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3798 version 5.
3799 (dwarf2_locate_v5_dwp_sections): New function.
3800 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3801 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3802
3803 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * regcache.h (class regcache): Remove friend
3806 registers_changed_ptid.
3807 <regcache_thread_ptid_changed>: Remove.
3808 <regcaches>: Remove.
3809 * regcache.c (regcache::regcaches): Rename to...
3810 (regcaches): ... this. Make static.
3811 (get_thread_arch_aspace_regcache): Update.
3812 (regcache::regcache_thread_ptid_changed): Rename to...
3813 (regcache_thread_ptid_changed): ... this. Update.
3814 (class regcache_access): Remove.
3815 (regcaches_test): Update.
3816 (_initialize_regcache): Update.
3817 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3818 <forward_list>.
3819
3820 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * regcache.h (class regcache) <current_regcache>: Rename to...
3823 <regcaches>: ... this. Move doc here.
3824 * regcache.c (regcache::current_regcache) Rename to...
3825 (regcache::regcaches): ... this. Move doc to header.
3826 (get_thread_arch_aspace_regcache): Update.
3827 (regcache::regcache_thread_ptid_changed): Update.
3828 (registers_changed_ptid): Update.
3829 (class regcache_access) <current_regcache_size>: Rename to...
3830 <regcaches_size>: ... this.
3831 (current_regcache_test): Rename to...
3832 (regcaches_test): ... this.
3833 (_initialize_regcache): Update.
3834
3835 2020-08-06 Victor Collod <vcollod@nvidia.com>
3836
3837 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3838
3839 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3840
3841 * corelow.c (core_target::build_file_mappings): Don't output
3842 null pathname in warning.
3843
3844 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3845
3846 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3847 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3848 gdb.dwarf2/dw2-single-line-discriminators.exp,
3849 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3850
3851 2020-08-05 Tom Tromey <tromey@adacore.com>
3852
3853 PR rust/26197:
3854 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3855 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3856 Fix off-by-one and type size errors in ordinary case.
3857
3858 2020-08-05 Tom de Vries <tdevries@suse.de>
3859
3860 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3861 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3862
3863 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * frame.h (frame_id_p): Return bool.
3866 (frame_id_artificial_p): Return bool.
3867 (frame_id_eq): Return bool.
3868 (has_stack_frames): Return bool.
3869 (get_selected_frame): Fix typo in comment.
3870 (get_frame_pc_if_available): Return bool.
3871 (get_frame_address_in_block_if_available): Return bool.
3872 (get_frame_func_if_available): Return bool.
3873 (read_frame_register_unsigned): Return bool.
3874 (get_frame_register_bytes): Return bool.
3875 (safe_frame_unwind_memory): Return bool.
3876 (deprecated_frame_register_read): Return bool.
3877 (frame_unwinder_is): Return bool.
3878 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3879 bool.
3880 <this_id::p>: Likewise.
3881 <prev_p>: Likewise.
3882 (frame_stash_add): Return bool.
3883 (get_frame_id): Use bool.
3884 (frame_id_build_special) Use bool.
3885 (frame_id_build_unavailable_stack): Use bool.
3886 (frame_id_build): Use bool.
3887 (frame_id_p): Return bool, use true/false instead of 1/0.
3888 (frame_id_artificial_p): Likewise.
3889 (frame_id_eq): Likewise.
3890 (frame_id_inner): Likewise.
3891 (get_frame_func_if_available): Likewise.
3892 (read_frame_register_unsigned): Likewise.
3893 (deprecated_frame_register_read): Likewise.
3894 (get_frame_register_bytes): Likewise.
3895 (has_stack_frames): Likewise.
3896 (inside_main_func): Likewise.
3897 (inside_entry_func): Likewise.
3898 (get_frame_pc_if_available): Likewise.
3899 (get_frame_address_in_block_if_available): Likewise.
3900 (frame_unwinder_is): Likewise.
3901 (safe_frame_unwind_memory): Likewise.
3902 (frame_unwind_arch): Likewise.
3903
3904 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3907 type to cached_copy_status.
3908 (fprintf_frame): Adjust.
3909 (get_frame_func_if_available): Adjust.
3910 (frame_cleanup_after_sniffer): Adjust.
3911
3912 2020-08-04 Mark Wielaard <mark@klomp.org>
3913
3914 * MAINTAINERS (Write After Approval): Update email address.
3915
3916 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3919 dynamic_prop::const_val.
3920
3921 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3922
3923 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3924 dynamic_prop::kind.
3925
3926 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3927
3928 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3929
3930 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3931
3932 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3933
3934 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3935 Jose E. Marchesi <jose.marchesi@oracle.com>
3936
3937 * configure.tgt: Add entry for bpf-*-*.
3938 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3939 (ALLDEPFILES): Add bpf-tdep.c.
3940 * bpf-tdep.c: New file.
3941 * MAINTAINERS: Add bpf target and maintainer.
3942 * NEWS: Mention the support for the new target.
3943
3944 2020-08-04 Tom de Vries <tdevries@suse.de>
3945
3946 PR symtab/23270
3947 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3948 Error.
3949
3950 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3951
3952 * syscalls/freebsd.xml: Regenerate.
3953
3954 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3955
3956 * syscalls/update-freebsd.sh: Fix usage and year range.
3957
3958 2020-08-03 Tom de Vries <tdevries@suse.de>
3959
3960 PR symtab/26333
3961 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3962 DW_LNE_lo_user/DW_LNE_hi_user range.
3963
3964 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3965
3966 PR ada/26318
3967 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3968 kind.
3969
3970 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3971
3972 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3973
3974 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975
3976 * breakpoint.c (set_breakpoint_condition): Update the condition
3977 expressions after checking that the input condition string parses
3978 successfully and does not contain junk at the end.
3979
3980 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3981
3982 * breakpoint.c (set_breakpoint_condition): Update the
3983 condition string after parsing the new condition successfully.
3984
3985 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3986
3987 * proc-api.c (_STRUCTURED_PROC): Don't define.
3988 * proc-events.c: Likewise.
3989 * proc-flags.c: Likewise.
3990 * proc-why.c: Likewise.
3991 * procfs.c: Likewise.
3992
3993 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3994 * configure, config.in: Regenerate.
3995
3996 2020-07-30 Tom de Vries <tdevries@suse.de>
3997
3998 PR build/26320
3999 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4000 m_red/m_green/m_blue in a union.
4001
4002 2020-07-29 Tom de Vries <tdevries@suse.de>
4003
4004 PR tdep/26280
4005 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4006
4007 2020-07-28 Tom Tromey <tromey@adacore.com>
4008
4009 PR symtab/26270:
4010 * symtab.h (find_pc_partial_function_sym): Declare.
4011 * cli/cli-cmds.c (disassemble_command): Use
4012 find_pc_partial_function_sym. Check asm_demangle.
4013 * blockframe.c (cache_pc_function_sym): New global.
4014 (cache_pc_function_name): Remove.
4015 (clear_pc_function_cache): Update.
4016 (find_pc_partial_function_sym): New function, from
4017 find_pc_partial_function.
4018 (find_pc_partial_function): Rewrite using
4019 find_pc_partial_function_sym.
4020
4021 2020-07-28 Tom Tromey <tromey@adacore.com>
4022
4023 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4024 help. Add usage.
4025
4026 2020-07-28 Tom Tromey <tromey@adacore.com>
4027
4028 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4029 <DW_OP_GNU_variable_value>: Cast to address type.
4030
4031 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4032
4033 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4034 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4035 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4036 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4037 (nbsd_get_siginfo_type): New.
4038 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4039 (_initialize_nbsd_tdep): New.
4040
4041 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4042
4043 PR binutils/26301
4044 * configure: Regenerated.
4045
4046 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4047
4048 PR binutils/26301
4049 * configure: Regenerated.
4050
4051 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4052
4053 * python/py-frame.c: Remove 'user-regs.h' include.
4054 (frapy_read_register): Rewrite to make use of
4055 gdbpy_parse_register_id.
4056 * python/py-registers.c (gdbpy_parse_register_id): New function,
4057 moved here from python/py-unwind.c. Updated the return type, and
4058 also accepts register descriptor objects.
4059 * python/py-unwind.c: Remove 'user-regs.h' include.
4060 (pyuw_parse_register_id): Moved to python/py-registers.c.
4061 (unwind_infopy_add_saved_register): Update to use
4062 gdbpy_parse_register_id.
4063 (pending_framepy_read_register): Likewise.
4064 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4065
4066 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4067
4068 * python/py-registers.c: Add 'user-regs.h' include.
4069 (register_descriptor_iter_find): New function.
4070 (register_descriptor_iterator_object_methods): New static global
4071 methods array.
4072 (register_descriptor_iterator_object_type): Add pointer to methods
4073 array.
4074
4075 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4076
4077 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4078 for all architectures on FreeBSD 11.3 and later.
4079
4080 2020-07-27 Tom Tromey <tromey@adacore.com>
4081
4082 * gcore.h (load_corefile): Don't declare.
4083
4084 2020-07-27 Tom de Vries <tdevries@suse.de>
4085
4086 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4087 * config.in: Regenerate.
4088 * configure: Regenerate.
4089
4090 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4091
4092 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4093 ws2tcpip.h. When checking whether socklen_t type is defined, use
4094 ws2tcpip.h if it is available and sys/socket.h isn't.
4095 * configure: Regenerate.
4096 * config.in: Regenerate.
4097
4098 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4099
4100 PR fortran/23051
4101 PR fortran/26139
4102 * valops.c (value_ind): Pass address to
4103 readjust_indirect_value_type.
4104 * value.c (readjust_indirect_value_type): Make parameter
4105 non-const, and add extra address parameter. Resolve original type
4106 before using it.
4107 * value.h (readjust_indirect_value_type): Update function
4108 signature and comment.
4109
4110 2020-07-25 Tom de Vries <tdevries@suse.de>
4111
4112 PR symtab/26243
4113 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4114 entries.
4115
4116 2020-07-24 Aaron Merey <amerey@redhat.com>
4117
4118 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4119 * configure: Rebuild.
4120
4121 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4122
4123 PR corefiles/26294
4124 * corelow.c (_initialize_corelow): Add period to help text
4125 for "maintenance print core-file-backed-mappings".
4126
4127 2020-07-23 Pedro Alves <pedro@palves.net>
4128
4129 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4130 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4131 meanwhile.
4132 * frame.c (frame_cache_generation, get_frame_cache_generation):
4133 New.
4134 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4135 (get_prev_frame_if_no_cycle): On exception, don't touch
4136 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4137 * frame.h (get_frame_cache_generation): Declare.
4138
4139 2020-07-23 Tom de Vries <tdevries@suse.de>
4140
4141 PR tui/26282
4142 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4143 New default constructor.
4144
4145 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4148 exclude non-statement entries.
4149
4150 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4151
4152 * NEWS (New commands): Mention new command
4153 "maintenance print core-file-backed-mappings".
4154
4155 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4156
4157 * corelow.c (gdbcmd.h): Include.
4158 (core_target::info_proc_mappings): New method.
4159 (get_current_core_target): New function.
4160 (maintenance_print_core_file_backed_mappings): New function.
4161 (_initialize_corelow): Add core-file-backed-mappings to
4162 "maint print" commands.
4163
4164 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4165
4166 * linux-tdep.c (dump_note_entry_p): New function.
4167 (linux_dump_mapping_p_ftype): New typedef.
4168 (linux_find_memory_regions_full): Add new parameter,
4169 should_dump_mapping_p.
4170 (linux_find_memory_regions): Adjust call to
4171 linux_find_memory_regions_full.
4172 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4173 call to linux_find_memory_regions_full.
4174
4175 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4176
4177 * corelow.c (solist.h, unordered_map): Include.
4178 (class core_target): Add field m_core_file_mappings and
4179 method build_file_mappings.
4180 (core_target::core_target): Call build_file_mappings.
4181 (core_target::~core_target): Free memory associated with
4182 m_core_file_mappings.
4183 (core_target::build_file_mappings): New method.
4184 (core_target::xfer_partial): Use m_core_file_mappings
4185 for memory transfers.
4186 * linux-tdep.c (linux_read_core_file_mappings): New
4187 function.
4188 (linux_core_info_proc_mappings): Rewrite to use
4189 linux_read_core_file_mappings.
4190 (linux_init_abi): Register linux_read_core_file_mappings.
4191
4192 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4193
4194 * arch-utils.c (default_read_core_file_mappings): New function.
4195 * arch-utils.c (default_read_core_file_mappings): Declare.
4196 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4197 * gdbarch.h, gdbarch.c: Regenerate.
4198
4199 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4200
4201 PR corefiles/25631
4202 * corelow.c (core_target:xfer_partial): Revise
4203 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4204 case after first checking the stratum beneath the core
4205 target.
4206 (has_all_memory): Return true.
4207 * target.c (raw_memory_xfer_partial): Revise comment
4208 regarding use of has_all_memory.
4209
4210 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4211
4212 * exec.h (section_table_xfer_memory): Revise declaration,
4213 replacing section name parameter with an optional callback
4214 predicate.
4215 * exec.c (section_table_xfer_memory): Likewise.
4216 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4217 of section_table_xfer_memory.
4218
4219 2020-07-22 Tom Tromey <tromey@adacore.com>
4220
4221 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4222 lookup_symbol_search_name.
4223
4224 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4227 redundant local variable.
4228 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4229 reference, not pointer, update code accordingly.
4230
4231 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4232 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4233
4234 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4235 * jit.c (jit_breakpoint_re_set_internal): Use the
4236 `skip_jit_symbol_lookup` field.
4237
4238 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4239 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4240
4241 * jit.c (jit_read_descriptor): Define the descriptor address once,
4242 use twice.
4243 (jit_breakpoint_deleted): Move the declaration of the loop variable
4244 `iter` into the loop header.
4245 (jit_breakpoint_re_set_internal): Move the declaration of the local
4246 variable `objf_data` to the first point of definition.
4247 (jit_event_handler): Move the declaration of local variables
4248 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4249 Rename `objf` to `jited`.
4250
4251 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4252
4253 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4254 Remove.
4255 * jit.c (get_jiter_objfile_data): Update.
4256
4257 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 * jit.c (struct jit_program_space_data): Remove.
4261 (jit_program_space_key): Remove.
4262 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4263 stuff.
4264 (get_jit_program_space_data): Remove.
4265 (jit_breakpoint_deleted): Iterate on all of the program space's
4266 objfiles.
4267 (jit_inferior_init): Likewise.
4268 (jit_breakpoint_re_set_internal): Likewise. Also change return
4269 type to void.
4270 (jit_breakpoint_re_set): Pass current_program_space to
4271 jit_breakpoint_re_set_internal.
4272
4273 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4274
4275 * jit.h (struct jiter_objfile_data) <cached_code_address,
4276 jit_breakpoint>: Move to here from ...
4277 * jit.c (jit_program_space_data): ... here.
4278 (jiter_objfile_data::~jiter_objfile_data): Update.
4279 (jit_breakpoint_deleted): Update.
4280 (jit_breakpoint_re_set_internal): Update.
4281
4282 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4285 checks.
4286 (jit_read_descriptor): Remove NULL check.
4287 (jit_event_handler): Add an assertion.
4288
4289 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4290
4291 * jit.h (struct jit_objfile_data): Split into...
4292 (struct jiter_objfile_data): ... this ...
4293 (struct jited_objfile_data): ... and this.
4294 * objfiles.h (struct objfile) <jit_data>: Remove.
4295 <jiter_data, jited_data>: New fields.
4296 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4297 (jiter_objfile_data::~jiter_objfile_data): ... this.
4298 (get_jit_objfile_data): Rename to ...
4299 (get_jiter_objfile_data): ... this.
4300 (add_objfile_entry): Update.
4301 (jit_read_descriptor): Use get_jiter_objfile_data.
4302 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4303 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4304 (jit_inferior_exit_hook): Use objfile's jited_data field.
4305
4306 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * jit.h: Forward-declare `struct minimal_symbol`.
4309 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4310 constructor, destructor, and an objfile* field.
4311 * jit.c (jit_objfile_data): Remove.
4312 (struct jit_objfile_data): Migrate from here to jit.h.
4313 (jit_objfile_data::~jit_objfile_data): New destructor
4314 implementation with code moved from free_objfile_data.
4315 (free_objfile_data): Delete.
4316 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4317 (jit_find_objf_with_entry_addr): Ditto.
4318 (jit_inferior_exit_hook): Ditto.
4319 (_initialize_jit): Remove the call to
4320 register_objfile_data_with_cleanup.
4321 * objfiles.h (struct objfile) <jit_data>: New field.
4322
4323 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324
4325 * jit.h: Forward-declare `struct objfile`.
4326 (jit_event_handler): Add a second parameter, the JITer objfile.
4327 * jit.c (jit_read_descriptor): Change the signature to take the
4328 JITer objfile as an argument instead of the jit_program_space_data.
4329 (jit_inferior_init): Update the call to jit_read_descriptor.
4330 (jit_event_handler): Use the new JITer objfile argument when calling
4331 jit_read_descriptor.
4332 * breakpoint.c (handle_jit_event): Update the call to
4333 jit_event_handler to pass the JITer objfile.
4334
4335 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4336
4337 * gdbarch.c: Regenerate.
4338 * gdbarch.h: Regenerate.
4339 * gdbarch.sh (handle_segmentation_fault): Remove method.
4340 * infrun.c (handle_segmentation_fault): Remove.
4341 (print_signal_received_reason): Remove call to
4342 handle_segmentation_fault.
4343
4344 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4345
4346 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4347 Rename to sparc64_linux_report_signal_info and add siggnal
4348 argument.
4349 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4350 instead of sparc64_linux_handle_segmentation_fault.
4351
4352 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4353
4354 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4355 i386_linux_report_signal_info instead of
4356 i386_linux_handle_segmentation_fault.
4357 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4358 to i386_linux_report_signal_info and add siggnal argument.
4359 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4360 of i386_linux_handle_segmentation_fault.
4361 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4362 to i386_linux_report_signal_info and add siggnal argument.
4363
4364 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4365
4366 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4367 hook if present.
4368
4369 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4370
4371 * gdbarch.c: Regenerate.
4372 * gdbarch.h: Regenerate.
4373 * gdbarch.sh (report_signal_info): New method.
4374 * infrun.c (print_signal_received_reason): Invoke gdbarch
4375 report_signal_info hook if present.
4376
4377 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * python/py-registers.c : Add 'unordered_map' include.
4380 (gdbpy_new_reggroup): Renamed to...
4381 (gdbpy_get_reggroup): ...this. Update to only create register
4382 group descriptors when needed.
4383 (gdbpy_reggroup_iter_next): Update.
4384
4385 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * python/py-registers.c (gdbpy_register_object_data): New static
4388 global.
4389 (gdbpy_register_object_data_init): New function.
4390 (gdbpy_new_register_descriptor): Renamed to...
4391 (gdbpy_get_register_descriptor): ...this, and update to reuse
4392 existing register descriptors where possible.
4393 (gdbpy_register_descriptor_iter_next): Update.
4394 (gdbpy_initialize_registers): Register new gdbarch data.
4395
4396 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * linux-nat.c (stopped_pids): Make static.
4399
4400 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4401
4402 PR ada/26235
4403 * gdbtypes.c (ada_discrete_type_low_bound,
4404 ada_discrete_type_high_bound): Handle undefined bounds.
4405
4406 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4407
4408 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4409 declaration.
4410 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4411 function.
4412
4413 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4414
4415 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4416 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4417 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4418 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4419 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4420 method.
4421
4422 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4423
4424 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4425 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4426 which are deprecated in Guile 3.0.
4427 * configure.ac (try_guile_versions): Add "guile-3.0".
4428 * configure (try_guile_versions): Regenerate.
4429 * NEWS: Update entry.
4430
4431 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4432 Doug Evans <dje@google.com>
4433
4434 PR gdb/21104
4435 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4436 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4437 USING_GUILE_BEFORE_2_2.
4438 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4439 Change type to 'scm_t_port_type *'.
4440 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4441 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4442 parameter and honor it. Update callers.
4443 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4444 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4445 functions.
4446 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4447 USING_GUILE_BEFORE_2_2.
4448 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4449 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4450 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4451 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4452 and 'SCM_PORT_TYPE'.
4453 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4454 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4455 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4456 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4457 [!USING_GUILE_BEFORE_2_2]: New functions.
4458 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4459 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4460 'gdbscm_memory_port_read'.
4461 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4462 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4463 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4464 function.
4465 (ioscm_init_memory_port): Remove.
4466 (ioscm_init_memory_port_stream): New function
4467 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4468 function.
4469 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4470 Return scm_from_uint (0).
4471 (gdbscm_set_memory_port_read_buffer_size_x)
4472 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4473 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4474 Return scm_from_uint (0).
4475 (gdbscm_set_memory_port_write_buffer_size_x)
4476 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4477 * configure.ac (try_guile_versions): Add "guile-2.2".
4478 * configure: Regenerate.
4479 * NEWS: Add entry.
4480
4481 2020-07-18 Tom Tromey <tom@tromey.com>
4482
4483 * linux-nat.c (linux_multi_process): Remove.
4484 (linux_nat_target::supports_multi_process): Return true.
4485
4486 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4487
4488 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4489 (riscv_lookup_target_description): Return pointer out of
4490 unique_ptr.
4491 * target-descriptions.c (allocate_target_description): Add
4492 comment.
4493 (target_desc_deleter::operator()): Likewise.
4494 * target-descriptions.h (struct target_desc_deleter): Moved to
4495 gdbsupport/tdesc.h.
4496 (target_desc_up): Likewise.
4497
4498 2020-07-17 Tom Tromey <tromey@adacore.com>
4499
4500 * linux-nat.c (linux_nat_target::supports_non_stop)
4501 (linux_nat_target::always_non_stop_p): Use "true".
4502 (linux_nat_target::supports_disable_randomization): Use "true" and
4503 "false".
4504
4505 2020-07-16 Caroline Tice <cmtice@google.com>
4506
4507 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4508 (RNGLIST_HEADER_SIZE64): New constant definition.
4509 (struct dwop_section_names): Add rnglists_dwo.
4510 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4511 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4512 (struct dwo_sections): Add rnglists field.
4513 (read_attribut_reprocess): Add tag parameter.
4514 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4515 (cu_debug_rnglists_section): New function (decl & definition).
4516 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4517 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4518 die whose range is being checked; get rnglist section from
4519 cu_debug_rnglists_section, to get from either objfile or dwo file as
4520 appropriate. Add cases for DW_RLE_base_addressx,
4521 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4522 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4523 test inside if-condition and updating complaint message.
4524 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4525 dwarf2_rnglists_process.
4526 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4527 dwarf2_ranges_process.
4528 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4529 need_ranges_base and update comment appropriately. Also pass die tag
4530 to dwarf2_ranges_read.
4531 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4532 need_ranges_base and update comment appropriately. Also pass die tag
4533 to dwarf2_ranges_process.
4534 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4535 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4536 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4537 need_ranges_base and update comment appropriately. Also pass die tag
4538 to read_attribute_reprocess and dwarf2_ranges_read.
4539 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4540 and update function comment appropriately.
4541 (read_loclist_index): Call read_loclists_rnglists_header instead of
4542 read_loclist_header.
4543 (read_rnglist_index): New function.
4544 (read_attribute_reprocess): Add tag parameter. Add code for
4545 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4546 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4547
4548 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4551 being resolved.
4552
4553 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4554
4555 * arch-utils.c (show_architecture): Update formatting of messages.
4556
4557 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4558
4559 * gdbtypes.h (struct type) <bounds>: Handle array and string
4560 types.
4561 * ada-lang.c (assign_aggregate): Use type::bounds on
4562 array/string type.
4563 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4564 * c-varobj.c (c_number_of_children): Likewise.
4565 (c_describe_child): Likewise.
4566 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4567 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4568 (f_type_print_base): Likewise.
4569 * f-valprint.c (f77_array_offset_tbl): Likewise.
4570 (f77_get_upperbound): Likewise.
4571 (f77_print_array_1): Likewise.
4572 * guile/scm-type.c (gdbscm_type_range): Likewise.
4573 * m2-typeprint.c (m2_array): Likewise.
4574 (m2_is_long_set_of_type): Likewise.
4575 * m2-valprint.c (get_long_set_bounds): Likewise.
4576 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4577 * python/py-type.c (typy_range): Likewise.
4578 * rust-lang.c (rust_internal_print_type): Likewise.
4579 * type-stack.c (type_stack::follow_types): Likewise.
4580 * valarith.c (value_subscripted_rvalue): Likewise.
4581 * valops.c (value_cast): Likewise.
4582
4583 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4586 callers to use the equivalent accessor methods.
4587
4588 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4591 (struct type) <bit_stride>: New method.
4592 (TYPE_BIT_STRIDE): Remove.
4593 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4594
4595 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4598 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4599 callers to use the equivalent accessor methods instead.
4600
4601 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4604 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4605 callers to use the equivalent accessor methods instead.
4606
4607 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4610 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4611 to use dynamic_prop::kind.
4612
4613 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4616 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4617 to get the bound property's kind and check against
4618 PROP_UNDEFINED.
4619
4620 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4623 all callers to use type::range_bounds followed by
4624 dynamic_prop::{low,high}.
4625
4626 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4629 const_val, set_const_val, baton, set_locexpr, set_loclist,
4630 set_addr_offset, variant_parts, set_variant_parts,
4631 original_type, set_original_type>: New methods.
4632 <kind>: Rename to...
4633 <m_kind>: ... this. Update all users to use the new methods
4634 instead.
4635 <data>: Rename to...
4636 <m_data>: ... this. Update all users to use the new methods
4637 instead.
4638
4639 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.c (get_discrete_bounds): Return failure if
4642 the range type's bounds are not both defined and constant
4643 values.
4644 (get_array_bounds): Update comment. Remove undefined bound check.
4645
4646 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4647
4648 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4649 the type::bounds method directly.
4650
4651 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4652
4653 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4654 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4655 are used to set the range type's bounds to use set_bounds.
4656
4657 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4658
4659 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4660
4661 2020-07-10 Pedro Alves <pedro@palves.net>
4662
4663 * gdbthread.h (inferior_ref): Define.
4664 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4665 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4666 * thread.c
4667 (scoped_restore_current_thread::restore):
4668 Adjust to gdb::ref_ptr.
4669 (scoped_restore_current_thread::~scoped_restore_current_thread):
4670 Remove manual decref handling.
4671 (scoped_restore_current_thread::scoped_restore_current_thread):
4672 Adjust to use
4673 inferior_ref::new_reference/thread_info_ref::new_reference.
4674 Incref the thread before calling get_frame_id instead of after.
4675 Let TARGET_CLOSE_ERROR propagate.
4676
4677 2020-07-10 Pedro Alves <pedro@palves.net>
4678
4679 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4680 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4681 NOT_AVAILABLE_ERROR.
4682 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4683 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4684
4685 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4686 Pedro Alves <pedro@palves.net>
4687
4688 PR gdb/26199
4689 * infrun.c (threads_are_resumed_pending_p): Delete.
4690 (do_target_wait): Remove threads_are_executing and
4691 threads_are_resumed_pending_p checks from the inferior_matches
4692 lambda. Update comments.
4693
4694 2020-07-10 Pedro Alves <pedro@palves.net>
4695
4696 PR gdb/26199
4697 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4698 executing threads.
4699
4700 2020-07-10 Pedro Alves <pedro@palves.net>
4701
4702 PR gdb/26199
4703 * infrun.c (handle_no_resumed): Handle multiple targets.
4704
4705 2020-07-10 Pedro Alves <pedro@palves.net>
4706
4707 PR gdb/26199
4708 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4709 target_is_async_p.
4710
4711 2020-07-10 Pedro Alves <pedro@palves.net>
4712
4713 PR gdb/26199
4714 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4715 threads, not all threads.
4716
4717 2020-07-10 Pedro Alves <pedro@palves.net>
4718
4719 PR gdb/26199
4720 * remote.c (remote_target::open_1): Pass remote target pointer as
4721 data to create_async_event_handler.
4722 (remote_async_inferior_event_handler): Mark async event handler
4723 before returning if the remote target still has either pending
4724 events or unacknowledged notifications.
4725
4726 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4727
4728 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4729 declaration.
4730 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4731 function.
4732
4733 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4734
4735 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4736 inferior_ptid.
4737
4738 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4739
4740 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4741 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4742 AT_FREEBSD_PS_STRINGS.
4743
4744 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4745
4746 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4747 of debugfile path on Windows.
4748
4749 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4750
4751 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4752 argument to 'data'.
4753
4754 2020-07-08 Tom Tromey <tromey@adacore.com>
4755
4756 * ada-lang.c (ada_exception_message_1): Use read_memory.
4757
4758 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 PR python/22748
4761 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4762 special handling for inline frames.
4763 * findvar.c (value_of_register_lazy): Skip inline frames when
4764 creating lazy register values.
4765 * frame.c (frame_id_computed_p): Delete definition.
4766 * frame.h (frame_id_computed_p): Delete declaration.
4767
4768 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4769
4770 * NEWS: Mention additions to Python API.
4771 * python/py-arch.c (archpy_register_groups): New function.
4772 (arch_object_methods): Add 'register_groups' method.
4773 * python/py-registers.c (reggroup_iterator_object): New struct.
4774 (reggroup_object): New struct.
4775 (gdbpy_new_reggroup): New function.
4776 (gdbpy_reggroup_to_string): New function.
4777 (gdbpy_reggroup_name): New function.
4778 (gdbpy_reggroup_iter): New function.
4779 (gdbpy_reggroup_iter_next): New function.
4780 (gdbpy_new_reggroup_iterator): New function
4781 (gdbpy_initialize_registers): Register new types.
4782 (reggroup_iterator_object_type): Define new Python type.
4783 (gdbpy_reggroup_getset): New static global.
4784 (reggroup_object_type): Define new Python type.
4785 * python/python-internal.h
4786
4787 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4790 * python/py-arch.c (archpy_registers): New function.
4791 (arch_object_methods): Add 'registers' method.
4792 * python/py-registers.c: New file.
4793 * python/python-internal.h
4794 (gdbpy_new_register_descriptor_iterator): Declare.
4795 (gdbpy_initialize_registers): Declare.
4796 * python/python.c (do_start_initialization): Call
4797 gdbpy_initialize_registers.
4798 * NEWS: Mention additions to the Python API.
4799
4800 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4801
4802 * NEWS: Mention new Python API method.
4803 * python/py-unwind.c (pending_framepy_architecture): New function.
4804 (pending_frame_object_methods): Add architecture method.
4805
4806 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * gdbarch.c: Regenerate.
4809 * gdbarch.h: Regenerate.
4810 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4811 (gdbarch_data): Use internal_error for the case where
4812 deprecated_set_gdbarch_data was originally needed.
4813 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4814 and use passed in obstack.
4815 (libunwind_frame_set_descr): Should no longer get back NULL from
4816 gdbarch_data.
4817 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4818 type.
4819 * user-regs.c (user_regs_init): Update parameters, and use passed
4820 in obstack.
4821 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4822 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4823
4824 2020-07-06 Tom de Vries <tdevries@suse.de>
4825
4826 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4827 End-Of-Sequence in lte_is_less_than.
4828 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4829 "gdb: Don't reorder line table entries too much when sorting".
4830
4831 2020-07-06 Tom de Vries <tdevries@suse.de>
4832
4833 PR tui/26205
4834 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4835
4836 2020-07-05 Tom de Vries <tdevries@suse.de>
4837
4838 PR build/26187
4839 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4840 std::uncaught_exceptions instead of deprecated
4841 std::uncaught_exception.
4842
4843 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4844
4845 * macroexp.h (macro_stringify): Return
4846 gdb::unique_xmalloc_ptr<char>.
4847 * macroexp.c (macro_stringify): Likewise.
4848 * macrotab.c (fixup_definition): Update.
4849
4850 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4851
4852 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4853 (lex_one_token): Update.
4854 * macroexp.c (struct macro_buffer) <release>: Return
4855 gdb::unique_xmalloc_ptr<char>.
4856 (macro_stringify): Update.
4857 (macro_expand): Update.
4858 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4859 * macroexp.h (macro_expand_next): Likewise.
4860
4861 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * macroexp.h (macro_lookup_ftype): Remove.
4864 (macro_expand, macro_expand_once, macro_expand_next): Remove
4865 lookup function parameters, add scope parameter.
4866 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4867 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4868 * macroscope.h (standard_macro_lookup): Change parameter type
4869 to macro_scope.
4870 * macroscope.c (standard_macro_lookup): Likewise.
4871 * c-exp.y (lex_one_token): Update.
4872 * macrocmd.c (macro_expand_command): Likewise.
4873 (macro_expand_once_command): Likewise.
4874
4875 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * inf-loop.c (inferior_event_handler): Remove client_data param.
4878 * inf-loop.h (inferior_event_handler): Likewise.
4879 * infcmd.c (step_1): Adjust.
4880 * infrun.c (proceed): Adjust.
4881 (fetch_inferior_event): Remove client_data param.
4882 (infrun_async_inferior_event_handler): Adjust.
4883 * infrun.h (fetch_inferior_event): Remove `void *` param.
4884 * linux-nat.c (handle_target_event): Adjust.
4885 * record-btrace.c (record_btrace_handle_async_inferior_event):
4886 Adjust.
4887 * record-full.c (record_full_async_inferior_event_handler):
4888 Adjust.
4889 * remote.c (remote_async_inferior_event_handler): Adjust.
4890
4891 2020-07-01 Tom Tromey <tom@tromey.com>
4892
4893 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4894 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4895
4896 2020-07-01 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4899 tui_gen_win_info.
4900 (tui_win_info::make_window): Merge with
4901 tui_gen_win_info::make_window.
4902 (tui_win_info::make_visible): Move from tui_gen_win_info.
4903 * tui/tui-win.c (tui_win_info::max_width): Move from
4904 tui_gen_win_info.
4905 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4906 type.
4907 <window_factory>: Likewise.
4908 * tui/tui-layout.c (tui_win_info::resize): Move from
4909 tui_gen_win_info.
4910 (make_standard_window): Change return type.
4911 (get_locator_window, tui_get_window_by_name): Likewise.
4912 (tui_layout_window::apply): Remove a cast.
4913 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4914 (struct tui_win_info): Merge with tui_gen_win_info.
4915 (struct tui_gen_win_info): Remove.
4916
4917 2020-07-01 Tom Tromey <tom@tromey.com>
4918
4919 * tui/tui-stack.h (struct tui_locator_window): Derive from
4920 tui_win_info.
4921 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4922 <can_box>: New method.
4923
4924 2020-07-01 Tom Tromey <tom@tromey.com>
4925
4926 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4927
4928 2020-07-01 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-regs.c (tui_data_window::display_registers_from)
4931 (tui_data_window::display_registers_from)
4932 (tui_data_window::first_data_item_displayed)
4933 (tui_data_window::delete_data_content_windows): Update.
4934 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4935 Remove.
4936 (tui_data_window::check_register_values): Update.
4937 (tui_data_item_window::rerender): Add parameters. Update.
4938 (tui_data_item_window::refresh_window): Remove.
4939 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4940 virtual.
4941 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4942 tui_gen_win_info.
4943 <refresh_window, max_height, min_height>: Remove.
4944 <rerender>: Add parameters.
4945 <x, y, visible>: New members.
4946 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4947 <m_item_width>: New member.
4948
4949 2020-07-01 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-regs.c (tui_data_window::show_register_group)
4952 (tui_data_window::check_register_values): Update.
4953 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4954 from item_no.
4955
4956 2020-07-01 Tom Tromey <tom@tromey.com>
4957
4958 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4959 useless "if".
4960
4961 2020-07-01 Tom Tromey <tom@tromey.com>
4962
4963 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4964 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4965
4966 2020-07-01 Tom Tromey <tom@tromey.com>
4967
4968 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4969 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4970 (struct tui_line_or_address): Move from tui-data.h.
4971 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4972 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4973 (tui_cmd_window, tui_source_window_base, tui_source_window)
4974 (tui_disasm_window): Don't declare.
4975 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4976 to tui-winsource.h.
4977 (SINGLE_KEY): Move to tui-stack.c.
4978
4979 2020-07-01 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4982 std::string.
4983 * tui/tui-regs.c (class tab_expansion_file): New.
4984 (tab_expansion_file::write): New method.
4985 (tui_register_format): Change return type. Use
4986 tab_expansion_file.
4987 (tui_get_register, tui_data_window::display_registers_from)
4988 (tui_data_item_window::rerender): Update.
4989 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4990 * tui/tui-io.c (tui_expand_tabs): Remove.
4991
4992 2020-07-01 Tom Tromey <tom@tromey.com>
4993
4994 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4995
4996 2020-07-01 Fangrui Song <maskray@google.com>
4997
4998 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4999
5000 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5001
5002 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5003 forms for DW_AT_associated and DW_AT_allocated attributes,
5004 which is already checked in function attr_to_dynamic_prop.
5005
5006 2020-06-30 Tom Tromey <tromey@adacore.com>
5007
5008 * dwarf2/read.c (quirk_rust_enum): Correctly call
5009 alloc_rust_variant for default-less enum.
5010
5011 2020-06-30 Tom Tromey <tromey@adacore.com>
5012
5013 PR build/26183:
5014 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5015 gdb::to_string.
5016
5017 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5020 * gdbarch.h: Re-generate.
5021
5022 2020-06-28 Tom Tromey <tom@tromey.com>
5023
5024 * command.h (cmd_types): Remove.
5025 (cmd_type): Don't declare.
5026 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5027 typedef.
5028 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5029 * cli/cli-decode.c (cmd_type): Remove.
5030
5031 2020-06-27 Pedro Alves <palves@redhat.com>
5032
5033 * fork-child.c (prefork_hook): Adjust.
5034 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5035 Delete.
5036 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5037 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5038 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5039 Remove declarations.
5040 (struct inferior) <set_tty, tty>: New methods.
5041 (struct inferior) <terminal>: Rename to ...
5042 (struct inferior) <m_terminal>: ... this and make private.
5043 * main.c (captured_main_1): Adjust.
5044 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5045 (mi_cmd_inferior_tty_show): Adjust.
5046 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5047 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5048
5049 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5050
5051 * configure.ac: Add --enable-libctf: handle --disable-static
5052 properly.
5053 * acinclude.m4: sinclude ../config/enable.m4.
5054 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5055 (LIBCTF): Substitute in.
5056 (CTF_DEPS): New, likewise.
5057 (CLIBS): libctf needs symbols from libbfd: move earlier.
5058 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5059 flags.
5060 * ctfread.c: Surround in ENABLE_LIBCTF.
5061 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5062 * configure: Regenerate.
5063 * config.in: Likewise.
5064
5065 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5068
5069 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * inferior.h (struct inferior) <terminal>: Change type to
5072 gdb::unique_xmalloc_ptr<char>.
5073 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5074 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5075 field, adjust to unique pointer.
5076 (get_inferior_io_terminal): Adjust to unique pointer.
5077
5078 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5081 registers, not just the known core set of registers.
5082
5083 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5086 fflags, frm, and fcsr registers.
5087 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5088 restore groups.
5089 (riscv_tdesc_unknown_reg): New function.
5090 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5091 tdesc_use_registers.
5092 * riscv-tdep.h (struct gdbarch_tdep): Add
5093 unknown_csrs_first_regnum, unknown_csrs_count,
5094 duplicate_fflags_regnum, duplicate_frm_regnum, and
5095 duplicate_fcsr_regnum fields.
5096
5097 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5100 callback, use the callback (when not null) to help number unknown
5101 registers.
5102 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5103 (tdesc_use_registers): Add extra parameter to declaration.
5104
5105 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5108 in the file.
5109 (class riscv_pending_register_alias): Likewise.
5110 (riscv_register_feature::register_info): Change 'required_p' field
5111 to 'required', and change its type. Add 'check' member function.
5112 (riscv_register_feature::register_info::check): Define new member
5113 function.
5114 (riscv_xreg_feature): Change initialisation of 'required' field.
5115 (riscv_freg_feature): Likewise.
5116 (riscv_virtual_feature): Likewise.
5117 (riscv_csr_feature): Likewise.
5118 (riscv_check_tdesc_feature): Take extra parameter, the csr
5119 tdesc_feature, rewrite the function to use the new
5120 riscv_register_feature::register_info::check function.
5121 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5122
5123 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * features/Makefile: Remove all references to the deleted files
5126 below.
5127 * features/riscv/32bit-csr.c: Deleted.
5128 * features/riscv/32bit-csr.xml: Deleted.
5129 * features/riscv/64bit-csr.c: Deleted.
5130 * features/riscv/64bit-csr.xml: Deleted.
5131 * features/riscv/rebuild-csr-xml.sh: Deleted.
5132
5133 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5136 whitespace error for declaration of names member variable.
5137 (struct riscv_register_feature): Add new prefer_first_name member
5138 variable, and fix whitespace error in declaration of registers.
5139 (riscv_xreg_feature): Initialize prefer_first_name field.
5140 (riscv_freg_feature): Likewise.
5141 (riscv_virtual_feature): Likewise.
5142 (riscv_csr_feature): Likewise.
5143 (riscv_register_name): Expand on comments. Remove register name
5144 modifications for CSR and virtual registers.
5145
5146 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5149 errors.
5150
5151 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5154 riscv-opc.h.
5155 (class riscv_pending_register_alias): New class.
5156 (riscv_check_tdesc_feature): Take vector of pending aliases and
5157 populate it as appropriate.
5158 (riscv_setup_register_aliases): Delete.
5159 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5160 to riscv_check_tdesc_feature in all cases. Use the vector to
5161 create the register aliases.
5162
5163 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5164
5165 * sol2-tdep.c (sol2_static_transform_name): Remove.
5166 (sol2_init_abi): Don't register it.
5167 * gdbarch.sh (static_transform_name): Remove.
5168 * gdbarch.c, gdbarch.h: Regenerate.
5169
5170 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5171 gdbarch_static_transform_name.
5172 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5173 * stabsread.c (define_symbol) <'X'>: Remove.
5174 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5175 handling.
5176 <'V'>: Likewise.
5177 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5178 <'S'>: Remove call to gdbarch_static_transform_name.
5179
5180 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5181
5182 * procfs.c (procfs_pre_trace): New function.
5183 (procfs_target::create_inferior): Pass it to fork_inferior.
5184
5185 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5186
5187 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5188 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5189 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5190 sol2-tdep.o, sparc-sol2-tdep.o.
5191 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5192 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5193 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5194 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5195
5196 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5197
5198 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5199 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5200 Call sol2_init_abi.
5201 Remove calls to set_gdbarch_skip_solib_resolver,
5202 set_gdbarch_core_pid_to_str.
5203 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5204 (i386_sol2_static_transform_name): Remove.
5205 (i386_sol2_init_abi): Call sol2_init_abi.
5206 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5207 set_gdbarch_static_transform_name,
5208 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5209 Use sol2_sigtramp_p.
5210 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5211 (sol2_sigtramp_p): New function.
5212 (sol2_static_transform_name): New function.
5213 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5214 (sol2_init_abi): New function.
5215 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5216 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5217 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5218 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5219 (sparc_sol2_static_transform_name): Remove.
5220 (sparc32_sol2_init_abi): Call sol2_init_abi.
5221 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5222 set_gdbarch_static_transform_name,
5223 set_gdbarch_skip_solib_resolver,
5224 set_gdbarch_core_pid_to_str.
5225 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5226 (sparc_sol2_static_transform_name): Remove
5227 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5228 call sol2_sigtramp_p.
5229 (sparc64_sol2_init_abi): Call sol2_init_abi.
5230 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5231 set_gdbarch_static_transform_name,
5232 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5233
5234 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5235
5236 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5237 * exec.c (validate_exec_file): If from_tty, set both
5238 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5239 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5240 and from_tty, unconditionally ask a confirmation.
5241
5242 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * target-descriptions.c (tdesc_architecture_name): Protect against
5245 NULL pointer dereference.
5246 (maint_print_xml_tdesc_cmd): New function.
5247 (_initialize_target_descriptions): Register new 'maint print
5248 xml-tdesc' command and give it the filename completer.
5249 * NEWS: Mention new 'maint print xml-tdesc' command.
5250
5251 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * target-descriptions.c (class tdesc_compatible_info): New class.
5254 (struct target_desc): Change type of compatible vector.
5255 (tdesc_compatible_p): Update for change in type of
5256 target_desc::compatible.
5257 (tdesc_compatible_info_list): New function.
5258 (tdesc_compatible_info_arch_name): New function.
5259 (tdesc_add_compatible): Update for change in type of
5260 target_desc::compatible.
5261 (print_c_tdesc::visit_pre): Likewise.
5262
5263 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5264
5265 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5266 whitespace to underscore.
5267 (maint_print_c_tdesc_cmd): Use fake filename for target
5268 descriptions that came from the target.
5269 (_initialize_target_descriptions): Add filename command completion
5270 for 'maint print c-tdesc'.
5271
5272 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5275 lines.
5276
5277 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5280 lines.
5281 (dwarf2_find_location_expression): Likewise.
5282 (call_site_parameter_matches): Likewise.
5283 (dwarf2_compile_expr_to_ax): Likewise.
5284 (disassemble_dwarf_expression): Likewise.
5285 (loclist_describe_location): Likewise.
5286
5287 2020-06-23 Pedro Alves <palves@redhat.com>
5288
5289 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5290 progspace-and-thread.h. Include scoped-mock-context.h instead.
5291 (register_to_value_test): Use scoped_mock_context.
5292 * regcache.c: Include "scoped-mock-context.h".
5293 (cooked_read_test): Don't error out if a target is already pushed.
5294 Use scoped_mock_context. Adjust.
5295 * scoped-mock-context.h: New file.
5296
5297 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5300 initializer.
5301 (ada_language::is_string_type_p): New member function.
5302 * c-lang.c (c_language_data): Delete la_is_string_type_p
5303 initializer.
5304 (cplus_language_data): Likewise.
5305 (asm_language_data): Likewise.
5306 (minimal_language_data): Likewise.
5307 * d-lang.c (d_language_data): Likewise.
5308 * f-lang.c (f_is_string_type_p): Delete function, implementation
5309 moved to f_language::is_string_type_p.
5310 (f_language_data): Delete la_is_string_type_p initializer.
5311 (f_language::is_string_type_p): New member function,
5312 implementation from f_is_string_type_p.
5313 * go-lang.c (go_is_string_type_p): Delete function, implementation
5314 moved to go_language::is_string_type_p.
5315 (go_language_data): Delete la_is_string_type_p initializer.
5316 (go_language::is_string_type_p): New member function,
5317 implementation from go_is_string_type_p.
5318 * language.c (language_defn::is_string_type_p): Define new member
5319 function.
5320 (default_is_string_type_p): Make static, add comment copied from
5321 header file.
5322 (unknown_language_data): Delete la_is_string_type_p initializer.
5323 (unknown_language::is_string_type_p): New member function.
5324 (auto_language_data): Delete la_is_string_type_p initializer.
5325 (auto_language::is_string_type_p): New member function.
5326 * language.h (language_data): Delete la_is_string_type_p field.
5327 (language_defn::is_string_type_p): Declare new function.
5328 (default_is_string_type_p): Delete desclaration, move comment to
5329 definition.
5330 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5331 moved to m2_language::is_string_type_p.
5332 (m2_language_data): Delete la_is_string_type_p initializer.
5333 (m2_language::is_string_type_p): New member function,
5334 implementation from m2_is_string_type_p.
5335 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5336 initializer.
5337 * opencl-lang.c (opencl_language_data): Likewise.
5338 * p-lang.c (pascal_is_string_type_p): Delete function,
5339 implementation moved to pascal_language::is_string_type_p.
5340 (pascal_language_data): Delete la_is_string_type_p initializer.
5341 (pascal_language::is_string_type_p): New member function,
5342 implementation from pascal_is_string_type_p.
5343 * rust-lang.c (rust_is_string_type_p): Delete function,
5344 implementation moved to rust_language::is_string_type_p.
5345 (rust_language_data): Delete la_is_string_type_p initializer.
5346 (rust_language::is_string_type_p): New member function,
5347 implementation from rust_is_string_type_p.
5348 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5349 is_string_type_p.
5350
5351 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5352
5353 * ada-lang.c (ada_language_data): Delete la_print_typedef
5354 initializer.
5355 (ada_language::print_typedef): New member function.
5356 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5357 (cplus_language_data): Likewise.
5358 (asm_language_data): Likewise.
5359 (minimal_language_data): Likewise.
5360 * d-lang.c (d_language_data): Likewise.
5361 * f-lang.c (f_language_data): Likewise.
5362 (f_language::print_typedef): New member function.
5363 * go-lang.c (go_language_data): Delete la_print_typedef
5364 initializer.
5365 * language.c (language_defn::print_typedef): Define member
5366 function.
5367 (unknown_language_data): Delete la_print_typedef initializer.
5368 (unknown_language::print_typedef): New member function.
5369 (auto_language_data): Delete la_print_typedef initializer.
5370 (auto_language::print_typedef): New member function.
5371 * language.h (language_data): Delete la_print_typedef field.
5372 (language_defn::print_typedef): Declare new member function.
5373 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5374 (default_print_typedef): Delete declaration.
5375 * m2-lang.c (m2_language_data): Delete la_print_typedef
5376 initializer.
5377 (m2_language::print_typedef): New member function.
5378 * objc-lang.c (objc_language_data): Delete la_print_typedef
5379 initializer.
5380 * opencl-lang.c (opencl_language_data): Likewise.
5381 * p-lang.c (pascal_language_data): Likewise.
5382 (pascal_language::print_typedef): New member function.
5383 * rust-lang.c (rust_print_typedef): Delete function,
5384 implementation moved to rust_language::print_typedef.
5385 (rust_language): Delete la_print_typedef initializer.
5386 (rust_language::print_typedef): New member function,
5387 implementation from rust_print_typedef.
5388 * typeprint.c (default_print_typedef): Delete.
5389
5390 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5393 (ada_language::printstr): New member function.
5394 * c-lang.c (c_language_data): Delete la_printstr initializer.
5395 (cplus_language_data): Likewise.
5396 (asm_language_data): Likewise.
5397 (minimal_language_data): Likewise.
5398 * d-lang.c (d_language_data): Likewise.
5399 * f-lang.c (f_printstr): Rename to f_language::printstr.
5400 (f_language_data): Delete la_printstr initializer.
5401 (f_language::printstr): New member function, implementation from
5402 f_printstr.
5403 * go-lang.c (go_language_data): Delete la_printstr initializer.
5404 * language.c (language_defn::printstr): Define new member
5405 function.
5406 (unk_lang_printstr): Delete.
5407 (unknown_language_data): Delete la_printstr initializer.
5408 (unknown_language::printstr): New member function.
5409 (auto_language_data): Delete la_printstr initializer.
5410 (auto_language::printstr): New member function.
5411 * language.h (language_data): Delete la_printstr field.
5412 (language_defn::printstr): Declare new member function.
5413 (LA_PRINT_STRING): Update call to printstr.
5414 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5415 (m2_language_data): Delete la_printstr initializer.
5416 (m2_language::printstr): New member function, implementation from
5417 m2_printstr.
5418 * objc-lang.c (objc_language_data): Delete la_printstr
5419 initializer.
5420 * opencl-lang.c (opencl_language_data): Likewise.
5421 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5422 (pascal_language_data): Delete la_printstr initializer.
5423 (pascal_language::printstr): New member function, implementation
5424 from pascal_printstr.
5425 * p-lang.h (pascal_printstr): Delete declaration.
5426 * rust-lang.c (rust_printstr): Update header comment.
5427 (rust_language_data): Delete la_printstr initializer.
5428 (rust_language::printstr): New member function.
5429
5430 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5433 (ada_language::printchar): New member function.
5434 * c-lang.c (c_language_data): Delete la_printchar initializer.
5435 (cplus_language_data): Likewise.
5436 (asm_language_data): Likewise.
5437 (minimal_language_data): Likewise.
5438 * d-lang.c (d_language_data): Likewise.
5439 * f-lang.c (f_printchar): Rename to f_language::printchar.
5440 (f_language_data): Delete la_printchar initializer.
5441 (f_language::printchar): New member function, implementation from
5442 f_printchar.
5443 * go-lang.c (go_language_data): Delete la_printchar initializer.
5444 * language.c (unk_lang_printchar): Delete.
5445 (language_defn::printchar): Define new member function.
5446 (unknown_language_data): Delete la_printchar initializer.
5447 (unknown_language::printchar): New member function.
5448 (auto_language_data): Delete la_printchar initializer.
5449 (auto_language::printchar): New member function.
5450 * language.h (language_data): Delete la_printchar field.
5451 (language_defn::printchar): Declare new member function.
5452 (LA_PRINT_CHAR): Update call to printchar.
5453 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5454 (m2_language::printchar): New member function.
5455 * objc-lang.c (objc_language_data): Delete la_printchar
5456 initializer.
5457 * opencl-lang.c (opencl_language_data): Likewise.
5458 * p-lang.c (pascal_language_data): Delete la_printchar
5459 initializer.
5460 (pascal_language::printchar): New member function.
5461 * rust-lang.c (rust_printchar): Rename to
5462 rust_language::printchar.
5463 (rust_language_data): Delete la_printchar initializer.
5464 (rust_language::printchar): New member function, implementation
5465 from rust_printchar.
5466
5467 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5468
5469 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5470 (ada_language_data): Delete la_emitchar initializer.
5471 (ada_language::emitchar): New member function, implementation from
5472 emit_char.
5473 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5474 (cplus_language_data): Likewise.
5475 (asm_language_data): Likewise.
5476 (minimal_language_data): Likewise.
5477 * d-lang.c (d_language_data): Likewise.
5478 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5479 (f_language_data): Delete la_emitchar initializer.
5480 (f_language::emitchar): New member function, implementation from
5481 f_emit_char.
5482 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5483 * language.c (unk_lang_emit_char): Delete.
5484 (language_defn::emitchar): New member function definition.
5485 (unknown_language_data): Delete la_emitchar initializer.
5486 (unknown_language::emitchar): New member function.
5487 (auto_language_data): Delete la_emitchar initializer.
5488 (auto_language::emitchar): New member function.
5489 * language.h (language_data): Delete la_emitchar field.
5490 (language_defn::emitchar): New member field declaration.
5491 (LA_EMIT_CHAR): Update call to emitchar.
5492 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5493 (m2_language_data): Delete la_emitchar initializer.
5494 (m2_language::emitchar): New member function, implementation from
5495 m2_emit_char.
5496 * objc-lang.c (objc_language_data): Delete la_emitchar
5497 initializer.
5498 * opencl-lang.c (opencl_language_data): Likewise.
5499 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5500 (pascal_language_data): Delete la_emitchar initializer.
5501 (pascal_language::emitchar): New member function, implementation
5502 from pascal_emit_char.
5503 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5504 (rust_language_data): Delete la_emitchar initializer.
5505 (rust_language::emitchar): New member function, implementation
5506 from rust_emitchar.
5507
5508 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5509
5510 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5511 (ada_language_data): Delete la_post_parser initializer.
5512 (ada_language::post_parser): New member function.
5513 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5514 (cplus_language_data): Likewise.
5515 (asm_language_data): Likewise.
5516 (minimal_language_data): Likewise.
5517 * d-lang.c (d_language_data): Likewise.
5518 * f-lang.c (f_language_data): Likewise.
5519 * go-lang.c (go_language_data): Likewise.
5520 * language.c (unknown_language_data): Likewise.
5521 (auto_language_data): Likewise.
5522 * language.h (language_data): Delete la_post_parser field.
5523 (language_defn::post_parser): New member function.
5524 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5525 * objc-lang.c (objc_language_data): Likewise.
5526 * opencl-lang.c (opencl_language_data): Likewise.
5527 * p-lang.c (pascal_language_data): Likewise.
5528 * parse.c (parse_exp_in_context): Update call to post_parser.
5529 (null_post_parser): Delete definition.
5530 * parser-defs.h (null_post_parser): Delete declaration.
5531 * rust-lang.c (rust_language_data): Delete la_post_parser
5532 initializer.
5533
5534 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * ada-lang.c (parse): Rename to ada_language::parser.
5537 (ada_language_data): Delete la_parser initializer.
5538 (ada_language::parser): New member function, implementation from
5539 parse.
5540 * c-lang.c (c_language_data): Delete la_parser initializer.
5541 (cplus_language_data): Likewise.
5542 (asm_language_data): Likewise.
5543 (minimal_language_data): Likewise.
5544 * d-lang.c (d_language_data): Likewise.
5545 (d_language::parser): New member function.
5546 * f-lang.c (f_language_data): Delete la_parser initializer.
5547 (f_language::parser): New member function.
5548 * go-lang.c (go_language_data): Delete la_parser initializer.
5549 (go_language::parser): New member function.
5550 * language.c (unk_lang_parser): Delete.
5551 (language_defn::parser): Define new member function.
5552 (unknown_language_data): Delete la_parser initializer.
5553 (unknown_language::parser): New member function.
5554 (auto_language_data): Delete la_parser initializer.
5555 (auto_language::parser): New member function.
5556 * language.h (language_data): Delete la_parser field.
5557 (language_defn::parser): Declare new member function.
5558 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5559 (m2_language::parser): New member function.
5560 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5561 * opencl-lang.c (opencl_language_data): Likewise.
5562 * p-lang.c (pascal_language_data): Likewise.
5563 (pascal_language::parser): New member function.
5564 * parse.c (parse_exp_in_context): Update call to parser.
5565 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5566 (rust_language::parser): New member function.
5567
5568 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5569
5570 * top.c (print_gdb_configuration): Print --with-python-libdir
5571 configuration value.
5572
5573 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5574
5575 * NEWS: Mention change to the alias command.
5576
5577 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578
5579 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5580 (alias_command_completer)
5581 (make_alias_options_def_group): New functions.
5582 (alias_opts, alias_option_defs): New struct and array.
5583 (alias_usage_error): Update usage.
5584 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5585 Use option framework.
5586 (_initialize_cli_cmds): Update alias command help.
5587 Update aliases command help.
5588 (show_user):
5589 Add NULL for new default_args lookup_cmd argument.
5590 (valid_command_p): Rename to validate_aliased_command.
5591 Add NULL for new default_args lookup_cmd argument. Verify that the
5592 aliased_command has no default args.
5593 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5594 (lookup_cmd_1, lookup_cmd): New argument default_args.
5595 (add_alias_cmd):
5596 Add NULL for new default_args lookup_cmd argument.
5597 (print_help_for_command): Show default args under the layout
5598 alias some_alias = some_aliased_cmd some_alias_default_arg.
5599 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5600 xfree default_args in destructor.
5601 * cli/cli-script.c (process_next_line, do_define_command):
5602 Add NULL for new default_args lookup_cmd argument.
5603 * command.h: Declare new default_args argument in lookup_cmd
5604 and lookup_cmd_1.
5605 * completer.c (complete_line_internal_1):
5606 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5607 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5608 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5609 Likewise.
5610 * infcmd.c (_initialize_infcmd): Likewise.
5611 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5612 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5613 * python/py-param.c (add_setshow_generic): Likewise.
5614 * remote.c (_initialize_remote): Likewise.
5615 * top.c (execute_command): Prepend default_args if command has some.
5616 (set_verbose):
5617 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5618 * tracepoint.c (validate_actionline, encode_actions_1):
5619 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5620
5621 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5622
5623 * jit.c (jit_read_descriptor): Use bool as the return type.
5624 (jit_breakpoint_re_set_internal): Use bool as the return type.
5625 Invert the return value logic; return true if the jit breakpoint
5626 has been successfully initialized.
5627 (jit_inferior_init): Update the call to
5628 jit_breakpoint_re_set_internal.
5629
5630 2020-06-22 Pedro Alves <palves@redhat.com>
5631
5632 PR gdb/25939
5633 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5634 Use the current inferior instead. Don't return
5635 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5636 wait again.
5637 * sol-thread.c (sol_thread_target::wait): Don't reference
5638 inferior_ptid.
5639 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5640 (sol_update_thread_list_callback): Use the current inferior's pid
5641 instead of inferior_ptid.
5642
5643 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5644
5645 * procfs.c: Cleanup many comments.
5646
5647 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5648 (AFTER_WATCHFLAG): Replace by value.
5649
5650 (MAIN_PROC_NAME_FORMAT): Inline ...
5651 (create_procinfo): ... here.
5652
5653 (procfs_debug_inferior): Remove SYS_exec handling.
5654 (syscall_is_exec): Likewise.
5655 (procfs_set_exec_trap): Likewise.
5656
5657 (syscall_is_lwp_exit): Inline in callers.
5658 (syscall_is_exit): Likewise.
5659 (syscall_is_exec): Likewise.
5660 (syscall_is_lwp_create): Likewise.
5661
5662 (invalidate_cache): Remove #if 0 code.
5663
5664 (make_signal_thread_runnable): Remove.
5665 (procfs_target::resume): Remove #if 0 code.
5666
5667 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5668
5669 PR gdb/25939
5670 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5671 call ...
5672 (procfs_target::create_inferior): ... here.
5673
5674 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5675
5676 * exec.c (validate_exec_file): Ensure the build-id is up to
5677 date by calling reopen_exec_file (that checks file timestamp
5678 to decide to re-read the file).
5679
5680 2020-06-18 Pedro Alves <palves@redhat.com>
5681
5682 PR gdb/25412
5683 * gdbthread.h (delete_thread, delete_thread_silent)
5684 (find_thread_ptid): Update comments.
5685 * thread.c (current_thread_): New global.
5686 (is_current_thread): Move higher, and reimplement.
5687 (inferior_thread): Reimplement.
5688 (set_thread_exited): Use bool. Add assertions.
5689 (add_thread_silent): Simplify thread-reuse handling by always
5690 calling delete_thread.
5691 (delete_thread): Remove intro comment.
5692 (find_thread_ptid): Skip exited threads.
5693 (switch_to_thread_no_regs): Write to current_thread_.
5694 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5695 INFERIOR_PTID. Clear current_thread_.
5696
5697 2020-06-18 Pedro Alves <palves@redhat.com>
5698
5699 * aix-thread.c (pd_update): Use switch_to_thread.
5700
5701 2020-06-18 Pedro Alves <palves@redhat.com>
5702
5703 * ravenscar-thread.c (ravenscar_thread_target): Update.
5704 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5705 (ravenscar_thread_target::add_active_thread): ... this. Don't
5706 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5707 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5708
5709 2020-06-18 Pedro Alves <palves@redhat.com>
5710
5711 * nat/windows-nat.c (current_windows_thread): Remove.
5712 * nat/windows-nat.h (current_windows_thread): Remove.
5713 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5714 Adjust.
5715 (display_selectors): Adjust to fetch the current
5716 windows_thread_info based on inferior_ptid.
5717 (fake_create_process): No longer write to current_windows_thread.
5718 (windows_nat_target::get_windows_debug_event):
5719 Don't set inferior_ptid or current_windows_thread.
5720 (windows_nat_target::wait): Adjust to not rely on
5721 current_windows_thread.
5722 (do_initial_windows_stuff): Now a method of windows_nat_target.
5723 Switch to the last_ptid thread.
5724 (windows_nat_target::attach): Adjust.
5725 (windows_nat_target::detach): Use switch_to_no_thread instead of
5726 writing to inferior_ptid directly.
5727 (windows_nat_target::create_inferior): Adjust.
5728
5729 2020-06-18 Pedro Alves <palves@redhat.com>
5730
5731 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5732
5733 2020-06-18 Pedro Alves <palves@redhat.com>
5734
5735 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5736 after creating it, instead of writing to inferior_ptid. Don't
5737 write to inferior_ptid.
5738
5739 2020-06-18 Pedro Alves <palves@redhat.com>
5740
5741 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5742
5743 2020-06-18 Pedro Alves <palves@redhat.com>
5744
5745 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5746 it, instead of writing to inferior_ptid.
5747
5748 2020-06-18 Pedro Alves <palves@redhat.com>
5749
5750 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5751 to inferior_ptid.
5752
5753 2020-06-18 Pedro Alves <palves@redhat.com>
5754
5755 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5756 instead of writing to inferior_ptid directly.
5757
5758 2020-06-18 Pedro Alves <palves@redhat.com>
5759
5760 * corelow.c (core_target::close): Use switch_to_no_thread instead
5761 of writing to inferior_ptid directly.
5762 (add_to_thread_list, core_target_open): Use switch_to_thread
5763 instead of writing to inferior_ptid directly.
5764
5765 2020-06-18 Pedro Alves <palves@redhat.com>
5766
5767 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5768 inferior_ptid.
5769 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5770 inferior_ptid.
5771 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5772 inferior_ptid directly.
5773 (darwin_nat_target::init_thread_list): Switch to thread, instead
5774 of writing to inferior_ptid.
5775 (darwin_nat_target::attach): Don't write to inferior_ptid.
5776 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5777
5778 2020-06-18 Pedro Alves <palves@redhat.com>
5779
5780 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5781 thread.
5782 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5783 Instead use switch_to_thread.
5784 (gnu_nat_target::detach): Use switch_to_no_thread
5785 instead of writing to inferior_ptid directly. Used passed-in
5786 inferior instead of looking up the inferior by pid.
5787
5788 2020-06-18 Pedro Alves <palves@redhat.com>
5789
5790 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5791 inferior_ptid.
5792
5793 2020-06-18 Pedro Alves <palves@redhat.com>
5794
5795 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5796 inferior_ptid.
5797 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5798 thread.
5799 (nto_procfs_target::detach): Avoid referencing
5800 inferior_ptid. Use switch_to_no_thread instead of writing to
5801 inferior_ptid directly.
5802 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5803 instead of writing to inferior_ptid directly.
5804 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5805 to thread.
5806
5807 2020-06-18 Pedro Alves <palves@redhat.com>
5808
5809 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5810 after creating it, instead of writing to inferior_ptid.
5811 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5812 to inferior_ptid directly.
5813 (gdbsim_target::wait): Don't write to inferior_ptid.
5814
5815 2020-06-18 Pedro Alves <palves@redhat.com>
5816
5817 * remote.c (remote_target::remote_notice_new_inferior): Use
5818 switch_to_thread instead of writing to inferior_ptid directly.
5819 (remote_target::add_current_inferior_and_thread): Use
5820 switch_to_no_thread instead of writing to inferior_ptid directly.
5821 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5822 and switch_to_thread instead of using set_current_inferior or
5823 writing to inferior_ptid directly.
5824
5825 2020-06-18 Pedro Alves <palves@redhat.com>
5826
5827 * tracectf.c (ctf_target_open): Switch to added thread instead of
5828 writing to inferior_ptid directly.
5829 (ctf_target::close): Use switch_to_no_thread instead of writing to
5830 inferior_ptid directly.
5831
5832 2020-06-18 Pedro Alves <palves@redhat.com>
5833
5834 * tracefile-tfile.c (tfile_target_open): Don't write to
5835 inferior_ptid directly, instead switch to added thread.
5836 (tfile_target::close): Use switch_to_no_thread instead of writing
5837 to inferior_ptid directly.
5838
5839 2020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5842 (procfs_target::detach): Use switch_to_no_thread
5843 instead of writing to inferior_ptid directly.
5844 (do_attach): Change return type to void. Switch to the added
5845 thread.
5846 (procfs_target::create_inferior): Switch to the added thread.
5847 (procfs_do_thread_registers): Don't write to inferior_ptid.
5848
5849 2020-06-18 Pedro Alves <palves@redhat.com>
5850
5851 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5852 of writing to inferior_ptid.
5853 (scoped_restore_exited_inferior): Delete.
5854 (handle_vfork_child_exec_or_exit): Simplify using
5855 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5856 instead of writing to inferior_ptid.
5857 (THREAD_STOPPED_BY): Delete.
5858 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5859 (thread_stopped_by_hw_breakpoint): Delete.
5860 (save_waitstatus): Use
5861 scoped_restore_current_thread+switch_to_thread, and call
5862 target_stopped_by_watchpoint instead of
5863 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5864 instead of thread_stopped_by_sw_breakpoint, and
5865 target_stopped_by_hw_breakpoint instead of
5866 thread_stopped_by_hw_breakpoint.
5867 (handle_inferior_event)
5868 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5869 inferior_ptid directly, nor
5870 set_current_inferior/set_current_program_space. Use
5871 switch_to_thread / switch_to_inferior_no_thread instead.
5872
5873 2020-06-18 Pedro Alves <palves@redhat.com>
5874
5875 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5876 instead of writing to inferior_ptid.
5877
5878 2020-06-18 Pedro Alves <palves@redhat.com>
5879
5880 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5881 added thread.
5882 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5883 to the added thread.
5884 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5885 instead of writing to inferior_ptid.
5886
5887 2020-06-18 Pedro Alves <palves@redhat.com>
5888
5889 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5890 (register_to_value_test): Mock a program_space too. Heap-allocate
5891 the address space. Don't write to inferior_ptid. Use
5892 switch_to_thread instead.
5893
5894 2020-06-18 Pedro Alves <palves@redhat.com>
5895
5896 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5897 Delete.
5898 (find_signalled_thread()): New, factored out from
5899 linux_make_corefile_notes and adjusted to handle exited threads.
5900 (linux_make_corefile_notes): Adjust to use the new
5901 find_signalled_thread.
5902
5903 2020-06-18 Pedro Alves <palves@redhat.com>
5904
5905 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5906 of saving/restoring inferior_ptid.
5907
5908 2020-06-17 Tom Tromey <tom@tromey.com>
5909
5910 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5911 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5912 declare.
5913 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5914
5915 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5918 of partial symtabs.
5919
5920 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * regformats/reg-arm.dat: Remove.
5923 * regformats/reg-bfin.dat: Remove.
5924 * regformats/reg-cris.dat: Remove.
5925 * regformats/reg-crisv32.dat: Remove.
5926 * regformats/reg-m32r.dat: Remove.
5927 * regformats/reg-tilegx.dat: Remove.
5928 * regformats/reg-tilegx32.dat: Remove.
5929
5930 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * features/Makefile (WHICH): Remove arm files.
5933 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5934 * regformats/arm/arm-with-neon.dat: Remove.
5935 * regformats/arm/arm-with-vfpv2.dat: Remove.
5936 * regformats/arm/arm-with-vfpv3.dat: Remove.
5937
5938 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * features/Makefile (XMLTOC): Remove rx.xml.
5941
5942 2020-06-17 Pedro Alves <palves@redhat.com>
5943
5944 * gdbthread.h (thread_control_state) <trap_expected> Update
5945 comments.
5946
5947 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5950 ada_language::lookup_symbol_nonlocal.
5951 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5952 (ada_language::lookup_symbol_nonlocal): New member function,
5953 implementation from ada_lookup_symbol_nonlocal.
5954 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5955 initializer.
5956 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5957 initializer.
5958 (cplus_language::lookup_symbol_nonlocal): New member function.
5959 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5960 (minimal_language_data) Likewise.
5961 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5962 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5963 initializer.
5964 (d_language::lookup_symbol_nonlocal): New member function.
5965 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5966 initializer.
5967 (f_language::lookup_symbol_nonlocal): New member function.
5968 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5969 initializer.
5970 * language.c (unknown_language_data): Likewise.
5971 (auto_language_data): Likewise.
5972 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5973 field.
5974 (language_defn::lookup_symbol_nonlocal): New member function.
5975 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5976 initializer.
5977 * objc-lang.c (objc_language_data): Likewise.
5978 * opencl-lang.c (opencl_language_data): Likewise.
5979 * p-lang.c (pascal_language_data): Likewise.
5980 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5981 rust_language::lookup_symbol_nonlocal.
5982 (rust_language_data): Delete la_lookup_symbol_nonlocal
5983 initializer.
5984 (rust_language::lookup_symbol_nonlocal): New member function,
5985 implementation from rust_lookup_symbol_nonlocal.
5986 * symtab.c (lookup_symbol_aux): Update call to
5987 lookup_symbol_nonlocal.
5988 (basic_lookup_symbol_nonlocal): Rename to...
5989 (language_defn::lookup_symbol_nonlocal): ...this, and update
5990 header comment. Remove language_defn parameter, and replace with
5991 uses of `this'.
5992 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5993
5994 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5997 initializer.
5998 (ada_language::value_print_inner): New member function.
5999 * c-lang.c (c_language_data): Delete la_value_print_inner
6000 initializer.
6001 (cplus_language_data): Likewise.
6002 (asm_language_data): Likewise.
6003 (minimal_language_data): Likewise.
6004 * d-lang.c (d_language_data): Likewise.
6005 (d_language::value_print_inner): New member function.
6006 * f-lang.c (f_language_data): Delete la_value_print_inner
6007 initializer.
6008 (f_language::value_print_inner): New member function.
6009 * f-lang.h (f_value_print_innner): Rename to...
6010 (f_value_print_inner): ...this (note spelling of 'inner').
6011 * f-valprint.c (f_value_print_innner): Rename to...
6012 (f_value_print_inner): ...this (note spelling of 'inner').
6013 * go-lang.c (go_language_data): Delete la_value_print_inner
6014 initializer.
6015 (go_language::value_print_inner): New member function.
6016 * language.c (language_defn::value_print_inner): Define new member
6017 function.
6018 (unk_lang_value_print_inner): Delete.
6019 (unknown_language_data): Delete la_value_print_inner initializer.
6020 (unknown_language::value_print_inner): New member function.
6021 (auto_language_data): Delete la_value_print_inner initializer.
6022 (auto_language::value_print_inner): New member function.
6023 * language.h (language_data): Delete la_value_print_inner field.
6024 (language_defn::value_print_inner): Delcare new member function.
6025 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6026 initializer.
6027 (m2_language::value_print_inner): New member function.
6028 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6029 initializer.
6030 * opencl-lang.c (opencl_language_data): Likewise.
6031 * p-lang.c (pascal_language_data): Likewise.
6032 (pascal_language::value_print_inner): New member function.
6033 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6034 initializer.
6035 (rust_language::value_print_inner): New member function.
6036 * valprint.c (do_val_print): Update call to value_print_inner.
6037
6038 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * ada-lang.c (ada_language_data): Delete la_value_print
6041 initializer.
6042 (ada_language::value_print): New member function.
6043 * c-lang.c (c_language_data): Delete la_value_print initializer.
6044 (cplus_language_data): Likewise.
6045 (asm_language_data): Likewise.
6046 (minimal_language_data): Likewise.
6047 * d-lang.c (d_language_data): Likewise.
6048 * f-lang.c (f_language_data): Likewise.
6049 * go-lang.c (go_language_data): Likewise.
6050 * language.c (unk_lang_value_print): Delete.
6051 (language_defn::value_print): Define new member function.
6052 (unknown_language_data): Delete la_value_print initializer.
6053 (unknown_language::value_print): New member function.
6054 (auto_language_data): Delete la_value_print initializer.
6055 (auto_language::value_print): New member function.
6056 * language.h (language_data): Delete la_value_print field.
6057 (language_defn::value_print): Declare new member function.
6058 (LA_VALUE_PRINT): Update call to value_print.
6059 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6060 * objc-lang.c (objc_language_data): Likewise.
6061 * opencl-lang.c (opencl_language_data): Likewise.
6062 * p-lang.c (pascal_language_data): Likewise.
6063 (pascal_language::value_print): New member function.
6064 * rust-lang.c (rust_language_data): Delete la_value_print
6065 initializer.
6066
6067 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * ada-lang.c (ada_watch_location_expression): Rename to
6070 ada_language::watch_location_expression.
6071 (ada_language_data): Delete la_watch_location_expression
6072 initializer.
6073 (ada_language::watch_location_expression): New member function,
6074 implementation from ada_watch_location_expression.
6075 * breakpoint.c (watch_command_1): Update call to
6076 watch_location_expression.
6077 * c-lang.c (c_watch_location_expression): Rename to
6078 language_defn::watch_location_expression.
6079 (c_language_data): Delete la_watch_location_expression
6080 initializer.
6081 (cplus_language_data): Likewise.
6082 (asm_language_data): Likewise.
6083 (minimal_language_data): Likewise.
6084 * c-lang.h (c_watch_location_expression): Delete declaration.
6085 * d-lang.c (d_language_data): Delete la_watch_location_expression
6086 initializer.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_language_data): Likewise.
6089 * language.c (language_defn::watch_location_expression): Member
6090 function implementation from c_watch_location_expression.
6091 (unknown_language_data): Delete la_watch_location_expression
6092 initializer.
6093 (auto_language_data): Likewise.
6094 * language.h (language_data): Delete la_watch_location_expression
6095 field.
6096 (language_defn::watch_location_expression): Declare new member
6097 function.
6098 * m2-lang.c (m2_language_data): Delete
6099 la_watch_location_expression initializer.
6100 * objc-lang.c (objc_language_data): Likewise.
6101 * opencl-lang.c (opencl_language_data): Likewise.
6102 * p-lang.c (pascal_language_data): Likewise.
6103 * rust-lang.c (rust_watch_location_expression): Rename to
6104 rust_language::watch_location_expression.
6105 (rust_language_data): Delete la_watch_location_expression
6106 initializer.
6107 (rust_language::watch_location_expression): New member function,
6108 implementation from rust_watch_location_expression.
6109
6110 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6113 ada_language::collect_symbol_completion_matches.
6114 (ada_language_data): Delete la_collect_symbol_completion_matches
6115 initializer.
6116 (ada_language::collect_symbol_completion_matches): New member
6117 function, implementation from
6118 ada_collect_symbol_completion_matches.
6119 * c-lang.c (c_language_data): Delete
6120 la_collect_symbol_completion_matches initializer.
6121 (cplus_language_data): Likewise.
6122 (asm_language_data): Likewise.
6123 (minimal_language_data): Likewise.
6124 * d-lang.c (d_language_data): Likewise.
6125 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6126 f_language::collect_symbol_completion_matches.
6127 (f_language_data): Delete la_collect_symbol_completion_matches
6128 initializer.
6129 (f_language::collect_symbol_completion_matches) New member
6130 function, implementation from f_collect_symbol_completion_matches.
6131 * go-lang.c (go_language_data): Delete
6132 la_collect_symbol_completion_matches initializer.
6133 * language.c (unknown_language_data): Likewise.
6134 (auto_language_data): Likewise.
6135 * language.h (language_data): Delete
6136 la_collect_symbol_completion_matches field.
6137 (language_defn::collect_symbol_completion_matches): New member
6138 function.
6139 * m2-lang.c (m2_language_data): Delete
6140 la_collect_symbol_completion_matches initializer.
6141 * objc-lang.c (objc_language_data): Likewise.
6142 * opencl-lang.c (opencl_language_data): Likewise.
6143 * p-lang.c (pascal_language_data): Likewise.
6144 * rust-lang.c (rust_language_data): Likewise.
6145 * symtab.c (default_collect_symbol_completion_matches): Delete.
6146 (collect_symbol_completion_matches): Update call to
6147 collect_symbol_completion_matches.
6148 (collect_symbol_completion_matches_type): Likewise.
6149 * symtab.h (default_collect_symbol_completion_matches): Delete
6150 declaration.
6151
6152 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6155 (ada_language_data): Delete la_word_break_characters initializer.
6156 (ada_language::word_break_characters): New member function.
6157 * c-lang.c (c_language_data): Delete la_word_break_characters
6158 initializer.
6159 (cplus_language_data): Likewise.
6160 (asm_language_data): Likewise.
6161 (minimal_language_data): Likewise.
6162 * completer.c: Update global comment.
6163 (advance_to_expression_complete_word_point): Update call to
6164 word_break_characters.
6165 (complete_files_symbols): Likewise.
6166 (complete_line_internal_1): Likewise.
6167 (default_completer_handle_brkchars): Likewise.
6168 (skip_quoted_chars): Likewise.
6169 * d-lang.c (d_language_data): Delete la_word_break_characters
6170 initializer.
6171 * f-lang.c (f_word_break_characters): Delete.
6172 (f_language_data): Delete la_word_break_characters initializer.
6173 (f_language::word_break_characters): New member function.
6174 * go-lang.c (go_language_data): Delete la_word_break_characters
6175 initializer.
6176 * language.c (unknown_language_data): Likewise.
6177 (auto_language_data): Likewise.
6178 * language.h (default_word_break_characters): Move declaration to
6179 earlier in the file.
6180 (language_data): Delete la_word_break_characters field.
6181 (language_defn::word_break_characters): New member function.
6182 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6183 initializer.
6184 * objc-lang.c (objc_language_data): Likewise.
6185 * opencl-lang.c (opencl_language_data): Likewise.
6186 * p-lang.c (pascal_language_data): Likewise.
6187 * rust-lang.c (rust_language_data): Likewise.
6188
6189 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6190
6191 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6192 (ada_language_data): Delete la_get_symbol_name_matcher
6193 initializer.
6194 (language_defn::get_symbol_name_matcher_inner): New member
6195 function.
6196 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6197 initializer.
6198 (cplus_language_data): Likewise.
6199 (cplus_language::get_symbol_name_matcher_inner): New member
6200 function.
6201 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6202 (minimal_language_data): Likewise.
6203 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6204 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6205 initializer.
6206 * dictionary.c (iter_match_first_hashed): Update call to
6207 get_symbol_name_matcher.
6208 (iter_match_next_hashed): Likewise.
6209 (iter_match_next_linear): Likewise.
6210 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6211 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6212 initializer.
6213 (f_language::get_symbol_name_matcher_inner): New member function.
6214 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6215 initializer.
6216 * language.c (default_symbol_name_matcher): Update header comment,
6217 make static.
6218 (language_defn::get_symbol_name_matcher): New definition.
6219 (language_defn::get_symbol_name_matcher_inner): Likewise.
6220 (get_symbol_name_matcher): Delete.
6221 (unknown_language_data): Delete la_get_symbol_name_matcher
6222 initializer.
6223 (auto_language_data): Likewise.
6224 * language.h (language_data): Delete la_get_symbol_name_matcher
6225 field.
6226 (language_defn::get_symbol_name_matcher): New member function.
6227 (language_defn::get_symbol_name_matcher_inner): Likewise.
6228 (default_symbol_name_matcher): Delete declaration.
6229 * linespec.c (find_methods): Update call to
6230 get_symbol_name_matcher.
6231 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6232 initializer.
6233 * minsyms.c (lookup_minimal_symbol): Update call to
6234 get_symbol_name_matcher.
6235 (iterate_over_minimal_symbols): Likewise.
6236 * objc-lang.c (objc_language_data): Delete
6237 la_get_symbol_name_matcher initializer.
6238 * opencl-lang.c (opencl_language_data): Likewise.
6239 * p-lang.c (pascal_language_data): Likewise.
6240 * psymtab.c (psymbol_name_matches): Update call to
6241 get_symbol_name_matcher.
6242 * rust-lang.c (rust_language_data): Delete
6243 la_get_symbol_name_matcher initializer.
6244 * symtab.c (symbol_matches_search_name): Update call to
6245 get_symbol_name_matcher.
6246 (compare_symbol_name): Likewise.
6247
6248 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * ada-lang.c (ada_language_data): Delete la_compute_program
6251 initializer.
6252 * c-lang.c (c_language_data): Likewise.
6253 (c_language::compute_program): New member function.
6254 (cplus_language_data): Delete la_compute_program initializer.
6255 (cplus_language::compute_program): New member function.
6256 (asm_language_data): Delete la_compute_program initializer.
6257 (minimal_language_data): Likewise.
6258 * c-lang.h (c_compute_program): Update comment.
6259 (cplus_compute_program): Likewise.
6260 * compile/compile-c-support.c (c_compute_program): Likewise.
6261 (cplus_compute_program): Likewise.
6262 * compile/compile.c (compile_to_object): Update call to
6263 la_compute_program.
6264 * d-lang.c (d_language_data): Delete la_compute_program
6265 initializer.
6266 * f-lang.c (f_language_data): Likewise.
6267 * go-lang.c (go_language_data): Likewise.
6268 * language.c (unknown_language_data): Likewise.
6269 (auto_language_data): Likewise.
6270 * language.h (language_data): Delete la_compute_program field.
6271 (language_defn::compute_program): New member function.
6272 * m2-lang.c (m2_language_data): Delete la_compute_program
6273 initializer.
6274 * objc-lang.c (objc_language_data): Likewise.
6275 * opencl-lang.c (opencl_language_data): Likewise.
6276 * p-lang.c (pascal_language_data): Likewise.
6277 * rust-lang.c (rust_language_data): Likewise.
6278
6279 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * ada-lang.c (ada_language_data) Delete
6282 la_class_name_from_physname initializer.
6283 * c-lang.c (c_language_data): Likewise.
6284 (cplus_language_data): Likewise.
6285 (cplus_language::class_name_from_physname): New member function.
6286 (asm_language_data): Delete la_class_name_from_physname
6287 initializer.
6288 (minimal_language_data): Likewise.
6289 * d-lang.c (d_language_data): Likewise.
6290 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6291 method on language_defn class.
6292 (guess_full_die_structure_name): Likewise.
6293 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6294 initializer.
6295 * go-lang.c (go_language_data): Likewise.
6296 * language.c (language_class_name_from_physname): Delete.
6297 (unk_lang_class_name): Delete.
6298 (unknown_language_data): Delete la_class_name_from_physname
6299 initializer.
6300 (auto_language_data): Likewise.
6301 * language.h (language_data): Delete la_class_name_from_physname
6302 field.
6303 (language_defn::class_name_from_physname): New function.
6304 (language_class_name_from_physname): Delete declaration.
6305 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6306 initializer.
6307 * objc-lang.c (objc_language_data): Likewise.
6308 * opencl-lang.c (opencl_language_data): Likewise.
6309 * p-lang.c (pascal_language_data): Likewise.
6310 * rust-lang.c (rust_language_data): Likewise.
6311
6312 2020-06-16 Tom Tromey <tom@tromey.com>
6313
6314 * tui/tui-data.h (STATUS_NAME): New macro.
6315 * tui/tui-layout.c (tui_remove_some_windows)
6316 (initialize_known_windows, tui_register_window)
6317 (tui_layout_split::remove_windows, initialize_layouts)
6318 (tui_new_layout_command): Don't use hard-coded window names.
6319
6320 2020-06-16 Tom Tromey <tom@tromey.com>
6321
6322 PR tui/25348:
6323 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6324 tui_initialize_readline. Only run once. Call rl_initialize.
6325 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6326 tui_initialize_readline.
6327 * tui/tui-io.c (tui_setup_io): Call
6328 tui_ensure_readline_initialized.
6329 * tui/tui-interp.c (tui_interp::init): Update.
6330
6331 2020-06-16 Tom Tromey <tom@tromey.com>
6332
6333 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6334 Also preserve the status window.
6335
6336 2020-06-16 Tom Tromey <tom@tromey.com>
6337
6338 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6339 where m_window==nullptr.
6340
6341 2020-06-15 Tom Tromey <tromey@adacore.com>
6342
6343 * windows-nat.c (windows_nat::handle_output_debug_string):
6344 Update.
6345 (windows_nat::handle_ms_vc_exception): Update.
6346 * target.h (target_read_string): Change API.
6347 * target.c (target_read_string): Change API.
6348 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6349 Update.
6350 * solib-frv.c (frv_current_sos): Update.
6351 * solib-dsbt.c (dsbt_current_sos): Update.
6352 * solib-darwin.c (darwin_current_sos): Update.
6353 * linux-thread-db.c (inferior_has_bug): Update.
6354 * expprint.c (print_subexp_standard): Update.
6355 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6356 (ada_exception_message_1): Update.
6357
6358 2020-06-15 Tom Tromey <tromey@adacore.com>
6359
6360 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6361
6362 2020-06-15 Tom Tromey <tromey@adacore.com>
6363
6364 * valprint.c (read_string): Update comment.
6365 * target.c (MIN): Remove.
6366 (target_read_string): Rewrite.
6367
6368 2020-06-15 Tom Tromey <tromey@adacore.com>
6369
6370 * corefile.c (read_memory_string): Remove.
6371 * ada-valprint.c (ada_value_print_ptr): Update.
6372 * ada-lang.h (ada_tag_name): Change return type.
6373 * ada-lang.c (type_from_tag): Update.
6374 (ada_tag_name_from_tsd): Change return type. Use
6375 target_read_string.
6376 (ada_tag_name): Likewise.
6377 * gdbcore.h (read_memory_string): Don't declare.
6378
6379 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6380
6381 * symtab.c (rbreak_command): Ignore Windows drive colon.
6382
6383 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6384
6385 * NEWS: Mention removed GDBserver host support.
6386
6387 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6388
6389 * features/riscv/rebuild-csr-xml.sh: Updated.
6390
6391 2020-06-11 Tom Tromey <tom@tromey.com>
6392
6393 PR gdb/18318:
6394 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6395
6396 2020-06-09 Jonny Grant <jg@jguk.org>
6397 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * main.c (captured_main_1): Don't print new line after help.
6400 (print_gdb_help): add mailing list and IRC channel information
6401 to --help. Add new lines between items in the footer. Remove
6402 quotes around bug url.
6403
6404 2020-06-11 Keith Seitz <keiths@redhat.com>
6405
6406 PR gdb/21356
6407 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6408 Resolve typedefs for type length calculations.
6409
6410 2020-06-10 Tom de Vries <tdevries@suse.de>
6411
6412 PR ada/24713
6413 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6414 (write_psymbols): Enable .gdb_index for ada.
6415 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6416 ada.
6417
6418 2020-06-10 Tom de Vries <tdevries@suse.de>
6419
6420 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6421 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6422 namei" instead of "const char *name" argument.
6423 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6424 dw2_symtab_iter_init.
6425
6426 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6429 to use type::field and field::type instead.
6430
6431 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6432
6433 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6434 to use field::type instead.
6435
6436 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6437
6438 * gdbtypes.h (struct field) <type, set_type>: New methods.
6439 Rename `type` field to...
6440 <m_type>: ... this. Change references throughout to use type or
6441 set_type methods.
6442 (FIELD_TYPE): Use field::type. Change call sites that modify
6443 the field's type to use field::set_type instead.
6444
6445 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6446
6447 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6448 to use type::index_type instead.
6449
6450 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6453 methods.
6454 (TYPE_INDEX_TYPE): Use type::index_type.
6455 * gdbtypes.c (create_array_type_with_stride): Likewise.
6456
6457 2020-06-07 Tom Tromey <tom@tromey.com>
6458
6459 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6460 parameter.
6461 (generic_value_print): Update.
6462
6463 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 Revert commit 982a38f60b0.
6466 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6467
6468 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6469
6470 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6471 avoid use after free.
6472
6473 2020-06-05 Tom de Vries <tdevries@suse.de>
6474
6475 * NEWS: Fix typos.
6476
6477 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6480 the per_bfd object.
6481 (dwarf2_read_debug_names): Likewise.
6482 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6483 object when re-using a per_bfd object with an index.
6484
6485 2020-06-03 Tom de Vries <tdevries@suse.de>
6486
6487 PR symtab/26046
6488 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6489 children for C++.
6490 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6491 DW_TAG_subprogram.
6492
6493 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * ada-lang.c (ada_language_data): Delete skip_trampoline
6496 initializer.
6497 * c-lang.c (c_language_data): Likewise.
6498 (cplus_language_data): Likewise.
6499 (cplus_language::skip_trampoline): New member function.
6500 (asm_language_data): Delete skip_trampoline initializer.
6501 (minimal_language_data): Likewise.
6502 * d-lang.c (d_language_data): Likewise.
6503 * f-lang.c (f_language_data): Likewise.
6504 * go-lang.c (go_language_data): Likewise.
6505 * language.c (unk_lang_trampoline): Delete function.
6506 (skip_language_trampoline): Update.
6507 (unknown_language_data): Delete skip_trampoline initializer.
6508 (auto_language_data): Likewise.
6509 * language.h (language_data): Delete skip_trampoline field.
6510 (language_defn::skip_trampoline): New function.
6511 * m2-lang.c (m2_language_data): Delete skip_trampoline
6512 initializer.
6513 * objc-lang.c (objc_skip_trampoline): Delete function, move
6514 implementation to objc_language::skip_trampoline.
6515 (objc_language_data): Delete skip_trampoline initializer.
6516 (objc_language::skip_trampoline): New member function with
6517 implementation from objc_skip_trampoline.
6518 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6519 initializer.
6520 * p-lang.c (pascal_language_data): Likewise.
6521 * rust-lang.c (rust_language_data): Likewise.
6522
6523 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6524
6525 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6526 (ada_language::demangle): New member function.
6527 * c-lang.c (c_language_data): Delete la_demangle initializer.
6528 (cplus_language_data): Delete la_demangle initializer.
6529 (cplus_language::demangle): New member function.
6530 (asm_language_data): Delete la_demangle initializer.
6531 (minimal_language_data): Delete la_demangle initializer.
6532 * d-lang.c (d_language_data): Delete la_demangle initializer.
6533 (d_language::demangle): New member function.
6534 * f-lang.c (f_language_data): Delete la_demangle initializer.
6535 (f_language::demangle): New member function.
6536 * go-lang.c (go_language_data): Delete la_demangle initializer.
6537 (go_language::demangle): New member function.
6538 * language.c (language_demangle): Update.
6539 (unk_lang_demangle): Delete.
6540 (unknown_language_data): Delete la_demangle initializer.
6541 (unknown_language::demangle): New member function.
6542 (auto_language_data): Delete la_demangle initializer.
6543 (auto_language::demangle): New member function.
6544 * language.h (language_data): Delete la_demangle field.
6545 (language_defn::demangle): New function.
6546 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6547 * objc-lang.c (objc_language_data): Delete la_demangle
6548 initializer.
6549 (objc_language::demangle): New member function.
6550 * opencl-lang.c (opencl_language_data): Delete la_demangle
6551 initializer.
6552 * p-lang.c (pascal_language_data): Likewise.
6553 * rust-lang.c (rust_language_data): Likewise.
6554 (rust_language::demangle): New member function.
6555
6556 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * ada-lang.c (ada_language_data): Delete la_print_type
6559 initializer.
6560 (ada_language::print_type): New member function.
6561 * c-lang.c (c_language_data): Delete la_print_type initializer.
6562 (c_language::print_type): New member function.
6563 (cplus_language_data): Delete la_print_type initializer.
6564 (cplus_language::print_type): New member function.
6565 (asm_language_data): Delete la_print_type initializer.
6566 (asm_language::print_type): New member function.
6567 (minimal_language_data): Delete la_print_type initializer.
6568 (minimal_language::print_type): New member function.
6569 * d-lang.c (d_language_data): Delete la_print_type initializer.
6570 (d_language::print_type): New member function.
6571 * f-lang.c (f_language_data): Delete la_print_type initializer.
6572 (f_language::print_type): New member function.
6573 * go-lang.c (go_language_data): Delete la_print_type initializer.
6574 (go_language::print_type): New member function.
6575 * language.c (unk_lang_print_type): Delete.
6576 (unknown_language_data): Delete la_print_type initializer.
6577 (unknown_language::print_type): New member function.
6578 (auto_language_data): Delete la_print_type initializer.
6579 (auto_language::print_type): New member function.
6580 * language.h (language_data): Delete la_print_type field.
6581 (language_defn::print_type): New function.
6582 (LA_PRINT_TYPE): Update.
6583 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6584 (m2_language::print_type): New member function.
6585 * objc-lang.c (objc_language_data): Delete la_print_type
6586 initializer.
6587 (objc_language::print_type): New member function.
6588 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6589 to opencl_language::print_type.
6590 (opencl_language_data): Delete la_print_type initializer.
6591 (opencl_language::print_type): New member function, implementation
6592 from opencl_print_type.
6593 * p-lang.c (pascal_language_data): Delete la_print_type
6594 initializer.
6595 (pascal_language::print_type): New member function.
6596 * rust-lang.c (rust_print_type): Delete, implementation moved to
6597 rust_language::print_type.
6598 (rust_language_data): Delete la_print_type initializer.
6599 (rust_language::print_type): New member function, implementation
6600 from rust_print_type.
6601
6602 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6605 implementation moves to...
6606 (ada_language::sniff_from_mangled_name): ...here. Update return
6607 type.
6608 (ada_language_data): Delete la_sniff_from_mangled_name
6609 initializer.
6610 * c-lang.c (c_language_data): Likewise.
6611 (cplus_language_data): Likewise.
6612 (cplus_language::sniff_from_mangled_name): New member function,
6613 implementation taken from gdb_sniff_from_mangled_name.
6614 (asm_language_data): Delete la_sniff_from_mangled_name
6615 initializer.
6616 (minimal_language_data): Likewise.
6617 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6618 implementation moves to cplus_language::sniff_from_mangled_name.
6619 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6620 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6621 moves to...
6622 (d_language::sniff_from_mangled_name): ...here.
6623 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6624 * f-lang.c (f_language_data): Likewise.
6625 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6626 moves to...
6627 (go_language::sniff_from_mangled_name): ...here.
6628 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6629 * language.c (language_sniff_from_mangled_name): Delete.
6630 (unknown_language_data): Delete la_sniff_from_mangled_name
6631 initializer.
6632 (auto_language_data): Likewise.
6633 * language.h (language_data): Delete la_sniff_from_mangled_name
6634 field.
6635 (language_defn::sniff_from_mangled_name): New function.
6636 (language_sniff_from_mangled_name): Delete declaration.
6637 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6638 field.
6639 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6640 implementation moves to...
6641 (objc_language::sniff_from_mangled_name): ...here.
6642 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6643 * opencl-lang.c (opencl_language_data): Likewise.
6644 * p-lang.c (pascal_language_data): Likewise.
6645 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6646 implementation moves to...
6647 (rust_language::sniff_from_mangled_name): ...here.
6648 (rust_language_data): Delete la_sniff_from_mangled_name
6649 initializer.
6650 * symtab.c (symbol_find_demangled_name): Call
6651 sniff_from_mangled_name member function.
6652
6653 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6656 initializer.
6657 * c-lang.c (c_language_data): Likewise.
6658 (cplus_language_data): Likewise.
6659 (cplus_language::search_name_hash): New member function.
6660 (asm_language_data): Delete la_search_name_hash initializer.
6661 (minimal_language_data): Likewise.
6662 * d-lang.c (d_language_data): Likewise.
6663 * dictionary.c (default_search_name_hash): Rename to...
6664 (language_defn::search_name_hash): ...this.
6665 * f-lang.c (f_language_data): Likewise.
6666 (f_language::search_name_hash): New member function.
6667 * go-lang.c (go_language_data): Delete la_search_name_hash
6668 initializer.
6669 * language.c (unknown_language_data): Likewise.
6670 (auto_language_data): Likewise.
6671 * language.h (struct language_data): Delete la_search_name_hash
6672 field.
6673 (language_defn::search_name_hash): Declare new member function.
6674 (default_search_name_hash): Delete declaration.
6675 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6676 initializer.
6677 * objc-lang.c (objc_language_data): Likewise.
6678 * opencl-lang.c (opencl_language_data): Likewise.
6679 * p-lang.c (pascal_language_data): Likewise.
6680 * rust-lang.c (rust_language_data): Likewise.
6681 * symtab.c (search_name_hash): Update call.
6682
6683 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6686 initializer.
6687 * c-lang.c (class compile_instance): Declare.
6688 (c_language_data): Delete la_get_compile_instance initializer.
6689 (c_language::get_compile_instance): New member function.
6690 (cplus_language_data): Delete la_get_compile_instance initializer.
6691 (cplus_language::get_compile_instance): New member function.
6692 (asm_language_data): Delete la_get_compile_instance initializer.
6693 (minimal_language_data): Likewise.
6694 * c-lang.h (c_get_compile_context): Update comment.
6695 (cplus_get_compile_context): Update comment.
6696 * compile/compile.c (compile_to_object): Update calls, don't rely
6697 on function pointer being NULL.
6698 * d-lang.c (d_language_data): Delete la_get_compile_instance
6699 initializer.
6700 * f-lang.c (f_language_data): Likewise.
6701 * go-lang.c (go_language_data): Likewise.
6702 * language.c (unknown_language_data): Likewise.
6703 (auto_language_data): Likewise.
6704 * language.h (language_data): Delete la_get_compile_instance field.
6705 (language_defn::get_compile_instance): New member function.
6706 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6707 initializer.
6708 * objc-lang.c (objc_language_data): Likewise.
6709 * opencl-lang.c (opencl_language_data): Likewise.
6710 * p-lang.c (pascal_language_data): Likewise.
6711 * rust-lang.c (rust_language_data): Likewise.
6712
6713 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6714
6715 * ada-lang.c (ada_add_all_symbols): Update comment.
6716 (ada_iterate_over_symbols): Delete, move implementation to...
6717 (ada_language::iterate_over_symbols): ...here, a new member
6718 function, rewrite to use range based for loop.
6719 (ada_language_data): Delete la_iterate_over_symbols initializer.
6720 * c-lang.c (c_language_data): Likewise.
6721 (cplus_language_data): Likewise.
6722 (asm_language_data): Likewise.
6723 (minimal_language_data): Likewise.
6724 * d-lang.c (d_language_data): Likewise.
6725 * f-lang.c (f_language_data): Likewise.
6726 * go-lang.c (go_language_data): Likewise.
6727 * language.c (unknown_language_data): Likewise.
6728 (auto_language_data): Likewise.
6729 * language.h (language_data): Delete la_iterate_over_symbols field.
6730 (language_defn::iterate_over_symbols): New member function.
6731 (LA_ITERATE_OVER_SYMBOLS): Update.
6732 * linespec.c (iterate_over_all_matching_symtabs): Update.
6733 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6734 initializer.
6735 * objc-lang.c (objc_language_data): Likewise.
6736 * opencl-lang.c (opencl_language_data): Likewise.
6737 * p-lang.c (pascal_language_data): Likewise.
6738 * rust-lang.c (rust_language_data): Likewise.
6739
6740 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6741
6742 * ada-lang.c (ada_language_data): Delete
6743 la_lookup_transparent_type initializer.
6744 * c-lang.c (c_language_data): Likewise.
6745 (cplus_language_data): Likewise.
6746 (cplus_language::lookup_transparent_type): New member function.
6747 (asm_language_data): Delete la_lookup_transparent_type
6748 initializer.
6749 (minimal_language_data): Likewise.
6750 * d-lang.c (d_language_data): Likewise.
6751 * f-lang.c (f_language_data): Likewise.
6752 * go-lang.c (go_language_data): Likewise.
6753 * language.c (unknown_language_data): Likewise.
6754 (auto_language_data): Likewise.
6755 * language.h (struct language_data): Delete
6756 la_lookup_transparent_type field.
6757 (language_defn::lookup_transparent_type): New member function.
6758 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6759 initializer.
6760 * objc-lang.c (objc_language_data): Likewise.
6761 * opencl-lang.c (opencl_language_data): Likewise.
6762 * p-lang.c (pascal_language_data): Likewise.
6763 * rust-lang.c (rust_language_data): Likewise.
6764 * symtab.c (symbol_matches_domain): Update call.
6765
6766 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * ada-lang.c (ada_language_arch_info): Delete function, move
6769 implementation to...
6770 (ada_language::language_arch_info): ...here, a new member
6771 function.
6772 (ada_language_data): Delete la_language_arch_info.
6773 * c-lang.c (c_language_data): Likewise.
6774 (c_language::language_arch_info): New member function.
6775 (cplus_language_arch_info): Delete function, move
6776 implementation to...
6777 (cplus_language::language_arch_info): ...here, a new member
6778 function.
6779 (cplus_language_data): Delete la_language_arch_info.
6780 (asm_language_data): Likewise.
6781 (asm_language::language_arch_info): New member function.
6782 (minimal_language_data): Delete la_language_arch_info.
6783 (minimal_language::language_arch_info): New member function.
6784 * d-lang.c (d_language_arch_info): Delete function, move
6785 implementation to...
6786 (d_language::language_arch_info): ...here, a new member
6787 function.
6788 (d_language_data): Delete la_language_arch_info.
6789 * f-lang.c (f_language_arch_info): Delete function, move
6790 implementation to...
6791 (f_language::language_arch_info): ...here, a new member
6792 function.
6793 (f_language_data): Delete la_language_arch_info.
6794 * go-lang.c (go_language_arch_info): Delete function, move
6795 implementation to...
6796 (go_language::language_arch_info): ...here, a new member
6797 function.
6798 (go_language_data): Delete la_language_arch_info.
6799 * language.c (unknown_language_data): Likewise.
6800 (unknown_language::language_arch_info): New member function.
6801 (auto_language_data): Delete la_language_arch_info.
6802 (auto_language::language_arch_info): New member function.
6803 (language_gdbarch_post_init): Update call to
6804 la_language_arch_info.
6805 * language.h (language_data): Delete la_language_arch_info
6806 function pointer.
6807 (language_defn::language_arch_info): New function.
6808 * m2-lang.c (m2_language_arch_info): Delete function, move
6809 implementation to...
6810 (m2_language::language_arch_info): ...here, a new member
6811 function.
6812 (m2_language_data): Delete la_language_arch_info.
6813 * objc-lang.c (objc_language_arch_info): Delete function, move
6814 implementation to...
6815 (objc_language::language_arch_info): ...here, a new member
6816 function.
6817 (objc_language_data): Delete la_language_arch_info.
6818 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6819 implementation to...
6820 (opencl_language::language_arch_info): ...here, a new member
6821 function.
6822 (opencl_language_data): Delete la_language_arch_info.
6823 * p-lang.c (pascal_language_arch_info): Delete function, move
6824 implementation to...
6825 (pascal_language::language_arch_info): ...here, a new member
6826 function.
6827 (pascal_language_data): Delete la_language_arch_info.
6828 * rust-lang.c (rust_language_arch_info): Delete function, move
6829 implementation to...
6830 (rust_language::language_arch_info): ...here, a new member
6831 function.
6832 (rust_language_data): Delete la_language_arch_info.
6833
6834 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6837 initializer.
6838 * c-lang.c (c_language_data): Likewise.
6839 (cplus_language_data): Likewise.
6840 (cplus_language::pass_by_reference_info): New method.
6841 (asm_language_data): Delete la_pass_by_reference initializer.
6842 (minimal_language_data): Likewise.
6843 * cp-abi.c (cp_pass_by_reference): Remove use of
6844 default_pass_by_reference.
6845 * d-lang.c (d_language_data): Likewise.
6846 * f-lang.c (f_language_data): Likewise.
6847 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6848 default_pass_by_reference.
6849 * go-lang.c (go_language_data): Likewise.
6850 * language.c (language_pass_by_reference): Update.
6851 (default_pass_by_reference): Delete.
6852 (unknown_language_data): Delete la_pass_by_reference
6853 initializer.
6854 (auto_language_data): Likewise.
6855 * language.h (struct language_data): Delete la_pass_by_reference
6856 field.
6857 (language_defn::pass_by_reference_info): New member function.
6858 (default_pass_by_reference): Delete declaration.
6859 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6860 initializer.
6861 * objc-lang.c (objc_language_data): Likewise.
6862 * opencl-lang.c (opencl_language_data): Likewise.
6863 * p-lang.c (pascal_language_data): Likewise.
6864 * rust-lang.c (rust_language_data): Likewise.
6865
6866 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6867
6868 * ada-lang.c (ada_read_var_value): Delete function, move
6869 implementation to...
6870 (ada_language::read_var_value): ...here.
6871 (ada_language_data): Delete la_read_var_value initializer.
6872 * c-lang.c (c_language_data): Likewise.
6873 (cplus_language_data): Likewise.
6874 (minimal_language_data): Likewise.
6875 * d-lang.c (d_language_data): Likewise.
6876 * f-lang.c (f_language_data): Likewise.
6877 * findvar.c (default_read_var_value): Rename to...
6878 (language_defn::read_var_value): ...this.
6879 * findvar.c (read_var_value): Update header comment, and change to
6880 call member function instead of function pointer.
6881 * go-lang.c (go_language_data): Likewise.
6882 * language.c (unknown_language_data): Delete la_read_var_value
6883 initializer.
6884 (auto_language_data): Likewise.
6885 * language.h (struct language_data): Delete la_read_var_value
6886 field.
6887 (language_defn::read_var_value): New member function.
6888 (default_read_var_value): Delete declaration.
6889 * m2-lang.c (m2_language_data): Delete la_read_var_value
6890 initializer.
6891 * objc-lang.c (objc_language_data): Likewise.
6892 * opencl-lang.c (opencl_language_data): Likewise.
6893 * p-lang.c (pascal_language_data): Likewise.
6894 * rust-lang.c (rust_language_data): Likewise.
6895 * value.h (default_read_var_value): Delete declaration.
6896
6897 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6898
6899 * ada-lang.c (ada_print_array_index): Delete function, move
6900 implementation to...
6901 (ada_language::print_array_index): ...here.
6902 (ada_language_data): Delete la_print_array_index initializer.
6903 * c-lang.c (c_language_data): Likewise.
6904 (cplus_language_data): Likewise.
6905 (minimal_language_data): Likewise.
6906 * d-lang.c (d_language_data): Likewise.
6907 * f-lang.c (f_language_data): Likewise.
6908 * go-lang.c (go_language_data): Likewise.
6909 * language.c (default_print_array_index): Delete function, move
6910 implementation to...
6911 (language_defn::print_array_index): ...here.
6912 (unknown_language_data): Delete la_print_array_index initializer.
6913 (auto_language_data): Likewise.
6914 * language.h (struct language_data): Delete la_print_array_index
6915 field.
6916 (language_defn::print_array_index): New member function.
6917 (LA_PRINT_ARRAY_INDEX): Update.
6918 (default_print_array_index): Delete declaration.
6919 * m2-lang.c (m2_language_data): Delete la_print_array_index
6920 initializer.
6921 * objc-lang.c (objc_language_data): Likewise.
6922 * opencl-lang.c (opencl_language_data): Likewise.
6923 * p-lang.c (pascal_language_data): Likewise.
6924 * rust-lang.c (rust_language_data): Likewise.
6925
6926 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * gdb/ada-lang.c (ada_language_defn): Convert to...
6929 (ada_language_data): ...this.
6930 (class ada_language): New class.
6931 (ada_language_defn): New static global.
6932 * gdb/c-lang.c (c_language_defn): Convert to...
6933 (c_language_data): ...this.
6934 (class c_language): New class.
6935 (c_language_defn): New static global.
6936 (cplus_language_defn): Convert to...
6937 (cplus_language_data): ...this.
6938 (class cplus_language): New class.
6939 (cplus_language_defn): New static global.
6940 (asm_language_defn): Convert to...
6941 (asm_language_data): ...this.
6942 (class asm_language): New class.
6943 (asm_language_defn): New static global.
6944 (minimal_language_defn): Convert to...
6945 (minimal_language_data): ...this.
6946 (class minimal_language): New class.
6947 (minimal_language_defn): New static global.
6948 * gdb/d-lang.c (d_language_defn): Convert to...
6949 (d_language_data): ...this.
6950 (class d_language): New class.
6951 (d_language_defn): New static global.
6952 * gdb/f-lang.c (f_language_defn): Convert to...
6953 (f_language_data): ...this.
6954 (class f_language): New class.
6955 (f_language_defn): New static global.
6956 * gdb/go-lang.c (go_language_defn): Convert to...
6957 (go_language_data): ...this.
6958 (class go_language): New class.
6959 (go_language_defn): New static global.
6960 * gdb/language.c (unknown_language_defn): Remove declaration.
6961 (current_language): Initialize to nullptr, real initialization is
6962 moved to _initialize_language.
6963 (languages): Delete global.
6964 (language_defn::languages): Define.
6965 (set_language_command): Use language_defn::languages.
6966 (set_language): Likewise.
6967 (range_error): Likewise.
6968 (language_enum): Likewise.
6969 (language_def): Likewise.
6970 (add_set_language_command): Use language_def::languages for the
6971 language list, and language_def to lookup language pointers.
6972 (skip_language_trampoline): Use language_defn::languages.
6973 (unknown_language_defn): Convert to...
6974 (unknown_language_data): ...this.
6975 (class unknown_language): New class.
6976 (unknown_language_defn): New static global.
6977 (auto_language_defn): Convert to...
6978 (auto_language_data): ...this.
6979 (class auto_language): New class.
6980 (auto_language_defn): New static global.
6981 (language_gdbarch_post_init): Use language_defn::languages.
6982 (_initialize_language): Initialize current_language.
6983 * gdb/language.h (struct language_defn): Rename to...
6984 (struct language_data): ...this.
6985 (struct language_defn): New.
6986 (auto_language_defn): Delete.
6987 (unknown_language_defn): Delete.
6988 (minimal_language_defn): Delete.
6989 (ada_language_defn): Delete.
6990 (asm_language_defn): Delete.
6991 (c_language_defn): Delete.
6992 (cplus_language_defn): Delete.
6993 (d_language_defn): Delete.
6994 (f_language_defn): Delete.
6995 (go_language_defn): Delete.
6996 (m2_language_defn): Delete.
6997 (objc_language_defn): Delete.
6998 (opencl_language_defn): Delete.
6999 (pascal_language_defn): Delete.
7000 (rust_language_defn): Delete.
7001 * gdb/m2-lang.c (m2_language_defn): Convert to...
7002 (m2_language_data): ...this.
7003 (class m2_language): New class.
7004 (m2_language_defn): New static global.
7005 * gdb/objc-lang.c (objc_language_defn): Convert to...
7006 (objc_language_data): ...this.
7007 (class objc_language): New class.
7008 (objc_language_defn): New static global.
7009 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7010 (opencl_language_data): ...this.
7011 (class opencl_language): New class.
7012 (opencl_language_defn): New static global.
7013 * gdb/p-lang.c (pascal_language_defn): Convert to...
7014 (pascal_language_data): ...this.
7015 (class pascal_language): New class.
7016 (pascal_language_defn): New static global.
7017 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7018 language pointer, update comment format.
7019 * gdb/rust-lang.c (rust_language_defn): Convert to...
7020 (rust_language_data): ...this.
7021 (class rust_language): New class.
7022 (rust_language_defn): New static global.
7023
7024 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7027 member variable.
7028 <m_stmt_at_address>: New member variable.
7029 (lnp_state_machine::record_line): Don't record some lines, update
7030 tracking of is_stmt at the same address.
7031 (lnp_state_machine::lnp_state_machine): Initialise new member
7032 variables.
7033
7034 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7035
7036 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7037 "-include gnu-nat-mig.h".
7038 * gnu-nat-mig.h: New file.
7039 * gnu-nat.c: Include "gnu-nat-mig.h".
7040 (exc_server, msg_reply_server, notify_server,
7041 process_reply_server): Remove declarations.
7042
7043 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7044
7045 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7046 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7047 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7048 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7049 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7050 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7051 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7052 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7053 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7054 to gnu_nat_target class.
7055 * gnu-nat.c: Likewise.
7056 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7057 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7058 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7059 object.
7060 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7061 instead of `gnu_target'.
7062
7063 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7064
7065 * i386-gnu-tdep.c: Include "gdbcore.h"
7066 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7067 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7068 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7069 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7070 i386_gnu_sigcontext_addr): New functions
7071 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7072 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7073 tdep.
7074
7075 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7076
7077 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7078 before fork_inferior call. Avoid calling it if target_is_pushed returns
7079 true.
7080
7081 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7082
7083 * gnu-nat.h (gnu_target): New variable declaration.
7084 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7085 gnu_target.
7086 * gnu-nat.c (gnu_target): New variable.
7087 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7088 add_thread_silent, and add_thread calls.
7089 (gnu_nat_target::create_inferior): Pass gnu_target to
7090 add_thread_silent, thread_change_ptid call.
7091 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7092 call.
7093
7094 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7095
7096 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7097 (gnu_nat_target::find_memory_regions): Remove unused
7098 `old_address' variable.
7099
7100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7101
7102 * gnu-nat.c: Include "gdbarch.h".
7103
7104 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7105
7106 * reply_mig_hack.awk (Error return): Cast function through
7107 void *, to bypass compiler function call check.
7108
7109 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7110
7111 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7112 $(srcdir)/reply_mig_hack.awk.
7113
7114 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7115
7116 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7117
7118 2020-05-30 Jonny Grant <jg@jguk.org>
7119
7120 * configure.ac (ACX_BUGURL): change bug URL to https.
7121
7122 2020-05-30 Pedro Alves <palves@redhat.com>
7123
7124 * cp-support.c (replace_typedefs_template): New.
7125 (replace_typedefs_qualified_name): Handle
7126 DEMANGLE_COMPONENT_TEMPLATE.
7127
7128 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7131 dwarf2/index-cache.h, dwarf2/index-write.c,
7132 dwarf2/index-write.h, dwarf2/line-header.c,
7133 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7134 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7135 variables and fields from `dwarf2_per_objfile` to just
7136 `per_objfile` throughout.
7137
7138 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7139
7140 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7141 <push_dwarf_reg_entry_value>: Add comment.
7142
7143 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7144 Keith Seitz <keiths@redhat.com>
7145
7146 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7147 instead of PyEval_ReleaseLock.
7148 (class gdbpy_gil): Move to earlier in file.
7149 (finalize_python): Set gdb_python_initialized.
7150 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7151 when not initialized.
7152
7153 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7154
7155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7156 <push_dwarf_reg_entry_value>: Remove assert. Override
7157 per_objfile with caller_per_objfile.
7158
7159 2020-05-28 Tom de Vries <tdevries@suse.de>
7160
7161 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7162 PR gold/15646 workaround to symbol kind "type".
7163
7164 2020-05-27 Tom Tromey <tromey@adacore.com>
7165
7166 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7167
7168 2020-05-27 Tom Tromey <tromey@adacore.com>
7169
7170 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7171 Use htab_find_with_hash.
7172 <add_abbrev>: Remove "abbrev_number" parameter.
7173 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7174 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7175 (hash_abbrev): Add comment.
7176 (abbrev_table::lookup_abbrev): Move to header file.
7177 (abbrev_table::read): Update.
7178
7179 2020-05-27 Tom Tromey <tromey@adacore.com>
7180
7181 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7182 method.
7183 <canonical_name>: New member.
7184 <raw_name>: Rename from "name".
7185 (partial_die_info): Initialize canonical_name.
7186 (scan_partial_symbols): Check raw_name.
7187 (partial_die_parent_scope, partial_die_full_name)
7188 (add_partial_symbol, add_partial_subprogram)
7189 (add_partial_enumeration, load_partial_dies): Use "name" method.
7190 (partial_die_info::name): New method.
7191 (partial_die_info::read, guess_partial_die_structure_name)
7192 (partial_die_info::fixup): Update.
7193
7194 2020-05-27 Tom Tromey <tromey@adacore.com>
7195
7196 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7197 <get_ref_die_offset>: Inline.
7198 <get_ref_die_offset_complaint>: New method.
7199 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7200 (attribute::get_ref_die_offset_complaint): Rename from
7201 get_ref_die_offset. Just issue complaint.
7202
7203 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7204
7205 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7206
7207 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7208
7209 * exec.c (exec_file_attach): Use errno value of first openp failure.
7210
7211 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7212
7213 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7214 Don't close thread handle.
7215
7216 2020-05-27 Tom Tromey <tom@tromey.com>
7217 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7220 shared_ptr.
7221 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7222 member.
7223 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7224 dwarf2_per_bfd_objfile_data_key>: New globals.
7225 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7226 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7227 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7228 shared.
7229 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7230 short-circuit when sharing.
7231 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7232 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7233
7234 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7235
7236 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7237 to...
7238 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7239 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7240
7241 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7242
7243 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7244 build_name_components, find_name_components_bounds>:
7245 Add per_objfile parameter.
7246 (struct mapped_index) <symbol_name_at>: Likewise.
7247 (struct mapped_debug_names): Remove constructor.
7248 <dwarf2_per_objfile>: Remove field.
7249 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7250 (mapped_index_base::find_name_components_bounds,
7251 mapped_index_base::build_name_components,
7252 dw2_expand_symtabs_matching_symbol): Likewise.
7253 (class mock_mapped_index) <symbol_name_at>: Likewise.
7254 (check_match): Likewise.
7255 (check_find_bounds_finds): Likewise.
7256 (test_mapped_index_find_name_component_bounds): Update.
7257 (CHECK_MATCH): Update.
7258 (dw2_expand_symtabs_matching): Update.
7259 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7260 per_objfile parameter.
7261 <find_vec_in_debug_names>: Likewise.
7262 <m_per_objfile>: New field.
7263 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7264 parameter.
7265 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7266 (dw2_debug_names_iterator::next): Update.
7267 (dw2_debug_names_lookup_symbol): Update.
7268 (dw2_debug_names_expand_symtabs_for_function): Update.
7269 (dw2_debug_names_map_matching_symbols): Update.
7270 (dw2_debug_names_expand_symtabs_matching): Update.
7271 (dwarf2_read_debug_names): Update.
7272
7273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7276 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7277 move to dwarf2_per_objfile.
7278 <read_in_chain>: Remove.
7279 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7280 remove_all_cus, age_comp_units>: New methods.
7281 <m_dwarf2_cus>: New member.
7282 (struct dwarf2_per_cu_data) <cu>: Remove.
7283 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7284 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7285 moved to methods of dwarf2_per_objfile.
7286 (dwarf2_clear_marks): Remove.
7287 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7288 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7289 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7290 (dwarf2_per_objfile::remove_all_cus): New.
7291 (class free_cached_comp_units) <~free_cached_comp_units>:
7292 Update.
7293 (load_cu): Update.
7294 (dw2_do_instantiate_symtab): Adjust.
7295 (fill_in_sig_entry_from_dwo_entry): Adjust.
7296 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7297 (cutu_reader::cutu_reader): Likewise.
7298 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7299 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7300 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7301 and dwarf2_per_objfile::age_comp_units.
7302 (load_partial_comp_unit): Update.
7303 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7304 (process_queue): Likewise.
7305 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7306 backlink.
7307 (dwarf2_read_addr_index): Likewise.
7308 (follow_die_offset): Likewise.
7309 (dwarf2_fetch_die_loc_sect_off): Likewise.
7310 (dwarf2_fetch_constant_bytes): Likewise.
7311 (dwarf2_fetch_die_type_sect_off): Likewise.
7312 (follow_die_sig_1): Likewise.
7313 (load_full_type_unit): Likewise.
7314 (read_signatured_type): Likewise.
7315 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7316 (dwarf2_cu::~dwarf2_cu): Remove.
7317 (dwarf2_per_objfile::get_cu): New.
7318 (dwarf2_per_objfile::set_cu): New.
7319 (age_cached_comp_units): Rename to...
7320 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7321 to std::unordered_map.
7322 (free_one_cached_comp_unit): Rename to...
7323 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7324 to std::unordered_map.
7325 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7326 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7327 a dwarf2_per_objfile in data.
7328 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7329 (dwarf2_clear_marks): Remove.
7330
7331 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7332
7333 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7334 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7335 (init_tu_and_read_dwo_dies): Likewise.
7336 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7337 (cutu_reader::cutu_reader): Likewise.
7338 (load_partial_comp_unit): Likewise.
7339 (process_psymtab_comp_unit): Update.
7340 (build_type_psymtabs_1): Update.
7341 (process_skeletonless_type_unit): Update.
7342 (load_full_comp_unit): Update.
7343 (find_partial_die): Update.
7344 (dwarf2_read_addr_index): Update.
7345 (read_signatured_type): Update.
7346
7347 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7348
7349 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7350 m_header_read_in>: New fields.
7351 <get_header>: New method.
7352 * dwarf2/read.c (per_cu_header_read_in): Remove.
7353 (dwarf2_per_cu_data::get_header): New.
7354 (dwarf2_per_cu_data::addr_size): Update.
7355 (dwarf2_per_cu_data::offset_size): Update.
7356 (dwarf2_per_cu_data::ref_addr_size): Update.
7357
7358 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7359
7360 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7361 (dw2_do_instantiate_symtab): Update.
7362 (queue_and_load_all_dwo_tus): Change parameter from
7363 dwarf2_per_cu_data to dwarf2_cu.
7364 (dwarf2_fetch_die_loc_sect_off): Update.
7365 (dwarf2_fetch_constant_bytes): Update.
7366 (dwarf2_fetch_die_type_sect_off): Update.
7367
7368 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * dwarf2/read.c (process_full_comp_unit,
7371 process_full_type_unit): Remove per_cu, per_objfile paramters.
7372 Add dwarf2_cu parameter.
7373 (process_queue): Update.
7374
7375 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7376
7377 * dwarf2/read.c (create_cu_from_index_list): Replace
7378 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7379 (create_cus_from_index_list): Likewise.
7380 (create_cus_from_index): Likewise.
7381 (create_signatured_type_table_from_index): Likewise.
7382 (create_cus_from_debug_names_list): Likewise.
7383 (create_cus_from_debug_names): Likewise.
7384 (dwarf2_read_gdb_index): Update.
7385 (dwarf2_read_debug_names): Update.
7386
7387 2020-05-27 Tom Tromey <tom@tromey.com>
7388 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * dwarf2/read.h (struct dwarf2_per_objfile)
7391 <get_type_for_signatured_type, set_type_for_signatured_type>:
7392 New methods.
7393 <m_type_map>: New member.
7394 (struct signatured_type) <type>: Remove.
7395 * dwarf2/read.c
7396 (dwarf2_per_objfile::get_type_for_signatured_type,
7397 dwarf2_per_objfile::set_type_for_signatured_type): New.
7398 (get_signatured_type): Use new methods.
7399
7400 2020-05-27 Tom Tromey <tom@tromey.com>
7401 Simon Marchi <simon.marchi@efficios.com>
7402
7403 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7404 (struct dwarf2_per_objfile) <type_units>: New member.
7405 <get_type_unit_group_unshareable>: New method.
7406 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7407 num_symtabs, symtabs>: Remove; move to
7408 type_unit_group_unshareable.
7409 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7410 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7411 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7412
7413 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * dwarf2/read.h (struct dwarf2_per_cu_data):
7416 <dwarf2_per_objfile>: Remove.
7417 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7418 dwarf2_per_objfile.
7419 (create_signatured_type_table_from_index): Likewise.
7420 (create_signatured_type_table_from_debug_names): Likewise.
7421 (create_debug_type_hash_table): Likewise.
7422 (fill_in_sig_entry_from_dwo_entry): Likewise.
7423 (create_type_unit_group): Likewise.
7424 (read_comp_units_from_section): Likewise.
7425 (create_cus_hash_table): Likewise.
7426
7427 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7428
7429 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7430 dwarf2_per_cu_data::dwarf2_per_objfile.
7431 (compute_compunit_symtab_includes): Likewise.
7432 (dwarf2_cu::start_symtab): Likewise.
7433
7434 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7435
7436 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7437 parameter.
7438 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7439 (read_namespace_alias): Update.
7440 (lookup_die_type): Update.
7441 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7442 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7443 Update.
7444 (disassemble_dwarf_expression): Update.
7445
7446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * dwarf2/read.h (struct dwarf2_queue_item): Add
7449 dwarf2_per_objfile parameter, assign new parameter.
7450 <per_objfile>: New field.
7451 * dwarf2/read.c (free_one_cached_comp_unit): Add
7452 dwarf2_per_objfile parameter.
7453 (queue_comp_unit): Likewise.
7454 (dw2_do_instantiate_symtab): Update.
7455 (process_psymtab_comp_unit): Update.
7456 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7457 (process_imported_unit_die): Update.
7458 (queue_and_load_dwo_tu): Update.
7459 (follow_die_offset): Update.
7460 (follow_die_sig_1): Update.
7461
7462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7465 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7466 (read_call_site_scope): Assign per_objfile.
7467 (dwarf2_per_cu_data::objfile): Remove.
7468 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7469 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7470 dwarf2_per_objfile parameter.
7471 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7472 dwarf2_per_objfile parameter.
7473 (dwarf_expr_reg_to_entry_parameter): Add output
7474 dwarf2_per_objfile parameter.
7475 (locexpr_get_frame_base): Update.
7476 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7477 <push_dwarf_reg_entry_value>: Update.
7478 <call_site_to_target_addr>: Update.
7479 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7480 parameter.
7481 (value_of_dwarf_reg_entry): Update.
7482 (rw_pieced_value): Update.
7483 (indirect_synthetic_pointer): Update.
7484 (dwarf2_evaluate_property): Update.
7485 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7486 parameter.
7487 (locexpr_read_variable): Update.
7488 (locexpr_get_symbol_read_needs): Update.
7489 (loclist_read_variable): Update.
7490
7491 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7494 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7495 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7496 parameter.
7497 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7499 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7500 parameter.
7501 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7502 sect_variable_value): Add dwarf2_per_objfile parameter.
7503 (class dwarf_evaluate_loc_desc) <dwarf_call,
7504 dwarf_variable_value>: Update.
7505 (fetch_const_value_from_synthetic_pointer): Add
7506 dwarf2_per_objfile parameter.
7507 (fetch_const_value_from_synthetic_pointer): Update.
7508 (coerced_pieced_ref): Update.
7509 (class symbol_needs_eval_context) <dwarf_call,
7510 dwarf_variable_value>: Update.
7511 (dwarf2_compile_expr_to_ax): Update.
7512
7513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7514
7515 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7516 parameter.
7517 (dwarf2_evaluate_loc_desc_full): Update.
7518
7519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7522 parameter.
7523 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7524 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7525 dwarf2_per_objfile parameter.
7526 (decode_debug_loc_dwo_addresses): Likewise.
7527 (dwarf2_find_location_expression): Update.
7528 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7529 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7530 parameter.
7531 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7532 parameter.
7533 (locexpr_describe_location_1): Likewise.
7534 (locexpr_describe_location): Update.
7535
7536 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7539 Remove.
7540 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7541 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7542 (dwarf2_compile_property_to_c): Update.
7543 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7544 use text offset from objfile.
7545 (locexpr_tracepoint_var_ref): Update.
7546 (locexpr_generate_c_location): Update.
7547 (loclist_describe_location): Update.
7548 (loclist_tracepoint_var_ref): Update.
7549 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7550 dwarf2_per_objfile parameter.
7551 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7552 use text offset from objfile.
7553 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7554
7555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * dwarf2/expr.h (struct dwarf_expr_context)
7558 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7559 <offset>: Remove.
7560 <per_objfile>: New member.
7561 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7562 dwarf2_per_objfile parameter. Don't set offset, set
7563 per_objfile.
7564 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7565 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7566 a dwarf2_per_objfile object instead of an offset.
7567 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7568 constructor.
7569 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7570 to dwarf2_expr_executor constructor. Don't set offset.
7571 (dwarf2_fetch_cfa_info): Update.
7572 (struct dwarf2_frame_cache) <text_offset>: Remove.
7573 <per_objfile>: New field.
7574 (dwarf2_frame_cache): Update.
7575 (dwarf2_frame_prev_register): Update.
7576 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7577 <dwarf_evaluate_loc_desc>: Add constructor.
7578 (dwarf2_evaluate_loc_desc_full): Update.
7579 (dwarf2_locexpr_baton_eval): Update.
7580 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7581 Add constructor.
7582 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7583
7584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7585
7586 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7587 addr_sized_int_type>: Move to dwarf2_cu.
7588 <int_type>: Move to dwarf2_per_objfile.
7589 (struct dwarf2_per_objfile) <int_type>: Move here.
7590 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7591 addr_sized_int_type>: Move here.
7592 (read_func_scope): Update.
7593 (read_array_type): Update.
7594 (read_tag_string_type): Update.
7595 (attr_to_dynamic_prop): Update.
7596 (dwarf2_per_cu_data::int_type): Rename to...
7597 (dwarf2_per_objfile::int_type): ... this.
7598 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7599 (dwarf2_cu::addr_sized_int_type): ... this.
7600 (read_subrange_type): Update.
7601 (dwarf2_per_cu_data::addr_type): Rename to...
7602 (dwarf2_cu::addr_type): ... this.
7603 (set_die_type): Update.
7604
7605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7608 data through per_cu->cu.
7609
7610 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7611
7612 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7613 dwarf2_per_cu_data parameter fo dwarf2_cu.
7614 (lookup_dwo_type_unit): Likewise.
7615 (read_cutu_die_from_dwo): Likewise.
7616 (lookup_dwo_unit): Likewise.
7617 (open_and_init_dwo_file): Likewise.
7618 (lookup_dwo_cutu): Likewise.
7619 (lookup_dwo_comp_unit): Likewise.
7620 (lookup_dwo_type_unit): Likewise.
7621 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7622 (cutu_reader::cutu_reader): Update.
7623
7624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7625
7626 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7627 parameter.
7628 (process_full_type_unit): Likewise.
7629 (process_queue): Update.
7630
7631 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * dwarf2/read.c (recursively_compute_inclusions): Add
7634 dwarf2_per_objfile parameter.
7635 (compute_compunit_symtab_includes): Likewise.
7636 (process_cu_includes): Update.
7637
7638 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7641 parameter.
7642 (create_type_unit_group): Update.
7643 (process_psymtab_comp_unit_reader): Update.
7644 (build_type_psymtabs_reader): Update.
7645
7646 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7649 object through m_this_cu->cu.
7650
7651 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7652
7653 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7654 the info parameter.
7655 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7656
7657 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7658
7659 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7660 per_objfile parameter.
7661 (load_full_type_unit): Add per_objfile parameter.
7662 (read_signatured_type): Likewise.
7663 (load_full_comp_unit): Likewise.
7664 (load_cu): Likewise.
7665 (dw2_do_instantiate_symtab): Likewise.
7666 (dw2_get_file_names): Likewise.
7667 (dw2_map_symtabs_matching_filename): Update.
7668 (dw_expand_symtabs_matching_file_matcher): Update.
7669 (dw2_map_symbol_filenames): Update.
7670 (process_psymtab_comp_unit): Add per_objfile parameter.
7671 (build_type_psymtabs_1): Update.
7672 (process_skeletonless_type_unit): Update.
7673 (dwarf2_build_psymtabs_hard): Update.
7674 (load_partial_comp_unit): Add per_objfile parameter.
7675 (scan_partial_symbols): Update.
7676 (load_full_comp_unit): Add per_objfile parameter.
7677 (process_imported_unit_die): Update.
7678 (create_cus_hash_table): Update.
7679 (find_partial_die): Update.
7680 (dwarf2_read_addr_index): Update.
7681 (follow_die_offset): Update.
7682 (dwarf2_fetch_die_loc_sect_off): Update.
7683 (dwarf2_fetch_constant_bytes): Update.
7684 (dwarf2_fetch_die_type_sect_off): Update.
7685 (follow_die_sig_1): Update.
7686 (load_full_type_unit): Add per_objfile parameter.
7687 (read_signatured_type): Likewise.
7688
7689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7692 of objfile_name.
7693
7694 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7695
7696 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7697 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7698 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7699 field.
7700 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7701 (create_cus_from_index): Update.
7702 (dwarf2_read_gdb_index): Update.
7703 (create_cus_from_debug_names): Update.
7704 (dwarf2_read_debug_names): Update.
7705 (get_abbrev_section_for_cu): Update.
7706 (create_all_comp_units): Update.
7707 (read_attribute_value): Update.
7708 (get_debug_line_section): Update.
7709 * dwarf2/index-cache.c (index_cache::store): Update.
7710 * dwarf2/index-write.c (save_gdb_index_command): Update.
7711 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7712
7713 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7716 member.
7717 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7718 dwarf2_per_cu_data::per_bfd.
7719 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7720 (create_type_unit_group): Likewise.
7721 (queue_comp_unit): Remove reference to
7722 per_cu->dwarf2_per_objfile.
7723 (maybe_queue_comp_unit): Likewise.
7724 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7725 (create_cus_hash_table): Assign new field.
7726
7727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7728
7729 * dwarf2/read.c: Replace
7730 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7731 dwarf2_cu->per_objfile throughout.
7732
7733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7736 parameter, don't use per_cu->dwarf2_per_objfile.
7737 (dw2_instantiate_symtab): Likewise.
7738 (dw2_find_last_source_symtab): Update.
7739 (dw2_map_expand_apply): Update.
7740 (dw2_lookup_symbol): Update.
7741 (dw2_expand_symtabs_for_function): Update.
7742 (dw2_expand_all_symtabs): Update.
7743 (dw2_expand_symtabs_with_fullname): Update.
7744 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7745 don't use per_cu->dwarf2_per_objfile.
7746 (dw2_expand_marked_cus): Update.
7747 (dw2_find_pc_sect_compunit_symtab): Update.
7748 (dw2_debug_names_lookup_symbol): Update.
7749 (dw2_debug_names_expand_symtabs_for_function): Update.
7750 (dw2_debug_names_map_matching_symbols): Update.
7751 (dwarf2_psymtab::expand_psymtab): Update.
7752
7753 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7754
7755 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7756 <per_objfile>: New member.
7757 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7758 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7759 call to dwarf2_cu.
7760 (cutu_reader::cutu_reader): Update.
7761 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7762
7763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7764
7765 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7766 struct dwarf2_per_objfile.
7767 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7768 dwarf2_per_bfd.
7769 * dwarf2/read.c (set_die_type): Update.
7770 (get_die_type_at_offset): Update.
7771
7772 2020-05-27 Tom Tromey <tom@tromey.com>
7773 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7776 method.
7777 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7778 get_symtab, set_symtab>: New methods.
7779 <m_symtabs>: New field.
7780 (struct dwarf2_psymtab): Derive from partial_symtab.
7781 <readin_p, get_compunit_symtab>: Declare methods.
7782 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7783 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7784 New methods.
7785 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7786 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7787 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7788 (dw2_symtab_iter_next, dw2_print_stats)
7789 (dw2_expand_symtabs_with_fullname)
7790 (dw2_expand_symtabs_matching_one)
7791 (dw_expand_symtabs_matching_file_matcher)
7792 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7793 (dw2_debug_names_iterator::next)
7794 (dw2_debug_names_map_matching_symbols)
7795 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7796 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7797 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7798 New methods.
7799 (get_compunit_symtab, process_full_comp_unit)
7800 (process_full_type_unit): Update.
7801 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7802
7803 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7804
7805 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7806 then introduce a new dwarf2_per_objfile type.
7807 <read_line_string>: Move to the new dwarf2_per_objfile type.
7808 <objfile>: Likewise.
7809 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7810 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7811 dwarf2_per_objfile->per_bfd.
7812 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7813 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7814 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7815 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7816 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7817 (dwarf2_per_objfile::locate_sections): Rename to...
7818 (dwarf2_per_bfd::locate_sections): ... this.
7819 (dwarf2_per_objfile::get_cutu): Rename to...
7820 (dwarf2_per_bfd::get_cutu): ... this.
7821 (dwarf2_per_objfile::get_cu): Rename to...
7822 (dwarf2_per_bfd::get_cu): ... this.
7823 (dwarf2_per_objfile::get_tu): Rename to...
7824 (dwarf2_per_bfd::get_tu): ... this.
7825 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7826 (dwarf2_per_bfd::allocate_per_cu): ... this.
7827 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7828 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7829 (get_gdb_index_contents_ftype): Change parameter from
7830 dwarf2_per_objfile to dwarf2_per_bfd.
7831 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7832 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7833
7834 2020-05-27 Tom Tromey <tom@tromey.com>
7835 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7838 (allocate_piece_closure): Set "per_objfile" member.
7839 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7840 (locexpr_describe_location, loclist_describe_location): Use new
7841 member.
7842 * dwarf2/read.c (read_call_site_scope)
7843 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7844 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7845 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7846 handle_data_member_location): Set per_objfile member.
7847 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7848 member.
7849 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7850
7851 2020-05-27 Tom Tromey <tom@tromey.com>
7852
7853 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7854 allocate_signatured_type>: Declare new methods.
7855 <m_num_psymtabs>: New member.
7856 (struct dwarf2_per_cu_data) <index>: New member.
7857 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7858 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7859 (create_cu_from_index_list): Use allocate_per_cu.
7860 (create_signatured_type_table_from_index)
7861 (create_signatured_type_table_from_debug_names)
7862 (create_debug_type_hash_table, add_type_unit)
7863 (read_comp_units_from_section): Use allocate_signatured_type.
7864
7865 2020-05-27 Tom Tromey <tom@tromey.com>
7866
7867 * psymtab.c (partial_map_expand_apply)
7868 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7869 (psym_lookup_global_symbol_language)
7870 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7871 (psym_print_stats, psym_expand_symtabs_for_function)
7872 (psym_map_symbol_filenames, psym_map_matching_symbols)
7873 (psym_expand_symtabs_matching)
7874 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7875 (maintenance_check_psymtabs): Update.
7876 * psympriv.h (struct partial_symtab) <readin_p,
7877 get_compunit_symtab>: Add objfile parameter.
7878 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7879 Likewise.
7880 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7881 get_compunit_symtab>: Likewise.
7882 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7883
7884 2020-05-27 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7887 member.
7888 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7889 (create_cu_from_index_list)
7890 (create_signatured_type_table_from_index)
7891 (create_signatured_type_table_from_debug_names)
7892 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7893 (dwarf2_create_include_psymtab)
7894 (create_debug_type_hash_table, add_type_unit)
7895 (create_type_unit_group, read_comp_units_from_section)
7896 (dwarf2_compute_name, create_cus_hash_table)
7897 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7898 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7899 obstack.
7900 (dw2_get_real_path): Likewise. Change argument to
7901 dwarf2_per_objfile.
7902
7903 2020-05-27 Luis Machado <luis.machado@linaro.org>
7904
7905 PR tdep/26000
7906 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7907 for ldrd (immediate).
7908
7909 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7910
7911 * command.h: Add comment giving the name of class_tui.
7912 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7913 create the fake command for the help for class_tui.
7914
7915 2020-05-26 Tom Tromey <tromey@adacore.com>
7916
7917 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7918 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7919 (val_atr): New function.
7920 (value_val_atr): Use it.
7921 * ada-valprint.c (print_optional_low_bound): Change low bound
7922 handling for enums.
7923 (val_print_packed_array_elements): Don't call discrete_position.
7924 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7925 discrete_position for enum types.
7926 * language.c (default_print_array_index): Change type.
7927 * language.h (struct language_defn) <la_print_array_index>: Add
7928 index_type parameter, change type of index_value.
7929 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7930 (default_print_array_index): Update.
7931 * valprint.c (maybe_print_array_index): Don't call
7932 value_from_longest. Update.
7933 (value_print_array_elements): Don't call discrete_position.
7934
7935 2020-05-26 Tom Tromey <tromey@adacore.com>
7936
7937 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7938 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7939
7940 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7941
7942 PR gdb/13519
7943 * avr-tdep.c (avr_integer_to_address): Return data or code
7944 address accordingly to the second 'type' argument of the
7945 function.
7946
7947 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7948
7949 * infcmd.c, inferior.h: (construct_inferior_arguments):
7950 Moved function from here to gdbsupport/common-inferior.{h,cc}
7951
7952 2020-05-23 Tom Tromey <tom@tromey.com>
7953
7954 Revert commit eca1f90c:
7955 * NEWS: Remove entry for completion styling.
7956 * completer.c (_rl_completion_prefix_display_length): Move
7957 declaration later.
7958 (gdb_fnprint): Revert.
7959 (gdb_display_match_list_1): Likewise.
7960 * cli/cli-style.c (completion_prefix_style)
7961 (completion_difference_style, completion_suffix_style): Remove.
7962 (_initialize_cli_style): Revert.
7963 * cli/cli-style.h (completion_prefix_style)
7964 (completion_difference_style, completion_suffix_style): Don't
7965 declare.
7966
7967 2020-05-24 Pedro Alves <palves@redhat.com>
7968
7969 * symtab.c (completion_list_add_name): Return boolean indication
7970 of whether the symbol matched.
7971 (completion_list_add_symbol): Don't try to remove C++ aliases if
7972 the symbol didn't match in the first place.
7973 * symtab.h (completion_list_add_name): Return bool.
7974
7975 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7976
7977 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7978 type::field.
7979
7980 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7981
7982 GDB 9.2 released.
7983
7984 2020-05-23 Tom Tromey <tom@tromey.com>
7985
7986 * NEWS: Add entry for completion styling.
7987 * completer.c (_rl_completion_prefix_display_length): Move
7988 declaration earlier.
7989 (gdb_fnprint): Use completion_style.
7990 (gdb_display_match_list_1): Likewise.
7991 * cli/cli-style.c (completion_prefix_style)
7992 (completion_difference_style, completion_suffix_style): New
7993 globals.
7994 (_initialize_cli_style): Register new globals.
7995 * cli/cli-style.h (completion_prefix_style)
7996 (completion_difference_style, completion_suffix_style): Declare.
7997
7998 2020-05-23 Pedro Alves <palves@redhat.com>
7999
8000 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8001 (parse_escape): Use ISDIGIT instead of isdigit.
8002 (puts_debug): Use gdb_isprint instead of isprint.
8003 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8004 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8005 ISSPACE instead of isspace.
8006 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8007 instead of isspace.
8008 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8009 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8010 instead of isxdigit and ISDIGIT instead of isdigit.
8011
8012 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8013
8014 * gdbtypes.h (struct type) <field>: New method.
8015 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8016 or type::field.
8017
8018 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8021 (TYPE_FIELDS): Use type::fields. Change all call sites that
8022 modify the propery to use type::set_fields instead.
8023
8024 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8025
8026 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8027 type::num_fields instead.
8028
8029 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8032 methods.
8033 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8034 that modify the number of fields to use type::set_num_fields
8035 instead.
8036
8037 2020-05-22 Tom Tromey <tromey@adacore.com>
8038
8039 * compile/compile-object-load.h (munmap_list_free): Don't
8040 declare.
8041
8042 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8043
8044 * annotate.c (annotate_source_line): Update return type, add call
8045 to update current symtab and line.
8046 * annotate.h (annotate_source_line): Update return type, and
8047 extend header comment.
8048 * source.c (info_line_command): Check annotation_level before
8049 calling annotate_source_line.
8050 * stack.c (print_frame_info): If calling annotate_source_line
8051 returns true, then don't print any other source line information.
8052
8053 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8056
8057 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * coffread.c (patch_type): Remove NULL check before xfree.
8060 * corefile.c (set_gnutarget): Likewise.
8061 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8062 * exec.c (build_section_table): Likewise.
8063 * remote.c (remote_target::pass_signals): Likewise.
8064 * utils.c (n_spaces): Likewise.
8065 * cli/cli-script.c (document_command): Likewise.
8066 * i386-windows-tdep.c (core_process_module_section): Likewise.
8067 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8068
8069 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * symfile.c (reread_symbols): Clear objfile's section_offsets
8072 vector and section indices, re-compute them by calling
8073 sym_offsets.
8074
8075 2020-05-20 Tom Tromey <tromey@adacore.com>
8076
8077 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8078 (desc_one_bound, desc_index_type): Compute field name.
8079
8080 2020-05-20 Tom de Vries <tdevries@suse.de>
8081
8082 PR symtab/25833
8083 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8084
8085 2020-05-20 Alan Modra <amodra@gmail.com>
8086
8087 PR 25993
8088 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8089 bfd_set_filename.
8090 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8091 passed to bfd_set_filename.
8092 * symfile-mem.c (add_vsyscall_page): Likewise for string
8093 passed to symbol_file_add_from_memory.
8094 (symbol_file_add_from_memory): Make name param a const char* and
8095 don't strdup.
8096
8097 2020-05-20 Alan Modra <amodra@gmail.com>
8098
8099 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8100 rather than accessing bfd->filename directly.
8101 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8102 and use bfd_section_name.
8103 * dwarf2/frame.c (decode_frame_entry): Likewise.
8104 * exec.c (exec_set_section_address): Likewise.
8105 * solib-aix.c (solib_aix_bfd_open): Likewise.
8106 * stap-probe.c (get_stap_base_address): Likewise.
8107 * symfile.c (reread_symbols): Likewise.
8108
8109 2020-05-19 Tom Tromey <tromey@adacore.com>
8110
8111 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8112
8113 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8116
8117 2020-05-19 Pedro Alves <palves@redhat.com>
8118
8119 * NEWS (set exec-file-mismatch): Adjust entry.
8120 * exec.c: Include "build-id.h".
8121 (validate_exec_file): Try to match build IDs instead of filenames.
8122 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8123 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8124 and pass down 'warn_if_slow'.
8125 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8126 gdb_bfd_open_closure to pass it down.
8127 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8128
8129 2020-05-19 Pedro Alves <palves@redhat.com>
8130
8131 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8132 * target.c (target_fileio_open_1): Rename to target_fileio_open
8133 and make extern. Use bool.
8134 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8135 (target_fileio_read_alloc_1): Adjust.
8136 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8137 (target_fileio_open_warn_if_slow): Delete declaration.
8138
8139 2020-05-19 Pedro Alves <palves@redhat.com>
8140
8141 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8142 Adjust all callers.
8143
8144 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8145
8146 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8147 whether disp is negative.
8148
8149 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8150
8151 * symfile.h (struct symfile_segment_data)
8152 <~symfile_segment_data>: Remove.
8153 <segment_info>: Change to std::vector.
8154 * symfile.c (default_symfile_segments): Update.
8155 * elfread.c (elf_symfile_segments): Update.
8156
8157 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8160 <segments>: New.
8161 <segment_bases, segment_sizes>: Remove.
8162 * symfile.c (default_symfile_segments): Update.
8163 * elfread.c (elf_symfile_segments): Update.
8164 * remote.c (remote_target::get_offsets): Update.
8165 * solib-target.c (solib_target_relocate_section_addresses):
8166 Update.
8167
8168 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * symfile.h (struct symfile_segment_data): Initialize fields.
8171 <~symfile_segment_data>: Add.
8172 (symfile_segment_data_up): New.
8173 (struct sym_fns) <sym_segments>: Return a
8174 symfile_segment_data_up.
8175 (default_symfile_segments): Return a symfile_segment_data_up.
8176 (free_symfile_segment_data): Remove.
8177 (get_symfile_segment_data): Return a symfile_segment_data_up.
8178 * symfile.c (default_symfile_segments): Likewise.
8179 (get_symfile_segment_data): Likewise.
8180 (free_symfile_segment_data): Remove.
8181 (symfile_find_segment_sections): Update.
8182 * elfread.c (elf_symfile_segments): Return a
8183 symfile_segment_data_up.
8184 * remote.c (remote_target::get_offsets): Update.
8185 * solib-target.c (solib_target_relocate_section_addresses):
8186 Update.
8187 * symfile-debug.c (debug_sym_segments): Return a
8188 symfile_segment_data_up.
8189
8190 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8191
8192 PR build/25981
8193 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8194 Hardcode register numbers.
8195
8196 PR build/25981
8197 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8198 procfs_find_LDT_entry): Remove.
8199 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8200 procfs_find_LDT_entry): Remove.
8201 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8202 Remove.
8203
8204 2020-05-17 Pedro Alves <palves@redhat.com>
8205 Andrew Burgess <andrew.burgess@embecosm.com>
8206 Keno Fischer <keno@juliacomputing.com>
8207
8208 PR gdb/25741
8209 * breakpoint.c (build_target_condition_list): Update comments.
8210 (build_target_command_list): Update comments and skip matching
8211 locations.
8212 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8213 a separate function. Simplify "set breakpoint auto-hw off"
8214 handling.
8215 (insert_breakpoints): Update comment.
8216 (tracepoint_locations_match): New parameter. For breakpoints,
8217 compare location types too, if the caller wants to.
8218 (handle_automatic_hardware_breakpoints): New functions.
8219 (bp_location_is_less_than): Also sort by location type and
8220 hardware breakpoint length.
8221 (update_global_location_list): Handle "set breakpoint auto-hw on"
8222 here.
8223 (update_breakpoint_locations): Ask breakpoint_locations_match to
8224 ignore location types.
8225
8226 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8227
8228 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8229 type::name instead.
8230
8231 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8232
8233 * gdbtypes.h (struct type) <name, set_name>: New methods.
8234 (TYPE_CODE): Use type::name. Change all call sites used to set
8235 the name to use type::set_name instead.
8236
8237 2020-05-16 Tom Tromey <tom@tromey.com>
8238
8239 * top.c (quit_force): Update.
8240 * infrun.c (handle_no_resumed): Update.
8241 * top.h (all_uis): New function.
8242 (ALL_UIS): Remove.
8243
8244 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8245
8246 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8247
8248 2020-05-16 Pedro Alves <palves@redhat.com>
8249
8250 * ia64-linux-nat.c
8251 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8252 Declare method.
8253 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8254
8255 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8258 (sparc64_adi_info): Likewise.
8259
8260 2020-05-15 Tom Tromey <tom@tromey.com>
8261
8262 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8263 block_objfile.
8264 (lookup_objfile_from_block): Remove.
8265 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8266 (lookup_global_symbol): Use block_objfile.
8267 * symtab.h (lookup_objfile_from_block): Don't declare.
8268 * printcmd.c (clear_dangling_display_expressions): Use
8269 block_objfile.
8270 * parse.c (operator_check_standard): Use block_objfile.
8271
8272 2020-05-15 Tom Tromey <tom@tromey.com>
8273
8274 * language.c (language_alloc_type_symbol): Set
8275 SYMBOL_SECTION.
8276 * symtab.c (initialize_objfile_symbol): Remove.
8277 (allocate_symbol): Remove.
8278 (allocate_template_symbol): Remove.
8279 * dwarf2/read.c (fixup_go_packaging): Use "new".
8280 (new_symbol): Use "new".
8281 (read_variable): Don't call initialize_objfile_symbol. Use
8282 "new".
8283 (read_func_scope): Use "new".
8284 * xcoffread.c (process_xcoff_symbol): Don't call
8285 initialize_objfile_symbol.
8286 (SYMBOL_DUP): Remove.
8287 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8288 "new".
8289 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8290 (allocate_template_symbol): Don't declare.
8291 (struct symbol): Add copy constructor. Change defaults.
8292 * jit.c (finalize_symtab): Use "new".
8293 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8294 Use "new".
8295 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8296 (common_block_end): Use "new".
8297 * mdebugread.c (parse_symbol): Use "new".
8298 (new_symbol): Likewise.
8299
8300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8301
8302 * NEWS: Mention changes to help and apropos.
8303
8304 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8305
8306 * command.h (enum command_class): Improve comments, document
8307 that class_alias is for user-defined aliases, give the class
8308 name for each class, remove unused class_xdb.
8309 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8310 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8311 by a precise class.
8312 * infcmd.c (_initialize_infcmd): Likewise.
8313 * reverse.c (_initialize_reverse): Likewise.
8314 * stack.c (_initialize_stack): Likewise.
8315 * symfile.c (_initialize_symfile): Likewise.
8316 * tracepoint.c (_initialize_tracepoint): Likewise.
8317
8318 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8319
8320 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8321 when their aliased command is traversed.
8322 (help_cmd): Add fput_command_names_styled call to
8323 output command name and aliases when command has an alias.
8324
8325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8326
8327 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8328 * cli/cli-decode.c (help_cmd_list): Declare as static,
8329 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8330 a command together with the command.
8331 (fput_command_name_styled, fput_command_names_styled): New functions.
8332 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8333 fput_command_name_styled.
8334 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8335 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8336
8337 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8338
8339 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8340 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8341 * command.h (cmd_show_list): Likewise.
8342 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8343 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8344
8345 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8346
8347 * unittests/command-def-selftests.c (traverse_command_structure):
8348 Verify all commands of a list have the same prefix command and
8349 that only the top cmdlist commands have a null prefix.
8350
8351 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8352
8353 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8354 as prefix, not one of its aliases.
8355 (set_cmd_prefix): Remove.
8356 (do_add_cmd): Centralize the setting of the prefix of a command, when
8357 command is defined after its full chain of prefix commands.
8358 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8359 (add_setshow_cmd_full): Likewise.
8360 (update_prefix_field_of_prefixed_commands): New function.
8361 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8362 update_prefix_field_of_prefixed_commands.
8363 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8364 addresses of remote_set_cmdlist and remote_show_cmdlist given
8365 as argument, not the address of an argument.
8366 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8367 * gdb/remote.c (_initialize_remote): Likewise.
8368
8369 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8370
8371 * cli/cli-cmds.c (alias_command): Check for an existing alias
8372 using lookup_cmd_composition, as valid_command_p is too strict
8373 and forbids aliases that are the prefix of an existing alias
8374 or command.
8375 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8376 command is properly recognised as a valid command.
8377
8378 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8379
8380 * unittests/help-doc-selftests.c: Rename to
8381 unittests/command-def-selftests.c
8382 * unittests/command-def-selftests.c (help_doc_tests): Update some
8383 comments.
8384 (command_structure_tests, traverse_command_structure): New namespace
8385 and function.
8386 (command_structure_invariants_tests): New function.
8387 (_initialize_command_def_selftests) Renamed from
8388 _initialize_help_doc_selftests, register command_structure_invariants
8389 selftest.
8390
8391 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8392
8393 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8394 an alias of 'show'.
8395
8396 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8397
8398 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8399 ada_is_fixed_point_type. Update all callers.
8400 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8401 all callers.
8402 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8403 Update all callers.
8404 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8405 print_fixed_point_type. Update all callers.
8406 * ada-valprint.c (ada_value_print_num): Replace call to
8407 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8408
8409 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8410
8411 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8412 processors.
8413 (cpu_supports_bts): Add CV_AMD case.
8414
8415 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8416 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * infrun.c (stop_all_threads): Collect multiple wait events at
8419 each pass.
8420
8421 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8424 type::code instead.
8425
8426 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * gdbtypes.h (struct type) <code, set_code>: New methods.
8429 (TYPE_CODE): Use type::code. Change all call sites used to set
8430 the code to use type::set_code instead.
8431
8432 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8433 Tom de Vries <tdevries@suse.de>
8434 Pedro Alves <palves@redhat.com>
8435
8436 PR threads/25478
8437 * infrun.c (stop_all_threads): Do NOT ignore
8438 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8439 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8440 received.
8441 (handle_no_resumed): Remove code handling a live inferior with no
8442 threads.
8443 * remote.c (has_single_non_exited_thread): New.
8444 (remote_target::update_thread_list): Do not delete a thread if is
8445 the last thread of the process.
8446 * thread.c (thread_select): Call delete_exited_threads instead of
8447 prune_threads.
8448
8449 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8450
8451 * infrun.c (stop_all_threads): Enable/disable thread events of all
8452 targets. Move a debug message denoting the end of the function
8453 into the SCOPED_EXIT block.
8454
8455 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8456
8457 * process-stratum-target.h: Include <set>.
8458 (all_non_exited_process_targets, switch_to_target_no_thread): New
8459 function declarations.
8460 * process-stratum-target.c (all_non_exited_process_targets)
8461 (switch_to_target_no_thread): New function implementations.
8462
8463 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8464
8465 * infrun.c (handle_inferior_event): Extract out a piece of code
8466 into...
8467 (mark_non_executing_threads): ...this new function.
8468
8469 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8470
8471 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8472 use.
8473
8474 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8475
8476 * regcache.c (regcache_read_pc_protected): New function
8477 implementation that returns 0 if the PC cannot read via
8478 'regcache_read_pc'.
8479 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8480 instead of 'regcache_read_pc'.
8481 (keep_going_pass_signal): Ditto.
8482
8483 2020-05-13 Tom Tromey <tromey@adacore.com>
8484
8485 * ada-lang.c (align_value): Remove.
8486 (ada_template_to_fixed_record_type_1): Use align_up.
8487
8488 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8489
8490 * async-event.c: Update the copyright year.
8491 * async-event.h: Update the copyright year.
8492
8493 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8494
8495 * objfiles.h (is_addr_in_objfile,
8496 shared_objfile_contains_address_p): Return bool.
8497 * objfile.c (is_addr_in_objfile,
8498 shared_objfile_contains_address_p): Return bool.
8499
8500 2020-05-11 Tom Tromey <tromey@adacore.com>
8501
8502 * cli/cli-cmds.c (info_command): Restore.
8503 (_initialize_cli_cmds): Use add_prefix_command for "info".
8504 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8505
8506 2020-05-11 Tom Tromey <tromey@adacore.com>
8507
8508 * ada-lang.c (ada_value_primitive_field): Now public.
8509 * ada-lang.h (ada_value_primitive_field): Declare.
8510 * ada-valprint.c (print_field_values): Use
8511 ada_value_primitive_field for wrapper fields.
8512
8513 2020-05-11 Tom de Vries <tdevries@suse.de>
8514
8515 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8516 MODULE_DOMAIN.
8517
8518 2020-05-11 Tom de Vries <tdevries@suse.de>
8519
8520 PR symtab/25941
8521 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8522 with length 0, if not gdb-produced.
8523 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8524
8525 2020-05-09 Tom de Vries <tdevries@suse.de>
8526
8527 PR gdb/25955
8528 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8529 calculation.
8530
8531 2020-05-09 Tom Tromey <tom@tromey.com>
8532
8533 * top.c (server_command): Now bool.
8534 * top.h (server_command): Now bool.
8535
8536 2020-05-08 Tom Tromey <tromey@adacore.com>
8537
8538 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8539 already being processed.
8540
8541 2020-05-08 Tom Tromey <tom@tromey.com>
8542
8543 * printcmd.c (struct display) <next>: Remove.
8544 <display>: New constructor.
8545 <exp_string>: Now a std::string.
8546 <enabled_p>: Now a bool.
8547 (display_number): Move definition earlier.
8548 (displays): Rename from display_chain. Now a std::vector.
8549 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8550 (display_command): Update.
8551 (do_one_display, disable_display)
8552 (enable_disable_display_command, do_enable_disable_display):
8553 Update.
8554 (free_display): Remove.
8555 (clear_displays): Rewrite.
8556 (delete_display): Update.
8557 (map_display_numbers): Use function_view. Remove "data"
8558 parameter. Update.
8559 (do_delete_display): Remove.
8560 (undisplay_command): Update.
8561 (do_one_display, do_displays, disable_display)
8562 (info_display_command): Update.
8563 (do_enable_disable_display): Remove.
8564 (enable_disable_display_command)
8565 (clear_dangling_display_expressions): Update.
8566
8567 2020-05-08 Tom Tromey <tom@tromey.com>
8568
8569 * symtab.c (set_symbol_cache_size)
8570 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8571 (maintenance_print_symbol_cache_statistics): Update.
8572 * symmisc.c (print_symbol_bcache_statistics)
8573 (print_objfile_statistics, maintenance_print_objfiles)
8574 (maintenance_info_symtabs, maintenance_check_symtabs)
8575 (maintenance_expand_symtabs, maintenance_info_line_tables):
8576 Update.
8577 * symfile-debug.c (set_debug_symfile): Update.
8578 * source.c (forget_cached_source_info): Update.
8579 * python/python.c (gdbpy_progspaces): Update.
8580 * psymtab.c (maintenance_info_psymtabs): Update.
8581 * probe.c (parse_probes): Update.
8582 * linespec.c (iterate_over_all_matching_symtabs)
8583 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8584 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8585 * exec.c (exec_target::close): Update.
8586 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8587 * breakpoint.c (print_one_breakpoint_location)
8588 (create_longjmp_master_breakpoint)
8589 (create_std_terminate_master_breakpoint): Update.
8590 * progspace.c (program_spaces): Now a std::vector.
8591 (maybe_new_address_space): Update.
8592 (add_program_space): Remove.
8593 (program_space::program_space): Update.
8594 (remove_program_space): Update.
8595 (number_of_program_spaces): Remove.
8596 (print_program_space, update_address_spaces): Update.
8597 * progspace.h (program_spaces): Change type.
8598 (ALL_PSPACES): Remove.
8599 (number_of_program_spaces): Don't declare.
8600 (struct program_space) <next>: Remove.
8601
8602 2020-05-08 Tom Tromey <tom@tromey.com>
8603
8604 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8605 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8606 (enable_break): Update.
8607 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8608 (frv_fdpic_find_canonical_descriptor): Update.
8609 (frv_fetch_objfile_link_map): Update.
8610 * progspace.c (program_space::free_all_objfiles): Update.
8611 (program_space::solibs): New method.
8612 * progspace.h (struct program_space) <solibs>: New method.
8613 * solist.h (master_so_list): Don't declare.
8614 (ALL_SO_LIBS): Remove.
8615 * solib.h (so_list_head): Remove.
8616 (update_solib_list): Update comment.
8617 * solib.c (master_so_list): Remove.
8618 (solib_used, update_solib_list, solib_add)
8619 (info_sharedlibrary_command, clear_solib)
8620 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8621
8622 2020-05-08 Tom Tromey <tom@tromey.com>
8623
8624 * extension.c (extension_languages): Now a std::array.
8625 (ALL_EXTENSION_LANGUAGES): Remove.
8626 (get_ext_lang_defn, get_ext_lang_of_file)
8627 (eval_ext_lang_from_control_command): Update.
8628 (finish_ext_lang_initialization)
8629 (auto_load_ext_lang_scripts_for_objfile)
8630 (ext_lang_type_printers::ext_lang_type_printers)
8631 (apply_ext_lang_type_printers)
8632 (ext_lang_type_printers::~ext_lang_type_printers)
8633 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8634 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8635 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8636 (get_matching_xmethod_workers, ext_lang_colorize)
8637 (ext_lang_before_prompt): Update.
8638 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8639
8640 2020-05-08 Tom Tromey <tom@tromey.com>
8641
8642 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8643 overload.
8644 <swap_string, m_string>: Remove.
8645 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8646 Update.
8647 * stabsread.c (define_symbol, read_type): Update.
8648 * linespec.c (find_linespec_symbols): Update.
8649 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8650 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8651 * dbxread.c (read_dbx_symtab): Update.
8652 * cp-support.h (cp_canonicalize_string_full)
8653 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8654 Return unique_xmalloc_ptr.
8655 * cp-support.c (inspect_type): Update.
8656 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8657 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8658 Likewise.
8659 * c-typeprint.c (print_name_maybe_canonical): Update.
8660 * break-catch-throw.c (check_status_exception_catchpoint):
8661 Update.
8662
8663 2020-05-08 Tom de Vries <tdevries@suse.de>
8664
8665 * infrun.c (follow_fork): Copy current_line and current_symtab to
8666 child thread.
8667
8668 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * async-event.c (struct async_signal_handler, struct
8671 async_event_handler): Reformat, remove typedef.
8672
8673 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8676 access thistype->main_type->dyn_prop_list directly.
8677
8678 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8679
8680 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8681 (remove_dyn_prop): Remove. Update all users to use
8682 type::remove_dyn_prop.
8683 * gdbtypes.c (remove_dyn_prop): Rename to...
8684 (type::remove_dyn_prop): ... this.
8685
8686 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8687
8688 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8689 (add_dyn_prop): Remove. Update all users to use
8690 type::add_dyn_prop.
8691 * gdbtypes.c (add_dyn_prop): Rename to...
8692 (type::add_dyn_prop): ... this.
8693
8694 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8697 (get_dyn_prop): Remove. Update all users to use
8698 type::dyn_prop.
8699 * gdbtypes.c (get_dyn_prop): Rename to...
8700 (type::dyn_prop): ... this.
8701
8702 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8705
8706 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8709 instruction, skip it if it's there.
8710
8711 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8712
8713 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8714
8715 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8718 * gdbtypes.c (recursive_dump_type): Remove use of
8719 TYPE_INCOMPLETE.
8720
8721 2020-05-03 Tom Tromey <tom@tromey.com>
8722
8723 * breakpoint.c (catch_command, tcatch_command): Remove.
8724 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8725 add_show_prefix_cmd.
8726 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8727 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8728 Remove.
8729 (add_internal_problem_command): Use add_basic_prefix_cmd,
8730 add_show_prefix_cmd.
8731 * mips-tdep.c (set_mipsfpu_command): Remove.
8732 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8733 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8734 (_initialize_index_cache): Use add_basic_prefix_cmd.
8735 * memattr.c (dummy_cmd): Remove.
8736 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8737 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8738 (_initialize_tui_win): Use add_basic_prefix_cmd,
8739 add_show_prefix_cmd.
8740 * cli/cli-logging.c (set_logging_command): Remove.
8741 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8742 add_show_prefix_cmd.
8743 (show_logging_command): Remove.
8744 * target.c (target_command): Remove.
8745 (add_target): Use add_basic_prefix_cmd.
8746
8747 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8748
8749 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8750
8751 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8752
8753 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8754 info_command.
8755
8756 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8757
8758 * nbsd-nat.c (nbsd_enable_proc_events)
8759 (nbsd_nat_target::post_startup_inferior): Add.
8760 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8761 (nbsd_nat_target::update_thread_list): Rewrite.
8762 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8763 "PTRACE_LWP_CREATE".
8764 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8765
8766 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8767
8768 * stack.c (_initialize_stack): Remove duplicated creation
8769 of "frame" command and "f" alias.
8770
8771 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8772
8773 PR gdb/18706
8774 * gdbtypes.c (check_typedef): Calculate size of array of
8775 stubbed type.
8776
8777 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8778
8779 PR gdb/15559
8780 * i386-tdep.c (i386_push_dummy_call): Call
8781 i386_thiscall_push_dummy_call.
8782 (i386_thiscall_push_dummy_call): New function.
8783 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8784 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8785 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8786
8787 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * gdbarch.sh (do_read): Add shellcheck disable directive for
8790 warning SC2162.
8791
8792 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8795 "referenced but not assigned" warning.
8796
8797 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * gdbarch.sh: Remove code that sets fallbackdefault.
8800
8801 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8802
8803 * gdbarch.sh: Use shell operators && and || instead of
8804 -a and -o.
8805
8806 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8807
8808 * gdbarch.sh: Use $(...) instead of `...`.
8809
8810 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * gdbarch.sh: Use double quotes around variables.
8813
8814 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8815
8816 * gdbarch.sh: Use %s with printf, instead of variables in the
8817 format string.
8818
8819 2020-04-29 Tom Tromey <tromey@adacore.com>
8820
8821 PR ada/25875:
8822 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8823 type fields here.
8824 (read_enumeration_type): Call
8825 update_enumeration_type_from_children later. Update comments.
8826 (process_enumeration_scope): Don't create type fields.
8827
8828 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8829
8830 * nbsd-tdep.c: Include "xml-syscall.h".
8831 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8832
8833 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8834
8835 * nbsd-nat.c: Include "sys/wait.h".
8836 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8837 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8838 (nbsd_nat_target::remove_exec_catchpoint)
8839 (nbsd_nat_target::set_syscall_catchpoint): Add.
8840 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8841 (nbsd_nat_target::insert_exec_catchpoint)
8842 (nbsd_nat_target::remove_exec_catchpoint)
8843 (nbsd_nat_target::set_syscall_catchpoint): Add.
8844 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8845 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8846 `nbsd_get_syscall_number'.
8847
8848 2020-04-29 Tom Tromey <tom@tromey.com>
8849
8850 * stack.c (print_block_frame_labels): Remove.
8851
8852 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8853
8854 PR gdb/17320
8855 * ada-valprint.c (val_print_packed_array_elements): Move array
8856 end bracket to new line.
8857 (ada_val_print_string): Remove extra spaces before first array
8858 element.
8859 * c-valprint.c (c_value_print_array): Likewise.
8860 * m2-valprint.c (m2_print_array_contents): Likewise.
8861 (m2_value_print_inner): Likewise.
8862 * p-valprint.c (pascal_value_print_inner): Likewise.
8863 * valprint.c (generic_val_print_array): Likewise.
8864 (value_print_array_elements): Move first array element and array
8865 end bracket to new line.
8866
8867 2020-04-29 Tom de Vries <tdevries@suse.de>
8868
8869 PR symtab/25889
8870 * linespec.c (find_method): Fix ix calculation.
8871
8872 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8873
8874 * syscalls/update-netbsd.sh: New file.
8875 * syscalls/netbsd.xml: Regenerate.
8876 * data-directory/Makefile.in: Register `netbsd.xml' in
8877 `SYSCALLS_FILES'.
8878
8879 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * syscalls/update-freebsd.sh: Add double quotes.
8882
8883 2020-04-28 Tom Tromey <tom@tromey.com>
8884
8885 * NEWS: Update.
8886 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8887 (cmdpy_init): Allow class_tui.
8888
8889 2020-04-28 Mark Williams <mark@myosotissp.com>
8890
8891 PR gdb/24480
8892 * dwarf2read.c: Add missing assingments to list_in_scope when
8893 start_symtab was already called.
8894
8895 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8896
8897 PR gdb/25881
8898 * dwarf2/read.c (offset_map_type): Use
8899 gdb:hash_enum<sect_offset> as hash function.
8900
8901 2020-04-28 Tom de Vries <tdevries@suse.de>
8902
8903 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8904 with DW_AT_signature.
8905
8906 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * configure.ac: Remove check for fs_base/gs_base in
8909 user_regs_struct.
8910 * configure: Re-generate.
8911 * config.in: Re-generate.
8912 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8913 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8914 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8915
8916 2020-04-27 Luis Machado <luis.machado@linaro.org>
8917
8918 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8919 problematic inline frame unwinding situation.
8920 * frame.c (frame_id_computed_p): New function.
8921 * frame.h (frame_id_computed_p): New prototype.
8922
8923 2020-04-26 Tom Tromey <tom@tromey.com>
8924
8925 * command.h (enum command_class) <class_pseudo>: Remove.
8926
8927 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8928
8929 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8930 and whitespace.
8931
8932 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8933
8934 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8935 `PT_GET_PROCESS_STATE' block.
8936
8937 2020-04-24 Tom Tromey <tom@tromey.com>
8938
8939 * symtab.h (symbol_get_demangled_name): Don't declare.
8940 * symtab.c (symbol_get_demangled_name): Remove.
8941 (general_symbol_info::natural_name)
8942 (general_symbol_info::demangled_name): Update.
8943
8944 2020-04-24 Tom Tromey <tom@tromey.com>
8945
8946 PR rust/25025:
8947 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8948
8949 2020-04-24 Tom Tromey <tom@tromey.com>
8950
8951 PR symtab/12707:
8952 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8953 exists.
8954 (new_symbol): Likewise.
8955 * compile/compile-object-load.c (get_out_value_type): Use
8956 symbol_matches_search_name.
8957
8958 2020-04-24 Tom Tromey <tom@tromey.com>
8959
8960 * dwarf2/read.c (add_partial_symbol): Do not call
8961 compute_and_set_names.
8962
8963 2020-04-24 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8966 overload.
8967
8968 2020-04-24 Tom Tromey <tom@tromey.com>
8969
8970 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8971 (add_psymbol_to_list): New overload. Make old overload call new
8972 one.
8973 * psympriv.h (add_psymbol_to_list): New overload.
8974
8975 2020-04-24 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (partial_die_info::read) <case
8978 DW_AT_linkage_name>: Use value_as_string.
8979 (dwarf2_string_attr): Use value_as_string.
8980 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8981 method.
8982 * dwarf2/attribute.c (attribute::value_as_string): New method.
8983
8984 2020-04-24 Tom Tromey <tom@tromey.com>
8985
8986 * symtab.c (general_symbol_info::natural_name)
8987 (general_symbol_info::demangled_name): Check for language_rust.
8988
8989 2020-04-24 Tom Tromey <tom@tromey.com>
8990
8991 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8992 (dwarf2_physname): ... from here.
8993 (partial_die_info::read): Add Rust "{" hack.
8994
8995 2020-04-24 Tom Tromey <tom@tromey.com>
8996
8997 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8998 method.
8999 (symbol_set_demangled_name): Don't declare.
9000 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9001 symbol_set_demangled_name.
9002 (general_symbol_info::set_language)
9003 (general_symbol_info::compute_and_set_names): Update.
9004 * minsyms.c (minimal_symbol_reader::install): Update.
9005 * dwarf2/read.c (new_symbol): Update.
9006
9007 2020-04-24 Tom Tromey <tromey@adacore.com>
9008
9009 PR python/23662:
9010 * python/py-type.c (convert_field): Handle
9011 FIELD_LOC_KIND_DWARF_BLOCK.
9012 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9013 (typy_get_dynamic): Nw function.
9014 (type_object_getset): Add "dynamic".
9015 * NEWS: Add entry.
9016
9017 2020-04-24 Tom Tromey <tromey@adacore.com>
9018
9019 * ada-typeprint.c (print_choices, print_variant_part)
9020 (print_record_field_types_dynamic): New functions.
9021 (print_record_field_types): Use print_record_field_types_dynamic.
9022
9023 2020-04-24 Tom Tromey <tromey@adacore.com>
9024
9025 * dwarf2/read.c (handle_data_member_location): New overload.
9026 (dwarf2_add_field): Use it.
9027 (decode_locdesc): Add "computed" parameter. Update comment.
9028 * gdbtypes.c (is_dynamic_type_internal): Also look for
9029 FIELD_LOC_KIND_DWARF_BLOCK.
9030 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9031 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9032 virtual base classes.
9033 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9034 FIELD_LOC_KIND_DWARF_BLOCK.
9035
9036 2020-04-24 Tom Tromey <tromey@adacore.com>
9037
9038 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9039 * gdbtypes.c (is_dynamic_type_internal): Check
9040 TYPE_HAS_DYNAMIC_LENGTH.
9041 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9042 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9043 New macros.
9044 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9045 constant.
9046
9047 2020-04-24 Tom Tromey <tromey@adacore.com>
9048
9049 * dwarf2/read.c (struct variant_field): Rewrite.
9050 (struct variant_part_builder): New.
9051 (struct nextfield): Remove "variant" field. Add "offset".
9052 (struct field_info): Add "current_variant_part" and
9053 "variant_parts".
9054 (alloc_discriminant_info): Remove.
9055 (alloc_rust_variant): New function.
9056 (quirk_rust_enum): Update.
9057 (dwarf2_add_field): Set "offset" member. Don't handle
9058 DW_TAG_variant_part.
9059 (offset_map_type): New typedef.
9060 (convert_variant_range, create_one_variant)
9061 (create_one_variant_part, create_variant_parts)
9062 (add_variant_property): New functions.
9063 (dwarf2_attach_fields_to_type): Call add_variant_property.
9064 (read_structure_type): Don't handle DW_TAG_variant_part.
9065 (handle_variant_part, handle_variant): New functions.
9066 (handle_struct_member_die): Use them.
9067 (process_structure_scope): Don't handle variant parts.
9068 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9069 (struct discriminant_info): Remove.
9070 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9071 (struct main_type) <flag_discriminated_union>: Remove.
9072 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9073 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9074 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9075 Update.
9076 * valops.c (value_union_variant): Remove.
9077 * value.h (value_union_variant): Don't declare.
9078
9079 2020-04-24 Tom Tromey <tromey@adacore.com>
9080
9081 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9082 (ada_value_primitive_packed_val): Update.
9083 * ada-valprint.c (ada_value_print_1): Update.
9084 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9085 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9086 just an address. Use evaluate_for_locexpr_baton.
9087 (dwarf2_evaluate_property): Update.
9088 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9089 array_view.
9090 * findvar.c (default_read_var_value): Update.
9091 * gdbtypes.c (compute_variant_fields_inner)
9092 (resolve_dynamic_type_internal): Update.
9093 (resolve_dynamic_type): Change type of valaddr parameter.
9094 * gdbtypes.h (resolve_dynamic_type): Update.
9095 * valarith.c (value_subscripted_rvalue): Update.
9096 * value.c (value_from_contents_and_address): Update.
9097
9098 2020-04-24 Tom Tromey <tromey@adacore.com>
9099
9100 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9101 "push_initial_value" parameter.
9102 (dwarf2_evaluate_property): Likewise.
9103 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9104
9105 2020-04-24 Tom Tromey <tromey@adacore.com>
9106
9107 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9108 (variant::matches, compute_variant_fields_recurse)
9109 (compute_variant_fields_inner, compute_variant_fields): New
9110 functions.
9111 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9112 Use resolved_type after type is made.
9113 (operator==): Add new cases.
9114 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9115 (struct discriminant_range, struct variant, struct variant_part):
9116 New.
9117 (union dynamic_prop_data) <variant_parts, original_type>: New
9118 members.
9119 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9120 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9121 constants.
9122 * value.c (unpack_bits_as_long): Now public.
9123 * value.h (unpack_bits_as_long): Declare.
9124
9125 2020-04-24 Tom Tromey <tromey@adacore.com>
9126
9127 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9128 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9129
9130 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9131
9132 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9133
9134 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9135
9136 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9137 (remove_fork_catchpoint, post_startup_inferior)
9138 (post_attach): Move...
9139 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9140 (remove_fork_catchpoint, post_startup_inferior)
9141 (post_attach): ...here.
9142 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9143 (remove_fork_catchpoint, post_startup_inferior)
9144 (post_attach): Move...
9145 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9146 (remove_fork_catchpoint, post_startup_inferior)
9147 (post_attach): ...here.
9148
9149 2020-04-24 Tom Tromey <tromey@adacore.com>
9150
9151 * nat/windows-nat.h (struct windows_thread_info)
9152 <pc_adjusted>: New member.
9153 * windows-nat.c (windows_fetch_one_register): Check
9154 pc_adjusted.
9155 (windows_nat_target::get_windows_debug_event)
9156 (windows_nat_target::wait): Set pc_adjusted.
9157
9158 2020-04-24 Tom de Vries <tdevries@suse.de>
9159
9160 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9161 Run gdb-add-index inside temp dir.
9162
9163 2020-04-23 Tom Tromey <tromey@adacore.com>
9164
9165 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9166 in loop.
9167
9168 2020-04-23 Luis Machado <luis.machado@linaro.org>
9169
9170 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9171 get_frame_register instead of gdbarch_unwind_pc.
9172
9173 2020-04-23 Tom de Vries <tdevries@suse.de>
9174
9175 * symtab.c (lookup_global_symbol): Prefer def over decl.
9176
9177 2020-04-23 Tom de Vries <tdevries@suse.de>
9178
9179 PR symtab/25807
9180 * block.c (best_symbol, better_symbol): Promote to external.
9181 * block.h (best_symbol, better_symbol): Declare.
9182 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9183 decl.
9184
9185 2020-04-23 Tom Tromey <tromey@adacore.com>
9186
9187 PR ada/25837:
9188 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9189 "const char *", not a "const std::string &".
9190 <name_and_matcher::operator==>: Update.
9191 * unittests/lookup_name_info-selftests.c: Change type of
9192 "result".
9193
9194 2020-04-23 Tom Tromey <tom@tromey.com>
9195
9196 * inferior.h (iterate_over_inferiors): Don't declare.
9197 * inferior.c (iterate_over_inferiors): Remove.
9198 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9199 Remove.
9200 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9201 use iterate_over_inferiors.
9202 (darwin_resume_inferior_it)
9203 (struct resume_inferior_threads_param)
9204 (darwin_resume_inferior_threads_it): Remove.
9205 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9206
9207 2020-04-23 Tom de Vries <tdevries@suse.de>
9208
9209 * blockframe.c (find_pc_partial_function): Use
9210 find_pc_sect_compunit_symtab rather than
9211 objfile->sf->qf->find_pc_sect_compunit_symtab.
9212
9213 2020-04-22 Tom de Vries <tdevries@suse.de>
9214
9215 PR symtab/25764
9216 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9217 in psymtabs.
9218
9219 2020-04-22 Tom de Vries <tdevries@suse.de>
9220
9221 PR symtab/25801
9222 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9223 symtabs.
9224
9225 2020-04-22 Tom de Vries <tdevries@suse.de>
9226
9227 PR symtab/25700
9228 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9229 CU if already created.
9230
9231 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9232
9233 * infrun.c (displaced_step_fixup): Switch to the event_thread
9234 before calling displaced_step_restore, not after.
9235
9236 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9237
9238 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9239 its inferior is not recorded by us.
9240 (record_btrace_target_open): Replace call to
9241 all_non_exited_threads () with call to current_inferior
9242 ()->non_exited_threads ().
9243 (record_btrace_target::stop_recording): Likewise.
9244 (record_btrace_target::close): Likewise.
9245 (record_btrace_target::wait): Likewise.
9246 (record_btrace_target::record_stop_replaying): Likewise.
9247
9248 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9249
9250 * btrace.c (btrace_enable): Throw an error on double enables and
9251 when enabling recording fails.
9252 (btrace_disable): Throw an error if the thread is not recorded.
9253
9254 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9255
9256 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9257 request if we do not have a thread_info.
9258
9259 2020-04-21 Tom de Vries <tdevries@suse.de>
9260
9261 PR gdb/25471
9262 * thread.c
9263 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9264 exception in get_frame_id.
9265
9266 2020-04-20 Tom Tromey <tromey@adacore.com>
9267
9268 * python/python.c (struct gdbpy_event): Mark move constructor as
9269 noexcept.
9270 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9271 constructor as noexcept.
9272 * completer.h (struct completion_result): Mark move constructor as
9273 noexcept.
9274 * completer.c (completion_result::completion_result): Use
9275 initialization style. Don't call reset_match_list.
9276
9277 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9278
9279 * MAINTAINERS (Write After Approval): Add myself.
9280
9281 2020-04-18 Tom Tromey <tom@tromey.com>
9282
9283 * windows-tdep.c (init_w32_command_list)
9284 (w32_prefix_command_valid): Restore.
9285 (_initialize_windows_tdep): Call init_w32_command_list.
9286
9287 2020-04-18 Tom Tromey <tom@tromey.com>
9288
9289 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9290 * value.c (value_fn_field): Update.
9291 * valops.c (find_function_in_inferior)
9292 (value_allocate_space_in_inferior): Update.
9293 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9294 Update.
9295 * tui/tui-source.c (tui_source_window::set_contents): Update.
9296 * symtab.c (lookup_global_or_static_symbol)
9297 (find_function_start_sal_1, skip_prologue_sal)
9298 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9299 * symmisc.c (dump_msymbols, dump_symtab_1)
9300 (maintenance_print_one_line_table): Update.
9301 * symfile.c (init_entry_point_info, section_is_mapped)
9302 (list_overlays_command, simple_read_overlay_table)
9303 (simple_overlay_update_1): Update.
9304 * stap-probe.c (handle_stap_probe): Update.
9305 * stabsread.c (dbx_init_float_type, define_symbol)
9306 (read_one_struct_field, read_enum_type, read_range_type): Update.
9307 * source.c (info_line_command): Update.
9308 * python/python.c (gdbpy_source_objfile_script)
9309 (gdbpy_execute_objfile_script): Update.
9310 * python/py-type.c (save_objfile_types): Update.
9311 * python/py-objfile.c (py_free_objfile): Update.
9312 * python/py-inferior.c (python_new_objfile): Update.
9313 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9314 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9315 (maintenance_check_psymtabs): Update.
9316 * printcmd.c (info_address_command): Update.
9317 * objfiles.h (struct objfile) <arch>: New method, from
9318 get_objfile_arch.
9319 (get_objfile_arch): Don't declare.
9320 * objfiles.c (get_objfile_arch): Remove.
9321 (filter_overlapping_sections): Update.
9322 * minsyms.c (msymbol_is_function): Update.
9323 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9324 (output_nondebug_symbol): Update.
9325 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9326 (mdebug_expand_psymtab): Update.
9327 * machoread.c (macho_add_oso_symfile): Update.
9328 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9329 Update.
9330 * linux-fork.c (checkpoint_command): Update.
9331 * linespec.c (convert_linespec_to_sals): Update.
9332 * jit.c (finalize_symtab): Update.
9333 * infrun.c (insert_exception_resume_from_probe): Update.
9334 * ia64-tdep.c (ia64_find_unwind_table): Update.
9335 * hppa-tdep.c (internalize_unwinds): Update.
9336 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9337 Update.
9338 * gcore.c (call_target_sbrk): Update.
9339 * elfread.c (record_minimal_symbol, elf_symtab_read)
9340 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9341 (elf_gnu_ifunc_resolve_by_got): Update.
9342 * dwarf2/read.c (create_addrmap_from_index)
9343 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9344 (read_debug_names_from_section)
9345 (process_psymtab_comp_unit_reader, add_partial_symbol)
9346 (add_partial_subprogram, process_full_comp_unit)
9347 (read_file_scope, read_func_scope, read_lexical_block_scope)
9348 (read_call_site_scope, dwarf2_ranges_read)
9349 (dwarf2_record_block_ranges, dwarf2_add_field)
9350 (mark_common_block_symbol_computed, read_tag_pointer_type)
9351 (read_tag_string_type, dwarf2_init_float_type)
9352 (dwarf2_init_complex_target_type, read_base_type)
9353 (partial_die_info::read, partial_die_info::read)
9354 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9355 (dwarf2_fetch_die_loc_sect_off): Update.
9356 * dwarf2/loc.c (dwarf2_find_location_expression)
9357 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9358 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9359 (dwarf2_loc_desc_get_symbol_read_needs)
9360 (locexpr_describe_location_piece, locexpr_describe_location_1)
9361 (loclist_describe_location): Update.
9362 * dwarf2/index-write.c (write_debug_names): Update.
9363 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9364 * dtrace-probe.c (dtrace_process_dof): Update.
9365 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9366 (process_one_symbol): Update.
9367 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9368 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9369 (coff_read_enum_type): Update.
9370 * cli/cli-cmds.c (edit_command, list_command): Update.
9371 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9372 * breakpoint.c (create_overlay_event_breakpoint)
9373 (create_longjmp_master_breakpoint)
9374 (create_std_terminate_master_breakpoint)
9375 (create_exception_master_breakpoint, get_sal_arch): Update.
9376 * block.c (block_gdbarch): Update.
9377 * annotate.c (annotate_source_line): Update.
9378
9379 2020-04-17 Tom Tromey <tromey@adacore.com>
9380
9381 * auto-load.c (show_auto_load_cmd): Remove.
9382 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9383 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9384 (maintenance_print_arc_command): Remove.
9385 * tui/tui-win.c (tui_command): Remove.
9386 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9387 * tui/tui-layout.c (tui_layout_command): Remove.
9388 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9389 * python/python.c (user_set_python, user_show_python): Remove.
9390 (_initialize_python): Use add_basic_prefix_cmd,
9391 add_show_prefix_cmd.
9392 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9393 (install_gdb_commands): Use add_basic_prefix_cmd,
9394 add_show_prefix_cmd.
9395 (info_guile_command): Remove.
9396 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9397 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9398 add_show_prefix_cmd.
9399 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9400 Remove do_set and do_show parameters.
9401 * cli/cli-style.c (set_style, show_style): Remove.
9402 (_initialize_cli_style): Use add_basic_prefix_cmd,
9403 add_show_prefix_cmd.
9404 (cli_style_option::add_setshow_commands): Remove do_set and
9405 do_show parameters.
9406 (cli_style_option::add_setshow_commands): Use
9407 add_basic_prefix_cmd, add_show_prefix_cmd.
9408 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9409 (set_style_name): Remove.
9410 * cli/cli-dump.c (dump_command, append_command): Remove.
9411 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9412 (tekhex_dump_command, binary_dump_command)
9413 (binary_append_command): Remove.
9414 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9415 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9416 (init_w32_command_list): Remove; move into ...
9417 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9418 * valprint.c (set_print, show_print, set_print_raw)
9419 (show_print_raw): Remove.
9420 (_initialize_valprint): Use add_basic_prefix_cmd,
9421 add_show_prefix_cmd.
9422 * typeprint.c (set_print_type, show_print_type): Remove.
9423 (_initialize_typeprint): Use add_basic_prefix_cmd,
9424 add_show_prefix_cmd.
9425 * record.c (set_record_command, show_record_command): Remove.
9426 (_initialize_record): Use add_basic_prefix_cmd,
9427 add_show_prefix_cmd.
9428 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9429 add_show_prefix_cmd.
9430 (info_command, show_command, set_debug, show_debug): Remove.
9431 * top.h (set_history, show_history): Don't declare.
9432 * top.c (set_history, show_history): Remove.
9433 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9434 (unset_tdesc_cmd): Remove.
9435 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9436 add_show_prefix_cmd.
9437 * symtab.c (info_module_command): Remove.
9438 (_initialize_symtab): Use add_basic_prefix_cmd.
9439 * symfile.c (overlay_command): Remove.
9440 (_initialize_symfile): Use add_basic_prefix_cmd.
9441 * sparc64-tdep.c (info_adi_command): Remove.
9442 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9443 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9444 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9445 add_show_prefix_cmd.
9446 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9447 (_initialize_serial): Use add_basic_prefix_cmd,
9448 add_show_prefix_cmd.
9449 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9450 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9451 add_show_prefix_cmd.
9452 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9453 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9454 add_show_prefix_cmd.
9455 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9456 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9457 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9458 add_show_prefix_cmd.
9459 * remote.c (remote_command, set_remote_cmd): Remove.
9460 (_initialize_remote): Use add_basic_prefix_cmd.
9461 * record-full.c (set_record_full_command)
9462 (show_record_full_command): Remove.
9463 (_initialize_record_full): Use add_basic_prefix_cmd,
9464 add_show_prefix_cmd.
9465 * record-btrace.c (cmd_set_record_btrace)
9466 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9467 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9468 (cmd_show_record_btrace_pt): Remove.
9469 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9470 add_show_prefix_cmd.
9471 * ravenscar-thread.c (set_ravenscar_command)
9472 (show_ravenscar_command): Remove.
9473 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9474 add_show_prefix_cmd.
9475 * mips-tdep.c (show_mips_command, set_mips_command)
9476 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9477 add_show_prefix_cmd.
9478 * maint.c (maintenance_command, maintenance_info_command)
9479 (maintenance_check_command, maintenance_print_command)
9480 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9481 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 (show_per_command_cmd): Remove.
9484 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9485 Remove.
9486 (maintenance_show_test_settings_cmd): Remove.
9487 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9488 add_show_prefix_cmd.
9489 * maint-test-options.c (maintenance_test_options_command):
9490 Remove.
9491 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9492 * macrocmd.c (macro_command): Remove
9493 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9494 * language.c (set_check, show_check): Remove.
9495 (_initialize_language): Use add_basic_prefix_cmd,
9496 add_show_prefix_cmd.
9497 * infcmd.c (unset_command): Remove.
9498 (_initialize_infcmd): Use add_basic_prefix_cmd.
9499 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9500 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9501 add_show_prefix_cmd.
9502 * go32-nat.c (go32_info_dos_command): Remove.
9503 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9504 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9505 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9506 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9507 (_initialize_frame): Use add_basic_prefix_cmd,
9508 add_show_prefix_cmd.
9509 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9510 (_initialize_dcache): Use add_basic_prefix_cmd,
9511 add_show_prefix_cmd.
9512 * cp-support.c (maint_cplus_command): Remove.
9513 (_initialize_cp_support): Use add_basic_prefix_cmd.
9514 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9515 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9516 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9517 add_basic_prefix_cmd, add_show_prefix_cmd.
9518 * breakpoint.c (save_command): Remove.
9519 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9520 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9521 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9522 add_show_prefix_cmd.
9523 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9524 (set_ada_command, show_ada_command): Remove.
9525 (_initialize_ada_language): Use add_basic_prefix_cmd,
9526 add_show_prefix_cmd.
9527 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9528
9529 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9530
9531 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9532 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9533
9534 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9537 warning messages.
9538
9539 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9540
9541 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9542 import table is not at beginning of .idata section.
9543
9544 2020-04-16 Pedro Alves <palves@redhat.com>
9545
9546 * inferior.c (delete_inferior): Use delete operator directly
9547 instead of delete_program_space.
9548 * progspace.c (add_program_space): New, factored out from
9549 program_space::program_space.
9550 (remove_program_space): New, factored out from
9551 delete_program_space.
9552 (program_space::program_space): Remove intro comment. Rewrite.
9553 (program_space::~program_space): Remove intro comment. Call
9554 remove_program_space.
9555 (delete_program_space): Delete.
9556 * progspace.h (program_space::program_space): Make explicit. Move
9557 intro comment here, adjusted.
9558 (program_space::~program_space): Move intro comment here,
9559 adjusted.
9560 (delete_program_space): Remove.
9561
9562 2020-04-16 Tom Tromey <tromey@adacore.com>
9563
9564 * windows-nat.c (windows_nat::handle_access_violation): New
9565 function.
9566 * nat/windows-nat.h (handle_access_violation): Declare.
9567 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9568 windows-nat.c. Call handle_access_violation.
9569
9570 2020-04-16 Tom de Vries <tdevries@suse.de>
9571
9572 PR symtab/25791
9573 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9574 CUs without psymtab.
9575
9576 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9577
9578 * python/python.c (do_start_initialization): Don't call
9579 PyEval_InitThreads for Python 3.9 and beyond.
9580
9581 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9582
9583 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9584 thread functions.
9585 (obsd_nat_target::wait): Likewise.
9586
9587 2020-04-15 Tom Tromey <tromey@adacore.com>
9588
9589 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9590 (DEBUG_EXCEPT): Use debug_printf.
9591
9592 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9593
9594 * completer.c (class completion_tracker::completion_hash_entry)
9595 <hash_name>: New member function.
9596 (completion_tracker::discard_completions): New callback to hash a
9597 completion_hash_entry, pass this to htab_create_alloc.
9598
9599 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9600
9601 * windows-nat.c (windows_make_so): Warn rather than stopping with
9602 an error if realpath() fails.
9603
9604 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9605
9606 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9607 (nbsd_nat_target::info_proc): Add do_status.
9608
9609 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9610 Tom de Vries <tdevries@suse.de>
9611
9612 PR symtab/25718
9613 * psympriv.h (struct partial_symtab::read_symtab)
9614 (struct partial_symtab::expand_psymtab)
9615 (struct partial_symtab::read_dependencies): Update comments.
9616 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9617 read_symtab for includer.
9618 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9619 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9620 (struct dwarf2_include_psymtab::m_readin): Remove.
9621 (struct dwarf2_include_psymtab::includer): New member function.
9622 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9623
9624 2020-04-14 Tom de Vries <tdevries@suse.de>
9625
9626 PR symtab/25720
9627 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9628 with NULL symbol_matcher and lookup_name.
9629 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9630 and lookup_name.
9631 * dwarf2/read.c (dw2_expand_symtabs_matching)
9632 (dw2_debug_names_expand_symtabs_matching): Same.
9633 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9634 Make lookup_name a pointer. Update comment.
9635 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9636 lookup_name being a pointer.
9637 * symfile.c (expand_symtabs_matching): Same.
9638 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9639 * linespec.c (iterate_over_all_matching_symtabs): Same.
9640
9641 2020-04-13 Tom Tromey <tom@tromey.com>
9642
9643 * run-on-main-thread.c: Update include.
9644 * unittests/main-thread-selftests.c: Update include.
9645 * tui/tui-win.c: Update include.
9646 * tui/tui-io.c: Update include.
9647 * tui/tui-interp.c: Update include.
9648 * tui/tui-hooks.c: Update include.
9649 * top.h: Update include.
9650 * top.c: Update include.
9651 * ser-base.c: Update include.
9652 * remote.c: Update include.
9653 * remote-notif.c: Update include.
9654 * remote-fileio.c: Update include.
9655 * record-full.c: Update include.
9656 * record-btrace.c: Update include.
9657 * python/python.c: Update include.
9658 * posix-hdep.c: Update include.
9659 * mingw-hdep.c: Update include.
9660 * mi/mi-main.c: Update include.
9661 * mi/mi-interp.c: Update include.
9662 * main.c: Update include.
9663 * linux-nat.c: Update include.
9664 * interps.c: Update include.
9665 * infrun.c: Update include.
9666 * inf-loop.c: Update include.
9667 * event-top.c: Update include.
9668 * event-loop.c: Move to ../gdbsupport/.
9669 * event-loop.h: Move to ../gdbsupport/.
9670 * async-event.h: Update include.
9671 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9672
9673 2020-04-13 Tom Tromey <tom@tromey.com>
9674
9675 * tui/tui-win.c: Include async-event.h.
9676 * remote.c: Include async-event.h.
9677 * remote-notif.c: Include async-event.h.
9678 * record-full.c: Include async-event.h.
9679 * record-btrace.c: Include async-event.h.
9680 * infrun.c: Include async-event.h.
9681 * event-top.c: Include async-event.h.
9682 * event-loop.h: Move some declarations to async-event.h.
9683 * event-loop.c: Don't include ser-event.h or top.h. Move some
9684 code to async-event.c.
9685 * async-event.h: New file.
9686 * async-event.c: New file.
9687 * Makefile.in (COMMON_SFILES): Add async-event.c.
9688 (HFILES_NO_SRCDIR): Add async-event.h.
9689
9690 2020-04-13 Tom Tromey <tom@tromey.com>
9691
9692 * utils.c (flush_streams): New function.
9693 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9694
9695 2020-04-13 Tom Tromey <tom@tromey.com>
9696
9697 * event-loop.c (handle_file_event): Use warning, not
9698 printf_unfiltered.
9699
9700 2020-04-13 Tom Tromey <tom@tromey.com>
9701
9702 * event-loop.c: Include <chrono>.
9703
9704 2020-04-13 Tom Tromey <tom@tromey.com>
9705
9706 * gdb_select.h: Move to ../gdbsupport/.
9707 * event-loop.c: Update include path.
9708 * top.c: Update include path.
9709 * ser-base.c: Update include path.
9710 * ui-file.c: Update include path.
9711 * ser-tcp.c: Update include path.
9712 * guile/scm-ports.c: Update include path.
9713 * posix-hdep.c: Update include path.
9714 * ser-unix.c: Update include path.
9715 * gdb_usleep.c: Update include path.
9716 * mingw-hdep.c: Update include path.
9717 * inflow.c: Update include path.
9718 * infrun.c: Update include path.
9719 * event-top.c: Update include path.
9720
9721 2020-04-13 Tom Tromey <tom@tromey.com>
9722
9723 * configure: Rebuild.
9724 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9725
9726 2020-04-13 Tom Tromey <tom@tromey.com>
9727
9728 * event-loop.h (start_event_loop): Don't declare.
9729 * event-loop.c (start_event_loop): Move...
9730 * main.c (start_event_loop): ...here. Now static.
9731
9732 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9733
9734 * MAINTAINERS: Update my email address.
9735
9736 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9737
9738 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9739 IP_ALL.
9740
9741 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9742
9743 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9744 (nbsd_nat_target::info_proc): Add do_cmdline.
9745
9746 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9747
9748 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9749 (nbsd_nat_target::info_proc): Add do_cwd.
9750
9751 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9752
9753 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9754
9755 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9756
9757 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9758 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9759 (nbsd_nat_target::info_proc): New functions.
9760 * nbsd-nat.c (kinfo_get_vmmap): New function.
9761 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9762 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9763 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9764 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9765 functions.
9766 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9767 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9768 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9769 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9770 (KINFO_VME_FLAG_GROWS_DOWN): New.
9771
9772 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9773
9774 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9775 bit shift.
9776
9777 2020-04-10 Tom Tromey <tromey@adacore.com>
9778
9779 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9780
9781 2020-04-10 Tom Tromey <tromey@adacore.com>
9782
9783 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9784 separate debug files.
9785
9786 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9787
9788 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9789 Move to...
9790 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9791 ... here.
9792 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9793 Check for STATUS_WX86_BREAKPOINT.
9794 (windows_nat_target::wait): Same.
9795
9796 2020-04-10 Tom de Vries <tdevries@suse.de>
9797
9798 PR cli/25808
9799 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9800
9801 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9802
9803 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9804 (Write After Approval): Remove Tom de Vries.
9805
9806 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9807
9808 revert partially:
9809 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9810
9811 * buildsym.c (record_line): Fix undefined behavior and preserve
9812 lines at eof.
9813
9814 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9815
9816 * auxv.h (svr4_auxv_parse): New.
9817 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9818 and generic_auxv_parse.
9819 (svr4_auxv_parse): Add.
9820 * obsd-tdep.c: Include "auxv.h".
9821 (obsd_auxv_parse): Remove.
9822 (obsd_init_abi): Remove comment.
9823 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9824 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9825 * nbsd-tdep.c: Include "auxv.h".
9826 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9827
9828 2020-04-08 Tom Tromey <tromey@adacore.com>
9829
9830 * nat/windows-nat.h (last_wait_event): Don't declare.
9831 (wait_for_debug_event): Update comment.
9832 * nat/windows-nat.c (last_wait_event): Now static.
9833
9834 2020-04-08 Tom Tromey <tromey@adacore.com>
9835
9836 * windows-nat.c (wait_for_debug_event): Move to
9837 nat/windows-nat.c.
9838 * nat/windows-nat.h (wait_for_debug_event): Declare.
9839 * nat/windows-nat.c (wait_for_debug_event): Move from
9840 windows-nat.c. No longer static.
9841
9842 2020-04-08 Tom Tromey <tromey@adacore.com>
9843
9844 * windows-nat.c (get_windows_debug_event): Use
9845 fetch_pending_stop.
9846 * nat/windows-nat.h (fetch_pending_stop): Declare.
9847 * nat/windows-nat.c (fetch_pending_stop): New function.
9848
9849 2020-04-08 Tom Tromey <tromey@adacore.com>
9850
9851 * windows-nat.c (windows_continue): Use matching_pending_stop and
9852 continue_last_debug_event.
9853 * nat/windows-nat.h (matching_pending_stop)
9854 (continue_last_debug_event): Declare.
9855 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9856 (matching_pending_stop, continue_last_debug_event): New
9857 functions.
9858
9859 2020-04-08 Tom Tromey <tromey@adacore.com>
9860
9861 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9862 (handle_exception_result): Move to nat/windows-nat.h.
9863 (DEBUG_EXCEPTION_SIMPLE): Remove.
9864 (windows_nat::handle_ms_vc_exception): New function.
9865 (handle_exception): Move to nat/windows-nat.c.
9866 (get_windows_debug_event): Update.
9867 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9868 nat/windows-nat.c.
9869 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9870 (handle_exception_result): Move from windows-nat.c.
9871 (handle_exception): Declare.
9872 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9873 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9874 windows-nat.c.
9875
9876 2020-04-08 Tom Tromey <tromey@adacore.com>
9877
9878 * windows-nat.c (exception_count, event_count): Remove.
9879 (handle_exception, get_windows_debug_event)
9880 (do_initial_windows_stuff): Update.
9881
9882 2020-04-08 Tom Tromey <tromey@adacore.com>
9883
9884 * windows-nat.c (windows_nat::handle_load_dll)
9885 (windows_nat::handle_unload_dll): Rename. No longer static.
9886 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9887 Declare.
9888
9889 2020-04-08 Tom Tromey <tromey@adacore.com>
9890
9891 * complaints.h (stop_whining): Declare at top-level.
9892 (complaint): Don't declare stop_whining.
9893
9894 2020-04-08 Tom Tromey <tromey@adacore.com>
9895
9896 * windows-nat.c (windows_nat::handle_output_debug_string):
9897 Rename. No longer static.
9898 * nat/windows-nat.h (handle_output_debug_string): Declare.
9899
9900 2020-04-08 Tom Tromey <tromey@adacore.com>
9901
9902 * windows-nat.c (current_process_handle, current_process_id)
9903 (main_thread_id, last_sig, current_event, last_wait_event)
9904 (current_windows_thread, desired_stop_thread_id, pending_stops)
9905 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9906 (display_selectors, fake_create_process)
9907 (get_windows_debug_event): Update.
9908 * nat/windows-nat.h (current_process_handle, current_process_id)
9909 (main_thread_id, last_sig, current_event, last_wait_event)
9910 (current_windows_thread, desired_stop_thread_id, pending_stops)
9911 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9912 * nat/windows-nat.c (current_process_handle, current_process_id)
9913 (main_thread_id, last_sig, current_event, last_wait_event)
9914 (current_windows_thread, desired_stop_thread_id, pending_stops)
9915 (siginfo_er): New globals. Move from windows-nat.c.
9916
9917 2020-04-08 Tom Tromey <tromey@adacore.com>
9918
9919 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9920 (handle_load_dll): Update.
9921 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9922
9923 2020-04-08 Tom Tromey <tromey@adacore.com>
9924
9925 * windows-nat.c (enum thread_disposition_type): Move to
9926 nat/windows-nat.h.
9927 (windows_nat::thread_rec): Rename from thread_rec. No longer
9928 static.
9929 (windows_add_thread, windows_nat_target::fetch_registers)
9930 (windows_nat_target::store_registers, handle_exception)
9931 (windows_nat_target::resume, get_windows_debug_event)
9932 (windows_nat_target::get_tib_address)
9933 (windows_nat_target::thread_name)
9934 (windows_nat_target::thread_alive): Update.
9935 * nat/windows-nat.h (enum thread_disposition_type): Move from
9936 windows-nat.c.
9937 (thread_rec): Declare.
9938
9939 2020-04-08 Tom Tromey <tromey@adacore.com>
9940
9941 * windows-nat.c: Add "using namespace".
9942 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9943 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9944
9945 2020-04-08 Tom Tromey <tromey@adacore.com>
9946
9947 * nat/windows-nat.h (struct windows_thread_info): Declare
9948 destructor.
9949 * nat/windows-nat.c (~windows_thread_info): New.
9950
9951 2020-04-08 Tom Tromey <tromey@adacore.com>
9952
9953 PR gdb/22992
9954 * windows-nat.c (current_event): Update comment.
9955 (last_wait_event, desired_stop_thread_id): New globals.
9956 (struct pending_stop): New.
9957 (pending_stops): New global.
9958 (windows_nat_target) <stopped_by_sw_breakpoint>
9959 <supports_stopped_by_sw_breakpoint>: New methods.
9960 (windows_fetch_one_register): Add assertions. Adjust PC.
9961 (windows_continue): Handle pending stops. Suspend other threads
9962 when stepping. Use last_wait_event
9963 (wait_for_debug_event): New function.
9964 (get_windows_debug_event): Use wait_for_debug_event. Handle
9965 pending stops. Queue spurious stops.
9966 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9967 (windows_nat_target::kill): Use wait_for_debug_event.
9968 * nat/windows-nat.h (struct windows_thread_info)
9969 <stopped_at_software_breakpoint>: New field.
9970 * nat/windows-nat.c (windows_thread_info::resume): Clear
9971 stopped_at_software_breakpoint.
9972
9973 2020-04-08 Tom Tromey <tromey@adacore.com>
9974
9975 * windows-nat.c (enum thread_disposition_type): New.
9976 (thread_rec): Replace "get_context" parameter with "disposition";
9977 change type.
9978 (windows_add_thread, windows_nat_target::fetch_registers)
9979 (windows_nat_target::store_registers, handle_exception)
9980 (windows_nat_target::resume, get_windows_debug_event)
9981 (windows_nat_target::get_tib_address)
9982 (windows_nat_target::thread_name)
9983 (windows_nat_target::thread_alive): Update.
9984
9985 2020-04-08 Tom Tromey <tromey@adacore.com>
9986
9987 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9988 (windows_continue): Use windows_continue::resume.
9989 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9990 resume>: Declare new methods.
9991 * nat/windows-nat.c: New file.
9992 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9993
9994 2020-04-08 Tom Tromey <tromey@adacore.com>
9995
9996 * windows-nat.c (windows_add_thread, windows_delete_thread)
9997 (windows_nat_target::fetch_registers)
9998 (windows_nat_target::store_registers, fake_create_process)
9999 (windows_nat_target::resume, windows_nat_target::resume)
10000 (get_windows_debug_event, windows_nat_target::wait)
10001 (windows_nat_target::pid_to_str)
10002 (windows_nat_target::get_tib_address)
10003 (windows_nat_target::get_ada_task_ptid)
10004 (windows_nat_target::thread_name)
10005 (windows_nat_target::thread_alive): Use lwp, not tid.
10006
10007 2020-04-08 Tom Tromey <tromey@adacore.com>
10008
10009 * windows-nat.c (handle_exception)
10010 (windows_nat_target::thread_name): Update.
10011 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10012 <name>: Now unique_xmalloc_ptr.
10013
10014 2020-04-08 Tom Tromey <tromey@adacore.com>
10015
10016 * windows-nat.c (thread_rec)
10017 (windows_nat_target::fetch_registers): Update.
10018 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10019 Update comment.
10020 <debug_registers_changed, reload_context>: Now bool.
10021
10022 2020-04-08 Tom Tromey <tromey@adacore.com>
10023
10024 * windows-nat.c (windows_add_thread): Use new.
10025 (windows_init_thread_list, windows_delete_thread): Use delete.
10026 (get_windows_debug_event): Update.
10027 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10028 destructor, and initializers.
10029
10030 2020-04-08 Tom Tromey <tromey@adacore.com>
10031
10032 * windows-nat.c (struct windows_thread_info): Remove.
10033 * nat/windows-nat.h: New file.
10034
10035 2020-04-08 Tom Tromey <tromey@adacore.com>
10036
10037 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10038 (thread_rec, windows_add_thread, windows_delete_thread)
10039 (windows_continue): Update.
10040
10041 2020-04-08 Tom Tromey <tromey@adacore.com>
10042
10043 * windows-nat.c (struct windows_thread_info): Remove typedef.
10044 (thread_head): Remove.
10045 (thread_list): New global.
10046 (thread_rec, windows_add_thread, windows_init_thread_list)
10047 (windows_delete_thread, windows_continue): Update.
10048
10049 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * windows-tdep.h (windows_init_abi): Add comment.
10052 (cygwin_init_abi): New declaration.
10053 * windows-tdep.c: Split signal enumeration in two, one for
10054 Windows and one for Cygwin.
10055 (windows_gdb_signal_to_target): Only deal with signal of the
10056 Windows OS ABI.
10057 (cygwin_gdb_signal_to_target): New function.
10058 (windows_init_abi): Rename to windows_init_abi_common, don't set
10059 gdb_signal_to_target gdbarch method. Add new new function with
10060 this name.
10061 (cygwin_init_abi): New function.
10062 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10063 comment. Don't call windows_init_abi.
10064 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10065 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10066 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10067 i386_windows_init_abi_common, don't call windows_init_abi. Add
10068 a new function of this name.
10069 (i386_cygwin_init_abi): New function.
10070 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10071 OS ABI Cygwin.
10072
10073 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10076 parameter.c.
10077 (dwarf2_read_gdb_index): Update.
10078
10079 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10080
10081 * nbsd-tdep.c: Include "objfiles.h".
10082 (nbsd_skip_solib_resolver): New.
10083 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10084
10085 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10086
10087 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10088 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10089 with DW_LLE_base_addressx are being emitted in DWARFv5.
10090 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10091 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10092 unsigned integer.
10093
10094 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10095
10096 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10097 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10098 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10099 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10100 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10101 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10102 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10103
10104
10105 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10106
10107 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10108 (read_loclist_index): New function definition.
10109 (lookup_loclist_base): New function definition.
10110 (read_loclist_header): New function definition.
10111 (dwarf2_cu): Add loclist_base and loclist_header field.
10112 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10113 (read_full_die_1): Read the value of DW_AT_loclists_base.
10114 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10115 (read_attribute_value): Handle DW_FORM_loclistx.
10116 (skip_one_die): Handle DW_FORM_loclistx.
10117 (loclist_header): New structure declaration.
10118 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10119
10120 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10121
10122 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10123 constructor. Remove `addr` parameter from other constructor and
10124 add `per_cu` parameter.
10125 * dwarf2/read.c (create_partial_symtab): Update.
10126
10127 2020-04-07 Tom de Vries <tdevries@suse.de>
10128
10129 PR symtab/25796
10130 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10131 (partial_die_info::fixup): Inherit has_const_value.
10132
10133 2020-04-07 Tom de Vries <tdevries@suse.de>
10134
10135 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10136 symbols without address.
10137
10138 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10139
10140 * nbsd-nat.h (struct thread_info): Add forward declaration.
10141 (nbsd_nat_target::thread_alive): Add.
10142 (nbsd_nat_target::thread_name): Likewise.
10143 (nbsd_nat_target::update_thread_list): Likewise.
10144 (update_thread_list::post_attach): Likewise.
10145 (post_attach::pid_to_str): Likewise.
10146 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10147 (nbsd_thread_lister): Add.
10148 (nbsd_nat_target::thread_alive): Likewise.
10149 (nbsd_nat_target::thread_name): Likewise.
10150 (nbsd_add_threads): Likewise.
10151 (update_thread_list::post_attach): Likewise.
10152 (nbsd_nat_target::update_thread_list): Likewise.
10153 (post_attach::pid_to_str): Likewise.
10154
10155 2020-04-06 Tom Tromey <tromey@adacore.com>
10156
10157 * ada-valprint.c (print_variant_part): Extract the variant field.
10158 (print_field_values): Use the field as the outer value when
10159 recursing.
10160
10161 2020-04-06 Tom Tromey <tromey@adacore.com>
10162
10163 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10164 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10165 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10166 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10167 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10168
10169 2020-04-06 Tom Tromey <tromey@adacore.com>
10170
10171 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10172 TYPE_CODE_ERROR.
10173
10174 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10175
10176 * nbsd-tdep.c: Include "gdbarch.h".
10177 Define enum with NetBSD signal numbers.
10178 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10179 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10180 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10181 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10182 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10183 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10184 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10185 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10186 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10187 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10188 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10189 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10190
10191 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10192
10193 PR gdb/25325
10194 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10195
10196 2020-04-03 Tom Tromey <tromey@adacore.com>
10197
10198 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10199 Read constant block.
10200
10201 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10202
10203 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10204 (gdb_bfd_get_full_section_contents): New declaration.
10205 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10206 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10207 gdb_bfd_get_full_section_contents.
10208
10209 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10210
10211 * exec.c (build_section_table): Replace internal_error with
10212 gdb_assert.
10213 (section_table_xfer_memory_partial): Likewise.
10214 * mdebugread.c (parse_partial_symbols): Likewise.
10215 * psymtab.c (lookup_partial_symbol): Likewise.
10216 * utils.c (wrap_here): Likewise.
10217
10218 2020-04-02 Tom Tromey <tromey@adacore.com>
10219
10220 * f-lang.c (build_fortran_types): Use arch_type to initialize
10221 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10222
10223 2020-04-02 Tom Tromey <tromey@adacore.com>
10224
10225 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10226 of attributes.
10227
10228 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10229 Bernd Edlinger <bernd.edlinger@hotmail.de>
10230 Tom Tromey <tromey@adacore.com>
10231
10232 * buildsym.c (buildsym_compunit::record_line): Remove
10233 deduplication code.
10234
10235 2020-04-02 Tom de Vries <tdevries@suse.de>
10236
10237 PR ada/24671
10238 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10239
10240 2020-04-02 Tom de Vries <tdevries@suse.de>
10241
10242 * dwarf2/read.c (dwarf2_gdb_index_functions,
10243 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10244 NULL.
10245 * psymtab.c (psym_lookup_global_symbol_language): New function.
10246 (psym_functions): Init psym_lookup_global_symbol_language with
10247 psym_lookup_global_symbol_language.
10248 * symfile-debug.c (debug_sym_quick_functions): Init
10249 lookup_global_symbol_language with NULL.
10250 * symfile.c (set_initial_language): Remove fixme comment.
10251 * symfile.h (struct quick_symbol_functions): Add
10252 lookup_global_symbol_language.
10253 * symtab.c (find_quick_global_symbol_language): New function.
10254 (find_main_name): Use find_quick_global_symbol_language.
10255
10256 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10257
10258 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10259
10260 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10261
10262 * buildsym.c (record_line): Fix undefined behavior and preserve
10263 lines at eof.
10264
10265 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10266
10267 * buildsym.c (record_line): Fix the resizing condition.
10268
10269 2020-04-01 Tom Tromey <tom@tromey.com>
10270
10271 * value.h (value_literal_complex): Add comment.
10272 * valops.c (value_literal_complex): Refer to value.h.
10273
10274 2020-04-01 Tom Tromey <tom@tromey.com>
10275
10276 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10277 (scalar_type): New rule, from typebase.
10278 (typebase): Use scalar_type. Recognize complex types.
10279 (field_name): Handle FLOAT_KEYWORD.
10280 (ident_tokens): Add _Complex and __complex__.
10281
10282 2020-04-01 Tom Tromey <tom@tromey.com>
10283
10284 PR exp/25299:
10285 * valarith.c (promotion_type, complex_binop): New functions.
10286 (scalar_binop): Handle complex numbers. Use promotion_type.
10287 (value_pos, value_neg, value_complement): Handle complex numbers.
10288
10289 2020-04-01 Tom Tromey <tom@tromey.com>
10290
10291 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10292 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10293 (parse_number): Handle complex numbers.
10294
10295 2020-04-01 Tom Tromey <tom@tromey.com>
10296
10297 * c-valprint.c (c_decorations): Change complex suffix to "i".
10298
10299 2020-04-01 Tom Tromey <tom@tromey.com>
10300
10301 * valprint.c (generic_value_print_complex): Use accessors.
10302 * value.h (value_real_part, value_imaginary_part): Declare.
10303 * valops.c (value_real_part, value_imaginary_part): New
10304 functions.
10305 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10306
10307 2020-04-01 Tom Tromey <tom@tromey.com>
10308
10309 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10310 (read_range_type): Update.
10311 * mdebugread.c (basic_type): Update.
10312 * go-lang.c (build_go_types): Use init_complex_type.
10313 * gdbtypes.h (struct main_type) <complex_type>: New member.
10314 (init_complex_type): Update.
10315 (arch_complex_type): Don't declare.
10316 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10317 Make name if none given. Use alloc_type_copy. Look for cached
10318 complex type.
10319 (arch_complex_type): Remove.
10320 (gdbtypes_post_init): Use init_complex_type.
10321 * f-lang.c (build_fortran_types): Use init_complex_type.
10322 * dwarf2/read.c (read_base_type): Update.
10323 * d-lang.c (build_d_types): Use init_complex_type.
10324 * ctfread.c (read_base_type): Update.
10325
10326 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10327
10328 * infrun.c (stop_all_threads): Update assertion, plus when
10329 stopping threads, take into account that we might be trying
10330 to stop an all-stop target.
10331 (stop_waiting): Call 'stop_all_threads' if there exists a
10332 non-stop target.
10333
10334 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10335
10336 * target.h (exists_non_stop_target): New function declaration.
10337 * target.c (exists_non_stop_target): New function.
10338
10339 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10340
10341 PR gdb/24789
10342 * eval.c (is_integral_or_integral_reference): New function.
10343 (evaluate_subexp_standard): Allow integer references in
10344 pointer arithmetic.
10345
10346 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10347
10348 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10349 check for no ptid in the stop reply when the target is non-stop.
10350
10351 2020-04-01 Tom Tromey <tromey@adacore.com>
10352
10353 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10354 "name" parameter to rvalue reference. Initialize m_name_holder.
10355 <lookup_name_info>: New overloads.
10356 <name>: Return gdb::string_view.
10357 <c_str>: New method.
10358 <make_ignore_params>: Update.
10359 <search_name_hash>: Update.
10360 <language_lookup_name>: Return const char *.
10361 <m_name>: Change type.
10362 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10363 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10364 (lookup_name_info::match_any): Update.
10365 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10366 Update.
10367 * minsyms.c (linkage_name_str): Update.
10368 * language.c (default_symbol_name_matcher): Update.
10369 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10370 Update.
10371 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10372 (ada_lookup_name_info::ada_lookup_name_info): Update.
10373 (literal_symbol_name_matcher): Update.
10374
10375 2020-04-01 Tom Tromey <tromey@adacore.com>
10376
10377 * psymtab.c (psymtab_search_name): Remove function.
10378 (psym_lookup_symbol): Create search name and lookup name here.
10379 (lookup_partial_symbol): Remove "name" parameter; add
10380 lookup_name.
10381 (psym_expand_symtabs_for_function): Update.
10382
10383 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10384
10385 PR tui/25597:
10386 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10387
10388 2020-03-31 Tom Tromey <tromey@adacore.com>
10389
10390 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10391 memcpy.
10392
10393 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10394
10395 * features/riscv/32bit-csr.xml: Regenerated.
10396 * features/riscv/64bit-csr.xml: Regenerated.
10397
10398 2020-03-30 Tom Tromey <tromey@adacore.com>
10399
10400 * ada-valprint.c (print_variant_part): Update.
10401 * ada-lang.h (ada_which_variant_applies): Update.
10402 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10403 outer_valaddr parameters; replace with "outer" value parameter.
10404 (to_fixed_variant_branch_type): Update.
10405
10406 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10407
10408 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10409 <list>. Remove inclusion of observable.h.
10410 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10411 (struct arch_lwp_info): New struct.
10412 (class ppc_linux_dreg_interface): New class.
10413 (struct ppc_linux_process_info): New struct.
10414 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10415 <low_new_clone, low_forget_process, low_prepare_to_resume>
10416 <copy_thread_dreg_state, mark_thread_stale>
10417 <mark_debug_registers_changed, register_hw_breakpoint>
10418 <clear_hw_breakpoint, register_wp, clear_wp>
10419 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10420 <num_memory_accesses, get_trigger_type>
10421 <create_watchpoint_request, hwdebug_point_cmp>
10422 <init_arch_lwp_info, get_arch_lwp_info>
10423 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10424 methods.
10425 <struct ptid_hash>: New inner struct.
10426 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10427 members.
10428 (saved_dabr_value, hwdebug_info, max_slots_number)
10429 (struct hw_break_tuple, struct thread_points, ppc_threads)
10430 (have_ptrace_hwdebug_interface)
10431 (hwdebug_find_thread_points_by_tid)
10432 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10433 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10434 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10435 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10436 use m_dreg_interface.
10437 (hwdebug_point_cmp): Change to...
10438 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10439 reference arguments instead of pointers.
10440 (ppc_linux_nat_target::ranged_break_num_registers): Use
10441 m_dreg_interface.
10442 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10443 m_dreg_interface. Call register_hw_breakpoint.
10444 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10445 m_dreg_interface. Call clear_hw_breakpoint.
10446 (get_trigger_type): Change to...
10447 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10448 comment.
10449 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10450 use m_dreg_interface. Call register_hw_breakpoint.
10451 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10452 use m_dreg_interface. Call clear_hw_breakpoint.
10453 (can_use_watchpoint_cond_accel): Change to...
10454 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10455 method. Update comment, use m_dreg_interface and
10456 m_process_info.
10457 (calculate_dvc): Change to...
10458 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10459 m_dreg_interface.
10460 (num_memory_accesses): Change to...
10461 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10462 (check_condition): Change to...
10463 (ppc_linux_nat_target::check_condition): ...this method.
10464 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10465 comment, use m_dreg_interface.
10466 (create_watchpoint_request): Change to...
10467 (ppc_linux_nat_target::create_watchpoint_request): ...this
10468 method. Use m_dreg_interface.
10469 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10470 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10471 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10472 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10473 (ppc_linux_nat_target::low_forget_process)
10474 (ppc_linux_nat_target::low_new_fork)
10475 (ppc_linux_nat_target::low_new_clone)
10476 (ppc_linux_nat_target::low_delete_thread)
10477 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10478 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10479 only call mark_thread_stale.
10480 (ppc_linux_thread_exit): Remove.
10481 (ppc_linux_nat_target::stopped_data_address): Change to...
10482 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10483 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10484 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10485 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10486 comment. Call low_stopped_data_address.
10487 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10488 m_dreg_interface.
10489 (ppc_linux_nat_target::masked_watch_num_registers): Use
10490 m_dreg_interface.
10491 (ppc_linux_nat_target::copy_thread_dreg_state)
10492 (ppc_linux_nat_target::mark_thread_stale)
10493 (ppc_linux_nat_target::mark_debug_registers_changed)
10494 (ppc_linux_nat_target::register_hw_breakpoint)
10495 (ppc_linux_nat_target::clear_hw_breakpoint)
10496 (ppc_linux_nat_target::register_wp)
10497 (ppc_linux_nat_target::clear_wp)
10498 (ppc_linux_nat_target::init_arch_lwp_info)
10499 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10500 (_initialize_ppc_linux_nat): Remove observer callback.
10501
10502 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10503
10504 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10505 (ppc_linux_nat_target::auxv_parse)
10506 (ppc_linux_nat_target::read_description)
10507 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10508 Move up.
10509
10510 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10511
10512 * linux-nat.h (low_new_clone): New method.
10513 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10514
10515 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10516
10517 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10518 (dbx_expand_psymtab): ... this.
10519 (start_psymtab): Update.
10520 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10521 (mdebug_expand_psymtab): ... this.
10522 (parse_partial_symbols): Update.
10523 (new_psymtab): Update.
10524 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10525 (xcoff_expand_psymtab): ... this.
10526 (xcoff_start_psymtab): Update.
10527
10528 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10529
10530 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10531 <expand_dependencies>: ... this.
10532 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10533 (partial_symtab::expand_dependencies): ... this.
10534 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10535 Update.
10536 (dwarf2_psymtab::expand_psymtab): Update.
10537 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10538 * mdebugread.c (psymtab_to_symtab_1): Update.
10539 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10540
10541 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10542
10543 * psympriv.h (discard_psymtab): Remove.
10544 * dbxread.c (dbx_end_psymtab): Update.
10545 * xcoffread.c (xcoff_end_psymtab): Update.
10546
10547 2020-03-28 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10550 comment.
10551
10552 2020-03-28 Tom Tromey <tom@tromey.com>
10553
10554 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10555
10556 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10557
10558 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10559
10560 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10561
10562 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10563
10564 2020-03-26 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10567 (mark_common_block_symbol_computed, read_tag_string_type)
10568 (attr_to_dynamic_prop, read_subrange_type): Update.
10569 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10570 to be methods on struct attribute.
10571 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10572 (read_call_site_scope, partial_die_info::read)
10573 (partial_die_info::read, lookup_die_type, follow_die_ref):
10574 Update.
10575 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10576 from dwarf2_get_ref_die_offset.
10577 (attribute::constant_value): New method, from
10578 dwarf2_get_attr_constant_value.
10579 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10580 Declare method.
10581 <constant_value>: New method.
10582
10583 2020-03-26 Tom Tromey <tom@tromey.com>
10584
10585 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10586 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10587 (dwarf_type_encoding_name): Move to stringify.c.
10588 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10589 * dwarf2/stringify.c: New file.
10590 * dwarf2/stringify.h: New file.
10591
10592 2020-03-26 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10595 Rewrite.
10596
10597 2020-03-26 Tom Tromey <tom@tromey.com>
10598
10599 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10600 methods.
10601 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10602 (lookup_ranges_base): Likewise.
10603 (read_cutu_die_from_dwo, read_full_die_1): Update.
10604
10605 2020-03-26 Tom Tromey <tom@tromey.com>
10606
10607 * dwarf2/read.c (read_import_statement, read_file_scope)
10608 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10609 (read_lexical_block_scope, read_call_site_scope)
10610 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10611 (handle_struct_member_die, process_structure_scope)
10612 (update_enumeration_type_from_children)
10613 (process_enumeration_scope, read_array_type, read_common_block)
10614 (read_namespace, read_module, read_subroutine_type): Update.
10615 (sibling_die): Remove.
10616
10617 2020-03-26 Tom Tromey <tom@tromey.com>
10618
10619 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10620 (build_type_psymtabs_reader, read_structure_type)
10621 (read_enumeration_type, read_full_die_1): Update.
10622 (dwarf2_attr_no_follow): Move to die.h.
10623 * dwarf2/die.h (struct die_info) <attr>: New method.
10624
10625 2020-03-26 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10628 <base_address>: Now an optional.
10629 (dwarf2_find_base_address, dwarf2_rnglists_process)
10630 (dwarf2_ranges_process, fill_in_loclist_baton)
10631 (dwarf2_symbol_mark_computed): Update.
10632
10633 2020-03-26 Tom Tromey <tom@tromey.com>
10634
10635 * dwarf2/read.c (struct die_info): Move to die.h.
10636 * dwarf2/die.h: New file.
10637
10638 2020-03-26 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10641 * dwarf2/read.c
10642 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10643 Move to line-header.c.
10644 (read_checked_initial_length_and_offset, read_formatted_entries):
10645 Likewise.
10646 (dwarf_decode_line_header): Split into two.
10647 * dwarf2/line-header.c
10648 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10649 Move from read.c.
10650 (read_checked_initial_length_and_offset, read_formatted_entries):
10651 Likewise.
10652 (dwarf_decode_line_header): New function, split from read.c.
10653
10654 2020-03-26 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10657 Declare method.
10658 * dwarf2/read.c (read_attribute_value): Update.
10659 (dwarf2_per_objfile::read_line_string): Rename from
10660 read_indirect_line_string.
10661 (read_formatted_entries): Update.
10662
10663 2020-03-26 Tom Tromey <tom@tromey.com>
10664
10665 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10666 variable.
10667
10668 2020-03-26 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10671 const.
10672 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10673 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10674 parameter const.
10675
10676 2020-03-26 Tom Tromey <tom@tromey.com>
10677
10678 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10679 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10680 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10681 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10682
10683 2020-03-26 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10686 file_names_size, file_full_name, file_file_name>: Use const.
10687 <file_name_at, file_names>: Add const overload.
10688 * dwarf2/line-header.c (line_header::file_file_name)
10689 (line_header::file_full_name): Update.
10690
10691 2020-03-26 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10694 (macro_start_file, consume_improper_spaces)
10695 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10696 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10697 (dwarf_decode_macros): Move to macro.c.
10698 * dwarf2/macro.c: New file.
10699 * dwarf2/macro.h: New file.
10700 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10701
10702 2020-03-26 Tom Tromey <tom@tromey.com>
10703
10704 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10705 method.
10706 * dwarf2/section.c: New method. From
10707 read_indirect_string_at_offset_from.
10708 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10709 (read_indirect_string_at_offset_from): Move to section.c.
10710 (read_indirect_string_at_offset): Rewrite.
10711 (read_indirect_line_string_at_offset): Remove.
10712 (read_indirect_string, read_indirect_line_string)
10713 (dwarf_decode_macro_bytes): Update.
10714
10715 2020-03-26 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2/section.h (struct dwarf2_section_info)
10718 <overload_complaint>: Declare.
10719 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10720 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10721 Rename from dwarf2_section_buffer_overflow_complaint.
10722 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10723 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10724
10725 2020-03-26 Tom Tromey <tom@tromey.com>
10726
10727 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10728 Declare.
10729 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10730 Move from read.c.
10731 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10732 to section.c.
10733
10734 2020-03-26 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10737
10738 2020-03-26 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10741 "builder".
10742 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10743 parameter.
10744 (dwarf_decode_macros): Update.
10745
10746 2020-03-26 Tom Tromey <tom@tromey.com>
10747
10748 * dwarf2/read.c (read_attribute_value): Update.
10749 (read_indirect_string_from_dwz): Move to dwz.c; change into
10750 method.
10751 (dwarf_decode_macro_bytes): Update.
10752 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10753 * dwarf2/dwz.c: New file.
10754 * Makefile.in (COMMON_SFILES): Add dwz.c.
10755
10756 2020-03-26 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10759 * dwarf2/read.c: Add include.
10760 * dwarf2/index-write.c: Add include.
10761 * dwarf2/index-cache.c: Add include.
10762 * dwarf2/dwz.h: New file.
10763
10764 2020-03-25 Tom Tromey <tom@tromey.com>
10765
10766 * compile/compile-object-load.c (get_out_value_type): Mention
10767 correct symbol name in error message.
10768
10769 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10770
10771 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10772
10773 2020-03-25 Tom de Vries <tdevries@suse.de>
10774
10775 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10776 * symmisc.c (dump_symtab_1): Print user and includes fields.
10777 (maintenance_info_symtabs): Same.
10778
10779 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10780
10781 PR gdb/25534
10782 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10783 (riscv_regcache_cooked_write): New function.
10784 (riscv_push_dummy_call): Use new function.
10785 (riscv_return_value): Likewise.
10786
10787 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10790 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10791 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10792 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10793 * infrun.c (follow_fork): Likewise.
10794 (follow_fork_inferior): Likewise.
10795 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10796 * linux-nat.h (class linux_nat_target): Likewise.
10797 * remote.c (class remote_target) <follow_fork>: Likewise.
10798 (remote_target::follow_fork): Likewise.
10799 * target-delegates.c: Re-generate.
10800 * target.c (default_follow_fork): Likewise.
10801 (target_follow_fork): Likewise.
10802 * target.h (struct target_ops) <follow_fork>: Likewise.
10803 (target_follow_fork): Likewise.
10804
10805 2020-03-24 Tom de Vries <tdevries@suse.de>
10806
10807 * psymtab.c (maintenance_info_psymtabs): Print user field.
10808
10809 2020-03-20 Tom Tromey <tromey@adacore.com>
10810
10811 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10812 const.
10813 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10814 const.
10815
10816 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10817
10818 * ptrace.m4: Don't check for ptrace declaration.
10819 * config.in: Re-generate.
10820 * configure: Re-generate.
10821 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10822 not defined.
10823
10824 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10825
10826 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10827 `PTRACE_TYPE_RET'.
10828 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10829 * sparc-nat.c (gdb_ptrace): Likewise.
10830 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10831
10832 2020-03-20 Tom Tromey <tromey@adacore.com>
10833
10834 * c-exp.y (lex_one_token): Fix assert.
10835
10836 2020-03-20 Tom Tromey <tromey@adacore.com>
10837
10838 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10839 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10840 strncpy call.
10841
10842 2020-03-20 Tom Tromey <tromey@adacore.com>
10843
10844 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10845
10846 2020-03-20 Tom Tromey <tromey@adacore.com>
10847
10848 * ada-valprint.c (print_variant_part): Remove parameters; switch
10849 to value-based API.
10850 (print_field_values): Likewise.
10851 (ada_val_print_struct_union): Likewise.
10852 (ada_value_print_1): Update.
10853
10854 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10855
10856 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10857 nbsd_nat_target instead of inf_ptrace_target.
10858 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10859 nbsd_nat_target.
10860
10861 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10862
10863 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10864 it to the ptrace call.
10865 * (store_registers): Likewise.
10866
10867 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10868
10869 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10870 it to the ptrace call.
10871 * (store_registers): Likewise.
10872
10873 2020-03-19 Luis Machado <luis.machado@linaro.org>
10874
10875 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10876 valid, fetch vg value from ptrace.
10877
10878 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10879 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10880 * inf-ptrace.c: Likewise.
10881 * (gdb_ptrace): Add.
10882 * (inf_ptrace_target::resume): Update.
10883 * (inf_ptrace_target::xfer_partial): Likewise.
10884 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10885 * (inf_ptrace_peek_poke): Update.
10886
10887 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10888
10889 * x86-bsd-nat.c (gdb_ptrace): New.
10890 * (x86bsd_dr_set): Add new argument `ptid'.
10891 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10892 x86bsd_dr_set_addr): Update.
10893
10894 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10895
10896 * remote.c (remote_target::process_stop_reply): Handle events for
10897 all threads differently.
10898
10899 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10900
10901 * completer.c (completion_tracker::remove_completion): Define new
10902 function.
10903 * completer.h (completion_tracker::remove_completion): Declare new
10904 function.
10905 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10906 when adding a C++ function symbol.
10907
10908 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10909
10910 * completer.c (completion_tracker::completion_hash_entry): Define
10911 new class.
10912 (advance_to_filename_complete_word_point): Call
10913 recompute_lowest_common_denominator.
10914 (completion_tracker::completion_tracker): Call discard_completions
10915 to setup the hash table.
10916 (completion_tracker::discard_completions): Allow for being called
10917 from the constructor, pass new equal function, and element deleter
10918 when constructing the hash table. Initialise new class member
10919 variables.
10920 (completion_tracker::maybe_add_completion): Remove use of
10921 m_entries_vec, and store more information into m_entries_hash.
10922 (completion_tracker::recompute_lcd_visitor): New function, most
10923 content taken from...
10924 (completion_tracker::recompute_lowest_common_denominator):
10925 ...here, this now just visits each item in the hash calling the
10926 above visitor.
10927 (completion_tracker::build_completion_result): Remove use of
10928 m_entries_vec, call recompute_lowest_common_denominator.
10929 * completer.h (completion_tracker::have_completions): Remove use
10930 of m_entries_vec.
10931 (completion_tracker::completion_hash_entry): Declare new class.
10932 (completion_tracker::recompute_lowest_common_denominator): Change
10933 function signature.
10934 (completion_tracker::recompute_lcd_visitor): Declare new function.
10935 (completion_tracker::m_entries_vec): Delete.
10936 (completion_tracker::m_entries_hash): Initialize to NULL.
10937 (completion_tracker::m_lowest_common_denominator_valid): New
10938 member variable.
10939 (completion_tracker::m_lowest_common_denominator_max_length): New
10940 member variable.
10941
10942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10943
10944 * regformats/regdef.h: Put reg in gdb namespace.
10945
10946 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10947
10948 * i386-bsd-nat.c (gdb_ptrace): New.
10949 * (i386bsd_fetch_inferior_registers,
10950 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10951 * (i386bsd_fetch_inferior_registers,
10952 i386bsd_store_inferior_registers) Use gdb_ptrace.
10953
10954 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10955
10956 * amd64-bsd-nat.c (gdb_ptrace): New.
10957 * (amd64bsd_fetch_inferior_registers,
10958 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10959 * (amd64bsd_fetch_inferior_registers,
10960 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10961
10962 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10963
10964 * user-regs.c (user_reg::read): Rename to...
10965 (user_reg::xread): ...this.
10966 * (append_user_reg): Rename argument `read' to `xread'.
10967 * (user_reg_add_builtin): Likewise.
10968 * (user_reg_add): Likewise.
10969 * (value_of_user_reg): Likewise.
10970
10971 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10972
10973 * sparc-nat.c (gdb_ptrace): New.
10974 * sparc-nat.c (sparc_fetch_inferior_registers)
10975 (sparc_store_inferior_registers) Remove obsolete comment.
10976 * sparc-nat.c (sparc_fetch_inferior_registers)
10977 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10978 * sparc-nat.c (sparc_fetch_inferior_registers)
10979 (sparc_store_inferior_registers) Use gdb_ptrace.
10980
10981 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10982
10983 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10984 it to the ptrace call.
10985 * sh-nbsd-nat.c (store_registers): Likewise.
10986
10987 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10988
10989 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10990 nbsd_nat_target instead of inf_ptrace_target.
10991 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10992 nbsd_nat_target.
10993
10994 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10995
10996 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10997
10998 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10999
11000 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11001 <sys/sysctl.h>.
11002 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11003
11004 2020-03-17 Tom de Vries <tdevries@suse.de>
11005
11006 PR gdb/23710
11007 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11008 fields.
11009 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11010 fields.
11011 (process_imported_unit_die): Skip import of c++ CUs.
11012
11013 2020-03-16 Tom Tromey <tom@tromey.com>
11014
11015 * p-valprint.c (pascal_object_print_value): Initialize
11016 base_value.
11017
11018 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11019 Shahab Vahedi <shahab@synopsys.com>
11020
11021 * Makefile.in: Add arch/arc.o
11022 * configure.tgt: Likewise.
11023 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11024 (_initialize_arc_tdep): Don't initialize old target descriptions.
11025 (arc_read_description): New function to cache target descriptions.
11026 * arc-tdep.h (arc_read_description): Add proto type.
11027 * arch/arc.c: New file.
11028 * arch/arc.h: Likewise.
11029 * features/Makefile: Replace old target descriptions with new.
11030 * features/arc-arcompact.c: Remove.
11031 * features/arc-arcompact.xml: Likewise.
11032 * features/arc-v2.c: Likewise
11033 * features/arc-v2.xml: Likewise
11034 * features/arc/aux-arcompact.xml: New file.
11035 * features/arc/aux-v2.xml: Likewise.
11036 * features/arc/core-arcompact.xml: Likewise.
11037 * features/arc/core-v2.xml: Likewise.
11038 * features/arc/aux-arcompact.c: Generate.
11039 * features/arc/aux-v2.c: Likewise.
11040 * features/arc/core-arcompact.c: Likewise.
11041 * features/arc/core-v2.c: Likewise.
11042 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11043
11044 2020-03-16 Tom Tromey <tromey@adacore.com>
11045
11046 PR gdb/25663:
11047 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11048 putting value into bcache.
11049
11050 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11051
11052 PR gdb/21500
11053 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11054 to...
11055 (amd64_windows_init_abi_common): ... this. Don't set size of
11056 long type.
11057 (amd64_windows_init_abi): New function.
11058 (amd64_cygwin_init_abi): New function.
11059 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11060 the Cygwin OS ABI.
11061 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11062 comment.
11063
11064 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11065
11066 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11067 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11068 (pe_import_directory_entry): New struct type.
11069 (is_linked_with_cygwin_dll): New function.
11070 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11071 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11072 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11073
11074 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11075
11076 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11077 i386_cygwin_core_osabi_sniffer.
11078
11079 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11080
11081 * i386-cygwin-tdep.c: Rename to...
11082 * i386-windows-tdep.c: ... this.
11083 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11084 i386-windows-tdep.c.
11085 * configure.tgt: Likewise.
11086
11087 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11088
11089 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11090 * osabi.c (gdb_osabi_names): Add "Windows".
11091 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11092 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11093 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11094 i386_cygwin_osabi_sniffer.
11095 (_initialize_i386_cygwin_tdep): Register OS ABI
11096 GDB_OSABI_WINDOWS for i386.
11097 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11098 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11099 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11100 for x86-64.
11101 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11102 when the target matches '*-*-mingw*'.
11103
11104 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * defs.h (enum gdb_osabi): Move to...
11107 * osabi.h (enum gdb_osabi): ... here.
11108 * gdbarch.sh: Include osabi.h in gdbarch.h.
11109 * gdbarch.h: Re-generate.
11110
11111 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11114 function.
11115 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11116
11117 2020-03-14 Tom Tromey <tom@tromey.com>
11118
11119 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11120 for C++.
11121 (c_type_print_modifier): Likewise. Add "language" parameter.
11122 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11123 (c_type_print_base_1): Update.
11124 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11125 constants.
11126 * type-stack.c (type_stack::insert): Handle tp_atomic and
11127 tp_restrict.
11128 (type_stack::follow_type_instance_flags): Likewise.
11129 (type_stack::follow_types): Likewise. Merge type-following code.
11130 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11131 (space_identifier, cv_with_space_id)
11132 (const_or_volatile_or_space_identifier_noopt)
11133 (const_or_volatile_or_space_identifier): Remove.
11134 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11135 rules.
11136 (ptr_operator, typebase): Update.
11137 (enum token_flag) <FLAG_C>: New constant.
11138 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11139 "_Atomic".
11140 (lex_one_token): Handle FLAG_C.
11141
11142 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11143
11144 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11145 it to the ptrace call.
11146 * m68k-bsd-nat.c (store_registers): Likewise.
11147
11148 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11149
11150 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11151 gdb_byte *.
11152 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11153 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11154 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11155
11156 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11157
11158 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11159 nbsd_nat_target instead of inf_ptrace_target.
11160 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11161 nbsd_nat_target.
11162
11163 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11164
11165 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11166 register_t.
11167
11168 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11169
11170 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11171 it to the ptrace call.
11172 * alpha-bsd-nat.c (store_registers): Likewise.
11173
11174 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11175
11176 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11177 includes.
11178 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11179 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11180 fill_fpregset): Likewise.
11181
11182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11183
11184 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11185 nbsd_nat_target instead of inf_ptrace_target.
11186 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11187 nbsd_nat_target.
11188
11189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11190
11191 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11192 register_t.
11193
11194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11195
11196 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11197 it to the ptrace call.
11198 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11199 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11200 * arm-nbsd-nat.c (store_register): Likewise.
11201 * arm-nbsd-nat.c (store_regs): Likewise.
11202 * arm-nbsd-nat.c (store_fp_register): Likewise.
11203 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11204
11205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11206
11207 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11208 nbsd_nat_target instead of inf_ptrace_target.
11209 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11210 nbsd_nat_target.
11211
11212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11213
11214 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11215 it to the ptrace call.
11216 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11217
11218 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11219
11220 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11221 it to the ptrace call.
11222 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11223
11224 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11225
11226 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11227 gdb_byte *.
11228 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11229
11230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11231
11232 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11233 instead of inf_ptrace_target.
11234 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11235 nbsd_nat_target.
11236
11237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11238
11239 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11240 register_t.
11241
11242 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11243
11244 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11245 register_t.
11246
11247 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11248
11249 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11250 register_t.
11251
11252 2020-03-13 Tom Tromey <tom@tromey.com>
11253
11254 * value.h (val_print): Don't declare.
11255 * valprint.h (val_print_array_elements)
11256 (val_print_scalar_formatted, generic_val_print): Don't declare.
11257 * valprint.c (generic_val_print_array): Take a struct value.
11258 (generic_val_print_ptr, generic_val_print_memberptr)
11259 (generic_val_print_bool, generic_val_print_int)
11260 (generic_val_print_char, generic_val_print_complex)
11261 (generic_val_print): Remove.
11262 (generic_value_print): Update.
11263 (do_val_print): Remove unused parameters. Don't call
11264 la_val_print.
11265 (val_print): Remove.
11266 (common_val_print): Update. Don't call value_check_printable.
11267 (val_print_scalar_formatted, val_print_array_elements): Remove.
11268 * rust-lang.c (rust_val_print): Remove.
11269 (rust_language_defn): Update.
11270 * p-valprint.c (pascal_val_print): Remove.
11271 (pascal_value_print_inner): Update.
11272 (pascal_object_print_val_fields, pascal_object_print_val):
11273 Remove.
11274 (pascal_object_print_static_field): Update.
11275 * p-lang.h (pascal_val_print): Don't declare.
11276 * p-lang.c (pascal_language_defn): Update.
11277 * opencl-lang.c (opencl_language_defn): Update.
11278 * objc-lang.c (objc_language_defn): Update.
11279 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11280 * m2-lang.h (m2_val_print): Don't declare.
11281 * m2-lang.c (m2_language_defn): Update.
11282 * language.h (struct language_defn) <la_val_print>: Remove.
11283 * language.c (unk_lang_value_print_inner): Rename. Change
11284 argument types.
11285 (unknown_language_defn, auto_language_defn): Update.
11286 * go-valprint.c (go_val_print): Remove.
11287 * go-lang.h (go_val_print): Don't declare.
11288 * go-lang.c (go_language_defn): Update.
11289 * f-valprint.c (f_val_print): Remove.
11290 * f-lang.h (f_value_print): Don't declare.
11291 * f-lang.c (f_language_defn): Update.
11292 * d-valprint.c (d_val_print): Remove.
11293 * d-lang.h (d_value_print): Don't declare.
11294 * d-lang.c (d_language_defn): Update.
11295 * cp-valprint.c (cp_print_value_fields)
11296 (cp_print_value_fields_rtti, cp_print_value): Remove.
11297 (cp_print_static_field): Update.
11298 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11299 (c_val_print_struct, c_val_print_union, c_val_print_int)
11300 (c_val_print_memberptr, c_val_print): Remove.
11301 * c-lang.h (c_val_print_array, cp_print_value_fields)
11302 (cp_print_value_fields_rtti): Don't declare.
11303 * c-lang.c (c_language_defn, cplus_language_defn)
11304 (asm_language_defn, minimal_language_defn): Update.
11305 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11306 (ada_val_print_enum): Take a struct value.
11307 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11308 (ada_val_print): Remove.
11309 (ada_value_print_1): Update.
11310 (printable_val_type): Remove.
11311 * ada-lang.h (ada_val_print): Don't declare.
11312 * ada-lang.c (ada_language_defn): Update.
11313
11314 2020-03-13 Tom Tromey <tom@tromey.com>
11315
11316 * valprint.c (do_val_print): Update.
11317 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11318 a struct value.
11319 (value_to_value_object_no_release): Declare.
11320 * python/py-value.c (value_to_value_object_no_release): New
11321 function.
11322 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11323 struct value.
11324 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11325 function.
11326 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11327 a struct value.
11328 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11329 Declare.
11330 (gdbscm_apply_val_pretty_printer): Take a struct value.
11331 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11332 value.
11333 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11334 value.
11335 * extension-priv.h (struct extension_language_ops)
11336 <apply_val_pretty_printer>: Take a struct value.
11337 * cp-valprint.c (cp_print_value): Create a struct value.
11338 (cp_print_value): Update.
11339
11340 2020-03-13 Tom Tromey <tom@tromey.com>
11341
11342 * ada-valprint.c (print_field_values): Call common_val_print.
11343
11344 2020-03-13 Tom Tromey <tom@tromey.com>
11345
11346 * ada-valprint.c (val_print_packed_array_elements): Remove
11347 bitoffset and val parameters. Call common_val_print.
11348 (ada_val_print_string): Remove offset, address, and original_value
11349 parameters.
11350 (ada_val_print_array): Update.
11351 (ada_value_print_array): New function.
11352 (ada_value_print_1): Call it.
11353
11354 2020-03-13 Tom Tromey <tom@tromey.com>
11355
11356 * ada-valprint.c (ada_value_print): Use common_val_print.
11357
11358 2020-03-13 Tom Tromey <tom@tromey.com>
11359
11360 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11361
11362 2020-03-13 Tom Tromey <tom@tromey.com>
11363
11364 * ada-valprint.c (ada_value_print_num): New function.
11365 (ada_value_print_1): Use it.
11366
11367 2020-03-13 Tom Tromey <tom@tromey.com>
11368
11369 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11370
11371 2020-03-13 Tom Tromey <tom@tromey.com>
11372
11373 * ada-valprint.c (ada_value_print_ptr): New function.
11374 (ada_value_print_1): Use it.
11375
11376 2020-03-13 Tom Tromey <tom@tromey.com>
11377
11378 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11379 call common_val_print.
11380 (ada_val_print_1): Update.
11381 (ada_value_print_1): New function.
11382 (ada_value_print_inner): Rewrite.
11383
11384 2020-03-13 Tom Tromey <tom@tromey.com>
11385
11386 * cp-valprint.c (cp_print_value_fields): Update.
11387 (cp_print_value): New function.
11388
11389 2020-03-13 Tom Tromey <tom@tromey.com>
11390
11391 * m2-valprint.c (m2_value_print_inner): Use
11392 cp_print_value_fields.
11393 * cp-valprint.c (cp_print_value_fields): New function.
11394 * c-valprint.c (c_value_print_struct): New function.
11395 (c_value_print_inner): Use c_value_print_struct.
11396 * c-lang.h (cp_print_value_fields): Declare.
11397
11398 2020-03-13 Tom Tromey <tom@tromey.com>
11399
11400 * c-valprint.c (c_value_print_array): New function.
11401 (c_value_print_inner): Use it.
11402
11403 2020-03-13 Tom Tromey <tom@tromey.com>
11404
11405 * c-valprint.c (c_value_print_memberptr): New function.
11406 (c_value_print_inner): Use it.
11407
11408 2020-03-13 Tom Tromey <tom@tromey.com>
11409
11410 * c-valprint.c (c_value_print_int): New function.
11411 (c_value_print_inner): Use it.
11412
11413 2020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * c-valprint.c (c_value_print_ptr): New function.
11416 (c_value_print_inner): Use it.
11417
11418 2020-03-13 Tom Tromey <tom@tromey.com>
11419
11420 * c-valprint.c (c_value_print_inner): Rewrite.
11421
11422 2020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * valprint.c (generic_value_print_complex): New function.
11425 (generic_value_print): Use it.
11426
11427 2020-03-13 Tom Tromey <tom@tromey.com>
11428
11429 * valprint.c (generic_val_print_float): Don't call
11430 val_print_scalar_formatted.
11431 (generic_val_print, generic_value_print): Update.
11432
11433 2020-03-13 Tom Tromey <tom@tromey.com>
11434
11435 * valprint.c (generic_value_print_char): New function
11436 (generic_value_print): Use it.
11437
11438 2020-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * valprint.c (generic_value_print_int): New function.
11441 (generic_value_print): Use it.
11442
11443 2020-03-13 Tom Tromey <tom@tromey.com>
11444
11445 * valprint.c (generic_value_print_bool): New function.
11446 (generic_value_print): Use it.
11447
11448 2020-03-13 Tom Tromey <tom@tromey.com>
11449
11450 * valprint.c (generic_val_print_func): Simplify.
11451 (generic_val_print, generic_value_print): Update.
11452
11453 2020-03-13 Tom Tromey <tom@tromey.com>
11454
11455 * valprint.c (generic_val_print_flags): Remove.
11456 (generic_val_print, generic_value_print): Update.
11457 (val_print_type_code_flags): Add original_value parameter.
11458
11459 2020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * valprint.c (generic_val_print): Update.
11462 (generic_value_print): Update.
11463 * valprint.c (generic_val_print_enum): Don't call
11464 val_print_scalar_formatted.
11465
11466 2020-03-13 Tom Tromey <tom@tromey.com>
11467
11468 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11469 * valprint.c (generic_value_print_ptr): New function.
11470
11471 2020-03-13 Tom Tromey <tom@tromey.com>
11472
11473 * valprint.c (generic_value_print): Rewrite.
11474
11475 2020-03-13 Tom Tromey <tom@tromey.com>
11476
11477 * p-valprint.c (pascal_object_print_value_fields)
11478 (pascal_object_print_value): New functions.
11479
11480 2020-03-13 Tom Tromey <tom@tromey.com>
11481
11482 * p-valprint.c (pascal_value_print_inner): Rewrite.
11483
11484 2020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * f-valprint.c (f_value_print_innner): Rewrite.
11487
11488 2020-03-13 Tom Tromey <tom@tromey.com>
11489
11490 * m2-valprint.c (m2_print_unbounded_array): New overload.
11491 (m2_print_unbounded_array): Update.
11492 (m2_print_array_contents): Take a struct value.
11493 (m2_value_print_inner): Rewrite.
11494
11495 2020-03-13 Tom Tromey <tom@tromey.com>
11496
11497 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11498 (d_value_print_inner): New function.
11499 * d-lang.h (d_value_print_inner): Declare.
11500 * d-lang.c (d_language_defn): Use d_value_print_inner.
11501
11502 2020-03-13 Tom Tromey <tom@tromey.com>
11503
11504 * go-valprint.c (go_value_print_inner): New function.
11505 * go-lang.h (go_value_print_inner): Declare.
11506 * go-lang.c (go_language_defn): Use go_value_print_inner.
11507
11508 2020-03-13 Tom Tromey <tom@tromey.com>
11509
11510 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11511 API.
11512 (rust_val_print): Rewrite.
11513 (rust_value_print_inner): New function, from rust_val_print.
11514 (rust_language_defn): Use rust_value_print_inner.
11515
11516 2020-03-13 Tom Tromey <tom@tromey.com>
11517
11518 * ada-valprint.c (ada_value_print_inner): New function.
11519 * ada-lang.h (ada_value_print_inner): Declare.
11520 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11521
11522 2020-03-13 Tom Tromey <tom@tromey.com>
11523
11524 * f-valprint.c (f_value_print_innner): New function.
11525 * f-lang.h (f_value_print_innner): Declare.
11526 * f-lang.c (f_language_defn): Use f_value_print_innner.
11527
11528 2020-03-13 Tom Tromey <tom@tromey.com>
11529
11530 * p-valprint.c (pascal_value_print_inner): New function.
11531 * p-lang.h (pascal_value_print_inner): Declare.
11532 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11533
11534 2020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * m2-valprint.c (m2_value_print_inner): New function.
11537 * m2-lang.h (m2_value_print_inner): Declare.
11538 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11539
11540 2020-03-13 Tom Tromey <tom@tromey.com>
11541
11542 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11543 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11544 * c-valprint.c (c_value_print_inner): New function.
11545 * c-lang.h (c_value_print_inner): Declare.
11546 * c-lang.c (c_language_defn, cplus_language_defn)
11547 (asm_language_defn, minimal_language_defn): Use
11548 c_value_print_inner.
11549
11550 2020-03-13 Tom Tromey <tom@tromey.com>
11551
11552 * p-valprint.c (pascal_object_print_value_fields): Now static.
11553 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11554
11555 2020-03-13 Tom Tromey <tom@tromey.com>
11556
11557 * c-valprint.c (c_val_print_array): Simplify.
11558
11559 2020-03-13 Tom Tromey <tom@tromey.com>
11560
11561 * valprint.c (value_print_array_elements): New function.
11562 * valprint.h (value_print_array_elements): Declare.
11563
11564 2020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11567 * mips-tdep.c (mips_print_register): Use
11568 value_print_scalar_formatted.
11569
11570 2020-03-13 Tom Tromey <tom@tromey.com>
11571
11572 * valprint.h (value_print_scalar_formatted): Declare.
11573 * valprint.c (value_print_scalar_formatted): New function.
11574
11575 2020-03-13 Tom Tromey <tom@tromey.com>
11576
11577 * valprint.h (generic_value_print): Declare.
11578 * valprint.c (generic_value_print): New function.
11579
11580 2020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * valprint.c (do_val_print): Call la_value_print_inner, if
11583 available.
11584 * rust-lang.c (rust_language_defn): Update.
11585 * p-lang.c (pascal_language_defn): Update.
11586 * opencl-lang.c (opencl_language_defn): Update.
11587 * objc-lang.c (objc_language_defn): Update.
11588 * m2-lang.c (m2_language_defn): Update.
11589 * language.h (struct language_defn) <la_value_print_inner>: New
11590 member.
11591 * language.c (unknown_language_defn, auto_language_defn): Update.
11592 * go-lang.c (go_language_defn): Update.
11593 * f-lang.c (f_language_defn): Update.
11594 * d-lang.c (d_language_defn): Update.
11595 * c-lang.c (c_language_defn, cplus_language_defn)
11596 (asm_language_defn, minimal_language_defn): Update.
11597 * ada-lang.c (ada_language_defn): Update.
11598
11599 2020-03-13 Tom Tromey <tom@tromey.com>
11600
11601 * c-valprint.c (c_value_print): Use common_val_print.
11602
11603 2020-03-13 Tom Tromey <tom@tromey.com>
11604
11605 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11606
11607 2020-03-13 Tom Tromey <tom@tromey.com>
11608
11609 * f-valprint.c (f77_print_array_1, f_val_print): Use
11610 common_val_print.
11611
11612 2020-03-13 Tom Tromey <tom@tromey.com>
11613
11614 * riscv-tdep.c (riscv_print_one_register_info): Use
11615 common_val_print.
11616
11617 2020-03-13 Tom Tromey <tom@tromey.com>
11618
11619 * mi/mi-main.c (output_register): Use common_val_print.
11620
11621 2020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * infcmd.c (default_print_one_register_info): Use
11624 common_val_print.
11625
11626 2020-03-13 Tom Tromey <tom@tromey.com>
11627
11628 * valprint.h (common_val_print_checked): Declare.
11629 * valprint.c (common_val_print_checked): New function.
11630 * stack.c (print_frame_arg): Use common_val_print_checked.
11631
11632 2020-03-13 Tom Tromey <tom@tromey.com>
11633
11634 * valprint.c (do_val_print): New function, from val_print.
11635 (val_print): Use do_val_print.
11636 (common_val_print): Use do_val_print.
11637
11638 2020-03-13 Tom Tromey <tom@tromey.com>
11639
11640 * valprint.c (value_print): Use scoped_value_mark.
11641
11642 2020-03-13 Tom de Vries <tdevries@suse.de>
11643
11644 PR symtab/25646
11645 * psymtab.c (partial_symtab::partial_symtab): Don't set
11646 globals_offset and statics_offset. Push element onto
11647 current_global_psymbols and current_static_psymbols stacks.
11648 (concat): New function.
11649 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11650 element from current_global_psymbols and current_static_psymbols
11651 stacks. Concat popped elements to global_psymbols and
11652 static_symbols.
11653 (add_psymbol_to_list): Use current_global_psymbols and
11654 current_static_psymbols stacks.
11655 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11656 current_static_psymbols fields.
11657
11658 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11659
11660 * corelow.c (sniff_core_bfd): Remove.
11661 (class core_target) <m_core_vec>: Remove.
11662 (core_target::core_target): Update.
11663 (core_file_fns): Remove.
11664 (deprecated_add_core_fns): Remove.
11665 (default_core_sniffer): Remove.
11666 (sniff_core_bfd): Remove.
11667 (default_check_format): Remove.
11668 (gdb_check_format): Remove.
11669 (core_target_open): Update.
11670 (core_target::get_core_register_section): Update.
11671 (get_core_registers_cb): Update.
11672 (core_target::fetch_registers): Update.
11673 * gdbcore.h (struct core_fns): Remove.
11674 (deprecated_add_core_fns): Remove.
11675 (default_core_sniffer): Remove.
11676 (default_check_format): Remove.
11677
11678 2020-03-12 Tom Tromey <tom@tromey.com>
11679
11680 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11681 CORE_ADDR.
11682 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11683
11684 2020-03-12 Tom Tromey <tom@tromey.com>
11685
11686 * remote.c (remote_target::download_tracepoint)
11687 (remote_target::enable_tracepoint)
11688 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11689 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11690 sprintf_vma.
11691
11692 2020-03-12 Tom Tromey <tom@tromey.com>
11693
11694 * symfile-mem.c: Update CORE_ADDR size assert.
11695
11696 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11697
11698 * selftest.m4: Move to gdbsupport/.
11699 * acinclude.m4: Update path to selftest.m4.
11700
11701 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11702
11703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11704 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11705 gdbarch-selfselftests.c and selftest-arch.c.
11706 (SUBDIR_UNITTESTS_OBS): Rename to...
11707 (SELFTESTS_OBS): ... this.
11708 (COMMON_SFILES): Remove disasm-selftests.c and
11709 gdbarch-selftests.c.
11710 * configure.ac: Don't add selftest-arch.{c,o} to
11711 CONFIG_{SRCS,OBS}.
11712 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11713 preprocessor conditions.
11714
11715 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * configure.ac: Don't source bfd/development.sh.
11718 * selftest.m4: Modify comment.
11719 * configure: Re-generate.
11720
11721 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11722
11723 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11724 not "true" or "false".
11725 * configure: Re-generate.
11726
11727 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11728
11729 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11730 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11731 renamed to arm_nbsd_supply_gregset.
11732 (fetch_register): Update to call arm_nbsd_supply_gregset.
11733 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11734 (arm_netbsd_nat_target::fetch_registers): Update.
11735 (fetch_elfcore_registers): Removed.
11736 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11737 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11738 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11739 not require NetBSD system headers.
11740 (arm_nbsd_regset): New struct.
11741 (arm_nbsd_iterate_over_regset_sections): New function.
11742 (arm_netbsd_init_abi_common): Updated to call
11743 set_gdbarch_iterate_over_regset_sections.
11744 * arm-nbsd-tdep.h: New file.
11745
11746 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11747
11748 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11749 recursion.
11750
11751 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11752
11753 * configure: Re-generate.
11754
11755 2020-03-11 Tom Tromey <tromey@adacore.com>
11756
11757 * ada-typeprint.c (print_choices): Fix comment.
11758
11759 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11760
11761 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11762 previous item in the list, when the list has no items.
11763
11764 2020-03-11 Tom de Vries <tdevries@suse.de>
11765
11766 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11767 PROP_LOCLIST handling code.
11768
11769 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11770
11771 * buildsym-legacy.c (record_line): Pass extra parameter to
11772 record_line.
11773 * buildsym.c (buildsym_compunit::record_line): Take an extra
11774 parameter, reduce duplication in the line table, and record the
11775 is_stmt flag in the line table.
11776 * buildsym.h (buildsym_compunit::record_line): Add extra
11777 parameter.
11778 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11779 non-statement lines.
11780 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11781 this to the symtab builder.
11782 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11783 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11784 through to dwarf_record_line_1.
11785 * infrun.c (process_event_stop_test): When stepping, don't stop at
11786 a non-statement instruction, and only refresh the step info when
11787 we land in the middle of a line's range. Also add an extra
11788 comment.
11789 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11790 field.
11791 * record-btrace.c (btrace_find_line_range): Only record lines
11792 marked as is-statement.
11793 * stack.c (frame_show_address): Show the frame address if we are
11794 in a non-statement sal.
11795 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11796 (maintenance_print_one_line_table): Print a header for the is_stmt
11797 column, and include is_stmt information in the output.
11798 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11799 preference to non-statements.
11800 (find_pcs_for_symtab_line): Prefer is-statement entries.
11801 (find_line_common): Likewise.
11802 * symtab.h (struct linetable_entry): Add is_stmt field.
11803 (struct symtab_and_line): Likewise.
11804 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11805 arranging the line table.
11806
11807 2020-03-07 Tom de Vries <tdevries@suse.de>
11808
11809 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11810 DIE.
11811
11812 2020-03-07 Tom Tromey <tom@tromey.com>
11813
11814 * valops.c (value_literal_complex): Remove obsolete comment.
11815 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11816 comment.
11817
11818 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * infrun.h: Forward-declare thread_info.
11821 (set_step_info): Add thread_info parameter, add doc.
11822 * infrun.c (set_step_info): Add thread_info parameter, move doc
11823 to header.
11824 * infrun.c (process_event_stop_test): Pass thread to
11825 set_step_info call.
11826 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11827 set_step_info.
11828 (prepare_one_step): Add thread_info parameter, pass it to
11829 set_step_frame and prepare_one_step (recursive) call.
11830 (step_1): Pass thread to prepare_one_step call.
11831 (step_command_fsm::should_stop): Pass thread to
11832 prepare_one_step.
11833 (until_next_fsm): Pass thread to set_step_frame call.
11834 (finish_command): Pass thread to set_step_info call.
11835
11836 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11837
11838 * windows-tdep.c (windows_solib_create_inferior_hook):
11839 Check if inferior is running.
11840
11841 2020-03-06 Tom de Vries <tdevries@suse.de>
11842
11843 * NEWS: Fix "the the".
11844 * ctfread.c: Same.
11845
11846 2020-03-06 Tom de Vries <tdevries@suse.de>
11847
11848 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11849
11850 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11851
11852 * .dir-locals.el: Add a comment referencing the other copies of
11853 this file.
11854
11855 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11856
11857 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11858 psargs.
11859
11860 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11861
11862 * .gitattributes: New file.
11863
11864 2020-03-04 Tom Tromey <tom@tromey.com>
11865
11866 * symmisc.c (print_symbol_bcache_statistics)
11867 (print_objfile_statistics): Update.
11868 * symfile.c (allocate_symtab): Use intern.
11869 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11870 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11871 macro_cache>: Remove.
11872 <string_cache>: New member.
11873 (struct objfile) <intern>: New methods.
11874 * elfread.c (elf_symtab_read): Use intern.
11875 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11876 (dwarf2_compute_name, dwarf2_physname)
11877 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11878 names.
11879 (guess_partial_die_structure_name): Update.
11880 (partial_die_info::fixup): Intern name.
11881 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11882 name.
11883 (dwarf2_name): Intern name. Update.
11884 * buildsym.c (buildsym_compunit::get_macro_table): Use
11885 string_cache.
11886
11887 2020-03-04 Tom Tromey <tom@tromey.com>
11888
11889 * jit.c (bfd_open_from_target_memory): Make "target" const.
11890 * corefile.c (gnutarget): Now const.
11891 * gdbcore.h (gnutarget): Now const.
11892
11893 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11894
11895 * NEWS: Mention support for WOW64 processes.
11896 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11897 (amd64_windows_segment_register_p): Remove static.
11898 (_initialize_amd64_windows_nat): Update.
11899 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11900 * i386-windows-nat.c (context_offset): Update.
11901 (i386_mappings): Rename and remove static.
11902 (i386_windows_segment_register_p): Remove static.
11903 (_initialize_i386_windows_nat): Update.
11904 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11905 (STATUS_WX86_SINGLE_STEP): New macro.
11906 (EnumProcessModulesEx): New macro.
11907 (Wow64SuspendThread): New macro.
11908 (Wow64GetThreadContext): New macro.
11909 (Wow64SetThreadContext): New macro.
11910 (Wow64GetThreadSelectorEntry): New macro.
11911 (windows_set_context_register_offsets): Add static.
11912 (windows_set_segment_register_p): Likewise.
11913 (windows_add_thread): Adapt for WOW64 processes.
11914 (windows_fetch_one_register): Likewise.
11915 (windows_nat_target::fetch_registers): Likewise.
11916 (windows_store_one_register): Likewise.
11917 (display_selector): Likewise.
11918 (display_selectors): Likewise.
11919 (handle_exception): Likewise.
11920 (windows_continue): Likewise.
11921 (windows_nat_target::resume): Likewise.
11922 (windows_add_all_dlls): Likewise.
11923 (do_initial_windows_stuff): Likewise.
11924 (windows_nat_target::attach): Likewise.
11925 (windows_get_exec_module_filename): Likewise.
11926 (windows_nat_target::create_inferior): Likewise.
11927 (windows_xfer_siginfo): Likewise.
11928 (_initialize_loadable): Initialize Wow64SuspendThread,
11929 Wow64GetThreadContext, Wow64SetThreadContext,
11930 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11931 * windows-nat.h (windows_set_context_register_offsets):
11932 Remove declaration.
11933 (windows_set_segment_register_p): Likewise.
11934 (i386_windows_segment_register_p): Add declaration.
11935 (amd64_windows_segment_register_p): Likewise.
11936
11937 2020-03-04 Luis Machado <luis.machado@linaro.org>
11938
11939 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11940 in "info registers" for AArch64/ARM.
11941
11942 The change caused "info registers" to not print GPR's.
11943
11944 gdb/ChangeLog:
11945
11946 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11947
11948 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11949 when reg->group is empty and reggroup is not.
11950
11951 2020-03-03 Tom Tromey <tromey@adacore.com>
11952
11953 * dwarf2/frame.c (struct dwarf2_frame_cache)
11954 <checked_tailcall_bottom, entry_cfa_sp_offset,
11955 entry_cfa_sp_offset_p>: Remove members.
11956 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11957 (dwarf2_frame_prev_register): Don't call
11958 dwarf2_tailcall_sniffer_first.
11959 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11960 * frame-unwind.c (add_unwinder): New fuction.
11961 (frame_unwind_init): Use it. Add tailcall unwinder.
11962
11963 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11964 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11965
11966 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11967 value should be printed as true.
11968
11969 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11970
11971 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11972 (windows_init_abi): Set and use windows_so_ops.
11973
11974 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11975
11976 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11977 when verifying if dealing with a convenience variable.
11978
11979 2020-03-03 Luis Machado <luis.machado@linaro.org>
11980
11981 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11982
11983 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11984
11985 * infrun.c (gdbarch_supports_displaced_stepping): New.
11986 (use_displaced_stepping): Break up conditions in smaller pieces.
11987 Use gdbarch_supports_displaced_stepping.
11988 (displaced_step_prepare_throw): Use
11989 gdbarch_supports_displaced_stepping.
11990
11991 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11992
11993 * NEWS: Mention new behaviour of the history filename.
11994 * top.c (write_history_p): Add comment.
11995 (show_write_history_p): Add header comment, give a different
11996 message when history writing is on, but the history filename is
11997 empty.
11998 (history_filename): Add comment.
11999 (history_filename_empty): New function.
12000 (show_history_filename): Add header comment, give a different
12001 message when the filename is empty.
12002 (init_history): Compare history_filename against nullptr, and only
12003 read history if the filename is not empty.
12004 (set_history_filename): Add header comment, and only make
12005 non-empty filenames absolute.
12006 (init_main): Make the filename argument to 'set history filename'
12007 optional.
12008
12009 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12010
12011 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12012 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12013 (fetch_fp_register): Update.
12014 (fetch_fp_regs): Update.
12015 (store_fp_register): Update.
12016 (store_fp_regs): Update.
12017 (arm_netbsd_nat_target::read_description): New function.
12018 (fetch_elfcore_registers): Update.
12019
12020 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12021
12022 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12023 general_thread if the stop reply is missing a thread-id.
12024 (remote_target::process_stop_reply): Use the first non-exited
12025 thread if the target didn't pass a thread-id.
12026 * infrun.c (do_target_wait): Move call to
12027 switch_to_inferior_no_thread to ....
12028 (do_target_wait_1): ... here.
12029
12030 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12031
12032 * debuginfod-support.c: Include defs.h first.
12033
12034 2020-02-28 Tom de Vries <tdevries@suse.de>
12035
12036 * symfile.c (set_initial_language): Use default language for lookup.
12037
12038 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12039
12040 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12041 reader variable, pass `this` to read_cutu_die_from_dwo.
12042
12043 2020-02-27 Aaron Merey <amerey@redhat.com>
12044
12045 * source.c (open_source_file): Check for nullptr when computing
12046 srcpath.
12047
12048 2020-02-27 Tom Tromey <tromey@adacore.com>
12049
12050 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12051 member.
12052 (dwarf2_add_field): Don't update nfields.
12053 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12054
12055 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12056
12057 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12058 abs.
12059
12060 2020-02-26 Tom Tromey <tom@tromey.com>
12061
12062 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12063 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12064 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12065 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12066 per_cu_data.
12067
12068 2020-02-26 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/index-write.c (psym_index_map): Change type.
12071 (add_address_entry_worker, write_one_signatured_type)
12072 (recursively_count_psymbols, recursively_write_psymbols)
12073 (class debug_names, psyms_seen_size, write_gdbindex)
12074 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12075
12076 2020-02-26 Aaron Merey <amerey@redhat.com>
12077
12078 * Makefile.in: Handle optional debuginfod support.
12079 * NEWS: Update.
12080 * README: Add --with-debuginfod summary.
12081 * config.in: Regenerate.
12082 * configure: Regenerate.
12083 * configure.ac: Handle optional debuginfod support.
12084 * debuginfod-support.c: debuginfod helper functions.
12085 * debuginfod-support.h: Ditto.
12086 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12087 summary.
12088 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12089 when a dwz file cannot be found.
12090 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12091 debuginfo file cannot be found.
12092 * source.c (open_source_file): Query debuginfod servers when a
12093 source file cannot be found.
12094 * top.c (print_gdb_configuration): Include
12095 --{with,without}-debuginfod in the output.
12096
12097 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12098
12099 * thread.c (thr_try_catch_cmd): Print thread name.
12100
12101 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12102
12103 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12104 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12105 dwarf2_fetch_die_type_sect_off): Move to...
12106 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12107 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12108 dwarf2_fetch_die_type_sect_off): ... here.
12109 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12110 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12111 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12112
12113 2020-02-26 Tom de Vries <tdevries@suse.de>
12114
12115 PR gdb/25603
12116 * symfile.c (set_initial_language): Exit-early if
12117 language_mode == language_mode_manual.
12118
12119 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12122 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12123 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12124
12125 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12126
12127 * gdbtypes.c (create_array_type_with_stride): Handle negative
12128 array strides.
12129 * valarith.c (value_subscripted_rvalue): Likewise.
12130
12131 2020-02-25 Luis Machado <luis.machado@linaro.org>
12132
12133 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12134
12135 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12136
12137 * loc.h (dwarf2_get_die_type): Move to...
12138 * read.h (dwarf2_get_die_type): ... here.
12139 * read.c (dwarf2_get_die_type): Move doc to header.
12140
12141 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12142
12143 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12144 'gnulib/Makefile.in' to the list.
12145
12146 2020-02-24 Tom Tromey <tom@tromey.com>
12147
12148 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12149 Remove.
12150 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12151 XOBNEWVEC.
12152
12153 2020-02-24 Tom Tromey <tom@tromey.com>
12154
12155 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12156 New method.
12157 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12158 (dw2_do_instantiate_symtab, dw2_get_file_names)
12159 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12160
12161 2020-02-24 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12164 make_scoped_restore.
12165 (dwarf2_psymtab::read_symtab): Don't clear
12166 reading_partial_symbols.
12167
12168 2020-02-24 Tom de Vries <tdevries@suse.de>
12169
12170 PR gdb/25592
12171 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12172
12173 2020-02-24 Tom de Vries <tdevries@suse.de>
12174
12175 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12176 commands layout next/prev/regs.
12177
12178 2020-02-22 Tom Tromey <tom@tromey.com>
12179
12180 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12181 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12182
12183 2020-02-22 Tom Tromey <tom@tromey.com>
12184
12185 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12186
12187 2020-02-22 Tom Tromey <tom@tromey.com>
12188
12189 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12190 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12191 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12192 * tui/tui.c (_initialize_tui): Add usage text.
12193
12194 2020-02-22 Tom Tromey <tom@tromey.com>
12195
12196 * tui/tui-win.c (tui_set_focus_command)
12197 (tui_set_win_height_command): Use error_no_arg.
12198 (_initialize_tui_win): Update help text.
12199 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12200
12201 2020-02-22 Tom Tromey <tom@tromey.com>
12202
12203 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12204 * tui/tui-disasm.h (struct tui_disasm_window)
12205 <display_start_addr>: Declare.
12206 * tui/tui-source.h (struct tui_source_window)
12207 <display_start_addr>: Declare.
12208 * tui/tui-winsource.h (struct tui_source_window_base)
12209 <show_source_line, display_start_addr>: New methods.
12210 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12211 Rename and move to protected section.
12212 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12213 (tui_source_window_base::do_erase_source_content): Update.
12214 (tui_source_window_base::show_source_line): Now a method.
12215 (tui_source_window_base::show_source_content)
12216 (tui_source_window_base::tui_source_window_base)
12217 (tui_source_window_base::rerender)
12218 (tui_source_window_base::refill)
12219 (tui_source_window_base::do_scroll_horizontal)
12220 (tui_source_window_base::set_is_exec_point_at)
12221 (tui_source_window_base::update_breakpoint_info)
12222 (tui_source_window_base::update_exec_info): Update.
12223 * tui/tui-source.c (tui_source_window::set_contents)
12224 (tui_source_window::showing_source_p)
12225 (tui_source_window::do_scroll_vertical)
12226 (tui_source_window::location_matches_p)
12227 (tui_source_window::line_is_displayed): Update.
12228 (tui_source_window::display_start_addr): New method.
12229 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12230 (tui_disasm_window::do_scroll_vertical)
12231 (tui_disasm_window::location_matches_p): Update.
12232 (tui_disasm_window::display_start_addr): New method.
12233
12234 2020-02-22 Tom Tromey <tom@tromey.com>
12235
12236 * NEWS: Add entry for gdb.register_window_type.
12237 * tui/tui-layout.h (window_factory): New typedef.
12238 (tui_register_window): Declare.
12239 * tui/tui-layout.c (saved_tui_windows): New global.
12240 (tui_apply_current_layout): Use it.
12241 (tui_register_window): New function.
12242 * python/python.c (do_start_initialization): Call
12243 gdbpy_initialize_tui.
12244 (python_GdbMethods): Add "register_window_type" function.
12245 * python/python-internal.h (gdbpy_register_tui_window)
12246 (gdbpy_initialize_tui): Declare.
12247 * python/py-tui.c: New file.
12248 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12249
12250 2020-02-22 Tom Tromey <tom@tromey.com>
12251
12252 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12253
12254 2020-02-22 Tom Tromey <tom@tromey.com>
12255
12256 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12257 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12258 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12259 (tui_set_win_focus_to): Move from tui-win.c.
12260
12261 2020-02-22 Tom Tromey <tom@tromey.com>
12262
12263 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12264 functions.
12265 (known_window_types): New global.
12266 (tui_get_window_by_name): Reimplement.
12267 (initialize_known_windows): New function.
12268 (validate_window_name): Rewrite.
12269 (_initialize_tui_layout): Call initialize_known_windows.
12270
12271 2020-02-22 Tom Tromey <tom@tromey.com>
12272
12273 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12274 Remove constants.
12275 * tui/tui-winsource.h (struct tui_source_window_base)
12276 <tui_source_window_base>: Remove parameter.
12277 * tui/tui-winsource.c
12278 (tui_source_window_base::tui_source_window_base): Remove
12279 parameter.
12280 (tui_source_window_base::refill): Update.
12281 * tui/tui-stack.h (struct tui_locator_window)
12282 <tui_locator_window>: Update.
12283 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12284 Default the constructor.
12285 * tui/tui-regs.h (struct tui_data_item_window)
12286 <tui_data_item_window>: Default the constructor.
12287 (struct tui_data_window) <tui_data_window>: Likewise.
12288 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12289 Default the constructor.
12290 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12291 Default the constructor.
12292 <type>: Remove.
12293 (struct tui_win_info) <tui_win_info>: Default the constructor.
12294 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12295 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12296 Default the constructor.
12297
12298 2020-02-22 Tom Tromey <tom@tromey.com>
12299
12300 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12301 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12302 * tui/tui-win.c (tui_resize_all): Don't call
12303 tui_delete_invisible_windows.
12304 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12305 done.
12306 (tui_set_layout): Update.
12307 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12308 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12309 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12310
12311 2020-02-22 Tom Tromey <tom@tromey.com>
12312
12313 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12314 correctly.
12315
12316 2020-02-22 Tom Tromey <tom@tromey.com>
12317
12318 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12319
12320 2020-02-22 Tom Tromey <tom@tromey.com>
12321
12322 * tui/tui-winsource.h (struct tui_source_window_iterator)
12323 <inner_iterator>: New etytypedef.
12324 <tui_source_window_iterator>: Take "end" parameter.
12325 <tui_source_window_iterator>: Take iterator.
12326 <operator*, advance>: Update.
12327 <m_iter>: Change type.
12328 <m_end>: New field.
12329 (struct tui_source_windows) <begin, end>: Update.
12330 * tui/tui-layout.c (tui_windows): New global.
12331 (tui_apply_current_layout): Clear tui_windows.
12332 (tui_layout_window::apply): Update tui_windows.
12333 * tui/tui-data.h (tui_windows): Declare.
12334 (all_tui_windows): Now inline function.
12335 (class tui_window_iterator, struct all_tui_windows): Remove.
12336
12337 2020-02-22 Tom Tromey <tom@tromey.com>
12338
12339 PR tui/17850:
12340 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12341 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12342 "height" argument.
12343 (class tui_layout_window) <get_sizes>: Likewise.
12344 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12345 argument.
12346 <get_sizes>: Add "height" argument.
12347 <m_vertical>: New field.
12348 * tui/tui-layout.c (tui_layout_split::clone): Update.
12349 (tui_layout_split::get_sizes): Add "height" argument.
12350 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12351 (tui_new_layout_command): Parse "-horizontal".
12352 (_initialize_tui_layout): Update help string.
12353 (tui_layout_split::specification): Add "-horizontal" when needed.
12354 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12355 argument.
12356 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12357 New methods.
12358
12359 2020-02-22 Tom Tromey <tom@tromey.com>
12360
12361 * tui/tui-layout.h (enum tui_adjust_result): New.
12362 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12363 (class tui_layout_window) <adjust_size>: Return
12364 tui_adjust_result. Rewrite.
12365 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12366 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12367
12368 2020-02-22 Tom Tromey <tom@tromey.com>
12369
12370 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12371 parameter and return types.
12372 (class tui_layout_base) <specification>: Add "depth".
12373 (class tui_layout_window) <specification>: Add "depth".
12374 (class tui_layout_split) <specification>: Add "depth".
12375 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12376 and return types.
12377 (tui_new_layout_command): Parse sub-layouts.
12378 (_initialize_tui_layout): Update help string.
12379 (tui_layout_window::specification): Add "depth".
12380 (add_layout_command): Update.
12381
12382 2020-02-22 Tom Tromey <tom@tromey.com>
12383
12384 * NEWS: Add "tui new-layout" item.
12385 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12386 Add new-layout command to help text.
12387 (validate_window_name): New function.
12388 (tui_new_layout_command): New function.
12389 (_initialize_tui_layout): Register "new-layout".
12390 (tui_layout_window::specification): New method.
12391 (tui_layout_window::specification): New method.
12392 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12393 method.
12394 (class tui_layout_window) <specification>: New method.
12395 (class tui_layout_split) <specification>: New method.
12396
12397 2020-02-22 Tom Tromey <tom@tromey.com>
12398
12399 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12400 * tui/tui-win.c (window_name_completer): Update comment.
12401 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12402 Declare method.
12403 (class tui_layout_window) <replace_window>: Likewise.
12404 (class tui_layout_split) <replace_window>: Likewise.
12405 (tui_set_layout): Don't declare.
12406 (tui_set_initial_layout): Declare function.
12407 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12408 (asm_regs_layout): New globals.
12409 (tui_current_layout, show_layout): Remove.
12410 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12411 (find_layout, tui_apply_layout): New function.
12412 (layout_completer): Remove.
12413 (tui_next_layout): Reimplement.
12414 (tui_next_layout_command): New function.
12415 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12416 (tui_regs_layout): Reimplement.
12417 (tui_regs_layout_command): New function.
12418 (extract_display_start_addr): Rewrite.
12419 (next_layout, prev_layout): Remove.
12420 (tui_layout_window::replace_window): New method.
12421 (tui_layout_split::replace_window): New method.
12422 (destroy_layout): New function.
12423 (layout_list): New global.
12424 (add_layout_command): New function.
12425 (initialize_layouts): Update.
12426 (tui_layout_command): New function.
12427 (_initialize_tui_layout): Install "layout" commands.
12428 * tui/tui-data.h (enum tui_layout_type): Remove.
12429 (tui_current_layout): Don't declare.
12430
12431 2020-02-22 Tom Tromey <tom@tromey.com>
12432
12433 * tui/tui-regs.c (tui_reg_layout): Remove.
12434 (tui_reg_command): Use tui_regs_layout.
12435 * tui/tui-layout.h (tui_reg_command): Declare.
12436 * tui/tui-layout.c (tui_reg_command): New function.
12437
12438 2020-02-22 Tom Tromey <tom@tromey.com>
12439
12440 * tui/tui.c (tui_rl_delete_other_windows): Call
12441 tui_remove_some_windows.
12442 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12443 Declare method.
12444 (class tui_layout_window) <remove_windows>: New method.
12445 (class tui_layout_split) <remove_windows>: Declare.
12446 (tui_remove_some_windows): Declare.
12447 * tui/tui-layout.c (tui_remove_some_windows): New function.
12448 (tui_layout_split::remove_windows): New method.
12449
12450 2020-02-22 Tom Tromey <tom@tromey.com>
12451
12452 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12453 * tui/tui-layout.h (tui_next_layout): Declare.
12454 * tui/tui-layout.c (tui_next_layout): New function.
12455
12456 2020-02-22 Tom Tromey <tom@tromey.com>
12457
12458 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12459 correct coordinates.
12460
12461 2020-02-22 Tom Tromey <tom@tromey.com>
12462
12463 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12464 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12465 DATA_WIN case.
12466
12467 2020-02-22 Tom Tromey <tom@tromey.com>
12468
12469 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12470 TUI_DISASM_WIN, not tui_win_list.
12471
12472 2020-02-22 Tom Tromey <tom@tromey.com>
12473
12474 * valprint.c (generic_val_print_enum_1)
12475 (val_print_type_code_flags): Style member names.
12476 * rust-lang.c (val_print_struct, rust_print_enum)
12477 (rust_print_struct_def, rust_internal_print_type): Style member
12478 names.
12479 * p-valprint.c (pascal_object_print_value_fields): Style member
12480 names. Only call fprintf_symbol_filtered for static members.
12481 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12482 * f-valprint.c (f_val_print): Style member names.
12483 * f-typeprint.c (f_type_print_base): Style member names.
12484 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12485 call fprintf_symbol_filtered for static members.
12486 (cp_print_class_member): Style member names.
12487 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12488 member names.
12489 * ada-valprint.c (ada_print_scalar): Style enum names.
12490 (ada_val_print_enum): Likewise.
12491 * ada-typeprint.c (print_enum_type): Style enum names.
12492
12493 2020-02-21 Tom Tromey <tom@tromey.com>
12494
12495 * psympriv.h (struct partial_symtab): Update comment.
12496
12497 2020-02-21 Tom Tromey <tromey@adacore.com>
12498
12499 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12500 type is CORE_ADDR.
12501
12502 2020-02-21 Tom de Vries <tdevries@suse.de>
12503
12504 PR gdb/25534
12505 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12506 if dependencies[i]->user != NULL.
12507
12508 2020-02-21 Ali Tamur <tamur@google.com>
12509
12510 * dwarf2/read.c (dwarf2_name): Add null check.
12511
12512 2020-02-20 Tom Tromey <tom@tromey.com>
12513
12514 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12515 ">=", in binary search.
12516 (dwarf2_find_containing_comp_unit): New overload.
12517 (run_test): New self-test.
12518 (_initialize_dwarf2_read): Register new test.
12519
12520 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12521
12522 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12523 * riscv-tdep.h: Likewise.
12524 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12525 rv32-only CSR.
12526 * features/riscv/64bit-csr.xml: Regenerated.
12527
12528 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12529 Tom Tromey <tom@tromey.com>
12530
12531 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12532 of 'fputc_unfiltered'.
12533 (putchar_unfiltered): Call 'fputc_unfiltered'.
12534 (fputc_unfiltered): Call 'fputs_unfiltered'.
12535
12536 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12537
12538 * config.in: Regenerate.
12539 * configure: Regenerate.
12540 * configure.ac: Add --with-python-libdir option.
12541 * main.c: Use WITH_PYTHON_LIBDIR.
12542
12543 2020-02-19 Tom Tromey <tom@tromey.com>
12544
12545 * symtab.c (general_symbol_info::compute_and_set_names): Use
12546 obstack_strndup. Simplify call to symbol_set_demangled_name.
12547
12548 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * dwarf2/read.c (allocate_signatured_type_table,
12551 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12552 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12553 Remove objfile parameter, update all callers.
12554
12555 2020-02-19 Doug Evans <dje@google.com>
12556
12557 PR rust/25535
12558 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12559 rust_enum_variant calculation.
12560
12561 2020-02-19 Tom Tromey <tromey@adacore.com>
12562
12563 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12564
12565 2020-02-19 Tom Tromey <tromey@adacore.com>
12566
12567 * ada-lang.c (cache_symbol): Use obstack_strdup.
12568
12569 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12570
12571 * configure: Regenerate.
12572
12573 2020-02-19 Tom Tromey <tromey@adacore.com>
12574
12575 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12576 NULL check.
12577
12578 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12579
12580 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12581
12582 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12585 if GDBSERVER is not defined.
12586 (riscv_tdesc_cache): Likewise, also store const target_desc.
12587 (STATIC_IN_GDB): Define.
12588 (riscv_create_target_description): Update declaration with
12589 STATIC_IN_GDB.
12590 (riscv_lookup_target_description): New function, only define if
12591 GDBSERVER is not defined.
12592 * arch/riscv.h (riscv_create_target_description): Declare only
12593 when GDBSERVER is defined.
12594 (riscv_lookup_target_description): New declaration when GDBSERVER
12595 is not defined.
12596 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12597 (riscv_linux_read_features): ...this, and return
12598 riscv_gdbarch_features instead of target_desc.
12599 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12600 (riscv_linux_read_description): Rename to...
12601 (riscv_linux_read_features): ...this.
12602 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12603 Update to use riscv_gdbarch_features and
12604 riscv_lookup_target_description.
12605 * riscv-tdep.c (riscv_find_default_target_description): Use
12606 riscv_lookup_target_description instead of
12607 riscv_create_target_description.
12608
12609 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12610
12611 * valprint.c (generic_val_print_enum_1): When printing a flag
12612 enum with value 0 and there is no enumerator with value 0, print
12613 just "0" instead of "(unknown: 0x0)".
12614
12615 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12616
12617 * valprint.c (generic_val_print_enum_1): Print unknown part of
12618 flag enum in hex.
12619
12620 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12621
12622 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12623 flag enums to contain duplicate enumerators.
12624 * valprint.c (generic_val_print_enum_1): Update comment.
12625
12626 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12627
12628 * dwarf2/read.c: Include "count-one-bits.h".
12629 (update_enumeration_type_from_children): If an enumerator has
12630 multiple bits set, don't treat the enumeration as a "flag enum".
12631 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12632 of flag enums have 0 or 1 bit set.
12633
12634 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12635
12636 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12637 conversion.
12638 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12639 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12640 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12641 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12642 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12643
12644 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12645
12646 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12647
12648 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12649
12650 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12651 displaced_step_closure_up.
12652 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12653 (struct displaced_step_closure_up):
12654 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12655 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12656 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12657 Likewise.
12658 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12659 * gdbarch.c, gdbarch.h: Re-generate.
12660 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12661 displaced_step_closure_up.
12662 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12663 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12664 * infrun.h (displaced_step_closure_up): New type alias.
12665 (struct displaced_step_inferior_state) <step_closure>: Change
12666 type to displaced_step_closure_up.
12667 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12668 displaced_step_closure_up.
12669 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12670
12671 2020-02-14 Tom Tromey <tom@tromey.com>
12672
12673 * minidebug.c (gnu_debug_key): New global.
12674 (find_separate_debug_file_in_section): Use it.
12675
12676 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12677
12678 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12679 std::unique_ptr.
12680 * gdbarch.c: Re-generate.
12681 * gdbarch.h: Re-generate.
12682 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12683 change.
12684 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12685 type to std::unique_ptr.
12686 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12687 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12688 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12689 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12690 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12691 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12692 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12693 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12694 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12695
12696 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12697
12698 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12699 std::unique_ptr.
12700 (displaced_step_clear): Rename to...
12701 (displaced_step_reset): ... this. Just call displaced->reset ().
12702 (displaced_step_clear_cleanup): Rename to...
12703 (displaced_step_reset_cleanup): ... this.
12704 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12705 (displaced_step_fixup): Likewise.
12706 (resume_1): Likewise.
12707 (handle_inferior_event): Restore child's memory before calling
12708 displaced_step_fixup on the parent.
12709 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12710 to std::unique_ptr.
12711 <step_closure>: Change type to std::unique_ptr.
12712
12713 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12714
12715 * arm-tdep.c: Include count-one-bits.h.
12716 (cleanup_block_store_pc): Use count_one_bits.
12717 (cleanup_block_load_pc): Use count_one_bits.
12718 (arm_copy_block_xfer): Use count_one_bits.
12719 (thumb2_copy_block_xfer): Use count_one_bits.
12720 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12721 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12722 (thumb_get_next_pcs_raw): Use count_one_bits.
12723 (arm_get_next_pcs_raw): Use count_one_bits_l.
12724 * arch/arm.c (bitcount): Remove.
12725 * arch/arm.h (bitcount): Remove.
12726
12727 2020-02-14 Tom Tromey <tromey@adacore.com>
12728
12729 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12730 Update.
12731 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12732 * dwarf2/loc.c (call_site_find_chain_1): Return
12733 unique_xmalloc_ptr.
12734 (call_site_find_chain): Likewise.
12735
12736 2020-02-14 Richard Biener <rguenther@suse.de>
12737
12738 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12739 on expression with division operators.
12740
12741 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12742
12743 * MAINTAINERS (Write After Approval): Adding myself.
12744
12745 2020-02-12 Tom Tromey <tom@tromey.com>
12746
12747 * event-loop.c (event_data, gdb_event, event_handler_func):
12748 Remove.
12749
12750 2020-02-12 Tom Tromey <tom@tromey.com>
12751
12752 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12753 (dwarf2_frame_objfile_data): Add comment.
12754 (find_comp_unit, set_comp_unit): New functions.
12755 (dwarf2_frame_find_fde): Use find_comp_unit.
12756 (dwarf2_build_frame_info): Use set_comp_unit.
12757
12758 2020-02-12 Tom Tromey <tom@tromey.com>
12759
12760 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12761 (comp_unit): Don't initialize objfile.
12762 (execute_cfa_program): Add text_offset parameter.
12763 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12764 (dwarf2_frame_cache): Update.
12765 (dwarf2_build_frame_info): Don't set "objfile" member.
12766
12767 2020-02-12 Tom Tromey <tom@tromey.com>
12768
12769 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12770 (decode_frame_entry): Likewise.
12771 (dwarf2_build_frame_info): Update.
12772
12773 2020-02-12 Tom Tromey <tom@tromey.com>
12774
12775 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12776 (decode_frame_entry_1): Use the comp_unit obstack.
12777
12778 2020-02-12 Tom Tromey <tom@tromey.com>
12779
12780 * dwarf2/frame.c (struct comp_unit): Add initializers and
12781 constructor.
12782 (dwarf2_frame_objfile_data): Store a comp_unit.
12783 (dwarf2_frame_find_fde): Update.
12784 (dwarf2_build_frame_info): Use "new".
12785
12786 2020-02-12 Tom Tromey <tom@tromey.com>
12787
12788 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12789 (dwarf2_fde_table): Typedef for std::vector.
12790 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12791 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12792 (decode_frame_entry): Update.
12793 (dwarf2_build_frame_info): Use "new".
12794
12795 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12796
12797 * arm-tdep.c (arm_gdbarch_init): Update.
12798 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12799 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12800 have_neon, is_m>: Change to bool.
12801
12802 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12803
12804 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12805
12806 2020-02-12 Tom Tromey <tom@tromey.com>
12807
12808 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12809
12810 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12811
12812 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12813 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12814
12815 2020-02-11 Tom Tromey <tom@tromey.com>
12816
12817 * psymtab.h: Update comment.
12818
12819 2020-02-11 Tom Tromey <tom@tromey.com>
12820
12821 * gdb_obstack.h (struct auto_obstack): Use
12822 DISABLE_COPY_AND_ASSIGN.
12823
12824 2020-02-11 Tom Tromey <tom@tromey.com>
12825
12826 * dwarf2/frame.h (struct objfile): Don't forward declare.
12827
12828 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12829
12830 * cris-tdep.c (cris_supply_gregset): Change signature to match
12831 what struct regset expects.
12832 (cris_regset): New struct.
12833 (fetch_core_registers): Remove.
12834 (cris_iterate_over_regset_sections): New function.
12835 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12836 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12837
12838 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12839
12840 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12841 registers.
12842
12843 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12844
12845 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12846
12847 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12848
12849 * configure: Re-generate.
12850
12851 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12852
12853 * configure: Re-generate.
12854
12855 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * acinclude: Update warning.m4 path.
12858 * warning.m4: Move to gdbsupport.
12859
12860 2020-02-11 Tom Tromey <tromey@adacore.com>
12861
12862 * remote.c (remote_console_output): Update.
12863 * printcmd.c (printf_command): Update.
12864 * event-loop.c (gdb_wait_for_event): Update.
12865 * linux-nat.c (sigchld_handler): Update.
12866 * remote-sim.c (gdb_os_write_stdout): Update.
12867 (gdb_os_flush_stdout): Update.
12868 (gdb_os_flush_stderr): Update.
12869 (gdb_os_write_stderr): Update.
12870 * exceptions.c (print_exception): Update.
12871 * remote-fileio.c (remote_fileio_func_read): Update.
12872 (remote_fileio_func_write): Update.
12873 * tui/tui.c (tui_enable): Update.
12874 * tui/tui-interp.c (tui_interp::init): Update.
12875 * utils.c (init_page_info): Update.
12876 (putchar_unfiltered, fputc_unfiltered): Update.
12877 (gdb_flush): Update.
12878 (emit_style_escape): Update.
12879 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12880 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12881 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12882 (stderr_file::write): Update.
12883 (stderr_file::puts): Update.
12884 * ui-file.h (ui_file_isatty, ui_file_write)
12885 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12886 (ui_file_puts): Don't declare.
12887
12888 2020-02-10 Tom de Vries <tdevries@suse.de>
12889
12890 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12891 sentinel to char *.
12892
12893 2020-02-09 Tom de Vries <tdevries@suse.de>
12894
12895 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12896 filename if it matches "<artificial>".
12897
12898 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12899
12900 * windows-tdep.c (struct enum_value_name): New struct.
12901 (create_enum): New function.
12902 (windows_get_siginfo_type): Create and use enum types.
12903
12904 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12905
12906 * NEWS: Mention $_siginfo support for Windows.
12907 * windows-nat.c (handle_exception): Set siginfo_er.
12908 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12909 (windows_xfer_siginfo): New function.
12910 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12911 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12912 (init_windows_gdbarch_data): New function.
12913 (get_windows_gdbarch_data): New function.
12914 (windows_get_siginfo_type): New function.
12915 (windows_init_abi): Register windows_get_siginfo_type.
12916 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12917
12918 2020-02-08 Tom Tromey <tom@tromey.com>
12919
12920 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12921 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12922 <keep>: Declare method.
12923 <m_keep>: Remove member.
12924 <~cutu_reader>: Remove.
12925 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12926 (cutu_reader::cutu_reader): Update.
12927 (cutu_reader::keep): Rename from ~cutu_reader.
12928 (process_psymtab_comp_unit, build_type_psymtabs_1)
12929 (process_skeletonless_type_unit, load_partial_comp_unit)
12930 (load_full_comp_unit, dwarf2_read_addr_index)
12931 (read_signatured_type): Update.
12932
12933 2020-02-08 Tom Tromey <tom@tromey.com>
12934
12935 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12936 "want_partial_unit" parameter.
12937 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12938 Inline check for DW_TAG_partial_unit.
12939 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12940
12941 2020-02-08 Tom Tromey <tom@tromey.com>
12942
12943 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12944 read.c.
12945 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12946 read.c.
12947
12948 2020-02-08 Tom Tromey <tom@tromey.com>
12949
12950 * dwarf2/read.c (read_address): Move to comp-unit.c.
12951 (dwarf2_rnglists_process, dwarf2_ranges_process)
12952 (read_attribute_value, dwarf_decode_lines_1)
12953 (var_decode_location, decode_locdesc): Update.
12954 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12955 read.c. Remove "cu" parameter.
12956 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12957 method.
12958
12959 2020-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12962 (read_indirect_line_string): Update.
12963 * dwarf2/comp-unit.c (read_offset): Remove.
12964 (read_comp_unit_head): Update.
12965 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12966 method.
12967 (read_offset): Don't declare.
12968
12969 2020-02-08 Tom Tromey <tom@tromey.com>
12970
12971 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12972 * dwarf2/read.c (struct comp_unit_head): Move to
12973 dwarf2/comp-unit.h.
12974 (enum class rcuh_kind): Move to comp-unit.h.
12975 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12976 (read_comp_unit_head, error_check_comp_unit_head)
12977 (read_and_check_comp_unit_head): Move to comp-unit.c.
12978 (read_offset, dwarf_unit_type_name): Likewise.
12979 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12980 (cutu_reader::cutu_reader, read_call_site_scope)
12981 (find_partial_die, follow_die_offset): Update.
12982 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12983
12984 2020-02-08 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2/read.c (read_offset_1): Move to leb.c.
12987 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12988 (dwarf_decode_macro_bytes): Update.
12989 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12990 * dwarf2/leb.h (read_offset): Declare.
12991
12992 2020-02-08 Tom Tromey <tom@tromey.com>
12993
12994 * dwarf2/read.c (dwarf2_section_size): Remove.
12995 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12996 Update.
12997 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12998
12999 2020-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (read_initial_length): Move to leb.c.
13002 * dwarf2/leb.h (read_initial_length): Declare.
13003 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13004 handle_nonstd parameter.
13005 * dwarf2/frame.c (read_initial_length): Remove.
13006 (decode_frame_entry_1): Update.
13007
13008 2020-02-08 Tom Tromey <tom@tromey.com>
13009
13010 * dwarf2/loc.c (dwarf2_find_location_expression)
13011 (dwarf_evaluate_loc_desc::get_tls_address)
13012 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13013 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13014 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13015 (dwarf2_compile_property_to_c)
13016 (dwarf2_loc_desc_get_symbol_read_needs)
13017 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13018 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13019 (loclist_describe_location, loclist_tracepoint_var_ref)
13020 (loclist_generate_c_location): Update.
13021 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13022 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13023 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13024 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13025 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13026 (dwarf2_per_cu_data::addr_size)
13027 (dwarf2_per_cu_data::ref_addr_size)
13028 (dwarf2_per_cu_data::text_offset)
13029 (dwarf2_per_cu_data::addr_type): Now methods.
13030 (per_cu_header_read_in): Make per_cu "const".
13031 (dwarf2_version): Remove.
13032 (dwarf2_per_cu_data::int_type): Now a method.
13033 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13034 (set_die_type, read_array_type, read_subrange_index_type)
13035 (read_tag_string_type, read_subrange_type): Update.
13036 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13037 offset_size, ref_addr_size, text_offset, addr_type, version,
13038 objfile, int_type, addr_sized_int_type>: Declare methods.
13039
13040 2020-02-08 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13043 Move earlier.
13044
13045 2020-02-08 Tom Tromey <tom@tromey.com>
13046
13047 * dwarf2/read.h (dwarf_line_debug): Declare.
13048 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13049 * dwarf2/read.c: Move line_header code to new files.
13050 (dwarf_line_debug): No longer static.
13051 * dwarf2/line-header.c: New file.
13052 * dwarf2/line-header.h: New file.
13053
13054 2020-02-08 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/read.c (struct line_header) <file_full_name,
13057 file_file_name>: Return unique_xmalloc_ptr.
13058 (line_header::file_file_name): Update.
13059 (line_header::file_full_name): Update.
13060 (dw2_get_file_names_reader): Update.
13061 (macro_start_file): Update.
13062
13063 2020-02-08 Tom Tromey <tom@tromey.com>
13064
13065 * dwarf2/read.c (struct line_header) <file_full_name,
13066 file_file_name>: Declare methods.
13067 (dw2_get_file_names_reader): Update.
13068 (file_file_name): Now a method.
13069 (file_full_name): Likewise.
13070 (macro_start_file): Update.
13071
13072 2020-02-08 Tom Tromey <tom@tromey.com>
13073
13074 * dwarf2/read.c (dwarf_always_disassemble)
13075 (show_dwarf_always_disassemble): Move to loc.c.
13076 (_initialize_dwarf2_read): Move "always-disassemble" registration
13077 to loc.c.
13078 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13079 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13080 static.
13081 (show_dwarf_always_disassemble): Move from read.c.
13082 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13083
13084 2020-02-08 Tom Tromey <tom@tromey.com>
13085
13086 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13087 (create_quick_file_names_table): Return htab_up.
13088 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13089 Update.
13090 * dwarf2/read.h (struct dwarf2_per_objfile)
13091 <quick_file_names_table>: Now htab_up.
13092
13093 2020-02-08 Tom Tromey <tom@tromey.com>
13094
13095 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13096
13097 2020-02-08 Tom Tromey <tom@tromey.com>
13098
13099 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13100 Rewrite.
13101 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13102 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13103 (abbrev_table::abbrev_table): No longer inline.
13104 (ABBREV_HASH_SIZE): Remove.
13105 (abbrev_table::m_abbrevs): Now an htab_up.
13106
13107 2020-02-08 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13110 (cutu_reader): Update.
13111 (build_type_psymtabs_1): Update.
13112 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13113 (abbrev_table::alloc_abbrev): Update.
13114 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13115 (abbrev_table::read): New static method, renamed from
13116 abbrev_table_read_table.
13117 (abbrev_table::alloc_abbrev)
13118 (abbrev_table::add_abbrev): Now private.
13119 (abbrev_table::abbrev_table): Now private.
13120 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13121
13122 2020-02-08 Tom Tromey <tom@tromey.com>
13123
13124 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13125 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13126 htab_up.
13127
13128 2020-02-08 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13131 htab_up.
13132 (lookup_dwo_unit_in_dwp): Update.
13133 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13134 on obstack.
13135
13136 2020-02-08 Tom Tromey <tom@tromey.com>
13137
13138 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13139 obstack.
13140
13141 2020-02-08 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13144 line_header_hash.
13145 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13146 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13147 Change type to htab_up.
13148
13149 2020-02-08 Tom Tromey <tom@tromey.com>
13150
13151 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13152 htab_up. Don't allocate on obstack.
13153 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13154 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13155 Change type to htab_up.
13156
13157 2020-02-08 Tom Tromey <tom@tromey.com>
13158
13159 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13160 Change type to htab_up.
13161 * dwarf2/read.c (create_signatured_type_table_from_index)
13162 (create_signatured_type_table_from_debug_names)
13163 (create_all_type_units, add_type_unit)
13164 (lookup_dwo_signatured_type, lookup_signatured_type)
13165 (process_skeletonless_type_unit): Update.
13166 (create_debug_type_hash_table, create_debug_types_hash_table):
13167 Change type of types_htab.
13168 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13169 htab_up. Don't allocate on obstack.
13170 (create_cus_hash_table): Change type of cus_htab parameter.
13171 (struct dwo_file) <cus, tus>: Now htab_up.
13172 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13173 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13174 (queue_and_load_all_dwo_tus): Update.
13175 * dwarf2/index-write.c (write_gdbindex): Update.
13176 (write_debug_names): Update.
13177
13178 2020-02-08 Tom Tromey <tom@tromey.com>
13179
13180 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13181 dwarf2/read.c. Remove "next" member. Add constructor ntad
13182 destructor.
13183 (struct dwarf2_per_objfile) <queue>: New member.
13184 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13185 dwarf2/read.h.
13186 (dwarf2_queue, dwarf2_queue_tail): Remove.
13187 (class dwarf2_queue_guard): Add parameter to constructor. Use
13188 DISABLE_COPY_AND_ASSIGN.
13189 <m_per_objfile>: New member.
13190 <~dwarf2_queue_guard>: Rewrite.
13191 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13192 Update.
13193 (~dwarf2_queue_item): New.
13194
13195 2020-02-08 Tom Tromey <tom@tromey.com>
13196
13197 * dwarf2/read.c (struct die_info) <has_children>: New member.
13198 (dw2_get_file_names_reader): Remove has_children.
13199 (dw2_get_file_names): Update.
13200 (read_cutu_die_from_dwo): Remove has_children.
13201 (cutu_reader::init_tu_and_read_dwo_dies)
13202 (cutu_reader::cutu_reader): Update.
13203 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13204 Remove has_children.
13205 (build_type_psymtabs_1, process_skeletonless_type_unit)
13206 (load_partial_comp_unit, load_full_comp_unit): Update.
13207 (create_dwo_cu_reader): Remove has_children.
13208 (create_cus_hash_table, read_die_and_children): Update.
13209 (read_full_die_1,read_full_die): Remove has_children.
13210 (read_signatured_type): Update.
13211 (class cutu_reader) <has_children>: Remove.
13212
13213 2020-02-08 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2/expr.c: Rename from dwarf2expr.c.
13216 * dwarf2/expr.h: Rename from dwarf2expr.h.
13217 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13218 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13219 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13220 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13221 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13222 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13223 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13224 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13225 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13226 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13227 * dwarf2/loc.c: Rename from dwarf2loc.c.
13228 * dwarf2/loc.h: Rename from dwarf2loc.h.
13229 * dwarf2/read.c: Rename from dwarf2read.c.
13230 * dwarf2/read.h: Rename from dwarf2read.h.
13231 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13232 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13233 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13234 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13235 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13236 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13237 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13238 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13239 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13240 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13241 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13242 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13243 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13244 Update.
13245 * Makefile.in (COMMON_SFILES): Update.
13246 (HFILES_NO_SRCDIR): Update.
13247
13248 2020-02-08 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13251 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13252
13253 2020-02-08 Tom Tromey <tom@tromey.com>
13254
13255 * dwarf2read.h (struct die_info): Don't declare.
13256
13257 2020-02-08 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2read.h (die_info_ptr): Remove typedef.
13260
13261 2020-02-08 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2read.c (read_call_site_scope)
13264 (handle_data_member_location, dwarf2_add_member_fn)
13265 (mark_common_block_symbol_computed, read_common_block)
13266 (attr_to_dynamic_prop, partial_die_info::read)
13267 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13268 (dwarf2_symbol_mark_computed, set_die_type): Update.
13269 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13270 method.
13271 (attr_form_is_block): Don't declare.
13272 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13273
13274 2020-02-08 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2read.c (dwarf2_find_base_address, )
13277 (read_call_site_scope, rust_containing_type)
13278 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13279 (handle_data_member_location, dwarf2_add_member_fn)
13280 (get_alignment, read_structure_type, process_structure_scope)
13281 (mark_common_block_symbol_computed, read_common_block)
13282 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13283 (partial_die_info::read, read_attribute_value, new_symbol)
13284 (lookup_die_type, dwarf2_get_ref_die_offset)
13285 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13286 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13287 (dwarf2_symbol_mark_computed): Update.
13288 * dwarf2/attribute.h (struct attribute) <value_as_address,
13289 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13290 methods.
13291 (value_as_address, attr_form_is_section_offset)
13292 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13293 * dwarf2/attribute.c (attribute::value_as_address)
13294 (attribute::form_is_section_offset, attribute::form_is_constant)
13295 (attribute::form_is_ref): Now methods.
13296
13297 2020-02-08 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2read.c (struct attribute, DW_STRING)
13300 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13301 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13302 (attr_form_is_block, attr_form_is_section_offset)
13303 (attr_form_is_constant, attr_form_is_ref): Move.
13304 * dwarf2/attribute.h: New file.
13305 * dwarf2/attribute.c: New file, from dwarf2read.c.
13306 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13307
13308 2020-02-08 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13311 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13312 Move.
13313 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13314 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13315 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13316 abbrev.c.
13317 * dwarf2/abbrev.h: New file.
13318 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13319 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13320
13321 2020-02-08 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13324 (dwarf2_section_size, dwarf2_get_section_info)
13325 (create_signatured_type_table_from_debug_names)
13326 (create_addrmap_from_aranges, read_debug_names_from_section)
13327 (get_gdb_index_contents_from_section, read_comp_unit_head)
13328 (error_check_comp_unit_head, read_abbrev_offset)
13329 (create_debug_type_hash_table, init_cu_die_reader)
13330 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13331 (read_comp_units_from_section, create_cus_hash_table)
13332 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13333 (create_dwp_v2_section, dwarf2_rnglists_process)
13334 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13335 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13336 (read_indirect_string_from_dwz, read_addr_index_1)
13337 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13338 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13339 (fill_in_loclist_baton): Update.
13340 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13341 get_containing_section, get_bfd_owner, get_bfd_section,
13342 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13343 (dwarf2_read_section, get_section_name, get_section_file_name)
13344 (get_containing_section, get_section_bfd_owner)
13345 (get_section_bfd_section, get_section_name, get_section_file_name)
13346 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13347 declare.
13348 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13349 (dwarf2_section_info::get_bfd_owner)
13350 (dwarf2_section_info::get_bfd_section)
13351 (dwarf2_section_info::get_name)
13352 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13353 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13354 (dwarf2_section_info::read): Now methods.
13355 * dwarf-index-write.c (class debug_names): Update.
13356
13357 2020-02-08 Tom Tromey <tom@tromey.com>
13358
13359 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13360 Move to dwarf2/section.h.
13361 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13362 (get_section_bfd_section, get_section_name)
13363 (get_section_file_name, get_section_id, get_section_flags)
13364 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13365 dwarf2/section.c.
13366 * dwarf2/section.h: New file.
13367 * dwarf2/section.c: New file, from dwarf2read.c.
13368 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13369
13370 2020-02-08 Tom Tromey <tom@tromey.com>
13371
13372 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13373 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13374 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13375 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13376 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13377 * dwarf2/leb.h: New file, from dwarf2read.c.
13378 * dwarf2/leb.c: New file, from dwarf2read.c.
13379 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13380 Remove.
13381 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13382 (COMMON_SFILES): Add dwarf2/leb.c.
13383
13384 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13385
13386 GDB 9.1 released.
13387
13388 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13389
13390 PR gdb/25190:
13391 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13392 * gdb/remote.c (remote_console_output): Update.
13393 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13394 (ui_file_puts): ...this.
13395 * gdb/ui-file.h (ui_file_puts): Add declaration.
13396 * gdb/utils.c (emit_style_escape): Update.
13397 (flush_wrap_buffer): Update.
13398 (fputs_maybe_filtered): Update.
13399 (fputs_unfiltered): Add function.
13400
13401 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13402
13403 * gdb/event-loop.c (gdb_wait_for_event): Update.
13404 * gdb/printcmd.c (printf_command): Update.
13405 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13406 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13407 (gdb_os_flush_stderr): Update.
13408 * gdb/remote.c (remote_console_output): Update.
13409 * gdb/ui-file.c (gdb_flush): Rename to...
13410 (ui_file_flush): ...this.
13411 (stderr_file::write): Update.
13412 (stderr_file::puts): Update.
13413 * gdb/ui-file.h (gdb_flush): Rename to...
13414 (ui_file_flush): ...this.
13415 * gdb/utils.c (gdb_flush): Add function.
13416 * gdb/utils.h (gdb_flush): Add declaration.
13417
13418 2020-02-07 Tom Tromey <tromey@adacore.com>
13419
13420 PR breakpoints/24915:
13421 * source.c (find_and_open_source): Do not check basenames_may_differ.
13422
13423 2020-02-07 Tom Tromey <tom@tromey.com>
13424
13425 * README: Update gdbserver documentation.
13426 * gdbserver: Move to top level.
13427 * configure.tgt (build_gdbserver): Remove.
13428 * configure.ac: Remove --enable-gdbserver.
13429 * configure: Rebuild.
13430 * Makefile.in (distclean): Don't mention gdbserver.
13431
13432 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13433
13434 * source-cache.c (source_cache::ensure): Surround
13435 get_plain_source_lines with a try/catch.
13436 (source_cache::get_line_charpos): Get rid of try/catch
13437 and only check for the return value of "ensure".
13438 * tui/tui-source.c (tui_source_window::set_contents):
13439 Simplify "nlines" calculation.
13440
13441 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13442
13443 * MAINTAINERS (Write After Approval): Add myself.
13444
13445 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13446
13447 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13448 function call.
13449
13450 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13451
13452 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13453
13454 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13455
13456 * nat/riscv-linux-tdesc.h: New file.
13457 * nat/riscv-linux-tdesc.c: New file, taking code from...
13458 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13459 ... here.
13460 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13461 NATDEPFILES.
13462
13463 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13464
13465 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13466 we don't set the fake simulator ptid to the null_ptid.
13467
13468 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13469
13470 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13471 * gdbthread.h (class thread_info) <resumed>: Likewise.
13472 * infrun.c (resume_1): Likewise.
13473 (proceed): Likewise.
13474 (infrun_thread_stop_requested): Likewise.
13475 (stop_all_threads): Likewise.
13476 (handle_inferior_event): Likewise.
13477 (restart_threads): Likewise.
13478 (finish_step_over): Likewise.
13479 (keep_going_stepped_thread): Likewise.
13480 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13481 (linux_handle_extended_wait): Likewise.
13482 * record-btrace.c (get_thread_current_frame_id): Likewise.
13483 * record-full.c (record_full_wait_1): Likewise.
13484 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13485 * target.c (target_resume): Likewise.
13486 * thread.c (set_running_thread): Likewise.
13487
13488 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13489
13490 * f-valprint.c (f77_print_array_1): Changed datatype of index
13491 variable to LONGEST from int to enable it to contain bound
13492 values correctly.
13493
13494 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13495
13496 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13497 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13498 offsets according to FLEN determined.
13499 (riscv_linux_nat_target::read_description): Determine FLEN
13500 dynamically.
13501 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13502 according to FLEN determined.
13503 (riscv_linux_nat_target::store_registers): Likewise.
13504
13505 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13506
13507 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13508 when reg->group is empty and reggroup is not.
13509
13510 2020-01-31 Tom Tromey <tromey@adacore.com>
13511
13512 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13513 Call beneath target's mourn_inferior after unpushing.
13514
13515 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13516
13517 PR tui/9765
13518 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13519 have enough lines to fill the screen, still return the lowest
13520 address we found.
13521
13522 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13523
13524 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13525 '-', '<', and '>' commands.
13526
13527 2020-01-29 Pedro Alves <palves@redhat.com>
13528 Sergio Durigan Junior <sergiodj@redhat.com>
13529
13530 * infcmd.c (construct_inferior_arguments): Assert that
13531 'argc' is greater than 0.
13532
13533 2020-01-29 Luis Machado <luis.machado@linaro.org>
13534
13535 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13536 (BRK_INSN_MASK): Define to 0xd4200000.
13537 (aarch64_program_breakpoint_here_p): New function.
13538 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13539 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13540 breakpoint.c.
13541 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13542 breakpoint.h
13543 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13544 call gdbarch_program_breakpoint_here_p.
13545 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13546 default_program_breakpoint_here_p, changed return type to bool and
13547 simplified.
13548 * breakpoint.h (program_breakpoint_here): Moved prototype to
13549 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13550 return type to bool.
13551 * gdbarch.c: Regenerate.
13552 * gdbarch.h: Regenerate.
13553 * gdbarch.sh (program_breakpoint_here_p): New method.
13554 * infrun.c (handle_signal_stop): Call
13555 gdbarch_program_breakpoint_here_p.
13556
13557 2020-01-26 Tom Tromey <tom@tromey.com>
13558
13559 * ctfread.c (struct ctf_fp_info): Reindent.
13560 (_initialize_ctfread): Remove.
13561
13562 2020-01-26 Tom Tromey <tom@tromey.com>
13563
13564 * psymtab.c (partial_map_expand_apply)
13565 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13566 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13567 (psym_print_stats, psym_expand_symtabs_for_function)
13568 (psym_map_symbol_filenames, psym_map_matching_symbols)
13569 (psym_expand_symtabs_matching)
13570 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13571 (maintenance_check_psymtabs): Use new methods.
13572 * psympriv.h (struct partial_symtab) <readin_p,
13573 get_compunit_symtab>: New methods.
13574 <readin, compunit_symtab>: Remove members.
13575 (struct standard_psymtab): New.
13576 (struct legacy_psymtab): Derive from standard_psymtab.
13577 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13578 standard_psymtab.
13579 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13580
13581 2020-01-26 Tom Tromey <tom@tromey.com>
13582
13583 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13584 read_dependencies. Add assert.
13585 * psymtab.c (partial_symtab::read_dependencies): New method.
13586 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13587 method.
13588 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13589 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13590 read_dependencies.
13591 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13592 Add assert.
13593
13594 2020-01-26 Tom Tromey <tom@tromey.com>
13595
13596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13597 Call expand_psymtab.
13598 (xcoff_read_symtab): Call expand_psymtab.
13599 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13600 legacy_expand_psymtab.
13601 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13602 method.
13603 (struct legacy_psymtab) <expand_psymtab>: Implement.
13604 <legacy_expand_psymtab>: New member.
13605 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13606 (parse_partial_symbols): Set legacy_expand_psymtab.
13607 (psymtab_to_symtab_1): Change argument order. Call
13608 expand_psymtab.
13609 (new_psymtab): Set legacy_expand_psymtab.
13610 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13611 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13612 expand_psymtab.
13613 (dwarf2_psymtab::expand_psymtab): Rename from
13614 psymtab_to_symtab_1. Call expand_psymtab.
13615 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13616 (dbx_end_psymtab): Likewise.
13617 (dbx_psymtab_to_symtab_1): Change argument order. Call
13618 expand_psymtab.
13619 (dbx_read_symtab): Call expand_psymtab.
13620 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13621 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13622 (ctf_psymtab::read_symtab): Call expand_psymtab.
13623
13624 2020-01-26 Tom Tromey <tom@tromey.com>
13625
13626 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13627 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13628 messages.
13629 * mdebugread.c (mdebug_read_symtab): Remove prints.
13630 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13631 assert.
13632 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13633
13634 2020-01-26 Tom Tromey <tom@tromey.com>
13635
13636 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13637 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13638 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13639 legacy_symtab.
13640 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13641 * psymtab.c (psymtab_to_symtab): Call method.
13642 (dump_psymtab): Update.
13643 * psympriv.h (struct partial_symtab): Add virtual destructor.
13644 <read_symtab>: New method.
13645 (struct legacy_symtab): New.
13646 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13647 (struct pst_map) <pst>: Now a legacy_psymtab.
13648 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13649 (new_psymtab): Use legacy_psymtab.
13650 * dwarf2read.h (struct dwarf2_psymtab): New.
13651 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13652 * dwarf2read.c (dwarf2_create_include_psymtab)
13653 (dwarf2_build_include_psymtabs, create_type_unit_group)
13654 (create_partial_symtab, process_psymtab_comp_unit_reader)
13655 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13656 (set_partial_user): Use dwarf2_psymtab.
13657 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13658 (psymtab_to_symtab_1, process_full_comp_unit)
13659 (process_full_type_unit, dwarf2_ranges_read)
13660 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13661 (dwarf_decode_lines): Use dwarf2_psymtab.
13662 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13663 (add_address_entry_worker, write_one_signatured_type)
13664 (recursively_count_psymbols, recursively_write_psymbols)
13665 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13666 (write_debug_names): Likewise.
13667 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13668 <pst>: Now a legacy_psymtab.
13669 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13670 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13671 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13672 * ctfread.c (struct ctf_psymtab): New.
13673 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13674 ctf_psymtab.
13675 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13676 (create_partial_symtab): Return a ctf_psymtab.
13677 (scan_partial_symbols): Update.
13678
13679 2020-01-26 Tom Tromey <tom@tromey.com>
13680
13681 * xcoffread.c (xcoff_start_psymtab): Use new.
13682 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13683 renamed from start_psymtab_common.
13684 * psympriv.h (struct partial_symtab): Add new constructor.
13685 (start_psymtab_common): Don't declare.
13686 * mdebugread.c (parse_partial_symbols): Use new.
13687 * dwarf2read.c (create_partial_symtab): Use new.
13688 * dbxread.c (start_psymtab): Use new.
13689 * ctfread.c (create_partial_symtab): Use new.
13690
13691 2020-01-26 Tom Tromey <tom@tromey.com>
13692
13693 * xcoffread.c (xcoff_end_psymtab): Use new.
13694 * psymtab.c (start_psymtab_common): Use new.
13695 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13696 Update.
13697 * psympriv.h (struct partial_symtab): Add parameters to
13698 constructor. Don't inline.
13699 (allocate_psymtab): Don't declare.
13700 * mdebugread.c (new_psymtab): Use new.
13701 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13702 * dbxread.c (dbx_end_psymtab): Use new.
13703
13704 2020-01-26 Tom Tromey <tom@tromey.com>
13705
13706 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13707 allocate_psymtab. Update documentation.
13708 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13709 allocate_psymtab. Do not use new.
13710 (allocate_psymtab): Use new. Update.
13711
13712 2020-01-26 Tom Tromey <tom@tromey.com>
13713
13714 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13715 * psymtab.c (psym_print_stats): Update.
13716 * psympriv.h (struct partial_symtab) <readin,
13717 psymtabs_addrmap_supported, anonymous>: Now bool.
13718 * mdebugread.c (psymtab_to_symtab_1): Update.
13719 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13720 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13721 (process_full_comp_unit, process_full_type_unit): Update.
13722 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13723 * ctfread.c (psymtab_to_symtab): Update.
13724
13725 2020-01-26 Tom Tromey <tom@tromey.com>
13726
13727 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13728 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13729 * psymtab.c (psymtab_storage): Delete psymtabs.
13730 (psymtab_storage::allocate_psymtab): Use new.
13731 (psymtab_storage::discard_psymtab): Use delete.
13732 * psympriv.h (struct partial_symtab): Add constructor and
13733 initializers.
13734
13735 2020-01-26 Tom Tromey <tom@tromey.com>
13736
13737 * machoread.c: Do not include psympriv.h.
13738
13739 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13740
13741 * NEWS: Mention the new option and the set/show commands.
13742
13743 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13744
13745 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13746 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13747 (validate_exec_file): New variables, enums, functions.
13748 (exec_file_locate_attach, print_section_info): Style the filenames.
13749 (_initialize_exec): Install show_exec_file_mismatch_command and
13750 set_exec_file_mismatch_command.
13751 * gdbcore.h (validate_exec_file): Declare.
13752 * infcmd.c (attach_command): Call validate_exec_file.
13753 * remote.c ( remote_target::remote_add_inferior): Likewise.
13754
13755 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13756
13757 * frame.c (find_frame_sal): Move call to get_next_frame into more
13758 inner scope.
13759 * inline-frame.c (inilne_state) <inline_state>: Update argument
13760 types.
13761 (inilne_state) <skipped_symbol>: Rename to...
13762 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13763 (skip_inline_frames): Build vector of skipped symbols and use this
13764 to reate the inline_state.
13765 (inline_skipped_symbol): Add a comment and some assertions, fetch
13766 skipped symbol from the list.
13767
13768 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 * buildsym.c (lte_is_less_than): Delete.
13771 (buildsym_compunit::end_symtab_with_blockvector): Create local
13772 lambda function to sort line table entries, and use
13773 std::stable_sort instead of std::sort.
13774 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13775 markers when looking for a previous line.
13776
13777 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13778
13779 * dwarf2read.c (lnp_state_machine::record_line): Include
13780 end_sequence parameter in debug print out. Record the line if we
13781 are at an end_sequence marker even if it's not the start of a
13782 statement.
13783 * symmisc.c (maintenance_print_one_line_table): Print end of
13784 sequence markers with 'END' not '0'.
13785
13786 2020-01-24 Pedro Alves <palves@redhat.com>
13787
13788 PR gdb/25410
13789 * thread.c (scoped_restore_current_thread::restore): Use
13790 switch_to_inferior_no_thread.
13791 * exec.c: Include "progspace-and-thread.h".
13792 (add_target_sections, remove_target_sections):
13793 scoped_restore_current_pspace_and_thread instead of
13794 scoped_restore_current_thread.
13795 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13796 and aspace to the inferior before calling clone_program_space.
13797 Remove stale comment.
13798
13799 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13800
13801 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13802 (arm_netbsd_nat_target::fetch_registers): ...this.
13803 (arm_nbsd_nat_target::store_registers): Rename to...
13804 (arm_netbsd_nat_target::store_registers): ...this.
13805
13806 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13807
13808 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13809 register_t.
13810
13811 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13812
13813 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13814 Update comment.
13815 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13816 Likewise.
13817 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13818 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13819 the correct replacement (iterate_over_regset_sections).
13820 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13821 Update comment.
13822
13823 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13824
13825 PR gdb/23718
13826 * gdb/python/python.c (execute_gdb_command): Call
13827 async_enable_stdin in catch block.
13828
13829 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13830
13831 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13832 SWITCH_THRU_ALL_UIS.
13833
13834 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13835
13836 PR tui/9765
13837 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13838 comment, add extra parameter, and update to store previous symbol
13839 when appropriate.
13840 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13841 add extra parameter.
13842 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13843 remove unneeded parameter, add try/catch around gdb_print_insn,
13844 rewrite to add items to asm_lines vector.
13845 (tui_find_backward_disassembly_start_address): New function.
13846 (tui_find_disassembly_address): Updated throughout.
13847 (tui_disasm_window::set_contents): Update for changes to
13848 tui_disassemble.
13849 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13850 number of lines to scroll.
13851
13852 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13853
13854 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13855 (SECT_OFF_DATA): Likewise.
13856 (SECT_OFF_RODATA): Likewise.
13857 (SECT_OFF_TEXT): Likewise.
13858 (SECT_OFF_BSS): Likewise.
13859 (struct objfile) <text_section_offset, data_section_offset>: New
13860 methods.
13861 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13862 objfile::text_section_offset.
13863 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13864 * coffread.c (coff_symtab_read): Likewise.
13865 (enter_linenos): Likewise.
13866 (process_coff_symbol): Likewise.
13867 * ctfread.c (get_objfile_text_range): Likewise.
13868 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13869 Use objfile::data_section_offset.
13870 * dwarf2-frame.c (execute_cfa_program): Use
13871 objfile::text_section_offset.
13872 (dwarf2_frame_find_fde): Likewise.
13873 * dwarf2read.c (create_addrmap_from_index): Likewise.
13874 (create_addrmap_from_aranges): Likewise.
13875 (dw2_find_pc_sect_compunit_symtab): Likewise.
13876 (process_psymtab_comp_unit_reader): Likewise.
13877 (add_partial_symbol): Likewise.
13878 (add_partial_subprogram): Likewise.
13879 (process_full_comp_unit): Likewise.
13880 (read_file_scope): Likewise.
13881 (read_func_scope): Likewise.
13882 (read_lexical_block_scope): Likewise.
13883 (read_call_site_scope): Likewise.
13884 (dwarf2_rnglists_process): Likewise.
13885 (dwarf2_ranges_process): Likewise.
13886 (dwarf2_ranges_read): Likewise.
13887 (dwarf_decode_lines_1): Likewise.
13888 (new_symbol): Likewise.
13889 (dwarf2_fetch_die_loc_sect_off): Likewise.
13890 (dwarf2_per_cu_text_offset): Likewise.
13891 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13892 * hppa-tdep.c (read_unwind_info): Likewise.
13893 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13894 * psympriv.h (struct partial_symtab): Likewise.
13895 * psymtab.c (find_pc_sect_psymtab): Likewise.
13896 * solib-svr4.c (enable_break): Likewise.
13897 * stap-probe.c (relocate_address): Use
13898 objfile::data_section_offset.
13899 * xcoffread.c (enter_line_range): Use
13900 objfile::text_section_offset.
13901 (read_xcoff_symtab): Likewise.
13902
13903 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13904
13905 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13906 declaration to narrower scopes.
13907
13908 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13909
13910 * darwin-nat.h (struct darwin_exception_msg, enum
13911 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13912 Move up.
13913 (class darwin_nat_target) <wait_1, check_new_threads,
13914 decode_exception_message, decode_message, stop_inferior,
13915 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13916 * darwin-nat.c (darwin_check_new_threads): Rename to...
13917 (darwin_nat_target::check_new_threads): ... this.
13918 (darwin_suspend_inferior_it): Remove.
13919 (darwin_decode_exception_message): Rename to...
13920 (darwin_nat_target::decode_exception_message): ... this.
13921 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13922 (darwin_decode_message): Rename to...
13923 (darwin_nat_target::decode_message): ... this.
13924 (cancel_breakpoint): Rename to...
13925 (darwin_nat_target::cancel_breakpoint): ... this.
13926 (darwin_wait): Rename to...
13927 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13928 instead of iterate_over_inferiors.
13929 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13930 (darwin_stop_inferior): Rename to...
13931 (darwin_nat_target::stop_inferior): ... this.
13932 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13933 (darwin_init_thread_list): Rename to...
13934 (darwin_nat_target::init_thread_list): ... this.
13935 (darwin_ptrace_him): Rename to...
13936 (darwin_nat_target::ptrace_him): ... this.
13937 (darwin_nat_target::create_inferior): Pass lambda function to
13938 fork_inferior.
13939 (darwin_nat_target::detach): Call stop_inferior instead of
13940 darwin_stop_inferior.
13941 * fork-inferior.h (fork_inferior): Change init_trace_fun
13942 parameter to gdb::function_view.
13943 * fork-inferior.c (fork_inferior): Likewise.
13944
13945 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13946
13947 * i386-cygwin-tdep.c (core_process_module_section): Update.
13948 * windows-nat.c (struct lm_info_windows): Add text_offset.
13949 (windows_xfer_shared_libraries): Update.
13950 * windows-tdep.c (windows_xfer_shared_library):
13951 Add text_offset_cached argument.
13952 * windows-tdep.h (windows_xfer_shared_library): Update.
13953
13954 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13957
13958 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13959
13960 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13961 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13962 replace with range-based for.
13963 (gdbsim_interrupt_inferior): Remove.
13964 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13965 with a range-based for. Inline code from
13966 gdbsim_interrupt_inferior.
13967
13968 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13969
13970 * infrun.c (proceed): Fix indentation.
13971
13972 2020-01-21 Tom Tromey <tromey@adacore.com>
13973
13974 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13975 * python/python.c (python_extension_ops): Update.
13976 (gdbpy_colorize): New function.
13977 * python/lib/gdb/__init__.py (colorize): New function.
13978 * extension.h (ext_lang_colorize): Declare.
13979 * extension.c (ext_lang_colorize): New function.
13980 * extension-priv.h (struct extension_language_ops) <colorize>: New
13981 member.
13982 * cli/cli-style.c (_initialize_cli_style): Update help text.
13983
13984 2020-01-21 Luis Machado <luis.machado@linaro.org>
13985
13986 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13987 <cond>: Change type to bool.
13988 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13989 (aarch64_displaced_step_cb): Likewise.
13990 (aarch64_displaced_step_tb): Likewise.
13991
13992 2020-01-21 Luis Machado <luis.machado@linaro.org>
13993
13994 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13995 output.
13996
13997 2020-01-21 Luis Machado <luis.machado@linaro.org>
13998
13999 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14000 <pc_adjust>: Adjust the documentation.
14001 (aarch64_displaced_step_fixup): Check if PC really moved before
14002 adjusting it.
14003
14004 2020-01-19 Tom Tromey <tom@tromey.com>
14005
14006 * disasm.c (~gdb_disassembler): New destructor.
14007 (gdb_buffered_insn_length): Call disassemble_free_target.
14008 * disasm.h (class gdb_disassembler): Declare destructor. Use
14009 DISABLE_COPY_AND_ASSIGN.
14010
14011 2020-01-19 Tom Tromey <tom@tromey.com>
14012
14013 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14014 (die_reader_func_ftype): Remove.
14015 (cutu_reader): New class.
14016 (dw2_get_file_names_reader): Remove "data" parameter.
14017 (dw2_get_file_names): Use cutu_reader.
14018 (create_debug_type_hash_table): Update.
14019 (read_cutu_die_from_dwo): Update comment.
14020 (lookup_dwo_unit): Add dwo_name parameter.
14021 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14022 die_reader_func_ftype and data parameters.
14023 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14024 Remove die_reader_func_ftype and data parameters.
14025 (~cutu_reader): New; from init_cutu_and_read_dies.
14026 (cutu_reader::cutu_reader): Rename from
14027 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14028 and data parameters.
14029 (init_cutu_and_read_dies_simple): Remove.
14030 (struct process_psymtab_comp_unit_data): Remove.
14031 (process_psymtab_comp_unit_reader): Remove data parameter; add
14032 want_partial_unit and pretend_language parameters.
14033 (process_psymtab_comp_unit): Use cutu_reader.
14034 (build_type_psymtabs_reader): Remove data parameter.
14035 (build_type_psymtabs_1): Use cutu_reader.
14036 (process_skeletonless_type_unit): Likewise.
14037 (load_partial_comp_unit_reader): Remove.
14038 (load_partial_comp_unit): Use cutu_reader.
14039 (load_full_comp_unit_reader): Remove.
14040 (load_full_comp_unit): Use cutu_reader.
14041 (struct create_dwo_cu_data): Remove.
14042 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14043 dwo_unit parameters.
14044 (create_cus_hash_table): Use cutu_reader.
14045 (struct dwarf2_read_addr_index_data): Remove.
14046 (dwarf2_read_addr_index_reader): Remove.
14047 (dwarf2_read_addr_index): Use cutu_reader.
14048 (read_signatured_type_reader): Remove.
14049 (read_signatured_type): Use cutu_reader.
14050
14051 2020-01-19 Tom Tromey <tom@tromey.com>
14052
14053 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14054 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14055 (tui_wrefresh): Declare.
14056 * tui/tui-wingeneral.c (suppress_output): New global.
14057 (tui_suppress_output, ~tui_suppress_output): New constructor and
14058 destructor.
14059 (tui_wrefresh): New function.
14060 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14061 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14062 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14063 method.
14064 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14065 tui_wrefresh.
14066 (tui_data_window::no_refresh): New method.
14067 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14068 (tui_reg_command): Use tui_suppress_output
14069 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14070 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14071 method.
14072 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14073
14074 2020-01-19 Tom Tromey <tom@tromey.com>
14075
14076 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14077 Handle case where symtab is null.
14078
14079 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14080
14081 * linux-fork.c (one_fork_p): Simplify.
14082
14083 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14084
14085 * top.c (struct qt_args): Remove.
14086 (kill_or_detach): Change return type to void, replace `void *`
14087 parameter with a proper one.
14088 (print_inferior_quit_action): Likewise.
14089 (quit_confirm): Use range-based for loop to iterate over inferiors.
14090 (quit_force): Likewise.
14091
14092 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14093
14094 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14095 `void *` parameter with proper parameters.
14096 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14097 (print_one_inferior): Change return type to void, replace `void *`
14098 parameter with proper parameters.
14099 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14100 inferiors.
14101 (get_other_inferior): Remove.
14102 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14103 inferiors.
14104
14105 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14106
14107 * mi/mi-interp.c (report_initial_inferior): Remove.
14108 (mi_interp::init): Use range-based for to iterate over inferiors.
14109
14110 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * python/py-inferior.c (build_inferior_list): Remove.
14113 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14114
14115 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14116
14117 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14118 (btrace_stitch_trace): Likewise.
14119 * charset.c (intermediate_encoding): Likewise (vaild).
14120 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14121 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14122 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14123
14124 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14125
14126 * windows-tdep.c (windows_get_tlb_type):
14127 Add rtl_user_process_parameters type.
14128
14129 2020-01-16 Pedro Alves <palves@redhat.com>
14130 Norbert Lange <nolange79@gmail.com>
14131
14132 PR build/24805
14133 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14134 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14135 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14136 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14137 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14138 (ps_plog): Redeclare exported functions with default visibility.
14139
14140 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14141
14142 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14143 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14144
14145 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14146
14147 * infcmd.c (post_create_inferior): Use get_thread_regcache
14148 instead of get_current_regcache.
14149
14150 2020-01-14 Tom Tromey <tom@tromey.com>
14151
14152 PR symtab/12535:
14153 * python/python.c (gdbpy_decode_line): Treat empty string the same
14154 as no argument.
14155
14156 2020-01-14 Tom Tromey <tom@tromey.com>
14157
14158 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14159
14160 2020-01-14 Tom Tromey <tom@tromey.com>
14161
14162 * nat/linux-btrace.c: Don't include <config.h>.
14163 * nat/linux-ptrace.c: Don't include <config.h>.
14164 * nat/x86-linux-dregs.c: Don't include <config.h>.
14165
14166 2020-01-14 Tom Tromey <tom@tromey.com>
14167
14168 * configure: Rebuild.
14169 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14170
14171 2020-01-14 Tom Tromey <tom@tromey.com>
14172
14173 * nat/x86-linux-dregs.c: Include configh.h.
14174 * nat/linux-ptrace.c: Include configh.h.
14175 * nat/linux-btrace.c: Include configh.h.
14176 * defs.h: Include config.h, bfd.h.
14177 * configure.ac: Don't source common.host.
14178 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14179 * configure: Rebuild.
14180 * acinclude.m4: Update path.
14181 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14182 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14183 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14184 (CLIBS): Add LIBSUPPORT.
14185 (CDEPS): Likewise.
14186 (COMMON_SFILES): Remove gdbsupport files.
14187 (HFILES_NO_SRCDIR): Likewise.
14188 (stamp-version): Update path to create-version.sh.
14189 (ALLDEPFILES): Remove gdbsupport files.
14190
14191 2020-01-14 Tom Tromey <tom@tromey.com>
14192
14193 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14194 USE_WIN32API when needed.
14195 * configure.ac (USE_WIN32API): Don't define.
14196 (WIN32LIBS): Use WIN32APILIBS.
14197 * configure: Rebuild.
14198
14199 2020-01-14 Tom Tromey <tom@tromey.com>
14200
14201 * configure: Rebuild.
14202 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14203
14204 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14205
14206 * skip.c (skip_function_command): Make skip w/o arguments use the
14207 name of the inlined function if pc is inside any inlined function.
14208
14209 2020-01-14 Luis Machado <luis.machado@linaro.org>
14210
14211 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14212 * infrun.c (resume_1): Likewise.
14213 (handle_inferior_event): Remove stale comment.
14214 * linux-nat.c (linux_nat_target::resume): Update comments.
14215 (save_stop_reason): Likewise.
14216 (linux_nat_filter_event): Likewise.
14217 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14218
14219 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * elfread.c (record_minimal_symbol): Set section index to 0 for
14222 non-allocatable sections.
14223
14224
14225 2020-01-13 Ali Tamur <tamur@google.com>
14226
14227 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14228 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14229 to gdb::optional. Update comments.
14230 (dwo_file): Update comments.
14231 (read_attribute): Update API to take an additional out parameter,
14232 need_reprocess. This is used to mark attributes that need other
14233 attributes (e.g. str_offsets_base) for correct computation which may not
14234 have been read yet.
14235 (read_attribute_reprocess): New function declaration.
14236 (read_addr_index): Likewise.
14237 (read_dwo_str_index): Likewise.
14238 (read_stub_str_index): Likewise.
14239 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14240 (lookup_addr_base): New function definition.
14241 (lookup_ranges_base): Likewise.
14242 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14243 lookup_ranges_base.
14244 (init_cutu_and_read_dies): Update comments.
14245 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14246 unit. This is used to inherit parent's str_offsets_base and addr_base.
14247 Update comments.
14248 (init_cutu_and_read_dies_simple): Reflect API changes.
14249 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14250 (create_cus_hash_table): Change API to take parent compile unit.
14251 Reflect API changes.
14252 (open_and_init_dwo_file): Reflect API changes.
14253 (dwarf2_get_pc_bounds): Update comments.
14254 (dwarf2_record_block_ranges): Likewise.
14255 (read_full_die_1): Change implementation to reprocess attributes that
14256 need str_offsets_base and addr_base.
14257 (partial_die_info::read): Likewise.
14258 (read_attribute_reprocess): New function definition.
14259 (read_attribute_value): Change API to take an additional out parameter,
14260 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14261 when a non-dwo compile unit has index based attributes.
14262 (read_attribute): Reflect API changes.
14263 (read_addr_index_1): Reflect API changes. Update comments.
14264 (dwarf2_read_addr_index_data): Reflect API changes.
14265 (dwarf2_read_addr_index): Likewise.
14266 (read_str_index): Change API and implementation. This becomes a helper
14267 to be used by the new string index related methods. Update error
14268 message and comments.
14269 (read_dwo_str_index): New function definition.
14270 (read_stub_str_index): Likewise.
14271 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14272 * symfile.h (dwarf2_debug_sections): Likewise.
14273 * xcoffread.c (dwarf2_debug_sections): Likewise.
14274
14275 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14276
14277 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14278 core_reg_sect type to gdb_byte *.
14279 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14280 * cris-tdep.c (fetch_core_registers): Likewise.
14281 * corelow.c (core_target::get_core_register_section): Change
14282 type of `contents` to gdb::byte_vector.
14283
14284 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * tui/tui-wingeneral.c (box_win): Position the title in the center
14287 of the border.
14288
14289 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14290
14291 * corelow.c (core_target::get_core_register_section): Use
14292 std::vector instead of alloca.
14293
14294 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14295
14296 * warning.m4: Add -Wmissing-declarations to build_warnings.
14297 * configure: Re-generate.
14298
14299 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14300
14301 * python/python.c (init__gdb_module): Add declaration.
14302
14303 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14304
14305 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14306 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14307 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14308 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14309 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14310 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14311 * ada-exp.y (_initialize_ada_exp): Add declaration.
14312 * ada-lang.c (_initialize_ada_language): Add declaration.
14313 * ada-tasks.c (_initialize_tasks): Add declaration.
14314 * agent.c (_initialize_agent): Add declaration.
14315 * aix-thread.c (_initialize_aix_thread): Add declaration.
14316 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14317 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14318 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14319 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14320 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14321 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14322 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14323 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14324 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14325 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14326 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14327 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14328 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14329 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14330 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14331 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14332 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14333 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14334 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14335 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14336 * annotate.c (_initialize_annotate): Add declaration.
14337 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14338 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14339 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14340 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14341 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14342 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14343 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14344 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14345 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14346 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14347 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14348 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14349 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14350 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14351 * auto-load.c (_initialize_auto_load): Add declaration.
14352 * auxv.c (_initialize_auxv): Add declaration.
14353 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14354 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14355 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14356 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14357 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14358 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14359 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14360 * breakpoint.c (_initialize_breakpoint): Add declaration.
14361 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14362 * btrace.c (_initialize_btrace): Add declaration.
14363 * charset.c (_initialize_charset): Add declaration.
14364 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14365 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14366 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14367 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14368 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14369 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14370 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14371 * coffread.c (_initialize_coffread): Add declaration.
14372 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14373 * compile/compile.c (_initialize_compile): Add declaration.
14374 * complaints.c (_initialize_complaints): Add declaration.
14375 * completer.c (_initialize_completer): Add declaration.
14376 * copying.c (_initialize_copying): Add declaration.
14377 * corefile.c (_initialize_core): Add declaration.
14378 * corelow.c (_initialize_corelow): Add declaration.
14379 * cp-abi.c (_initialize_cp_abi): Add declaration.
14380 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14381 * cp-support.c (_initialize_cp_support): Add declaration.
14382 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14383 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14384 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14385 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14386 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14387 * ctfread.c (_initialize_ctfread): Add declaration.
14388 * d-lang.c (_initialize_d_language): Add declaration.
14389 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14390 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14391 * dbxread.c (_initialize_dbxread): Add declaration.
14392 * dcache.c (_initialize_dcache): Add declaration.
14393 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14394 * disasm.c (_initialize_disasm): Add declaration.
14395 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14396 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14397 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14398 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14399 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14400 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14401 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14402 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14403 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14404 * elfread.c (_initialize_elfread): Add declaration.
14405 * exec.c (_initialize_exec): Add declaration.
14406 * extension.c (_initialize_extension): Add declaration.
14407 * f-lang.c (_initialize_f_language): Add declaration.
14408 * f-valprint.c (_initialize_f_valprint): Add declaration.
14409 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14410 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14411 * filesystem.c (_initialize_filesystem): Add declaration.
14412 * findcmd.c (_initialize_mem_search): Add declaration.
14413 * findvar.c (_initialize_findvar): Add declaration.
14414 * fork-child.c (_initialize_fork_child): Add declaration.
14415 * frame-base.c (_initialize_frame_base): Add declaration.
14416 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14417 * frame.c (_initialize_frame): Add declaration.
14418 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14419 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14420 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14421 * gcore.c (_initialize_gcore): Add declaration.
14422 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14423 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14424 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14425 * gdbarch.c (_initialize_gdbarch): Add declaration.
14426 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14427 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14428 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14429 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14430 * go-lang.c (_initialize_go_language): Add declaration.
14431 * go32-nat.c (_initialize_go32_nat): Add declaration.
14432 * guile/guile.c (_initialize_guile): Add declaration.
14433 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14434 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14435 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14436 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14437 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14438 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14439 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14440 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14441 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14442 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14443 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14444 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14445 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14446 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14447 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14448 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14449 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14450 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14451 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14452 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14453 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14454 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14455 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14456 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14457 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14458 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14459 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14460 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14461 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14462 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14463 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14464 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14465 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14466 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14467 * infcall.c (_initialize_infcall): Add declaration.
14468 * infcmd.c (_initialize_infcmd): Add declaration.
14469 * inflow.c (_initialize_inflow): Add declaration.
14470 * infrun.c (_initialize_infrun): Add declaration.
14471 * interps.c (_initialize_interpreter): Add declaration.
14472 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14473 * jit.c (_initialize_jit): Add declaration.
14474 * language.c (_initialize_language): Add declaration.
14475 * linux-fork.c (_initialize_linux_fork): Add declaration.
14476 * linux-nat.c (_initialize_linux_nat): Add declaration.
14477 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14478 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14479 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14480 * m2-lang.c (_initialize_m2_language): Add declaration.
14481 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14482 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14483 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14484 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14485 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14486 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14487 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14488 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14489 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14490 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14491 * machoread.c (_initialize_machoread): Add declaration.
14492 * macrocmd.c (_initialize_macrocmd): Add declaration.
14493 * macroscope.c (_initialize_macroscope): Add declaration.
14494 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14495 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14496 * maint.c (_initialize_maint_cmds): Add declaration.
14497 * mdebugread.c (_initialize_mdebugread): Add declaration.
14498 * memattr.c (_initialize_mem): Add declaration.
14499 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14500 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14501 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14502 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14503 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14504 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14505 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14506 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14507 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14508 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14509 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14510 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14511 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14512 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14513 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14514 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14515 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14516 * mipsread.c (_initialize_mipsread): Add declaration.
14517 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14518 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14519 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14520 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14521 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14522 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14523 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14524 * nto-procfs.c (_initialize_procfs): Add declaration.
14525 * objc-lang.c (_initialize_objc_language): Add declaration.
14526 * observable.c (_initialize_observer): Add declaration.
14527 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14528 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14529 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14530 * osabi.c (_initialize_gdb_osabi): Add declaration.
14531 * osdata.c (_initialize_osdata): Add declaration.
14532 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14533 * parse.c (_initialize_parse): Add declaration.
14534 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14535 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14536 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14537 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14538 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14539 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14540 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14541 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14542 * printcmd.c (_initialize_printcmd): Add declaration.
14543 * probe.c (_initialize_probe): Add declaration.
14544 * proc-api.c (_initialize_proc_api): Add declaration.
14545 * proc-events.c (_initialize_proc_events): Add declaration.
14546 * proc-service.c (_initialize_proc_service): Add declaration.
14547 * procfs.c (_initialize_procfs): Add declaration.
14548 * producer.c (_initialize_producer): Add declaration.
14549 * psymtab.c (_initialize_psymtab): Add declaration.
14550 * python/python.c (_initialize_python): Add declaration.
14551 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14552 * record-btrace.c (_initialize_record_btrace): Add declaration.
14553 * record-full.c (_initialize_record_full): Add declaration.
14554 * record.c (_initialize_record): Add declaration.
14555 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14556 * regcache.c (_initialize_regcache): Add declaration.
14557 * reggroups.c (_initialize_reggroup): Add declaration.
14558 * remote-notif.c (_initialize_notif): Add declaration.
14559 * remote-sim.c (_initialize_remote_sim): Add declaration.
14560 * remote.c (_initialize_remote): Add declaration.
14561 * reverse.c (_initialize_reverse): Add declaration.
14562 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14563 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14564 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14565 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14566 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14567 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14568 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14569 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14570 Add declaration.
14571 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14572 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14573 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14574 * rust-exp.y (_initialize_rust_exp): Add declaration.
14575 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14576 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14577 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14578 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14579 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14580 * score-tdep.c (_initialize_score_tdep): Add declaration.
14581 * ser-go32.c (_initialize_ser_dos): Add declaration.
14582 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14583 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14584 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14585 * ser-uds.c (_initialize_ser_socket): Add declaration.
14586 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14587 * serial.c (_initialize_serial): Add declaration.
14588 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14589 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14590 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14591 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14592 * skip.c (_initialize_step_skip): Add declaration.
14593 * sol-thread.c (_initialize_sol_thread): Add declaration.
14594 * solib-aix.c (_initialize_solib_aix): Add declaration.
14595 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14596 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14597 * solib-frv.c (_initialize_frv_solib): Add declaration.
14598 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14599 * solib-target.c (_initialize_solib_target): Add declaration.
14600 * solib.c (_initialize_solib): Add declaration.
14601 * source-cache.c (_initialize_source_cache): Add declaration.
14602 * source.c (_initialize_source): Add declaration.
14603 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14604 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14605 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14606 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14607 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14608 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14609 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14610 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14611 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14612 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14613 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14614 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14615 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14616 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14617 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14618 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14619 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14620 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14621 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14622 * stabsread.c (_initialize_stabsread): Add declaration.
14623 * stack.c (_initialize_stack): Add declaration.
14624 * stap-probe.c (_initialize_stap_probe): Add declaration.
14625 * std-regs.c (_initialize_frame_reg): Add declaration.
14626 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14627 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14628 * symfile.c (_initialize_symfile): Add declaration.
14629 * symmisc.c (_initialize_symmisc): Add declaration.
14630 * symtab.c (_initialize_symtab): Add declaration.
14631 * target.c (_initialize_target): Add declaration.
14632 * target-connection.c (_initialize_target_connection): Add
14633 declaration.
14634 * target-dcache.c (_initialize_target_dcache): Add declaration.
14635 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14636 * thread.c (_initialize_thread): Add declaration.
14637 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14638 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14639 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14640 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14641 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14642 * tracectf.c (_initialize_ctf): Add declaration.
14643 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14644 * tracefile.c (_initialize_tracefile): Add declaration.
14645 * tracepoint.c (_initialize_tracepoint): Add declaration.
14646 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14647 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14648 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14649 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14650 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14651 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14652 * tui/tui.c (_initialize_tui): Add declaration.
14653 * typeprint.c (_initialize_typeprint): Add declaration.
14654 * ui-style.c (_initialize_ui_style): Add declaration.
14655 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14656 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14657 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14658 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14659 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14660 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14661 * unittests/filtered_iterator-selftests.c
14662 (_initialize_filtered_iterator_selftests): Add declaration.
14663 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14664 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14665 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14666 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14667 * unittests/main-thread-selftests.c
14668 (_initialize_main_thread_selftests): Add declaration.
14669 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14670 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14671 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14672 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14673 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14674 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14675 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14676 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14677 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14678 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14679 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14680 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14681 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14682 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14683 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14684 declaration.
14685 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14686 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14687 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14688 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14689 * user-regs.c (_initialize_user_regs): Add declaration.
14690 * utils.c (_initialize_utils): Add declaration.
14691 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14692 * valops.c (_initialize_valops): Add declaration.
14693 * valprint.c (_initialize_valprint): Add declaration.
14694 * value.c (_initialize_values): Add declaration.
14695 * varobj.c (_initialize_varobj): Add declaration.
14696 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14697 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14698 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14699 * windows-nat.c (_initialize_windows_nat): Add declaration.
14700 (_initialize_check_for_gdb_ini): Add declaration.
14701 (_initialize_loadable): Add declaration.
14702 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14703 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14704 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14705 * xcoffread.c (_initialize_xcoffread): Add declaration.
14706 * xml-support.c (_initialize_xml_support): Add declaration.
14707 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14708 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14709 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14710 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14711
14712 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14713
14714 * regformats/regdat.sh: Generate declaration for init function.
14715
14716 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14717
14718 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14719 up.
14720 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14721 close_one_inferior>: New methods.
14722 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14723 pass down target to find_inferior_pid.
14724 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14725 Pass down target to find_inferior_ptid.
14726 (gdbsim_target::create_inferior): Pass down target to
14727 add_thread_silent.
14728 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14729 target down to find_inferior_ptid and switch_to_thread.
14730 (gdbsim_target::close): Update to call close_one_inferior.
14731 (struct resume_data): Remove.
14732 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14733 directly, rather than through a void pointer.
14734 (gdbsim_target::resume): Update to call resume_one_inferior.
14735
14736 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14737
14738 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14739
14740 2020-01-12 Pedro Alves <palves@redhat.com>
14741
14742 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14743 directly for the current inferior instead of
14744 discard_all_inferiors.
14745 (discard_all_inferiors): Delete.
14746
14747 2020-01-11 Tom Tromey <tom@tromey.com>
14748
14749 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14750 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14751 deprecated_safe_get_selected_frame.
14752
14753 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14754
14755 * inferior.c (print_inferior): Switch inferior before printing it.
14756
14757 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14758 Pedro Alves <palves@redhat.com>
14759
14760 * progspace-and-thread.c (switch_to_program_space_and_thread):
14761 Assert there's an inferior for PSPACE. Use
14762 switch_to_inferior_no_thread to switch the inferior too.
14763 * progspace.c (program_space::~program_space): Call
14764 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14765 (program_space::free_all_objfiles): Don't call clear_symtab_users
14766 here.
14767 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14768
14769 2020-01-10 Pedro Alves <palves@redhat.com>
14770
14771 * NEWS: Mention multi-target debugging, "info connections", and
14772 "add-inferior -no-connection".
14773
14774 2020-01-10 Pedro Alves <palves@redhat.com>
14775
14776 * infrun.c: Include "target-connection.h".
14777 (check_multi_target_resumption): New.
14778 (proceed): Call it.
14779 * target-connection.c (make_target_connection_string): Make
14780 extern.
14781 * target-connection.h (make_target_connection_string): Declare.
14782
14783 2020-01-10 Pedro Alves <palves@redhat.com>
14784
14785 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14786 * inferior.c (uiout_field_connection): New function.
14787 (print_inferior): Add new "connection-id" column.
14788 (add_inferior_command): Show connection number/string of added
14789 inferior.
14790 * process-stratum-target.h
14791 (process_stratum_target::connection_string): New virtual method.
14792 (process_stratum_target::connection_number): New field.
14793 * remote.c (remote_target::connection_string): New override.
14794 * target-connection.c: New file.
14795 * target-connection.h: New file.
14796 * target.c (decref_target): Remove process_stratum targets from
14797 the connection list.
14798 (target_stack::push): Add process_stratum targets to the
14799 connection list.
14800
14801 2020-01-10 Pedro Alves <palves@redhat.com>
14802
14803 Revert:
14804 2016-04-12 Pedro Alves <palves@redhat.com>
14805 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14806 Remove references to name.
14807 * serial.h (struct serial) <name>: Delete.
14808
14809 2020-01-10 Pedro Alves <palves@redhat.com>
14810
14811 * gdbarch-selftests.c (register_to_value_test): Remove "target
14812 already pushed" check.
14813
14814 2020-01-10 Pedro Alves <palves@redhat.com>
14815 John Baldwin <jhb@FreeBSD.org>
14816
14817 * aarch64-linux-nat.c
14818 (aarch64_linux_nat_target::thread_architecture): Adjust.
14819 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14820 (task_command_1): Likewise.
14821 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14822 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14823 (aix_thread_target::store_registers)
14824 (aix_thread_target::thread_alive): Adjust.
14825 * amd64-fbsd-tdep.c: Include "inferior.h".
14826 (amd64fbsd_get_thread_local_address): Pass down target.
14827 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14828 thread's gdbarch instead of target_gdbarch.
14829 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14830 get_last_target_status.
14831 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14832 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14833 inferiors.
14834 (update_inserted_breakpoint_locations): Skip if inferiors with no
14835 execution.
14836 (update_global_location_list): When handling moribund locations,
14837 find representative inferior for location's pspace, and use thread
14838 count of its process_stratum target.
14839 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14840 * bsd-uthread.c (bsd_uthread_target::wait): Use
14841 as_process_stratum_target and adjust thread_change_ptid and
14842 add_thread calls.
14843 (bsd_uthread_target::update_thread_list): Use
14844 as_process_stratum_target and adjust find_thread_ptid,
14845 thread_change_ptid and add_thread calls.
14846 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14847 find_thread_ptid call.
14848 * corelow.c (add_to_thread_list): Adjust add_thread call.
14849 (core_target_open): Adjust add_thread_silent and thread_count
14850 calls.
14851 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14852 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14853 * event-top.c (async_disconnect): Pop targets from all inferiors.
14854 * exec.c (add_target_sections): Push exec target on all inferiors
14855 sharing the program space.
14856 (remove_target_sections): Remove the exec target from all
14857 inferiors sharing the program space.
14858 (exec_on_vfork): New.
14859 * exec.h (exec_on_vfork): Declare.
14860 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14861 Pass it down.
14862 (fbsd_nat_target::update_thread_list): Adjust.
14863 (fbsd_nat_target::resume): Adjust.
14864 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14865 down.
14866 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14867 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14868 get_thread_arch_regcache call.
14869 * fork-child.c (gdb_startup_inferior): Pass target down to
14870 startup_inferior and set_executing.
14871 * gdbthread.h (struct process_stratum_target): Forward declare.
14872 (add_thread, add_thread_silent, add_thread_with_info)
14873 (in_thread_list): Add process_stratum_target parameter.
14874 (find_thread_ptid(inferior*, ptid_t)): New overload.
14875 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14876 parameter.
14877 (all_threads()): Delete overload.
14878 (all_threads, all_non_exited_threads): Add process_stratum_target
14879 parameter.
14880 (all_threads_safe): Use brace initialization.
14881 (thread_count): Add process_stratum_target parameter.
14882 (set_resumed, set_running, set_stop_requested, set_executing)
14883 (threads_are_executing, finish_thread_state): Add
14884 process_stratum_target parameter.
14885 (switch_to_thread): Use is_current_thread.
14886 * i386-fbsd-tdep.c: Include "inferior.h".
14887 (i386fbsd_get_thread_local_address): Pass down target.
14888 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14889 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14890 have_inferiors check.
14891 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14892 (inf_ptrace_target::attach): Adjust.
14893 * infcall.c (run_inferior_call): Adjust.
14894 * infcmd.c (run_command_1): Pass target to
14895 scoped_finish_thread_state.
14896 (proceed_thread_callback): Skip inferiors with no execution.
14897 (continue_command): Rename 'all_threads' local to avoid hiding
14898 'all_threads' function. Adjust get_last_target_status call.
14899 (prepare_one_step): Adjust set_running call.
14900 (signal_command): Use user_visible_resume_target. Compare thread
14901 pointers instead of inferior_ptid.
14902 (info_program_command): Adjust to pass down target.
14903 (attach_command): Mark target's 'thread_executing' flag.
14904 (stop_current_target_threads_ns): New, factored out from ...
14905 (interrupt_target_1): ... this. Switch inferior before making
14906 target calls.
14907 * inferior-iter.h
14908 (struct all_inferiors_iterator, struct all_inferiors_range)
14909 (struct all_inferiors_safe_range)
14910 (struct all_non_exited_inferiors_range): Filter on
14911 process_stratum_target too. Remove explicit.
14912 * inferior.c (inferior::inferior): Push dummy target on target
14913 stack.
14914 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14915 Add process_stratum_target parameter, and pass it down.
14916 (have_live_inferiors): Adjust.
14917 (switch_to_inferior_and_push_target): New.
14918 (add_inferior_command, clone_inferior_command): Handle
14919 "-no-connection" parameter. Use
14920 switch_to_inferior_and_push_target.
14921 (_initialize_inferior): Mention "-no-connection" option in
14922 the help of "add-inferior" and "clone-inferior" commands.
14923 * inferior.h: Include "process-stratum-target.h".
14924 (interrupt_target_1): Use bool.
14925 (struct inferior) <push_target, unpush_target, target_is_pushed,
14926 find_target_beneath, top_target, process_target, target_at,
14927 m_stack>: New.
14928 (discard_all_inferiors): Delete.
14929 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14930 (all_inferiors, all_non_exited_inferiors): Add
14931 process_stratum_target parameter.
14932 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14933 (target_last_proc_target): New global.
14934 (follow_fork_inferior): Push target on new inferior. Pass target
14935 to add_thread_silent. Call exec_on_vfork. Handle target's
14936 reference count.
14937 (follow_fork): Adjust get_last_target_status call. Also consider
14938 target.
14939 (follow_exec): Push target on new inferior.
14940 (struct execution_control_state) <target>: New field.
14941 (user_visible_resume_target): New.
14942 (do_target_resume): Call target_async.
14943 (resume_1): Set target's threads_executing flag. Consider resume
14944 target.
14945 (commit_resume_all_targets): New.
14946 (proceed): Also consider resume target. Skip threads of inferiors
14947 with no execution. Commit resumtion in all targets.
14948 (start_remote): Pass current inferior to wait_for_inferior.
14949 (infrun_thread_stop_requested): Consider target as well. Pass
14950 thread_info pointer to clear_inline_frame_state instead of ptid.
14951 (infrun_thread_thread_exit): Consider target as well.
14952 (random_pending_event_thread): New inferior parameter. Use it.
14953 (do_target_wait): Rename to ...
14954 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14955 down.
14956 (threads_are_resumed_pending_p, do_target_wait): New.
14957 (prepare_for_detach): Adjust calls.
14958 (wait_for_inferior): New inferior parameter. Handle it. Use
14959 do_target_wait_1 instead of do_target_wait.
14960 (fetch_inferior_event): Adjust. Switch to representative
14961 inferior. Pass target down.
14962 (set_last_target_status): Add process_stratum_target parameter.
14963 Save target in global.
14964 (get_last_target_status): Add process_stratum_target parameter and
14965 handle it.
14966 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14967 (context_switch): Check inferior_ptid == null_ptid before calling
14968 inferior_thread().
14969 (get_inferior_stop_soon): Pass down target.
14970 (wait_one): Rename to ...
14971 (poll_one_curr_target): ... this.
14972 (struct wait_one_event): New.
14973 (wait_one): New.
14974 (stop_all_threads): Adjust.
14975 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14976 event's target.
14977 (switch_back_to_stepped_thread): Also consider target.
14978 (print_stop_event): Update.
14979 (normal_stop): Update. Also consider the resume target.
14980 * infrun.h (wait_for_inferior): Remove declaration.
14981 (user_visible_resume_target): New declaration.
14982 (get_last_target_status, set_last_target_status): New
14983 process_stratum_target parameter.
14984 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14985 process_stratum_target parameter, and use it.
14986 (clear_inline_frame_state (thread_info*)): New.
14987 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14988 process_stratum_target parameter.
14989 (clear_inline_frame_state (thread_info*)): Declare.
14990 * linux-fork.c (delete_checkpoint_command): Pass target down to
14991 find_thread_ptid.
14992 (checkpoint_command): Adjust.
14993 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14994 instead of just tweaking inferior_ptid.
14995 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14996 (exit_lwp): Pass target down to find_thread_ptid.
14997 (attach_proc_task_lwp_callback): Pass target down to
14998 add_thread/set_running/set_executing.
14999 (linux_nat_target::attach): Pass target down to
15000 thread_change_ptid.
15001 (get_detach_signal): Pass target down to find_thread_ptid.
15002 Consider last target status's target.
15003 (linux_resume_one_lwp_throw, resume_lwp)
15004 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15005 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15006 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15007 (linux_nat_target::async_wait_fd): New.
15008 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15009 target down.
15010 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15011 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15012 * linux-thread-db.c (struct thread_db_info::process_target): New
15013 field.
15014 (add_thread_db_info): Save target.
15015 (get_thread_db_info): New process_stratum_target parameter. Also
15016 match target.
15017 (delete_thread_db_info): New process_stratum_target parameter.
15018 Also match target.
15019 (thread_from_lwp): Adjust to pass down target.
15020 (thread_db_notice_clone): Pass down target.
15021 (check_thread_db_callback): Pass down target.
15022 (try_thread_db_load_1): Always push the thread_db target.
15023 (try_thread_db_load, record_thread): Pass target down.
15024 (thread_db_target::detach): Pass target down. Always unpush the
15025 thread_db target.
15026 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15027 target down. Always unpush the thread_db target.
15028 (find_new_threads_callback, thread_db_find_new_threads_2)
15029 (thread_db_target::update_thread_list): Pass target down.
15030 (thread_db_target::pid_to_str): Pass current inferior down.
15031 (thread_db_target::get_thread_local_address): Pass target down.
15032 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15033 target down.
15034 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15035 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15036 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15037 (procfs_init_inferior): Rename to ...
15038 (procfs_target::procfs_init_inferior): ... this and adjust.
15039 (procfs_target::create_inferior, procfs_notice_thread)
15040 (procfs_do_thread_registers): Adjust.
15041 * ppc-fbsd-tdep.c: Include "inferior.h".
15042 (ppcfbsd_get_thread_local_address): Pass down target.
15043 * proc-service.c (ps_xfer_memory): Switch current inferior and
15044 program space as well.
15045 (get_ps_regcache): Pass target down.
15046 * process-stratum-target.c
15047 (process_stratum_target::thread_address_space)
15048 (process_stratum_target::thread_architecture): Pass target down.
15049 * process-stratum-target.h
15050 (process_stratum_target::threads_executing): New field.
15051 (as_process_stratum_target): New.
15052 * ravenscar-thread.c
15053 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15054 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15055 down.
15056 * record-btrace.c (record_btrace_target::info_record): Adjust.
15057 (record_btrace_target::record_method)
15058 (record_btrace_target::record_is_replaying)
15059 (record_btrace_target::fetch_registers)
15060 (get_thread_current_frame_id, record_btrace_target::resume)
15061 (record_btrace_target::wait, record_btrace_target::stop): Pass
15062 target down.
15063 * record-full.c (record_full_wait_1): Switch to event thread.
15064 Pass target down.
15065 * regcache.c (regcache::regcache)
15066 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15067 process_stratum_target parameter and handle it.
15068 (current_thread_target): New global.
15069 (get_thread_regcache): Add process_stratum_target parameter and
15070 handle it. Switch inferior before calling target method.
15071 (get_thread_regcache): Pass target down.
15072 (get_thread_regcache_for_ptid): Pass target down.
15073 (registers_changed_ptid): Add process_stratum_target parameter and
15074 handle it.
15075 (registers_changed_thread, registers_changed): Pass target down.
15076 (test_get_thread_arch_aspace_regcache): New.
15077 (current_regcache_test): Define a couple local test_target_ops
15078 instances and use them for testing.
15079 (readwrite_regcache): Pass process_stratum_target parameter.
15080 (cooked_read_test, cooked_write_test): Pass mock_target down.
15081 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15082 (get_thread_arch_aspace_regcache): Add process_stratum_target
15083 parameter.
15084 (regcache::target): New method.
15085 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15086 (regcache::registers_changed_ptid): Add process_stratum_target
15087 parameter.
15088 (regcache::m_target): New field.
15089 (registers_changed_ptid): Add process_stratum_target parameter.
15090 * remote.c (remote_state::supports_vCont_probed): New field.
15091 (remote_target::async_wait_fd): New method.
15092 (remote_unpush_and_throw): Add remote_target parameter.
15093 (get_current_remote_target): Adjust.
15094 (remote_target::remote_add_inferior): Push target.
15095 (remote_target::remote_add_thread)
15096 (remote_target::remote_notice_new_inferior)
15097 (get_remote_thread_info): Pass target down.
15098 (remote_target::update_thread_list): Skip threads of inferiors
15099 bound to other targets. (remote_target::close): Don't discard
15100 inferiors. (remote_target::add_current_inferior_and_thread)
15101 (remote_target::process_initial_stop_replies)
15102 (remote_target::start_remote)
15103 (remote_target::remote_serial_quit_handler): Pass down target.
15104 (remote_target::remote_unpush_target): New remote_target
15105 parameter. Unpush the target from all inferiors.
15106 (remote_target::remote_unpush_and_throw): New remote_target
15107 parameter. Pass it down.
15108 (remote_target::open_1): Check whether the current inferior has
15109 execution instead of checking whether any inferior is live. Pass
15110 target down.
15111 (remote_target::remote_detach_1): Pass down target. Use
15112 remote_unpush_target.
15113 (extended_remote_target::attach): Pass down target.
15114 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15115 (remote_target::append_resumption): Pass down target.
15116 (remote_target::append_pending_thread_resumptions)
15117 (remote_target::remote_resume_with_hc, remote_target::resume)
15118 (remote_target::commit_resume): Pass down target.
15119 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15120 (remote_target::interrupt_query)
15121 (remote_target::remove_new_fork_children)
15122 (remote_target::check_pending_events_prevent_wildcard_vcont)
15123 (remote_target::remote_parse_stop_reply)
15124 (remote_target::process_stop_reply): Pass down target.
15125 (first_remote_resumed_thread): New remote_target parameter. Pass
15126 it down.
15127 (remote_target::wait_as): Pass down target.
15128 (unpush_and_perror): New remote_target parameter. Pass it down.
15129 (remote_target::readchar, remote_target::remote_serial_write)
15130 (remote_target::getpkt_or_notif_sane_1)
15131 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15132 down target.
15133 (remote_target::mourn_inferior): Pass down target. Use
15134 remote_unpush_target.
15135 (remote_target::core_of_thread)
15136 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15137 (remote_target::pid_to_exec_file)
15138 (remote_target::thread_handle_to_thread_info): Pass down target.
15139 (remote_target::async_wait_fd): New.
15140 * riscv-fbsd-tdep.c: Include "inferior.h".
15141 (riscv_fbsd_get_thread_local_address): Pass down target.
15142 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15143 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15144 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15145 Adjust.
15146 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15147 * solib-svr4.c (enable_break): Pass down target.
15148 * spu-multiarch.c (parse_spufs_run): Pass down target.
15149 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15150 * target-delegates.c: Regenerate.
15151 * target.c (g_target_stack): Delete.
15152 (current_top_target): Return the current inferior's top target.
15153 (target_has_execution_1): Refer to the passed-in inferior's top
15154 target.
15155 (target_supports_terminal_ours): Check whether the initial
15156 inferior was already created.
15157 (decref_target): New.
15158 (target_stack::push): Incref/decref the target.
15159 (push_target, push_target, unpush_target): Adjust.
15160 (target_stack::unpush): Defref target.
15161 (target_is_pushed): Return bool. Adjust to refer to the current
15162 inferior's target stack.
15163 (dispose_inferior): Delete, and inline parts ...
15164 (target_preopen): ... here. Only dispose of the current inferior.
15165 (target_detach): Hold strong target reference while detaching.
15166 Pass target down.
15167 (target_thread_name): Add assertion.
15168 (target_resume): Pass down target.
15169 (target_ops::beneath, find_target_at): Adjust to refer to the
15170 current inferior's target stack.
15171 (get_dummy_target): New.
15172 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15173 has a thread running.
15174 (initialize_targets): Rename to ...
15175 (_initialize_target): ... this.
15176 * target.h: Include "gdbsupport/refcounted-object.h".
15177 (struct target_ops): Inherit refcounted_object.
15178 (target_ops::shortname, target_ops::longname): Make const.
15179 (target_ops::async_wait_fd): New method.
15180 (decref_target): Declare.
15181 (struct target_ops_ref_policy): New.
15182 (target_ops_ref): New typedef.
15183 (get_dummy_target): Declare function.
15184 (target_is_pushed): Return bool.
15185 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15186 (all_matching_threads_iterator::all_matching_threads_iterator):
15187 Handle filter target.
15188 * thread-iter.h (struct all_matching_threads_iterator, struct
15189 all_matching_threads_range, class all_non_exited_threads_range):
15190 Filter by target too. Remove explicit.
15191 * thread.c (threads_executing): Delete.
15192 (inferior_thread): Pass down current inferior.
15193 (clear_thread_inferior_resources): Pass down thread pointer
15194 instead of ptid_t.
15195 (add_thread_silent, add_thread_with_info, add_thread): Add
15196 process_stratum_target parameter. Use it for thread and inferior
15197 searches.
15198 (is_current_thread): New.
15199 (thread_info::deletable): Use it.
15200 (find_thread_ptid, thread_count, in_thread_list)
15201 (thread_change_ptid, set_resumed, set_running): New
15202 process_stratum_target parameter. Pass it down.
15203 (set_executing): New process_stratum_target parameter. Pass it
15204 down. Adjust reference to 'threads_executing'.
15205 (threads_are_executing): New process_stratum_target parameter.
15206 Adjust reference to 'threads_executing'.
15207 (set_stop_requested, finish_thread_state): New
15208 process_stratum_target parameter. Pass it down.
15209 (switch_to_thread): Also match inferior.
15210 (switch_to_thread): New process_stratum_target parameter. Pass it
15211 down.
15212 (update_threads_executing): Reimplement.
15213 * top.c (quit_force): Pop targets from all inferior.
15214 (gdb_init): Don't call initialize_targets.
15215 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15216 Declare.
15217 (windows_add_thread, windows_delete_thread): Adjust.
15218 (get_windows_debug_event): Rename to ...
15219 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15220 * tracefile-tfile.c (tfile_target_open): Pass down target.
15221 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15222 Forward declare.
15223 (switch_to_thread): Add process_stratum_target parameter.
15224 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15225 parameter. Use it.
15226 (mi_on_resume): Pass target down.
15227 * nat/fork-inferior.c (startup_inferior): Add
15228 process_stratum_target parameter. Pass it down.
15229 * nat/fork-inferior.h (startup_inferior): Add
15230 process_stratum_target parameter.
15231 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15232
15233 2020-01-10 Pedro Alves <palves@redhat.com>
15234
15235 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15236 directly. Instead find the first thread in the thread list and
15237 use switch_to_thread.
15238
15239 2020-01-10 Pedro Alves <palves@redhat.com>
15240
15241 * remote.c (remote_target::remote_add_inferior): Don't bind a
15242 process to the current inferior if the current inferior is already
15243 bound to a process.
15244
15245 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15246 Pedro Alves <palves@redhat.com>
15247
15248 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15249 If no process is specified, return null_ptid instead of
15250 inferior_ptid.
15251 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15252 TARGET_WAITKIND_SIGNALLED with no pid.
15253
15254 2020-01-10 Pedro Alves <palves@redhat.com>
15255
15256 * remote.c (first_remote_resumed_thread): New.
15257 (remote_target::wait_as): Use it as default event_ptid instead of
15258 inferior_ptid.
15259
15260 2020-01-10 Pedro Alves <palves@redhat.com>
15261
15262 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15263
15264 2020-01-10 Pedro Alves <palves@redhat.com>
15265
15266 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15267 not -1.
15268
15269 2020-01-10 Pedro Alves <palves@redhat.com>
15270
15271 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15272 ptid to get_last_target_status.
15273 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15274 ptid to get_last_target_status.
15275 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15276 get_last_target_status.
15277 (info_program_command): Don't pass a target_waitstatus to
15278 get_last_target_status.
15279 * infrun.c (init_wait_for_inferior): Use
15280 nullify_last_target_wait_ptid.
15281 (get_last_target_status): Handle nullptr arguments.
15282 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15283 (print_stop_event): Don't pass a ptid to get_last_target_status.
15284 (normal_stop): Don't pass a ptid to get_last_target_status.
15285 * infrun.h (get_last_target_status, set_last_target_status): Move
15286 comments here and update.
15287 (nullify_last_target_wait_ptid): Declare.
15288 * linux-fork.c (fork_load_infrun_state): Remove local extern
15289 declaration of nullify_last_target_wait_ptid.
15290 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15291 to get_last_target_status.
15292
15293 2020-01-10 Pedro Alves <palves@redhat.com>
15294
15295 * gdbthread.h (scoped_restore_current_thread)
15296 <dont_restore, restore, m_dont_restore>: Declare.
15297 * thread.c (thread_alive): Add assertion. Return bool.
15298 (switch_to_thread_if_alive): New.
15299 (prune_threads): Switch inferior/thread.
15300 (print_thread_info_1): Switch thread before calling target methods.
15301 (scoped_restore_current_thread::restore): New, factored out from
15302 ...
15303 (scoped_restore_current_thread::~scoped_restore_current_thread):
15304 ... this.
15305 (scoped_restore_current_thread::scoped_restore_current_thread):
15306 Add assertion.
15307 (thread_apply_all_command, thread_select): Use
15308 switch_to_thread_if_alive.
15309 * infrun.c (proceed, restart_threads, handle_signal_stop)
15310 (switch_back_to_stepped_thread): Switch current thread before
15311 calling target methods.
15312
15313 2020-01-10 Pedro Alves <palves@redhat.com>
15314
15315 * inferior.c (switch_to_inferior_no_thread): New function,
15316 factored out from ...
15317 (inferior_command): ... here.
15318 * inferior.h (switch_to_inferior_no_thread): Declare.
15319 * mi/mi-main.c (run_one_inferior): Use
15320 switch_to_inferior_no_thread.
15321
15322 2020-01-10 Pedro Alves <palves@redhat.com>
15323
15324 * infcmd.c (kill_command): Remove dead code.
15325
15326 2020-01-10 Pedro Alves <palves@redhat.com>
15327
15328 * remote.c (remote_target::mourn_inferior): No longer check
15329 whether the target is running.
15330
15331 2020-01-10 Pedro Alves <palves@redhat.com>
15332
15333 * corelow.c (core_target::has_execution): Change parameter type to
15334 inferior pointer.
15335 * inferior.c (number_of_live_inferiors): Use
15336 inferior::has_execution instead of target_has_execution_1.
15337 * inferior.h (inferior::has_execution): New.
15338 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15339 inferior::has_execution instead of target_has_execution_1.
15340 * process-stratum-target.c
15341 (process_stratum_target::has_execution): Change parameter type to
15342 inferior pointer. Check the inferior's PID instead of
15343 inferior_ptid.
15344 * process-stratum-target.h
15345 (process_stratum_target::has_execution): Change parameter type to
15346 inferior pointer.
15347 * record-full.c (record_full_core_target::has_execution): Change
15348 parameter type to inferior pointer.
15349 * target.c (target_has_execution_1): Change parameter type to
15350 inferior pointer.
15351 (target_has_execution_current): Adjust.
15352 * target.h (target_ops::has_execution): Change parameter type to
15353 inferior pointer.
15354 (target_has_execution_1): Change parameter type to inferior
15355 pointer. Change return type to bool.
15356 * tracefile.h (tracefile_target::has_execution): Change parameter
15357 type to inferior pointer.
15358
15359 2020-01-10 Pedro Alves <palves@redhat.com>
15360
15361 * exceptions.c (print_flush): Remove current_top_target() check.
15362
15363 2020-01-10 Pedro Alves <palves@redhat.com>
15364
15365 * remote.c (show_remote_exec_file): Show the current inferior's
15366 exec-file instead of the command variable's value.
15367
15368 2020-01-10 Pedro Alves <palves@redhat.com>
15369
15370 * record-full.c (record_full_resume_ptid): New global.
15371 (record_full_target::resume): Set it.
15372 (record_full_wait_1): Use record_full_resume_ptid instead of
15373 inferior_ptid.
15374
15375 2020-01-10 Pedro Alves <palves@redhat.com>
15376
15377 * gdbthread.h (scoped_restore_current_thread)
15378 <dont_restore, restore, m_dont_restore>: Declare.
15379 * thread.c (thread_alive): Add assertion. Return bool.
15380 (switch_to_thread_if_alive): New.
15381 (prune_threads): Switch inferior/thread.
15382 (print_thread_info_1): Switch thread before calling target methods.
15383 (scoped_restore_current_thread::restore): New, factored out from
15384 ...
15385 (scoped_restore_current_thread::~scoped_restore_current_thread):
15386 ... this.
15387 (scoped_restore_current_thread::scoped_restore_current_thread):
15388 Add assertion.
15389 (thread_apply_all_command, thread_select): Use
15390 switch_to_thread_if_alive.
15391
15392 2020-01-10 George Barrett <bob@bob131.so>
15393
15394 * stap-probe.c (stap_modify_semaphore): Don't check for null
15395 semaphores.
15396 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15397 for null semaphores.
15398
15399 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15400
15401 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15402 all source windows, and maintain horizontal scroll status while
15403 doing so.
15404
15405 2020-01-09 Tom Tromey <tom@tromey.com>
15406
15407 PR tui/18932:
15408 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15409 update_source_window, not print_source_lines.
15410
15411 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15412
15413 * tui/tui.c (tui_enable): Register tui hooks after calling
15414 tui_display_main.
15415
15416 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15417
15418 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15419
15420 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15421
15422 * thread.c (print_thread_info_1): Fix indentation.
15423
15424 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15425
15426 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15427 unique_xmalloc_ptr outside the if to always free the demangled name.
15428
15429 2020-01-08 Tom Tromey <tromey@adacore.com>
15430
15431 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15432 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15433 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15434 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15435 Remove.
15436 (section_offsets): New typedef.
15437 * symtab.c (fixup_section, get_msymbol_address): Update.
15438 * symmisc.c (dump_msymbols): Update.
15439 * symfile.h (relative_addr_info_to_section_offsets)
15440 (symfile_map_offsets_to_segments): Update.
15441 * symfile.c (build_section_addr_info_from_objfile)
15442 (init_objfile_sect_indices): Update.
15443 (struct place_section_arg): Change type of "offsets".
15444 (place_section): Update.
15445 (relative_addr_info_to_section_offsets): Change type of
15446 "section_offsets". Remove "num_sections" parameter.
15447 (default_symfile_offsets, syms_from_objfile_1)
15448 (set_objfile_default_section_offset): Update.
15449 (reread_symbols): No need to preserve section offsets by hand.
15450 (symfile_map_offsets_to_segments): Change type of "offsets".
15451 * stap-probe.c (relocate_address): Update.
15452 * stabsread.h (process_one_symbol): Update.
15453 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15454 (solib_target_relocate_section_addresses): Update.
15455 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15456 Update.
15457 * solib-frv.c (frv_relocate_main_executable): Update.
15458 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15459 * solib-aix.c (solib_aix_get_section_offsets): Change return
15460 type.
15461 (solib_aix_solib_create_inferior_hook): Update.
15462 * remote.c (remote_target::get_offsets): Update.
15463 * psymtab.c (find_pc_sect_psymtab): Update.
15464 * psympriv.h (struct partial_symbol) <address, text_low,
15465 text_high>: Update.
15466 * objfiles.h (obj_section_offset): Update.
15467 (struct objfile) <section_offsets>: Change type.
15468 <num_sections>: Remove.
15469 (objfile_relocate): Update.
15470 * objfiles.c (entry_point_address_query): Update
15471 (relocate_one_symbol): Change type of "section_offsets".
15472 (objfile_relocate1, objfile_relocate1): Change type of
15473 "new_offsets".
15474 (objfile_rebase1): Update.
15475 * mipsread.c (mipscoff_symfile_read): Update.
15476 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15477 parameter.
15478 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15479 (parse_external, psymtab_to_symtab_1): Update.
15480 * machoread.c (macho_symfile_offsets): Update.
15481 * ia64-tdep.c (ia64_find_unwind_table): Update.
15482 * hppa-tdep.c (read_unwind_info): Update.
15483 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15484 * dwarf2read.c (create_addrmap_from_index)
15485 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15486 (process_psymtab_comp_unit_reader, add_partial_symbol)
15487 (add_partial_subprogram, process_full_comp_unit)
15488 (read_file_scope, read_func_scope, read_lexical_block_scope)
15489 (read_call_site_scope, dwarf2_rnglists_process)
15490 (dwarf2_ranges_process, dwarf2_ranges_read)
15491 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15492 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15493 Update.
15494 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15495 Update.
15496 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15497 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15498 (process_one_symbol): Change type of "section_offsets".
15499 * ctfread.c (get_objfile_text_range): Update.
15500 * coffread.c (coff_symtab_read, enter_linenos)
15501 (process_coff_symbol): Update.
15502 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15503 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15504
15505 2020-01-08 Tom Tromey <tromey@adacore.com>
15506
15507 * dwarf2read.c (parse_macro_definition): Use std::string.
15508 (parse_macro_definition): Likewise.
15509
15510 2020-01-08 Tom Tromey <tromey@adacore.com>
15511
15512 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15513 (ATTR_ALLOC_CHUNK): Remove.
15514
15515 2020-01-08 Tom Tromey <tromey@adacore.com>
15516
15517 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15518
15519 2020-01-08 Tom Tromey <tromey@adacore.com>
15520
15521 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15522 (dwarf2_compute_name, open_dwo_file): Likewise.
15523 (process_enumeration_scope): Use std::vector.
15524 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15525 (partial_die_info::fixup, dwarf2_start_subfile)
15526 (guess_full_die_structure_name, dwarf2_name): Likewise.
15527 (determine_prefix): Update.
15528 (guess_full_die_structure_name): Make return type const.
15529 (partial_die_full_name): Return unique_xmalloc_ptr.
15530 (DW_FIELD_ALLOC_CHUNK): Remove.
15531
15532 2020-01-07 Tom Tromey <tromey@adacore.com>
15533
15534 PR build/24937:
15535 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15536
15537 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15538
15539 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15540
15541 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15542
15543 * stack.c (print_frame_info): Move disassemble_next_line code
15544 inside source_print block.
15545
15546 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15547
15548 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15549 gdb/signals.h, as we are now using native signal symbols.
15550
15551 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15552
15553 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15554 overflow by an early check of content vs threshold.
15555 * tui/tui-source.c (tui_source_window::line_is_displayed):
15556 Likewise.
15557
15558 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15559
15560 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15561
15562 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15563
15564 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15565 export table if no section contains it's RVA.
15566
15567 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15568
15569 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15570
15571 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15572
15573 * source.c (print_source_lines_base): Set last_line_listed.
15574
15575 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15576
15577 * tui/tui-disasm.c: Remove trailing spaces.
15578
15579 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15580 Pedro Alves <palves@redhat.com>
15581
15582 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15583 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15584 (windows_gdb_signal_to_target): New function, uses the above
15585 enumeration to convert GDB internal signal codes to equivalent
15586 Windows codes.
15587 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15588 * windows-nat.c: Include "gdb_wait.h".
15589 (get_windows_debug_event): Extract the fatal exception from the
15590 exit status and convert to the equivalent Posix signal number.
15591 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15592 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15593 * gdbsupport/gdb_wait.c: New file, implements
15594 windows_status_to_termsig.
15595 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15596 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15597
15598 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15599
15600 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15601 show_layout.
15602
15603 2020-01-05 Luis Machado <luis.machado@linaro.org>
15604
15605 * aarch64-linux-nat.c
15606 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15607 and bfd_mach_aarch64.
15608
15609 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15610
15611 * ui-file.c (stdio_file::can_emit_style_escape)
15612 (tee_file::can_emit_style_escape): Ensure style is used also on
15613 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15614 to gdb_stdout.
15615 * main.c (set_gdb_data_directory): Use file style to output the
15616 warning that the given pathname is not a directory.
15617 * top.c (show_history_filename, gdb_safe_append_history)
15618 (show_gdb_datadir): Use file style.
15619
15620 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15621
15622 * solib-target.c (struct lm_info_target):
15623 Change offsets to be a unique_xmalloc_ptr.
15624 (solib_target_relocate_section_addresses): Update.
15625
15626 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15627
15628 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15629
15630 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15631
15632 * MAINTAINERS (Write After Approval): Add myself.
15633
15634 2020-01-02 Luis Machado <luis.machado@linaro.org>
15635
15636 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15637 Cell BE architecture.
15638 * target.h (struct target_ops) <thread_architecture>: Likewise.
15639
15640 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15641
15642 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15643
15644 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15645
15646 * MAINTAINERS (Write After Approval): Add myself.
15647
15648 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15649
15650 * gdbarch.sh: Update copyright year range of generated files.
15651
15652 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15653
15654 Update copyright year range in all GDB files.
15655
15656 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15657
15658 * copyright.py: Convert to Python 3.
15659
15660 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15661
15662 * copyright.py: Adapt after move of gnulib directory from gdb
15663 directory to toplevel directory.
15664
15665 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15666
15667 * copyright.py (main): Exit if run from the wrong directory.
15668
15669 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15670
15671 * top.c (print_gdb_version): Change copyright year to 2020.
15672
15673 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15674
15675 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15676
15677 For older changes see ChangeLog-2019.
15678 \f
15679 Local Variables:
15680 mode: change-log
15681 left-margin: 8
15682 fill-column: 74
15683 version-control: never
15684 coding: utf-8
15685 End: