]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/dwarf: fix reading subprogram with DW_AT_specification (PR gdb/26693)
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2
3 PR gdb/26693
4 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
5 parameter.
6 (load_cu): Pass existing CU.
7 (process_imported_unit_die): Likewise.
8 (follow_die_offset): Likewise.
9
10 2020-10-22 Luis Machado <luis.machado@linaro.org>
11
12 * corelow.c (core_target::xfer_partial): Also check for an empty
13 m_core_unavailable_mappings vector.
14
15 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
18 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
19 * f-exp.y (arglist): Allow for a series of subranges.
20 (subrange): Add cases for subranges with strides.
21 * f-lang.c (value_f90_subarray): Catch use of array strides and
22 throw an error.
23 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
24
25 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * expprint.c (print_subexp_standard): Change enum range_type to
28 range_flag and rename variables to match.
29 (dump_subexp_body_standard): Likewise.
30 * expression.h (enum range_type): Rename to...
31 (enum range_flag): ...this.
32 (range_types): Rename to...
33 (range_flags): ...this.
34 * f-lang.c (value_f90_subarray): Change enum range_type to
35 range_flag and rename variables to match.
36 * parse.c (operator_length_standard): Likewise.
37 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
38 range_type to range_flag.
39 * rust-lang.c (rust_evaluate_funcall): Likewise.
40 (rust_range): Likewise.
41 (rust_compute_range): Likewise.
42 (rust_subscript): Likewise.
43
44 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * expprint.c (print_subexp_standard): Update to reflect changes to
47 enum range_type.
48 (dump_subexp_body_standard): Likewise.
49 * expression.h (enum range_type): Convert to a bit field enum, and
50 make the enum unsigned.
51 * f-exp.y (subrange): Update to reflect changes to enum
52 range_type.
53 * f-lang.c (value_f90_subarray): Likewise.
54 * parse.c (operator_length_standard): Likewise.
55 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
56 * rust-lang.c (rust_range): Likewise.
57 (rust_compute_range): Likewise.
58 (rust_subscript): Likewise.
59
60 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
61
62 * infrun.c (displaced_step_in_progress_thread): Fix comment.
63 (displaced_step_in_progress): Fix comment.
64
65 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * gdbarch.sh (make_corefile_notes): Return unique pointer.
68 * gdbarch.c: Re-generate.
69 * gdbarch.h: Re-generate.
70 * gcore.c (write_gcore_file_1): Adjust.
71 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
72 constructor.
73 <note_data>: Change type to unique pointer.
74 <abort_iteration>: Change type to bool.
75 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
76 (fbsd_collect_thread_registers): Return void, adjust.
77 (struct fbsd_corefile_thread_data): Add construtor.
78 <note_data>: Change type to unique pointer.
79 (fbsd_corefile_thread): Adjust.
80 (fbsd_make_corefile_notes): Return unique pointer, adjust.
81 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
82 to unique pointer, adjust.
83 (struct linux_collect_regset_section_cb_data): Add constructor.
84 <note_data>: Change type to unique pointer.
85 <abort_iteration>: Change type to bool.
86 (linux_collect_thread_registers): Return void, adjust.
87 (struct linux_corefile_thread_data): Add constructor.
88 <note_data>: Change type to unique pointer.
89 (linux_corefile_thread): Adjust.
90 (linux_make_corefile_notes): Return unique pointer, adjust.
91
92 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
95 * gdbarch.c: Re-generate.
96 * gdbarch.h: Re-generate.
97 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
98 bool.
99 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
100 Likewise.
101 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
102 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
103 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
104 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
105
106 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * gdbarch.sh: Make generated predicates return bool.
109 * gdbarch.c: Re-generate.
110 * gdbarch.h: Re-generate.
111
112 2020-10-20 Tom Tromey <tom@tromey.com>
113
114 * varobj-iter.h (struct varobj_item): Remove typedef.
115
116 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * infrun.c (currently_stepping): Change int to bool
119 (maybe_software_singlestep): Likewise.
120 (show_stop_on_solib_events): Likewise.
121 (stepping_past_nonsteppable_watchpoint): Likewise.
122 (displaced_step_in_progress_any_inferior): Likewise.
123 (displaced_step_in_progress_thread): Likewise.
124 (keep_going_stepped_thread): Likewise.
125 (thread_still_needs_step_over): Likewise.
126 (start_step_over): Likewise.
127 (do_target_resume): Likewise.
128 (resume_1): Likewise.
129 (clear_proceed_status): Likewise.
130 (thread_still_needs_step_over_bp): Likewise.
131 (proceed): Likewise.
132 (switch_back_to_stepped_thread): Likewise.
133 (adjust_pc_after_break): Likewise.
134 (stepped_in_from): Likewise.
135 (handle_stop_requested): Likewise.
136 (handle_syscall_event): Likewise.
137 (handle_no_resumed): Likewise.
138 (handle_inferior_event): Likewise.
139 (finish_step_over): Likewise.
140 (handle_signal_stop): Likewise.
141 (process_event_stop_test): Likewise.
142
143 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * infrun.c (get_displaced_stepping_state): Fix comment.
146
147 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
148
149 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
150
151 2020-10-19 Tom Tromey <tromey@adacore.com>
152
153 PR tui/26719
154 * tui/tui-winsource.h (struct tui_source_window_base)
155 <refresh_window>: Rename from refresh_pad.
156 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
157 Rename from refresh_pad.
158 (tui_source_window_base::show_source_content)
159 (tui_source_window_base::do_scroll_horizontal): Update.
160
161 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
162
163 * thread.c (_initialize_thread): Fine-tune the help text of
164 'info threads'.
165
166 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
167
168 * frame.c: Remove the unused 'uinteger_option_def' type alias.
169
170 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
171
172 * breakpoint.c (handle_jit_event): Add an argument, change how
173 `jit_event_handler` is called.
174
175 2020-10-17 Tom Tromey <tom@tromey.com>
176
177 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
178 (scan_xcoff_symtab): Update.
179 * psymtab.h (class psymtab_storage) <global_psymbols,
180 static_psymbols, current_global_psymbols,
181 current_static_psymbols>: Remove.
182 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
183 (match_partial_symbol, lookup_partial_symbol): Update.
184 (print_partial_symbols): Change parameters.
185 (dump_psymtab, recursively_search_psymtabs)
186 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
187 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
188 (concat): Remove.
189 (end_psymtab_common): Simplify.
190 (append_psymbol_to_list): Change parameters.
191 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
192 (init_psymbol_list): Simplify.
193 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
194 * psympriv.h (struct partial_symtab) <empty>: New method.
195 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
196 Remove.
197 <global_psymbols, static_psymbols>: New members.
198 <add_psymbol>: New methods.
199 (add_psymbol_to_list): Don't declare.
200 (psymbol_placement): Move earlier.
201 * mdebugread.c (parse_partial_symbols): Update.
202 (handle_psymbol_enumerators): Change parameters.
203 (mdebug_expand_psymtab): Update.
204 * dwarf2/read.c (process_psymtab_comp_unit_reader)
205 (add_partial_symbol): Update.
206 * dwarf2/index-write.c (write_psymbols): Change parameters.
207 (write_one_signatured_type): Update.
208 (recursively_count_psymbols): Update.
209 (recursively_write_psymbols): Update.
210 (class debug_names) <recursively_write_psymbols>: Update.
211 <write_psymbols>: Change parameters.
212 <write_one_signatured_type>: Update.
213 * dbxread.c (read_dbx_symtab): Update.
214 (dbx_end_psymtab): Use partial_symtab::empty.
215 * ctfread.c (struct ctf_context) <pst>: New member.
216 (create_partial_symtab): Set it.
217 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
218 (scan_partial_symbols): Use the psymtab's context. Update.
219
220 2020-10-17 Tom Tromey <tom@tromey.com>
221
222 * valprint.c (generic_value_print): Remove comment.
223 * m2-valprint.c (m2_value_print_inner): Remove comment.
224 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
225 type.
226
227 2020-10-17 Tom de Vries <tdevries@suse.de>
228
229 PR symtab/26317
230 * source.c (select_source_symtab): Handling sal.symtab == NULL for
231 symbol main.
232
233 2020-10-14 Tom de Vries <tdevries@suse.de>
234
235 PR gdb/26733
236 * solib.c (solib_contains_address_p): Handle
237 'solib->sections == nullptr'.
238
239 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
240
241 PR gdb/26642
242 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
243 target can't do async.
244 * target.c (target_wait): Assert that we don't pass
245 TARGET_WNOHANG to a target that can't async.
246
247 2020-10-13 Kamil Rytarowski <n54@gmx.com>
248
249 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
250 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
251 * alpha-bsd-nat.c: Adjust include.
252 * alpha-bsd-tdep.h: Adjust comment.
253 * alpha-nbsd-tdep.c: Rename to ...
254 * alpha-netbsd-tdep.c: ... this, adjust include.
255 * amd64-nbsd-nat.c: Rename to ...
256 * amd64-netbsd-nat.c: ... this, adjust include.
257 * amd64-nbsd-tdep.c: Rename to ...
258 * amd64-netbsd-tdep.c: ... this, adjust include.
259 * amd64-tdep.h: Adjust include.
260 * arm-nbsd-nat.c: Rename to ...
261 * arm-netbsd-nat.c: ... this, adjust include.
262 * arm-nbsd-tdep.c: Rename to ...
263 * arm-netbsd-tdep.c: ... this, adjust include.
264 * arm-nbsd-tdep.h: Rename to ...
265 * arm-netbsd-tdep.h: ... this, adjust include.
266 * configure.nat: Adjust file lists.
267 * configure.tgt: Likewise.
268 * hppa-nbsd-nat.c: Rename to ...
269 * hppa-netbsd-nat.c: ... this, adjust include.
270 * hppa-nbsd-tdep.c: Rename to ...
271 * hppa-netbsd-tdep.c: ... this, adjust include.
272 * i386-nbsd-nat.c: Rename to ...
273 * i386-netbsd-nat.c: ... this, adjust include.
274 * i386-nbsd-tdep.c: Rename to ...
275 * i386-netbsd-tdep.c: ... this, adjust include.
276 * m68k-bsd-nat.c: Adjust include.
277 * mips-nbsd-nat.c: Rename to ...
278 * mips-netbsd-nat.c: ... this, adjust include.
279 * mips-nbsd-tdep.c: Rename to ...
280 * mips-netbsd-tdep.c: ... this, adjust include.
281 * mips-nbsd-tdep.h: Rename to ...
282 * mips-netbsd-tdep.h: ... this.
283 * nbsd-nat.c: Rename to ...
284 * netbsd-nat.c: ... this, adjust include.
285 * nbsd-nat.h: Rename to ...
286 * netbsd-nat.h: ... this, adjust include.
287 * nbsd-tdep.c: Rename to ...
288 * netbsd-tdep.c: ... this, adjust include.
289 * nbsd-tdep.h: Rename to ...
290 * netbsd-tdep.h: ... this.
291 * ppc-nbsd-nat.c: Rename to ...
292 * ppc-netbsd-nat.c: ... this, adjust include.
293 * ppc-nbsd-tdep.c: Rename to ...
294 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
295 * ppc-nbsd-tdep.h: Rename to ...
296 * ppc-netbsd-tdep.h: ... this.
297 * sh-nbsd-nat.c: Rename to ...
298 * sh-netbsd-nat.c: ... this, adjust include.
299 * sh-nbsd-tdep.c: Rename to ...
300 * sh-netbsd-tdep.c: ... this, adjust include.
301 * sparc-nbsd-nat.c: Rename to ...
302 * sparc-netbsd-nat.c: ... this.
303 * sparc-nbsd-tdep.c: Rename to ...
304 * sparc-netbsd-tdep.c: ... this, adjust include.
305 * sparc64-nbsd-nat.c: Rename to ...
306 * sparc64-netbsd-nat.c: ... this.
307 * sparc64-nbsd-tdep.c: Rename to ...
308 * sparc64-netbsd-tdep.c: ... this, adjust include.
309 * sparc64-tdep.h: Adjust comment.
310 * vax-bsd-nat.c: Adjust include.
311 * vax-nbsd-tdep.c: Rename to ...
312 * vax-netbsd-tdep.c: ... this, adjust include.
313
314 2020-10-12 Tom Tromey <tom@tromey.com>
315
316 * target.h (struct target_ops) <get_section_table>: Update.
317 (target_get_section_table): Update.
318 * target.c (target_get_section_table, target_section_by_addr)
319 (memory_xfer_partial_1): Update.
320 * target-section.h (target_section_table): Now an alias.
321 * target-delegates.c: Rebuild.
322 * target-debug.h (target_debug_print_target_section_table_p):
323 Rename from target_debug_print_struct_target_section_table_p.
324 * symfile.c (build_section_addr_info_from_section_table): Update.
325 * solib.c (solib_map_sections, solib_contains_address_p): Update.
326 * solib-svr4.c (scan_dyntag): Update.
327 * solib-dsbt.c (scan_dyntag): Update.
328 * remote.c (remote_target::remote_xfer_live_readonly_partial):
329 Update.
330 * record-full.c (record_full_core_target::xfer_partial): Update.
331 * progspace.h (struct program_space) <target_sections>: Update.
332 * exec.h (print_section_info): Update.
333 * exec.c (exec_target::close, build_section_table)
334 (add_target_sections, add_target_sections_of_objfile)
335 (remove_target_sections, exec_on_vfork)
336 (section_table_available_memory)
337 (section_table_xfer_memory_partial)
338 (exec_target::get_section_table, exec_target::xfer_partial)
339 (print_section_info, set_section_command)
340 (exec_set_section_address, exec_target::has_memory): Update.
341 * corelow.c (core_target::build_file_mappings)
342 (core_target::xfer_partial, core_target::info_proc_mappings)
343 (core_target::info_proc_mappings): Update.
344 * bfd-target.c (class target_bfd): Update
345
346 2020-10-12 Tom Tromey <tom@tromey.com>
347
348 * progspace.c (program_space::~program_space): Don't call
349 clear_section_table.
350 * exec.h (clear_section_table): Don't declare.
351 * exec.c (exec_target::close): Update.
352 (clear_section_table): Remove.
353
354 2020-10-12 Tom Tromey <tom@tromey.com>
355
356 * exec.c (add_target_sections_of_objfile): Simplify.
357
358 2020-10-12 Tom Tromey <tom@tromey.com>
359
360 * solib.c (solib_map_sections): Update.
361 * record-full.c (record_full_core_open_1): Update.
362 * exec.h (build_section_table): Return a target_section_table.
363 * exec.c (exec_file_attach): Update.
364 (build_section_table): Return a target_section_table.
365 * corelow.c (core_target::core_target): Update.
366 * bfd-target.c (target_bfd::target_bfd): Update.
367
368 2020-10-12 Tom Tromey <tom@tromey.com>
369
370 * target.c (target_section_by_addr, memory_xfer_partial_1):
371 Update.
372 * target-section.h (struct target_section_table): Use
373 std::vector.
374 * symfile.h (build_section_addr_info_from_section_table): Take a
375 target_section_table.
376 * symfile.c (build_section_addr_info_from_section_table): Take a
377 target_section_table.
378 * solist.h (struct so_list) <sections>: Change type.
379 <sections_end>: Remove.
380 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
381 (solib_contains_address_p): Update.
382 * solib-svr4.c (scan_dyntag): Update.
383 * solib-dsbt.c (scan_dyntag): Update.
384 * remote.c (remote_target::remote_xfer_live_readonly_partial):
385 Update.
386 * record-full.c (record_full_core_start, record_full_core_end):
387 Remove.
388 (record_full_core_sections): New global.
389 (record_full_core_open_1, record_full_core_target::xfer_partial):
390 Update.
391 * exec.h (build_section_table, section_table_xfer_memory_partial)
392 (add_target_sections): Take a target_section_table.
393 * exec.c (exec_file_attach, clear_section_table): Update.
394 (resize_section_table): Remove.
395 (build_section_table, add_target_sections): Take a
396 target_section_table.
397 (add_target_sections_of_objfile, remove_target_sections)
398 (exec_on_vfork): Update.
399 (section_table_available_memory): Take a target_section_table.
400 (section_table_read_available_memory): Update.
401 (section_table_xfer_memory_partial): Take a target_section_table.
402 (print_section_info, set_section_command)
403 (exec_set_section_address, exec_target::has_memory): Update.
404 * corelow.c (class core_target) <m_core_section_table,
405 m_core_file_mappings>: Remove braces.
406 <~core_target>: Remove.
407 (core_target::core_target): Update.
408 (core_target::~core_target): Remove.
409 (core_target::build_file_mappings)
410 (core_target::xfer_memory_via_mappings)
411 (core_target::xfer_partial, core_target::info_proc_mappings):
412 Update.
413 * bfd-target.c (target_bfd::xfer_partial): Update.
414 (target_bfd::target_bfd): Update.
415 (target_bfd::~target_bfd): Remove.
416
417 2020-10-12 Tom Tromey <tom@tromey.com>
418
419 * target.h (struct target_section, struct target_section_table):
420 Move to target-section.h.
421 * target-section.h: New file.
422
423 2020-10-12 Pedro Alves <pedro@palves.net>
424
425 PR exp/26602
426 * valops.c (struct struct_field_searcher): New.
427 (update_search_result): Rename to ...
428 (struct_field_searcher::update_result): ... this. Simplify
429 prototype. Record all found fields.
430 (do_search_struct_field): Rename to ...
431 (struct_field_searcher::search): ... this. Simplify prototype.
432 Maintain stack of visited baseclass path. Call update_result for
433 fields too. Keep searching fields in baseclasses instead of
434 stopping at the first found field.
435 (search_struct_field): Use struct_field_searcher. When looking
436 for fields, report ambiguous access attempts.
437
438 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
439
440 * frame.c (inside_main_func): Check full symbols as well as
441 minimal symbols.
442
443 2020-10-09 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-lang.c (advance_wild_match): Rewrite the function's
446 description. Change the type of target0, t0 and t1 to char.
447
448 2020-10-09 Tom Tromey <tromey@adacore.com>
449
450 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
451
452 2020-10-09 Tom Tromey <tromey@adacore.com>
453
454 * ada-lang.h (ada_encode): Return std::string.
455 * ada-lang.c (ada_encode_1): Return std::string.
456 (ada_encode): Likewise.
457 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
458 Update.
459 * ada-exp.y (block_lookup, write_var_or_type): Update.
460
461 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
462
463 PR exp/26714
464 * printcmd.c (print_formatted): Handle void results as
465 unformatted prints.
466
467 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * arch/aarch32.c (aarch32_create_target_description): Release the
470 target_desc_up as late as possible.
471 * arch/aarch64.c (aarch64_create_target_description): Likewise.
472 * arch/amd64.c (amd64_create_target_description): Likewise.
473 * arch/arc.c (arc_create_target_description): Return a
474 target_desc_up, don't release it.
475 * arch/arc.h (arc_create_target_description): Update declaration.
476 (arc_lookup_target_description): Move target_desc_up into the
477 cache, and return a borrowed pointer.
478 * arch/arm.c (arm_create_target_description): Release the
479 target_desc_up as late as possible.
480 * arch/i386.c (i386_create_target_description): Likewise.
481 * arch/riscv.h (riscv_create_target_description): Update
482 declaration to match definition.
483 * arch/tic6x.c (tic6x_create_target_description): Release the
484 target_desc_up as late as possible.
485
486 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
489 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
490
491 2020-10-09 Jan Vrany <jan.vrany@labware.com>
492
493 * source.c (directory_command): Notify observers that "directories"
494 parameter has changed.
495
496 2020-10-08 Tom Tromey <tom@tromey.com>
497
498 * cli/cli-cmds.c (print_disassembly): Style function name and
499 addresses. Add _() wrappers.
500
501 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
502
503 * NEWS: Mention ARC support in GDBserver.
504
505 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * arch/aarch32.c (aarch32_create_target_description): Release
508 unique_ptr returned from allocate_target_description.
509 * arch/aarch64.c (aarch64_create_target_description): Likewise.
510 * arch/amd64.c (amd64_create_target_description): Likewise.
511 * arch/arc.c (arc_create_target_description): Likewise.
512 * arch/arm.c (arm_create_target_description): Likewise.
513 * arch/i386.c (i386_create_target_description): Likewise.
514 * arch/riscv.c (riscv_create_target_description): Update return
515 type. Handle allocate_target_description returning a unique_ptr.
516 (riscv_lookup_target_description): Update to handle unique_ptr.
517 * arch/tic6x.c (tic6x_create_target_description): Release
518 unique_ptr returned from allocate_target_description.
519 * features/microblaze-with-stack-protect.c: Regenerate.
520 * features/microblaze.c: Regenerate.
521 * features/mips-dsp-linux.c: Regenerate.
522 * features/mips-linux.c: Regenerate.
523 * features/mips64-dsp-linux.c: Regenerate.
524 * features/mips64-linux.c: Regenerate.
525 * features/nds32.c: Regenerate.
526 * features/nios2.c: Regenerate.
527 * features/or1k.c: Regenerate.
528 * features/rs6000/powerpc-32.c: Regenerate.
529 * features/rs6000/powerpc-32l.c: Regenerate.
530 * features/rs6000/powerpc-403.c: Regenerate.
531 * features/rs6000/powerpc-403gc.c: Regenerate.
532 * features/rs6000/powerpc-405.c: Regenerate.
533 * features/rs6000/powerpc-505.c: Regenerate.
534 * features/rs6000/powerpc-601.c: Regenerate.
535 * features/rs6000/powerpc-602.c: Regenerate.
536 * features/rs6000/powerpc-603.c: Regenerate.
537 * features/rs6000/powerpc-604.c: Regenerate.
538 * features/rs6000/powerpc-64.c: Regenerate.
539 * features/rs6000/powerpc-64l.c: Regenerate.
540 * features/rs6000/powerpc-7400.c: Regenerate.
541 * features/rs6000/powerpc-750.c: Regenerate.
542 * features/rs6000/powerpc-860.c: Regenerate.
543 * features/rs6000/powerpc-altivec32.c: Regenerate.
544 * features/rs6000/powerpc-altivec32l.c: Regenerate.
545 * features/rs6000/powerpc-altivec64.c: Regenerate.
546 * features/rs6000/powerpc-altivec64l.c: Regenerate.
547 * features/rs6000/powerpc-e500.c: Regenerate.
548 * features/rs6000/powerpc-e500l.c: Regenerate.
549 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
550 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
551 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
552 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
553 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
554 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
555 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
556 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
557 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
558 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
559 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
560 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
561 * features/rs6000/powerpc-vsx32.c: Regenerate.
562 * features/rs6000/powerpc-vsx32l.c: Regenerate.
563 * features/rs6000/powerpc-vsx64.c: Regenerate.
564 * features/rs6000/powerpc-vsx64l.c: Regenerate.
565 * features/rs6000/rs6000.c: Regenerate.
566 * features/rx.c: Regenerate.
567 * features/s390-gs-linux64.c: Regenerate.
568 * features/s390-linux32.c: Regenerate.
569 * features/s390-linux32v1.c: Regenerate.
570 * features/s390-linux32v2.c: Regenerate.
571 * features/s390-linux64.c: Regenerate.
572 * features/s390-linux64v1.c: Regenerate.
573 * features/s390-linux64v2.c: Regenerate.
574 * features/s390-te-linux64.c: Regenerate.
575 * features/s390-tevx-linux64.c: Regenerate.
576 * features/s390-vx-linux64.c: Regenerate.
577 * features/s390x-gs-linux64.c: Regenerate.
578 * features/s390x-linux64.c: Regenerate.
579 * features/s390x-linux64v1.c: Regenerate.
580 * features/s390x-linux64v2.c: Regenerate.
581 * features/s390x-te-linux64.c: Regenerate.
582 * features/s390x-tevx-linux64.c: Regenerate.
583 * features/s390x-vx-linux64.c: Regenerate.
584 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
585 from allocate_target_description.
586 * target-descriptions.c (allocate_target_description): Update
587 return type.
588 (print_c_tdesc::visit_pre): Release unique_ptr returned from
589 allocate_target_description.
590
591 2020-10-07 Tom Tromey <tromey@adacore.com>
592
593 * unittests/search-memory-selftests.c: New file.
594 * Makefile.in (SELFTESTS_SRCS): Add
595 unittests/search-memory-selftests.c.
596
597 2020-10-07 Tom Tromey <tromey@adacore.com>
598
599 PR gdb/16930:
600 * findcmd.c (_initialize_mem_search): Mention that the range is
601 inclusive.
602
603 2020-10-07 Tom Tromey <tromey@adacore.com>
604
605 * target.h (simple_search_memory): Don't declare.
606 * target.c (simple_search_memory): Move to gdbsupport.
607 (default_search_memory): Update.
608 * remote.c (remote_target::search_memory): Update.
609
610 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
611
612 * Makefile.in (COMPILE): Add CXXFLAGS.
613 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
614 (check-headers): Add CXXFLAGS.
615
616 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
617
618 * arc-linux-tdep.h: New file.
619 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
620 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
621 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
622 arc_linux_gregset, arc_linux_v2_regset,
623 arc_linux_iterate_over_regset_sections,
624 arc_linux_core_read_description): Implement.
625 (arc_linux_init_osabi): Set iterate_over_regset_sections.
626 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
627 (arc_gdbarch_features_create): Add.
628 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
629
630 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
631
632 * arch/arc.h: Rename "arc_gdbarch_features" to
633 "arc_arch_features".
634 * arc-tdep.h: Likewise.
635 * arc-tdep.c: Likewise.
636
637 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638
639 * infcmd.c (attach_command): Remove the redundant call to
640 `clear_proceed_status`.
641
642 2020-10-07 Kamil Rytarowski <n54@gmx.com>
643
644 * nat/netbsd-nat.c (write_memory, read_memory): Update.
645
646 2020-10-07 Kamil Rytarowski <n54@gmx.com>
647
648 * nat/netbsd-nat.c (write_memory, read_memory): Add.
649 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
650 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
651
652 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
655 (_initialize_break_catch_sig): Don't allocate array.
656
657 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * symtab.c (find_pc_line): Return unmapped addresses when the
660 requested address is also unmapped.
661
662 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
663
664 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
665 tui/tui-out.h.
666
667 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
668
669 * amd64-windows-tdep.c (amd64_windows_return_value): Use
670 type::is_vector instead of TYPE_VECTOR.
671
672 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * auto-load.c (auto_load_objfile_script_1): Don't use
675 debugfile_holder as temporary variable when stripping drive
676 letter.
677
678 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
679
680 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
681 Add TYPE_CODE_COMPLEX.
682 (amd64_windows_return_value): Fix types returned via XMM0.
683
684 2020-10-05 Alan Hayward <alan.hayward@arm.com>
685
686 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
687 AArch64/ARM maintainers.
688
689 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * NEWS: Mention set/show debug event-loop.
692
693 2020-10-02 Tom Tromey <tromey@adacore.com>
694
695 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
696 REG_EXTENDED.
697
698 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
699
700 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
701 * procfs.c (procfs_inferior_created): Remove.
702 (_initialize_procfs): Don't register procfs_inferior_created.
703
704 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * async-event.c (invoke_async_signal_handlers): Add debug
707 print.
708 (check_async_event_handlers): Likewise.
709 * event-top.c (show_debug_event_loop): New function.
710 (_initialize_event_top): Register "set debug event-loop"
711 setting.
712
713 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
716 * debug.h: Remove.
717 * infrun.c: Include gdbsupport/common-debug.h.
718 * linux-nat.c: Likewise.
719
720 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * async-event.h (create_async_signal_handler): Add name
723 parameter.
724 (create_async_event_handler): Likewise.
725 * async-event.c (struct async_signal_handler) <name>: New field.
726 (struct async_event_handler) <name>: New field.
727 (create_async_signal_handler): Assign name.
728 (create_async_event_handler): Assign name.
729 * event-top.c (async_init_signals): Pass name when creating
730 handler.
731 * infrun.c (_initialize_infrun): Likewise.
732 * record-btrace.c (record_btrace_push_target): Likewise.
733 * record-full.c (record_full_open): Likewise.
734 * remote-notif.c (remote_notif_state_allocate): Likewise.
735 * remote.c (remote_target::open_1): Likewise.
736 * tui/tui-win.c (tui_initialize_win): Likewise.
737
738 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * async-event.c (initialize_async_signal_handlers): Pass name to
741 add_file_handler
742 * event-top.c (ui_register_input_event_handler): Likewise.
743 * linux-nat.c (linux_nat_target::async): Likewise.
744 * run-on-main-thread.c (_initialize_run_on_main_thread):
745 Likewise
746 * ser-base.c (reschedule): Likewise.
747 (ser_base_async): Likewise.
748 * tui/tui-io.c: Likewise.
749 * top.h (struct ui) <num>: New field.
750 * top.c (highest_ui_num): New variable.
751 (ui::ui): Initialize num.
752
753 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * observable.h <inferior_created>: Remove parameters. Update all
756 listeners.
757 * inferior.h (post_create_inferior): Remove target parameter.
758 Update all callers.
759
760 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
761
762 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
763 and DW_MACRO_undef_strx.
764 (dwarf_decode_macros): Likewise
765 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
766 which is the value of DW_AT_str_offsets_base.
767 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
768 str_offsets_base.
769
770 2020-10-01 Kamil Rytarowski <n54@gmx.com>
771
772 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
773
774 2020-10-01 Kamil Rytarowski <n54@gmx.com>
775
776 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
777 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
778
779 2020-10-01 Kamil Rytarowski <n54@gmx.com>
780
781 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
782
783 2020-09-30 Tom de Vries <tdevries@suse.de>
784
785 PR symtab/26683
786 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
787
788 2020-09-30 Tom Tromey <tromey@adacore.com>
789
790 * dwarf2/read.c (handle_variant): Use constant_value.
791
792 2020-09-29 Tom Tromey <tom@tromey.com>
793
794 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
795 (read_file_scope, dwarf2_get_pc_bounds)
796 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
797 (read_structure_type, handle_struct_member_die)
798 (read_enumeration_type, read_array_type, read_set_type)
799 (read_tag_pointer_type, read_tag_reference_type)
800 (read_subroutine_type, read_base_type, read_subrange_type)
801 (read_full_die_1, partial_die_info::read)
802 (partial_die_info::read, by, new_symbol)
803 (dwarf2_const_value_data, dwarf2_const_value_attr)
804 (dump_die_shallow, dwarf2_fetch_constant_bytes)
805 (prepare_one_comp_unit): Update.
806 * dwarf2/attribute.h (DW_UNSND): Remove.
807
808 2020-09-29 Tom Tromey <tom@tromey.com>
809
810 * dwarf2/read.c (read_func_scope, prototyped_function_p)
811 (read_subroutine_type, partial_die_info::read)
812 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
813 (dwarf2_add_member_fn): Update.
814 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
815 * dwarf2/attribute.c (attribute::as_boolean): New method.
816
817 2020-09-29 Tom Tromey <tom@tromey.com>
818
819 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
820 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
821 method.
822 * dwarf2/attribute.c (attribute::as_virtuality): New method.
823
824 2020-09-29 Tom Tromey <tom@tromey.com>
825
826 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
827 the attribute's form.
828
829 2020-09-29 Tom Tromey <tom@tromey.com>
830
831 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
832 (dwarf2_add_member_fn): Update.
833 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
834 * dwarf2/attribute.c (attribute::defaulted): New method, from
835 is_valid_DW_AT_defaulted.
836
837 2020-09-29 Tom Tromey <tom@tromey.com>
838
839 * dwarf2/read.c (dw2_get_file_names_reader)
840 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
841 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
842 (dwarf2_symbol_mark_computed): Use as_unsigned.
843 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
844 method.
845 <form_is_section_offset>: Update comment.
846
847 2020-09-29 Tom Tromey <tom@tromey.com>
848
849 * dwarf2/read.c (dwarf2_access_attribute): Rename from
850 dwarf2_default_access_attribute. Look up attribute.
851 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
852 Update.
853
854 2020-09-29 Tom Tromey <tom@tromey.com>
855
856 * dwarf2/read.c (skip_one_die): Update.
857 (read_full_die_1): Change how reprocessing is done.
858 (partial_die_info::read): Update.
859 (read_attribute_value): Remove need_reprocess parameter.
860 (read_attribute): Likewise.
861 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
862 New method.
863
864 2020-09-29 Tom Tromey <tom@tromey.com>
865
866 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
867 (dwarf2_const_value_attr, dump_die_shallow)
868 (dwarf2_fetch_constant_bytes): Update.
869 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
870 comment.
871 <set_address>: New method.
872 (DW_ADDR): Remove.
873 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
874 (attribute::as_string, attribute::as_address): Add assert.
875
876 2020-09-29 Tom Tromey <tom@tromey.com>
877
878 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
879 (read_attribute_reprocess, read_attribute_value): Update.
880 (read_attribute): Clear requires_reprocessing.
881 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
882 form_requires_reprocessing>: New methods.
883 <string_init>: Clear requires_reprocessing.
884 <set_unsigned_reprocess>: New method.
885 <name>: Shrink by one bit.
886 <requires_reprocessing>: New member.
887 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
888 method.
889
890 2020-09-29 Tom Tromey <tom@tromey.com>
891
892 * dwarf2/read.c (read_attribute_value): Update.
893 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
894 set_unsigned>: New methods.
895 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
896
897 2020-09-29 Tom Tromey <tom@tromey.com>
898
899 * dwarf2/read.c (get_alignment, read_array_order)
900 (read_attribute_value, dwarf2_const_value_attr)
901 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
902 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
903 New methods.
904 (DW_SND): Remove.
905
906 2020-09-29 Tom Tromey <tom@tromey.com>
907
908 * dwarf2/read.c (read_attribute_value, lookup_die_type)
909 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
910 Update.
911 * dwarf2/attribute.h (struct attribute) <as_signature,
912 set_signature>: New methods.
913 (DW_SIGNATURE): Remove.
914
915 2020-09-29 Tom Tromey <tom@tromey.com>
916
917 * dwarf2/read.c (read_call_site_scope)
918 (handle_data_member_location, dwarf2_add_member_fn)
919 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
920 (partial_die_info::read, read_attribute_value)
921 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
922 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
923 (dwarf2_symbol_mark_computed): Update.
924 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
925 methods.
926 (DW_BLOCK): Remove.
927 * dwarf2/attribute.c (attribute::form_is_block): Add
928 DW_FORM_data16.
929
930 2020-09-29 Tom Tromey <tom@tromey.com>
931
932 * dwarf2/read.c (read_cutu_die_from_dwo)
933 (read_attribute_reprocess, read_attribute_value, read_attribute)
934 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
935 (dwarf2_fetch_constant_bytes): Update.
936 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
937 <set_string_noncanonical, set_string_canonical>: New methods.
938 <string_is_canonical>: Update comment.
939 <canonical_string_p>: Add assert.
940 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
941 * dwarf2/attribute.c (attribute::form_is_string): New method.
942 (attribute::string): Use it.
943
944 2020-09-29 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
947 (dump_die_shallow): Use canonical_string_p.
948 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
949 method.
950
951 2020-09-29 Tom Tromey <tom@tromey.com>
952
953 * dwarf2/read.c (partial_die_info::read)
954 (dwarf2_const_value_attr, anonymous_struct_prefix, )
955 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
956 attribute::as_string.
957
958 2020-09-29 Tom Tromey <tom@tromey.com>
959
960 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
961 DW_ADDR.
962 (attribute::string): Don't use DW_STRING.
963 (attribute::get_ref_die_offset): Don't use DW_UNSND.
964 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
965
966 2020-09-29 Tom Tromey <tom@tromey.com>
967
968 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
969 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
970 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
971 * dwarf2/attribute.h (struct attribute): Rename methods.
972 * dwarf2/attribute.c (attribute::as_address): Rename from
973 value_as_address.
974 (attribute::as_string): Rename from value_as_string.
975
976 2020-09-29 Tom Tromey <tom@tromey.com>
977
978 * dwarf2/read.c (partial_die_info::read) <case
979 DW_AT_linkage_name>: Use value_as_string.
980 (dwarf2_string_attr): Use value_as_string.
981 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
982 method.
983 * dwarf2/attribute.c (attribute::value_as_string): New method.
984
985 2020-09-29 Pedro Alves <pedro@palves.net>
986
987 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
988 defined before using '#pragma GCC diagnostic' instead of checking
989 __clang__.
990
991 2020-09-28 Tom Tromey <tom@tromey.com>
992
993 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
994 (handle_signal_stop): Update.
995 * procfs.c (procfs_target::insert_watchpoint): Update.
996 * target.h (target_have_steppable_watchpoint): Now a function.
997
998 2020-09-28 Tom Tromey <tom@tromey.com>
999
1000 * infrun.c (set_schedlock_func): Update.
1001 * target.h (target_can_lock_scheduler): Now a function.
1002
1003 2020-09-28 Tom Tromey <tom@tromey.com>
1004
1005 * inferior.h (class inferior) <has_execution>: Update.
1006 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1007 * valops.c (find_function_in_inferior)
1008 (value_allocate_space_in_inferior): Update.
1009 * top.c (kill_or_detach): Update.
1010 * target.c (target_preopen, set_target_permissions): Update.
1011 (target_has_execution_current): Remove.
1012 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1013 Update.
1014 * solib.c (update_solib_list, reload_shared_libraries): Update.
1015 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1016 * solib-dsbt.c (enable_break): Update.
1017 * score-tdep.c (score7_fetch_inst): Update.
1018 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1019 Update.
1020 * remote.c (remote_target::start_remote)
1021 (remote_target::remote_check_symbols, remote_target::open_1)
1022 (remote_target::remote_detach_1, remote_target::verify_memory)
1023 (remote_target::xfer_partial, remote_target::read_description)
1024 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1025 * record-full.c (record_full_open_1): Update.
1026 * record-btrace.c (record_btrace_target_open): Update.
1027 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1028 (value_nsstring): Update.
1029 * linux-thread-db.c (add_thread_db_info)
1030 (thread_db_find_new_threads_silently, check_thread_db_callback)
1031 (try_thread_db_load_1, record_thread): Update.
1032 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1033 Update.
1034 * linux-fork.c (checkpoint_command): Update.
1035 * infrun.c (set_non_stop, set_observer_mode)
1036 (check_multi_target_resumption, for_each_just_stopped_thread)
1037 (maybe_remove_breakpoints, normal_stop)
1038 (class infcall_suspend_state): Update.
1039 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1040 (info_program_command, attach_command): Update.
1041 * infcall.c (call_function_by_hand_dummy): Update.
1042 * inf-loop.c (inferior_event_handler): Update.
1043 * gcore.c (gcore_command, derive_heap_segment): Update.
1044 * exec.c (exec_file_command): Update.
1045 * eval.c (evaluate_subexp): Update.
1046 * compile/compile.c (compile_to_object): Update.
1047 * cli/cli-dump.c (restore_command): Update.
1048 * breakpoint.c (update_watchpoint)
1049 (update_inserted_breakpoint_locations)
1050 (insert_breakpoint_locations, get_bpstat_thread): Update.
1051 * target.h (target_has_execution): Remove macro.
1052 (target_has_execution_current): Don't declare.
1053 (target_has_execution): Rename from target_has_execution_1. Add
1054 argument default.
1055
1056 2020-09-28 Tom Tromey <tom@tromey.com>
1057
1058 * mi/mi-main.c (exec_reverse_continue)
1059 (mi_cmd_list_target_features): Update.
1060 * infrun.c (set_exec_direction_func): Update.
1061 * target.c (default_execution_direction): Update.
1062 * reverse.c (exec_reverse_once): Update.
1063 * target.h (target_can_execute_reverse): Now a function.
1064
1065 2020-09-28 Tom Tromey <tom@tromey.com>
1066
1067 * tui/tui-regs.c (tui_get_register)
1068 (tui_data_window::show_registers): Update.
1069 * thread.c (scoped_restore_current_thread::restore)
1070 (scoped_restore_current_thread::scoped_restore_current_thread):
1071 Update.
1072 * regcache-dump.c (regcache_print): Update.
1073 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1074 Update.
1075 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1076 * mep-tdep.c (current_me_module, current_options): Update.
1077 * linux-thread-db.c (thread_db_load): Update.
1078 * infcmd.c (registers_info, info_vector_command)
1079 (info_float_command): Update.
1080 * ia64-tdep.c (ia64_frame_prev_register)
1081 (ia64_sigtramp_frame_prev_register): Update.
1082 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1083 * gcore.c (derive_stack_segment): Update.
1084 * frame.c (get_current_frame, has_stack_frames): Update.
1085 * findvar.c (language_defn::read_var_value): Update.
1086 * arm-tdep.c (arm_pc_is_thumb): Update.
1087 * target.c (target_has_registers): Rename from
1088 target_has_registers_1.
1089 * target.h (target_has_registers): Remove macro.
1090 (target_has_registers): Rename from target_has_registers_1.
1091
1092 2020-09-28 Tom Tromey <tom@tromey.com>
1093
1094 * windows-tdep.c (tlb_make_value): Update.
1095 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1096 * thread.c (scoped_restore_current_thread::restore)
1097 (scoped_restore_current_thread::scoped_restore_current_thread)
1098 (thread_command): Update.
1099 * stack.c (backtrace_command_1, frame_apply_level_command)
1100 (frame_apply_all_command, frame_apply_command): Update.
1101 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1102 Update.
1103 * gcore.c (derive_stack_segment): Update.
1104 * frame.c (get_current_frame, has_stack_frames): Update.
1105 * auxv.c (info_auxv_command): Update.
1106 * ada-tasks.c (ada_build_task_list): Update.
1107 * target.c (target_has_stack): Rename from target_has_stack_1.
1108 * target.h (target_has_stack): Remove macro.
1109 (target_has_stack): Rename from target_has_stack_1.
1110
1111 2020-09-28 Tom Tromey <tom@tromey.com>
1112
1113 * target.c (target_has_memory): Rename from target_has_memory_1.
1114 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1115 * thread.c (scoped_restore_current_thread::restore)
1116 (scoped_restore_current_thread::scoped_restore_current_thread):
1117 Update.
1118 * frame.c (get_current_frame, has_stack_frames): Update.
1119 * target.h (target_has_memory): Remove macro.
1120 (target_has_memory): Rename from target_has_memory_1.
1121
1122 2020-09-28 Tom Tromey <tom@tromey.com>
1123
1124 * target.c (target_has_all_memory_1): Remove.
1125 * target.h (target_has_all_memory): Remove define.
1126 (target_has_all_memory_1): Don't declare.
1127
1128 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1129
1130 * ser-base.c: Adjust comments formatting.
1131
1132 2020-09-27 Tom Tromey <tom@tromey.com>
1133
1134 PR tui/25342:
1135 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1136
1137 2020-09-27 Tom Tromey <tom@tromey.com>
1138
1139 PR tui/25342:
1140 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1141
1142 2020-09-27 Tom Tromey <tom@tromey.com>
1143
1144 * unittests/tui-selftests.c: Update.
1145 * tui/tui-winsource.h (struct tui_source_window_base)
1146 <extra_margin, show_line_number, refresh_pad>: New methods.
1147 <m_max_length, m_pad>: New members.
1148 (tui_copy_source_line): Update.
1149 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1150 first_col, line_width, ndigits parameters. Add length.
1151 (tui_source_window_base::show_source_line): Write to pad. Line
1152 number now 0-based.
1153 (tui_source_window_base::refresh_pad): New method.
1154 (tui_source_window_base::show_source_content): Write to pad. Call
1155 refresh_pad.
1156 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1157 not refill.
1158 (tui_source_window_base::update_exec_info): Call
1159 show_line_number.
1160 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1161 method.
1162 <m_digits>: New member.
1163 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1164 and m_max_length.
1165 (tui_source_window::show_line_number): New method.
1166 * tui/tui-io.h (tui_puts): Fix comment.
1167 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1168 m_max_length.
1169
1170 2020-09-27 Tom Tromey <tom@tromey.com>
1171
1172 * tui/tui-winsource.c
1173 (tui_source_window_base::set_is_exec_point_at): Don't call
1174 show_source_line.
1175
1176 2020-09-27 Tom Tromey <tom@tromey.com>
1177
1178 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1179 method.
1180 <erase>: Update.
1181 <cursor_x, cursor_y>: Remove.
1182 <m_inner_window>: New member.
1183 (tui_py_window::rerender): Create inner window.
1184 (tui_py_window::output): Write to inner window.
1185
1186 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1187
1188 PR python/26586
1189 * cli/cli-script.c (execute_control_commands): don't set
1190 instream to nullptr here as this breaks the from_tty argument
1191 to gdb.execute in Python.
1192 (execute_user_command): set instream to nullptr here instead.
1193
1194 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1195
1196 * infrun.h (infrun_debug_printf): Fix formatting.
1197 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1198
1199 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1200
1201 * compile/compile-object-load.h (struct munmap_list): Add
1202 explicitly-defined move constructor.
1203
1204 2020-09-24 Tom Tromey <tromey@adacore.com>
1205
1206 PR tui/26638:
1207 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1208 method.
1209 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1210 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1211 (tui_prev_win): Rewrite.
1212
1213 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1214
1215 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1216 in WOW64 processes as SIGINT.
1217 * nat/windows-nat.h: Make wow64_process a shared variable.
1218 * windows-nat.c: Remove static wow64_process variable.
1219
1220 2020-09-23 Tom Tromey <tom@tromey.com>
1221
1222 PR symtab/25470:
1223 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1224 offset and bit size.
1225 * printcmd.c (print_scalar_formatted): Handle zero-length
1226 integer.
1227 (print_scalar_formatted): Use bit_size_differs_p.
1228 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1229 constant.
1230 (union type_specific): <int_stuff>: New member.
1231 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1232 methods.
1233 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1234 TYPE_SPECIFIC_FIELD.
1235 (recursive_dump_type, copy_type_recursive): Update.
1236 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1237 DW_AT_data_bit_offset.
1238
1239 2020-09-23 Tom Tromey <tom@tromey.com>
1240
1241 * utils.h (class gdb_argv): Add move operators.
1242 <append>: New methods.
1243 * compile/compile.c (build_argc_argv): Remove.
1244 (compile_args_argc): Remove.
1245 (compile_args_argv): Change type.
1246 (set_compile_args): Simplify.
1247 (append_args): Remove.
1248 (filter_args): Remove argcp parameter.
1249 (get_args): Return gdb_argv. Simplify.
1250 (compile_to_object): Update.
1251
1252 2020-09-23 Tom Tromey <tom@tromey.com>
1253
1254 * compile/compile-object-run.c (do_module_cleanup)
1255 <~do_module_cleanup> :Remove.
1256 (do_module_cleanup): Update.
1257 * compile/compile-object-load.h (struct munmap_list): Add move
1258 assignment operator.
1259 <source_file>: Now a std::string.
1260 <munmap_list>: Rename. No longer a pointer.
1261 * compile/compile-object-load.c (struct setup_sections_data): Add
1262 constructor.
1263 <setup_one_section>: Declare.
1264 <munmap_list>: Move earlier.
1265 <m_bfd>: New member.
1266 <m_last_size, m_last_section_first, m_last_prot,
1267 m_last_max_alignment>: Rename, add initializers where needed.
1268 (setup_sections_data::setup_one_section): Rename from
1269 setup_sections. Update.
1270 (compile_object_load): Update. Don't use bfd_map_over_sections.
1271
1272 2020-09-23 Tom Tromey <tom@tromey.com>
1273
1274 * compile/compile-object-run.c (struct do_module_cleanup): Add
1275 parameters to constructor. Update destructor.
1276 <source_file, scope, scope_data, out_value_type, out_value_addr,
1277 munmap_list_head, objfile_name_string>: Remove.
1278 <module>: New member.
1279 (do_module_cleanup): Update.
1280 (compile_object_run): Update.
1281
1282 2020-09-23 Tom Tromey <tom@tromey.com>
1283
1284 * compile/compile.c (eval_compile_command): Update.
1285 * compile/compile-object-run.h (compile_object_run): Take a
1286 compile_module_up.
1287 * compile/compile-object-run.c (compile_object_run): Take a
1288 compile_module_up.
1289 * compile/compile-object-load.h (struct compile_module): Add
1290 constructor, destructor.
1291 (compile_module_up): New typedef.
1292 (compile_object_load): Return compile_object_up.
1293 * compile/compile-object-load.c (compile_object_load): Return
1294 compile_module_up.
1295
1296 2020-09-23 Tom Tromey <tom@tromey.com>
1297
1298 * compile/compile-object-run.c (struct do_module_cleanup): Add
1299 constructor, destructor.
1300 <objfile_name_string>: Don't use struct hack.
1301 (do_module_cleanup): Use delete.
1302 (compile_object_run): Use new.
1303
1304 2020-09-23 Tom Tromey <tom@tromey.com>
1305
1306 * compile/compile-cplus-types.c
1307 (compile_cplus_convert_struct_or_union): Use std::vector.
1308 (compile_cplus_convert_func): Likewise.
1309 * compile/compile-c-types.c (convert_func): Use std::vector.
1310
1311 2020-09-21 Tom Tromey <tromey@adacore.com>
1312
1313 * sparc-tdep.c (sparc32_skip_prologue): Use
1314 skip_prologue_using_sal.
1315
1316 2020-09-19 Tom Tromey <tom@tromey.com>
1317
1318 * symfile.c (add_section_size_callback): Remove.
1319 (load_one_section): Rename from load_section_callback. Change
1320 parameters.
1321 (generic_load): Use foreach.
1322
1323 2020-09-19 Tom Tromey <tom@tromey.com>
1324
1325 * exec.c (add_to_section_table): Remove.
1326 (build_section_table): Use foreach.
1327
1328 2020-09-19 Tom Tromey <tom@tromey.com>
1329
1330 * elfread.c (elf_locate_sections): Change parameters.
1331 (elf_symfile_read): Use foreach.
1332
1333 2020-09-19 Tom Tromey <tom@tromey.com>
1334
1335 * cli/cli-dump.c (struct callback_data): Remove.
1336 (restore_one_section): Rename from restore_section_callback.
1337 Change parameters.
1338 (restore_binary_file): Change parameters.
1339 (restore_command): Use foreach.
1340
1341 2020-09-19 Tom Tromey <tom@tromey.com>
1342
1343 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1344 (gcore_copy_callback): Likewise.
1345 (gcore_memory_sections): Use foreach.
1346
1347 2020-09-19 Tom Tromey <tom@tromey.com>
1348
1349 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1350 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1351 parameters.
1352 (generic_elf_osabi_sniffer): Use foreach.
1353 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1354 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1355
1356 2020-09-19 Tom Tromey <tom@tromey.com>
1357
1358 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1359 (dwarf2_get_dwz_file): Use foreach.
1360 (dwarf2_locate_dwo_sections): Change parameters.
1361 (open_and_init_dwo_file): Use foreach.
1362 (dwarf2_locate_common_dwp_sections): Change parameters.
1363 (open_and_init_dwp_file): Use foreach.
1364
1365 2020-09-19 Tom Tromey <tom@tromey.com>
1366
1367 * symfile.h: (find_lowest_section): Don't declare.
1368 * symfile.c (find_lowest_section): Now static. Change
1369 parameters.
1370 (struct place_section_arg): Remove.
1371 (place_section): Change parameters.
1372 (addr_info_make_relative): Use foreach.
1373 (symfile_dummy_outputs): Remove.
1374 (default_symfile_relocate): Use foreach.
1375
1376 2020-09-19 Tom Tromey <tom@tromey.com>
1377
1378 * objfiles.c (add_to_objfile_sections): Rename from
1379 add_to_objfile_sections_full.
1380 (add_to_objfile_sections): Remove.
1381 (build_objfile_section_table): Use foreach.
1382
1383 2020-09-19 Tom Tromey <tom@tromey.com>
1384
1385 * stap-probe.c (get_stap_base_address_1): Remove.
1386 (get_stap_base_address): Use foreach.
1387
1388 2020-09-19 Tom Tromey <tom@tromey.com>
1389
1390 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1391 parameters.
1392 (gdb_bfd_close_or_warn): Use foreach.
1393
1394 2020-09-19 Tom Tromey <tom@tromey.com>
1395
1396 * corelow.c (add_to_thread_list): Change parameters.
1397 (core_target_open): Use foreach.
1398
1399 2020-09-19 Tom Tromey <tom@tromey.com>
1400
1401 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1402 existing function.
1403
1404 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1407 for arrays.
1408
1409 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1410
1411 * eval.c: Remove 'f-lang.h' include.
1412 (value_f90_subarray): Moved to f-lang.c.
1413 (eval_call): Renamed to...
1414 (evaluate_subexp_do_call): ...this, is no longer static, header
1415 comment moved into header file.
1416 (evaluate_funcall): Update call to eval_call.
1417 (skip_undetermined_arglist): Moved to f-lang.c.
1418 (fortran_value_subarray): Likewise.
1419 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1420 moved to evaluate_subexp_f.
1421 (calc_f77_array_dims): Moved to f-lang.c
1422 * expprint.c (print_subexp_funcall): New function.
1423 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1424 moved to print_subexp_f, OP_FUNCALL uses new function.
1425 (dump_subexp_body_funcall): New function.
1426 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1427 moved to dump_subexp_f, OP_FUNCALL uses new function.
1428 * expression.h (evaluate_subexp_do_call): Declare.
1429 * f-lang.c (value_f90_subarray): Moved from eval.c.
1430 (skip_undetermined_arglist): Likewise.
1431 (calc_f77_array_dims): Likewise.
1432 (fortran_value_subarray): Likewise.
1433 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1434 (operator_length_f): Likewise.
1435 (print_subexp_f): Likewise.
1436 (dump_subexp_body_f): Likewise.
1437 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1438 declaration of this operation to here.
1439 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1440 support moved to operator_length_f.
1441 * parser-defs.h (dump_subexp_body_funcall): Declare.
1442 (print_subexp_funcall): Declare.
1443 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1444 fortran-operator.def.
1445
1446 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * eval.c (fortran_value_subarray): New function, content is taken
1449 from...
1450 (evaluate_subexp_standard): ...here, in two places. Now arrays
1451 and strings both call the new function.
1452 (calc_f77_array_dims): Add header comment, handle strings.
1453
1454 2020-09-18 Victor Collod <vcollod@nvidia.com>
1455
1456 PR gdb/26635
1457 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1458 (i386_analyze_prologue): Call i386_skip_endbr.
1459
1460 2020-09-18 Tom Tromey <tromey@adacore.com>
1461
1462 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1463 (windows_nat_target::wait): Update.
1464 * target/wait.h (enum target_wait_flag): New. Use
1465 DEF_ENUM_FLAGS_TYPE.
1466 * target/target.h (target_wait): Change type of options.
1467 * target.h (target_options_to_string, default_target_wait):
1468 Update.
1469 (struct target_ops) <wait>: Change type of options.
1470 * target.c (target_wait, default_target_wait, do_option): Change
1471 type of "options".
1472 (target_options_to_string): Likewise.
1473 * target-delegates.c: Rebuild.
1474 * target-debug.h (target_debug_print_target_wait_flags): Rename
1475 from target_debug_print_options.
1476 * sol-thread.c (class sol_thread_target) <wait>: Update.
1477 (sol_thread_target::wait): Update.
1478 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1479 (rs6000_nat_target::wait): Update.
1480 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1481 Update.
1482 (remote_target::wait_ns, remote_target::wait_as): Change type of
1483 "options".
1484 (remote_target::wait): Update.
1485 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1486 (gdbsim_target::wait): Update.
1487 * record-full.c (class record_full_base_target) <wait>: Update.
1488 (record_full_wait_1): Change type of "options".
1489 (record_full_base_target::wait): Update.
1490 * record-btrace.c (class record_btrace_target) <wait>: Update.
1491 (record_btrace_target::wait): Update.
1492 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1493 Update.
1494 (ravenscar_thread_target::wait): Update.
1495 * procfs.c (class procfs_target) <wait>: Update.
1496 (procfs_target::wait): Update.
1497 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1498 * obsd-nat.c (obsd_nat_target::wait): Update.
1499 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1500 (nto_procfs_target::wait): Update.
1501 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1502 * nbsd-nat.c (nbsd_wait): Change type of "options".
1503 (nbsd_nat_target::wait): Update.
1504 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1505 (thread_db_target::wait): Update.
1506 * linux-nat.h (class linux_nat_target) <wait>: Update.
1507 * linux-nat.c (linux_nat_target::wait): Update.
1508 (linux_nat_wait_1): Update.
1509 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1510 "options".
1511 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1512 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1513 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1514 (go32_nat_target::wait): Update.
1515 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1516 * gnu-nat.c (gnu_nat_target::wait): Update.
1517 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1518 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1519 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1520 * darwin-nat.c (darwin_nat_target::wait): Update.
1521 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1522 (bsd_uthread_target::wait): Update.
1523 * aix-thread.c (class aix_thread_target) <wait>: Update.
1524 (aix_thread_target::wait): Update.
1525
1526 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * compile/compile-object-run.c (create_copied_type_recursive): New
1529 function.
1530 (compile_object_run): Use new function.
1531
1532 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1533
1534 * NEWS: Mention x86_64 Cygwin core file support.
1535
1536 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1537
1538 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1539 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1540
1541 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1542
1543 * windows-tdep.h: Add prototypes.
1544 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1545 (i386_windows_core_pid_to_str): Move and rename ...
1546 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1547 (windows_core_pid_to_str): ... and here.
1548 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1549
1550 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1551 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1552 (amd64_windows_init_abi_common): ... and register.
1553
1554 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1555
1556 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1557 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1558
1559 2020-09-18 Pedro Alves <pedro@palves.net>
1560
1561 PR gdb/26631
1562 * thread.c (thread_find_command): Switch inferior before calling
1563 target methods.
1564
1565 2020-09-17 Tom Tromey <tromey@adacore.com>
1566
1567 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1568 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1569 (tdesc_arch_data_up): New typedef.
1570 (tdesc_use_registers, tdesc_data_alloc): Update.
1571 (tdesc_data_cleanup): Don't declare.
1572 * target-descriptions.c (tdesc_data_alloc): Return a
1573 tdesc_arch_data_up.
1574 (tdesc_arch_data_deleter::operator()): Rename from
1575 tdesc_data_cleanup. Change argument type.
1576 (tdesc_use_registers): Change early_data to an rvalue reference.
1577 (tdesc_use_registers): Don't use delete.
1578 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1579 * s390-tdep.c (s390_gdbarch_init): Update.
1580 * rx-tdep.c (rx_gdbarch_init): Update.
1581 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1582 * riscv-tdep.c (riscv_gdbarch_init): Update.
1583 * or1k-tdep.c (or1k_gdbarch_init): Update.
1584 * nios2-tdep.c (nios2_gdbarch_init): Update.
1585 * nds32-tdep.c (nds32_gdbarch_init): Update.
1586 * mips-tdep.c (mips_gdbarch_init): Update.
1587 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1588 * m68k-tdep.c (m68k_gdbarch_init): Update.
1589 * i386-tdep.c (i386_gdbarch_init): Update.
1590 * arm-tdep.c (arm_gdbarch_init): Update.
1591 * arc-tdep.c (arc_tdesc_init): Update.
1592 (arc_gdbarch_init): Update.
1593 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1594
1595 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1596
1597 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1598 for WOW64 processes.
1599
1600 2020-09-17 Tom Tromey <tom@tromey.com>
1601
1602 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1603
1604 2020-09-17 Tom Tromey <tom@tromey.com>
1605
1606 * value.c (preserve_values): Update.
1607 * python/py-type.c (save_objfile_types): Update.
1608 * guile/scm-type.c (save_objfile_types): Update.
1609 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1610 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1611 * compile/compile-object-run.c (compile_object_run): Update.
1612
1613 2020-09-17 Tom Tromey <tom@tromey.com>
1614
1615 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1616 Remove.
1617 <m_table>: Now htab_up.
1618 * typeprint.c (typedef_hash_table::recursively_update)
1619 (typedef_hash_table::add_template_parameters)
1620 (typedef_hash_table::typedef_hash_table): Update.
1621 (typedef_hash_table::~typedef_hash_table): Remove.
1622 (typedef_hash_table::typedef_hash_table)
1623 (typedef_hash_table::find_global_typedef)
1624 (typedef_hash_table::find_typedef): Update.
1625
1626 2020-09-17 Tom Tromey <tom@tromey.com>
1627
1628 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1629
1630 2020-09-17 Tom Tromey <tom@tromey.com>
1631
1632 * linespec.c (class decode_compound_collector)
1633 <~decode_compound_collector>: Remove.
1634 <m_unique_syms>: Now htab_up.
1635 (decode_compound_collector::operator ()): Update.
1636 (class symtab_collector) <~symtab_collector>: Remove.
1637 <m_symtab_table>: Now htab_up.
1638 (symtab_collector::operator ()): Update.
1639
1640 2020-09-17 Tom Tromey <tom@tromey.com>
1641
1642 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1643 (filename_seen_cache::clear): Update.
1644 (~filename_seen_cache): Remove.
1645 (filename_seen_cache::seen): Update.
1646 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1647 htab_up.
1648 <~filename_seen_cache>: Remove.
1649 <traverse>: Update.
1650
1651 2020-09-17 Tom Tromey <tom@tromey.com>
1652
1653 * completer.c (completion_tracker::discard_completions)
1654 (completion_tracker::~completion_tracker)
1655 (completion_tracker::maybe_add_completion)
1656 (completion_tracker::remove_completion)
1657 (completion_tracker::recompute_lowest_common_denominator)
1658 (completion_tracker::build_completion_result): Update.
1659 * completer.h (class completion_tracker) <have_completions>:
1660 Update.
1661 <m_entries_hash>: Now htab_up.
1662
1663 2020-09-17 Tom Tromey <tom@tromey.com>
1664
1665 * breakpoint.c (ambiguous_names_p): Use htab_up.
1666
1667 2020-09-17 Tom Tromey <tom@tromey.com>
1668
1669 * auto-load.c (struct auto_load_pspace_info)
1670 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1671 <loaded_script_files, loaded_script_texts>: Change type to
1672 htab_up.
1673 (~auto_load_pspace_info) Remove.
1674 (init_loaded_scripts_info, maybe_add_script_file)
1675 (maybe_add_script_text, auto_load_info_scripts): Update.
1676
1677 2020-09-17 Tom Tromey <tromey@adacore.com>
1678
1679 * c-exp.y (name_obstack): Now static.
1680
1681 2020-09-17 Chungyi Chi <demonic@csie.io>
1682
1683 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1684
1685 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1688 (add_solib_catchpoint): Likewise.
1689 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1690 to bool.
1691 (add_solib_catchpoint): Change int parameter/variable to bool.
1692 (catch_load_or_unload): Likewise.
1693 (init_catchpoint): Likewise.
1694 (create_fork_vfork_event_catchpoint): Likewise.
1695 (catch_fork_command_1): Likewise.
1696 (catch_exec_command_1): Likewise.
1697
1698 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1701 Change instance_flags to m_instance_flags.
1702
1703 2020-09-16 Tom Tromey <tromey@adacore.com>
1704
1705 PR gdb/26598:
1706 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1707
1708 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1709
1710 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1711 PL_FLAG_EXEC.
1712 (fbsd_nat_target::insert_exec_catchpoint)
1713 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1714 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1715 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1716
1717 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1718
1719 * configure.ac: Remove check for kinfo_getvmmap().
1720 * configure, config.in: Regenerate.
1721 * fbsd-nat.c (fbsd_read_mapping): Remove
1722 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1723 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1724 kinfo_get_vmmap() are always present.
1725
1726 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1727
1728 * fbsd-nat.c: Always include support for
1729 TARGET_OBJECT_SIGNAL_INFO.
1730
1731 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1732
1733 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1734 sysctl and remove procfs fallback.
1735
1736 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1737
1738 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1739 * fbsd-nat.h: Likewise.
1740
1741 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1742
1743 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1744 argument.
1745
1746 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1747
1748 * ada-lang.c (ada_language_data): Delete.
1749 (ada_language): Remove references to ada_language_data.
1750 * c-lang.c (c_language_data): Delete.
1751 (c_language): Remove references to c_language_data.
1752 (cplus_language_data): Delete.
1753 (cplus_language): Remove references to cplus_language_data.
1754 (asm_language_data): Delete.
1755 (asm_language): Remove references to asm_language_data.
1756 (minimal_language_data): Delete.
1757 (minimal_language): Remove references to minimal_language_data.
1758 * d-lang.c (d_language_data): Delete.
1759 (d_language): Remove references to d_language_data.
1760 * f-lang.c (f_language_data): Delete.
1761 (f_language): Remove references to f_language_data.
1762 * go-lang.c (go_language_data): Delete.
1763 (go_language): Remove references to go_language_data.
1764 * language.c (unknown_language_data): Delete.
1765 (unknown_language): Remove references to unknown_language_data.
1766 (auto_language_data): Delete.
1767 (auto_language): Remove references to auto_language_data.
1768 * language.h (language_data): Delete struct.
1769 (language_defn): No longer inherit from language_data.
1770 * m2-lang.c (m2_language_data): Delete.
1771 (m2_language): Remove references to m2_language_data.
1772 * objc-lang.c (objc_language_data): Delete.
1773 (objc_language): Remove references to objc_language_data.
1774 * opencl-lang.c (opencl_language_data): Delete.
1775 (opencl_language): Remove references to opencl_language_data.
1776 * p-lang.c (pascal_language_data): Delete.
1777 (pascal_language): Remove references to pascal_language_data.
1778 * rust-lang.c (rust_language_data): Delete.
1779 (rust_language): Remove references to rust_language_data.
1780
1781 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1784 initializer.
1785 (ada_language::opcode_print_table): New member function.
1786 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1787 (c_language::opcode_print_table): New member function.
1788 (cplus_language_data): Remove la_op_print_tab initializer.
1789 (cplus_language::opcode_print_table): New member function.
1790 (asm_language_data): Remove la_op_print_tab initializer.
1791 (asm_language::opcode_print_table): New member function.
1792 (minimal_language_data): Remove la_op_print_tab initializer.
1793 (minimal_language::opcode_print_table): New member function.
1794 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1795 (d_language::opcode_print_table): New member function.
1796 * expprint.c (print_subexp_standard): Update call to
1797 opcode_print_table.
1798 (op_string): Likewise.
1799 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1800 (f_language::opcode_print_table): New member function.
1801 * go-lang.c (go_language_data): Remove la_op_print_tab
1802 initializer.
1803 (go_language::opcode_print_table): New member function.
1804 * language.c (unknown_language_data): Remove la_op_print_tab
1805 initializer.
1806 (unknown_language::opcode_print_table): New member function.
1807 (auto_language_data): Remove la_op_print_tab initializer.
1808 (auto_language::opcode_print_table): New member function.
1809 * language.h (language_data): Remove la_op_print_tab field.
1810 (language_defn::opcode_print_table): Declare new member function.
1811 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1812 initializer.
1813 (m2_language::opcode_print_table): New member function.
1814 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1815 initializer.
1816 (objc_language::opcode_print_table): New member function.
1817 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1818 initializer.
1819 (opencl_language::opcode_print_table): New member function.
1820 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1821 initializer.
1822 (pascal_language::opcode_print_table): New member function.
1823 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1824 initializer.
1825 (rust_language::opcode_print_table): New member function.
1826
1827 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1830 (ada_language::expression_ops): New member function.
1831 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1832 (c_language::expression_ops): New member function.
1833 (cplus_language_data): Remove la_exp_desc initializer.
1834 (cplus_language::expression_ops): New member function.
1835 (asm_language_data): Remove la_exp_desc initializer.
1836 (asm_language::expression_ops): New member function.
1837 (minimal_language_data): Remove la_exp_desc initializer.
1838 (minimal_language::expression_ops): New member function.
1839 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1840 (d_language::expression_ops): New member function.
1841 * eval.c (evaluate_subexp): Update call to expression_ops.
1842 * expprint.c (print_subexp): Likewise.
1843 (op_name): Likewise.
1844 (dump_subexp_body): Likewise.
1845 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1846 (f_language::expression_ops): New member function.
1847 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1848 (go_language::expression_ops): New member function.
1849 * language.c (language_defn::expression_ops): New function.
1850 (unknown_language_data): Remove la_exp_desc initializer.
1851 (auto_language_data): Likewise.
1852 * language.h (language_data): Remove la_exp_desc field.
1853 (language_defn::expression_ops): Declare new member function.
1854 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1855 (m2_language::expression_ops): New member function.
1856 * objc-lang.c (objc_language_data): Remove la_exp_desc
1857 initializer.
1858 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1859 initializer.
1860 (opencl_language::expression_ops): New member function.
1861 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1862 * parse.c (operator_length): Update call to expression_ops.
1863 (exp_iterate): Likewise.
1864 * rust-lang.c (rust_language_data): Remove la_exp_desc
1865 initializer.
1866 (ruse_language::expression_ops): New member function.
1867
1868 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1871 initializer.
1872 (ada_language::varobj_ops): New member function.
1873 * c-lang.c (c_language_data): Remove la_varobj_ops
1874 initializer.
1875 (cplus_language_data): Likewise.
1876 (cplus_language::varobj_ops): New member function.
1877 (asm_language_data): Remove la_varobj_ops initializer.
1878 (minimal_language_data): Likewise.
1879 * d-lang.c (d_language_data): Likewise.
1880 * f-lang.c (f_language_data): Likewise.
1881 * go-lang.c (go_language_data): Likewise.
1882 * language.c (language_defn::varobj_ops): New function.
1883 (unknown_language_data): Remove la_varobj_ops
1884 initializer.
1885 (auto_language_data): Likewise.
1886 * language.h (language_data): Remove la_varobj_ops field.
1887 (language_defn::varobj_ops): Declare new member function.
1888 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1889 * objc-lang.c (objc_language_data): Likewise.
1890 * opencl-lang.c (opencl_language_data): Likewise.
1891 * p-lang.c (pascal_language_data): Likewise.
1892 * rust-lang.c (rust_language_data): Likewise.
1893 * varobj.c (varobj_create): Update call to varobj_ops.
1894 * varobj.h (default_varobj_ops): Delete define.
1895
1896 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1899 initializer.
1900 * c-lang.c (c_language_data): Likewise.
1901 (c_language::macro_expansion): New member function.
1902 (cplus_language_data): Likewise.
1903 (cplus_language::macro_expansion): New member function.
1904 (asm_language_data): Likewise.
1905 (asm_language::macro_expansion): New member function.
1906 (minimal_language_data): Likewise.
1907 (minimal_language::macro_expansion): New member function.
1908 * d-lang.c (d_language_data): Remove la_macro_expansion
1909 initializer.
1910 * f-lang.c (f_language_data): Likewise.
1911 * go-lang.c (go_language_data): Likewise.
1912 * language.c (unknown_language_data): Likewise.
1913 (auto_language_data): Likewise.
1914 * language.h (language_data): Remove la_macro_expansion field.
1915 (language_defn::macro_expansion): New member function.
1916 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1917 initializer.
1918 * objc-lang.c (objc_language_data): Likewise.
1919 (objc_language::macro_expansion): New member function.
1920 * opencl-lang.c (opencl_language_data): Likewise.
1921 (opencl_language::macro_expansion): New member function.
1922 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1923 initializer.
1924 * rust-lang.c (rust_language_data): Likewise.
1925 * symtab.c (default_collect_symbol_completion_matches_break_on):
1926 Update call to macro_expansion.
1927
1928 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * ada-lang.c (ada_language_data): Remove la_array_ordering
1931 initializer.
1932 * c-lang.c (c_language_data): Likewise.
1933 (cplus_language_data): Likewise.
1934 (asm_language_data): Likewise.
1935 (minimal_language_data): Likewise.
1936 * d-lang.c (d_language_data): Likewise.
1937 * dwarf2/read.c (read_array_order): Update for call to
1938 array_ordering.
1939 * f-lang.c (f_language_data): Remove la_array_ordering
1940 initializer.
1941 (f_language::array_ordering): New member function.
1942 * go-lang.c (go_language_data): Remove la_array_ordering
1943 initializer.
1944 * language.c (unknown_language_data): Likewise.
1945 (auto_language_data): Likewise.
1946 * language.h (language_data): Delete la_array_ordering field.
1947 (language_defn::array_ordering): New member function.
1948 * m2-lang.c (m2_language_data): Remove la_array_ordering
1949 initializer.
1950 * objc-lang.c (objc_language_data): Likewise.
1951 * opencl-lang.c (opencl_language_data): Likewise.
1952 * p-lang.c (pascal_language_data): Likewise.
1953 * rust-lang.c (rust_language_data): Likewise.
1954
1955 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1958 initializer.
1959 * c-lang.c (c_language_data): Likewise.
1960 (cplus_language_data): Likewise.
1961 (asm_language_data): Likewise.
1962 (minimal_language_data): Likewise.
1963 * d-lang.c (d_language_data): Likewise.
1964 * f-lang.c (f_language_data): Likewise.
1965 (f_language::case_sensitivity): New member function.
1966 * go-lang.c (go_language_data): Remove la_case_sensitivity
1967 initializer.
1968 * language.c (enum case_mode): Moved here from language.h.
1969 (case_mode): Make static.
1970 (show_case_command): Update for case_sensitivity being a method.
1971 (set_case_command): Likewise.
1972 (set_range_case): Likewise.
1973 (unknown_language_data): Remove la_case_sensitivity initializer.
1974 (auto_language_data): Likewise.
1975 * language.h (case_mode): Delete, move enum declaration to
1976 language.c.
1977 (language_data): Delete la_case_sensitivity field.
1978 (language_defn::case_sensitivity): New member function.
1979 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1980 initializer.
1981 * objc-lang.c (objc_language_data): Likewise.
1982 * opencl-lang.c (opencl_language_data): Likewise.
1983 * p-lang.c (pascal_language_data): Likewise.
1984 * rust-lang.c (rust_language_data): Likewise.
1985
1986 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ada-lang.c (ada_language_data): Remove la_range_check
1989 initializer.
1990 * c-lang.c (c_language_data): Likewise.
1991 (cplus_language_data): Likewise.
1992 (asm_language_data): Likewise.
1993 (minimal_language_data): Likewise.
1994 * d-lang.c (d_language_data): Likewise.
1995 * f-lang.c (f_language_data): Likewise.
1996 (f_language::range_checking_on_by_default): New member function.
1997 * go-lang.c (go_language_data): Remove la_range_check initializer.
1998 * language.c (enum range_mode): Moved here from language.h.
1999 (range_mode): Made static.
2000 (show_range_command): Update to use
2001 range_checking_on_by_default.
2002 (set_range_command): Likewise.
2003 (set_range_case): Likewise.
2004 (unknown_language_data): Remove la_range_check initializer.
2005 (auto_language_data): Likewise.
2006 * language.h (range_mode): Delete. Enum definition moved to
2007 language.c.
2008 (language_data): Remove la_range_check field.
2009 (language_defn::range_checking_on_by_default): New member
2010 function.
2011 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2012 (m2_language::range_checking_on_by_default): New member function.
2013 * objc-lang.c (objc_language_data): Remove la_range_check
2014 initializer.
2015 * opencl-lang.c (opencl_language_data): Likewise.
2016 * p-lang.c (pascal_language_data): Likewise.
2017 (pascal_language::range_checking_on_by_default): New member
2018 function.
2019 * rust-lang.c (rust_language_data): Remove la_range_check
2020 initializer.
2021 (rust_language::range_checking_on_by_default): New member
2022 function.
2023
2024 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * dwarf2/read.c (dwarf2_physname): Remove special case for
2027 language_go.
2028 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2029 member function.
2030
2031 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * ada-lang.c (ada_language_data): Remove
2034 la_store_sym_names_in_linkage_form_p initializer.
2035 (ada_language::store_sym_names_in_linkage_form_p): New member
2036 function.
2037 * c-lang.c (c_language_data): Remove
2038 la_store_sym_names_in_linkage_form_p initializer.
2039 (c_language::store_sym_names_in_linkage_form_p): New member
2040 function.
2041 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2042 initializer.
2043 (asm_language_data): Likewise.
2044 (asm_language::store_sym_names_in_linkage_form_p): New member
2045 function.
2046 (minimal_language_data): Remove
2047 la_store_sym_names_in_linkage_form_p initializer.
2048 (minimal_language::store_sym_names_in_linkage_form_p): New member
2049 function.
2050 * d-lang.c (d_language_data): Remove
2051 la_store_sym_names_in_linkage_form_p initializer.
2052 * dwarf2/read.c (dwarf2_physname): Update call to
2053 store_sym_names_in_linkage_form_p.
2054 * f-lang.c (f_language_data): Remove
2055 la_store_sym_names_in_linkage_form_p initializer.
2056 * go-lang.c (go_language_data): Remove
2057 la_store_sym_names_in_linkage_form_p initializer.
2058 * language.c (unknown_language_data): Remove
2059 la_store_sym_names_in_linkage_form_p initializer.
2060 (unknown_language::store_sym_names_in_linkage_form_p): New member
2061 function.
2062 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2063 initializer.
2064 (auto_language::store_sym_names_in_linkage_form_p): New member
2065 function.
2066 * language.h (language_data): Remove
2067 la_store_sym_names_in_linkage_form_p member variable.
2068 (language_defn::store_sym_names_in_linkage_form_p): New member
2069 function.
2070 * m2-lang.c (m2_language_data): Remove
2071 la_store_sym_names_in_linkage_form_p initializer.
2072 * objc-lang.c (objc_language_data): Likewise.
2073 * opencl-lang.c (opencl_language_data): Likewise.
2074 * p-lang.c (pascal_language_data): Likewise.
2075 * rust-lang.c (rust_language_data): Likewise.
2076
2077 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * ada-lang.c (ada_language_data): Remove string_lower_bound
2080 initializer.
2081 * c-lang.c (c_language_data): Likewise.
2082 (cplus_language_data): Likewise.
2083 (asm_language_data): Likewise.
2084 (minimal_language_data): Likewise.
2085 * d-lang.c (d_language_data): Likewise.
2086 * f-lang.c (f_language_data): Likewise.
2087 * go-lang.c (go_language_data): Likewise.
2088 * language.c (unknown_language_data): Likewise.
2089 (auto_language_data): Likewise.
2090 * language.h (language_data): Remove string_lower_bound field.
2091 (language_defn::string_lower_bound): New member function.
2092 * m2-lang.c (m2_language_data): Remove string_lower_bound
2093 initializer.
2094 (m2_language::string_lower_bound): New member function.
2095 * objc-lang.c (objc_language_data): Remove string_lower_bound
2096 initializer.
2097 * opencl-lang.c (opencl_language_data): Likewise.
2098 * p-lang.c (pascal_language_data): Likewise.
2099 * rust-lang.c (rust_language_data): Likewise.
2100 * valops.c (value_cstring): Update call to string_lower_bound.
2101 (value_string): Likewise.
2102 * value.c (allocate_repeated_value): Likewise.
2103
2104 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * valops.c (value_repeat): Fix incorrect argument name in comment.
2107
2108 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * ada-lang.c (ada_language_data): Remove c_style_arrays
2111 initializer.
2112 (ada_language::c_style_arrays_p): New member fuction.
2113 * c-lang.c (c_language_data): Remove c_style_arrays
2114 initializer.
2115 (cplus_language_data): Likewise.
2116 (asm_language_data): Likewise.
2117 (minimal_language_data): Likewise.
2118 * d-lang.c (d_language_data): Likewise.
2119 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2120 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2121 (f_language::c_style_arrays_p): New member function.
2122 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2123 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2124 * language.c (unknown_language_data): Remove c_style_arrays
2125 initializer.
2126 (auto_language_data): Likewise.
2127 * language.h (language_data): Remove c_style_arrays field.
2128 (language_defn::c_style_arrays_p): New member function.
2129 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2130 (m2_language::c_style_arrays_p): New member function.
2131 * objc-lang.c (objc_language_data): Remove c_style_arrays
2132 initializer.
2133 * opencl-lang.c (opencl_language_data): Likewise.
2134 * p-lang.c (pascal_language_data): Likewise.
2135 * rust-lang.c (rust_language_data): Likewise.
2136 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2137 and update local variable to a bool.
2138 * valops.c (value_cast): Update call to c_style_arrays_p.
2139 (value_array): Likewise.
2140 * value.c (coerce_array): Likewise.
2141
2142 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * ada-lang.c (ada_language_data): Remove la_language initializer.
2145 * c-lang.c (c_language_data): Likewise.
2146 (cplus_language_data): Likewise.
2147 (asm_language_data): Likewise.
2148 (minimal_language_data): Likewise.
2149 * d-lang.c (d_language_data): Likewise.
2150 * f-lang.c (f_language_data): Likewise.
2151 * go-lang.c (go_language_data): Likewise.
2152 * language.c (unknown_language_data): Likewise.
2153 (auto_language_data): Likewise.
2154 * language.h (language_data): Remove la_language field.
2155 (language_defn::language_defn): Initialise la_language field.
2156 (language_defn::la_language): New member variable.
2157 * m2-lang.c (m2_language_data): Remove la_language field.
2158 * objc-lang.c (objc_language_data): Likewise.
2159 * opencl-lang.c (opencl_language_data): Likewise.
2160 * p-lang.c (pascal_language_data): Likewise.
2161 * rust-lang.c (rust_language_data): Likewise.
2162
2163 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * ada-lang.c (ada_extensions): Delete, moved into
2166 ada_language::filename_extensions.
2167 (ada_language_data): Remove la_filename_extensions initializer.
2168 (ada_language::filename_extensions): New member function.
2169 * c-lang.c (c_extensions): Delete, moved into
2170 c_language::filename_extensions.
2171 (c_language_data): Remove la_filename_extensions initializer.
2172 (c_language::filename_extensions): New member function.
2173 (cplus_extensions): Delete, moved into
2174 cplus_language::filename_extensions.
2175 (cplus_language_data): Remove la_filename_extensions initializer.
2176 (cplus_language::filename_extensions): New member function.
2177 (asm_extensions): Delete, moved into
2178 asm_language::filename_extensions.
2179 (asm_language_data): Remove la_filename_extensions initializer.
2180 (asm_language::filename_extensions): New member function.
2181 (minimal_language_data): Remove la_filename_extensions
2182 initializer.
2183 * d-lang.c (d_extensions): Delete, moved into
2184 d_language::filename_extensions.
2185 (d_language_data): Remove la_filename_extensions initializer.
2186 (d_language::filename_extensions): New member function.
2187 * f-lang.c (f_extensions): Delete, moved into
2188 f_language::filename_extensions.
2189 (f_language_data): Remove la_filename_extensions initializer.
2190 (f_language::filename_extensions): New member function.
2191 * go-lang.c (go_language_data): Remove la_filename_extensions
2192 initializer.
2193 * language.c (add_set_language_command): Update now that
2194 filename_extensions returns a vector.
2195 (unknown_language_data): Remove la_filename_extensions
2196 initializer.
2197 (auto_language_data): Likewise.
2198 * language.h (language_data): Remove la_filename_extensions field.
2199 (language_defn::filename_extensions): New member function.
2200 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2201 initializer.
2202 * objc-lang.c (objc_extensions): Delete, moved into
2203 objc_language::filename_extensions.
2204 (objc_language_data): Remove la_filename_extensions initializer.
2205 (objc_language::filename_extensions): New member function.
2206 * opencl-lang.c (opencl_language_data): Remove
2207 la_filename_extensions initializer.
2208 * p-lang.c (pascal_extensions): Delete, moved into
2209 pascal_language::filename_extensions.
2210 (pascal_language_data): Remove la_filename_extensions initializer.
2211 (pascal_language::filename_extensions): New member function.
2212 * rust-lang.c (rust_extensions): Delete, moved into
2213 rust_language::filename_extensions.
2214 (rust_language_data): Remove la_filename_extensions initializer.
2215 (rust_language::filename_extensions): New member function.
2216 * symfile.c (add_filename_language): Add new assert.
2217
2218 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * ada-lang.c (ada_language_data): Remove la_name and
2221 la_natural_name initializers.
2222 (ada_language::name): New member function.
2223 (ada_language::natural_name): New member function.
2224 * c-lang.c (c_language_data): Remove la_name and
2225 la_natural_name initializers.
2226 (c_language::name): New member function.
2227 (c_language::natural_name): New member function.
2228 (cplus_language_data): Remove la_name and
2229 la_natural_name initializers.
2230 (cplus_language::name): New member function.
2231 (cplus_language::natural_name): New member function.
2232 (asm_language_data): Remove la_name and
2233 la_natural_name initializers.
2234 (asm_language::name): New member function.
2235 (asm_language::natural_name): New member function.
2236 (minimal_language_data): Remove la_name and
2237 la_natural_name initializers.
2238 (minimal_language::name): New member function.
2239 (minimal_language::natural_name): New member function.
2240 * compile/compile.c (compile_to_object): Update call to
2241 lanugage_defn::name.
2242 * d-lang.c (d_language_data): Remove la_name and
2243 la_natural_name initializers.
2244 (d_language::name): New member function.
2245 (d_language::natural_name): New member function.
2246 * expprint.c (print_subexp_standard): Update call to
2247 language_defn::name.
2248 (dump_raw_expression): Likewise
2249 (dump_prefix_expression): Likewise.
2250 * f-lang.c (f_language_data): Remove la_name and
2251 la_natural_name initializers.
2252 (f_language::name): New member function.
2253 (f_language::natural_name): New member function.
2254 * go-lang.c (go_language_data): Remove la_name and
2255 la_natural_name initializers.
2256 (go_language::name): New member function.
2257 (go_language::natural_name): New member function.
2258 * language.c (show_language_command): Update call to
2259 language_defn::name.
2260 (set_language_command): Likewise.
2261 (language_enum): Likewise.
2262 (language_str): Likewise.
2263 (add_set_language_command): Likewise, use
2264 language_defn::natural_name in the doc string.
2265 (unknown_language_data): Remove la_name and
2266 la_natural_name initializers.
2267 (unknown_language::name): New member function.
2268 (unknown_language::natural_name): New member function.
2269 (auto_language_data): Remove la_name and
2270 la_natural_name initializers.
2271 (auto_language::name): New member function.
2272 (auto_language::natural_name): New member function.
2273 (language_lookup_primitive_type_as_symbol): Update call to
2274 language_defn::name.
2275 * language.h (language_data): Remove la_name and la_natural_name
2276 member variables.
2277 (language_defn::name): New member function.
2278 (language_defn::natural_name): New member function.
2279 * m2-lang.c (m2_language_data): Remove la_name and
2280 la_natural_name initializers.
2281 (m2_language::name): New member function.
2282 (m2_language::natural_name): New member function.
2283 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2284 language_defn::natural_name.
2285 * objc-lang.c (objc_language_data): Remove la_name and
2286 la_natural_name initializers.
2287 (objc_language::name): New member function.
2288 (objc_language::natural_name): New member function.
2289 * opencl-lang.c (opencl_language_data): Remove la_name and
2290 la_natural_name initializers.
2291 (opencl_language::name): New member function.
2292 (opencl_language::natural_name): New member function.
2293 * p-lang.c (pascal_language_data): Remove la_name and
2294 la_natural_name initializers.
2295 (pascal_language::name): New member function.
2296 (pascal_language::natural_name): New member function.
2297 * rust-lang.c (rust_language_data): Remove la_name and
2298 la_natural_name initializers.
2299 (rust_language::name): New member function.
2300 (rust_language::natural_name): New member function.
2301 * symtab.c (lookup_language_this): Update call to
2302 language_defn::name.
2303
2304 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2305
2306 * ada-lang.c (ada_language_data): Remove la_name_of_this
2307 initializer.
2308 * ax-gdb.c (gen_expr): Update call to name_of_this.
2309 * c-exp.y (classify_name): Likewise.
2310 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2311 (cplus_language_data): Likewise.
2312 (cplus_language::name_of_this): New member function.
2313 (asm_language_data): Remove la_name_of_this initializer.
2314 (minimal_language_data): Likewise.
2315 * d-lang.c (d_language_data): Likewise.
2316 (d_language::name_of_this): New member function.
2317 * expprint.c (print_subexp_standard): Update call to name_of_this.
2318 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2319 * go-lang.c (go_language_data): Likewise.
2320 * language.c (unknown_language_data): Likewise.
2321 (unknown_language::name_of_this): New member function.
2322 (auto_language_data): Remove la_name_of_this initializer.
2323 (auto_language::name_of_this): New member function.
2324 * language.h (language_data): Delete la_name_of_this member
2325 variable.
2326 (language_defn::name_of_this): New member function.
2327 * m2-lang.c (m2_language_data): Remove la_name_of_this
2328 initializer.
2329 * objc-lang.c (objc_language_data): Likewise.
2330 (objc_language::name_of_this): New member function.
2331 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2332 initializer.
2333 * p-lang.c (pascal_language_data): Likewise.
2334 (pascal_language::name_of_this): New member function.
2335 * rust-lang.c (rust_language_data): Remove la_name_of_this
2336 initializer.
2337 * symtab.c (lookup_language_this): Update call to name_of_this.
2338 (lookup_symbol_aux): Likewise.
2339 * valops.c (value_of_this): Likewise.
2340
2341 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * ada-lang.c (ada_language_data): Remove
2344 la_struct_too_deep_ellipsis initializer.
2345 (ada_language::struct_too_deep_ellipsis): New member function.
2346 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2347 initializer.
2348 (cplus_language_data): Likewise.
2349 (asm_language_data): Likewise.
2350 (minimal_language_data): Likewise.
2351 * cp-valprint.c (cp_print_value): Update call to
2352 struct_too_deep_ellipsis.
2353 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2354 initializer.
2355 * f-lang.c (f_language_data): Likewise.
2356 (f_language::struct_too_deep_ellipsis): New member function.
2357 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2358 initializer.
2359 * language.c (unknown_language_data): Likewise.
2360 (auto_language_data): Likewise.
2361 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2362 member variable.
2363 (language_defn::struct_too_deep_ellipsis): New member function.
2364 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2365 initializer.Q
2366 * objc-lang.c (objc_language_data): Likewise.
2367 * opencl-lang.c (opencl_language_data): Likewise.
2368 * p-lang.c (pascal_language_data): Likewise.
2369 * rust-lang.c (rust_language_data): Likewise.
2370 * valprint.c (val_print_check_max_depth): Update call to
2371 struct_too_deep_ellipsis.
2372
2373 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2374
2375 * MAINTAINERS (Write After Approval): Add myself.
2376
2377 2020-09-15 Tom Tromey <tom@tromey.com>
2378
2379 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2380 Remove.
2381
2382 2020-09-15 Tom Tromey <tom@tromey.com>
2383
2384 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2385 and TYPE_CODE_METHODPTR cases.
2386 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2387 (c_value_print_inner): Update.
2388 * valprint.c (generic_value_print_memberptr): New function, from
2389 c_value_print_memberptr.
2390 (generic_value_print): Use it. Call cplus_print_method_ptr.
2391
2392 2020-09-15 Tom Tromey <tromey@adacore.com>
2393
2394 * python/python-internal.h (PyInt_FromLong): Remove define.
2395 * python/py-value.c (convert_value_from_python): Use
2396 gdb_py_object_from_longest.
2397 * python/py-type.c (typy_get_code): Use
2398 gdb_py_object_from_longest.
2399 * python/py-symtab.c (salpy_get_line): Use
2400 gdb_py_object_from_longest.
2401 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2402 gdb_py_object_from_longest.
2403 * python/py-record.c (recpy_gap_reason_code): Use
2404 gdb_py_object_from_longest.
2405 * python/py-record-btrace.c (recpy_bt_insn_size)
2406 (recpy_bt_func_level, btpy_list_count): Use
2407 gdb_py_object_from_longest.
2408 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2409 gdb_py_object_from_longest. Fix error handling.
2410 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2411 gdb_py_object_from_longest.
2412 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2413 gdb_py_object_from_longest.
2414 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2415 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2416 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2417
2418 2020-09-15 Tom Tromey <tromey@adacore.com>
2419
2420 * python/python.c (gdbpy_parameter_value): Use
2421 gdb_py_object_from_ulongest.
2422
2423 2020-09-15 Tom Tromey <tromey@adacore.com>
2424
2425 * python/py-infevents.c (create_register_changed_event_object):
2426 Use gdb_py_object_from_longest.
2427 * python/py-exitedevent.c (create_exited_event_object): Use
2428 gdb_py_object_from_longest.
2429
2430 2020-09-15 Tom Tromey <tromey@adacore.com>
2431
2432 * python/python.c (gdbpy_parameter_value): Use
2433 gdb_py_object_from_longest.
2434 * python/py-type.c (convert_field, typy_range): Use
2435 gdb_py_object_from_longest.
2436 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2437 gdb_py_object_from_longest.
2438 * python/py-lazy-string.c (stpy_get_length): Use
2439 gdb_py_object_from_longest.
2440 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2441 gdb_py_object_from_longest.
2442 * python/py-infevents.c (create_memory_changed_event_object): Use
2443 gdb_py_object_from_longest.
2444 * python/py-inferior.c (infpy_get_num): Use
2445 gdb_py_object_from_longest.
2446 (infpy_get_pid): Likewise.
2447
2448 2020-09-15 Tom Tromey <tromey@adacore.com>
2449
2450 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2451 defines.
2452 * python/py-value.c (valpy_long): Use
2453 gdb_py_object_from_ulongest.
2454 * python/py-symtab.c (salpy_get_pc): Use
2455 gdb_py_object_from_ulongest.
2456 (salpy_get_last): Likewise.
2457 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2458 gdb_py_object_from_ulongest.
2459 * python/py-lazy-string.c (stpy_get_address): Use
2460 gdb_py_object_from_ulongest.
2461 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2462 * python/py-arch.c (archpy_disassemble): Use
2463 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2464 error handling.
2465
2466 2020-09-15 Tom Tromey <tromey@adacore.com>
2467
2468 * python/python-internal.h (gdb_py_long_from_longest): Remove
2469 defines.
2470 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2471 * python/py-type.c (convert_field, typy_get_sizeof): Use
2472 gdb_py_object_from_longest.
2473 * python/py-record-btrace.c (btpy_list_index): Use
2474 gdb_py_object_from_longest.
2475
2476 2020-09-15 Tom Tromey <tromey@adacore.com>
2477
2478 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2479 * python/py-record.c (recpy_element_number): Use
2480 gdb_py_object_from_longest.
2481 (recpy_gap_number): Likewise.
2482
2483 2020-09-15 Tom Tromey <tromey@adacore.com>
2484
2485 * top.c (ui::ui): Update.
2486 (highest_ui_num): Remove.
2487 * top.h (struct ui) <num>: Remove.
2488
2489 2020-09-15 Tom Tromey <tromey@adacore.com>
2490
2491 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2492 * ui-style.c (ansi_regex_text): Now array.
2493 * rust-exp.y (number_regex_text): Now array.
2494 * linespec.c (linespec_quote_characters): Now array.
2495 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2496 Now arrays.
2497
2498 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2499
2500 * debuginfod-support.c (debuginfod_client_deleter): New.
2501 (debuginfod_client_up): New.
2502 (debuginfod_init): Return debuginfod_client_up.
2503 (debuginfod_source_query): Adjust.
2504 (debuginfod_debuginfo_query): Adjust.
2505
2506 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * debuginfod-support.c (debuginfod_source_query): Use
2509 make_unique_xstrdup.
2510
2511 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2512
2513 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2514 with `type::instance_flags`.
2515
2516 2020-09-14 Michael Mullin <masmullin@gmail.com>
2517
2518 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2519 Remove baton parameter.
2520
2521 2020-09-14 Pedro Alves <pedro@palves.net>
2522
2523 * Makefile.in (SELFTESTS_SRCS): Add
2524 unittests/enum-flags-selftests.c.
2525 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2526 btrace_function_flags instead of enum btrace_function_flag.
2527 * compile/compile-c-types.c (convert_qualified): Use
2528 enum_flags::raw.
2529 * compile/compile-cplus-symbols.c (convert_one_symbol)
2530 (convert_symbol_bmsym):
2531 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2532 (compile_cplus_convert_struct_or_union_methods)
2533 (compile_cplus_instance::convert_qualified_base):
2534 * go-exp.y (parse_string_or_char): Add cast to int.
2535 * unittests/enum-flags-selftests.c: New file.
2536 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2537 type to btrace_thread_flags from btrace_thread_flag.
2538 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2539 local's type to btrace_thread_flags from btrace_thread_flag. Add
2540 cast in DEBUG call.
2541
2542 2020-09-14 Pedro Alves <pedro@palves.net>
2543
2544 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2545 * gdbtypes.c (address_space_name_to_int): Rename to ...
2546 (address_space_name_to_type_instance_flags): ... this.
2547 (address_space_int_to_name): Rename to ...
2548 (address_space_type_instance_flags_to_name): ... this.
2549 * gdbtypes.h (address_space_name_to_int): Rename to ...
2550 (address_space_name_to_type_instance_flags): ... this.
2551 (address_space_int_to_name): Rename to ...
2552 (address_space_type_instance_flags_to_name): ... this.
2553 * type-stack.c (type_stack::insert): Adjust to rename.
2554 * type-stack.h (type_stack::insert): Likewise.
2555
2556 2020-09-14 Pedro Alves <pedro@palves.net>
2557 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * avr-tdep.c (avr_address_class_type_flags): Return
2560 type_instance_flags.
2561 (avr_address_class_type_flags_to_name): Take a
2562 type_instance_flags.
2563 (avr_address_class_name_to_type_flags): Return bool and take a
2564 type_instance_flags.
2565 * d-lang.c (build_d_types): Use type::set_instance_flags.
2566 * ft32-tdep.c (ft32_address_class_type_flags): Return
2567 type_instance_flags.
2568 (ft32_address_class_type_flags_to_name): Take a
2569 type_instance_flags.
2570 (ft32_address_class_name_to_type_flags): Return bool and take a
2571 type_instance_flags.
2572 (ft32_gdbarch_init): Use type::set_instance_flags.
2573 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2574 * gdbarch.h, gdbarch.c: Regenerate.
2575 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2576 (address_class_name_to_type_flags): Use type_instance_flags and
2577 bool.
2578 * gdbtypes.c (address_space_name_to_int)
2579 (address_space_int_to_name, make_qualified_type): Use
2580 type_instance_flags.
2581 (make_qualified_type): Use type_instance_flags and
2582 type::set_instance_flags.
2583 (make_type_with_address_space, make_cv_type, make_vector_type)
2584 (check_typedef): Use type_instance_flags.
2585 (recursive_dump_type): Cast type_instance_flags to unsigned for
2586 printing.
2587 (copy_type_recursive): Use type::set_instance_flags.
2588 (gdbtypes_post_init): Use type::set_instance_flags.
2589 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2590 <m_instance_flags>: ... this.
2591 <instance_flags, set_instance_flags>: New methods.
2592 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2593 (SET_TYPE_INSTANCE_FLAGS): New.
2594 (address_space_name_to_int, address_space_int_to_name)
2595 (make_type_with_address_space): Pass flags using
2596 type_instance_flags instead of int.
2597 * stabsread.c (cleanup_undefined_types_noname): Use
2598 type::set_instance_flags.
2599 * s390-tdep.c (s390_address_class_type_flags): Return
2600 type_instance_flags.
2601 (s390_address_class_type_flags_to_name): Take a
2602 type_instance_flags.
2603 (s390_address_class_name_to_type_flags): Return bool and take a
2604 type_instance_flags.
2605 * type-stack.c (type_stack::follow_types): Use
2606 type_instance_flags.
2607 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2608
2609 2020-09-14 Tom Tromey <tromey@adacore.com>
2610
2611 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2612 * x86-tdep.c (x86_is_thunk_register_name)
2613 (x86_in_indirect_branch_thunk): Update.
2614 * sparc64-tdep.c (sparc64_fpu_register_names)
2615 (sparc64_cp0_register_names, sparc64_register_names)
2616 (sparc64_pseudo_register_names): Now const.
2617 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2618 cp0_registers_num>: Now const.
2619 * sparc-tdep.c (sparc_core_register_names)
2620 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2621 (sparc32_pseudo_register_names): Now const.
2622 (validate_tdesc_registers): Update.
2623 * rust-lang.c (rust_extensions): Now const.
2624 * p-lang.c (p_extensions): Now const.
2625 * objc-lang.c (objc_extensions): Now const.
2626 * nto-tdep.c (nto_thread_state_str): Now const.
2627 * moxie-tdep.c (moxie_register_names): Now const.
2628 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2629 Now const.
2630 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2631 (mips_linux_reg_names): Now const.
2632 (mips_gdbarch_init): Update.
2633 * microblaze-tdep.c (microblaze_register_names): Now const.
2634 * m68k-tdep.c (m68k_register_names): Now const.
2635 * m32r-tdep.c (m32r_register_names): Now const.
2636 * ia64-tdep.c (ia64_register_names): Now const.
2637 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2638 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2639 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2640 ymm_avx512_register_names, pkeys_register_names>: Now const.
2641 * i386-tdep.c (i386_register_names, i386_zmm_names)
2642 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2643 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2644 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2645 * f-lang.c (f_extensions): Now const.
2646 * d-lang.c (d_extensions): Now const.
2647 * csky-tdep.c (csky_register_names): Now const.
2648 * charset.c (default_charset_names, charset_enum): Now const.
2649 (_initialize_charset): Update.
2650 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2651 const.
2652 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2653 (bsd_uthread_solib_loaded): Update.
2654 (bsd_uthread_state): Now const.
2655 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2656 (amd64_ymm_avx512_names, amd64_ymmh_names)
2657 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2658 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2659 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2660 (amd64_dword_names): Now const.
2661 * agent.c (can_use_agent_enum): Now const.
2662 * ada-tasks.c (task_states, long_task_states): Now const.
2663 * ada-lang.c (known_runtime_file_name_patterns)
2664 (known_auxiliary_function_name_patterns, attribute_names)
2665 (standard_exc, ada_extensions): Now const.
2666
2667 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2668
2669 * bcache.h (struct bcache) <bcache>: Remove constructor.
2670 <m_hash_function, m_compare_function>: Remove.
2671 <~bcache>: Make virtual.
2672 <compare>: Remove static method, introduce virtual method.
2673 <default_hash>: Remove.
2674 <hash>: New virtual method.
2675 * bcache.c (bcache::expand_hash_table): Update.
2676 (bcache::insert): Update.
2677 (bcache::hash): New.
2678 (bcache::compare): Update comment and parameter names.
2679 * gdbtypes.c (types_deeply_equal): Update.
2680 * psymtab.h (struct psymbol_bcache): New struct.
2681 (class psymtab_storage) <psymtab_storage>: Make default.
2682 <psymbol_cache>: Change type to psymbol_bcache.
2683 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2684 (psymbol_hash): Change to...
2685 (psymbol_bcache::hash): ... this.
2686 (psymbol_compare): Change to...
2687 (psymbol_bcache::compare): ... this.
2688
2689 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2692 checking for initial lwp.
2693
2694 2020-09-14 Tom Tromey <tromey@adacore.com>
2695
2696 * m68k-tdep.c (m68k_extract_return_value): Use
2697 pointer_result_regnum.
2698 (m68k_store_return_value): Likewise.
2699 (m68k_reg_struct_return_p): Handle vectors and arrays.
2700 (m68k_return_value): Handle arrays.
2701 (m68k_svr4_return_value): Fix single-element aggregate handling.
2702 Handle long double. Adjust for embedded ABI.
2703 (m68k_svr4_init_abi): Set pointer_result_regnum.
2704 (m68k_embedded_init_abi): New function.
2705 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2706 (m68k_osabi_sniffer): New function.
2707 (_initialize_m68k_tdep): Register osabi sniffer.
2708 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2709 member.
2710
2711 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2712
2713 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2714 with gdb::unique_xmalloc_ptr<char>.
2715
2716 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * xml-support.h (xml_fetch_another): Change type to be a
2719 function_view.
2720 (xml_process_xincludes): Remove baton parameter.
2721 (xml_fetch_content_from_file): Change baton parameter to
2722 dirname.
2723 * xml-support.c (struct xinclude_parsing_data)
2724 <xinclude_parsing_data>: Remove baton parameter.
2725 <fetcher_baton>: Remove.
2726 (xinclude_start_include): Adjust.
2727 (xml_process_xincludes): Adjust.
2728 (xml_fetch_content_from_file): Replace baton parameter with
2729 dirname.
2730 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2731 (xml_init_syscalls_info): Use a lambda.
2732 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2733 (file_read_description_xml): Use a lambda.
2734 (fetch_available_features_from_target): Change baton parameter
2735 to target_ops.
2736 (target_read_description_xml): Use a lambda.
2737 (target_fetch_description_xml): Use a lambda.
2738 (string_read_description_xml): Update.
2739
2740 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2743 uses with type::endianity_is_not_default.
2744
2745 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.h (struct type) <endianity_is_not_default,
2748 set_endianity_is_not_default>: New methods.
2749 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2750 type::endianity_is_not_default, change all write call sites to
2751 use type::set_endianity_is_not_default.
2752
2753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2756 uses with type::is_fixed_instance.
2757
2758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * gdbtypes.h (struct type) <is_fixed_instance,
2761 set_is_fixed_instance>: New methods.
2762 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2763 write call sites to use type::set_is_fixed_instance.
2764
2765 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2766
2767 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2768 uses with type::is_gnu_ifunc.
2769
2770 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2771
2772 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2773 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2774 use type::set_is_gnu_ifunc.
2775
2776 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2777
2778 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2779 uses with type::stub_is_supported.
2780
2781 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2782
2783 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2784 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2785 use type::set_stub_is_supported.
2786
2787 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2790 uses with type::is_vector.
2791
2792 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2795 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2796 use type::set_is_vector.
2797
2798 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2801 uses with type::has_varargs.
2802
2803 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2806 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2807 use type::set_has_varargs.
2808
2809 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2812 uses with type::is_prototyped.
2813
2814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2817 New methods.
2818 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2819 call sites to use type::set_is_prototyped.
2820
2821 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2822
2823 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2824 uses with type::target_is_stub.
2825
2826 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2827
2828 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2829 New methods.
2830 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2831 sites to use type::set_target_is_stub.
2832
2833 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * gdbtypes.h (TYPE_STUB): Remove, replace all
2836 uses with type::is_stub.
2837
2838 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2841 (TYPE_STUB): Use type::is_stub, change all write call sites to
2842 use type::set_is_stub.
2843
2844 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2847 type::has_no_signedness.
2848
2849 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * gdbtypes.h (struct type) <has_no_signedness,
2852 set_has_no_signedness>: New methods.
2853 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2854 call sites to use type::set_has_no_signedness.
2855
2856 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2859 type::is_unsigned.
2860
2861 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2864 methods.
2865 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2866 sites to use type::set_is_unsigned.
2867
2868 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2869 Adam Renquinha <arenquinha@cimeq.qc.ca>
2870
2871 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2872 pointer and stack frame offset when unwinding.
2873
2874 2020-09-13 Pedro Alves <pedro@palves.net>
2875
2876 * NEWS: Document "-break-insert --qualified".
2877 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2878
2879 2020-09-13 Pedro Alves <pedro@palves.net>
2880
2881 * linespec.c (classify_mtype, compare_msyms): Delete.
2882 (search_minsyms_for_name): Remove classification logic. Instead
2883 filter out trampoline symbols if we also found an external
2884 function of the same name.
2885
2886 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2887
2888 * NEWS: Create a new section for the next release branch.
2889 Rename the section of the current branch, now that it has
2890 been cut.
2891
2892 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2893
2894 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2895 * version.in: Bump version to 11.0.50.DATE-git.
2896
2897 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2898
2899 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2900
2901 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2902 Felix Willgerodt <Felix.Willgerodt@intel.com>
2903
2904 * gdbarch.sh: Added bfloat16 type.
2905 * gdbarch.c: Regenerated.
2906 * gdbarch.h: Regenerated.
2907 * gdbtypes.c (floatformats_bfloat16): New struct.
2908 (gdbtypes_post_init): Add builtin_bfloat16.
2909 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2910 (floatformats_bfloat16): New struct.
2911 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2912 (i386_ymm_type): Add field "v16_bfloat16"
2913 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2914 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2915 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2916 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2917 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2918 * features/i386/64bit-avx512.c: Regenerated.
2919 * features/i386/64bit-sse.xml: Add bfloat16 type.
2920 * features/i386/64bit-sse.c: Regenerated.
2921
2922 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2923
2924 * i386-tdep.c (i386_zmm_type): Fix field names.
2925 (i386_ymm_type): Fix field names.
2926
2927 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2928
2929 * breakpoint.c: Fix typo in the help message of the
2930 "set breakpoint condition-evaluation" command.
2931
2932 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2933
2934 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2935 * (nbsd_nat_target::pid_to_exec_file)
2936 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2937 (nbsd_nat_target::post_startup_inferior)
2938 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2939 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2940 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2941 * (nbsd_thread_lister): Remove.
2942
2943 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2944
2945 * fork-inferior.c (startup_inferior): Avoid double free.
2946
2947 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2948
2949 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2950 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2951
2952 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2953
2954 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2955 * netbsd-nat.c: Include <sys/ptrace.h>.
2956 * (netbsd_nat::enable_proc_events): Add.
2957
2958 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2959
2960 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2961 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2962 (netbsd_nat::for_each_thread): Add.
2963 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2964 "gdbsupport/common-debug.h".
2965 * (netbsd_nat::netbsd_thread_lister)
2966 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2967 (netbsd_nat::for_each_thread): Add.
2968
2969 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2970
2971 * netbsd-nat.h: Include <unistd.h>.
2972 * (netbsd_nat::pid_to_exec_file): Add.
2973 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2974 * (netbsd_nat::pid_to_exec_file) Add.
2975
2976 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2977
2978 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2979
2980 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2981
2982 * netbsd-nat.h: New file.
2983 * netbsd-nat.c: Likewise.
2984
2985 2020-09-09 Tom Tromey <tromey@adacore.com>
2986
2987 * ada-lang.c (remove_extra_symbols): Do not increment when
2988 removing an element
2989
2990 2020-09-08 Tom Tromey <tromey@adacore.com>
2991
2992 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2993
2994 2020-09-08 Tom Tromey <tromey@adacore.com>
2995
2996 PR win32/25302:
2997 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2998 (gdb_bfd_init_data): New function.
2999 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3000
3001 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3002
3003 * infrun.c (fetch_inferior_event): Use
3004 `switch_to_target_no_thread` to switch the target.
3005
3006 2020-09-06 Tom Tromey <tom@tromey.com>
3007
3008 * symfile.h (dwarf2_free_objfile): Don't declare.
3009
3010 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3011
3012 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3013 to match 16 byte real/complex type generated by Flang compiler.
3014
3015 2020-09-03 Tom de Vries <tdevries@suse.de>
3016
3017 PR breakpoint/26546
3018 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3019 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3020
3021 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3022
3023 * maint.c (index_digits): New function.
3024 (struct maint_print_section_data): Remove.
3025 (print_bfd_section_info): Remove print_data parameter, add arg
3026 and index_digits.
3027 (print_objfile_section_info): Likewise.
3028 (print_bfd_section_info_maybe_relocated): Likewise (plus
3029 objfile).
3030 (maintenance_info_sections): Adjust calls.
3031
3032 2020-09-02 Tom Tromey <tromey@adacore.com>
3033
3034 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3035 for null pointers.
3036 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3037
3038 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3039
3040 * bcache.h (struct bcache) <insert>: Change type of `added` to
3041 pointer to bool.
3042 * bcache.c (bcache::insert): Likewise.
3043 * gdbtypes.c (check_types_worklist): Adjust.
3044 * psymtab.c (add_psymbol_to_bcache): Adjust.
3045
3046 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3047
3048 * corelow.c (unordered_set): Include.
3049 (class core_target): Add field 'm_core_unavailable_mappings'.
3050 (core_target::build_file_mappings): Print only one warning
3051 per inaccessible file. Add unavailable/broken mappings
3052 to m_core_unavailable_mappings.
3053 (core_target::xfer_partial): Call...
3054 (core_target::xfer_memory_via_mappings): New method.
3055
3056 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3057
3058 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3059 type to bool.
3060
3061 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * dwarf2/read.c (struct field_info): Fix indentation.
3064
3065 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3068 ordering in comment.
3069 * frame.c (frame_id_eq): Fix indentation.
3070
3071 2020-08-31 Scott Linder <scott@scottlinder.com>
3072 Simon Marchi <simon.marchi@efficios.com>
3073
3074 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3075 inline frame ids in outer frame.
3076
3077 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3080 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3081 (outer_frame_id): Use FID_STACK_OUTER instead of
3082 FID_STACK_INVALID.
3083 (frame_id_p): Don't check for outer_frame_id.
3084
3085 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3088 regnum/frame in value. Call allocate_value_lazy.
3089 * frame.c (frame_unwind_register_value): Use
3090 val_print_not_saved.
3091
3092 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3095
3096 2020-08-29 Pedro Alves <pedro@palves.net>
3097
3098 * progspace.c (print_program_space): Use all_inferiors. Switch to
3099 the inferior before calling target_pid_to_str.
3100
3101 2020-08-28 Tom Tromey <tom@tromey.com>
3102
3103 * xcoffread.c (xcoff_end_psymtab): Update comment.
3104 * dbxread.c (dbx_end_psymtab): Update comment.
3105
3106 2020-08-28 Tom de Vries <tdevries@suse.de>
3107
3108 PR breakpoint/26544
3109 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3110 event_location.
3111 (create_breakpoint): Same.
3112 (base_breakpoint_decode_location): Same.
3113 (bkpt_create_sals_from_location): Same.
3114 (bkpt_decode_location): Same.
3115 (bkpt_probe_create_sals_from_location): Same.
3116 (bkpt_probe_decode_location): Same.
3117 (tracepoint_create_sals_from_location): Same.
3118 (tracepoint_decode_location): Same.
3119 (tracepoint_probe_decode_location): Same.
3120 (strace_marker_create_sals_from_location): Same.
3121 (strace_marker_decode_location): Same.
3122 (create_sals_from_location_default): Same.
3123 (decode_location_default): Same.
3124 * breakpoint.h (struct breakpoint_ops): Same.
3125 (create_breakpoint): Same.
3126 * linespec.h (decode_line_full): Same.
3127 * linespec.c (decode_line_full): Same. Throw error if
3128 result.size () == 0.
3129
3130 2020-08-27 Pedro Alves <pedro@palves.net>
3131
3132 PR gdb/26524
3133 * breakpoint.c (until_break_fsm) <location_breakpoint,
3134 caller_breakpoint>: Delete fields.
3135 <breakpoints>: New field.
3136 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3137 two individual breakpoints.
3138 (until_break_fsm::should_stop): Loop over breakpoints in the
3139 breakpoint vector.
3140 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3141 vector.
3142 (until_break_command): Handle location expanding into multiple
3143 sals.
3144
3145 2020-08-27 Pedro Alves <pedro@palves.net>
3146
3147 PR gdb/26523
3148 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3149 bp_until breakpoints user-specified locations. Update intro
3150 comment.
3151
3152 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3155 gdb_bfd_sections): New.
3156 * maint.c (print_bfd_section_info): Change param type to
3157 maint_print_section_data.
3158 (print_objfile_section_info): Likewise.
3159 (print_bfd_section_info_maybe_relocated): Likewise.
3160 (maintenance_info_sections): Use gdb_bfd_sections.
3161
3162 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3163
3164 * MAINTAINERS: Add ARC target and maintainer.
3165
3166 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3167
3168 * configure.tgt: ARC support for GNU/Linux.
3169 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3170 * arc-linux-tdep.c: New file.
3171 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3172 * arc-tdep.c (arc_write_pc): Use it.
3173
3174 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3175
3176 * arc-tdep.c (arc_check_for_hardware_loop): New.
3177 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3178
3179 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3180
3181 * arc-tdep.h: Include "gdbarch.h".
3182
3183 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3184
3185 * arch/arc.h
3186 (arc_gdbarch_features): New class to stir the selection of target XML.
3187 (arc_create_target_description): Use FEATURES to choose XML target.
3188 (arc_lookup_target_description): Use arc_create_target_description
3189 to create _new_ target descriptions or return the already created
3190 ones if the FEATURES is the same.
3191 * arch/arc.c: Implementation of prototypes described above.
3192 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3193 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3194 * arc-tdep.c (*_feature_name): Make feature names consistent.
3195 (arc_register_feature): A new struct to hold information about
3196 registers of a particular target/feature.
3197 (arc_check_tdesc_feature): Check if XML provides registers in
3198 compliance with ARC_REGISTER_FEATURE structs.
3199 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3200 (determine_*_reg_feature_set): Which feature name to look for.
3201 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3202 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3203 to expected ISA enums to be used in arc_gdbarch_features structs.
3204 * features/Makefile (FEATURE_XMLFILES): Add new files.
3205 * gdb/features/arc/v1-aux.c: New file.
3206 * gdb/features/arc/v1-aux.xml: Likewise.
3207 * gdb/features/arc/v1-core.c: Likewise.
3208 * gdb/features/arc/v1-core.xml: Likewise.
3209 * gdb/features/arc/v2-aux.c: Likewise.
3210 * gdb/features/arc/v2-aux.xml: Likewise.
3211 * gdb/features/arc/v2-core.c: Likewise.
3212 * gdb/features/arc/v2-core.xml: Likewise.
3213 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3214
3215 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3216 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 PR m2/26372
3219 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3220 an assert. Remove single element array indexing pattern as the
3221 MULTI_SUBSCRIPT support will handle this case too.
3222
3223 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * value.h (valprint_check_validity): Move declaration from
3226 here...
3227 * valprint.h (valprint_check_validity): ... to here.
3228
3229 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3230
3231 * debug.h: New file.
3232 * debug.c (debug_prefixed_vprintf): New function.
3233 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3234 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3235
3236 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * infrun.h (infrun_debug_printf_1): New function declaration.
3239 (infrun_debug_printf): New macro.
3240 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3241 throughout.
3242 (infrun_debug_printf): New function.
3243 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3244 (handle_jit_event): Likewise.
3245
3246 2020-08-21 Mark Wielaard <mark@klomp.org>
3247
3248 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3249
3250 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * frame.c (enum class frame_id_status): New.
3253 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3254 (fprintf_frame): Update.
3255 (compute_frame_id): Set frame id status to "computing" on entry.
3256 Set it back to "not_computed" on failure and to "computed" on
3257 success.
3258 (get_frame_id): Assert the frame id is not being computed.
3259 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3260 (create_new_frame): Likewise.
3261 (frame_cleanup_after_sniffer): Update assert.
3262
3263 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * regcache.c (pid_ptid_regcache_map): New type.
3266 (target_ptid_regcache_map): Remove.
3267 (target_pid_ptid_regcache_map): New type.
3268 (regcaches): Change type to target_pid_ptid_regcache_map.
3269 (get_thread_arch_aspace_regcache): Update.
3270 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3271 case.
3272 (regcaches_size): Update.
3273 (regcache_count): Update.
3274 (registers_changed_ptid_target_pid_test): New.
3275 (_initialize_regcache): Register new test.
3276
3277 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * regcache.c (regcache_count): New.
3280 (struct regcache_test_data): New.
3281 (regcache_test_data_up): New.
3282 (populate_regcaches_for_test): New.
3283 (regcaches_test): Remove.
3284 (get_thread_arch_aspace_regcache_test): New.
3285 (registers_changed_ptid_all_test): New.
3286 (registers_changed_ptid_target_test): New.
3287 (registers_changed_ptid_target_ptid_test): New.
3288 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3289 (_initialize_regcache): Register new tests.
3290
3291 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3294 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3295 gdbarch and aspace parameter. Use current inferior's aspace.
3296 Validate regcache's arch value.
3297 (regcaches_test): Update.
3298
3299 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * regcache.c (regcaches_test): Call registers_changed.
3302
3303 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3304
3305 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3306
3307 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3308
3309 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3310 to find the end of prologue for flang compiled binaries.
3311 * arm-tdep.c (arm_skip_prologue): Likewise.
3312 * i386-tdep.c (i386_skip_prologue): Likewise.
3313 * producer.c (producer_is_llvm): New function.
3314 (producer_parsing_tests): Added new tests for clang/flang.
3315 * producer.h (producer_is_llvm): New declaration.
3316
3317 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * linux-nat.c (linux_nat_debug_printf): New function.
3320 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3321
3322 2020-08-18 Aaron Merey <amerey@redhat.com>
3323
3324 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3325 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3326 (CLIBS): Add DEBUGINFOD_LIBS.
3327
3328 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3329
3330 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3331 'gdbarch_num_regs'.
3332
3333 2020-08-17 Tom Tromey <tromey@adacore.com>
3334
3335 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3336 ada_get_decoded_value returns NULL.
3337
3338 2020-08-17 Tom Tromey <tromey@adacore.com>
3339
3340 * python/py-inferior.c (infpy_search_memory): Use
3341 gdb_py_object_from_ulongest.
3342 * python/py-infevents.c (create_inferior_call_event_object)
3343 (create_memory_changed_event_object): Use
3344 gdb_py_object_from_ulongest.
3345 * python/py-linetable.c (ltpy_entry_get_pc): Use
3346 gdb_py_object_from_ulongest.
3347
3348 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3349
3350 * loc.c (class symbol_needs_eval_context): Fix indentation.
3351
3352 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3355 bool.
3356
3357 2020-08-17 Tom de Vries <tdevries@suse.de>
3358
3359 PR gdb/26393
3360 * gdbtypes.c (dump_dynamic_prop): New function.
3361 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3362
3363 2020-08-15 Tom de Vries <tdevries@suse.de>
3364
3365 PR backtrace/26390
3366 * stack.c (print_frame_args): Temporarily set the selected
3367 frame to FRAME while printing the frame's arguments.
3368
3369 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3370
3371 PR breakpoints/26385
3372 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3373 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3374
3375 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3376
3377 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3378 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3379 and >= to check return value instead of == -1 and != -1.
3380
3381 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3382
3383 * utils.h (class gdb_argv) <as_array_view>: New method.
3384 * utils.c (gdb_argv_as_array_view_test): New.
3385 (_initialize_utils): Register selftest.
3386 * maint.c (maintenance_selftest): Use the new method.
3387
3388 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3389
3390 * target.h (supports_dumpcore, dumpcore): New
3391 function declarations.
3392 * target.c (supports_dumpcore, dumpcore): New
3393 functions.
3394 * target-delegates.c: Rebuild.
3395 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3396 and target_dumpcore ().
3397
3398 2020-08-13 Aaron Merey <amerey@redhat.com>
3399
3400 * debuginfod-support.c: Replace global variables with user_data.
3401
3402 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3403
3404 * maint.c (maintenance_selftest): Split args and pass array_view
3405 to run_tests.
3406
3407 2020-08-12 Luis Machado <luis.machado@linaro.org>
3408
3409 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3410 type's length.
3411 Use %s and pulongest to print the length.
3412
3413 2020-08-12 Pedro Alves <palves@redhat.com>
3414
3415 * NEWS: Move "Multi-target debugging support" item to the
3416 "Changes since GDB 9" section.
3417
3418 2020-08-12 Pedro Alves <palves@redhat.com>
3419
3420 PR gdb/26336
3421 * progspace.c (program_space::remove_objfile): Invalidate the
3422 frame cache.
3423
3424 2020-08-11 Tom de Vries <tdevries@suse.de>
3425
3426 * MAINTAINERS: Mark ms1 as deleted.
3427
3428 2020-08-10 Luis Machado <luis.machado@linaro.org>
3429
3430 PR gdb/26310
3431
3432 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3433 act accordingly.
3434 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3435 movz/str/stur/stp skipping behavior.
3436
3437 2020-08-10 Luis Machado <luis.machado@linaro.org>
3438
3439 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3440 struct user_sve_header instead of struct sve_context.
3441
3442 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * read.h (dwarf2_fetch_die_loc_sect_off,
3445 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3446 `void *` parameter with function_view.
3447 * read.c (dwarf2_fetch_die_loc_sect_off,
3448 dwarf2_fetch_die_loc_cu_off): Likewise.
3449 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3450 (per_cu_dwarf_call): Adjust.
3451 (get_frame_address_in_block_wrapper): Remove.
3452 (indirect_synthetic_pointer): Adjust.
3453 (get_ax_pc): Remove.
3454 (dwarf2_compile_expr_to_ax): Adjust.
3455
3456 2020-08-08 Tom de Vries <tdevries@suse.de>
3457
3458 PR build/26344
3459 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3460 constructor.
3461 * regcache.c (get_thread_arch_aspace_regcache): Same.
3462
3463 2020-08-07 Tom Tromey <tromey@adacore.com>
3464
3465 * ravenscar-thread.c
3466 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3467 New method.
3468 (ravenscar_thread_target::wait): Check
3469 runtime_initialized.
3470 (ravenscar_thread_target::prepare_to_store)
3471 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3472 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3473 (ravenscar_thread_target::stopped_by_watchpoint)
3474 (ravenscar_thread_target::stopped_data_address)
3475 (ravenscar_thread_target::core_of_thread): Use
3476 scoped_restore_current_thread and
3477 set_base_thread_from_ravenscar_task.
3478
3479 2020-08-07 Tom Tromey <tromey@adacore.com>
3480
3481 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3482
3483 2020-08-07 Tom Tromey <tromey@adacore.com>
3484
3485 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3486 update_inferior_ptid before update_thread_list.
3487 (temporarily_change_regcache_ptid): New class.
3488 (ravenscar_thread_target::fetch_registers)
3489 (ravenscar_thread_target::store_registers)
3490 (ravenscar_thread_target::prepare_to_store): Use base thread when
3491 forwarding operation.
3492
3493 2020-08-07 Tom Tromey <tromey@adacore.com>
3494
3495 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3496 "is_pid" case.
3497
3498 2020-08-07 Tom Tromey <tromey@adacore.com>
3499
3500 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3501 New methods.
3502 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3503 first.
3504 (ravenscar_thread_target::add_thread): Rename from
3505 ravenscar_add_thread.
3506 (ravenscar_thread_target::update_thread_list): Use a lambda.
3507 (ravenscar_thread_target::xfer_partial): New method.
3508
3509 2020-08-07 Tom Tromey <tromey@adacore.com>
3510
3511 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3512 gdb::function_view.
3513 (iterate_over_live_ada_tasks): Change type of argument.
3514 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3515 of argument.
3516
3517 2020-08-07 Tom Tromey <tromey@adacore.com>
3518
3519 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3520 Remove.
3521 (ravenscar_thread_target::extra_thread_info): Remove.
3522 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3523 defer to target beneath for non-Ravenscar threads.
3524
3525 2020-08-07 Tom Tromey <tromey@adacore.com>
3526
3527 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3528 get_base_thread_from_ravenscar_task>: Now methods.
3529 <m_cpu_map>: New member.
3530 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3531 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3532 (ravenscar_thread_target::task_is_currently_active): Update.
3533 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3534 Now a method.
3535 (ravenscar_thread_target::add_active_thread): Put initial thread
3536 into the m_cpu_map.
3537
3538 2020-08-07 Tom Tromey <tromey@adacore.com>
3539
3540 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3541 event_ptid.
3542
3543 2020-08-07 Tom Tromey <tromey@adacore.com>
3544
3545 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3546 runtime_initialized.
3547
3548 2020-08-07 Tom Tromey <tromey@adacore.com>
3549
3550 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3551 add_active_thread.
3552 (ravenscar_thread_target::add_active_thread): Now public.
3553 (ravenscar_inferior_created): Call add_active_thread after pushing
3554 the target.
3555
3556 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * regcache.c (ptid_regcache_map): New type.
3559 (target_ptid_regcache_map): New type.
3560 (regcaches): Change type to target_ptid_regcache_map.
3561 (get_thread_arch_aspace_regcache): Update to regcaches' new
3562 type.
3563 (regcache_thread_ptid_changed): Likewise.
3564 (registers_changed_ptid): Likewise.
3565 (regcaches_size): Likewise.
3566 (regcaches_test): Update.
3567 (regcache_thread_ptid_changed): Update.
3568 * regcache.h (regcache_up): New type.
3569 * gdbsupport/ptid.h (hash_ptid): New struct.
3570
3571 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * observable.h (thread_ptid_changed): Add parameter
3574 `process_stratum_target *`.
3575 * infrun.c (infrun_thread_ptid_changed): Add parameter
3576 `process_stratum_target *` and use it.
3577 (selftests): New namespace.
3578 (infrun_thread_ptid_changed): New function.
3579 (_initialize_infrun): Register selftest.
3580 * regcache.c (regcache_thread_ptid_changed): Add parameter
3581 `process_stratum_target *` and use it.
3582 (regcache_thread_ptid_changed): New function.
3583 (_initialize_regcache): Register selftest.
3584 * thread.c (thread_change_ptid): Pass target to
3585 thread_ptid_changed observable.
3586
3587 2020-08-06 Caroline Tice <cmtice@google.com>
3588
3589 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3590 (struct dwp_sections): Update field comments. Add loclists and
3591 rnglists fields.
3592 (struct virtual_v2_dwo_sections): Rename struct to
3593 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3594 size & offset fields for loclists and rnglists.
3595 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3596 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3597 skipping dummy type units.
3598 (create_dwp_hash_table): Update the large comment above the function to
3599 discuss Version 5 DWP files as well, with references. Update all the
3600 version checks in the function to check for version 5 as well. Add new
3601 section at the end to create dwp hash table for version 5.
3602 (create_dwp_v2_section): Rename function to
3603 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3604 Add V5 to error message text.
3605 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3606 into calls to create_dwp_v2_or_v5_section.
3607 (create_dwo_unit_in_dwp_v5): New function.
3608 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3609 check for version2; add else clause to handle version 5.
3610 (open_and_init_dwo_file): Add code to check dwarf version & only call
3611 create_debug_types_hash_table (with sections.types) if version is not 5;
3612 else call create_debug_type_hash_table, with sections.info.
3613 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3614 version 5.
3615 (dwarf2_locate_v5_dwp_sections): New function.
3616 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3617 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3618
3619 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * regcache.h (class regcache): Remove friend
3622 registers_changed_ptid.
3623 <regcache_thread_ptid_changed>: Remove.
3624 <regcaches>: Remove.
3625 * regcache.c (regcache::regcaches): Rename to...
3626 (regcaches): ... this. Make static.
3627 (get_thread_arch_aspace_regcache): Update.
3628 (regcache::regcache_thread_ptid_changed): Rename to...
3629 (regcache_thread_ptid_changed): ... this. Update.
3630 (class regcache_access): Remove.
3631 (regcaches_test): Update.
3632 (_initialize_regcache): Update.
3633 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3634 <forward_list>.
3635
3636 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3637
3638 * regcache.h (class regcache) <current_regcache>: Rename to...
3639 <regcaches>: ... this. Move doc here.
3640 * regcache.c (regcache::current_regcache) Rename to...
3641 (regcache::regcaches): ... this. Move doc to header.
3642 (get_thread_arch_aspace_regcache): Update.
3643 (regcache::regcache_thread_ptid_changed): Update.
3644 (registers_changed_ptid): Update.
3645 (class regcache_access) <current_regcache_size>: Rename to...
3646 <regcaches_size>: ... this.
3647 (current_regcache_test): Rename to...
3648 (regcaches_test): ... this.
3649 (_initialize_regcache): Update.
3650
3651 2020-08-06 Victor Collod <vcollod@nvidia.com>
3652
3653 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3654
3655 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3656
3657 * corelow.c (core_target::build_file_mappings): Don't output
3658 null pathname in warning.
3659
3660 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3661
3662 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3663 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3664 gdb.dwarf2/dw2-single-line-discriminators.exp,
3665 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3666
3667 2020-08-05 Tom Tromey <tromey@adacore.com>
3668
3669 PR rust/26197:
3670 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3671 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3672 Fix off-by-one and type size errors in ordinary case.
3673
3674 2020-08-05 Tom de Vries <tdevries@suse.de>
3675
3676 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3677 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3678
3679 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * frame.h (frame_id_p): Return bool.
3682 (frame_id_artificial_p): Return bool.
3683 (frame_id_eq): Return bool.
3684 (has_stack_frames): Return bool.
3685 (get_selected_frame): Fix typo in comment.
3686 (get_frame_pc_if_available): Return bool.
3687 (get_frame_address_in_block_if_available): Return bool.
3688 (get_frame_func_if_available): Return bool.
3689 (read_frame_register_unsigned): Return bool.
3690 (get_frame_register_bytes): Return bool.
3691 (safe_frame_unwind_memory): Return bool.
3692 (deprecated_frame_register_read): Return bool.
3693 (frame_unwinder_is): Return bool.
3694 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3695 bool.
3696 <this_id::p>: Likewise.
3697 <prev_p>: Likewise.
3698 (frame_stash_add): Return bool.
3699 (get_frame_id): Use bool.
3700 (frame_id_build_special) Use bool.
3701 (frame_id_build_unavailable_stack): Use bool.
3702 (frame_id_build): Use bool.
3703 (frame_id_p): Return bool, use true/false instead of 1/0.
3704 (frame_id_artificial_p): Likewise.
3705 (frame_id_eq): Likewise.
3706 (frame_id_inner): Likewise.
3707 (get_frame_func_if_available): Likewise.
3708 (read_frame_register_unsigned): Likewise.
3709 (deprecated_frame_register_read): Likewise.
3710 (get_frame_register_bytes): Likewise.
3711 (has_stack_frames): Likewise.
3712 (inside_main_func): Likewise.
3713 (inside_entry_func): Likewise.
3714 (get_frame_pc_if_available): Likewise.
3715 (get_frame_address_in_block_if_available): Likewise.
3716 (frame_unwinder_is): Likewise.
3717 (safe_frame_unwind_memory): Likewise.
3718 (frame_unwind_arch): Likewise.
3719
3720 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3723 type to cached_copy_status.
3724 (fprintf_frame): Adjust.
3725 (get_frame_func_if_available): Adjust.
3726 (frame_cleanup_after_sniffer): Adjust.
3727
3728 2020-08-04 Mark Wielaard <mark@klomp.org>
3729
3730 * MAINTAINERS (Write After Approval): Update email address.
3731
3732 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3733
3734 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3735 dynamic_prop::const_val.
3736
3737 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3740 dynamic_prop::kind.
3741
3742 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3745
3746 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3747
3748 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3749
3750 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3751 Jose E. Marchesi <jose.marchesi@oracle.com>
3752
3753 * configure.tgt: Add entry for bpf-*-*.
3754 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3755 (ALLDEPFILES): Add bpf-tdep.c.
3756 * bpf-tdep.c: New file.
3757 * MAINTAINERS: Add bpf target and maintainer.
3758 * NEWS: Mention the support for the new target.
3759
3760 2020-08-04 Tom de Vries <tdevries@suse.de>
3761
3762 PR symtab/23270
3763 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3764 Error.
3765
3766 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3767
3768 * syscalls/freebsd.xml: Regenerate.
3769
3770 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3771
3772 * syscalls/update-freebsd.sh: Fix usage and year range.
3773
3774 2020-08-03 Tom de Vries <tdevries@suse.de>
3775
3776 PR symtab/26333
3777 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3778 DW_LNE_lo_user/DW_LNE_hi_user range.
3779
3780 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3781
3782 PR ada/26318
3783 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3784 kind.
3785
3786 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3787
3788 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3789
3790 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3791
3792 * breakpoint.c (set_breakpoint_condition): Update the condition
3793 expressions after checking that the input condition string parses
3794 successfully and does not contain junk at the end.
3795
3796 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3797
3798 * breakpoint.c (set_breakpoint_condition): Update the
3799 condition string after parsing the new condition successfully.
3800
3801 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3802
3803 * proc-api.c (_STRUCTURED_PROC): Don't define.
3804 * proc-events.c: Likewise.
3805 * proc-flags.c: Likewise.
3806 * proc-why.c: Likewise.
3807 * procfs.c: Likewise.
3808
3809 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3810 * configure, config.in: Regenerate.
3811
3812 2020-07-30 Tom de Vries <tdevries@suse.de>
3813
3814 PR build/26320
3815 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3816 m_red/m_green/m_blue in a union.
3817
3818 2020-07-29 Tom de Vries <tdevries@suse.de>
3819
3820 PR tdep/26280
3821 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3822
3823 2020-07-28 Tom Tromey <tromey@adacore.com>
3824
3825 PR symtab/26270:
3826 * symtab.h (find_pc_partial_function_sym): Declare.
3827 * cli/cli-cmds.c (disassemble_command): Use
3828 find_pc_partial_function_sym. Check asm_demangle.
3829 * blockframe.c (cache_pc_function_sym): New global.
3830 (cache_pc_function_name): Remove.
3831 (clear_pc_function_cache): Update.
3832 (find_pc_partial_function_sym): New function, from
3833 find_pc_partial_function.
3834 (find_pc_partial_function): Rewrite using
3835 find_pc_partial_function_sym.
3836
3837 2020-07-28 Tom Tromey <tromey@adacore.com>
3838
3839 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3840 help. Add usage.
3841
3842 2020-07-28 Tom Tromey <tromey@adacore.com>
3843
3844 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3845 <DW_OP_GNU_variable_value>: Cast to address type.
3846
3847 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3848
3849 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3850 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3851 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3852 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3853 (nbsd_get_siginfo_type): New.
3854 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3855 (_initialize_nbsd_tdep): New.
3856
3857 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3858
3859 PR binutils/26301
3860 * configure: Regenerated.
3861
3862 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3863
3864 PR binutils/26301
3865 * configure: Regenerated.
3866
3867 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * python/py-frame.c: Remove 'user-regs.h' include.
3870 (frapy_read_register): Rewrite to make use of
3871 gdbpy_parse_register_id.
3872 * python/py-registers.c (gdbpy_parse_register_id): New function,
3873 moved here from python/py-unwind.c. Updated the return type, and
3874 also accepts register descriptor objects.
3875 * python/py-unwind.c: Remove 'user-regs.h' include.
3876 (pyuw_parse_register_id): Moved to python/py-registers.c.
3877 (unwind_infopy_add_saved_register): Update to use
3878 gdbpy_parse_register_id.
3879 (pending_framepy_read_register): Likewise.
3880 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3881
3882 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * python/py-registers.c: Add 'user-regs.h' include.
3885 (register_descriptor_iter_find): New function.
3886 (register_descriptor_iterator_object_methods): New static global
3887 methods array.
3888 (register_descriptor_iterator_object_type): Add pointer to methods
3889 array.
3890
3891 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3892
3893 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3894 for all architectures on FreeBSD 11.3 and later.
3895
3896 2020-07-27 Tom Tromey <tromey@adacore.com>
3897
3898 * gcore.h (load_corefile): Don't declare.
3899
3900 2020-07-27 Tom de Vries <tdevries@suse.de>
3901
3902 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3903 * config.in: Regenerate.
3904 * configure: Regenerate.
3905
3906 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3907
3908 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3909 ws2tcpip.h. When checking whether socklen_t type is defined, use
3910 ws2tcpip.h if it is available and sys/socket.h isn't.
3911 * configure: Regenerate.
3912 * config.in: Regenerate.
3913
3914 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 PR fortran/23051
3917 PR fortran/26139
3918 * valops.c (value_ind): Pass address to
3919 readjust_indirect_value_type.
3920 * value.c (readjust_indirect_value_type): Make parameter
3921 non-const, and add extra address parameter. Resolve original type
3922 before using it.
3923 * value.h (readjust_indirect_value_type): Update function
3924 signature and comment.
3925
3926 2020-07-25 Tom de Vries <tdevries@suse.de>
3927
3928 PR symtab/26243
3929 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3930 entries.
3931
3932 2020-07-24 Aaron Merey <amerey@redhat.com>
3933
3934 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3935 * configure: Rebuild.
3936
3937 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3938
3939 PR corefiles/26294
3940 * corelow.c (_initialize_corelow): Add period to help text
3941 for "maintenance print core-file-backed-mappings".
3942
3943 2020-07-23 Pedro Alves <pedro@palves.net>
3944
3945 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3946 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3947 meanwhile.
3948 * frame.c (frame_cache_generation, get_frame_cache_generation):
3949 New.
3950 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3951 (get_prev_frame_if_no_cycle): On exception, don't touch
3952 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3953 * frame.h (get_frame_cache_generation): Declare.
3954
3955 2020-07-23 Tom de Vries <tdevries@suse.de>
3956
3957 PR tui/26282
3958 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3959 New default constructor.
3960
3961 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3964 exclude non-statement entries.
3965
3966 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3967
3968 * NEWS (New commands): Mention new command
3969 "maintenance print core-file-backed-mappings".
3970
3971 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3972
3973 * corelow.c (gdbcmd.h): Include.
3974 (core_target::info_proc_mappings): New method.
3975 (get_current_core_target): New function.
3976 (maintenance_print_core_file_backed_mappings): New function.
3977 (_initialize_corelow): Add core-file-backed-mappings to
3978 "maint print" commands.
3979
3980 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3981
3982 * linux-tdep.c (dump_note_entry_p): New function.
3983 (linux_dump_mapping_p_ftype): New typedef.
3984 (linux_find_memory_regions_full): Add new parameter,
3985 should_dump_mapping_p.
3986 (linux_find_memory_regions): Adjust call to
3987 linux_find_memory_regions_full.
3988 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3989 call to linux_find_memory_regions_full.
3990
3991 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3992
3993 * corelow.c (solist.h, unordered_map): Include.
3994 (class core_target): Add field m_core_file_mappings and
3995 method build_file_mappings.
3996 (core_target::core_target): Call build_file_mappings.
3997 (core_target::~core_target): Free memory associated with
3998 m_core_file_mappings.
3999 (core_target::build_file_mappings): New method.
4000 (core_target::xfer_partial): Use m_core_file_mappings
4001 for memory transfers.
4002 * linux-tdep.c (linux_read_core_file_mappings): New
4003 function.
4004 (linux_core_info_proc_mappings): Rewrite to use
4005 linux_read_core_file_mappings.
4006 (linux_init_abi): Register linux_read_core_file_mappings.
4007
4008 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4009
4010 * arch-utils.c (default_read_core_file_mappings): New function.
4011 * arch-utils.c (default_read_core_file_mappings): Declare.
4012 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4013 * gdbarch.h, gdbarch.c: Regenerate.
4014
4015 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4016
4017 PR corefiles/25631
4018 * corelow.c (core_target:xfer_partial): Revise
4019 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4020 case after first checking the stratum beneath the core
4021 target.
4022 (has_all_memory): Return true.
4023 * target.c (raw_memory_xfer_partial): Revise comment
4024 regarding use of has_all_memory.
4025
4026 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4027
4028 * exec.h (section_table_xfer_memory): Revise declaration,
4029 replacing section name parameter with an optional callback
4030 predicate.
4031 * exec.c (section_table_xfer_memory): Likewise.
4032 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4033 of section_table_xfer_memory.
4034
4035 2020-07-22 Tom Tromey <tromey@adacore.com>
4036
4037 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4038 lookup_symbol_search_name.
4039
4040 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4043 redundant local variable.
4044 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4045 reference, not pointer, update code accordingly.
4046
4047 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4048 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4049
4050 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4051 * jit.c (jit_breakpoint_re_set_internal): Use the
4052 `skip_jit_symbol_lookup` field.
4053
4054 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4055 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4056
4057 * jit.c (jit_read_descriptor): Define the descriptor address once,
4058 use twice.
4059 (jit_breakpoint_deleted): Move the declaration of the loop variable
4060 `iter` into the loop header.
4061 (jit_breakpoint_re_set_internal): Move the declaration of the local
4062 variable `objf_data` to the first point of definition.
4063 (jit_event_handler): Move the declaration of local variables
4064 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4065 Rename `objf` to `jited`.
4066
4067 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4068
4069 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4070 Remove.
4071 * jit.c (get_jiter_objfile_data): Update.
4072
4073 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4074 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * jit.c (struct jit_program_space_data): Remove.
4077 (jit_program_space_key): Remove.
4078 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4079 stuff.
4080 (get_jit_program_space_data): Remove.
4081 (jit_breakpoint_deleted): Iterate on all of the program space's
4082 objfiles.
4083 (jit_inferior_init): Likewise.
4084 (jit_breakpoint_re_set_internal): Likewise. Also change return
4085 type to void.
4086 (jit_breakpoint_re_set): Pass current_program_space to
4087 jit_breakpoint_re_set_internal.
4088
4089 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4090
4091 * jit.h (struct jiter_objfile_data) <cached_code_address,
4092 jit_breakpoint>: Move to here from ...
4093 * jit.c (jit_program_space_data): ... here.
4094 (jiter_objfile_data::~jiter_objfile_data): Update.
4095 (jit_breakpoint_deleted): Update.
4096 (jit_breakpoint_re_set_internal): Update.
4097
4098 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4101 checks.
4102 (jit_read_descriptor): Remove NULL check.
4103 (jit_event_handler): Add an assertion.
4104
4105 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 * jit.h (struct jit_objfile_data): Split into...
4108 (struct jiter_objfile_data): ... this ...
4109 (struct jited_objfile_data): ... and this.
4110 * objfiles.h (struct objfile) <jit_data>: Remove.
4111 <jiter_data, jited_data>: New fields.
4112 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4113 (jiter_objfile_data::~jiter_objfile_data): ... this.
4114 (get_jit_objfile_data): Rename to ...
4115 (get_jiter_objfile_data): ... this.
4116 (add_objfile_entry): Update.
4117 (jit_read_descriptor): Use get_jiter_objfile_data.
4118 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4119 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4120 (jit_inferior_exit_hook): Use objfile's jited_data field.
4121
4122 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * jit.h: Forward-declare `struct minimal_symbol`.
4125 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4126 constructor, destructor, and an objfile* field.
4127 * jit.c (jit_objfile_data): Remove.
4128 (struct jit_objfile_data): Migrate from here to jit.h.
4129 (jit_objfile_data::~jit_objfile_data): New destructor
4130 implementation with code moved from free_objfile_data.
4131 (free_objfile_data): Delete.
4132 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4133 (jit_find_objf_with_entry_addr): Ditto.
4134 (jit_inferior_exit_hook): Ditto.
4135 (_initialize_jit): Remove the call to
4136 register_objfile_data_with_cleanup.
4137 * objfiles.h (struct objfile) <jit_data>: New field.
4138
4139 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 * jit.h: Forward-declare `struct objfile`.
4142 (jit_event_handler): Add a second parameter, the JITer objfile.
4143 * jit.c (jit_read_descriptor): Change the signature to take the
4144 JITer objfile as an argument instead of the jit_program_space_data.
4145 (jit_inferior_init): Update the call to jit_read_descriptor.
4146 (jit_event_handler): Use the new JITer objfile argument when calling
4147 jit_read_descriptor.
4148 * breakpoint.c (handle_jit_event): Update the call to
4149 jit_event_handler to pass the JITer objfile.
4150
4151 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4152
4153 * gdbarch.c: Regenerate.
4154 * gdbarch.h: Regenerate.
4155 * gdbarch.sh (handle_segmentation_fault): Remove method.
4156 * infrun.c (handle_segmentation_fault): Remove.
4157 (print_signal_received_reason): Remove call to
4158 handle_segmentation_fault.
4159
4160 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4161
4162 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4163 Rename to sparc64_linux_report_signal_info and add siggnal
4164 argument.
4165 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4166 instead of sparc64_linux_handle_segmentation_fault.
4167
4168 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4169
4170 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4171 i386_linux_report_signal_info instead of
4172 i386_linux_handle_segmentation_fault.
4173 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4174 to i386_linux_report_signal_info and add siggnal argument.
4175 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4176 of i386_linux_handle_segmentation_fault.
4177 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4178 to i386_linux_report_signal_info and add siggnal argument.
4179
4180 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4181
4182 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4183 hook if present.
4184
4185 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4186
4187 * gdbarch.c: Regenerate.
4188 * gdbarch.h: Regenerate.
4189 * gdbarch.sh (report_signal_info): New method.
4190 * infrun.c (print_signal_received_reason): Invoke gdbarch
4191 report_signal_info hook if present.
4192
4193 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4194
4195 * python/py-registers.c : Add 'unordered_map' include.
4196 (gdbpy_new_reggroup): Renamed to...
4197 (gdbpy_get_reggroup): ...this. Update to only create register
4198 group descriptors when needed.
4199 (gdbpy_reggroup_iter_next): Update.
4200
4201 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * python/py-registers.c (gdbpy_register_object_data): New static
4204 global.
4205 (gdbpy_register_object_data_init): New function.
4206 (gdbpy_new_register_descriptor): Renamed to...
4207 (gdbpy_get_register_descriptor): ...this, and update to reuse
4208 existing register descriptors where possible.
4209 (gdbpy_register_descriptor_iter_next): Update.
4210 (gdbpy_initialize_registers): Register new gdbarch data.
4211
4212 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * linux-nat.c (stopped_pids): Make static.
4215
4216 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 PR ada/26235
4219 * gdbtypes.c (ada_discrete_type_low_bound,
4220 ada_discrete_type_high_bound): Handle undefined bounds.
4221
4222 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4223
4224 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4225 declaration.
4226 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4227 function.
4228
4229 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4230
4231 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4232 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4233 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4234 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4235 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4236 method.
4237
4238 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4239
4240 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4241 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4242 which are deprecated in Guile 3.0.
4243 * configure.ac (try_guile_versions): Add "guile-3.0".
4244 * configure (try_guile_versions): Regenerate.
4245 * NEWS: Update entry.
4246
4247 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4248 Doug Evans <dje@google.com>
4249
4250 PR gdb/21104
4251 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4252 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4253 USING_GUILE_BEFORE_2_2.
4254 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4255 Change type to 'scm_t_port_type *'.
4256 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4257 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4258 parameter and honor it. Update callers.
4259 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4260 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4261 functions.
4262 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4263 USING_GUILE_BEFORE_2_2.
4264 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4265 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4266 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4267 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4268 and 'SCM_PORT_TYPE'.
4269 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4270 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4271 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4272 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4273 [!USING_GUILE_BEFORE_2_2]: New functions.
4274 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4275 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4276 'gdbscm_memory_port_read'.
4277 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4278 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4279 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4280 function.
4281 (ioscm_init_memory_port): Remove.
4282 (ioscm_init_memory_port_stream): New function
4283 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4284 function.
4285 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4286 Return scm_from_uint (0).
4287 (gdbscm_set_memory_port_read_buffer_size_x)
4288 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4289 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4290 Return scm_from_uint (0).
4291 (gdbscm_set_memory_port_write_buffer_size_x)
4292 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4293 * configure.ac (try_guile_versions): Add "guile-2.2".
4294 * configure: Regenerate.
4295 * NEWS: Add entry.
4296
4297 2020-07-18 Tom Tromey <tom@tromey.com>
4298
4299 * linux-nat.c (linux_multi_process): Remove.
4300 (linux_nat_target::supports_multi_process): Return true.
4301
4302 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4303
4304 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4305 (riscv_lookup_target_description): Return pointer out of
4306 unique_ptr.
4307 * target-descriptions.c (allocate_target_description): Add
4308 comment.
4309 (target_desc_deleter::operator()): Likewise.
4310 * target-descriptions.h (struct target_desc_deleter): Moved to
4311 gdbsupport/tdesc.h.
4312 (target_desc_up): Likewise.
4313
4314 2020-07-17 Tom Tromey <tromey@adacore.com>
4315
4316 * linux-nat.c (linux_nat_target::supports_non_stop)
4317 (linux_nat_target::always_non_stop_p): Use "true".
4318 (linux_nat_target::supports_disable_randomization): Use "true" and
4319 "false".
4320
4321 2020-07-16 Caroline Tice <cmtice@google.com>
4322
4323 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4324 (RNGLIST_HEADER_SIZE64): New constant definition.
4325 (struct dwop_section_names): Add rnglists_dwo.
4326 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4327 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4328 (struct dwo_sections): Add rnglists field.
4329 (read_attribut_reprocess): Add tag parameter.
4330 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4331 (cu_debug_rnglists_section): New function (decl & definition).
4332 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4333 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4334 die whose range is being checked; get rnglist section from
4335 cu_debug_rnglists_section, to get from either objfile or dwo file as
4336 appropriate. Add cases for DW_RLE_base_addressx,
4337 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4338 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4339 test inside if-condition and updating complaint message.
4340 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4341 dwarf2_rnglists_process.
4342 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4343 dwarf2_ranges_process.
4344 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4345 need_ranges_base and update comment appropriately. Also pass die tag
4346 to dwarf2_ranges_read.
4347 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4348 need_ranges_base and update comment appropriately. Also pass die tag
4349 to dwarf2_ranges_process.
4350 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4351 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4352 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4353 need_ranges_base and update comment appropriately. Also pass die tag
4354 to read_attribute_reprocess and dwarf2_ranges_read.
4355 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4356 and update function comment appropriately.
4357 (read_loclist_index): Call read_loclists_rnglists_header instead of
4358 read_loclist_header.
4359 (read_rnglist_index): New function.
4360 (read_attribute_reprocess): Add tag parameter. Add code for
4361 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4362 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4363
4364 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4367 being resolved.
4368
4369 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * arch-utils.c (show_architecture): Update formatting of messages.
4372
4373 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * gdbtypes.h (struct type) <bounds>: Handle array and string
4376 types.
4377 * ada-lang.c (assign_aggregate): Use type::bounds on
4378 array/string type.
4379 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4380 * c-varobj.c (c_number_of_children): Likewise.
4381 (c_describe_child): Likewise.
4382 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4383 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4384 (f_type_print_base): Likewise.
4385 * f-valprint.c (f77_array_offset_tbl): Likewise.
4386 (f77_get_upperbound): Likewise.
4387 (f77_print_array_1): Likewise.
4388 * guile/scm-type.c (gdbscm_type_range): Likewise.
4389 * m2-typeprint.c (m2_array): Likewise.
4390 (m2_is_long_set_of_type): Likewise.
4391 * m2-valprint.c (get_long_set_bounds): Likewise.
4392 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4393 * python/py-type.c (typy_range): Likewise.
4394 * rust-lang.c (rust_internal_print_type): Likewise.
4395 * type-stack.c (type_stack::follow_types): Likewise.
4396 * valarith.c (value_subscripted_rvalue): Likewise.
4397 * valops.c (value_cast): Likewise.
4398
4399 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4402 callers to use the equivalent accessor methods.
4403
4404 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4407 (struct type) <bit_stride>: New method.
4408 (TYPE_BIT_STRIDE): Remove.
4409 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4410
4411 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4414 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4415 callers to use the equivalent accessor methods instead.
4416
4417 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4420 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4421 callers to use the equivalent accessor methods instead.
4422
4423 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4426 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4427 to use dynamic_prop::kind.
4428
4429 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4432 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4433 to get the bound property's kind and check against
4434 PROP_UNDEFINED.
4435
4436 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4439 all callers to use type::range_bounds followed by
4440 dynamic_prop::{low,high}.
4441
4442 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4443
4444 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4445 const_val, set_const_val, baton, set_locexpr, set_loclist,
4446 set_addr_offset, variant_parts, set_variant_parts,
4447 original_type, set_original_type>: New methods.
4448 <kind>: Rename to...
4449 <m_kind>: ... this. Update all users to use the new methods
4450 instead.
4451 <data>: Rename to...
4452 <m_data>: ... this. Update all users to use the new methods
4453 instead.
4454
4455 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.c (get_discrete_bounds): Return failure if
4458 the range type's bounds are not both defined and constant
4459 values.
4460 (get_array_bounds): Update comment. Remove undefined bound check.
4461
4462 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4463
4464 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4465 the type::bounds method directly.
4466
4467 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4470 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4471 are used to set the range type's bounds to use set_bounds.
4472
4473 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4474
4475 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4476
4477 2020-07-10 Pedro Alves <pedro@palves.net>
4478
4479 * gdbthread.h (inferior_ref): Define.
4480 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4481 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4482 * thread.c
4483 (scoped_restore_current_thread::restore):
4484 Adjust to gdb::ref_ptr.
4485 (scoped_restore_current_thread::~scoped_restore_current_thread):
4486 Remove manual decref handling.
4487 (scoped_restore_current_thread::scoped_restore_current_thread):
4488 Adjust to use
4489 inferior_ref::new_reference/thread_info_ref::new_reference.
4490 Incref the thread before calling get_frame_id instead of after.
4491 Let TARGET_CLOSE_ERROR propagate.
4492
4493 2020-07-10 Pedro Alves <pedro@palves.net>
4494
4495 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4496 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4497 NOT_AVAILABLE_ERROR.
4498 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4499 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4500
4501 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4502 Pedro Alves <pedro@palves.net>
4503
4504 PR gdb/26199
4505 * infrun.c (threads_are_resumed_pending_p): Delete.
4506 (do_target_wait): Remove threads_are_executing and
4507 threads_are_resumed_pending_p checks from the inferior_matches
4508 lambda. Update comments.
4509
4510 2020-07-10 Pedro Alves <pedro@palves.net>
4511
4512 PR gdb/26199
4513 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4514 executing threads.
4515
4516 2020-07-10 Pedro Alves <pedro@palves.net>
4517
4518 PR gdb/26199
4519 * infrun.c (handle_no_resumed): Handle multiple targets.
4520
4521 2020-07-10 Pedro Alves <pedro@palves.net>
4522
4523 PR gdb/26199
4524 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4525 target_is_async_p.
4526
4527 2020-07-10 Pedro Alves <pedro@palves.net>
4528
4529 PR gdb/26199
4530 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4531 threads, not all threads.
4532
4533 2020-07-10 Pedro Alves <pedro@palves.net>
4534
4535 PR gdb/26199
4536 * remote.c (remote_target::open_1): Pass remote target pointer as
4537 data to create_async_event_handler.
4538 (remote_async_inferior_event_handler): Mark async event handler
4539 before returning if the remote target still has either pending
4540 events or unacknowledged notifications.
4541
4542 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4543
4544 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4545 declaration.
4546 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4547 function.
4548
4549 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4550
4551 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4552 inferior_ptid.
4553
4554 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4555
4556 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4557 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4558 AT_FREEBSD_PS_STRINGS.
4559
4560 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4561
4562 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4563 of debugfile path on Windows.
4564
4565 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4566
4567 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4568 argument to 'data'.
4569
4570 2020-07-08 Tom Tromey <tromey@adacore.com>
4571
4572 * ada-lang.c (ada_exception_message_1): Use read_memory.
4573
4574 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 PR python/22748
4577 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4578 special handling for inline frames.
4579 * findvar.c (value_of_register_lazy): Skip inline frames when
4580 creating lazy register values.
4581 * frame.c (frame_id_computed_p): Delete definition.
4582 * frame.h (frame_id_computed_p): Delete declaration.
4583
4584 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * NEWS: Mention additions to Python API.
4587 * python/py-arch.c (archpy_register_groups): New function.
4588 (arch_object_methods): Add 'register_groups' method.
4589 * python/py-registers.c (reggroup_iterator_object): New struct.
4590 (reggroup_object): New struct.
4591 (gdbpy_new_reggroup): New function.
4592 (gdbpy_reggroup_to_string): New function.
4593 (gdbpy_reggroup_name): New function.
4594 (gdbpy_reggroup_iter): New function.
4595 (gdbpy_reggroup_iter_next): New function.
4596 (gdbpy_new_reggroup_iterator): New function
4597 (gdbpy_initialize_registers): Register new types.
4598 (reggroup_iterator_object_type): Define new Python type.
4599 (gdbpy_reggroup_getset): New static global.
4600 (reggroup_object_type): Define new Python type.
4601 * python/python-internal.h
4602
4603 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4606 * python/py-arch.c (archpy_registers): New function.
4607 (arch_object_methods): Add 'registers' method.
4608 * python/py-registers.c: New file.
4609 * python/python-internal.h
4610 (gdbpy_new_register_descriptor_iterator): Declare.
4611 (gdbpy_initialize_registers): Declare.
4612 * python/python.c (do_start_initialization): Call
4613 gdbpy_initialize_registers.
4614 * NEWS: Mention additions to the Python API.
4615
4616 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * NEWS: Mention new Python API method.
4619 * python/py-unwind.c (pending_framepy_architecture): New function.
4620 (pending_frame_object_methods): Add architecture method.
4621
4622 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4623
4624 * gdbarch.c: Regenerate.
4625 * gdbarch.h: Regenerate.
4626 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4627 (gdbarch_data): Use internal_error for the case where
4628 deprecated_set_gdbarch_data was originally needed.
4629 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4630 and use passed in obstack.
4631 (libunwind_frame_set_descr): Should no longer get back NULL from
4632 gdbarch_data.
4633 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4634 type.
4635 * user-regs.c (user_regs_init): Update parameters, and use passed
4636 in obstack.
4637 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4638 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4639
4640 2020-07-06 Tom de Vries <tdevries@suse.de>
4641
4642 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4643 End-Of-Sequence in lte_is_less_than.
4644 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4645 "gdb: Don't reorder line table entries too much when sorting".
4646
4647 2020-07-06 Tom de Vries <tdevries@suse.de>
4648
4649 PR tui/26205
4650 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4651
4652 2020-07-05 Tom de Vries <tdevries@suse.de>
4653
4654 PR build/26187
4655 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4656 std::uncaught_exceptions instead of deprecated
4657 std::uncaught_exception.
4658
4659 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * macroexp.h (macro_stringify): Return
4662 gdb::unique_xmalloc_ptr<char>.
4663 * macroexp.c (macro_stringify): Likewise.
4664 * macrotab.c (fixup_definition): Update.
4665
4666 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4669 (lex_one_token): Update.
4670 * macroexp.c (struct macro_buffer) <release>: Return
4671 gdb::unique_xmalloc_ptr<char>.
4672 (macro_stringify): Update.
4673 (macro_expand): Update.
4674 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4675 * macroexp.h (macro_expand_next): Likewise.
4676
4677 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * macroexp.h (macro_lookup_ftype): Remove.
4680 (macro_expand, macro_expand_once, macro_expand_next): Remove
4681 lookup function parameters, add scope parameter.
4682 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4683 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4684 * macroscope.h (standard_macro_lookup): Change parameter type
4685 to macro_scope.
4686 * macroscope.c (standard_macro_lookup): Likewise.
4687 * c-exp.y (lex_one_token): Update.
4688 * macrocmd.c (macro_expand_command): Likewise.
4689 (macro_expand_once_command): Likewise.
4690
4691 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4692
4693 * inf-loop.c (inferior_event_handler): Remove client_data param.
4694 * inf-loop.h (inferior_event_handler): Likewise.
4695 * infcmd.c (step_1): Adjust.
4696 * infrun.c (proceed): Adjust.
4697 (fetch_inferior_event): Remove client_data param.
4698 (infrun_async_inferior_event_handler): Adjust.
4699 * infrun.h (fetch_inferior_event): Remove `void *` param.
4700 * linux-nat.c (handle_target_event): Adjust.
4701 * record-btrace.c (record_btrace_handle_async_inferior_event):
4702 Adjust.
4703 * record-full.c (record_full_async_inferior_event_handler):
4704 Adjust.
4705 * remote.c (remote_async_inferior_event_handler): Adjust.
4706
4707 2020-07-01 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4710 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4711
4712 2020-07-01 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4715 tui_gen_win_info.
4716 (tui_win_info::make_window): Merge with
4717 tui_gen_win_info::make_window.
4718 (tui_win_info::make_visible): Move from tui_gen_win_info.
4719 * tui/tui-win.c (tui_win_info::max_width): Move from
4720 tui_gen_win_info.
4721 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4722 type.
4723 <window_factory>: Likewise.
4724 * tui/tui-layout.c (tui_win_info::resize): Move from
4725 tui_gen_win_info.
4726 (make_standard_window): Change return type.
4727 (get_locator_window, tui_get_window_by_name): Likewise.
4728 (tui_layout_window::apply): Remove a cast.
4729 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4730 (struct tui_win_info): Merge with tui_gen_win_info.
4731 (struct tui_gen_win_info): Remove.
4732
4733 2020-07-01 Tom Tromey <tom@tromey.com>
4734
4735 * tui/tui-stack.h (struct tui_locator_window): Derive from
4736 tui_win_info.
4737 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4738 <can_box>: New method.
4739
4740 2020-07-01 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4743
4744 2020-07-01 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-regs.c (tui_data_window::display_registers_from)
4747 (tui_data_window::display_registers_from)
4748 (tui_data_window::first_data_item_displayed)
4749 (tui_data_window::delete_data_content_windows): Update.
4750 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4751 Remove.
4752 (tui_data_window::check_register_values): Update.
4753 (tui_data_item_window::rerender): Add parameters. Update.
4754 (tui_data_item_window::refresh_window): Remove.
4755 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4756 virtual.
4757 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4758 tui_gen_win_info.
4759 <refresh_window, max_height, min_height>: Remove.
4760 <rerender>: Add parameters.
4761 <x, y, visible>: New members.
4762 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4763 <m_item_width>: New member.
4764
4765 2020-07-01 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-regs.c (tui_data_window::show_register_group)
4768 (tui_data_window::check_register_values): Update.
4769 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4770 from item_no.
4771
4772 2020-07-01 Tom Tromey <tom@tromey.com>
4773
4774 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4775 useless "if".
4776
4777 2020-07-01 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4780 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4781
4782 2020-07-01 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4785 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4786 (struct tui_line_or_address): Move from tui-data.h.
4787 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4788 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4789 (tui_cmd_window, tui_source_window_base, tui_source_window)
4790 (tui_disasm_window): Don't declare.
4791 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4792 to tui-winsource.h.
4793 (SINGLE_KEY): Move to tui-stack.c.
4794
4795 2020-07-01 Tom Tromey <tom@tromey.com>
4796
4797 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4798 std::string.
4799 * tui/tui-regs.c (class tab_expansion_file): New.
4800 (tab_expansion_file::write): New method.
4801 (tui_register_format): Change return type. Use
4802 tab_expansion_file.
4803 (tui_get_register, tui_data_window::display_registers_from)
4804 (tui_data_item_window::rerender): Update.
4805 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4806 * tui/tui-io.c (tui_expand_tabs): Remove.
4807
4808 2020-07-01 Tom Tromey <tom@tromey.com>
4809
4810 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4811
4812 2020-07-01 Fangrui Song <maskray@google.com>
4813
4814 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4815
4816 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4817
4818 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4819 forms for DW_AT_associated and DW_AT_allocated attributes,
4820 which is already checked in function attr_to_dynamic_prop.
4821
4822 2020-06-30 Tom Tromey <tromey@adacore.com>
4823
4824 * dwarf2/read.c (quirk_rust_enum): Correctly call
4825 alloc_rust_variant for default-less enum.
4826
4827 2020-06-30 Tom Tromey <tromey@adacore.com>
4828
4829 PR build/26183:
4830 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4831 gdb::to_string.
4832
4833 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4836 * gdbarch.h: Re-generate.
4837
4838 2020-06-28 Tom Tromey <tom@tromey.com>
4839
4840 * command.h (cmd_types): Remove.
4841 (cmd_type): Don't declare.
4842 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4843 typedef.
4844 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4845 * cli/cli-decode.c (cmd_type): Remove.
4846
4847 2020-06-27 Pedro Alves <palves@redhat.com>
4848
4849 * fork-child.c (prefork_hook): Adjust.
4850 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4851 Delete.
4852 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4853 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4854 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4855 Remove declarations.
4856 (struct inferior) <set_tty, tty>: New methods.
4857 (struct inferior) <terminal>: Rename to ...
4858 (struct inferior) <m_terminal>: ... this and make private.
4859 * main.c (captured_main_1): Adjust.
4860 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4861 (mi_cmd_inferior_tty_show): Adjust.
4862 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4863 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4864
4865 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4866
4867 * configure.ac: Add --enable-libctf: handle --disable-static
4868 properly.
4869 * acinclude.m4: sinclude ../config/enable.m4.
4870 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4871 (LIBCTF): Substitute in.
4872 (CTF_DEPS): New, likewise.
4873 (CLIBS): libctf needs symbols from libbfd: move earlier.
4874 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4875 flags.
4876 * ctfread.c: Surround in ENABLE_LIBCTF.
4877 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4878 * configure: Regenerate.
4879 * config.in: Likewise.
4880
4881 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4884
4885 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * inferior.h (struct inferior) <terminal>: Change type to
4888 gdb::unique_xmalloc_ptr<char>.
4889 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4890 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4891 field, adjust to unique pointer.
4892 (get_inferior_io_terminal): Adjust to unique pointer.
4893
4894 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4895
4896 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4897 registers, not just the known core set of registers.
4898
4899 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4902 fflags, frm, and fcsr registers.
4903 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4904 restore groups.
4905 (riscv_tdesc_unknown_reg): New function.
4906 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4907 tdesc_use_registers.
4908 * riscv-tdep.h (struct gdbarch_tdep): Add
4909 unknown_csrs_first_regnum, unknown_csrs_count,
4910 duplicate_fflags_regnum, duplicate_frm_regnum, and
4911 duplicate_fcsr_regnum fields.
4912
4913 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4916 callback, use the callback (when not null) to help number unknown
4917 registers.
4918 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4919 (tdesc_use_registers): Add extra parameter to declaration.
4920
4921 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4922
4923 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4924 in the file.
4925 (class riscv_pending_register_alias): Likewise.
4926 (riscv_register_feature::register_info): Change 'required_p' field
4927 to 'required', and change its type. Add 'check' member function.
4928 (riscv_register_feature::register_info::check): Define new member
4929 function.
4930 (riscv_xreg_feature): Change initialisation of 'required' field.
4931 (riscv_freg_feature): Likewise.
4932 (riscv_virtual_feature): Likewise.
4933 (riscv_csr_feature): Likewise.
4934 (riscv_check_tdesc_feature): Take extra parameter, the csr
4935 tdesc_feature, rewrite the function to use the new
4936 riscv_register_feature::register_info::check function.
4937 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4938
4939 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * features/Makefile: Remove all references to the deleted files
4942 below.
4943 * features/riscv/32bit-csr.c: Deleted.
4944 * features/riscv/32bit-csr.xml: Deleted.
4945 * features/riscv/64bit-csr.c: Deleted.
4946 * features/riscv/64bit-csr.xml: Deleted.
4947 * features/riscv/rebuild-csr-xml.sh: Deleted.
4948
4949 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4950
4951 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4952 whitespace error for declaration of names member variable.
4953 (struct riscv_register_feature): Add new prefer_first_name member
4954 variable, and fix whitespace error in declaration of registers.
4955 (riscv_xreg_feature): Initialize prefer_first_name field.
4956 (riscv_freg_feature): Likewise.
4957 (riscv_virtual_feature): Likewise.
4958 (riscv_csr_feature): Likewise.
4959 (riscv_register_name): Expand on comments. Remove register name
4960 modifications for CSR and virtual registers.
4961
4962 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4965 errors.
4966
4967 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4970 riscv-opc.h.
4971 (class riscv_pending_register_alias): New class.
4972 (riscv_check_tdesc_feature): Take vector of pending aliases and
4973 populate it as appropriate.
4974 (riscv_setup_register_aliases): Delete.
4975 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4976 to riscv_check_tdesc_feature in all cases. Use the vector to
4977 create the register aliases.
4978
4979 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4980
4981 * sol2-tdep.c (sol2_static_transform_name): Remove.
4982 (sol2_init_abi): Don't register it.
4983 * gdbarch.sh (static_transform_name): Remove.
4984 * gdbarch.c, gdbarch.h: Regenerate.
4985
4986 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4987 gdbarch_static_transform_name.
4988 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4989 * stabsread.c (define_symbol) <'X'>: Remove.
4990 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4991 handling.
4992 <'V'>: Likewise.
4993 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4994 <'S'>: Remove call to gdbarch_static_transform_name.
4995
4996 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4997
4998 * procfs.c (procfs_pre_trace): New function.
4999 (procfs_target::create_inferior): Pass it to fork_inferior.
5000
5001 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5002
5003 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5004 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5005 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5006 sol2-tdep.o, sparc-sol2-tdep.o.
5007 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5008 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5009 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5010 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5011
5012 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5013
5014 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5015 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5016 Call sol2_init_abi.
5017 Remove calls to set_gdbarch_skip_solib_resolver,
5018 set_gdbarch_core_pid_to_str.
5019 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5020 (i386_sol2_static_transform_name): Remove.
5021 (i386_sol2_init_abi): Call sol2_init_abi.
5022 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5023 set_gdbarch_static_transform_name,
5024 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5025 Use sol2_sigtramp_p.
5026 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5027 (sol2_sigtramp_p): New function.
5028 (sol2_static_transform_name): New function.
5029 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5030 (sol2_init_abi): New function.
5031 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5032 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5033 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5034 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5035 (sparc_sol2_static_transform_name): Remove.
5036 (sparc32_sol2_init_abi): Call sol2_init_abi.
5037 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5038 set_gdbarch_static_transform_name,
5039 set_gdbarch_skip_solib_resolver,
5040 set_gdbarch_core_pid_to_str.
5041 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5042 (sparc_sol2_static_transform_name): Remove
5043 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5044 call sol2_sigtramp_p.
5045 (sparc64_sol2_init_abi): Call sol2_init_abi.
5046 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5047 set_gdbarch_static_transform_name,
5048 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5049
5050 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051
5052 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5053 * exec.c (validate_exec_file): If from_tty, set both
5054 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5055 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5056 and from_tty, unconditionally ask a confirmation.
5057
5058 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * target-descriptions.c (tdesc_architecture_name): Protect against
5061 NULL pointer dereference.
5062 (maint_print_xml_tdesc_cmd): New function.
5063 (_initialize_target_descriptions): Register new 'maint print
5064 xml-tdesc' command and give it the filename completer.
5065 * NEWS: Mention new 'maint print xml-tdesc' command.
5066
5067 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * target-descriptions.c (class tdesc_compatible_info): New class.
5070 (struct target_desc): Change type of compatible vector.
5071 (tdesc_compatible_p): Update for change in type of
5072 target_desc::compatible.
5073 (tdesc_compatible_info_list): New function.
5074 (tdesc_compatible_info_arch_name): New function.
5075 (tdesc_add_compatible): Update for change in type of
5076 target_desc::compatible.
5077 (print_c_tdesc::visit_pre): Likewise.
5078
5079 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5082 whitespace to underscore.
5083 (maint_print_c_tdesc_cmd): Use fake filename for target
5084 descriptions that came from the target.
5085 (_initialize_target_descriptions): Add filename command completion
5086 for 'maint print c-tdesc'.
5087
5088 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5091 lines.
5092
5093 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5096 lines.
5097 (dwarf2_find_location_expression): Likewise.
5098 (call_site_parameter_matches): Likewise.
5099 (dwarf2_compile_expr_to_ax): Likewise.
5100 (disassemble_dwarf_expression): Likewise.
5101 (loclist_describe_location): Likewise.
5102
5103 2020-06-23 Pedro Alves <palves@redhat.com>
5104
5105 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5106 progspace-and-thread.h. Include scoped-mock-context.h instead.
5107 (register_to_value_test): Use scoped_mock_context.
5108 * regcache.c: Include "scoped-mock-context.h".
5109 (cooked_read_test): Don't error out if a target is already pushed.
5110 Use scoped_mock_context. Adjust.
5111 * scoped-mock-context.h: New file.
5112
5113 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5116 initializer.
5117 (ada_language::is_string_type_p): New member function.
5118 * c-lang.c (c_language_data): Delete la_is_string_type_p
5119 initializer.
5120 (cplus_language_data): Likewise.
5121 (asm_language_data): Likewise.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 * f-lang.c (f_is_string_type_p): Delete function, implementation
5125 moved to f_language::is_string_type_p.
5126 (f_language_data): Delete la_is_string_type_p initializer.
5127 (f_language::is_string_type_p): New member function,
5128 implementation from f_is_string_type_p.
5129 * go-lang.c (go_is_string_type_p): Delete function, implementation
5130 moved to go_language::is_string_type_p.
5131 (go_language_data): Delete la_is_string_type_p initializer.
5132 (go_language::is_string_type_p): New member function,
5133 implementation from go_is_string_type_p.
5134 * language.c (language_defn::is_string_type_p): Define new member
5135 function.
5136 (default_is_string_type_p): Make static, add comment copied from
5137 header file.
5138 (unknown_language_data): Delete la_is_string_type_p initializer.
5139 (unknown_language::is_string_type_p): New member function.
5140 (auto_language_data): Delete la_is_string_type_p initializer.
5141 (auto_language::is_string_type_p): New member function.
5142 * language.h (language_data): Delete la_is_string_type_p field.
5143 (language_defn::is_string_type_p): Declare new function.
5144 (default_is_string_type_p): Delete desclaration, move comment to
5145 definition.
5146 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5147 moved to m2_language::is_string_type_p.
5148 (m2_language_data): Delete la_is_string_type_p initializer.
5149 (m2_language::is_string_type_p): New member function,
5150 implementation from m2_is_string_type_p.
5151 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5152 initializer.
5153 * opencl-lang.c (opencl_language_data): Likewise.
5154 * p-lang.c (pascal_is_string_type_p): Delete function,
5155 implementation moved to pascal_language::is_string_type_p.
5156 (pascal_language_data): Delete la_is_string_type_p initializer.
5157 (pascal_language::is_string_type_p): New member function,
5158 implementation from pascal_is_string_type_p.
5159 * rust-lang.c (rust_is_string_type_p): Delete function,
5160 implementation moved to rust_language::is_string_type_p.
5161 (rust_language_data): Delete la_is_string_type_p initializer.
5162 (rust_language::is_string_type_p): New member function,
5163 implementation from rust_is_string_type_p.
5164 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5165 is_string_type_p.
5166
5167 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * ada-lang.c (ada_language_data): Delete la_print_typedef
5170 initializer.
5171 (ada_language::print_typedef): New member function.
5172 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5173 (cplus_language_data): Likewise.
5174 (asm_language_data): Likewise.
5175 (minimal_language_data): Likewise.
5176 * d-lang.c (d_language_data): Likewise.
5177 * f-lang.c (f_language_data): Likewise.
5178 (f_language::print_typedef): New member function.
5179 * go-lang.c (go_language_data): Delete la_print_typedef
5180 initializer.
5181 * language.c (language_defn::print_typedef): Define member
5182 function.
5183 (unknown_language_data): Delete la_print_typedef initializer.
5184 (unknown_language::print_typedef): New member function.
5185 (auto_language_data): Delete la_print_typedef initializer.
5186 (auto_language::print_typedef): New member function.
5187 * language.h (language_data): Delete la_print_typedef field.
5188 (language_defn::print_typedef): Declare new member function.
5189 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5190 (default_print_typedef): Delete declaration.
5191 * m2-lang.c (m2_language_data): Delete la_print_typedef
5192 initializer.
5193 (m2_language::print_typedef): New member function.
5194 * objc-lang.c (objc_language_data): Delete la_print_typedef
5195 initializer.
5196 * opencl-lang.c (opencl_language_data): Likewise.
5197 * p-lang.c (pascal_language_data): Likewise.
5198 (pascal_language::print_typedef): New member function.
5199 * rust-lang.c (rust_print_typedef): Delete function,
5200 implementation moved to rust_language::print_typedef.
5201 (rust_language): Delete la_print_typedef initializer.
5202 (rust_language::print_typedef): New member function,
5203 implementation from rust_print_typedef.
5204 * typeprint.c (default_print_typedef): Delete.
5205
5206 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5209 (ada_language::printstr): New member function.
5210 * c-lang.c (c_language_data): Delete la_printstr initializer.
5211 (cplus_language_data): Likewise.
5212 (asm_language_data): Likewise.
5213 (minimal_language_data): Likewise.
5214 * d-lang.c (d_language_data): Likewise.
5215 * f-lang.c (f_printstr): Rename to f_language::printstr.
5216 (f_language_data): Delete la_printstr initializer.
5217 (f_language::printstr): New member function, implementation from
5218 f_printstr.
5219 * go-lang.c (go_language_data): Delete la_printstr initializer.
5220 * language.c (language_defn::printstr): Define new member
5221 function.
5222 (unk_lang_printstr): Delete.
5223 (unknown_language_data): Delete la_printstr initializer.
5224 (unknown_language::printstr): New member function.
5225 (auto_language_data): Delete la_printstr initializer.
5226 (auto_language::printstr): New member function.
5227 * language.h (language_data): Delete la_printstr field.
5228 (language_defn::printstr): Declare new member function.
5229 (LA_PRINT_STRING): Update call to printstr.
5230 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5231 (m2_language_data): Delete la_printstr initializer.
5232 (m2_language::printstr): New member function, implementation from
5233 m2_printstr.
5234 * objc-lang.c (objc_language_data): Delete la_printstr
5235 initializer.
5236 * opencl-lang.c (opencl_language_data): Likewise.
5237 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5238 (pascal_language_data): Delete la_printstr initializer.
5239 (pascal_language::printstr): New member function, implementation
5240 from pascal_printstr.
5241 * p-lang.h (pascal_printstr): Delete declaration.
5242 * rust-lang.c (rust_printstr): Update header comment.
5243 (rust_language_data): Delete la_printstr initializer.
5244 (rust_language::printstr): New member function.
5245
5246 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5249 (ada_language::printchar): New member function.
5250 * c-lang.c (c_language_data): Delete la_printchar initializer.
5251 (cplus_language_data): Likewise.
5252 (asm_language_data): Likewise.
5253 (minimal_language_data): Likewise.
5254 * d-lang.c (d_language_data): Likewise.
5255 * f-lang.c (f_printchar): Rename to f_language::printchar.
5256 (f_language_data): Delete la_printchar initializer.
5257 (f_language::printchar): New member function, implementation from
5258 f_printchar.
5259 * go-lang.c (go_language_data): Delete la_printchar initializer.
5260 * language.c (unk_lang_printchar): Delete.
5261 (language_defn::printchar): Define new member function.
5262 (unknown_language_data): Delete la_printchar initializer.
5263 (unknown_language::printchar): New member function.
5264 (auto_language_data): Delete la_printchar initializer.
5265 (auto_language::printchar): New member function.
5266 * language.h (language_data): Delete la_printchar field.
5267 (language_defn::printchar): Declare new member function.
5268 (LA_PRINT_CHAR): Update call to printchar.
5269 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5270 (m2_language::printchar): New member function.
5271 * objc-lang.c (objc_language_data): Delete la_printchar
5272 initializer.
5273 * opencl-lang.c (opencl_language_data): Likewise.
5274 * p-lang.c (pascal_language_data): Delete la_printchar
5275 initializer.
5276 (pascal_language::printchar): New member function.
5277 * rust-lang.c (rust_printchar): Rename to
5278 rust_language::printchar.
5279 (rust_language_data): Delete la_printchar initializer.
5280 (rust_language::printchar): New member function, implementation
5281 from rust_printchar.
5282
5283 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5284
5285 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5286 (ada_language_data): Delete la_emitchar initializer.
5287 (ada_language::emitchar): New member function, implementation from
5288 emit_char.
5289 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5290 (cplus_language_data): Likewise.
5291 (asm_language_data): Likewise.
5292 (minimal_language_data): Likewise.
5293 * d-lang.c (d_language_data): Likewise.
5294 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5295 (f_language_data): Delete la_emitchar initializer.
5296 (f_language::emitchar): New member function, implementation from
5297 f_emit_char.
5298 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5299 * language.c (unk_lang_emit_char): Delete.
5300 (language_defn::emitchar): New member function definition.
5301 (unknown_language_data): Delete la_emitchar initializer.
5302 (unknown_language::emitchar): New member function.
5303 (auto_language_data): Delete la_emitchar initializer.
5304 (auto_language::emitchar): New member function.
5305 * language.h (language_data): Delete la_emitchar field.
5306 (language_defn::emitchar): New member field declaration.
5307 (LA_EMIT_CHAR): Update call to emitchar.
5308 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5309 (m2_language_data): Delete la_emitchar initializer.
5310 (m2_language::emitchar): New member function, implementation from
5311 m2_emit_char.
5312 * objc-lang.c (objc_language_data): Delete la_emitchar
5313 initializer.
5314 * opencl-lang.c (opencl_language_data): Likewise.
5315 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5316 (pascal_language_data): Delete la_emitchar initializer.
5317 (pascal_language::emitchar): New member function, implementation
5318 from pascal_emit_char.
5319 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5320 (rust_language_data): Delete la_emitchar initializer.
5321 (rust_language::emitchar): New member function, implementation
5322 from rust_emitchar.
5323
5324 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5327 (ada_language_data): Delete la_post_parser initializer.
5328 (ada_language::post_parser): New member function.
5329 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5330 (cplus_language_data): Likewise.
5331 (asm_language_data): Likewise.
5332 (minimal_language_data): Likewise.
5333 * d-lang.c (d_language_data): Likewise.
5334 * f-lang.c (f_language_data): Likewise.
5335 * go-lang.c (go_language_data): Likewise.
5336 * language.c (unknown_language_data): Likewise.
5337 (auto_language_data): Likewise.
5338 * language.h (language_data): Delete la_post_parser field.
5339 (language_defn::post_parser): New member function.
5340 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5341 * objc-lang.c (objc_language_data): Likewise.
5342 * opencl-lang.c (opencl_language_data): Likewise.
5343 * p-lang.c (pascal_language_data): Likewise.
5344 * parse.c (parse_exp_in_context): Update call to post_parser.
5345 (null_post_parser): Delete definition.
5346 * parser-defs.h (null_post_parser): Delete declaration.
5347 * rust-lang.c (rust_language_data): Delete la_post_parser
5348 initializer.
5349
5350 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5351
5352 * ada-lang.c (parse): Rename to ada_language::parser.
5353 (ada_language_data): Delete la_parser initializer.
5354 (ada_language::parser): New member function, implementation from
5355 parse.
5356 * c-lang.c (c_language_data): Delete la_parser 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 (d_language::parser): New member function.
5362 * f-lang.c (f_language_data): Delete la_parser initializer.
5363 (f_language::parser): New member function.
5364 * go-lang.c (go_language_data): Delete la_parser initializer.
5365 (go_language::parser): New member function.
5366 * language.c (unk_lang_parser): Delete.
5367 (language_defn::parser): Define new member function.
5368 (unknown_language_data): Delete la_parser initializer.
5369 (unknown_language::parser): New member function.
5370 (auto_language_data): Delete la_parser initializer.
5371 (auto_language::parser): New member function.
5372 * language.h (language_data): Delete la_parser field.
5373 (language_defn::parser): Declare new member function.
5374 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5375 (m2_language::parser): New member function.
5376 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5377 * opencl-lang.c (opencl_language_data): Likewise.
5378 * p-lang.c (pascal_language_data): Likewise.
5379 (pascal_language::parser): New member function.
5380 * parse.c (parse_exp_in_context): Update call to parser.
5381 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5382 (rust_language::parser): New member function.
5383
5384 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * top.c (print_gdb_configuration): Print --with-python-libdir
5387 configuration value.
5388
5389 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5390
5391 * NEWS: Mention change to the alias command.
5392
5393 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5394
5395 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5396 (alias_command_completer)
5397 (make_alias_options_def_group): New functions.
5398 (alias_opts, alias_option_defs): New struct and array.
5399 (alias_usage_error): Update usage.
5400 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5401 Use option framework.
5402 (_initialize_cli_cmds): Update alias command help.
5403 Update aliases command help.
5404 (show_user):
5405 Add NULL for new default_args lookup_cmd argument.
5406 (valid_command_p): Rename to validate_aliased_command.
5407 Add NULL for new default_args lookup_cmd argument. Verify that the
5408 aliased_command has no default args.
5409 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5410 (lookup_cmd_1, lookup_cmd): New argument default_args.
5411 (add_alias_cmd):
5412 Add NULL for new default_args lookup_cmd argument.
5413 (print_help_for_command): Show default args under the layout
5414 alias some_alias = some_aliased_cmd some_alias_default_arg.
5415 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5416 xfree default_args in destructor.
5417 * cli/cli-script.c (process_next_line, do_define_command):
5418 Add NULL for new default_args lookup_cmd argument.
5419 * command.h: Declare new default_args argument in lookup_cmd
5420 and lookup_cmd_1.
5421 * completer.c (complete_line_internal_1):
5422 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5423 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5424 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5425 Likewise.
5426 * infcmd.c (_initialize_infcmd): Likewise.
5427 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5428 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5429 * python/py-param.c (add_setshow_generic): Likewise.
5430 * remote.c (_initialize_remote): Likewise.
5431 * top.c (execute_command): Prepend default_args if command has some.
5432 (set_verbose):
5433 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5434 * tracepoint.c (validate_actionline, encode_actions_1):
5435 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5436
5437 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5438
5439 * jit.c (jit_read_descriptor): Use bool as the return type.
5440 (jit_breakpoint_re_set_internal): Use bool as the return type.
5441 Invert the return value logic; return true if the jit breakpoint
5442 has been successfully initialized.
5443 (jit_inferior_init): Update the call to
5444 jit_breakpoint_re_set_internal.
5445
5446 2020-06-22 Pedro Alves <palves@redhat.com>
5447
5448 PR gdb/25939
5449 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5450 Use the current inferior instead. Don't return
5451 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5452 wait again.
5453 * sol-thread.c (sol_thread_target::wait): Don't reference
5454 inferior_ptid.
5455 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5456 (sol_update_thread_list_callback): Use the current inferior's pid
5457 instead of inferior_ptid.
5458
5459 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5460
5461 * procfs.c: Cleanup many comments.
5462
5463 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5464 (AFTER_WATCHFLAG): Replace by value.
5465
5466 (MAIN_PROC_NAME_FORMAT): Inline ...
5467 (create_procinfo): ... here.
5468
5469 (procfs_debug_inferior): Remove SYS_exec handling.
5470 (syscall_is_exec): Likewise.
5471 (procfs_set_exec_trap): Likewise.
5472
5473 (syscall_is_lwp_exit): Inline in callers.
5474 (syscall_is_exit): Likewise.
5475 (syscall_is_exec): Likewise.
5476 (syscall_is_lwp_create): Likewise.
5477
5478 (invalidate_cache): Remove #if 0 code.
5479
5480 (make_signal_thread_runnable): Remove.
5481 (procfs_target::resume): Remove #if 0 code.
5482
5483 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485 PR gdb/25939
5486 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5487 call ...
5488 (procfs_target::create_inferior): ... here.
5489
5490 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5491
5492 * exec.c (validate_exec_file): Ensure the build-id is up to
5493 date by calling reopen_exec_file (that checks file timestamp
5494 to decide to re-read the file).
5495
5496 2020-06-18 Pedro Alves <palves@redhat.com>
5497
5498 PR gdb/25412
5499 * gdbthread.h (delete_thread, delete_thread_silent)
5500 (find_thread_ptid): Update comments.
5501 * thread.c (current_thread_): New global.
5502 (is_current_thread): Move higher, and reimplement.
5503 (inferior_thread): Reimplement.
5504 (set_thread_exited): Use bool. Add assertions.
5505 (add_thread_silent): Simplify thread-reuse handling by always
5506 calling delete_thread.
5507 (delete_thread): Remove intro comment.
5508 (find_thread_ptid): Skip exited threads.
5509 (switch_to_thread_no_regs): Write to current_thread_.
5510 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5511 INFERIOR_PTID. Clear current_thread_.
5512
5513 2020-06-18 Pedro Alves <palves@redhat.com>
5514
5515 * aix-thread.c (pd_update): Use switch_to_thread.
5516
5517 2020-06-18 Pedro Alves <palves@redhat.com>
5518
5519 * ravenscar-thread.c (ravenscar_thread_target): Update.
5520 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5521 (ravenscar_thread_target::add_active_thread): ... this. Don't
5522 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5523 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5524
5525 2020-06-18 Pedro Alves <palves@redhat.com>
5526
5527 * nat/windows-nat.c (current_windows_thread): Remove.
5528 * nat/windows-nat.h (current_windows_thread): Remove.
5529 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5530 Adjust.
5531 (display_selectors): Adjust to fetch the current
5532 windows_thread_info based on inferior_ptid.
5533 (fake_create_process): No longer write to current_windows_thread.
5534 (windows_nat_target::get_windows_debug_event):
5535 Don't set inferior_ptid or current_windows_thread.
5536 (windows_nat_target::wait): Adjust to not rely on
5537 current_windows_thread.
5538 (do_initial_windows_stuff): Now a method of windows_nat_target.
5539 Switch to the last_ptid thread.
5540 (windows_nat_target::attach): Adjust.
5541 (windows_nat_target::detach): Use switch_to_no_thread instead of
5542 writing to inferior_ptid directly.
5543 (windows_nat_target::create_inferior): Adjust.
5544
5545 2020-06-18 Pedro Alves <palves@redhat.com>
5546
5547 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5548
5549 2020-06-18 Pedro Alves <palves@redhat.com>
5550
5551 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5552 after creating it, instead of writing to inferior_ptid. Don't
5553 write to inferior_ptid.
5554
5555 2020-06-18 Pedro Alves <palves@redhat.com>
5556
5557 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5558
5559 2020-06-18 Pedro Alves <palves@redhat.com>
5560
5561 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5562 it, instead of writing to inferior_ptid.
5563
5564 2020-06-18 Pedro Alves <palves@redhat.com>
5565
5566 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5567 to inferior_ptid.
5568
5569 2020-06-18 Pedro Alves <palves@redhat.com>
5570
5571 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5572 instead of writing to inferior_ptid directly.
5573
5574 2020-06-18 Pedro Alves <palves@redhat.com>
5575
5576 * corelow.c (core_target::close): Use switch_to_no_thread instead
5577 of writing to inferior_ptid directly.
5578 (add_to_thread_list, core_target_open): Use switch_to_thread
5579 instead of writing to inferior_ptid directly.
5580
5581 2020-06-18 Pedro Alves <palves@redhat.com>
5582
5583 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5584 inferior_ptid.
5585 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5586 inferior_ptid.
5587 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5588 inferior_ptid directly.
5589 (darwin_nat_target::init_thread_list): Switch to thread, instead
5590 of writing to inferior_ptid.
5591 (darwin_nat_target::attach): Don't write to inferior_ptid.
5592 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5593
5594 2020-06-18 Pedro Alves <palves@redhat.com>
5595
5596 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5597 thread.
5598 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5599 Instead use switch_to_thread.
5600 (gnu_nat_target::detach): Use switch_to_no_thread
5601 instead of writing to inferior_ptid directly. Used passed-in
5602 inferior instead of looking up the inferior by pid.
5603
5604 2020-06-18 Pedro Alves <palves@redhat.com>
5605
5606 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5607 inferior_ptid.
5608
5609 2020-06-18 Pedro Alves <palves@redhat.com>
5610
5611 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5612 inferior_ptid.
5613 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5614 thread.
5615 (nto_procfs_target::detach): Avoid referencing
5616 inferior_ptid. Use switch_to_no_thread instead of writing to
5617 inferior_ptid directly.
5618 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5619 instead of writing to inferior_ptid directly.
5620 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5621 to thread.
5622
5623 2020-06-18 Pedro Alves <palves@redhat.com>
5624
5625 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5626 after creating it, instead of writing to inferior_ptid.
5627 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5628 to inferior_ptid directly.
5629 (gdbsim_target::wait): Don't write to inferior_ptid.
5630
5631 2020-06-18 Pedro Alves <palves@redhat.com>
5632
5633 * remote.c (remote_target::remote_notice_new_inferior): Use
5634 switch_to_thread instead of writing to inferior_ptid directly.
5635 (remote_target::add_current_inferior_and_thread): Use
5636 switch_to_no_thread instead of writing to inferior_ptid directly.
5637 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5638 and switch_to_thread instead of using set_current_inferior or
5639 writing to inferior_ptid directly.
5640
5641 2020-06-18 Pedro Alves <palves@redhat.com>
5642
5643 * tracectf.c (ctf_target_open): Switch to added thread instead of
5644 writing to inferior_ptid directly.
5645 (ctf_target::close): Use switch_to_no_thread instead of writing to
5646 inferior_ptid directly.
5647
5648 2020-06-18 Pedro Alves <palves@redhat.com>
5649
5650 * tracefile-tfile.c (tfile_target_open): Don't write to
5651 inferior_ptid directly, instead switch to added thread.
5652 (tfile_target::close): Use switch_to_no_thread instead of writing
5653 to inferior_ptid directly.
5654
5655 2020-06-18 Pedro Alves <palves@redhat.com>
5656
5657 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5658 (procfs_target::detach): Use switch_to_no_thread
5659 instead of writing to inferior_ptid directly.
5660 (do_attach): Change return type to void. Switch to the added
5661 thread.
5662 (procfs_target::create_inferior): Switch to the added thread.
5663 (procfs_do_thread_registers): Don't write to inferior_ptid.
5664
5665 2020-06-18 Pedro Alves <palves@redhat.com>
5666
5667 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5668 of writing to inferior_ptid.
5669 (scoped_restore_exited_inferior): Delete.
5670 (handle_vfork_child_exec_or_exit): Simplify using
5671 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5672 instead of writing to inferior_ptid.
5673 (THREAD_STOPPED_BY): Delete.
5674 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5675 (thread_stopped_by_hw_breakpoint): Delete.
5676 (save_waitstatus): Use
5677 scoped_restore_current_thread+switch_to_thread, and call
5678 target_stopped_by_watchpoint instead of
5679 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5680 instead of thread_stopped_by_sw_breakpoint, and
5681 target_stopped_by_hw_breakpoint instead of
5682 thread_stopped_by_hw_breakpoint.
5683 (handle_inferior_event)
5684 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5685 inferior_ptid directly, nor
5686 set_current_inferior/set_current_program_space. Use
5687 switch_to_thread / switch_to_inferior_no_thread instead.
5688
5689 2020-06-18 Pedro Alves <palves@redhat.com>
5690
5691 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5692 instead of writing to inferior_ptid.
5693
5694 2020-06-18 Pedro Alves <palves@redhat.com>
5695
5696 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5697 added thread.
5698 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5699 to the added thread.
5700 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5701 instead of writing to inferior_ptid.
5702
5703 2020-06-18 Pedro Alves <palves@redhat.com>
5704
5705 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5706 (register_to_value_test): Mock a program_space too. Heap-allocate
5707 the address space. Don't write to inferior_ptid. Use
5708 switch_to_thread instead.
5709
5710 2020-06-18 Pedro Alves <palves@redhat.com>
5711
5712 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5713 Delete.
5714 (find_signalled_thread()): New, factored out from
5715 linux_make_corefile_notes and adjusted to handle exited threads.
5716 (linux_make_corefile_notes): Adjust to use the new
5717 find_signalled_thread.
5718
5719 2020-06-18 Pedro Alves <palves@redhat.com>
5720
5721 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5722 of saving/restoring inferior_ptid.
5723
5724 2020-06-17 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5727 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5728 declare.
5729 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5730
5731 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5734 of partial symtabs.
5735
5736 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * regformats/reg-arm.dat: Remove.
5739 * regformats/reg-bfin.dat: Remove.
5740 * regformats/reg-cris.dat: Remove.
5741 * regformats/reg-crisv32.dat: Remove.
5742 * regformats/reg-m32r.dat: Remove.
5743 * regformats/reg-tilegx.dat: Remove.
5744 * regformats/reg-tilegx32.dat: Remove.
5745
5746 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * features/Makefile (WHICH): Remove arm files.
5749 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5750 * regformats/arm/arm-with-neon.dat: Remove.
5751 * regformats/arm/arm-with-vfpv2.dat: Remove.
5752 * regformats/arm/arm-with-vfpv3.dat: Remove.
5753
5754 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * features/Makefile (XMLTOC): Remove rx.xml.
5757
5758 2020-06-17 Pedro Alves <palves@redhat.com>
5759
5760 * gdbthread.h (thread_control_state) <trap_expected> Update
5761 comments.
5762
5763 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5766 ada_language::lookup_symbol_nonlocal.
5767 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5768 (ada_language::lookup_symbol_nonlocal): New member function,
5769 implementation from ada_lookup_symbol_nonlocal.
5770 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5771 initializer.
5772 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5773 initializer.
5774 (cplus_language::lookup_symbol_nonlocal): New member function.
5775 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5776 (minimal_language_data) Likewise.
5777 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5778 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5779 initializer.
5780 (d_language::lookup_symbol_nonlocal): New member function.
5781 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5782 initializer.
5783 (f_language::lookup_symbol_nonlocal): New member function.
5784 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5785 initializer.
5786 * language.c (unknown_language_data): Likewise.
5787 (auto_language_data): Likewise.
5788 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5789 field.
5790 (language_defn::lookup_symbol_nonlocal): New member function.
5791 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5792 initializer.
5793 * objc-lang.c (objc_language_data): Likewise.
5794 * opencl-lang.c (opencl_language_data): Likewise.
5795 * p-lang.c (pascal_language_data): Likewise.
5796 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5797 rust_language::lookup_symbol_nonlocal.
5798 (rust_language_data): Delete la_lookup_symbol_nonlocal
5799 initializer.
5800 (rust_language::lookup_symbol_nonlocal): New member function,
5801 implementation from rust_lookup_symbol_nonlocal.
5802 * symtab.c (lookup_symbol_aux): Update call to
5803 lookup_symbol_nonlocal.
5804 (basic_lookup_symbol_nonlocal): Rename to...
5805 (language_defn::lookup_symbol_nonlocal): ...this, and update
5806 header comment. Remove language_defn parameter, and replace with
5807 uses of `this'.
5808 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5809
5810 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5813 initializer.
5814 (ada_language::value_print_inner): New member function.
5815 * c-lang.c (c_language_data): Delete la_value_print_inner
5816 initializer.
5817 (cplus_language_data): Likewise.
5818 (asm_language_data): Likewise.
5819 (minimal_language_data): Likewise.
5820 * d-lang.c (d_language_data): Likewise.
5821 (d_language::value_print_inner): New member function.
5822 * f-lang.c (f_language_data): Delete la_value_print_inner
5823 initializer.
5824 (f_language::value_print_inner): New member function.
5825 * f-lang.h (f_value_print_innner): Rename to...
5826 (f_value_print_inner): ...this (note spelling of 'inner').
5827 * f-valprint.c (f_value_print_innner): Rename to...
5828 (f_value_print_inner): ...this (note spelling of 'inner').
5829 * go-lang.c (go_language_data): Delete la_value_print_inner
5830 initializer.
5831 (go_language::value_print_inner): New member function.
5832 * language.c (language_defn::value_print_inner): Define new member
5833 function.
5834 (unk_lang_value_print_inner): Delete.
5835 (unknown_language_data): Delete la_value_print_inner initializer.
5836 (unknown_language::value_print_inner): New member function.
5837 (auto_language_data): Delete la_value_print_inner initializer.
5838 (auto_language::value_print_inner): New member function.
5839 * language.h (language_data): Delete la_value_print_inner field.
5840 (language_defn::value_print_inner): Delcare new member function.
5841 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5842 initializer.
5843 (m2_language::value_print_inner): New member function.
5844 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5845 initializer.
5846 * opencl-lang.c (opencl_language_data): Likewise.
5847 * p-lang.c (pascal_language_data): Likewise.
5848 (pascal_language::value_print_inner): New member function.
5849 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5850 initializer.
5851 (rust_language::value_print_inner): New member function.
5852 * valprint.c (do_val_print): Update call to value_print_inner.
5853
5854 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5855
5856 * ada-lang.c (ada_language_data): Delete la_value_print
5857 initializer.
5858 (ada_language::value_print): New member function.
5859 * c-lang.c (c_language_data): Delete la_value_print initializer.
5860 (cplus_language_data): Likewise.
5861 (asm_language_data): Likewise.
5862 (minimal_language_data): Likewise.
5863 * d-lang.c (d_language_data): Likewise.
5864 * f-lang.c (f_language_data): Likewise.
5865 * go-lang.c (go_language_data): Likewise.
5866 * language.c (unk_lang_value_print): Delete.
5867 (language_defn::value_print): Define new member function.
5868 (unknown_language_data): Delete la_value_print initializer.
5869 (unknown_language::value_print): New member function.
5870 (auto_language_data): Delete la_value_print initializer.
5871 (auto_language::value_print): New member function.
5872 * language.h (language_data): Delete la_value_print field.
5873 (language_defn::value_print): Declare new member function.
5874 (LA_VALUE_PRINT): Update call to value_print.
5875 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5876 * objc-lang.c (objc_language_data): Likewise.
5877 * opencl-lang.c (opencl_language_data): Likewise.
5878 * p-lang.c (pascal_language_data): Likewise.
5879 (pascal_language::value_print): New member function.
5880 * rust-lang.c (rust_language_data): Delete la_value_print
5881 initializer.
5882
5883 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * ada-lang.c (ada_watch_location_expression): Rename to
5886 ada_language::watch_location_expression.
5887 (ada_language_data): Delete la_watch_location_expression
5888 initializer.
5889 (ada_language::watch_location_expression): New member function,
5890 implementation from ada_watch_location_expression.
5891 * breakpoint.c (watch_command_1): Update call to
5892 watch_location_expression.
5893 * c-lang.c (c_watch_location_expression): Rename to
5894 language_defn::watch_location_expression.
5895 (c_language_data): Delete la_watch_location_expression
5896 initializer.
5897 (cplus_language_data): Likewise.
5898 (asm_language_data): Likewise.
5899 (minimal_language_data): Likewise.
5900 * c-lang.h (c_watch_location_expression): Delete declaration.
5901 * d-lang.c (d_language_data): Delete la_watch_location_expression
5902 initializer.
5903 * f-lang.c (f_language_data): Likewise.
5904 * go-lang.c (go_language_data): Likewise.
5905 * language.c (language_defn::watch_location_expression): Member
5906 function implementation from c_watch_location_expression.
5907 (unknown_language_data): Delete la_watch_location_expression
5908 initializer.
5909 (auto_language_data): Likewise.
5910 * language.h (language_data): Delete la_watch_location_expression
5911 field.
5912 (language_defn::watch_location_expression): Declare new member
5913 function.
5914 * m2-lang.c (m2_language_data): Delete
5915 la_watch_location_expression initializer.
5916 * objc-lang.c (objc_language_data): Likewise.
5917 * opencl-lang.c (opencl_language_data): Likewise.
5918 * p-lang.c (pascal_language_data): Likewise.
5919 * rust-lang.c (rust_watch_location_expression): Rename to
5920 rust_language::watch_location_expression.
5921 (rust_language_data): Delete la_watch_location_expression
5922 initializer.
5923 (rust_language::watch_location_expression): New member function,
5924 implementation from rust_watch_location_expression.
5925
5926 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5929 ada_language::collect_symbol_completion_matches.
5930 (ada_language_data): Delete la_collect_symbol_completion_matches
5931 initializer.
5932 (ada_language::collect_symbol_completion_matches): New member
5933 function, implementation from
5934 ada_collect_symbol_completion_matches.
5935 * c-lang.c (c_language_data): Delete
5936 la_collect_symbol_completion_matches initializer.
5937 (cplus_language_data): Likewise.
5938 (asm_language_data): Likewise.
5939 (minimal_language_data): Likewise.
5940 * d-lang.c (d_language_data): Likewise.
5941 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5942 f_language::collect_symbol_completion_matches.
5943 (f_language_data): Delete la_collect_symbol_completion_matches
5944 initializer.
5945 (f_language::collect_symbol_completion_matches) New member
5946 function, implementation from f_collect_symbol_completion_matches.
5947 * go-lang.c (go_language_data): Delete
5948 la_collect_symbol_completion_matches initializer.
5949 * language.c (unknown_language_data): Likewise.
5950 (auto_language_data): Likewise.
5951 * language.h (language_data): Delete
5952 la_collect_symbol_completion_matches field.
5953 (language_defn::collect_symbol_completion_matches): New member
5954 function.
5955 * m2-lang.c (m2_language_data): Delete
5956 la_collect_symbol_completion_matches initializer.
5957 * objc-lang.c (objc_language_data): Likewise.
5958 * opencl-lang.c (opencl_language_data): Likewise.
5959 * p-lang.c (pascal_language_data): Likewise.
5960 * rust-lang.c (rust_language_data): Likewise.
5961 * symtab.c (default_collect_symbol_completion_matches): Delete.
5962 (collect_symbol_completion_matches): Update call to
5963 collect_symbol_completion_matches.
5964 (collect_symbol_completion_matches_type): Likewise.
5965 * symtab.h (default_collect_symbol_completion_matches): Delete
5966 declaration.
5967
5968 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5969
5970 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5971 (ada_language_data): Delete la_word_break_characters initializer.
5972 (ada_language::word_break_characters): New member function.
5973 * c-lang.c (c_language_data): Delete la_word_break_characters
5974 initializer.
5975 (cplus_language_data): Likewise.
5976 (asm_language_data): Likewise.
5977 (minimal_language_data): Likewise.
5978 * completer.c: Update global comment.
5979 (advance_to_expression_complete_word_point): Update call to
5980 word_break_characters.
5981 (complete_files_symbols): Likewise.
5982 (complete_line_internal_1): Likewise.
5983 (default_completer_handle_brkchars): Likewise.
5984 (skip_quoted_chars): Likewise.
5985 * d-lang.c (d_language_data): Delete la_word_break_characters
5986 initializer.
5987 * f-lang.c (f_word_break_characters): Delete.
5988 (f_language_data): Delete la_word_break_characters initializer.
5989 (f_language::word_break_characters): New member function.
5990 * go-lang.c (go_language_data): Delete la_word_break_characters
5991 initializer.
5992 * language.c (unknown_language_data): Likewise.
5993 (auto_language_data): Likewise.
5994 * language.h (default_word_break_characters): Move declaration to
5995 earlier in the file.
5996 (language_data): Delete la_word_break_characters field.
5997 (language_defn::word_break_characters): New member function.
5998 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5999 initializer.
6000 * objc-lang.c (objc_language_data): Likewise.
6001 * opencl-lang.c (opencl_language_data): Likewise.
6002 * p-lang.c (pascal_language_data): Likewise.
6003 * rust-lang.c (rust_language_data): Likewise.
6004
6005 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6006
6007 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6008 (ada_language_data): Delete la_get_symbol_name_matcher
6009 initializer.
6010 (language_defn::get_symbol_name_matcher_inner): New member
6011 function.
6012 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6013 initializer.
6014 (cplus_language_data): Likewise.
6015 (cplus_language::get_symbol_name_matcher_inner): New member
6016 function.
6017 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6018 (minimal_language_data): Likewise.
6019 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6020 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6021 initializer.
6022 * dictionary.c (iter_match_first_hashed): Update call to
6023 get_symbol_name_matcher.
6024 (iter_match_next_hashed): Likewise.
6025 (iter_match_next_linear): Likewise.
6026 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6027 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6028 initializer.
6029 (f_language::get_symbol_name_matcher_inner): New member function.
6030 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6031 initializer.
6032 * language.c (default_symbol_name_matcher): Update header comment,
6033 make static.
6034 (language_defn::get_symbol_name_matcher): New definition.
6035 (language_defn::get_symbol_name_matcher_inner): Likewise.
6036 (get_symbol_name_matcher): Delete.
6037 (unknown_language_data): Delete la_get_symbol_name_matcher
6038 initializer.
6039 (auto_language_data): Likewise.
6040 * language.h (language_data): Delete la_get_symbol_name_matcher
6041 field.
6042 (language_defn::get_symbol_name_matcher): New member function.
6043 (language_defn::get_symbol_name_matcher_inner): Likewise.
6044 (default_symbol_name_matcher): Delete declaration.
6045 * linespec.c (find_methods): Update call to
6046 get_symbol_name_matcher.
6047 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6048 initializer.
6049 * minsyms.c (lookup_minimal_symbol): Update call to
6050 get_symbol_name_matcher.
6051 (iterate_over_minimal_symbols): Likewise.
6052 * objc-lang.c (objc_language_data): Delete
6053 la_get_symbol_name_matcher initializer.
6054 * opencl-lang.c (opencl_language_data): Likewise.
6055 * p-lang.c (pascal_language_data): Likewise.
6056 * psymtab.c (psymbol_name_matches): Update call to
6057 get_symbol_name_matcher.
6058 * rust-lang.c (rust_language_data): Delete
6059 la_get_symbol_name_matcher initializer.
6060 * symtab.c (symbol_matches_search_name): Update call to
6061 get_symbol_name_matcher.
6062 (compare_symbol_name): Likewise.
6063
6064 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6065
6066 * ada-lang.c (ada_language_data): Delete la_compute_program
6067 initializer.
6068 * c-lang.c (c_language_data): Likewise.
6069 (c_language::compute_program): New member function.
6070 (cplus_language_data): Delete la_compute_program initializer.
6071 (cplus_language::compute_program): New member function.
6072 (asm_language_data): Delete la_compute_program initializer.
6073 (minimal_language_data): Likewise.
6074 * c-lang.h (c_compute_program): Update comment.
6075 (cplus_compute_program): Likewise.
6076 * compile/compile-c-support.c (c_compute_program): Likewise.
6077 (cplus_compute_program): Likewise.
6078 * compile/compile.c (compile_to_object): Update call to
6079 la_compute_program.
6080 * d-lang.c (d_language_data): Delete la_compute_program
6081 initializer.
6082 * f-lang.c (f_language_data): Likewise.
6083 * go-lang.c (go_language_data): Likewise.
6084 * language.c (unknown_language_data): Likewise.
6085 (auto_language_data): Likewise.
6086 * language.h (language_data): Delete la_compute_program field.
6087 (language_defn::compute_program): New member function.
6088 * m2-lang.c (m2_language_data): Delete la_compute_program
6089 initializer.
6090 * objc-lang.c (objc_language_data): Likewise.
6091 * opencl-lang.c (opencl_language_data): Likewise.
6092 * p-lang.c (pascal_language_data): Likewise.
6093 * rust-lang.c (rust_language_data): Likewise.
6094
6095 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * ada-lang.c (ada_language_data) Delete
6098 la_class_name_from_physname initializer.
6099 * c-lang.c (c_language_data): Likewise.
6100 (cplus_language_data): Likewise.
6101 (cplus_language::class_name_from_physname): New member function.
6102 (asm_language_data): Delete la_class_name_from_physname
6103 initializer.
6104 (minimal_language_data): Likewise.
6105 * d-lang.c (d_language_data): Likewise.
6106 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6107 method on language_defn class.
6108 (guess_full_die_structure_name): Likewise.
6109 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6110 initializer.
6111 * go-lang.c (go_language_data): Likewise.
6112 * language.c (language_class_name_from_physname): Delete.
6113 (unk_lang_class_name): Delete.
6114 (unknown_language_data): Delete la_class_name_from_physname
6115 initializer.
6116 (auto_language_data): Likewise.
6117 * language.h (language_data): Delete la_class_name_from_physname
6118 field.
6119 (language_defn::class_name_from_physname): New function.
6120 (language_class_name_from_physname): Delete declaration.
6121 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6122 initializer.
6123 * objc-lang.c (objc_language_data): Likewise.
6124 * opencl-lang.c (opencl_language_data): Likewise.
6125 * p-lang.c (pascal_language_data): Likewise.
6126 * rust-lang.c (rust_language_data): Likewise.
6127
6128 2020-06-16 Tom Tromey <tom@tromey.com>
6129
6130 * tui/tui-data.h (STATUS_NAME): New macro.
6131 * tui/tui-layout.c (tui_remove_some_windows)
6132 (initialize_known_windows, tui_register_window)
6133 (tui_layout_split::remove_windows, initialize_layouts)
6134 (tui_new_layout_command): Don't use hard-coded window names.
6135
6136 2020-06-16 Tom Tromey <tom@tromey.com>
6137
6138 PR tui/25348:
6139 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6140 tui_initialize_readline. Only run once. Call rl_initialize.
6141 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6142 tui_initialize_readline.
6143 * tui/tui-io.c (tui_setup_io): Call
6144 tui_ensure_readline_initialized.
6145 * tui/tui-interp.c (tui_interp::init): Update.
6146
6147 2020-06-16 Tom Tromey <tom@tromey.com>
6148
6149 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6150 Also preserve the status window.
6151
6152 2020-06-16 Tom Tromey <tom@tromey.com>
6153
6154 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6155 where m_window==nullptr.
6156
6157 2020-06-15 Tom Tromey <tromey@adacore.com>
6158
6159 * windows-nat.c (windows_nat::handle_output_debug_string):
6160 Update.
6161 (windows_nat::handle_ms_vc_exception): Update.
6162 * target.h (target_read_string): Change API.
6163 * target.c (target_read_string): Change API.
6164 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6165 Update.
6166 * solib-frv.c (frv_current_sos): Update.
6167 * solib-dsbt.c (dsbt_current_sos): Update.
6168 * solib-darwin.c (darwin_current_sos): Update.
6169 * linux-thread-db.c (inferior_has_bug): Update.
6170 * expprint.c (print_subexp_standard): Update.
6171 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6172 (ada_exception_message_1): Update.
6173
6174 2020-06-15 Tom Tromey <tromey@adacore.com>
6175
6176 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6177
6178 2020-06-15 Tom Tromey <tromey@adacore.com>
6179
6180 * valprint.c (read_string): Update comment.
6181 * target.c (MIN): Remove.
6182 (target_read_string): Rewrite.
6183
6184 2020-06-15 Tom Tromey <tromey@adacore.com>
6185
6186 * corefile.c (read_memory_string): Remove.
6187 * ada-valprint.c (ada_value_print_ptr): Update.
6188 * ada-lang.h (ada_tag_name): Change return type.
6189 * ada-lang.c (type_from_tag): Update.
6190 (ada_tag_name_from_tsd): Change return type. Use
6191 target_read_string.
6192 (ada_tag_name): Likewise.
6193 * gdbcore.h (read_memory_string): Don't declare.
6194
6195 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6196
6197 * symtab.c (rbreak_command): Ignore Windows drive colon.
6198
6199 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6200
6201 * NEWS: Mention removed GDBserver host support.
6202
6203 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6204
6205 * features/riscv/rebuild-csr-xml.sh: Updated.
6206
6207 2020-06-11 Tom Tromey <tom@tromey.com>
6208
6209 PR gdb/18318:
6210 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6211
6212 2020-06-09 Jonny Grant <jg@jguk.org>
6213 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * main.c (captured_main_1): Don't print new line after help.
6216 (print_gdb_help): add mailing list and IRC channel information
6217 to --help. Add new lines between items in the footer. Remove
6218 quotes around bug url.
6219
6220 2020-06-11 Keith Seitz <keiths@redhat.com>
6221
6222 PR gdb/21356
6223 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6224 Resolve typedefs for type length calculations.
6225
6226 2020-06-10 Tom de Vries <tdevries@suse.de>
6227
6228 PR ada/24713
6229 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6230 (write_psymbols): Enable .gdb_index for ada.
6231 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6232 ada.
6233
6234 2020-06-10 Tom de Vries <tdevries@suse.de>
6235
6236 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6237 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6238 namei" instead of "const char *name" argument.
6239 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6240 dw2_symtab_iter_init.
6241
6242 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6245 to use type::field and field::type instead.
6246
6247 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6250 to use field::type instead.
6251
6252 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.h (struct field) <type, set_type>: New methods.
6255 Rename `type` field to...
6256 <m_type>: ... this. Change references throughout to use type or
6257 set_type methods.
6258 (FIELD_TYPE): Use field::type. Change call sites that modify
6259 the field's type to use field::set_type instead.
6260
6261 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6264 to use type::index_type instead.
6265
6266 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6269 methods.
6270 (TYPE_INDEX_TYPE): Use type::index_type.
6271 * gdbtypes.c (create_array_type_with_stride): Likewise.
6272
6273 2020-06-07 Tom Tromey <tom@tromey.com>
6274
6275 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6276 parameter.
6277 (generic_value_print): Update.
6278
6279 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 Revert commit 982a38f60b0.
6282 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6283
6284 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6285
6286 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6287 avoid use after free.
6288
6289 2020-06-05 Tom de Vries <tdevries@suse.de>
6290
6291 * NEWS: Fix typos.
6292
6293 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6296 the per_bfd object.
6297 (dwarf2_read_debug_names): Likewise.
6298 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6299 object when re-using a per_bfd object with an index.
6300
6301 2020-06-03 Tom de Vries <tdevries@suse.de>
6302
6303 PR symtab/26046
6304 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6305 children for C++.
6306 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6307 DW_TAG_subprogram.
6308
6309 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * ada-lang.c (ada_language_data): Delete skip_trampoline
6312 initializer.
6313 * c-lang.c (c_language_data): Likewise.
6314 (cplus_language_data): Likewise.
6315 (cplus_language::skip_trampoline): New member function.
6316 (asm_language_data): Delete skip_trampoline initializer.
6317 (minimal_language_data): Likewise.
6318 * d-lang.c (d_language_data): Likewise.
6319 * f-lang.c (f_language_data): Likewise.
6320 * go-lang.c (go_language_data): Likewise.
6321 * language.c (unk_lang_trampoline): Delete function.
6322 (skip_language_trampoline): Update.
6323 (unknown_language_data): Delete skip_trampoline initializer.
6324 (auto_language_data): Likewise.
6325 * language.h (language_data): Delete skip_trampoline field.
6326 (language_defn::skip_trampoline): New function.
6327 * m2-lang.c (m2_language_data): Delete skip_trampoline
6328 initializer.
6329 * objc-lang.c (objc_skip_trampoline): Delete function, move
6330 implementation to objc_language::skip_trampoline.
6331 (objc_language_data): Delete skip_trampoline initializer.
6332 (objc_language::skip_trampoline): New member function with
6333 implementation from objc_skip_trampoline.
6334 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6335 initializer.
6336 * p-lang.c (pascal_language_data): Likewise.
6337 * rust-lang.c (rust_language_data): Likewise.
6338
6339 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6340
6341 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6342 (ada_language::demangle): New member function.
6343 * c-lang.c (c_language_data): Delete la_demangle initializer.
6344 (cplus_language_data): Delete la_demangle initializer.
6345 (cplus_language::demangle): New member function.
6346 (asm_language_data): Delete la_demangle initializer.
6347 (minimal_language_data): Delete la_demangle initializer.
6348 * d-lang.c (d_language_data): Delete la_demangle initializer.
6349 (d_language::demangle): New member function.
6350 * f-lang.c (f_language_data): Delete la_demangle initializer.
6351 (f_language::demangle): New member function.
6352 * go-lang.c (go_language_data): Delete la_demangle initializer.
6353 (go_language::demangle): New member function.
6354 * language.c (language_demangle): Update.
6355 (unk_lang_demangle): Delete.
6356 (unknown_language_data): Delete la_demangle initializer.
6357 (unknown_language::demangle): New member function.
6358 (auto_language_data): Delete la_demangle initializer.
6359 (auto_language::demangle): New member function.
6360 * language.h (language_data): Delete la_demangle field.
6361 (language_defn::demangle): New function.
6362 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6363 * objc-lang.c (objc_language_data): Delete la_demangle
6364 initializer.
6365 (objc_language::demangle): New member function.
6366 * opencl-lang.c (opencl_language_data): Delete la_demangle
6367 initializer.
6368 * p-lang.c (pascal_language_data): Likewise.
6369 * rust-lang.c (rust_language_data): Likewise.
6370 (rust_language::demangle): New member function.
6371
6372 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6373
6374 * ada-lang.c (ada_language_data): Delete la_print_type
6375 initializer.
6376 (ada_language::print_type): New member function.
6377 * c-lang.c (c_language_data): Delete la_print_type initializer.
6378 (c_language::print_type): New member function.
6379 (cplus_language_data): Delete la_print_type initializer.
6380 (cplus_language::print_type): New member function.
6381 (asm_language_data): Delete la_print_type initializer.
6382 (asm_language::print_type): New member function.
6383 (minimal_language_data): Delete la_print_type initializer.
6384 (minimal_language::print_type): New member function.
6385 * d-lang.c (d_language_data): Delete la_print_type initializer.
6386 (d_language::print_type): New member function.
6387 * f-lang.c (f_language_data): Delete la_print_type initializer.
6388 (f_language::print_type): New member function.
6389 * go-lang.c (go_language_data): Delete la_print_type initializer.
6390 (go_language::print_type): New member function.
6391 * language.c (unk_lang_print_type): Delete.
6392 (unknown_language_data): Delete la_print_type initializer.
6393 (unknown_language::print_type): New member function.
6394 (auto_language_data): Delete la_print_type initializer.
6395 (auto_language::print_type): New member function.
6396 * language.h (language_data): Delete la_print_type field.
6397 (language_defn::print_type): New function.
6398 (LA_PRINT_TYPE): Update.
6399 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6400 (m2_language::print_type): New member function.
6401 * objc-lang.c (objc_language_data): Delete la_print_type
6402 initializer.
6403 (objc_language::print_type): New member function.
6404 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6405 to opencl_language::print_type.
6406 (opencl_language_data): Delete la_print_type initializer.
6407 (opencl_language::print_type): New member function, implementation
6408 from opencl_print_type.
6409 * p-lang.c (pascal_language_data): Delete la_print_type
6410 initializer.
6411 (pascal_language::print_type): New member function.
6412 * rust-lang.c (rust_print_type): Delete, implementation moved to
6413 rust_language::print_type.
6414 (rust_language_data): Delete la_print_type initializer.
6415 (rust_language::print_type): New member function, implementation
6416 from rust_print_type.
6417
6418 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6421 implementation moves to...
6422 (ada_language::sniff_from_mangled_name): ...here. Update return
6423 type.
6424 (ada_language_data): Delete la_sniff_from_mangled_name
6425 initializer.
6426 * c-lang.c (c_language_data): Likewise.
6427 (cplus_language_data): Likewise.
6428 (cplus_language::sniff_from_mangled_name): New member function,
6429 implementation taken from gdb_sniff_from_mangled_name.
6430 (asm_language_data): Delete la_sniff_from_mangled_name
6431 initializer.
6432 (minimal_language_data): Likewise.
6433 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6434 implementation moves to cplus_language::sniff_from_mangled_name.
6435 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6436 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6437 moves to...
6438 (d_language::sniff_from_mangled_name): ...here.
6439 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6440 * f-lang.c (f_language_data): Likewise.
6441 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6442 moves to...
6443 (go_language::sniff_from_mangled_name): ...here.
6444 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6445 * language.c (language_sniff_from_mangled_name): Delete.
6446 (unknown_language_data): Delete la_sniff_from_mangled_name
6447 initializer.
6448 (auto_language_data): Likewise.
6449 * language.h (language_data): Delete la_sniff_from_mangled_name
6450 field.
6451 (language_defn::sniff_from_mangled_name): New function.
6452 (language_sniff_from_mangled_name): Delete declaration.
6453 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6454 field.
6455 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6456 implementation moves to...
6457 (objc_language::sniff_from_mangled_name): ...here.
6458 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6459 * opencl-lang.c (opencl_language_data): Likewise.
6460 * p-lang.c (pascal_language_data): Likewise.
6461 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6462 implementation moves to...
6463 (rust_language::sniff_from_mangled_name): ...here.
6464 (rust_language_data): Delete la_sniff_from_mangled_name
6465 initializer.
6466 * symtab.c (symbol_find_demangled_name): Call
6467 sniff_from_mangled_name member function.
6468
6469 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6472 initializer.
6473 * c-lang.c (c_language_data): Likewise.
6474 (cplus_language_data): Likewise.
6475 (cplus_language::search_name_hash): New member function.
6476 (asm_language_data): Delete la_search_name_hash initializer.
6477 (minimal_language_data): Likewise.
6478 * d-lang.c (d_language_data): Likewise.
6479 * dictionary.c (default_search_name_hash): Rename to...
6480 (language_defn::search_name_hash): ...this.
6481 * f-lang.c (f_language_data): Likewise.
6482 (f_language::search_name_hash): New member function.
6483 * go-lang.c (go_language_data): Delete la_search_name_hash
6484 initializer.
6485 * language.c (unknown_language_data): Likewise.
6486 (auto_language_data): Likewise.
6487 * language.h (struct language_data): Delete la_search_name_hash
6488 field.
6489 (language_defn::search_name_hash): Declare new member function.
6490 (default_search_name_hash): Delete declaration.
6491 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6492 initializer.
6493 * objc-lang.c (objc_language_data): Likewise.
6494 * opencl-lang.c (opencl_language_data): Likewise.
6495 * p-lang.c (pascal_language_data): Likewise.
6496 * rust-lang.c (rust_language_data): Likewise.
6497 * symtab.c (search_name_hash): Update call.
6498
6499 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6500
6501 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6502 initializer.
6503 * c-lang.c (class compile_instance): Declare.
6504 (c_language_data): Delete la_get_compile_instance initializer.
6505 (c_language::get_compile_instance): New member function.
6506 (cplus_language_data): Delete la_get_compile_instance initializer.
6507 (cplus_language::get_compile_instance): New member function.
6508 (asm_language_data): Delete la_get_compile_instance initializer.
6509 (minimal_language_data): Likewise.
6510 * c-lang.h (c_get_compile_context): Update comment.
6511 (cplus_get_compile_context): Update comment.
6512 * compile/compile.c (compile_to_object): Update calls, don't rely
6513 on function pointer being NULL.
6514 * d-lang.c (d_language_data): Delete la_get_compile_instance
6515 initializer.
6516 * f-lang.c (f_language_data): Likewise.
6517 * go-lang.c (go_language_data): Likewise.
6518 * language.c (unknown_language_data): Likewise.
6519 (auto_language_data): Likewise.
6520 * language.h (language_data): Delete la_get_compile_instance field.
6521 (language_defn::get_compile_instance): New member function.
6522 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6523 initializer.
6524 * objc-lang.c (objc_language_data): Likewise.
6525 * opencl-lang.c (opencl_language_data): Likewise.
6526 * p-lang.c (pascal_language_data): Likewise.
6527 * rust-lang.c (rust_language_data): Likewise.
6528
6529 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6530
6531 * ada-lang.c (ada_add_all_symbols): Update comment.
6532 (ada_iterate_over_symbols): Delete, move implementation to...
6533 (ada_language::iterate_over_symbols): ...here, a new member
6534 function, rewrite to use range based for loop.
6535 (ada_language_data): Delete la_iterate_over_symbols initializer.
6536 * c-lang.c (c_language_data): Likewise.
6537 (cplus_language_data): Likewise.
6538 (asm_language_data): Likewise.
6539 (minimal_language_data): Likewise.
6540 * d-lang.c (d_language_data): Likewise.
6541 * f-lang.c (f_language_data): Likewise.
6542 * go-lang.c (go_language_data): Likewise.
6543 * language.c (unknown_language_data): Likewise.
6544 (auto_language_data): Likewise.
6545 * language.h (language_data): Delete la_iterate_over_symbols field.
6546 (language_defn::iterate_over_symbols): New member function.
6547 (LA_ITERATE_OVER_SYMBOLS): Update.
6548 * linespec.c (iterate_over_all_matching_symtabs): Update.
6549 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6550 initializer.
6551 * objc-lang.c (objc_language_data): Likewise.
6552 * opencl-lang.c (opencl_language_data): Likewise.
6553 * p-lang.c (pascal_language_data): Likewise.
6554 * rust-lang.c (rust_language_data): Likewise.
6555
6556 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * ada-lang.c (ada_language_data): Delete
6559 la_lookup_transparent_type initializer.
6560 * c-lang.c (c_language_data): Likewise.
6561 (cplus_language_data): Likewise.
6562 (cplus_language::lookup_transparent_type): New member function.
6563 (asm_language_data): Delete la_lookup_transparent_type
6564 initializer.
6565 (minimal_language_data): Likewise.
6566 * d-lang.c (d_language_data): Likewise.
6567 * f-lang.c (f_language_data): Likewise.
6568 * go-lang.c (go_language_data): Likewise.
6569 * language.c (unknown_language_data): Likewise.
6570 (auto_language_data): Likewise.
6571 * language.h (struct language_data): Delete
6572 la_lookup_transparent_type field.
6573 (language_defn::lookup_transparent_type): New member function.
6574 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6575 initializer.
6576 * objc-lang.c (objc_language_data): Likewise.
6577 * opencl-lang.c (opencl_language_data): Likewise.
6578 * p-lang.c (pascal_language_data): Likewise.
6579 * rust-lang.c (rust_language_data): Likewise.
6580 * symtab.c (symbol_matches_domain): Update call.
6581
6582 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * ada-lang.c (ada_language_arch_info): Delete function, move
6585 implementation to...
6586 (ada_language::language_arch_info): ...here, a new member
6587 function.
6588 (ada_language_data): Delete la_language_arch_info.
6589 * c-lang.c (c_language_data): Likewise.
6590 (c_language::language_arch_info): New member function.
6591 (cplus_language_arch_info): Delete function, move
6592 implementation to...
6593 (cplus_language::language_arch_info): ...here, a new member
6594 function.
6595 (cplus_language_data): Delete la_language_arch_info.
6596 (asm_language_data): Likewise.
6597 (asm_language::language_arch_info): New member function.
6598 (minimal_language_data): Delete la_language_arch_info.
6599 (minimal_language::language_arch_info): New member function.
6600 * d-lang.c (d_language_arch_info): Delete function, move
6601 implementation to...
6602 (d_language::language_arch_info): ...here, a new member
6603 function.
6604 (d_language_data): Delete la_language_arch_info.
6605 * f-lang.c (f_language_arch_info): Delete function, move
6606 implementation to...
6607 (f_language::language_arch_info): ...here, a new member
6608 function.
6609 (f_language_data): Delete la_language_arch_info.
6610 * go-lang.c (go_language_arch_info): Delete function, move
6611 implementation to...
6612 (go_language::language_arch_info): ...here, a new member
6613 function.
6614 (go_language_data): Delete la_language_arch_info.
6615 * language.c (unknown_language_data): Likewise.
6616 (unknown_language::language_arch_info): New member function.
6617 (auto_language_data): Delete la_language_arch_info.
6618 (auto_language::language_arch_info): New member function.
6619 (language_gdbarch_post_init): Update call to
6620 la_language_arch_info.
6621 * language.h (language_data): Delete la_language_arch_info
6622 function pointer.
6623 (language_defn::language_arch_info): New function.
6624 * m2-lang.c (m2_language_arch_info): Delete function, move
6625 implementation to...
6626 (m2_language::language_arch_info): ...here, a new member
6627 function.
6628 (m2_language_data): Delete la_language_arch_info.
6629 * objc-lang.c (objc_language_arch_info): Delete function, move
6630 implementation to...
6631 (objc_language::language_arch_info): ...here, a new member
6632 function.
6633 (objc_language_data): Delete la_language_arch_info.
6634 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6635 implementation to...
6636 (opencl_language::language_arch_info): ...here, a new member
6637 function.
6638 (opencl_language_data): Delete la_language_arch_info.
6639 * p-lang.c (pascal_language_arch_info): Delete function, move
6640 implementation to...
6641 (pascal_language::language_arch_info): ...here, a new member
6642 function.
6643 (pascal_language_data): Delete la_language_arch_info.
6644 * rust-lang.c (rust_language_arch_info): Delete function, move
6645 implementation to...
6646 (rust_language::language_arch_info): ...here, a new member
6647 function.
6648 (rust_language_data): Delete la_language_arch_info.
6649
6650 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6651
6652 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6653 initializer.
6654 * c-lang.c (c_language_data): Likewise.
6655 (cplus_language_data): Likewise.
6656 (cplus_language::pass_by_reference_info): New method.
6657 (asm_language_data): Delete la_pass_by_reference initializer.
6658 (minimal_language_data): Likewise.
6659 * cp-abi.c (cp_pass_by_reference): Remove use of
6660 default_pass_by_reference.
6661 * d-lang.c (d_language_data): Likewise.
6662 * f-lang.c (f_language_data): Likewise.
6663 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6664 default_pass_by_reference.
6665 * go-lang.c (go_language_data): Likewise.
6666 * language.c (language_pass_by_reference): Update.
6667 (default_pass_by_reference): Delete.
6668 (unknown_language_data): Delete la_pass_by_reference
6669 initializer.
6670 (auto_language_data): Likewise.
6671 * language.h (struct language_data): Delete la_pass_by_reference
6672 field.
6673 (language_defn::pass_by_reference_info): New member function.
6674 (default_pass_by_reference): Delete declaration.
6675 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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
6682 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * ada-lang.c (ada_read_var_value): Delete function, move
6685 implementation to...
6686 (ada_language::read_var_value): ...here.
6687 (ada_language_data): Delete la_read_var_value initializer.
6688 * c-lang.c (c_language_data): Likewise.
6689 (cplus_language_data): Likewise.
6690 (minimal_language_data): Likewise.
6691 * d-lang.c (d_language_data): Likewise.
6692 * f-lang.c (f_language_data): Likewise.
6693 * findvar.c (default_read_var_value): Rename to...
6694 (language_defn::read_var_value): ...this.
6695 * findvar.c (read_var_value): Update header comment, and change to
6696 call member function instead of function pointer.
6697 * go-lang.c (go_language_data): Likewise.
6698 * language.c (unknown_language_data): Delete la_read_var_value
6699 initializer.
6700 (auto_language_data): Likewise.
6701 * language.h (struct language_data): Delete la_read_var_value
6702 field.
6703 (language_defn::read_var_value): New member function.
6704 (default_read_var_value): Delete declaration.
6705 * m2-lang.c (m2_language_data): Delete la_read_var_value
6706 initializer.
6707 * objc-lang.c (objc_language_data): Likewise.
6708 * opencl-lang.c (opencl_language_data): Likewise.
6709 * p-lang.c (pascal_language_data): Likewise.
6710 * rust-lang.c (rust_language_data): Likewise.
6711 * value.h (default_read_var_value): Delete declaration.
6712
6713 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6714
6715 * ada-lang.c (ada_print_array_index): Delete function, move
6716 implementation to...
6717 (ada_language::print_array_index): ...here.
6718 (ada_language_data): Delete la_print_array_index initializer.
6719 * c-lang.c (c_language_data): Likewise.
6720 (cplus_language_data): Likewise.
6721 (minimal_language_data): Likewise.
6722 * d-lang.c (d_language_data): Likewise.
6723 * f-lang.c (f_language_data): Likewise.
6724 * go-lang.c (go_language_data): Likewise.
6725 * language.c (default_print_array_index): Delete function, move
6726 implementation to...
6727 (language_defn::print_array_index): ...here.
6728 (unknown_language_data): Delete la_print_array_index initializer.
6729 (auto_language_data): Likewise.
6730 * language.h (struct language_data): Delete la_print_array_index
6731 field.
6732 (language_defn::print_array_index): New member function.
6733 (LA_PRINT_ARRAY_INDEX): Update.
6734 (default_print_array_index): Delete declaration.
6735 * m2-lang.c (m2_language_data): Delete la_print_array_index
6736 initializer.
6737 * objc-lang.c (objc_language_data): Likewise.
6738 * opencl-lang.c (opencl_language_data): Likewise.
6739 * p-lang.c (pascal_language_data): Likewise.
6740 * rust-lang.c (rust_language_data): Likewise.
6741
6742 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * gdb/ada-lang.c (ada_language_defn): Convert to...
6745 (ada_language_data): ...this.
6746 (class ada_language): New class.
6747 (ada_language_defn): New static global.
6748 * gdb/c-lang.c (c_language_defn): Convert to...
6749 (c_language_data): ...this.
6750 (class c_language): New class.
6751 (c_language_defn): New static global.
6752 (cplus_language_defn): Convert to...
6753 (cplus_language_data): ...this.
6754 (class cplus_language): New class.
6755 (cplus_language_defn): New static global.
6756 (asm_language_defn): Convert to...
6757 (asm_language_data): ...this.
6758 (class asm_language): New class.
6759 (asm_language_defn): New static global.
6760 (minimal_language_defn): Convert to...
6761 (minimal_language_data): ...this.
6762 (class minimal_language): New class.
6763 (minimal_language_defn): New static global.
6764 * gdb/d-lang.c (d_language_defn): Convert to...
6765 (d_language_data): ...this.
6766 (class d_language): New class.
6767 (d_language_defn): New static global.
6768 * gdb/f-lang.c (f_language_defn): Convert to...
6769 (f_language_data): ...this.
6770 (class f_language): New class.
6771 (f_language_defn): New static global.
6772 * gdb/go-lang.c (go_language_defn): Convert to...
6773 (go_language_data): ...this.
6774 (class go_language): New class.
6775 (go_language_defn): New static global.
6776 * gdb/language.c (unknown_language_defn): Remove declaration.
6777 (current_language): Initialize to nullptr, real initialization is
6778 moved to _initialize_language.
6779 (languages): Delete global.
6780 (language_defn::languages): Define.
6781 (set_language_command): Use language_defn::languages.
6782 (set_language): Likewise.
6783 (range_error): Likewise.
6784 (language_enum): Likewise.
6785 (language_def): Likewise.
6786 (add_set_language_command): Use language_def::languages for the
6787 language list, and language_def to lookup language pointers.
6788 (skip_language_trampoline): Use language_defn::languages.
6789 (unknown_language_defn): Convert to...
6790 (unknown_language_data): ...this.
6791 (class unknown_language): New class.
6792 (unknown_language_defn): New static global.
6793 (auto_language_defn): Convert to...
6794 (auto_language_data): ...this.
6795 (class auto_language): New class.
6796 (auto_language_defn): New static global.
6797 (language_gdbarch_post_init): Use language_defn::languages.
6798 (_initialize_language): Initialize current_language.
6799 * gdb/language.h (struct language_defn): Rename to...
6800 (struct language_data): ...this.
6801 (struct language_defn): New.
6802 (auto_language_defn): Delete.
6803 (unknown_language_defn): Delete.
6804 (minimal_language_defn): Delete.
6805 (ada_language_defn): Delete.
6806 (asm_language_defn): Delete.
6807 (c_language_defn): Delete.
6808 (cplus_language_defn): Delete.
6809 (d_language_defn): Delete.
6810 (f_language_defn): Delete.
6811 (go_language_defn): Delete.
6812 (m2_language_defn): Delete.
6813 (objc_language_defn): Delete.
6814 (opencl_language_defn): Delete.
6815 (pascal_language_defn): Delete.
6816 (rust_language_defn): Delete.
6817 * gdb/m2-lang.c (m2_language_defn): Convert to...
6818 (m2_language_data): ...this.
6819 (class m2_language): New class.
6820 (m2_language_defn): New static global.
6821 * gdb/objc-lang.c (objc_language_defn): Convert to...
6822 (objc_language_data): ...this.
6823 (class objc_language): New class.
6824 (objc_language_defn): New static global.
6825 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6826 (opencl_language_data): ...this.
6827 (class opencl_language): New class.
6828 (opencl_language_defn): New static global.
6829 * gdb/p-lang.c (pascal_language_defn): Convert to...
6830 (pascal_language_data): ...this.
6831 (class pascal_language): New class.
6832 (pascal_language_defn): New static global.
6833 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6834 language pointer, update comment format.
6835 * gdb/rust-lang.c (rust_language_defn): Convert to...
6836 (rust_language_data): ...this.
6837 (class rust_language): New class.
6838 (rust_language_defn): New static global.
6839
6840 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6843 member variable.
6844 <m_stmt_at_address>: New member variable.
6845 (lnp_state_machine::record_line): Don't record some lines, update
6846 tracking of is_stmt at the same address.
6847 (lnp_state_machine::lnp_state_machine): Initialise new member
6848 variables.
6849
6850 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6851
6852 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6853 "-include gnu-nat-mig.h".
6854 * gnu-nat-mig.h: New file.
6855 * gnu-nat.c: Include "gnu-nat-mig.h".
6856 (exc_server, msg_reply_server, notify_server,
6857 process_reply_server): Remove declarations.
6858
6859 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6860
6861 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6862 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6863 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6864 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6865 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6866 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6867 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6868 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6869 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6870 to gnu_nat_target class.
6871 * gnu-nat.c: Likewise.
6872 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6873 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6874 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6875 object.
6876 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6877 instead of `gnu_target'.
6878
6879 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6880
6881 * i386-gnu-tdep.c: Include "gdbcore.h"
6882 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6883 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6884 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6885 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6886 i386_gnu_sigcontext_addr): New functions
6887 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6888 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6889 tdep.
6890
6891 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6892
6893 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6894 before fork_inferior call. Avoid calling it if target_is_pushed returns
6895 true.
6896
6897 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6898
6899 * gnu-nat.h (gnu_target): New variable declaration.
6900 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6901 gnu_target.
6902 * gnu-nat.c (gnu_target): New variable.
6903 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6904 add_thread_silent, and add_thread calls.
6905 (gnu_nat_target::create_inferior): Pass gnu_target to
6906 add_thread_silent, thread_change_ptid call.
6907 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6908 call.
6909
6910 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6911
6912 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6913 (gnu_nat_target::find_memory_regions): Remove unused
6914 `old_address' variable.
6915
6916 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6917
6918 * gnu-nat.c: Include "gdbarch.h".
6919
6920 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6921
6922 * reply_mig_hack.awk (Error return): Cast function through
6923 void *, to bypass compiler function call check.
6924
6925 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6926
6927 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6928 $(srcdir)/reply_mig_hack.awk.
6929
6930 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6931
6932 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6933
6934 2020-05-30 Jonny Grant <jg@jguk.org>
6935
6936 * configure.ac (ACX_BUGURL): change bug URL to https.
6937
6938 2020-05-30 Pedro Alves <palves@redhat.com>
6939
6940 * cp-support.c (replace_typedefs_template): New.
6941 (replace_typedefs_qualified_name): Handle
6942 DEMANGLE_COMPONENT_TEMPLATE.
6943
6944 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6947 dwarf2/index-cache.h, dwarf2/index-write.c,
6948 dwarf2/index-write.h, dwarf2/line-header.c,
6949 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6950 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6951 variables and fields from `dwarf2_per_objfile` to just
6952 `per_objfile` throughout.
6953
6954 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6955
6956 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6957 <push_dwarf_reg_entry_value>: Add comment.
6958
6959 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6960 Keith Seitz <keiths@redhat.com>
6961
6962 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6963 instead of PyEval_ReleaseLock.
6964 (class gdbpy_gil): Move to earlier in file.
6965 (finalize_python): Set gdb_python_initialized.
6966 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6967 when not initialized.
6968
6969 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6972 <push_dwarf_reg_entry_value>: Remove assert. Override
6973 per_objfile with caller_per_objfile.
6974
6975 2020-05-28 Tom de Vries <tdevries@suse.de>
6976
6977 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6978 PR gold/15646 workaround to symbol kind "type".
6979
6980 2020-05-27 Tom Tromey <tromey@adacore.com>
6981
6982 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6983
6984 2020-05-27 Tom Tromey <tromey@adacore.com>
6985
6986 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6987 Use htab_find_with_hash.
6988 <add_abbrev>: Remove "abbrev_number" parameter.
6989 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6990 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6991 (hash_abbrev): Add comment.
6992 (abbrev_table::lookup_abbrev): Move to header file.
6993 (abbrev_table::read): Update.
6994
6995 2020-05-27 Tom Tromey <tromey@adacore.com>
6996
6997 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6998 method.
6999 <canonical_name>: New member.
7000 <raw_name>: Rename from "name".
7001 (partial_die_info): Initialize canonical_name.
7002 (scan_partial_symbols): Check raw_name.
7003 (partial_die_parent_scope, partial_die_full_name)
7004 (add_partial_symbol, add_partial_subprogram)
7005 (add_partial_enumeration, load_partial_dies): Use "name" method.
7006 (partial_die_info::name): New method.
7007 (partial_die_info::read, guess_partial_die_structure_name)
7008 (partial_die_info::fixup): Update.
7009
7010 2020-05-27 Tom Tromey <tromey@adacore.com>
7011
7012 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7013 <get_ref_die_offset>: Inline.
7014 <get_ref_die_offset_complaint>: New method.
7015 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7016 (attribute::get_ref_die_offset_complaint): Rename from
7017 get_ref_die_offset. Just issue complaint.
7018
7019 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7020
7021 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7022
7023 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7024
7025 * exec.c (exec_file_attach): Use errno value of first openp failure.
7026
7027 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7028
7029 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7030 Don't close thread handle.
7031
7032 2020-05-27 Tom Tromey <tom@tromey.com>
7033 Simon Marchi <simon.marchi@efficios.com>
7034
7035 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7036 shared_ptr.
7037 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7038 member.
7039 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7040 dwarf2_per_bfd_objfile_data_key>: New globals.
7041 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7042 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7043 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7044 shared.
7045 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7046 short-circuit when sharing.
7047 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7048 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7049
7050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7051
7052 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7053 to...
7054 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7055 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7056
7057 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7060 build_name_components, find_name_components_bounds>:
7061 Add per_objfile parameter.
7062 (struct mapped_index) <symbol_name_at>: Likewise.
7063 (struct mapped_debug_names): Remove constructor.
7064 <dwarf2_per_objfile>: Remove field.
7065 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7066 (mapped_index_base::find_name_components_bounds,
7067 mapped_index_base::build_name_components,
7068 dw2_expand_symtabs_matching_symbol): Likewise.
7069 (class mock_mapped_index) <symbol_name_at>: Likewise.
7070 (check_match): Likewise.
7071 (check_find_bounds_finds): Likewise.
7072 (test_mapped_index_find_name_component_bounds): Update.
7073 (CHECK_MATCH): Update.
7074 (dw2_expand_symtabs_matching): Update.
7075 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7076 per_objfile parameter.
7077 <find_vec_in_debug_names>: Likewise.
7078 <m_per_objfile>: New field.
7079 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7080 parameter.
7081 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7082 (dw2_debug_names_iterator::next): Update.
7083 (dw2_debug_names_lookup_symbol): Update.
7084 (dw2_debug_names_expand_symtabs_for_function): Update.
7085 (dw2_debug_names_map_matching_symbols): Update.
7086 (dw2_debug_names_expand_symtabs_matching): Update.
7087 (dwarf2_read_debug_names): Update.
7088
7089 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7090
7091 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7092 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7093 move to dwarf2_per_objfile.
7094 <read_in_chain>: Remove.
7095 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7096 remove_all_cus, age_comp_units>: New methods.
7097 <m_dwarf2_cus>: New member.
7098 (struct dwarf2_per_cu_data) <cu>: Remove.
7099 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7100 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7101 moved to methods of dwarf2_per_objfile.
7102 (dwarf2_clear_marks): Remove.
7103 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7104 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7105 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7106 (dwarf2_per_objfile::remove_all_cus): New.
7107 (class free_cached_comp_units) <~free_cached_comp_units>:
7108 Update.
7109 (load_cu): Update.
7110 (dw2_do_instantiate_symtab): Adjust.
7111 (fill_in_sig_entry_from_dwo_entry): Adjust.
7112 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7113 (cutu_reader::cutu_reader): Likewise.
7114 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7115 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7116 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7117 and dwarf2_per_objfile::age_comp_units.
7118 (load_partial_comp_unit): Update.
7119 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7120 (process_queue): Likewise.
7121 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7122 backlink.
7123 (dwarf2_read_addr_index): Likewise.
7124 (follow_die_offset): Likewise.
7125 (dwarf2_fetch_die_loc_sect_off): Likewise.
7126 (dwarf2_fetch_constant_bytes): Likewise.
7127 (dwarf2_fetch_die_type_sect_off): Likewise.
7128 (follow_die_sig_1): Likewise.
7129 (load_full_type_unit): Likewise.
7130 (read_signatured_type): Likewise.
7131 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7132 (dwarf2_cu::~dwarf2_cu): Remove.
7133 (dwarf2_per_objfile::get_cu): New.
7134 (dwarf2_per_objfile::set_cu): New.
7135 (age_cached_comp_units): Rename to...
7136 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7137 to std::unordered_map.
7138 (free_one_cached_comp_unit): Rename to...
7139 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7140 to std::unordered_map.
7141 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7142 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7143 a dwarf2_per_objfile in data.
7144 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7145 (dwarf2_clear_marks): Remove.
7146
7147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7150 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7151 (init_tu_and_read_dwo_dies): Likewise.
7152 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7153 (cutu_reader::cutu_reader): Likewise.
7154 (load_partial_comp_unit): Likewise.
7155 (process_psymtab_comp_unit): Update.
7156 (build_type_psymtabs_1): Update.
7157 (process_skeletonless_type_unit): Update.
7158 (load_full_comp_unit): Update.
7159 (find_partial_die): Update.
7160 (dwarf2_read_addr_index): Update.
7161 (read_signatured_type): Update.
7162
7163 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7164
7165 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7166 m_header_read_in>: New fields.
7167 <get_header>: New method.
7168 * dwarf2/read.c (per_cu_header_read_in): Remove.
7169 (dwarf2_per_cu_data::get_header): New.
7170 (dwarf2_per_cu_data::addr_size): Update.
7171 (dwarf2_per_cu_data::offset_size): Update.
7172 (dwarf2_per_cu_data::ref_addr_size): Update.
7173
7174 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7175
7176 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7177 (dw2_do_instantiate_symtab): Update.
7178 (queue_and_load_all_dwo_tus): Change parameter from
7179 dwarf2_per_cu_data to dwarf2_cu.
7180 (dwarf2_fetch_die_loc_sect_off): Update.
7181 (dwarf2_fetch_constant_bytes): Update.
7182 (dwarf2_fetch_die_type_sect_off): Update.
7183
7184 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * dwarf2/read.c (process_full_comp_unit,
7187 process_full_type_unit): Remove per_cu, per_objfile paramters.
7188 Add dwarf2_cu parameter.
7189 (process_queue): Update.
7190
7191 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * dwarf2/read.c (create_cu_from_index_list): Replace
7194 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7195 (create_cus_from_index_list): Likewise.
7196 (create_cus_from_index): Likewise.
7197 (create_signatured_type_table_from_index): Likewise.
7198 (create_cus_from_debug_names_list): Likewise.
7199 (create_cus_from_debug_names): Likewise.
7200 (dwarf2_read_gdb_index): Update.
7201 (dwarf2_read_debug_names): Update.
7202
7203 2020-05-27 Tom Tromey <tom@tromey.com>
7204 Simon Marchi <simon.marchi@efficios.com>
7205
7206 * dwarf2/read.h (struct dwarf2_per_objfile)
7207 <get_type_for_signatured_type, set_type_for_signatured_type>:
7208 New methods.
7209 <m_type_map>: New member.
7210 (struct signatured_type) <type>: Remove.
7211 * dwarf2/read.c
7212 (dwarf2_per_objfile::get_type_for_signatured_type,
7213 dwarf2_per_objfile::set_type_for_signatured_type): New.
7214 (get_signatured_type): Use new methods.
7215
7216 2020-05-27 Tom Tromey <tom@tromey.com>
7217 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7220 (struct dwarf2_per_objfile) <type_units>: New member.
7221 <get_type_unit_group_unshareable>: New method.
7222 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7223 num_symtabs, symtabs>: Remove; move to
7224 type_unit_group_unshareable.
7225 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7226 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7227 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7228
7229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7230
7231 * dwarf2/read.h (struct dwarf2_per_cu_data):
7232 <dwarf2_per_objfile>: Remove.
7233 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7234 dwarf2_per_objfile.
7235 (create_signatured_type_table_from_index): Likewise.
7236 (create_signatured_type_table_from_debug_names): Likewise.
7237 (create_debug_type_hash_table): Likewise.
7238 (fill_in_sig_entry_from_dwo_entry): Likewise.
7239 (create_type_unit_group): Likewise.
7240 (read_comp_units_from_section): Likewise.
7241 (create_cus_hash_table): Likewise.
7242
7243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7244
7245 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7246 dwarf2_per_cu_data::dwarf2_per_objfile.
7247 (compute_compunit_symtab_includes): Likewise.
7248 (dwarf2_cu::start_symtab): Likewise.
7249
7250 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7251
7252 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7253 parameter.
7254 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7255 (read_namespace_alias): Update.
7256 (lookup_die_type): Update.
7257 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7258 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7259 Update.
7260 (disassemble_dwarf_expression): Update.
7261
7262 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * dwarf2/read.h (struct dwarf2_queue_item): Add
7265 dwarf2_per_objfile parameter, assign new parameter.
7266 <per_objfile>: New field.
7267 * dwarf2/read.c (free_one_cached_comp_unit): Add
7268 dwarf2_per_objfile parameter.
7269 (queue_comp_unit): Likewise.
7270 (dw2_do_instantiate_symtab): Update.
7271 (process_psymtab_comp_unit): Update.
7272 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7273 (process_imported_unit_die): Update.
7274 (queue_and_load_dwo_tu): Update.
7275 (follow_die_offset): Update.
7276 (follow_die_sig_1): Update.
7277
7278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7279
7280 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7281 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7282 (read_call_site_scope): Assign per_objfile.
7283 (dwarf2_per_cu_data::objfile): Remove.
7284 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7285 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7286 dwarf2_per_objfile parameter.
7287 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7288 dwarf2_per_objfile parameter.
7289 (dwarf_expr_reg_to_entry_parameter): Add output
7290 dwarf2_per_objfile parameter.
7291 (locexpr_get_frame_base): Update.
7292 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7293 <push_dwarf_reg_entry_value>: Update.
7294 <call_site_to_target_addr>: Update.
7295 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7296 parameter.
7297 (value_of_dwarf_reg_entry): Update.
7298 (rw_pieced_value): Update.
7299 (indirect_synthetic_pointer): Update.
7300 (dwarf2_evaluate_property): Update.
7301 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7302 parameter.
7303 (locexpr_read_variable): Update.
7304 (locexpr_get_symbol_read_needs): Update.
7305 (loclist_read_variable): Update.
7306
7307 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7310 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7311 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7312 parameter.
7313 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7314 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7315 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7316 parameter.
7317 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7318 sect_variable_value): Add dwarf2_per_objfile parameter.
7319 (class dwarf_evaluate_loc_desc) <dwarf_call,
7320 dwarf_variable_value>: Update.
7321 (fetch_const_value_from_synthetic_pointer): Add
7322 dwarf2_per_objfile parameter.
7323 (fetch_const_value_from_synthetic_pointer): Update.
7324 (coerced_pieced_ref): Update.
7325 (class symbol_needs_eval_context) <dwarf_call,
7326 dwarf_variable_value>: Update.
7327 (dwarf2_compile_expr_to_ax): Update.
7328
7329 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7330
7331 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7332 parameter.
7333 (dwarf2_evaluate_loc_desc_full): Update.
7334
7335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7338 parameter.
7339 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7340 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7341 dwarf2_per_objfile parameter.
7342 (decode_debug_loc_dwo_addresses): Likewise.
7343 (dwarf2_find_location_expression): Update.
7344 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7345 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7346 parameter.
7347 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7348 parameter.
7349 (locexpr_describe_location_1): Likewise.
7350 (locexpr_describe_location): Update.
7351
7352 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7355 Remove.
7356 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7357 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7358 (dwarf2_compile_property_to_c): Update.
7359 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7360 use text offset from objfile.
7361 (locexpr_tracepoint_var_ref): Update.
7362 (locexpr_generate_c_location): Update.
7363 (loclist_describe_location): Update.
7364 (loclist_tracepoint_var_ref): Update.
7365 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7366 dwarf2_per_objfile parameter.
7367 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7368 use text offset from objfile.
7369 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7370
7371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * dwarf2/expr.h (struct dwarf_expr_context)
7374 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7375 <offset>: Remove.
7376 <per_objfile>: New member.
7377 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7378 dwarf2_per_objfile parameter. Don't set offset, set
7379 per_objfile.
7380 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7381 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7382 a dwarf2_per_objfile object instead of an offset.
7383 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7384 constructor.
7385 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7386 to dwarf2_expr_executor constructor. Don't set offset.
7387 (dwarf2_fetch_cfa_info): Update.
7388 (struct dwarf2_frame_cache) <text_offset>: Remove.
7389 <per_objfile>: New field.
7390 (dwarf2_frame_cache): Update.
7391 (dwarf2_frame_prev_register): Update.
7392 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7393 <dwarf_evaluate_loc_desc>: Add constructor.
7394 (dwarf2_evaluate_loc_desc_full): Update.
7395 (dwarf2_locexpr_baton_eval): Update.
7396 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7397 Add constructor.
7398 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7399
7400 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7403 addr_sized_int_type>: Move to dwarf2_cu.
7404 <int_type>: Move to dwarf2_per_objfile.
7405 (struct dwarf2_per_objfile) <int_type>: Move here.
7406 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7407 addr_sized_int_type>: Move here.
7408 (read_func_scope): Update.
7409 (read_array_type): Update.
7410 (read_tag_string_type): Update.
7411 (attr_to_dynamic_prop): Update.
7412 (dwarf2_per_cu_data::int_type): Rename to...
7413 (dwarf2_per_objfile::int_type): ... this.
7414 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7415 (dwarf2_cu::addr_sized_int_type): ... this.
7416 (read_subrange_type): Update.
7417 (dwarf2_per_cu_data::addr_type): Rename to...
7418 (dwarf2_cu::addr_type): ... this.
7419 (set_die_type): Update.
7420
7421 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7422
7423 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7424 data through per_cu->cu.
7425
7426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7429 dwarf2_per_cu_data parameter fo dwarf2_cu.
7430 (lookup_dwo_type_unit): Likewise.
7431 (read_cutu_die_from_dwo): Likewise.
7432 (lookup_dwo_unit): Likewise.
7433 (open_and_init_dwo_file): Likewise.
7434 (lookup_dwo_cutu): Likewise.
7435 (lookup_dwo_comp_unit): Likewise.
7436 (lookup_dwo_type_unit): Likewise.
7437 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7438 (cutu_reader::cutu_reader): Update.
7439
7440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7443 parameter.
7444 (process_full_type_unit): Likewise.
7445 (process_queue): Update.
7446
7447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7448
7449 * dwarf2/read.c (recursively_compute_inclusions): Add
7450 dwarf2_per_objfile parameter.
7451 (compute_compunit_symtab_includes): Likewise.
7452 (process_cu_includes): Update.
7453
7454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7457 parameter.
7458 (create_type_unit_group): Update.
7459 (process_psymtab_comp_unit_reader): Update.
7460 (build_type_psymtabs_reader): Update.
7461
7462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7465 object through m_this_cu->cu.
7466
7467 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7470 the info parameter.
7471 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7472
7473 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7474
7475 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7476 per_objfile parameter.
7477 (load_full_type_unit): Add per_objfile parameter.
7478 (read_signatured_type): Likewise.
7479 (load_full_comp_unit): Likewise.
7480 (load_cu): Likewise.
7481 (dw2_do_instantiate_symtab): Likewise.
7482 (dw2_get_file_names): Likewise.
7483 (dw2_map_symtabs_matching_filename): Update.
7484 (dw_expand_symtabs_matching_file_matcher): Update.
7485 (dw2_map_symbol_filenames): Update.
7486 (process_psymtab_comp_unit): Add per_objfile parameter.
7487 (build_type_psymtabs_1): Update.
7488 (process_skeletonless_type_unit): Update.
7489 (dwarf2_build_psymtabs_hard): Update.
7490 (load_partial_comp_unit): Add per_objfile parameter.
7491 (scan_partial_symbols): Update.
7492 (load_full_comp_unit): Add per_objfile parameter.
7493 (process_imported_unit_die): Update.
7494 (create_cus_hash_table): Update.
7495 (find_partial_die): Update.
7496 (dwarf2_read_addr_index): Update.
7497 (follow_die_offset): Update.
7498 (dwarf2_fetch_die_loc_sect_off): Update.
7499 (dwarf2_fetch_constant_bytes): Update.
7500 (dwarf2_fetch_die_type_sect_off): Update.
7501 (follow_die_sig_1): Update.
7502 (load_full_type_unit): Add per_objfile parameter.
7503 (read_signatured_type): Likewise.
7504
7505 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7506
7507 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7508 of objfile_name.
7509
7510 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7513 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7514 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7515 field.
7516 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7517 (create_cus_from_index): Update.
7518 (dwarf2_read_gdb_index): Update.
7519 (create_cus_from_debug_names): Update.
7520 (dwarf2_read_debug_names): Update.
7521 (get_abbrev_section_for_cu): Update.
7522 (create_all_comp_units): Update.
7523 (read_attribute_value): Update.
7524 (get_debug_line_section): Update.
7525 * dwarf2/index-cache.c (index_cache::store): Update.
7526 * dwarf2/index-write.c (save_gdb_index_command): Update.
7527 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7528
7529 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7532 member.
7533 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7534 dwarf2_per_cu_data::per_bfd.
7535 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7536 (create_type_unit_group): Likewise.
7537 (queue_comp_unit): Remove reference to
7538 per_cu->dwarf2_per_objfile.
7539 (maybe_queue_comp_unit): Likewise.
7540 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7541 (create_cus_hash_table): Assign new field.
7542
7543 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * dwarf2/read.c: Replace
7546 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7547 dwarf2_cu->per_objfile throughout.
7548
7549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7550
7551 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7552 parameter, don't use per_cu->dwarf2_per_objfile.
7553 (dw2_instantiate_symtab): Likewise.
7554 (dw2_find_last_source_symtab): Update.
7555 (dw2_map_expand_apply): Update.
7556 (dw2_lookup_symbol): Update.
7557 (dw2_expand_symtabs_for_function): Update.
7558 (dw2_expand_all_symtabs): Update.
7559 (dw2_expand_symtabs_with_fullname): Update.
7560 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7561 don't use per_cu->dwarf2_per_objfile.
7562 (dw2_expand_marked_cus): Update.
7563 (dw2_find_pc_sect_compunit_symtab): Update.
7564 (dw2_debug_names_lookup_symbol): Update.
7565 (dw2_debug_names_expand_symtabs_for_function): Update.
7566 (dw2_debug_names_map_matching_symbols): Update.
7567 (dwarf2_psymtab::expand_psymtab): Update.
7568
7569 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7570
7571 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7572 <per_objfile>: New member.
7573 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7574 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7575 call to dwarf2_cu.
7576 (cutu_reader::cutu_reader): Update.
7577 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7578
7579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7582 struct dwarf2_per_objfile.
7583 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7584 dwarf2_per_bfd.
7585 * dwarf2/read.c (set_die_type): Update.
7586 (get_die_type_at_offset): Update.
7587
7588 2020-05-27 Tom Tromey <tom@tromey.com>
7589 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7592 method.
7593 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7594 get_symtab, set_symtab>: New methods.
7595 <m_symtabs>: New field.
7596 (struct dwarf2_psymtab): Derive from partial_symtab.
7597 <readin_p, get_compunit_symtab>: Declare methods.
7598 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7599 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7600 New methods.
7601 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7602 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7603 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7604 (dw2_symtab_iter_next, dw2_print_stats)
7605 (dw2_expand_symtabs_with_fullname)
7606 (dw2_expand_symtabs_matching_one)
7607 (dw_expand_symtabs_matching_file_matcher)
7608 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7609 (dw2_debug_names_iterator::next)
7610 (dw2_debug_names_map_matching_symbols)
7611 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7612 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7613 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7614 New methods.
7615 (get_compunit_symtab, process_full_comp_unit)
7616 (process_full_type_unit): Update.
7617 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7618
7619 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7622 then introduce a new dwarf2_per_objfile type.
7623 <read_line_string>: Move to the new dwarf2_per_objfile type.
7624 <objfile>: Likewise.
7625 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7626 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7627 dwarf2_per_objfile->per_bfd.
7628 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7629 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7630 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7631 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7632 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7633 (dwarf2_per_objfile::locate_sections): Rename to...
7634 (dwarf2_per_bfd::locate_sections): ... this.
7635 (dwarf2_per_objfile::get_cutu): Rename to...
7636 (dwarf2_per_bfd::get_cutu): ... this.
7637 (dwarf2_per_objfile::get_cu): Rename to...
7638 (dwarf2_per_bfd::get_cu): ... this.
7639 (dwarf2_per_objfile::get_tu): Rename to...
7640 (dwarf2_per_bfd::get_tu): ... this.
7641 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7642 (dwarf2_per_bfd::allocate_per_cu): ... this.
7643 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7644 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7645 (get_gdb_index_contents_ftype): Change parameter from
7646 dwarf2_per_objfile to dwarf2_per_bfd.
7647 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7648 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7649
7650 2020-05-27 Tom Tromey <tom@tromey.com>
7651 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7654 (allocate_piece_closure): Set "per_objfile" member.
7655 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7656 (locexpr_describe_location, loclist_describe_location): Use new
7657 member.
7658 * dwarf2/read.c (read_call_site_scope)
7659 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7660 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7661 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7662 handle_data_member_location): Set per_objfile member.
7663 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7664 member.
7665 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7666
7667 2020-05-27 Tom Tromey <tom@tromey.com>
7668
7669 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7670 allocate_signatured_type>: Declare new methods.
7671 <m_num_psymtabs>: New member.
7672 (struct dwarf2_per_cu_data) <index>: New member.
7673 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7674 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7675 (create_cu_from_index_list): Use allocate_per_cu.
7676 (create_signatured_type_table_from_index)
7677 (create_signatured_type_table_from_debug_names)
7678 (create_debug_type_hash_table, add_type_unit)
7679 (read_comp_units_from_section): Use allocate_signatured_type.
7680
7681 2020-05-27 Tom Tromey <tom@tromey.com>
7682
7683 * psymtab.c (partial_map_expand_apply)
7684 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7685 (psym_lookup_global_symbol_language)
7686 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7687 (psym_print_stats, psym_expand_symtabs_for_function)
7688 (psym_map_symbol_filenames, psym_map_matching_symbols)
7689 (psym_expand_symtabs_matching)
7690 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7691 (maintenance_check_psymtabs): Update.
7692 * psympriv.h (struct partial_symtab) <readin_p,
7693 get_compunit_symtab>: Add objfile parameter.
7694 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7695 Likewise.
7696 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7697 get_compunit_symtab>: Likewise.
7698 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7699
7700 2020-05-27 Tom Tromey <tom@tromey.com>
7701
7702 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7703 member.
7704 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7705 (create_cu_from_index_list)
7706 (create_signatured_type_table_from_index)
7707 (create_signatured_type_table_from_debug_names)
7708 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7709 (dwarf2_create_include_psymtab)
7710 (create_debug_type_hash_table, add_type_unit)
7711 (create_type_unit_group, read_comp_units_from_section)
7712 (dwarf2_compute_name, create_cus_hash_table)
7713 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7714 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7715 obstack.
7716 (dw2_get_real_path): Likewise. Change argument to
7717 dwarf2_per_objfile.
7718
7719 2020-05-27 Luis Machado <luis.machado@linaro.org>
7720
7721 PR tdep/26000
7722 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7723 for ldrd (immediate).
7724
7725 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7726
7727 * command.h: Add comment giving the name of class_tui.
7728 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7729 create the fake command for the help for class_tui.
7730
7731 2020-05-26 Tom Tromey <tromey@adacore.com>
7732
7733 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7734 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7735 (val_atr): New function.
7736 (value_val_atr): Use it.
7737 * ada-valprint.c (print_optional_low_bound): Change low bound
7738 handling for enums.
7739 (val_print_packed_array_elements): Don't call discrete_position.
7740 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7741 discrete_position for enum types.
7742 * language.c (default_print_array_index): Change type.
7743 * language.h (struct language_defn) <la_print_array_index>: Add
7744 index_type parameter, change type of index_value.
7745 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7746 (default_print_array_index): Update.
7747 * valprint.c (maybe_print_array_index): Don't call
7748 value_from_longest. Update.
7749 (value_print_array_elements): Don't call discrete_position.
7750
7751 2020-05-26 Tom Tromey <tromey@adacore.com>
7752
7753 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7754 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7755
7756 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7757
7758 PR gdb/13519
7759 * avr-tdep.c (avr_integer_to_address): Return data or code
7760 address accordingly to the second 'type' argument of the
7761 function.
7762
7763 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7764
7765 * infcmd.c, inferior.h: (construct_inferior_arguments):
7766 Moved function from here to gdbsupport/common-inferior.{h,cc}
7767
7768 2020-05-23 Tom Tromey <tom@tromey.com>
7769
7770 Revert commit eca1f90c:
7771 * NEWS: Remove entry for completion styling.
7772 * completer.c (_rl_completion_prefix_display_length): Move
7773 declaration later.
7774 (gdb_fnprint): Revert.
7775 (gdb_display_match_list_1): Likewise.
7776 * cli/cli-style.c (completion_prefix_style)
7777 (completion_difference_style, completion_suffix_style): Remove.
7778 (_initialize_cli_style): Revert.
7779 * cli/cli-style.h (completion_prefix_style)
7780 (completion_difference_style, completion_suffix_style): Don't
7781 declare.
7782
7783 2020-05-24 Pedro Alves <palves@redhat.com>
7784
7785 * symtab.c (completion_list_add_name): Return boolean indication
7786 of whether the symbol matched.
7787 (completion_list_add_symbol): Don't try to remove C++ aliases if
7788 the symbol didn't match in the first place.
7789 * symtab.h (completion_list_add_name): Return bool.
7790
7791 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7792
7793 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7794 type::field.
7795
7796 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7797
7798 GDB 9.2 released.
7799
7800 2020-05-23 Tom Tromey <tom@tromey.com>
7801
7802 * NEWS: Add entry for completion styling.
7803 * completer.c (_rl_completion_prefix_display_length): Move
7804 declaration earlier.
7805 (gdb_fnprint): Use completion_style.
7806 (gdb_display_match_list_1): Likewise.
7807 * cli/cli-style.c (completion_prefix_style)
7808 (completion_difference_style, completion_suffix_style): New
7809 globals.
7810 (_initialize_cli_style): Register new globals.
7811 * cli/cli-style.h (completion_prefix_style)
7812 (completion_difference_style, completion_suffix_style): Declare.
7813
7814 2020-05-23 Pedro Alves <palves@redhat.com>
7815
7816 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7817 (parse_escape): Use ISDIGIT instead of isdigit.
7818 (puts_debug): Use gdb_isprint instead of isprint.
7819 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7820 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7821 ISSPACE instead of isspace.
7822 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7823 instead of isspace.
7824 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7825 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7826 instead of isxdigit and ISDIGIT instead of isdigit.
7827
7828 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * gdbtypes.h (struct type) <field>: New method.
7831 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7832 or type::field.
7833
7834 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7837 (TYPE_FIELDS): Use type::fields. Change all call sites that
7838 modify the propery to use type::set_fields instead.
7839
7840 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7841
7842 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7843 type::num_fields instead.
7844
7845 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7846
7847 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7848 methods.
7849 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7850 that modify the number of fields to use type::set_num_fields
7851 instead.
7852
7853 2020-05-22 Tom Tromey <tromey@adacore.com>
7854
7855 * compile/compile-object-load.h (munmap_list_free): Don't
7856 declare.
7857
7858 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7859
7860 * annotate.c (annotate_source_line): Update return type, add call
7861 to update current symtab and line.
7862 * annotate.h (annotate_source_line): Update return type, and
7863 extend header comment.
7864 * source.c (info_line_command): Check annotation_level before
7865 calling annotate_source_line.
7866 * stack.c (print_frame_info): If calling annotate_source_line
7867 returns true, then don't print any other source line information.
7868
7869 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7872
7873 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * coffread.c (patch_type): Remove NULL check before xfree.
7876 * corefile.c (set_gnutarget): Likewise.
7877 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7878 * exec.c (build_section_table): Likewise.
7879 * remote.c (remote_target::pass_signals): Likewise.
7880 * utils.c (n_spaces): Likewise.
7881 * cli/cli-script.c (document_command): Likewise.
7882 * i386-windows-tdep.c (core_process_module_section): Likewise.
7883 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7884
7885 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7886
7887 * symfile.c (reread_symbols): Clear objfile's section_offsets
7888 vector and section indices, re-compute them by calling
7889 sym_offsets.
7890
7891 2020-05-20 Tom Tromey <tromey@adacore.com>
7892
7893 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7894 (desc_one_bound, desc_index_type): Compute field name.
7895
7896 2020-05-20 Tom de Vries <tdevries@suse.de>
7897
7898 PR symtab/25833
7899 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7900
7901 2020-05-20 Alan Modra <amodra@gmail.com>
7902
7903 PR 25993
7904 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7905 bfd_set_filename.
7906 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7907 passed to bfd_set_filename.
7908 * symfile-mem.c (add_vsyscall_page): Likewise for string
7909 passed to symbol_file_add_from_memory.
7910 (symbol_file_add_from_memory): Make name param a const char* and
7911 don't strdup.
7912
7913 2020-05-20 Alan Modra <amodra@gmail.com>
7914
7915 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7916 rather than accessing bfd->filename directly.
7917 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7918 and use bfd_section_name.
7919 * dwarf2/frame.c (decode_frame_entry): Likewise.
7920 * exec.c (exec_set_section_address): Likewise.
7921 * solib-aix.c (solib_aix_bfd_open): Likewise.
7922 * stap-probe.c (get_stap_base_address): Likewise.
7923 * symfile.c (reread_symbols): Likewise.
7924
7925 2020-05-19 Tom Tromey <tromey@adacore.com>
7926
7927 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7928
7929 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7932
7933 2020-05-19 Pedro Alves <palves@redhat.com>
7934
7935 * NEWS (set exec-file-mismatch): Adjust entry.
7936 * exec.c: Include "build-id.h".
7937 (validate_exec_file): Try to match build IDs instead of filenames.
7938 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7939 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7940 and pass down 'warn_if_slow'.
7941 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7942 gdb_bfd_open_closure to pass it down.
7943 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7944
7945 2020-05-19 Pedro Alves <palves@redhat.com>
7946
7947 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7948 * target.c (target_fileio_open_1): Rename to target_fileio_open
7949 and make extern. Use bool.
7950 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7951 (target_fileio_read_alloc_1): Adjust.
7952 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7953 (target_fileio_open_warn_if_slow): Delete declaration.
7954
7955 2020-05-19 Pedro Alves <palves@redhat.com>
7956
7957 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7958 Adjust all callers.
7959
7960 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7961
7962 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7963 whether disp is negative.
7964
7965 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * symfile.h (struct symfile_segment_data)
7968 <~symfile_segment_data>: Remove.
7969 <segment_info>: Change to std::vector.
7970 * symfile.c (default_symfile_segments): Update.
7971 * elfread.c (elf_symfile_segments): Update.
7972
7973 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7974
7975 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7976 <segments>: New.
7977 <segment_bases, segment_sizes>: Remove.
7978 * symfile.c (default_symfile_segments): Update.
7979 * elfread.c (elf_symfile_segments): Update.
7980 * remote.c (remote_target::get_offsets): Update.
7981 * solib-target.c (solib_target_relocate_section_addresses):
7982 Update.
7983
7984 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * symfile.h (struct symfile_segment_data): Initialize fields.
7987 <~symfile_segment_data>: Add.
7988 (symfile_segment_data_up): New.
7989 (struct sym_fns) <sym_segments>: Return a
7990 symfile_segment_data_up.
7991 (default_symfile_segments): Return a symfile_segment_data_up.
7992 (free_symfile_segment_data): Remove.
7993 (get_symfile_segment_data): Return a symfile_segment_data_up.
7994 * symfile.c (default_symfile_segments): Likewise.
7995 (get_symfile_segment_data): Likewise.
7996 (free_symfile_segment_data): Remove.
7997 (symfile_find_segment_sections): Update.
7998 * elfread.c (elf_symfile_segments): Return a
7999 symfile_segment_data_up.
8000 * remote.c (remote_target::get_offsets): Update.
8001 * solib-target.c (solib_target_relocate_section_addresses):
8002 Update.
8003 * symfile-debug.c (debug_sym_segments): Return a
8004 symfile_segment_data_up.
8005
8006 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8007
8008 PR build/25981
8009 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8010 Hardcode register numbers.
8011
8012 PR build/25981
8013 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8014 procfs_find_LDT_entry): Remove.
8015 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8016 procfs_find_LDT_entry): Remove.
8017 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8018 Remove.
8019
8020 2020-05-17 Pedro Alves <palves@redhat.com>
8021 Andrew Burgess <andrew.burgess@embecosm.com>
8022 Keno Fischer <keno@juliacomputing.com>
8023
8024 PR gdb/25741
8025 * breakpoint.c (build_target_condition_list): Update comments.
8026 (build_target_command_list): Update comments and skip matching
8027 locations.
8028 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8029 a separate function. Simplify "set breakpoint auto-hw off"
8030 handling.
8031 (insert_breakpoints): Update comment.
8032 (tracepoint_locations_match): New parameter. For breakpoints,
8033 compare location types too, if the caller wants to.
8034 (handle_automatic_hardware_breakpoints): New functions.
8035 (bp_location_is_less_than): Also sort by location type and
8036 hardware breakpoint length.
8037 (update_global_location_list): Handle "set breakpoint auto-hw on"
8038 here.
8039 (update_breakpoint_locations): Ask breakpoint_locations_match to
8040 ignore location types.
8041
8042 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8045 type::name instead.
8046
8047 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * gdbtypes.h (struct type) <name, set_name>: New methods.
8050 (TYPE_CODE): Use type::name. Change all call sites used to set
8051 the name to use type::set_name instead.
8052
8053 2020-05-16 Tom Tromey <tom@tromey.com>
8054
8055 * top.c (quit_force): Update.
8056 * infrun.c (handle_no_resumed): Update.
8057 * top.h (all_uis): New function.
8058 (ALL_UIS): Remove.
8059
8060 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8063
8064 2020-05-16 Pedro Alves <palves@redhat.com>
8065
8066 * ia64-linux-nat.c
8067 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8068 Declare method.
8069 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8070
8071 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8074 (sparc64_adi_info): Likewise.
8075
8076 2020-05-15 Tom Tromey <tom@tromey.com>
8077
8078 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8079 block_objfile.
8080 (lookup_objfile_from_block): Remove.
8081 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8082 (lookup_global_symbol): Use block_objfile.
8083 * symtab.h (lookup_objfile_from_block): Don't declare.
8084 * printcmd.c (clear_dangling_display_expressions): Use
8085 block_objfile.
8086 * parse.c (operator_check_standard): Use block_objfile.
8087
8088 2020-05-15 Tom Tromey <tom@tromey.com>
8089
8090 * language.c (language_alloc_type_symbol): Set
8091 SYMBOL_SECTION.
8092 * symtab.c (initialize_objfile_symbol): Remove.
8093 (allocate_symbol): Remove.
8094 (allocate_template_symbol): Remove.
8095 * dwarf2/read.c (fixup_go_packaging): Use "new".
8096 (new_symbol): Use "new".
8097 (read_variable): Don't call initialize_objfile_symbol. Use
8098 "new".
8099 (read_func_scope): Use "new".
8100 * xcoffread.c (process_xcoff_symbol): Don't call
8101 initialize_objfile_symbol.
8102 (SYMBOL_DUP): Remove.
8103 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8104 "new".
8105 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8106 (allocate_template_symbol): Don't declare.
8107 (struct symbol): Add copy constructor. Change defaults.
8108 * jit.c (finalize_symtab): Use "new".
8109 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8110 Use "new".
8111 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8112 (common_block_end): Use "new".
8113 * mdebugread.c (parse_symbol): Use "new".
8114 (new_symbol): Likewise.
8115
8116 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8117
8118 * NEWS: Mention changes to help and apropos.
8119
8120 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8121
8122 * command.h (enum command_class): Improve comments, document
8123 that class_alias is for user-defined aliases, give the class
8124 name for each class, remove unused class_xdb.
8125 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8126 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8127 by a precise class.
8128 * infcmd.c (_initialize_infcmd): Likewise.
8129 * reverse.c (_initialize_reverse): Likewise.
8130 * stack.c (_initialize_stack): Likewise.
8131 * symfile.c (_initialize_symfile): Likewise.
8132 * tracepoint.c (_initialize_tracepoint): Likewise.
8133
8134 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8135
8136 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8137 when their aliased command is traversed.
8138 (help_cmd): Add fput_command_names_styled call to
8139 output command name and aliases when command has an alias.
8140
8141 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8142
8143 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8144 * cli/cli-decode.c (help_cmd_list): Declare as static,
8145 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8146 a command together with the command.
8147 (fput_command_name_styled, fput_command_names_styled): New functions.
8148 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8149 fput_command_name_styled.
8150 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8151 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8152
8153 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8154
8155 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8156 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8157 * command.h (cmd_show_list): Likewise.
8158 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8159 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8160
8161 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8162
8163 * unittests/command-def-selftests.c (traverse_command_structure):
8164 Verify all commands of a list have the same prefix command and
8165 that only the top cmdlist commands have a null prefix.
8166
8167 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8168
8169 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8170 as prefix, not one of its aliases.
8171 (set_cmd_prefix): Remove.
8172 (do_add_cmd): Centralize the setting of the prefix of a command, when
8173 command is defined after its full chain of prefix commands.
8174 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8175 (add_setshow_cmd_full): Likewise.
8176 (update_prefix_field_of_prefixed_commands): New function.
8177 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8178 update_prefix_field_of_prefixed_commands.
8179 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8180 addresses of remote_set_cmdlist and remote_show_cmdlist given
8181 as argument, not the address of an argument.
8182 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8183 * gdb/remote.c (_initialize_remote): Likewise.
8184
8185 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8186
8187 * cli/cli-cmds.c (alias_command): Check for an existing alias
8188 using lookup_cmd_composition, as valid_command_p is too strict
8189 and forbids aliases that are the prefix of an existing alias
8190 or command.
8191 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8192 command is properly recognised as a valid command.
8193
8194 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8195
8196 * unittests/help-doc-selftests.c: Rename to
8197 unittests/command-def-selftests.c
8198 * unittests/command-def-selftests.c (help_doc_tests): Update some
8199 comments.
8200 (command_structure_tests, traverse_command_structure): New namespace
8201 and function.
8202 (command_structure_invariants_tests): New function.
8203 (_initialize_command_def_selftests) Renamed from
8204 _initialize_help_doc_selftests, register command_structure_invariants
8205 selftest.
8206
8207 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8208
8209 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8210 an alias of 'show'.
8211
8212 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8213
8214 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8215 ada_is_fixed_point_type. Update all callers.
8216 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8217 all callers.
8218 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8219 Update all callers.
8220 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8221 print_fixed_point_type. Update all callers.
8222 * ada-valprint.c (ada_value_print_num): Replace call to
8223 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8224
8225 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8226
8227 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8228 processors.
8229 (cpu_supports_bts): Add CV_AMD case.
8230
8231 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8232 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * infrun.c (stop_all_threads): Collect multiple wait events at
8235 each pass.
8236
8237 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8238
8239 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8240 type::code instead.
8241
8242 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8243
8244 * gdbtypes.h (struct type) <code, set_code>: New methods.
8245 (TYPE_CODE): Use type::code. Change all call sites used to set
8246 the code to use type::set_code instead.
8247
8248 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8249 Tom de Vries <tdevries@suse.de>
8250 Pedro Alves <palves@redhat.com>
8251
8252 PR threads/25478
8253 * infrun.c (stop_all_threads): Do NOT ignore
8254 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8255 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8256 received.
8257 (handle_no_resumed): Remove code handling a live inferior with no
8258 threads.
8259 * remote.c (has_single_non_exited_thread): New.
8260 (remote_target::update_thread_list): Do not delete a thread if is
8261 the last thread of the process.
8262 * thread.c (thread_select): Call delete_exited_threads instead of
8263 prune_threads.
8264
8265 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8266
8267 * infrun.c (stop_all_threads): Enable/disable thread events of all
8268 targets. Move a debug message denoting the end of the function
8269 into the SCOPED_EXIT block.
8270
8271 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8272
8273 * process-stratum-target.h: Include <set>.
8274 (all_non_exited_process_targets, switch_to_target_no_thread): New
8275 function declarations.
8276 * process-stratum-target.c (all_non_exited_process_targets)
8277 (switch_to_target_no_thread): New function implementations.
8278
8279 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8280
8281 * infrun.c (handle_inferior_event): Extract out a piece of code
8282 into...
8283 (mark_non_executing_threads): ...this new function.
8284
8285 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8286
8287 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8288 use.
8289
8290 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8291
8292 * regcache.c (regcache_read_pc_protected): New function
8293 implementation that returns 0 if the PC cannot read via
8294 'regcache_read_pc'.
8295 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8296 instead of 'regcache_read_pc'.
8297 (keep_going_pass_signal): Ditto.
8298
8299 2020-05-13 Tom Tromey <tromey@adacore.com>
8300
8301 * ada-lang.c (align_value): Remove.
8302 (ada_template_to_fixed_record_type_1): Use align_up.
8303
8304 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8305
8306 * async-event.c: Update the copyright year.
8307 * async-event.h: Update the copyright year.
8308
8309 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8310
8311 * objfiles.h (is_addr_in_objfile,
8312 shared_objfile_contains_address_p): Return bool.
8313 * objfile.c (is_addr_in_objfile,
8314 shared_objfile_contains_address_p): Return bool.
8315
8316 2020-05-11 Tom Tromey <tromey@adacore.com>
8317
8318 * cli/cli-cmds.c (info_command): Restore.
8319 (_initialize_cli_cmds): Use add_prefix_command for "info".
8320 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8321
8322 2020-05-11 Tom Tromey <tromey@adacore.com>
8323
8324 * ada-lang.c (ada_value_primitive_field): Now public.
8325 * ada-lang.h (ada_value_primitive_field): Declare.
8326 * ada-valprint.c (print_field_values): Use
8327 ada_value_primitive_field for wrapper fields.
8328
8329 2020-05-11 Tom de Vries <tdevries@suse.de>
8330
8331 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8332 MODULE_DOMAIN.
8333
8334 2020-05-11 Tom de Vries <tdevries@suse.de>
8335
8336 PR symtab/25941
8337 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8338 with length 0, if not gdb-produced.
8339 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8340
8341 2020-05-09 Tom de Vries <tdevries@suse.de>
8342
8343 PR gdb/25955
8344 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8345 calculation.
8346
8347 2020-05-09 Tom Tromey <tom@tromey.com>
8348
8349 * top.c (server_command): Now bool.
8350 * top.h (server_command): Now bool.
8351
8352 2020-05-08 Tom Tromey <tromey@adacore.com>
8353
8354 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8355 already being processed.
8356
8357 2020-05-08 Tom Tromey <tom@tromey.com>
8358
8359 * printcmd.c (struct display) <next>: Remove.
8360 <display>: New constructor.
8361 <exp_string>: Now a std::string.
8362 <enabled_p>: Now a bool.
8363 (display_number): Move definition earlier.
8364 (displays): Rename from display_chain. Now a std::vector.
8365 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8366 (display_command): Update.
8367 (do_one_display, disable_display)
8368 (enable_disable_display_command, do_enable_disable_display):
8369 Update.
8370 (free_display): Remove.
8371 (clear_displays): Rewrite.
8372 (delete_display): Update.
8373 (map_display_numbers): Use function_view. Remove "data"
8374 parameter. Update.
8375 (do_delete_display): Remove.
8376 (undisplay_command): Update.
8377 (do_one_display, do_displays, disable_display)
8378 (info_display_command): Update.
8379 (do_enable_disable_display): Remove.
8380 (enable_disable_display_command)
8381 (clear_dangling_display_expressions): Update.
8382
8383 2020-05-08 Tom Tromey <tom@tromey.com>
8384
8385 * symtab.c (set_symbol_cache_size)
8386 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8387 (maintenance_print_symbol_cache_statistics): Update.
8388 * symmisc.c (print_symbol_bcache_statistics)
8389 (print_objfile_statistics, maintenance_print_objfiles)
8390 (maintenance_info_symtabs, maintenance_check_symtabs)
8391 (maintenance_expand_symtabs, maintenance_info_line_tables):
8392 Update.
8393 * symfile-debug.c (set_debug_symfile): Update.
8394 * source.c (forget_cached_source_info): Update.
8395 * python/python.c (gdbpy_progspaces): Update.
8396 * psymtab.c (maintenance_info_psymtabs): Update.
8397 * probe.c (parse_probes): Update.
8398 * linespec.c (iterate_over_all_matching_symtabs)
8399 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8400 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8401 * exec.c (exec_target::close): Update.
8402 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8403 * breakpoint.c (print_one_breakpoint_location)
8404 (create_longjmp_master_breakpoint)
8405 (create_std_terminate_master_breakpoint): Update.
8406 * progspace.c (program_spaces): Now a std::vector.
8407 (maybe_new_address_space): Update.
8408 (add_program_space): Remove.
8409 (program_space::program_space): Update.
8410 (remove_program_space): Update.
8411 (number_of_program_spaces): Remove.
8412 (print_program_space, update_address_spaces): Update.
8413 * progspace.h (program_spaces): Change type.
8414 (ALL_PSPACES): Remove.
8415 (number_of_program_spaces): Don't declare.
8416 (struct program_space) <next>: Remove.
8417
8418 2020-05-08 Tom Tromey <tom@tromey.com>
8419
8420 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8421 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8422 (enable_break): Update.
8423 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8424 (frv_fdpic_find_canonical_descriptor): Update.
8425 (frv_fetch_objfile_link_map): Update.
8426 * progspace.c (program_space::free_all_objfiles): Update.
8427 (program_space::solibs): New method.
8428 * progspace.h (struct program_space) <solibs>: New method.
8429 * solist.h (master_so_list): Don't declare.
8430 (ALL_SO_LIBS): Remove.
8431 * solib.h (so_list_head): Remove.
8432 (update_solib_list): Update comment.
8433 * solib.c (master_so_list): Remove.
8434 (solib_used, update_solib_list, solib_add)
8435 (info_sharedlibrary_command, clear_solib)
8436 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8437
8438 2020-05-08 Tom Tromey <tom@tromey.com>
8439
8440 * extension.c (extension_languages): Now a std::array.
8441 (ALL_EXTENSION_LANGUAGES): Remove.
8442 (get_ext_lang_defn, get_ext_lang_of_file)
8443 (eval_ext_lang_from_control_command): Update.
8444 (finish_ext_lang_initialization)
8445 (auto_load_ext_lang_scripts_for_objfile)
8446 (ext_lang_type_printers::ext_lang_type_printers)
8447 (apply_ext_lang_type_printers)
8448 (ext_lang_type_printers::~ext_lang_type_printers)
8449 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8450 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8451 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8452 (get_matching_xmethod_workers, ext_lang_colorize)
8453 (ext_lang_before_prompt): Update.
8454 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8455
8456 2020-05-08 Tom Tromey <tom@tromey.com>
8457
8458 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8459 overload.
8460 <swap_string, m_string>: Remove.
8461 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8462 Update.
8463 * stabsread.c (define_symbol, read_type): Update.
8464 * linespec.c (find_linespec_symbols): Update.
8465 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8466 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8467 * dbxread.c (read_dbx_symtab): Update.
8468 * cp-support.h (cp_canonicalize_string_full)
8469 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8470 Return unique_xmalloc_ptr.
8471 * cp-support.c (inspect_type): Update.
8472 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8473 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8474 Likewise.
8475 * c-typeprint.c (print_name_maybe_canonical): Update.
8476 * break-catch-throw.c (check_status_exception_catchpoint):
8477 Update.
8478
8479 2020-05-08 Tom de Vries <tdevries@suse.de>
8480
8481 * infrun.c (follow_fork): Copy current_line and current_symtab to
8482 child thread.
8483
8484 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * async-event.c (struct async_signal_handler, struct
8487 async_event_handler): Reformat, remove typedef.
8488
8489 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8490
8491 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8492 access thistype->main_type->dyn_prop_list directly.
8493
8494 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8495
8496 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8497 (remove_dyn_prop): Remove. Update all users to use
8498 type::remove_dyn_prop.
8499 * gdbtypes.c (remove_dyn_prop): Rename to...
8500 (type::remove_dyn_prop): ... this.
8501
8502 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8503
8504 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8505 (add_dyn_prop): Remove. Update all users to use
8506 type::add_dyn_prop.
8507 * gdbtypes.c (add_dyn_prop): Rename to...
8508 (type::add_dyn_prop): ... this.
8509
8510 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8513 (get_dyn_prop): Remove. Update all users to use
8514 type::dyn_prop.
8515 * gdbtypes.c (get_dyn_prop): Rename to...
8516 (type::dyn_prop): ... this.
8517
8518 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8521
8522 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8525 instruction, skip it if it's there.
8526
8527 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8530
8531 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8534 * gdbtypes.c (recursive_dump_type): Remove use of
8535 TYPE_INCOMPLETE.
8536
8537 2020-05-03 Tom Tromey <tom@tromey.com>
8538
8539 * breakpoint.c (catch_command, tcatch_command): Remove.
8540 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8541 add_show_prefix_cmd.
8542 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8543 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8544 Remove.
8545 (add_internal_problem_command): Use add_basic_prefix_cmd,
8546 add_show_prefix_cmd.
8547 * mips-tdep.c (set_mipsfpu_command): Remove.
8548 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8549 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8550 (_initialize_index_cache): Use add_basic_prefix_cmd.
8551 * memattr.c (dummy_cmd): Remove.
8552 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8553 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8554 (_initialize_tui_win): Use add_basic_prefix_cmd,
8555 add_show_prefix_cmd.
8556 * cli/cli-logging.c (set_logging_command): Remove.
8557 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8558 add_show_prefix_cmd.
8559 (show_logging_command): Remove.
8560 * target.c (target_command): Remove.
8561 (add_target): Use add_basic_prefix_cmd.
8562
8563 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8564
8565 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8566
8567 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8568
8569 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8570 info_command.
8571
8572 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8573
8574 * nbsd-nat.c (nbsd_enable_proc_events)
8575 (nbsd_nat_target::post_startup_inferior): Add.
8576 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8577 (nbsd_nat_target::update_thread_list): Rewrite.
8578 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8579 "PTRACE_LWP_CREATE".
8580 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8581
8582 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8583
8584 * stack.c (_initialize_stack): Remove duplicated creation
8585 of "frame" command and "f" alias.
8586
8587 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8588
8589 PR gdb/18706
8590 * gdbtypes.c (check_typedef): Calculate size of array of
8591 stubbed type.
8592
8593 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8594
8595 PR gdb/15559
8596 * i386-tdep.c (i386_push_dummy_call): Call
8597 i386_thiscall_push_dummy_call.
8598 (i386_thiscall_push_dummy_call): New function.
8599 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8600 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8601 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8602
8603 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8604
8605 * gdbarch.sh (do_read): Add shellcheck disable directive for
8606 warning SC2162.
8607
8608 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8611 "referenced but not assigned" warning.
8612
8613 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8614
8615 * gdbarch.sh: Remove code that sets fallbackdefault.
8616
8617 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * gdbarch.sh: Use shell operators && and || instead of
8620 -a and -o.
8621
8622 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8623
8624 * gdbarch.sh: Use $(...) instead of `...`.
8625
8626 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * gdbarch.sh: Use double quotes around variables.
8629
8630 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8631
8632 * gdbarch.sh: Use %s with printf, instead of variables in the
8633 format string.
8634
8635 2020-04-29 Tom Tromey <tromey@adacore.com>
8636
8637 PR ada/25875:
8638 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8639 type fields here.
8640 (read_enumeration_type): Call
8641 update_enumeration_type_from_children later. Update comments.
8642 (process_enumeration_scope): Don't create type fields.
8643
8644 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8645
8646 * nbsd-tdep.c: Include "xml-syscall.h".
8647 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8648
8649 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8650
8651 * nbsd-nat.c: Include "sys/wait.h".
8652 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8653 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8654 (nbsd_nat_target::remove_exec_catchpoint)
8655 (nbsd_nat_target::set_syscall_catchpoint): Add.
8656 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8657 (nbsd_nat_target::insert_exec_catchpoint)
8658 (nbsd_nat_target::remove_exec_catchpoint)
8659 (nbsd_nat_target::set_syscall_catchpoint): Add.
8660 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8661 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8662 `nbsd_get_syscall_number'.
8663
8664 2020-04-29 Tom Tromey <tom@tromey.com>
8665
8666 * stack.c (print_block_frame_labels): Remove.
8667
8668 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8669
8670 PR gdb/17320
8671 * ada-valprint.c (val_print_packed_array_elements): Move array
8672 end bracket to new line.
8673 (ada_val_print_string): Remove extra spaces before first array
8674 element.
8675 * c-valprint.c (c_value_print_array): Likewise.
8676 * m2-valprint.c (m2_print_array_contents): Likewise.
8677 (m2_value_print_inner): Likewise.
8678 * p-valprint.c (pascal_value_print_inner): Likewise.
8679 * valprint.c (generic_val_print_array): Likewise.
8680 (value_print_array_elements): Move first array element and array
8681 end bracket to new line.
8682
8683 2020-04-29 Tom de Vries <tdevries@suse.de>
8684
8685 PR symtab/25889
8686 * linespec.c (find_method): Fix ix calculation.
8687
8688 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8689
8690 * syscalls/update-netbsd.sh: New file.
8691 * syscalls/netbsd.xml: Regenerate.
8692 * data-directory/Makefile.in: Register `netbsd.xml' in
8693 `SYSCALLS_FILES'.
8694
8695 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * syscalls/update-freebsd.sh: Add double quotes.
8698
8699 2020-04-28 Tom Tromey <tom@tromey.com>
8700
8701 * NEWS: Update.
8702 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8703 (cmdpy_init): Allow class_tui.
8704
8705 2020-04-28 Mark Williams <mark@myosotissp.com>
8706
8707 PR gdb/24480
8708 * dwarf2read.c: Add missing assingments to list_in_scope when
8709 start_symtab was already called.
8710
8711 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8712
8713 PR gdb/25881
8714 * dwarf2/read.c (offset_map_type): Use
8715 gdb:hash_enum<sect_offset> as hash function.
8716
8717 2020-04-28 Tom de Vries <tdevries@suse.de>
8718
8719 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8720 with DW_AT_signature.
8721
8722 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8723
8724 * configure.ac: Remove check for fs_base/gs_base in
8725 user_regs_struct.
8726 * configure: Re-generate.
8727 * config.in: Re-generate.
8728 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8729 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8730 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8731
8732 2020-04-27 Luis Machado <luis.machado@linaro.org>
8733
8734 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8735 problematic inline frame unwinding situation.
8736 * frame.c (frame_id_computed_p): New function.
8737 * frame.h (frame_id_computed_p): New prototype.
8738
8739 2020-04-26 Tom Tromey <tom@tromey.com>
8740
8741 * command.h (enum command_class) <class_pseudo>: Remove.
8742
8743 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8744
8745 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8746 and whitespace.
8747
8748 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8749
8750 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8751 `PT_GET_PROCESS_STATE' block.
8752
8753 2020-04-24 Tom Tromey <tom@tromey.com>
8754
8755 * symtab.h (symbol_get_demangled_name): Don't declare.
8756 * symtab.c (symbol_get_demangled_name): Remove.
8757 (general_symbol_info::natural_name)
8758 (general_symbol_info::demangled_name): Update.
8759
8760 2020-04-24 Tom Tromey <tom@tromey.com>
8761
8762 PR rust/25025:
8763 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8764
8765 2020-04-24 Tom Tromey <tom@tromey.com>
8766
8767 PR symtab/12707:
8768 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8769 exists.
8770 (new_symbol): Likewise.
8771 * compile/compile-object-load.c (get_out_value_type): Use
8772 symbol_matches_search_name.
8773
8774 2020-04-24 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/read.c (add_partial_symbol): Do not call
8777 compute_and_set_names.
8778
8779 2020-04-24 Tom Tromey <tom@tromey.com>
8780
8781 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8782 overload.
8783
8784 2020-04-24 Tom Tromey <tom@tromey.com>
8785
8786 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8787 (add_psymbol_to_list): New overload. Make old overload call new
8788 one.
8789 * psympriv.h (add_psymbol_to_list): New overload.
8790
8791 2020-04-24 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/read.c (partial_die_info::read) <case
8794 DW_AT_linkage_name>: Use value_as_string.
8795 (dwarf2_string_attr): Use value_as_string.
8796 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8797 method.
8798 * dwarf2/attribute.c (attribute::value_as_string): New method.
8799
8800 2020-04-24 Tom Tromey <tom@tromey.com>
8801
8802 * symtab.c (general_symbol_info::natural_name)
8803 (general_symbol_info::demangled_name): Check for language_rust.
8804
8805 2020-04-24 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8808 (dwarf2_physname): ... from here.
8809 (partial_die_info::read): Add Rust "{" hack.
8810
8811 2020-04-24 Tom Tromey <tom@tromey.com>
8812
8813 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8814 method.
8815 (symbol_set_demangled_name): Don't declare.
8816 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8817 symbol_set_demangled_name.
8818 (general_symbol_info::set_language)
8819 (general_symbol_info::compute_and_set_names): Update.
8820 * minsyms.c (minimal_symbol_reader::install): Update.
8821 * dwarf2/read.c (new_symbol): Update.
8822
8823 2020-04-24 Tom Tromey <tromey@adacore.com>
8824
8825 PR python/23662:
8826 * python/py-type.c (convert_field): Handle
8827 FIELD_LOC_KIND_DWARF_BLOCK.
8828 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8829 (typy_get_dynamic): Nw function.
8830 (type_object_getset): Add "dynamic".
8831 * NEWS: Add entry.
8832
8833 2020-04-24 Tom Tromey <tromey@adacore.com>
8834
8835 * ada-typeprint.c (print_choices, print_variant_part)
8836 (print_record_field_types_dynamic): New functions.
8837 (print_record_field_types): Use print_record_field_types_dynamic.
8838
8839 2020-04-24 Tom Tromey <tromey@adacore.com>
8840
8841 * dwarf2/read.c (handle_data_member_location): New overload.
8842 (dwarf2_add_field): Use it.
8843 (decode_locdesc): Add "computed" parameter. Update comment.
8844 * gdbtypes.c (is_dynamic_type_internal): Also look for
8845 FIELD_LOC_KIND_DWARF_BLOCK.
8846 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8847 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8848 virtual base classes.
8849 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8850 FIELD_LOC_KIND_DWARF_BLOCK.
8851
8852 2020-04-24 Tom Tromey <tromey@adacore.com>
8853
8854 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8855 * gdbtypes.c (is_dynamic_type_internal): Check
8856 TYPE_HAS_DYNAMIC_LENGTH.
8857 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8858 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8859 New macros.
8860 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8861 constant.
8862
8863 2020-04-24 Tom Tromey <tromey@adacore.com>
8864
8865 * dwarf2/read.c (struct variant_field): Rewrite.
8866 (struct variant_part_builder): New.
8867 (struct nextfield): Remove "variant" field. Add "offset".
8868 (struct field_info): Add "current_variant_part" and
8869 "variant_parts".
8870 (alloc_discriminant_info): Remove.
8871 (alloc_rust_variant): New function.
8872 (quirk_rust_enum): Update.
8873 (dwarf2_add_field): Set "offset" member. Don't handle
8874 DW_TAG_variant_part.
8875 (offset_map_type): New typedef.
8876 (convert_variant_range, create_one_variant)
8877 (create_one_variant_part, create_variant_parts)
8878 (add_variant_property): New functions.
8879 (dwarf2_attach_fields_to_type): Call add_variant_property.
8880 (read_structure_type): Don't handle DW_TAG_variant_part.
8881 (handle_variant_part, handle_variant): New functions.
8882 (handle_struct_member_die): Use them.
8883 (process_structure_scope): Don't handle variant parts.
8884 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8885 (struct discriminant_info): Remove.
8886 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8887 (struct main_type) <flag_discriminated_union>: Remove.
8888 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8889 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8890 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8891 Update.
8892 * valops.c (value_union_variant): Remove.
8893 * value.h (value_union_variant): Don't declare.
8894
8895 2020-04-24 Tom Tromey <tromey@adacore.com>
8896
8897 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8898 (ada_value_primitive_packed_val): Update.
8899 * ada-valprint.c (ada_value_print_1): Update.
8900 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8901 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8902 just an address. Use evaluate_for_locexpr_baton.
8903 (dwarf2_evaluate_property): Update.
8904 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8905 array_view.
8906 * findvar.c (default_read_var_value): Update.
8907 * gdbtypes.c (compute_variant_fields_inner)
8908 (resolve_dynamic_type_internal): Update.
8909 (resolve_dynamic_type): Change type of valaddr parameter.
8910 * gdbtypes.h (resolve_dynamic_type): Update.
8911 * valarith.c (value_subscripted_rvalue): Update.
8912 * value.c (value_from_contents_and_address): Update.
8913
8914 2020-04-24 Tom Tromey <tromey@adacore.com>
8915
8916 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8917 "push_initial_value" parameter.
8918 (dwarf2_evaluate_property): Likewise.
8919 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8920
8921 2020-04-24 Tom Tromey <tromey@adacore.com>
8922
8923 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8924 (variant::matches, compute_variant_fields_recurse)
8925 (compute_variant_fields_inner, compute_variant_fields): New
8926 functions.
8927 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8928 Use resolved_type after type is made.
8929 (operator==): Add new cases.
8930 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8931 (struct discriminant_range, struct variant, struct variant_part):
8932 New.
8933 (union dynamic_prop_data) <variant_parts, original_type>: New
8934 members.
8935 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8936 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8937 constants.
8938 * value.c (unpack_bits_as_long): Now public.
8939 * value.h (unpack_bits_as_long): Declare.
8940
8941 2020-04-24 Tom Tromey <tromey@adacore.com>
8942
8943 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8944 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8945
8946 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8947
8948 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8949
8950 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8951
8952 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8953 (remove_fork_catchpoint, post_startup_inferior)
8954 (post_attach): Move...
8955 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8956 (remove_fork_catchpoint, post_startup_inferior)
8957 (post_attach): ...here.
8958 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8959 (remove_fork_catchpoint, post_startup_inferior)
8960 (post_attach): Move...
8961 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8962 (remove_fork_catchpoint, post_startup_inferior)
8963 (post_attach): ...here.
8964
8965 2020-04-24 Tom Tromey <tromey@adacore.com>
8966
8967 * nat/windows-nat.h (struct windows_thread_info)
8968 <pc_adjusted>: New member.
8969 * windows-nat.c (windows_fetch_one_register): Check
8970 pc_adjusted.
8971 (windows_nat_target::get_windows_debug_event)
8972 (windows_nat_target::wait): Set pc_adjusted.
8973
8974 2020-04-24 Tom de Vries <tdevries@suse.de>
8975
8976 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8977 Run gdb-add-index inside temp dir.
8978
8979 2020-04-23 Tom Tromey <tromey@adacore.com>
8980
8981 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8982 in loop.
8983
8984 2020-04-23 Luis Machado <luis.machado@linaro.org>
8985
8986 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8987 get_frame_register instead of gdbarch_unwind_pc.
8988
8989 2020-04-23 Tom de Vries <tdevries@suse.de>
8990
8991 * symtab.c (lookup_global_symbol): Prefer def over decl.
8992
8993 2020-04-23 Tom de Vries <tdevries@suse.de>
8994
8995 PR symtab/25807
8996 * block.c (best_symbol, better_symbol): Promote to external.
8997 * block.h (best_symbol, better_symbol): Declare.
8998 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8999 decl.
9000
9001 2020-04-23 Tom Tromey <tromey@adacore.com>
9002
9003 PR ada/25837:
9004 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9005 "const char *", not a "const std::string &".
9006 <name_and_matcher::operator==>: Update.
9007 * unittests/lookup_name_info-selftests.c: Change type of
9008 "result".
9009
9010 2020-04-23 Tom Tromey <tom@tromey.com>
9011
9012 * inferior.h (iterate_over_inferiors): Don't declare.
9013 * inferior.c (iterate_over_inferiors): Remove.
9014 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9015 Remove.
9016 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9017 use iterate_over_inferiors.
9018 (darwin_resume_inferior_it)
9019 (struct resume_inferior_threads_param)
9020 (darwin_resume_inferior_threads_it): Remove.
9021 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9022
9023 2020-04-23 Tom de Vries <tdevries@suse.de>
9024
9025 * blockframe.c (find_pc_partial_function): Use
9026 find_pc_sect_compunit_symtab rather than
9027 objfile->sf->qf->find_pc_sect_compunit_symtab.
9028
9029 2020-04-22 Tom de Vries <tdevries@suse.de>
9030
9031 PR symtab/25764
9032 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9033 in psymtabs.
9034
9035 2020-04-22 Tom de Vries <tdevries@suse.de>
9036
9037 PR symtab/25801
9038 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9039 symtabs.
9040
9041 2020-04-22 Tom de Vries <tdevries@suse.de>
9042
9043 PR symtab/25700
9044 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9045 CU if already created.
9046
9047 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9048
9049 * infrun.c (displaced_step_fixup): Switch to the event_thread
9050 before calling displaced_step_restore, not after.
9051
9052 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9053
9054 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9055 its inferior is not recorded by us.
9056 (record_btrace_target_open): Replace call to
9057 all_non_exited_threads () with call to current_inferior
9058 ()->non_exited_threads ().
9059 (record_btrace_target::stop_recording): Likewise.
9060 (record_btrace_target::close): Likewise.
9061 (record_btrace_target::wait): Likewise.
9062 (record_btrace_target::record_stop_replaying): Likewise.
9063
9064 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9065
9066 * btrace.c (btrace_enable): Throw an error on double enables and
9067 when enabling recording fails.
9068 (btrace_disable): Throw an error if the thread is not recorded.
9069
9070 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9071
9072 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9073 request if we do not have a thread_info.
9074
9075 2020-04-21 Tom de Vries <tdevries@suse.de>
9076
9077 PR gdb/25471
9078 * thread.c
9079 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9080 exception in get_frame_id.
9081
9082 2020-04-20 Tom Tromey <tromey@adacore.com>
9083
9084 * python/python.c (struct gdbpy_event): Mark move constructor as
9085 noexcept.
9086 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9087 constructor as noexcept.
9088 * completer.h (struct completion_result): Mark move constructor as
9089 noexcept.
9090 * completer.c (completion_result::completion_result): Use
9091 initialization style. Don't call reset_match_list.
9092
9093 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9094
9095 * MAINTAINERS (Write After Approval): Add myself.
9096
9097 2020-04-18 Tom Tromey <tom@tromey.com>
9098
9099 * windows-tdep.c (init_w32_command_list)
9100 (w32_prefix_command_valid): Restore.
9101 (_initialize_windows_tdep): Call init_w32_command_list.
9102
9103 2020-04-18 Tom Tromey <tom@tromey.com>
9104
9105 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9106 * value.c (value_fn_field): Update.
9107 * valops.c (find_function_in_inferior)
9108 (value_allocate_space_in_inferior): Update.
9109 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9110 Update.
9111 * tui/tui-source.c (tui_source_window::set_contents): Update.
9112 * symtab.c (lookup_global_or_static_symbol)
9113 (find_function_start_sal_1, skip_prologue_sal)
9114 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9115 * symmisc.c (dump_msymbols, dump_symtab_1)
9116 (maintenance_print_one_line_table): Update.
9117 * symfile.c (init_entry_point_info, section_is_mapped)
9118 (list_overlays_command, simple_read_overlay_table)
9119 (simple_overlay_update_1): Update.
9120 * stap-probe.c (handle_stap_probe): Update.
9121 * stabsread.c (dbx_init_float_type, define_symbol)
9122 (read_one_struct_field, read_enum_type, read_range_type): Update.
9123 * source.c (info_line_command): Update.
9124 * python/python.c (gdbpy_source_objfile_script)
9125 (gdbpy_execute_objfile_script): Update.
9126 * python/py-type.c (save_objfile_types): Update.
9127 * python/py-objfile.c (py_free_objfile): Update.
9128 * python/py-inferior.c (python_new_objfile): Update.
9129 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9130 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9131 (maintenance_check_psymtabs): Update.
9132 * printcmd.c (info_address_command): Update.
9133 * objfiles.h (struct objfile) <arch>: New method, from
9134 get_objfile_arch.
9135 (get_objfile_arch): Don't declare.
9136 * objfiles.c (get_objfile_arch): Remove.
9137 (filter_overlapping_sections): Update.
9138 * minsyms.c (msymbol_is_function): Update.
9139 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9140 (output_nondebug_symbol): Update.
9141 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9142 (mdebug_expand_psymtab): Update.
9143 * machoread.c (macho_add_oso_symfile): Update.
9144 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9145 Update.
9146 * linux-fork.c (checkpoint_command): Update.
9147 * linespec.c (convert_linespec_to_sals): Update.
9148 * jit.c (finalize_symtab): Update.
9149 * infrun.c (insert_exception_resume_from_probe): Update.
9150 * ia64-tdep.c (ia64_find_unwind_table): Update.
9151 * hppa-tdep.c (internalize_unwinds): Update.
9152 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9153 Update.
9154 * gcore.c (call_target_sbrk): Update.
9155 * elfread.c (record_minimal_symbol, elf_symtab_read)
9156 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9157 (elf_gnu_ifunc_resolve_by_got): Update.
9158 * dwarf2/read.c (create_addrmap_from_index)
9159 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9160 (read_debug_names_from_section)
9161 (process_psymtab_comp_unit_reader, add_partial_symbol)
9162 (add_partial_subprogram, process_full_comp_unit)
9163 (read_file_scope, read_func_scope, read_lexical_block_scope)
9164 (read_call_site_scope, dwarf2_ranges_read)
9165 (dwarf2_record_block_ranges, dwarf2_add_field)
9166 (mark_common_block_symbol_computed, read_tag_pointer_type)
9167 (read_tag_string_type, dwarf2_init_float_type)
9168 (dwarf2_init_complex_target_type, read_base_type)
9169 (partial_die_info::read, partial_die_info::read)
9170 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9171 (dwarf2_fetch_die_loc_sect_off): Update.
9172 * dwarf2/loc.c (dwarf2_find_location_expression)
9173 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9174 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9175 (dwarf2_loc_desc_get_symbol_read_needs)
9176 (locexpr_describe_location_piece, locexpr_describe_location_1)
9177 (loclist_describe_location): Update.
9178 * dwarf2/index-write.c (write_debug_names): Update.
9179 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9180 * dtrace-probe.c (dtrace_process_dof): Update.
9181 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9182 (process_one_symbol): Update.
9183 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9184 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9185 (coff_read_enum_type): Update.
9186 * cli/cli-cmds.c (edit_command, list_command): Update.
9187 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9188 * breakpoint.c (create_overlay_event_breakpoint)
9189 (create_longjmp_master_breakpoint)
9190 (create_std_terminate_master_breakpoint)
9191 (create_exception_master_breakpoint, get_sal_arch): Update.
9192 * block.c (block_gdbarch): Update.
9193 * annotate.c (annotate_source_line): Update.
9194
9195 2020-04-17 Tom Tromey <tromey@adacore.com>
9196
9197 * auto-load.c (show_auto_load_cmd): Remove.
9198 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9199 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9200 (maintenance_print_arc_command): Remove.
9201 * tui/tui-win.c (tui_command): Remove.
9202 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9203 * tui/tui-layout.c (tui_layout_command): Remove.
9204 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9205 * python/python.c (user_set_python, user_show_python): Remove.
9206 (_initialize_python): Use add_basic_prefix_cmd,
9207 add_show_prefix_cmd.
9208 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9209 (install_gdb_commands): Use add_basic_prefix_cmd,
9210 add_show_prefix_cmd.
9211 (info_guile_command): Remove.
9212 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9213 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9214 add_show_prefix_cmd.
9215 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9216 Remove do_set and do_show parameters.
9217 * cli/cli-style.c (set_style, show_style): Remove.
9218 (_initialize_cli_style): Use add_basic_prefix_cmd,
9219 add_show_prefix_cmd.
9220 (cli_style_option::add_setshow_commands): Remove do_set and
9221 do_show parameters.
9222 (cli_style_option::add_setshow_commands): Use
9223 add_basic_prefix_cmd, add_show_prefix_cmd.
9224 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9225 (set_style_name): Remove.
9226 * cli/cli-dump.c (dump_command, append_command): Remove.
9227 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9228 (tekhex_dump_command, binary_dump_command)
9229 (binary_append_command): Remove.
9230 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9231 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9232 (init_w32_command_list): Remove; move into ...
9233 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9234 * valprint.c (set_print, show_print, set_print_raw)
9235 (show_print_raw): Remove.
9236 (_initialize_valprint): Use add_basic_prefix_cmd,
9237 add_show_prefix_cmd.
9238 * typeprint.c (set_print_type, show_print_type): Remove.
9239 (_initialize_typeprint): Use add_basic_prefix_cmd,
9240 add_show_prefix_cmd.
9241 * record.c (set_record_command, show_record_command): Remove.
9242 (_initialize_record): Use add_basic_prefix_cmd,
9243 add_show_prefix_cmd.
9244 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9245 add_show_prefix_cmd.
9246 (info_command, show_command, set_debug, show_debug): Remove.
9247 * top.h (set_history, show_history): Don't declare.
9248 * top.c (set_history, show_history): Remove.
9249 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9250 (unset_tdesc_cmd): Remove.
9251 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9252 add_show_prefix_cmd.
9253 * symtab.c (info_module_command): Remove.
9254 (_initialize_symtab): Use add_basic_prefix_cmd.
9255 * symfile.c (overlay_command): Remove.
9256 (_initialize_symfile): Use add_basic_prefix_cmd.
9257 * sparc64-tdep.c (info_adi_command): Remove.
9258 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9259 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9260 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9261 add_show_prefix_cmd.
9262 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9263 (_initialize_serial): Use add_basic_prefix_cmd,
9264 add_show_prefix_cmd.
9265 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9266 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9267 add_show_prefix_cmd.
9268 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9269 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9270 add_show_prefix_cmd.
9271 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9272 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9273 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9274 add_show_prefix_cmd.
9275 * remote.c (remote_command, set_remote_cmd): Remove.
9276 (_initialize_remote): Use add_basic_prefix_cmd.
9277 * record-full.c (set_record_full_command)
9278 (show_record_full_command): Remove.
9279 (_initialize_record_full): Use add_basic_prefix_cmd,
9280 add_show_prefix_cmd.
9281 * record-btrace.c (cmd_set_record_btrace)
9282 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9283 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9284 (cmd_show_record_btrace_pt): Remove.
9285 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9286 add_show_prefix_cmd.
9287 * ravenscar-thread.c (set_ravenscar_command)
9288 (show_ravenscar_command): Remove.
9289 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9290 add_show_prefix_cmd.
9291 * mips-tdep.c (show_mips_command, set_mips_command)
9292 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9293 add_show_prefix_cmd.
9294 * maint.c (maintenance_command, maintenance_info_command)
9295 (maintenance_check_command, maintenance_print_command)
9296 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9297 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9298 add_show_prefix_cmd.
9299 (show_per_command_cmd): Remove.
9300 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9301 Remove.
9302 (maintenance_show_test_settings_cmd): Remove.
9303 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9304 add_show_prefix_cmd.
9305 * maint-test-options.c (maintenance_test_options_command):
9306 Remove.
9307 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9308 * macrocmd.c (macro_command): Remove
9309 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9310 * language.c (set_check, show_check): Remove.
9311 (_initialize_language): Use add_basic_prefix_cmd,
9312 add_show_prefix_cmd.
9313 * infcmd.c (unset_command): Remove.
9314 (_initialize_infcmd): Use add_basic_prefix_cmd.
9315 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9316 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9317 add_show_prefix_cmd.
9318 * go32-nat.c (go32_info_dos_command): Remove.
9319 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9320 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9321 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9322 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9323 (_initialize_frame): Use add_basic_prefix_cmd,
9324 add_show_prefix_cmd.
9325 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9326 (_initialize_dcache): Use add_basic_prefix_cmd,
9327 add_show_prefix_cmd.
9328 * cp-support.c (maint_cplus_command): Remove.
9329 (_initialize_cp_support): Use add_basic_prefix_cmd.
9330 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9331 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9332 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9333 add_basic_prefix_cmd, add_show_prefix_cmd.
9334 * breakpoint.c (save_command): Remove.
9335 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9336 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9337 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9338 add_show_prefix_cmd.
9339 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9340 (set_ada_command, show_ada_command): Remove.
9341 (_initialize_ada_language): Use add_basic_prefix_cmd,
9342 add_show_prefix_cmd.
9343 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9344
9345 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9346
9347 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9348 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9349
9350 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9351
9352 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9353 warning messages.
9354
9355 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9358 import table is not at beginning of .idata section.
9359
9360 2020-04-16 Pedro Alves <palves@redhat.com>
9361
9362 * inferior.c (delete_inferior): Use delete operator directly
9363 instead of delete_program_space.
9364 * progspace.c (add_program_space): New, factored out from
9365 program_space::program_space.
9366 (remove_program_space): New, factored out from
9367 delete_program_space.
9368 (program_space::program_space): Remove intro comment. Rewrite.
9369 (program_space::~program_space): Remove intro comment. Call
9370 remove_program_space.
9371 (delete_program_space): Delete.
9372 * progspace.h (program_space::program_space): Make explicit. Move
9373 intro comment here, adjusted.
9374 (program_space::~program_space): Move intro comment here,
9375 adjusted.
9376 (delete_program_space): Remove.
9377
9378 2020-04-16 Tom Tromey <tromey@adacore.com>
9379
9380 * windows-nat.c (windows_nat::handle_access_violation): New
9381 function.
9382 * nat/windows-nat.h (handle_access_violation): Declare.
9383 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9384 windows-nat.c. Call handle_access_violation.
9385
9386 2020-04-16 Tom de Vries <tdevries@suse.de>
9387
9388 PR symtab/25791
9389 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9390 CUs without psymtab.
9391
9392 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9393
9394 * python/python.c (do_start_initialization): Don't call
9395 PyEval_InitThreads for Python 3.9 and beyond.
9396
9397 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9398
9399 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9400 thread functions.
9401 (obsd_nat_target::wait): Likewise.
9402
9403 2020-04-15 Tom Tromey <tromey@adacore.com>
9404
9405 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9406 (DEBUG_EXCEPT): Use debug_printf.
9407
9408 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9409
9410 * completer.c (class completion_tracker::completion_hash_entry)
9411 <hash_name>: New member function.
9412 (completion_tracker::discard_completions): New callback to hash a
9413 completion_hash_entry, pass this to htab_create_alloc.
9414
9415 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9416
9417 * windows-nat.c (windows_make_so): Warn rather than stopping with
9418 an error if realpath() fails.
9419
9420 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9421
9422 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9423 (nbsd_nat_target::info_proc): Add do_status.
9424
9425 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9426 Tom de Vries <tdevries@suse.de>
9427
9428 PR symtab/25718
9429 * psympriv.h (struct partial_symtab::read_symtab)
9430 (struct partial_symtab::expand_psymtab)
9431 (struct partial_symtab::read_dependencies): Update comments.
9432 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9433 read_symtab for includer.
9434 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9435 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9436 (struct dwarf2_include_psymtab::m_readin): Remove.
9437 (struct dwarf2_include_psymtab::includer): New member function.
9438 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9439
9440 2020-04-14 Tom de Vries <tdevries@suse.de>
9441
9442 PR symtab/25720
9443 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9444 with NULL symbol_matcher and lookup_name.
9445 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9446 and lookup_name.
9447 * dwarf2/read.c (dw2_expand_symtabs_matching)
9448 (dw2_debug_names_expand_symtabs_matching): Same.
9449 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9450 Make lookup_name a pointer. Update comment.
9451 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9452 lookup_name being a pointer.
9453 * symfile.c (expand_symtabs_matching): Same.
9454 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9455 * linespec.c (iterate_over_all_matching_symtabs): Same.
9456
9457 2020-04-13 Tom Tromey <tom@tromey.com>
9458
9459 * run-on-main-thread.c: Update include.
9460 * unittests/main-thread-selftests.c: Update include.
9461 * tui/tui-win.c: Update include.
9462 * tui/tui-io.c: Update include.
9463 * tui/tui-interp.c: Update include.
9464 * tui/tui-hooks.c: Update include.
9465 * top.h: Update include.
9466 * top.c: Update include.
9467 * ser-base.c: Update include.
9468 * remote.c: Update include.
9469 * remote-notif.c: Update include.
9470 * remote-fileio.c: Update include.
9471 * record-full.c: Update include.
9472 * record-btrace.c: Update include.
9473 * python/python.c: Update include.
9474 * posix-hdep.c: Update include.
9475 * mingw-hdep.c: Update include.
9476 * mi/mi-main.c: Update include.
9477 * mi/mi-interp.c: Update include.
9478 * main.c: Update include.
9479 * linux-nat.c: Update include.
9480 * interps.c: Update include.
9481 * infrun.c: Update include.
9482 * inf-loop.c: Update include.
9483 * event-top.c: Update include.
9484 * event-loop.c: Move to ../gdbsupport/.
9485 * event-loop.h: Move to ../gdbsupport/.
9486 * async-event.h: Update include.
9487 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9488
9489 2020-04-13 Tom Tromey <tom@tromey.com>
9490
9491 * tui/tui-win.c: Include async-event.h.
9492 * remote.c: Include async-event.h.
9493 * remote-notif.c: Include async-event.h.
9494 * record-full.c: Include async-event.h.
9495 * record-btrace.c: Include async-event.h.
9496 * infrun.c: Include async-event.h.
9497 * event-top.c: Include async-event.h.
9498 * event-loop.h: Move some declarations to async-event.h.
9499 * event-loop.c: Don't include ser-event.h or top.h. Move some
9500 code to async-event.c.
9501 * async-event.h: New file.
9502 * async-event.c: New file.
9503 * Makefile.in (COMMON_SFILES): Add async-event.c.
9504 (HFILES_NO_SRCDIR): Add async-event.h.
9505
9506 2020-04-13 Tom Tromey <tom@tromey.com>
9507
9508 * utils.c (flush_streams): New function.
9509 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9510
9511 2020-04-13 Tom Tromey <tom@tromey.com>
9512
9513 * event-loop.c (handle_file_event): Use warning, not
9514 printf_unfiltered.
9515
9516 2020-04-13 Tom Tromey <tom@tromey.com>
9517
9518 * event-loop.c: Include <chrono>.
9519
9520 2020-04-13 Tom Tromey <tom@tromey.com>
9521
9522 * gdb_select.h: Move to ../gdbsupport/.
9523 * event-loop.c: Update include path.
9524 * top.c: Update include path.
9525 * ser-base.c: Update include path.
9526 * ui-file.c: Update include path.
9527 * ser-tcp.c: Update include path.
9528 * guile/scm-ports.c: Update include path.
9529 * posix-hdep.c: Update include path.
9530 * ser-unix.c: Update include path.
9531 * gdb_usleep.c: Update include path.
9532 * mingw-hdep.c: Update include path.
9533 * inflow.c: Update include path.
9534 * infrun.c: Update include path.
9535 * event-top.c: Update include path.
9536
9537 2020-04-13 Tom Tromey <tom@tromey.com>
9538
9539 * configure: Rebuild.
9540 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9541
9542 2020-04-13 Tom Tromey <tom@tromey.com>
9543
9544 * event-loop.h (start_event_loop): Don't declare.
9545 * event-loop.c (start_event_loop): Move...
9546 * main.c (start_event_loop): ...here. Now static.
9547
9548 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9549
9550 * MAINTAINERS: Update my email address.
9551
9552 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9553
9554 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9555 IP_ALL.
9556
9557 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9558
9559 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9560 (nbsd_nat_target::info_proc): Add do_cmdline.
9561
9562 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9563
9564 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9565 (nbsd_nat_target::info_proc): Add do_cwd.
9566
9567 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9568
9569 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9570
9571 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9572
9573 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9574 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9575 (nbsd_nat_target::info_proc): New functions.
9576 * nbsd-nat.c (kinfo_get_vmmap): New function.
9577 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9578 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9579 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9580 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9581 functions.
9582 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9583 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9584 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9585 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9586 (KINFO_VME_FLAG_GROWS_DOWN): New.
9587
9588 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9589
9590 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9591 bit shift.
9592
9593 2020-04-10 Tom Tromey <tromey@adacore.com>
9594
9595 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9596
9597 2020-04-10 Tom Tromey <tromey@adacore.com>
9598
9599 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9600 separate debug files.
9601
9602 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9603
9604 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9605 Move to...
9606 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9607 ... here.
9608 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9609 Check for STATUS_WX86_BREAKPOINT.
9610 (windows_nat_target::wait): Same.
9611
9612 2020-04-10 Tom de Vries <tdevries@suse.de>
9613
9614 PR cli/25808
9615 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9616
9617 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9620 (Write After Approval): Remove Tom de Vries.
9621
9622 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9623
9624 revert partially:
9625 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9626
9627 * buildsym.c (record_line): Fix undefined behavior and preserve
9628 lines at eof.
9629
9630 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9631
9632 * auxv.h (svr4_auxv_parse): New.
9633 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9634 and generic_auxv_parse.
9635 (svr4_auxv_parse): Add.
9636 * obsd-tdep.c: Include "auxv.h".
9637 (obsd_auxv_parse): Remove.
9638 (obsd_init_abi): Remove comment.
9639 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9640 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9641 * nbsd-tdep.c: Include "auxv.h".
9642 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9643
9644 2020-04-08 Tom Tromey <tromey@adacore.com>
9645
9646 * nat/windows-nat.h (last_wait_event): Don't declare.
9647 (wait_for_debug_event): Update comment.
9648 * nat/windows-nat.c (last_wait_event): Now static.
9649
9650 2020-04-08 Tom Tromey <tromey@adacore.com>
9651
9652 * windows-nat.c (wait_for_debug_event): Move to
9653 nat/windows-nat.c.
9654 * nat/windows-nat.h (wait_for_debug_event): Declare.
9655 * nat/windows-nat.c (wait_for_debug_event): Move from
9656 windows-nat.c. No longer static.
9657
9658 2020-04-08 Tom Tromey <tromey@adacore.com>
9659
9660 * windows-nat.c (get_windows_debug_event): Use
9661 fetch_pending_stop.
9662 * nat/windows-nat.h (fetch_pending_stop): Declare.
9663 * nat/windows-nat.c (fetch_pending_stop): New function.
9664
9665 2020-04-08 Tom Tromey <tromey@adacore.com>
9666
9667 * windows-nat.c (windows_continue): Use matching_pending_stop and
9668 continue_last_debug_event.
9669 * nat/windows-nat.h (matching_pending_stop)
9670 (continue_last_debug_event): Declare.
9671 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9672 (matching_pending_stop, continue_last_debug_event): New
9673 functions.
9674
9675 2020-04-08 Tom Tromey <tromey@adacore.com>
9676
9677 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9678 (handle_exception_result): Move to nat/windows-nat.h.
9679 (DEBUG_EXCEPTION_SIMPLE): Remove.
9680 (windows_nat::handle_ms_vc_exception): New function.
9681 (handle_exception): Move to nat/windows-nat.c.
9682 (get_windows_debug_event): Update.
9683 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9684 nat/windows-nat.c.
9685 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9686 (handle_exception_result): Move from windows-nat.c.
9687 (handle_exception): Declare.
9688 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9689 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9690 windows-nat.c.
9691
9692 2020-04-08 Tom Tromey <tromey@adacore.com>
9693
9694 * windows-nat.c (exception_count, event_count): Remove.
9695 (handle_exception, get_windows_debug_event)
9696 (do_initial_windows_stuff): Update.
9697
9698 2020-04-08 Tom Tromey <tromey@adacore.com>
9699
9700 * windows-nat.c (windows_nat::handle_load_dll)
9701 (windows_nat::handle_unload_dll): Rename. No longer static.
9702 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9703 Declare.
9704
9705 2020-04-08 Tom Tromey <tromey@adacore.com>
9706
9707 * complaints.h (stop_whining): Declare at top-level.
9708 (complaint): Don't declare stop_whining.
9709
9710 2020-04-08 Tom Tromey <tromey@adacore.com>
9711
9712 * windows-nat.c (windows_nat::handle_output_debug_string):
9713 Rename. No longer static.
9714 * nat/windows-nat.h (handle_output_debug_string): Declare.
9715
9716 2020-04-08 Tom Tromey <tromey@adacore.com>
9717
9718 * windows-nat.c (current_process_handle, current_process_id)
9719 (main_thread_id, last_sig, current_event, last_wait_event)
9720 (current_windows_thread, desired_stop_thread_id, pending_stops)
9721 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9722 (display_selectors, fake_create_process)
9723 (get_windows_debug_event): Update.
9724 * nat/windows-nat.h (current_process_handle, current_process_id)
9725 (main_thread_id, last_sig, current_event, last_wait_event)
9726 (current_windows_thread, desired_stop_thread_id, pending_stops)
9727 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9728 * nat/windows-nat.c (current_process_handle, current_process_id)
9729 (main_thread_id, last_sig, current_event, last_wait_event)
9730 (current_windows_thread, desired_stop_thread_id, pending_stops)
9731 (siginfo_er): New globals. Move from windows-nat.c.
9732
9733 2020-04-08 Tom Tromey <tromey@adacore.com>
9734
9735 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9736 (handle_load_dll): Update.
9737 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9738
9739 2020-04-08 Tom Tromey <tromey@adacore.com>
9740
9741 * windows-nat.c (enum thread_disposition_type): Move to
9742 nat/windows-nat.h.
9743 (windows_nat::thread_rec): Rename from thread_rec. No longer
9744 static.
9745 (windows_add_thread, windows_nat_target::fetch_registers)
9746 (windows_nat_target::store_registers, handle_exception)
9747 (windows_nat_target::resume, get_windows_debug_event)
9748 (windows_nat_target::get_tib_address)
9749 (windows_nat_target::thread_name)
9750 (windows_nat_target::thread_alive): Update.
9751 * nat/windows-nat.h (enum thread_disposition_type): Move from
9752 windows-nat.c.
9753 (thread_rec): Declare.
9754
9755 2020-04-08 Tom Tromey <tromey@adacore.com>
9756
9757 * windows-nat.c: Add "using namespace".
9758 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9759 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9760
9761 2020-04-08 Tom Tromey <tromey@adacore.com>
9762
9763 * nat/windows-nat.h (struct windows_thread_info): Declare
9764 destructor.
9765 * nat/windows-nat.c (~windows_thread_info): New.
9766
9767 2020-04-08 Tom Tromey <tromey@adacore.com>
9768
9769 PR gdb/22992
9770 * windows-nat.c (current_event): Update comment.
9771 (last_wait_event, desired_stop_thread_id): New globals.
9772 (struct pending_stop): New.
9773 (pending_stops): New global.
9774 (windows_nat_target) <stopped_by_sw_breakpoint>
9775 <supports_stopped_by_sw_breakpoint>: New methods.
9776 (windows_fetch_one_register): Add assertions. Adjust PC.
9777 (windows_continue): Handle pending stops. Suspend other threads
9778 when stepping. Use last_wait_event
9779 (wait_for_debug_event): New function.
9780 (get_windows_debug_event): Use wait_for_debug_event. Handle
9781 pending stops. Queue spurious stops.
9782 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9783 (windows_nat_target::kill): Use wait_for_debug_event.
9784 * nat/windows-nat.h (struct windows_thread_info)
9785 <stopped_at_software_breakpoint>: New field.
9786 * nat/windows-nat.c (windows_thread_info::resume): Clear
9787 stopped_at_software_breakpoint.
9788
9789 2020-04-08 Tom Tromey <tromey@adacore.com>
9790
9791 * windows-nat.c (enum thread_disposition_type): New.
9792 (thread_rec): Replace "get_context" parameter with "disposition";
9793 change type.
9794 (windows_add_thread, windows_nat_target::fetch_registers)
9795 (windows_nat_target::store_registers, handle_exception)
9796 (windows_nat_target::resume, get_windows_debug_event)
9797 (windows_nat_target::get_tib_address)
9798 (windows_nat_target::thread_name)
9799 (windows_nat_target::thread_alive): Update.
9800
9801 2020-04-08 Tom Tromey <tromey@adacore.com>
9802
9803 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9804 (windows_continue): Use windows_continue::resume.
9805 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9806 resume>: Declare new methods.
9807 * nat/windows-nat.c: New file.
9808 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9809
9810 2020-04-08 Tom Tromey <tromey@adacore.com>
9811
9812 * windows-nat.c (windows_add_thread, windows_delete_thread)
9813 (windows_nat_target::fetch_registers)
9814 (windows_nat_target::store_registers, fake_create_process)
9815 (windows_nat_target::resume, windows_nat_target::resume)
9816 (get_windows_debug_event, windows_nat_target::wait)
9817 (windows_nat_target::pid_to_str)
9818 (windows_nat_target::get_tib_address)
9819 (windows_nat_target::get_ada_task_ptid)
9820 (windows_nat_target::thread_name)
9821 (windows_nat_target::thread_alive): Use lwp, not tid.
9822
9823 2020-04-08 Tom Tromey <tromey@adacore.com>
9824
9825 * windows-nat.c (handle_exception)
9826 (windows_nat_target::thread_name): Update.
9827 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9828 <name>: Now unique_xmalloc_ptr.
9829
9830 2020-04-08 Tom Tromey <tromey@adacore.com>
9831
9832 * windows-nat.c (thread_rec)
9833 (windows_nat_target::fetch_registers): Update.
9834 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9835 Update comment.
9836 <debug_registers_changed, reload_context>: Now bool.
9837
9838 2020-04-08 Tom Tromey <tromey@adacore.com>
9839
9840 * windows-nat.c (windows_add_thread): Use new.
9841 (windows_init_thread_list, windows_delete_thread): Use delete.
9842 (get_windows_debug_event): Update.
9843 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9844 destructor, and initializers.
9845
9846 2020-04-08 Tom Tromey <tromey@adacore.com>
9847
9848 * windows-nat.c (struct windows_thread_info): Remove.
9849 * nat/windows-nat.h: New file.
9850
9851 2020-04-08 Tom Tromey <tromey@adacore.com>
9852
9853 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9854 (thread_rec, windows_add_thread, windows_delete_thread)
9855 (windows_continue): Update.
9856
9857 2020-04-08 Tom Tromey <tromey@adacore.com>
9858
9859 * windows-nat.c (struct windows_thread_info): Remove typedef.
9860 (thread_head): Remove.
9861 (thread_list): New global.
9862 (thread_rec, windows_add_thread, windows_init_thread_list)
9863 (windows_delete_thread, windows_continue): Update.
9864
9865 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9866
9867 * windows-tdep.h (windows_init_abi): Add comment.
9868 (cygwin_init_abi): New declaration.
9869 * windows-tdep.c: Split signal enumeration in two, one for
9870 Windows and one for Cygwin.
9871 (windows_gdb_signal_to_target): Only deal with signal of the
9872 Windows OS ABI.
9873 (cygwin_gdb_signal_to_target): New function.
9874 (windows_init_abi): Rename to windows_init_abi_common, don't set
9875 gdb_signal_to_target gdbarch method. Add new new function with
9876 this name.
9877 (cygwin_init_abi): New function.
9878 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9879 comment. Don't call windows_init_abi.
9880 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9881 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9882 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9883 i386_windows_init_abi_common, don't call windows_init_abi. Add
9884 a new function of this name.
9885 (i386_cygwin_init_abi): New function.
9886 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9887 OS ABI Cygwin.
9888
9889 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9890
9891 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9892 parameter.c.
9893 (dwarf2_read_gdb_index): Update.
9894
9895 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9896
9897 * nbsd-tdep.c: Include "objfiles.h".
9898 (nbsd_skip_solib_resolver): New.
9899 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9900
9901 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9902
9903 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9904 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9905 with DW_LLE_base_addressx are being emitted in DWARFv5.
9906 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9907 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9908 unsigned integer.
9909
9910 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9911
9912 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9913 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9914 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9915 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9916 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9917 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9918 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9919
9920
9921 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9922
9923 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9924 (read_loclist_index): New function definition.
9925 (lookup_loclist_base): New function definition.
9926 (read_loclist_header): New function definition.
9927 (dwarf2_cu): Add loclist_base and loclist_header field.
9928 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9929 (read_full_die_1): Read the value of DW_AT_loclists_base.
9930 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9931 (read_attribute_value): Handle DW_FORM_loclistx.
9932 (skip_one_die): Handle DW_FORM_loclistx.
9933 (loclist_header): New structure declaration.
9934 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9935
9936 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9937
9938 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9939 constructor. Remove `addr` parameter from other constructor and
9940 add `per_cu` parameter.
9941 * dwarf2/read.c (create_partial_symtab): Update.
9942
9943 2020-04-07 Tom de Vries <tdevries@suse.de>
9944
9945 PR symtab/25796
9946 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9947 (partial_die_info::fixup): Inherit has_const_value.
9948
9949 2020-04-07 Tom de Vries <tdevries@suse.de>
9950
9951 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9952 symbols without address.
9953
9954 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9955
9956 * nbsd-nat.h (struct thread_info): Add forward declaration.
9957 (nbsd_nat_target::thread_alive): Add.
9958 (nbsd_nat_target::thread_name): Likewise.
9959 (nbsd_nat_target::update_thread_list): Likewise.
9960 (update_thread_list::post_attach): Likewise.
9961 (post_attach::pid_to_str): Likewise.
9962 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9963 (nbsd_thread_lister): Add.
9964 (nbsd_nat_target::thread_alive): Likewise.
9965 (nbsd_nat_target::thread_name): Likewise.
9966 (nbsd_add_threads): Likewise.
9967 (update_thread_list::post_attach): Likewise.
9968 (nbsd_nat_target::update_thread_list): Likewise.
9969 (post_attach::pid_to_str): Likewise.
9970
9971 2020-04-06 Tom Tromey <tromey@adacore.com>
9972
9973 * ada-valprint.c (print_variant_part): Extract the variant field.
9974 (print_field_values): Use the field as the outer value when
9975 recursing.
9976
9977 2020-04-06 Tom Tromey <tromey@adacore.com>
9978
9979 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9980 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9981 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9982 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9983 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9984
9985 2020-04-06 Tom Tromey <tromey@adacore.com>
9986
9987 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9988 TYPE_CODE_ERROR.
9989
9990 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9991
9992 * nbsd-tdep.c: Include "gdbarch.h".
9993 Define enum with NetBSD signal numbers.
9994 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9995 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9996 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9997 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9998 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9999 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10000 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10001 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10002 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10003 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10004 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10005 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10006
10007 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10008
10009 PR gdb/25325
10010 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10011
10012 2020-04-03 Tom Tromey <tromey@adacore.com>
10013
10014 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10015 Read constant block.
10016
10017 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10018
10019 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10020 (gdb_bfd_get_full_section_contents): New declaration.
10021 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10022 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10023 gdb_bfd_get_full_section_contents.
10024
10025 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10026
10027 * exec.c (build_section_table): Replace internal_error with
10028 gdb_assert.
10029 (section_table_xfer_memory_partial): Likewise.
10030 * mdebugread.c (parse_partial_symbols): Likewise.
10031 * psymtab.c (lookup_partial_symbol): Likewise.
10032 * utils.c (wrap_here): Likewise.
10033
10034 2020-04-02 Tom Tromey <tromey@adacore.com>
10035
10036 * f-lang.c (build_fortran_types): Use arch_type to initialize
10037 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10038
10039 2020-04-02 Tom Tromey <tromey@adacore.com>
10040
10041 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10042 of attributes.
10043
10044 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10045 Bernd Edlinger <bernd.edlinger@hotmail.de>
10046 Tom Tromey <tromey@adacore.com>
10047
10048 * buildsym.c (buildsym_compunit::record_line): Remove
10049 deduplication code.
10050
10051 2020-04-02 Tom de Vries <tdevries@suse.de>
10052
10053 PR ada/24671
10054 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10055
10056 2020-04-02 Tom de Vries <tdevries@suse.de>
10057
10058 * dwarf2/read.c (dwarf2_gdb_index_functions,
10059 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10060 NULL.
10061 * psymtab.c (psym_lookup_global_symbol_language): New function.
10062 (psym_functions): Init psym_lookup_global_symbol_language with
10063 psym_lookup_global_symbol_language.
10064 * symfile-debug.c (debug_sym_quick_functions): Init
10065 lookup_global_symbol_language with NULL.
10066 * symfile.c (set_initial_language): Remove fixme comment.
10067 * symfile.h (struct quick_symbol_functions): Add
10068 lookup_global_symbol_language.
10069 * symtab.c (find_quick_global_symbol_language): New function.
10070 (find_main_name): Use find_quick_global_symbol_language.
10071
10072 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10073
10074 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10075
10076 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10077
10078 * buildsym.c (record_line): Fix undefined behavior and preserve
10079 lines at eof.
10080
10081 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10082
10083 * buildsym.c (record_line): Fix the resizing condition.
10084
10085 2020-04-01 Tom Tromey <tom@tromey.com>
10086
10087 * value.h (value_literal_complex): Add comment.
10088 * valops.c (value_literal_complex): Refer to value.h.
10089
10090 2020-04-01 Tom Tromey <tom@tromey.com>
10091
10092 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10093 (scalar_type): New rule, from typebase.
10094 (typebase): Use scalar_type. Recognize complex types.
10095 (field_name): Handle FLOAT_KEYWORD.
10096 (ident_tokens): Add _Complex and __complex__.
10097
10098 2020-04-01 Tom Tromey <tom@tromey.com>
10099
10100 PR exp/25299:
10101 * valarith.c (promotion_type, complex_binop): New functions.
10102 (scalar_binop): Handle complex numbers. Use promotion_type.
10103 (value_pos, value_neg, value_complement): Handle complex numbers.
10104
10105 2020-04-01 Tom Tromey <tom@tromey.com>
10106
10107 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10108 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10109 (parse_number): Handle complex numbers.
10110
10111 2020-04-01 Tom Tromey <tom@tromey.com>
10112
10113 * c-valprint.c (c_decorations): Change complex suffix to "i".
10114
10115 2020-04-01 Tom Tromey <tom@tromey.com>
10116
10117 * valprint.c (generic_value_print_complex): Use accessors.
10118 * value.h (value_real_part, value_imaginary_part): Declare.
10119 * valops.c (value_real_part, value_imaginary_part): New
10120 functions.
10121 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10122
10123 2020-04-01 Tom Tromey <tom@tromey.com>
10124
10125 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10126 (read_range_type): Update.
10127 * mdebugread.c (basic_type): Update.
10128 * go-lang.c (build_go_types): Use init_complex_type.
10129 * gdbtypes.h (struct main_type) <complex_type>: New member.
10130 (init_complex_type): Update.
10131 (arch_complex_type): Don't declare.
10132 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10133 Make name if none given. Use alloc_type_copy. Look for cached
10134 complex type.
10135 (arch_complex_type): Remove.
10136 (gdbtypes_post_init): Use init_complex_type.
10137 * f-lang.c (build_fortran_types): Use init_complex_type.
10138 * dwarf2/read.c (read_base_type): Update.
10139 * d-lang.c (build_d_types): Use init_complex_type.
10140 * ctfread.c (read_base_type): Update.
10141
10142 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10143
10144 * infrun.c (stop_all_threads): Update assertion, plus when
10145 stopping threads, take into account that we might be trying
10146 to stop an all-stop target.
10147 (stop_waiting): Call 'stop_all_threads' if there exists a
10148 non-stop target.
10149
10150 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10151
10152 * target.h (exists_non_stop_target): New function declaration.
10153 * target.c (exists_non_stop_target): New function.
10154
10155 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10156
10157 PR gdb/24789
10158 * eval.c (is_integral_or_integral_reference): New function.
10159 (evaluate_subexp_standard): Allow integer references in
10160 pointer arithmetic.
10161
10162 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10163
10164 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10165 check for no ptid in the stop reply when the target is non-stop.
10166
10167 2020-04-01 Tom Tromey <tromey@adacore.com>
10168
10169 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10170 "name" parameter to rvalue reference. Initialize m_name_holder.
10171 <lookup_name_info>: New overloads.
10172 <name>: Return gdb::string_view.
10173 <c_str>: New method.
10174 <make_ignore_params>: Update.
10175 <search_name_hash>: Update.
10176 <language_lookup_name>: Return const char *.
10177 <m_name>: Change type.
10178 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10179 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10180 (lookup_name_info::match_any): Update.
10181 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10182 Update.
10183 * minsyms.c (linkage_name_str): Update.
10184 * language.c (default_symbol_name_matcher): Update.
10185 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10186 Update.
10187 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10188 (ada_lookup_name_info::ada_lookup_name_info): Update.
10189 (literal_symbol_name_matcher): Update.
10190
10191 2020-04-01 Tom Tromey <tromey@adacore.com>
10192
10193 * psymtab.c (psymtab_search_name): Remove function.
10194 (psym_lookup_symbol): Create search name and lookup name here.
10195 (lookup_partial_symbol): Remove "name" parameter; add
10196 lookup_name.
10197 (psym_expand_symtabs_for_function): Update.
10198
10199 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10200
10201 PR tui/25597:
10202 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10203
10204 2020-03-31 Tom Tromey <tromey@adacore.com>
10205
10206 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10207 memcpy.
10208
10209 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10210
10211 * features/riscv/32bit-csr.xml: Regenerated.
10212 * features/riscv/64bit-csr.xml: Regenerated.
10213
10214 2020-03-30 Tom Tromey <tromey@adacore.com>
10215
10216 * ada-valprint.c (print_variant_part): Update.
10217 * ada-lang.h (ada_which_variant_applies): Update.
10218 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10219 outer_valaddr parameters; replace with "outer" value parameter.
10220 (to_fixed_variant_branch_type): Update.
10221
10222 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10223
10224 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10225 <list>. Remove inclusion of observable.h.
10226 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10227 (struct arch_lwp_info): New struct.
10228 (class ppc_linux_dreg_interface): New class.
10229 (struct ppc_linux_process_info): New struct.
10230 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10231 <low_new_clone, low_forget_process, low_prepare_to_resume>
10232 <copy_thread_dreg_state, mark_thread_stale>
10233 <mark_debug_registers_changed, register_hw_breakpoint>
10234 <clear_hw_breakpoint, register_wp, clear_wp>
10235 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10236 <num_memory_accesses, get_trigger_type>
10237 <create_watchpoint_request, hwdebug_point_cmp>
10238 <init_arch_lwp_info, get_arch_lwp_info>
10239 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10240 methods.
10241 <struct ptid_hash>: New inner struct.
10242 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10243 members.
10244 (saved_dabr_value, hwdebug_info, max_slots_number)
10245 (struct hw_break_tuple, struct thread_points, ppc_threads)
10246 (have_ptrace_hwdebug_interface)
10247 (hwdebug_find_thread_points_by_tid)
10248 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10249 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10250 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10251 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10252 use m_dreg_interface.
10253 (hwdebug_point_cmp): Change to...
10254 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10255 reference arguments instead of pointers.
10256 (ppc_linux_nat_target::ranged_break_num_registers): Use
10257 m_dreg_interface.
10258 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10259 m_dreg_interface. Call register_hw_breakpoint.
10260 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10261 m_dreg_interface. Call clear_hw_breakpoint.
10262 (get_trigger_type): Change to...
10263 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10264 comment.
10265 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10266 use m_dreg_interface. Call register_hw_breakpoint.
10267 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10268 use m_dreg_interface. Call clear_hw_breakpoint.
10269 (can_use_watchpoint_cond_accel): Change to...
10270 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10271 method. Update comment, use m_dreg_interface and
10272 m_process_info.
10273 (calculate_dvc): Change to...
10274 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10275 m_dreg_interface.
10276 (num_memory_accesses): Change to...
10277 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10278 (check_condition): Change to...
10279 (ppc_linux_nat_target::check_condition): ...this method.
10280 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10281 comment, use m_dreg_interface.
10282 (create_watchpoint_request): Change to...
10283 (ppc_linux_nat_target::create_watchpoint_request): ...this
10284 method. Use m_dreg_interface.
10285 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10286 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10287 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10288 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10289 (ppc_linux_nat_target::low_forget_process)
10290 (ppc_linux_nat_target::low_new_fork)
10291 (ppc_linux_nat_target::low_new_clone)
10292 (ppc_linux_nat_target::low_delete_thread)
10293 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10294 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10295 only call mark_thread_stale.
10296 (ppc_linux_thread_exit): Remove.
10297 (ppc_linux_nat_target::stopped_data_address): Change to...
10298 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10299 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10300 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10301 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10302 comment. Call low_stopped_data_address.
10303 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10304 m_dreg_interface.
10305 (ppc_linux_nat_target::masked_watch_num_registers): Use
10306 m_dreg_interface.
10307 (ppc_linux_nat_target::copy_thread_dreg_state)
10308 (ppc_linux_nat_target::mark_thread_stale)
10309 (ppc_linux_nat_target::mark_debug_registers_changed)
10310 (ppc_linux_nat_target::register_hw_breakpoint)
10311 (ppc_linux_nat_target::clear_hw_breakpoint)
10312 (ppc_linux_nat_target::register_wp)
10313 (ppc_linux_nat_target::clear_wp)
10314 (ppc_linux_nat_target::init_arch_lwp_info)
10315 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10316 (_initialize_ppc_linux_nat): Remove observer callback.
10317
10318 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10319
10320 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10321 (ppc_linux_nat_target::auxv_parse)
10322 (ppc_linux_nat_target::read_description)
10323 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10324 Move up.
10325
10326 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10327
10328 * linux-nat.h (low_new_clone): New method.
10329 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10330
10331 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10332
10333 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10334 (dbx_expand_psymtab): ... this.
10335 (start_psymtab): Update.
10336 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10337 (mdebug_expand_psymtab): ... this.
10338 (parse_partial_symbols): Update.
10339 (new_psymtab): Update.
10340 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10341 (xcoff_expand_psymtab): ... this.
10342 (xcoff_start_psymtab): Update.
10343
10344 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10345
10346 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10347 <expand_dependencies>: ... this.
10348 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10349 (partial_symtab::expand_dependencies): ... this.
10350 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10351 Update.
10352 (dwarf2_psymtab::expand_psymtab): Update.
10353 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10354 * mdebugread.c (psymtab_to_symtab_1): Update.
10355 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10356
10357 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * psympriv.h (discard_psymtab): Remove.
10360 * dbxread.c (dbx_end_psymtab): Update.
10361 * xcoffread.c (xcoff_end_psymtab): Update.
10362
10363 2020-03-28 Tom Tromey <tom@tromey.com>
10364
10365 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10366 comment.
10367
10368 2020-03-28 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10371
10372 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10373
10374 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10375
10376 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10377
10378 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10379
10380 2020-03-26 Tom Tromey <tom@tromey.com>
10381
10382 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10383 (mark_common_block_symbol_computed, read_tag_string_type)
10384 (attr_to_dynamic_prop, read_subrange_type): Update.
10385 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10386 to be methods on struct attribute.
10387 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10388 (read_call_site_scope, partial_die_info::read)
10389 (partial_die_info::read, lookup_die_type, follow_die_ref):
10390 Update.
10391 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10392 from dwarf2_get_ref_die_offset.
10393 (attribute::constant_value): New method, from
10394 dwarf2_get_attr_constant_value.
10395 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10396 Declare method.
10397 <constant_value>: New method.
10398
10399 2020-03-26 Tom Tromey <tom@tromey.com>
10400
10401 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10402 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10403 (dwarf_type_encoding_name): Move to stringify.c.
10404 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10405 * dwarf2/stringify.c: New file.
10406 * dwarf2/stringify.h: New file.
10407
10408 2020-03-26 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10411 Rewrite.
10412
10413 2020-03-26 Tom Tromey <tom@tromey.com>
10414
10415 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10416 methods.
10417 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10418 (lookup_ranges_base): Likewise.
10419 (read_cutu_die_from_dwo, read_full_die_1): Update.
10420
10421 2020-03-26 Tom Tromey <tom@tromey.com>
10422
10423 * dwarf2/read.c (read_import_statement, read_file_scope)
10424 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10425 (read_lexical_block_scope, read_call_site_scope)
10426 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10427 (handle_struct_member_die, process_structure_scope)
10428 (update_enumeration_type_from_children)
10429 (process_enumeration_scope, read_array_type, read_common_block)
10430 (read_namespace, read_module, read_subroutine_type): Update.
10431 (sibling_die): Remove.
10432
10433 2020-03-26 Tom Tromey <tom@tromey.com>
10434
10435 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10436 (build_type_psymtabs_reader, read_structure_type)
10437 (read_enumeration_type, read_full_die_1): Update.
10438 (dwarf2_attr_no_follow): Move to die.h.
10439 * dwarf2/die.h (struct die_info) <attr>: New method.
10440
10441 2020-03-26 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10444 <base_address>: Now an optional.
10445 (dwarf2_find_base_address, dwarf2_rnglists_process)
10446 (dwarf2_ranges_process, fill_in_loclist_baton)
10447 (dwarf2_symbol_mark_computed): Update.
10448
10449 2020-03-26 Tom Tromey <tom@tromey.com>
10450
10451 * dwarf2/read.c (struct die_info): Move to die.h.
10452 * dwarf2/die.h: New file.
10453
10454 2020-03-26 Tom Tromey <tom@tromey.com>
10455
10456 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10457 * dwarf2/read.c
10458 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10459 Move to line-header.c.
10460 (read_checked_initial_length_and_offset, read_formatted_entries):
10461 Likewise.
10462 (dwarf_decode_line_header): Split into two.
10463 * dwarf2/line-header.c
10464 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10465 Move from read.c.
10466 (read_checked_initial_length_and_offset, read_formatted_entries):
10467 Likewise.
10468 (dwarf_decode_line_header): New function, split from read.c.
10469
10470 2020-03-26 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10473 Declare method.
10474 * dwarf2/read.c (read_attribute_value): Update.
10475 (dwarf2_per_objfile::read_line_string): Rename from
10476 read_indirect_line_string.
10477 (read_formatted_entries): Update.
10478
10479 2020-03-26 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10482 variable.
10483
10484 2020-03-26 Tom Tromey <tom@tromey.com>
10485
10486 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10487 const.
10488 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10489 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10490 parameter const.
10491
10492 2020-03-26 Tom Tromey <tom@tromey.com>
10493
10494 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10495 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10496 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10497 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10498
10499 2020-03-26 Tom Tromey <tom@tromey.com>
10500
10501 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10502 file_names_size, file_full_name, file_file_name>: Use const.
10503 <file_name_at, file_names>: Add const overload.
10504 * dwarf2/line-header.c (line_header::file_file_name)
10505 (line_header::file_full_name): Update.
10506
10507 2020-03-26 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10510 (macro_start_file, consume_improper_spaces)
10511 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10512 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10513 (dwarf_decode_macros): Move to macro.c.
10514 * dwarf2/macro.c: New file.
10515 * dwarf2/macro.h: New file.
10516 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10517
10518 2020-03-26 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10521 method.
10522 * dwarf2/section.c: New method. From
10523 read_indirect_string_at_offset_from.
10524 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10525 (read_indirect_string_at_offset_from): Move to section.c.
10526 (read_indirect_string_at_offset): Rewrite.
10527 (read_indirect_line_string_at_offset): Remove.
10528 (read_indirect_string, read_indirect_line_string)
10529 (dwarf_decode_macro_bytes): Update.
10530
10531 2020-03-26 Tom Tromey <tom@tromey.com>
10532
10533 * dwarf2/section.h (struct dwarf2_section_info)
10534 <overload_complaint>: Declare.
10535 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10536 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10537 Rename from dwarf2_section_buffer_overflow_complaint.
10538 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10539 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10540
10541 2020-03-26 Tom Tromey <tom@tromey.com>
10542
10543 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10544 Declare.
10545 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10546 Move from read.c.
10547 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10548 to section.c.
10549
10550 2020-03-26 Tom Tromey <tom@tromey.com>
10551
10552 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10553
10554 2020-03-26 Tom Tromey <tom@tromey.com>
10555
10556 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10557 "builder".
10558 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10559 parameter.
10560 (dwarf_decode_macros): Update.
10561
10562 2020-03-26 Tom Tromey <tom@tromey.com>
10563
10564 * dwarf2/read.c (read_attribute_value): Update.
10565 (read_indirect_string_from_dwz): Move to dwz.c; change into
10566 method.
10567 (dwarf_decode_macro_bytes): Update.
10568 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10569 * dwarf2/dwz.c: New file.
10570 * Makefile.in (COMMON_SFILES): Add dwz.c.
10571
10572 2020-03-26 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10575 * dwarf2/read.c: Add include.
10576 * dwarf2/index-write.c: Add include.
10577 * dwarf2/index-cache.c: Add include.
10578 * dwarf2/dwz.h: New file.
10579
10580 2020-03-25 Tom Tromey <tom@tromey.com>
10581
10582 * compile/compile-object-load.c (get_out_value_type): Mention
10583 correct symbol name in error message.
10584
10585 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10586
10587 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10588
10589 2020-03-25 Tom de Vries <tdevries@suse.de>
10590
10591 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10592 * symmisc.c (dump_symtab_1): Print user and includes fields.
10593 (maintenance_info_symtabs): Same.
10594
10595 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 PR gdb/25534
10598 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10599 (riscv_regcache_cooked_write): New function.
10600 (riscv_push_dummy_call): Use new function.
10601 (riscv_return_value): Likewise.
10602
10603 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10604
10605 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10606 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10607 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10608 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10609 * infrun.c (follow_fork): Likewise.
10610 (follow_fork_inferior): Likewise.
10611 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10612 * linux-nat.h (class linux_nat_target): Likewise.
10613 * remote.c (class remote_target) <follow_fork>: Likewise.
10614 (remote_target::follow_fork): Likewise.
10615 * target-delegates.c: Re-generate.
10616 * target.c (default_follow_fork): Likewise.
10617 (target_follow_fork): Likewise.
10618 * target.h (struct target_ops) <follow_fork>: Likewise.
10619 (target_follow_fork): Likewise.
10620
10621 2020-03-24 Tom de Vries <tdevries@suse.de>
10622
10623 * psymtab.c (maintenance_info_psymtabs): Print user field.
10624
10625 2020-03-20 Tom Tromey <tromey@adacore.com>
10626
10627 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10628 const.
10629 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10630 const.
10631
10632 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10633
10634 * ptrace.m4: Don't check for ptrace declaration.
10635 * config.in: Re-generate.
10636 * configure: Re-generate.
10637 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10638 not defined.
10639
10640 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10641
10642 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10643 `PTRACE_TYPE_RET'.
10644 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10645 * sparc-nat.c (gdb_ptrace): Likewise.
10646 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10647
10648 2020-03-20 Tom Tromey <tromey@adacore.com>
10649
10650 * c-exp.y (lex_one_token): Fix assert.
10651
10652 2020-03-20 Tom Tromey <tromey@adacore.com>
10653
10654 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10655 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10656 strncpy call.
10657
10658 2020-03-20 Tom Tromey <tromey@adacore.com>
10659
10660 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10661
10662 2020-03-20 Tom Tromey <tromey@adacore.com>
10663
10664 * ada-valprint.c (print_variant_part): Remove parameters; switch
10665 to value-based API.
10666 (print_field_values): Likewise.
10667 (ada_val_print_struct_union): Likewise.
10668 (ada_value_print_1): Update.
10669
10670 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10671
10672 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10673 nbsd_nat_target instead of inf_ptrace_target.
10674 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10675 nbsd_nat_target.
10676
10677 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10678
10679 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10680 it to the ptrace call.
10681 * (store_registers): Likewise.
10682
10683 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10684
10685 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10686 it to the ptrace call.
10687 * (store_registers): Likewise.
10688
10689 2020-03-19 Luis Machado <luis.machado@linaro.org>
10690
10691 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10692 valid, fetch vg value from ptrace.
10693
10694 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10695 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10696 * inf-ptrace.c: Likewise.
10697 * (gdb_ptrace): Add.
10698 * (inf_ptrace_target::resume): Update.
10699 * (inf_ptrace_target::xfer_partial): Likewise.
10700 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10701 * (inf_ptrace_peek_poke): Update.
10702
10703 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10704
10705 * x86-bsd-nat.c (gdb_ptrace): New.
10706 * (x86bsd_dr_set): Add new argument `ptid'.
10707 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10708 x86bsd_dr_set_addr): Update.
10709
10710 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10711
10712 * remote.c (remote_target::process_stop_reply): Handle events for
10713 all threads differently.
10714
10715 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10716
10717 * completer.c (completion_tracker::remove_completion): Define new
10718 function.
10719 * completer.h (completion_tracker::remove_completion): Declare new
10720 function.
10721 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10722 when adding a C++ function symbol.
10723
10724 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * completer.c (completion_tracker::completion_hash_entry): Define
10727 new class.
10728 (advance_to_filename_complete_word_point): Call
10729 recompute_lowest_common_denominator.
10730 (completion_tracker::completion_tracker): Call discard_completions
10731 to setup the hash table.
10732 (completion_tracker::discard_completions): Allow for being called
10733 from the constructor, pass new equal function, and element deleter
10734 when constructing the hash table. Initialise new class member
10735 variables.
10736 (completion_tracker::maybe_add_completion): Remove use of
10737 m_entries_vec, and store more information into m_entries_hash.
10738 (completion_tracker::recompute_lcd_visitor): New function, most
10739 content taken from...
10740 (completion_tracker::recompute_lowest_common_denominator):
10741 ...here, this now just visits each item in the hash calling the
10742 above visitor.
10743 (completion_tracker::build_completion_result): Remove use of
10744 m_entries_vec, call recompute_lowest_common_denominator.
10745 * completer.h (completion_tracker::have_completions): Remove use
10746 of m_entries_vec.
10747 (completion_tracker::completion_hash_entry): Declare new class.
10748 (completion_tracker::recompute_lowest_common_denominator): Change
10749 function signature.
10750 (completion_tracker::recompute_lcd_visitor): Declare new function.
10751 (completion_tracker::m_entries_vec): Delete.
10752 (completion_tracker::m_entries_hash): Initialize to NULL.
10753 (completion_tracker::m_lowest_common_denominator_valid): New
10754 member variable.
10755 (completion_tracker::m_lowest_common_denominator_max_length): New
10756 member variable.
10757
10758 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10759
10760 * regformats/regdef.h: Put reg in gdb namespace.
10761
10762 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10763
10764 * i386-bsd-nat.c (gdb_ptrace): New.
10765 * (i386bsd_fetch_inferior_registers,
10766 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10767 * (i386bsd_fetch_inferior_registers,
10768 i386bsd_store_inferior_registers) Use gdb_ptrace.
10769
10770 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10771
10772 * amd64-bsd-nat.c (gdb_ptrace): New.
10773 * (amd64bsd_fetch_inferior_registers,
10774 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10775 * (amd64bsd_fetch_inferior_registers,
10776 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10777
10778 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10779
10780 * user-regs.c (user_reg::read): Rename to...
10781 (user_reg::xread): ...this.
10782 * (append_user_reg): Rename argument `read' to `xread'.
10783 * (user_reg_add_builtin): Likewise.
10784 * (user_reg_add): Likewise.
10785 * (value_of_user_reg): Likewise.
10786
10787 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10788
10789 * sparc-nat.c (gdb_ptrace): New.
10790 * sparc-nat.c (sparc_fetch_inferior_registers)
10791 (sparc_store_inferior_registers) Remove obsolete comment.
10792 * sparc-nat.c (sparc_fetch_inferior_registers)
10793 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10794 * sparc-nat.c (sparc_fetch_inferior_registers)
10795 (sparc_store_inferior_registers) Use gdb_ptrace.
10796
10797 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10798
10799 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10800 it to the ptrace call.
10801 * sh-nbsd-nat.c (store_registers): Likewise.
10802
10803 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10804
10805 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10806 nbsd_nat_target instead of inf_ptrace_target.
10807 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10808 nbsd_nat_target.
10809
10810 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10811
10812 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10813
10814 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10815
10816 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10817 <sys/sysctl.h>.
10818 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10819
10820 2020-03-17 Tom de Vries <tdevries@suse.de>
10821
10822 PR gdb/23710
10823 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10824 fields.
10825 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10826 fields.
10827 (process_imported_unit_die): Skip import of c++ CUs.
10828
10829 2020-03-16 Tom Tromey <tom@tromey.com>
10830
10831 * p-valprint.c (pascal_object_print_value): Initialize
10832 base_value.
10833
10834 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10835 Shahab Vahedi <shahab@synopsys.com>
10836
10837 * Makefile.in: Add arch/arc.o
10838 * configure.tgt: Likewise.
10839 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10840 (_initialize_arc_tdep): Don't initialize old target descriptions.
10841 (arc_read_description): New function to cache target descriptions.
10842 * arc-tdep.h (arc_read_description): Add proto type.
10843 * arch/arc.c: New file.
10844 * arch/arc.h: Likewise.
10845 * features/Makefile: Replace old target descriptions with new.
10846 * features/arc-arcompact.c: Remove.
10847 * features/arc-arcompact.xml: Likewise.
10848 * features/arc-v2.c: Likewise
10849 * features/arc-v2.xml: Likewise
10850 * features/arc/aux-arcompact.xml: New file.
10851 * features/arc/aux-v2.xml: Likewise.
10852 * features/arc/core-arcompact.xml: Likewise.
10853 * features/arc/core-v2.xml: Likewise.
10854 * features/arc/aux-arcompact.c: Generate.
10855 * features/arc/aux-v2.c: Likewise.
10856 * features/arc/core-arcompact.c: Likewise.
10857 * features/arc/core-v2.c: Likewise.
10858 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10859
10860 2020-03-16 Tom Tromey <tromey@adacore.com>
10861
10862 PR gdb/25663:
10863 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10864 putting value into bcache.
10865
10866 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10867
10868 PR gdb/21500
10869 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10870 to...
10871 (amd64_windows_init_abi_common): ... this. Don't set size of
10872 long type.
10873 (amd64_windows_init_abi): New function.
10874 (amd64_cygwin_init_abi): New function.
10875 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10876 the Cygwin OS ABI.
10877 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10878 comment.
10879
10880 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10883 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10884 (pe_import_directory_entry): New struct type.
10885 (is_linked_with_cygwin_dll): New function.
10886 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10887 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10888 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10889
10890 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10893 i386_cygwin_core_osabi_sniffer.
10894
10895 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10896
10897 * i386-cygwin-tdep.c: Rename to...
10898 * i386-windows-tdep.c: ... this.
10899 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10900 i386-windows-tdep.c.
10901 * configure.tgt: Likewise.
10902
10903 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10904
10905 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10906 * osabi.c (gdb_osabi_names): Add "Windows".
10907 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10908 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10909 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10910 i386_cygwin_osabi_sniffer.
10911 (_initialize_i386_cygwin_tdep): Register OS ABI
10912 GDB_OSABI_WINDOWS for i386.
10913 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10914 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10915 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10916 for x86-64.
10917 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10918 when the target matches '*-*-mingw*'.
10919
10920 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10921
10922 * defs.h (enum gdb_osabi): Move to...
10923 * osabi.h (enum gdb_osabi): ... here.
10924 * gdbarch.sh: Include osabi.h in gdbarch.h.
10925 * gdbarch.h: Re-generate.
10926
10927 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10928
10929 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10930 function.
10931 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10932
10933 2020-03-14 Tom Tromey <tom@tromey.com>
10934
10935 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10936 for C++.
10937 (c_type_print_modifier): Likewise. Add "language" parameter.
10938 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10939 (c_type_print_base_1): Update.
10940 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10941 constants.
10942 * type-stack.c (type_stack::insert): Handle tp_atomic and
10943 tp_restrict.
10944 (type_stack::follow_type_instance_flags): Likewise.
10945 (type_stack::follow_types): Likewise. Merge type-following code.
10946 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10947 (space_identifier, cv_with_space_id)
10948 (const_or_volatile_or_space_identifier_noopt)
10949 (const_or_volatile_or_space_identifier): Remove.
10950 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10951 rules.
10952 (ptr_operator, typebase): Update.
10953 (enum token_flag) <FLAG_C>: New constant.
10954 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10955 "_Atomic".
10956 (lex_one_token): Handle FLAG_C.
10957
10958 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10959
10960 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10961 it to the ptrace call.
10962 * m68k-bsd-nat.c (store_registers): Likewise.
10963
10964 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10965
10966 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10967 gdb_byte *.
10968 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10969 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10970 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10971
10972 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10973
10974 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10975 nbsd_nat_target instead of inf_ptrace_target.
10976 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10977 nbsd_nat_target.
10978
10979 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10980
10981 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10982 register_t.
10983
10984 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10985
10986 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10987 it to the ptrace call.
10988 * alpha-bsd-nat.c (store_registers): Likewise.
10989
10990 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10991
10992 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10993 includes.
10994 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10995 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10996 fill_fpregset): Likewise.
10997
10998 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10999
11000 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11001 nbsd_nat_target instead of inf_ptrace_target.
11002 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11003 nbsd_nat_target.
11004
11005 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11006
11007 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11008 register_t.
11009
11010 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11011
11012 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11013 it to the ptrace call.
11014 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11015 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11016 * arm-nbsd-nat.c (store_register): Likewise.
11017 * arm-nbsd-nat.c (store_regs): Likewise.
11018 * arm-nbsd-nat.c (store_fp_register): Likewise.
11019 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11020
11021 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11022
11023 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11024 nbsd_nat_target instead of inf_ptrace_target.
11025 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11026 nbsd_nat_target.
11027
11028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11029
11030 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11031 it to the ptrace call.
11032 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11033
11034 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11035
11036 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11037 it to the ptrace call.
11038 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11039
11040 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11041
11042 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11043 gdb_byte *.
11044 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11045
11046 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11047
11048 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11049 instead of inf_ptrace_target.
11050 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11051 nbsd_nat_target.
11052
11053 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11054
11055 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11056 register_t.
11057
11058 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11059
11060 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11061 register_t.
11062
11063 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11064
11065 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11066 register_t.
11067
11068 2020-03-13 Tom Tromey <tom@tromey.com>
11069
11070 * value.h (val_print): Don't declare.
11071 * valprint.h (val_print_array_elements)
11072 (val_print_scalar_formatted, generic_val_print): Don't declare.
11073 * valprint.c (generic_val_print_array): Take a struct value.
11074 (generic_val_print_ptr, generic_val_print_memberptr)
11075 (generic_val_print_bool, generic_val_print_int)
11076 (generic_val_print_char, generic_val_print_complex)
11077 (generic_val_print): Remove.
11078 (generic_value_print): Update.
11079 (do_val_print): Remove unused parameters. Don't call
11080 la_val_print.
11081 (val_print): Remove.
11082 (common_val_print): Update. Don't call value_check_printable.
11083 (val_print_scalar_formatted, val_print_array_elements): Remove.
11084 * rust-lang.c (rust_val_print): Remove.
11085 (rust_language_defn): Update.
11086 * p-valprint.c (pascal_val_print): Remove.
11087 (pascal_value_print_inner): Update.
11088 (pascal_object_print_val_fields, pascal_object_print_val):
11089 Remove.
11090 (pascal_object_print_static_field): Update.
11091 * p-lang.h (pascal_val_print): Don't declare.
11092 * p-lang.c (pascal_language_defn): Update.
11093 * opencl-lang.c (opencl_language_defn): Update.
11094 * objc-lang.c (objc_language_defn): Update.
11095 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11096 * m2-lang.h (m2_val_print): Don't declare.
11097 * m2-lang.c (m2_language_defn): Update.
11098 * language.h (struct language_defn) <la_val_print>: Remove.
11099 * language.c (unk_lang_value_print_inner): Rename. Change
11100 argument types.
11101 (unknown_language_defn, auto_language_defn): Update.
11102 * go-valprint.c (go_val_print): Remove.
11103 * go-lang.h (go_val_print): Don't declare.
11104 * go-lang.c (go_language_defn): Update.
11105 * f-valprint.c (f_val_print): Remove.
11106 * f-lang.h (f_value_print): Don't declare.
11107 * f-lang.c (f_language_defn): Update.
11108 * d-valprint.c (d_val_print): Remove.
11109 * d-lang.h (d_value_print): Don't declare.
11110 * d-lang.c (d_language_defn): Update.
11111 * cp-valprint.c (cp_print_value_fields)
11112 (cp_print_value_fields_rtti, cp_print_value): Remove.
11113 (cp_print_static_field): Update.
11114 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11115 (c_val_print_struct, c_val_print_union, c_val_print_int)
11116 (c_val_print_memberptr, c_val_print): Remove.
11117 * c-lang.h (c_val_print_array, cp_print_value_fields)
11118 (cp_print_value_fields_rtti): Don't declare.
11119 * c-lang.c (c_language_defn, cplus_language_defn)
11120 (asm_language_defn, minimal_language_defn): Update.
11121 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11122 (ada_val_print_enum): Take a struct value.
11123 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11124 (ada_val_print): Remove.
11125 (ada_value_print_1): Update.
11126 (printable_val_type): Remove.
11127 * ada-lang.h (ada_val_print): Don't declare.
11128 * ada-lang.c (ada_language_defn): Update.
11129
11130 2020-03-13 Tom Tromey <tom@tromey.com>
11131
11132 * valprint.c (do_val_print): Update.
11133 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11134 a struct value.
11135 (value_to_value_object_no_release): Declare.
11136 * python/py-value.c (value_to_value_object_no_release): New
11137 function.
11138 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11139 struct value.
11140 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11141 function.
11142 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11143 a struct value.
11144 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11145 Declare.
11146 (gdbscm_apply_val_pretty_printer): Take a struct value.
11147 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11148 value.
11149 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11150 value.
11151 * extension-priv.h (struct extension_language_ops)
11152 <apply_val_pretty_printer>: Take a struct value.
11153 * cp-valprint.c (cp_print_value): Create a struct value.
11154 (cp_print_value): Update.
11155
11156 2020-03-13 Tom Tromey <tom@tromey.com>
11157
11158 * ada-valprint.c (print_field_values): Call common_val_print.
11159
11160 2020-03-13 Tom Tromey <tom@tromey.com>
11161
11162 * ada-valprint.c (val_print_packed_array_elements): Remove
11163 bitoffset and val parameters. Call common_val_print.
11164 (ada_val_print_string): Remove offset, address, and original_value
11165 parameters.
11166 (ada_val_print_array): Update.
11167 (ada_value_print_array): New function.
11168 (ada_value_print_1): Call it.
11169
11170 2020-03-13 Tom Tromey <tom@tromey.com>
11171
11172 * ada-valprint.c (ada_value_print): Use common_val_print.
11173
11174 2020-03-13 Tom Tromey <tom@tromey.com>
11175
11176 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11177
11178 2020-03-13 Tom Tromey <tom@tromey.com>
11179
11180 * ada-valprint.c (ada_value_print_num): New function.
11181 (ada_value_print_1): Use it.
11182
11183 2020-03-13 Tom Tromey <tom@tromey.com>
11184
11185 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11186
11187 2020-03-13 Tom Tromey <tom@tromey.com>
11188
11189 * ada-valprint.c (ada_value_print_ptr): New function.
11190 (ada_value_print_1): Use it.
11191
11192 2020-03-13 Tom Tromey <tom@tromey.com>
11193
11194 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11195 call common_val_print.
11196 (ada_val_print_1): Update.
11197 (ada_value_print_1): New function.
11198 (ada_value_print_inner): Rewrite.
11199
11200 2020-03-13 Tom Tromey <tom@tromey.com>
11201
11202 * cp-valprint.c (cp_print_value_fields): Update.
11203 (cp_print_value): New function.
11204
11205 2020-03-13 Tom Tromey <tom@tromey.com>
11206
11207 * m2-valprint.c (m2_value_print_inner): Use
11208 cp_print_value_fields.
11209 * cp-valprint.c (cp_print_value_fields): New function.
11210 * c-valprint.c (c_value_print_struct): New function.
11211 (c_value_print_inner): Use c_value_print_struct.
11212 * c-lang.h (cp_print_value_fields): Declare.
11213
11214 2020-03-13 Tom Tromey <tom@tromey.com>
11215
11216 * c-valprint.c (c_value_print_array): New function.
11217 (c_value_print_inner): Use it.
11218
11219 2020-03-13 Tom Tromey <tom@tromey.com>
11220
11221 * c-valprint.c (c_value_print_memberptr): New function.
11222 (c_value_print_inner): Use it.
11223
11224 2020-03-13 Tom Tromey <tom@tromey.com>
11225
11226 * c-valprint.c (c_value_print_int): New function.
11227 (c_value_print_inner): Use it.
11228
11229 2020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * c-valprint.c (c_value_print_ptr): New function.
11232 (c_value_print_inner): Use it.
11233
11234 2020-03-13 Tom Tromey <tom@tromey.com>
11235
11236 * c-valprint.c (c_value_print_inner): Rewrite.
11237
11238 2020-03-13 Tom Tromey <tom@tromey.com>
11239
11240 * valprint.c (generic_value_print_complex): New function.
11241 (generic_value_print): Use it.
11242
11243 2020-03-13 Tom Tromey <tom@tromey.com>
11244
11245 * valprint.c (generic_val_print_float): Don't call
11246 val_print_scalar_formatted.
11247 (generic_val_print, generic_value_print): Update.
11248
11249 2020-03-13 Tom Tromey <tom@tromey.com>
11250
11251 * valprint.c (generic_value_print_char): New function
11252 (generic_value_print): Use it.
11253
11254 2020-03-13 Tom Tromey <tom@tromey.com>
11255
11256 * valprint.c (generic_value_print_int): New function.
11257 (generic_value_print): Use it.
11258
11259 2020-03-13 Tom Tromey <tom@tromey.com>
11260
11261 * valprint.c (generic_value_print_bool): New function.
11262 (generic_value_print): Use it.
11263
11264 2020-03-13 Tom Tromey <tom@tromey.com>
11265
11266 * valprint.c (generic_val_print_func): Simplify.
11267 (generic_val_print, generic_value_print): Update.
11268
11269 2020-03-13 Tom Tromey <tom@tromey.com>
11270
11271 * valprint.c (generic_val_print_flags): Remove.
11272 (generic_val_print, generic_value_print): Update.
11273 (val_print_type_code_flags): Add original_value parameter.
11274
11275 2020-03-13 Tom Tromey <tom@tromey.com>
11276
11277 * valprint.c (generic_val_print): Update.
11278 (generic_value_print): Update.
11279 * valprint.c (generic_val_print_enum): Don't call
11280 val_print_scalar_formatted.
11281
11282 2020-03-13 Tom Tromey <tom@tromey.com>
11283
11284 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11285 * valprint.c (generic_value_print_ptr): New function.
11286
11287 2020-03-13 Tom Tromey <tom@tromey.com>
11288
11289 * valprint.c (generic_value_print): Rewrite.
11290
11291 2020-03-13 Tom Tromey <tom@tromey.com>
11292
11293 * p-valprint.c (pascal_object_print_value_fields)
11294 (pascal_object_print_value): New functions.
11295
11296 2020-03-13 Tom Tromey <tom@tromey.com>
11297
11298 * p-valprint.c (pascal_value_print_inner): Rewrite.
11299
11300 2020-03-13 Tom Tromey <tom@tromey.com>
11301
11302 * f-valprint.c (f_value_print_innner): Rewrite.
11303
11304 2020-03-13 Tom Tromey <tom@tromey.com>
11305
11306 * m2-valprint.c (m2_print_unbounded_array): New overload.
11307 (m2_print_unbounded_array): Update.
11308 (m2_print_array_contents): Take a struct value.
11309 (m2_value_print_inner): Rewrite.
11310
11311 2020-03-13 Tom Tromey <tom@tromey.com>
11312
11313 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11314 (d_value_print_inner): New function.
11315 * d-lang.h (d_value_print_inner): Declare.
11316 * d-lang.c (d_language_defn): Use d_value_print_inner.
11317
11318 2020-03-13 Tom Tromey <tom@tromey.com>
11319
11320 * go-valprint.c (go_value_print_inner): New function.
11321 * go-lang.h (go_value_print_inner): Declare.
11322 * go-lang.c (go_language_defn): Use go_value_print_inner.
11323
11324 2020-03-13 Tom Tromey <tom@tromey.com>
11325
11326 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11327 API.
11328 (rust_val_print): Rewrite.
11329 (rust_value_print_inner): New function, from rust_val_print.
11330 (rust_language_defn): Use rust_value_print_inner.
11331
11332 2020-03-13 Tom Tromey <tom@tromey.com>
11333
11334 * ada-valprint.c (ada_value_print_inner): New function.
11335 * ada-lang.h (ada_value_print_inner): Declare.
11336 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11337
11338 2020-03-13 Tom Tromey <tom@tromey.com>
11339
11340 * f-valprint.c (f_value_print_innner): New function.
11341 * f-lang.h (f_value_print_innner): Declare.
11342 * f-lang.c (f_language_defn): Use f_value_print_innner.
11343
11344 2020-03-13 Tom Tromey <tom@tromey.com>
11345
11346 * p-valprint.c (pascal_value_print_inner): New function.
11347 * p-lang.h (pascal_value_print_inner): Declare.
11348 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11349
11350 2020-03-13 Tom Tromey <tom@tromey.com>
11351
11352 * m2-valprint.c (m2_value_print_inner): New function.
11353 * m2-lang.h (m2_value_print_inner): Declare.
11354 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11355
11356 2020-03-13 Tom Tromey <tom@tromey.com>
11357
11358 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11359 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11360 * c-valprint.c (c_value_print_inner): New function.
11361 * c-lang.h (c_value_print_inner): Declare.
11362 * c-lang.c (c_language_defn, cplus_language_defn)
11363 (asm_language_defn, minimal_language_defn): Use
11364 c_value_print_inner.
11365
11366 2020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * p-valprint.c (pascal_object_print_value_fields): Now static.
11369 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11370
11371 2020-03-13 Tom Tromey <tom@tromey.com>
11372
11373 * c-valprint.c (c_val_print_array): Simplify.
11374
11375 2020-03-13 Tom Tromey <tom@tromey.com>
11376
11377 * valprint.c (value_print_array_elements): New function.
11378 * valprint.h (value_print_array_elements): Declare.
11379
11380 2020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11383 * mips-tdep.c (mips_print_register): Use
11384 value_print_scalar_formatted.
11385
11386 2020-03-13 Tom Tromey <tom@tromey.com>
11387
11388 * valprint.h (value_print_scalar_formatted): Declare.
11389 * valprint.c (value_print_scalar_formatted): New function.
11390
11391 2020-03-13 Tom Tromey <tom@tromey.com>
11392
11393 * valprint.h (generic_value_print): Declare.
11394 * valprint.c (generic_value_print): New function.
11395
11396 2020-03-13 Tom Tromey <tom@tromey.com>
11397
11398 * valprint.c (do_val_print): Call la_value_print_inner, if
11399 available.
11400 * rust-lang.c (rust_language_defn): Update.
11401 * p-lang.c (pascal_language_defn): Update.
11402 * opencl-lang.c (opencl_language_defn): Update.
11403 * objc-lang.c (objc_language_defn): Update.
11404 * m2-lang.c (m2_language_defn): Update.
11405 * language.h (struct language_defn) <la_value_print_inner>: New
11406 member.
11407 * language.c (unknown_language_defn, auto_language_defn): Update.
11408 * go-lang.c (go_language_defn): Update.
11409 * f-lang.c (f_language_defn): Update.
11410 * d-lang.c (d_language_defn): Update.
11411 * c-lang.c (c_language_defn, cplus_language_defn)
11412 (asm_language_defn, minimal_language_defn): Update.
11413 * ada-lang.c (ada_language_defn): Update.
11414
11415 2020-03-13 Tom Tromey <tom@tromey.com>
11416
11417 * c-valprint.c (c_value_print): Use common_val_print.
11418
11419 2020-03-13 Tom Tromey <tom@tromey.com>
11420
11421 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11422
11423 2020-03-13 Tom Tromey <tom@tromey.com>
11424
11425 * f-valprint.c (f77_print_array_1, f_val_print): Use
11426 common_val_print.
11427
11428 2020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * riscv-tdep.c (riscv_print_one_register_info): Use
11431 common_val_print.
11432
11433 2020-03-13 Tom Tromey <tom@tromey.com>
11434
11435 * mi/mi-main.c (output_register): Use common_val_print.
11436
11437 2020-03-13 Tom Tromey <tom@tromey.com>
11438
11439 * infcmd.c (default_print_one_register_info): Use
11440 common_val_print.
11441
11442 2020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * valprint.h (common_val_print_checked): Declare.
11445 * valprint.c (common_val_print_checked): New function.
11446 * stack.c (print_frame_arg): Use common_val_print_checked.
11447
11448 2020-03-13 Tom Tromey <tom@tromey.com>
11449
11450 * valprint.c (do_val_print): New function, from val_print.
11451 (val_print): Use do_val_print.
11452 (common_val_print): Use do_val_print.
11453
11454 2020-03-13 Tom Tromey <tom@tromey.com>
11455
11456 * valprint.c (value_print): Use scoped_value_mark.
11457
11458 2020-03-13 Tom de Vries <tdevries@suse.de>
11459
11460 PR symtab/25646
11461 * psymtab.c (partial_symtab::partial_symtab): Don't set
11462 globals_offset and statics_offset. Push element onto
11463 current_global_psymbols and current_static_psymbols stacks.
11464 (concat): New function.
11465 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11466 element from current_global_psymbols and current_static_psymbols
11467 stacks. Concat popped elements to global_psymbols and
11468 static_symbols.
11469 (add_psymbol_to_list): Use current_global_psymbols and
11470 current_static_psymbols stacks.
11471 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11472 current_static_psymbols fields.
11473
11474 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11475
11476 * corelow.c (sniff_core_bfd): Remove.
11477 (class core_target) <m_core_vec>: Remove.
11478 (core_target::core_target): Update.
11479 (core_file_fns): Remove.
11480 (deprecated_add_core_fns): Remove.
11481 (default_core_sniffer): Remove.
11482 (sniff_core_bfd): Remove.
11483 (default_check_format): Remove.
11484 (gdb_check_format): Remove.
11485 (core_target_open): Update.
11486 (core_target::get_core_register_section): Update.
11487 (get_core_registers_cb): Update.
11488 (core_target::fetch_registers): Update.
11489 * gdbcore.h (struct core_fns): Remove.
11490 (deprecated_add_core_fns): Remove.
11491 (default_core_sniffer): Remove.
11492 (default_check_format): Remove.
11493
11494 2020-03-12 Tom Tromey <tom@tromey.com>
11495
11496 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11497 CORE_ADDR.
11498 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11499
11500 2020-03-12 Tom Tromey <tom@tromey.com>
11501
11502 * remote.c (remote_target::download_tracepoint)
11503 (remote_target::enable_tracepoint)
11504 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11505 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11506 sprintf_vma.
11507
11508 2020-03-12 Tom Tromey <tom@tromey.com>
11509
11510 * symfile-mem.c: Update CORE_ADDR size assert.
11511
11512 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11513
11514 * selftest.m4: Move to gdbsupport/.
11515 * acinclude.m4: Update path to selftest.m4.
11516
11517 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11520 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11521 gdbarch-selfselftests.c and selftest-arch.c.
11522 (SUBDIR_UNITTESTS_OBS): Rename to...
11523 (SELFTESTS_OBS): ... this.
11524 (COMMON_SFILES): Remove disasm-selftests.c and
11525 gdbarch-selftests.c.
11526 * configure.ac: Don't add selftest-arch.{c,o} to
11527 CONFIG_{SRCS,OBS}.
11528 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11529 preprocessor conditions.
11530
11531 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11532
11533 * configure.ac: Don't source bfd/development.sh.
11534 * selftest.m4: Modify comment.
11535 * configure: Re-generate.
11536
11537 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11538
11539 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11540 not "true" or "false".
11541 * configure: Re-generate.
11542
11543 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11544
11545 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11546 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11547 renamed to arm_nbsd_supply_gregset.
11548 (fetch_register): Update to call arm_nbsd_supply_gregset.
11549 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11550 (arm_netbsd_nat_target::fetch_registers): Update.
11551 (fetch_elfcore_registers): Removed.
11552 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11553 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11554 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11555 not require NetBSD system headers.
11556 (arm_nbsd_regset): New struct.
11557 (arm_nbsd_iterate_over_regset_sections): New function.
11558 (arm_netbsd_init_abi_common): Updated to call
11559 set_gdbarch_iterate_over_regset_sections.
11560 * arm-nbsd-tdep.h: New file.
11561
11562 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11563
11564 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11565 recursion.
11566
11567 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * configure: Re-generate.
11570
11571 2020-03-11 Tom Tromey <tromey@adacore.com>
11572
11573 * ada-typeprint.c (print_choices): Fix comment.
11574
11575 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11578 previous item in the list, when the list has no items.
11579
11580 2020-03-11 Tom de Vries <tdevries@suse.de>
11581
11582 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11583 PROP_LOCLIST handling code.
11584
11585 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11586
11587 * buildsym-legacy.c (record_line): Pass extra parameter to
11588 record_line.
11589 * buildsym.c (buildsym_compunit::record_line): Take an extra
11590 parameter, reduce duplication in the line table, and record the
11591 is_stmt flag in the line table.
11592 * buildsym.h (buildsym_compunit::record_line): Add extra
11593 parameter.
11594 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11595 non-statement lines.
11596 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11597 this to the symtab builder.
11598 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11599 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11600 through to dwarf_record_line_1.
11601 * infrun.c (process_event_stop_test): When stepping, don't stop at
11602 a non-statement instruction, and only refresh the step info when
11603 we land in the middle of a line's range. Also add an extra
11604 comment.
11605 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11606 field.
11607 * record-btrace.c (btrace_find_line_range): Only record lines
11608 marked as is-statement.
11609 * stack.c (frame_show_address): Show the frame address if we are
11610 in a non-statement sal.
11611 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11612 (maintenance_print_one_line_table): Print a header for the is_stmt
11613 column, and include is_stmt information in the output.
11614 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11615 preference to non-statements.
11616 (find_pcs_for_symtab_line): Prefer is-statement entries.
11617 (find_line_common): Likewise.
11618 * symtab.h (struct linetable_entry): Add is_stmt field.
11619 (struct symtab_and_line): Likewise.
11620 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11621 arranging the line table.
11622
11623 2020-03-07 Tom de Vries <tdevries@suse.de>
11624
11625 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11626 DIE.
11627
11628 2020-03-07 Tom Tromey <tom@tromey.com>
11629
11630 * valops.c (value_literal_complex): Remove obsolete comment.
11631 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11632 comment.
11633
11634 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11635
11636 * infrun.h: Forward-declare thread_info.
11637 (set_step_info): Add thread_info parameter, add doc.
11638 * infrun.c (set_step_info): Add thread_info parameter, move doc
11639 to header.
11640 * infrun.c (process_event_stop_test): Pass thread to
11641 set_step_info call.
11642 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11643 set_step_info.
11644 (prepare_one_step): Add thread_info parameter, pass it to
11645 set_step_frame and prepare_one_step (recursive) call.
11646 (step_1): Pass thread to prepare_one_step call.
11647 (step_command_fsm::should_stop): Pass thread to
11648 prepare_one_step.
11649 (until_next_fsm): Pass thread to set_step_frame call.
11650 (finish_command): Pass thread to set_step_info call.
11651
11652 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11653
11654 * windows-tdep.c (windows_solib_create_inferior_hook):
11655 Check if inferior is running.
11656
11657 2020-03-06 Tom de Vries <tdevries@suse.de>
11658
11659 * NEWS: Fix "the the".
11660 * ctfread.c: Same.
11661
11662 2020-03-06 Tom de Vries <tdevries@suse.de>
11663
11664 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11665
11666 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11667
11668 * .dir-locals.el: Add a comment referencing the other copies of
11669 this file.
11670
11671 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11672
11673 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11674 psargs.
11675
11676 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11677
11678 * .gitattributes: New file.
11679
11680 2020-03-04 Tom Tromey <tom@tromey.com>
11681
11682 * symmisc.c (print_symbol_bcache_statistics)
11683 (print_objfile_statistics): Update.
11684 * symfile.c (allocate_symtab): Use intern.
11685 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11686 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11687 macro_cache>: Remove.
11688 <string_cache>: New member.
11689 (struct objfile) <intern>: New methods.
11690 * elfread.c (elf_symtab_read): Use intern.
11691 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11692 (dwarf2_compute_name, dwarf2_physname)
11693 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11694 names.
11695 (guess_partial_die_structure_name): Update.
11696 (partial_die_info::fixup): Intern name.
11697 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11698 name.
11699 (dwarf2_name): Intern name. Update.
11700 * buildsym.c (buildsym_compunit::get_macro_table): Use
11701 string_cache.
11702
11703 2020-03-04 Tom Tromey <tom@tromey.com>
11704
11705 * jit.c (bfd_open_from_target_memory): Make "target" const.
11706 * corefile.c (gnutarget): Now const.
11707 * gdbcore.h (gnutarget): Now const.
11708
11709 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11710
11711 * NEWS: Mention support for WOW64 processes.
11712 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11713 (amd64_windows_segment_register_p): Remove static.
11714 (_initialize_amd64_windows_nat): Update.
11715 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11716 * i386-windows-nat.c (context_offset): Update.
11717 (i386_mappings): Rename and remove static.
11718 (i386_windows_segment_register_p): Remove static.
11719 (_initialize_i386_windows_nat): Update.
11720 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11721 (STATUS_WX86_SINGLE_STEP): New macro.
11722 (EnumProcessModulesEx): New macro.
11723 (Wow64SuspendThread): New macro.
11724 (Wow64GetThreadContext): New macro.
11725 (Wow64SetThreadContext): New macro.
11726 (Wow64GetThreadSelectorEntry): New macro.
11727 (windows_set_context_register_offsets): Add static.
11728 (windows_set_segment_register_p): Likewise.
11729 (windows_add_thread): Adapt for WOW64 processes.
11730 (windows_fetch_one_register): Likewise.
11731 (windows_nat_target::fetch_registers): Likewise.
11732 (windows_store_one_register): Likewise.
11733 (display_selector): Likewise.
11734 (display_selectors): Likewise.
11735 (handle_exception): Likewise.
11736 (windows_continue): Likewise.
11737 (windows_nat_target::resume): Likewise.
11738 (windows_add_all_dlls): Likewise.
11739 (do_initial_windows_stuff): Likewise.
11740 (windows_nat_target::attach): Likewise.
11741 (windows_get_exec_module_filename): Likewise.
11742 (windows_nat_target::create_inferior): Likewise.
11743 (windows_xfer_siginfo): Likewise.
11744 (_initialize_loadable): Initialize Wow64SuspendThread,
11745 Wow64GetThreadContext, Wow64SetThreadContext,
11746 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11747 * windows-nat.h (windows_set_context_register_offsets):
11748 Remove declaration.
11749 (windows_set_segment_register_p): Likewise.
11750 (i386_windows_segment_register_p): Add declaration.
11751 (amd64_windows_segment_register_p): Likewise.
11752
11753 2020-03-04 Luis Machado <luis.machado@linaro.org>
11754
11755 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11756 in "info registers" for AArch64/ARM.
11757
11758 The change caused "info registers" to not print GPR's.
11759
11760 gdb/ChangeLog:
11761
11762 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11763
11764 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11765 when reg->group is empty and reggroup is not.
11766
11767 2020-03-03 Tom Tromey <tromey@adacore.com>
11768
11769 * dwarf2/frame.c (struct dwarf2_frame_cache)
11770 <checked_tailcall_bottom, entry_cfa_sp_offset,
11771 entry_cfa_sp_offset_p>: Remove members.
11772 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11773 (dwarf2_frame_prev_register): Don't call
11774 dwarf2_tailcall_sniffer_first.
11775 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11776 * frame-unwind.c (add_unwinder): New fuction.
11777 (frame_unwind_init): Use it. Add tailcall unwinder.
11778
11779 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11780 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11781
11782 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11783 value should be printed as true.
11784
11785 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11786
11787 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11788 (windows_init_abi): Set and use windows_so_ops.
11789
11790 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11791
11792 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11793 when verifying if dealing with a convenience variable.
11794
11795 2020-03-03 Luis Machado <luis.machado@linaro.org>
11796
11797 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11798
11799 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11800
11801 * infrun.c (gdbarch_supports_displaced_stepping): New.
11802 (use_displaced_stepping): Break up conditions in smaller pieces.
11803 Use gdbarch_supports_displaced_stepping.
11804 (displaced_step_prepare_throw): Use
11805 gdbarch_supports_displaced_stepping.
11806
11807 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11808
11809 * NEWS: Mention new behaviour of the history filename.
11810 * top.c (write_history_p): Add comment.
11811 (show_write_history_p): Add header comment, give a different
11812 message when history writing is on, but the history filename is
11813 empty.
11814 (history_filename): Add comment.
11815 (history_filename_empty): New function.
11816 (show_history_filename): Add header comment, give a different
11817 message when the filename is empty.
11818 (init_history): Compare history_filename against nullptr, and only
11819 read history if the filename is not empty.
11820 (set_history_filename): Add header comment, and only make
11821 non-empty filenames absolute.
11822 (init_main): Make the filename argument to 'set history filename'
11823 optional.
11824
11825 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11826
11827 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11828 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11829 (fetch_fp_register): Update.
11830 (fetch_fp_regs): Update.
11831 (store_fp_register): Update.
11832 (store_fp_regs): Update.
11833 (arm_netbsd_nat_target::read_description): New function.
11834 (fetch_elfcore_registers): Update.
11835
11836 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11837
11838 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11839 general_thread if the stop reply is missing a thread-id.
11840 (remote_target::process_stop_reply): Use the first non-exited
11841 thread if the target didn't pass a thread-id.
11842 * infrun.c (do_target_wait): Move call to
11843 switch_to_inferior_no_thread to ....
11844 (do_target_wait_1): ... here.
11845
11846 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11847
11848 * debuginfod-support.c: Include defs.h first.
11849
11850 2020-02-28 Tom de Vries <tdevries@suse.de>
11851
11852 * symfile.c (set_initial_language): Use default language for lookup.
11853
11854 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11855
11856 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11857 reader variable, pass `this` to read_cutu_die_from_dwo.
11858
11859 2020-02-27 Aaron Merey <amerey@redhat.com>
11860
11861 * source.c (open_source_file): Check for nullptr when computing
11862 srcpath.
11863
11864 2020-02-27 Tom Tromey <tromey@adacore.com>
11865
11866 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11867 member.
11868 (dwarf2_add_field): Don't update nfields.
11869 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11870
11871 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11872
11873 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11874 abs.
11875
11876 2020-02-26 Tom Tromey <tom@tromey.com>
11877
11878 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11879 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11880 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11881 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11882 per_cu_data.
11883
11884 2020-02-26 Tom Tromey <tom@tromey.com>
11885
11886 * dwarf2/index-write.c (psym_index_map): Change type.
11887 (add_address_entry_worker, write_one_signatured_type)
11888 (recursively_count_psymbols, recursively_write_psymbols)
11889 (class debug_names, psyms_seen_size, write_gdbindex)
11890 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11891
11892 2020-02-26 Aaron Merey <amerey@redhat.com>
11893
11894 * Makefile.in: Handle optional debuginfod support.
11895 * NEWS: Update.
11896 * README: Add --with-debuginfod summary.
11897 * config.in: Regenerate.
11898 * configure: Regenerate.
11899 * configure.ac: Handle optional debuginfod support.
11900 * debuginfod-support.c: debuginfod helper functions.
11901 * debuginfod-support.h: Ditto.
11902 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11903 summary.
11904 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11905 when a dwz file cannot be found.
11906 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11907 debuginfo file cannot be found.
11908 * source.c (open_source_file): Query debuginfod servers when a
11909 source file cannot be found.
11910 * top.c (print_gdb_configuration): Include
11911 --{with,without}-debuginfod in the output.
11912
11913 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11914
11915 * thread.c (thr_try_catch_cmd): Print thread name.
11916
11917 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11918
11919 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11920 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11921 dwarf2_fetch_die_type_sect_off): Move to...
11922 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11923 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11924 dwarf2_fetch_die_type_sect_off): ... here.
11925 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11926 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11927 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11928
11929 2020-02-26 Tom de Vries <tdevries@suse.de>
11930
11931 PR gdb/25603
11932 * symfile.c (set_initial_language): Exit-early if
11933 language_mode == language_mode_manual.
11934
11935 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11936
11937 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11938 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11939 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11940
11941 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11942
11943 * gdbtypes.c (create_array_type_with_stride): Handle negative
11944 array strides.
11945 * valarith.c (value_subscripted_rvalue): Likewise.
11946
11947 2020-02-25 Luis Machado <luis.machado@linaro.org>
11948
11949 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11950
11951 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11952
11953 * loc.h (dwarf2_get_die_type): Move to...
11954 * read.h (dwarf2_get_die_type): ... here.
11955 * read.c (dwarf2_get_die_type): Move doc to header.
11956
11957 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11958
11959 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11960 'gnulib/Makefile.in' to the list.
11961
11962 2020-02-24 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11965 Remove.
11966 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11967 XOBNEWVEC.
11968
11969 2020-02-24 Tom Tromey <tom@tromey.com>
11970
11971 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11972 New method.
11973 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11974 (dw2_do_instantiate_symtab, dw2_get_file_names)
11975 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11976
11977 2020-02-24 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11980 make_scoped_restore.
11981 (dwarf2_psymtab::read_symtab): Don't clear
11982 reading_partial_symbols.
11983
11984 2020-02-24 Tom de Vries <tdevries@suse.de>
11985
11986 PR gdb/25592
11987 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11988
11989 2020-02-24 Tom de Vries <tdevries@suse.de>
11990
11991 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11992 commands layout next/prev/regs.
11993
11994 2020-02-22 Tom Tromey <tom@tromey.com>
11995
11996 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11997 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11998
11999 2020-02-22 Tom Tromey <tom@tromey.com>
12000
12001 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12002
12003 2020-02-22 Tom Tromey <tom@tromey.com>
12004
12005 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12006 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12007 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12008 * tui/tui.c (_initialize_tui): Add usage text.
12009
12010 2020-02-22 Tom Tromey <tom@tromey.com>
12011
12012 * tui/tui-win.c (tui_set_focus_command)
12013 (tui_set_win_height_command): Use error_no_arg.
12014 (_initialize_tui_win): Update help text.
12015 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12016
12017 2020-02-22 Tom Tromey <tom@tromey.com>
12018
12019 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12020 * tui/tui-disasm.h (struct tui_disasm_window)
12021 <display_start_addr>: Declare.
12022 * tui/tui-source.h (struct tui_source_window)
12023 <display_start_addr>: Declare.
12024 * tui/tui-winsource.h (struct tui_source_window_base)
12025 <show_source_line, display_start_addr>: New methods.
12026 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12027 Rename and move to protected section.
12028 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12029 (tui_source_window_base::do_erase_source_content): Update.
12030 (tui_source_window_base::show_source_line): Now a method.
12031 (tui_source_window_base::show_source_content)
12032 (tui_source_window_base::tui_source_window_base)
12033 (tui_source_window_base::rerender)
12034 (tui_source_window_base::refill)
12035 (tui_source_window_base::do_scroll_horizontal)
12036 (tui_source_window_base::set_is_exec_point_at)
12037 (tui_source_window_base::update_breakpoint_info)
12038 (tui_source_window_base::update_exec_info): Update.
12039 * tui/tui-source.c (tui_source_window::set_contents)
12040 (tui_source_window::showing_source_p)
12041 (tui_source_window::do_scroll_vertical)
12042 (tui_source_window::location_matches_p)
12043 (tui_source_window::line_is_displayed): Update.
12044 (tui_source_window::display_start_addr): New method.
12045 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12046 (tui_disasm_window::do_scroll_vertical)
12047 (tui_disasm_window::location_matches_p): Update.
12048 (tui_disasm_window::display_start_addr): New method.
12049
12050 2020-02-22 Tom Tromey <tom@tromey.com>
12051
12052 * NEWS: Add entry for gdb.register_window_type.
12053 * tui/tui-layout.h (window_factory): New typedef.
12054 (tui_register_window): Declare.
12055 * tui/tui-layout.c (saved_tui_windows): New global.
12056 (tui_apply_current_layout): Use it.
12057 (tui_register_window): New function.
12058 * python/python.c (do_start_initialization): Call
12059 gdbpy_initialize_tui.
12060 (python_GdbMethods): Add "register_window_type" function.
12061 * python/python-internal.h (gdbpy_register_tui_window)
12062 (gdbpy_initialize_tui): Declare.
12063 * python/py-tui.c: New file.
12064 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12065
12066 2020-02-22 Tom Tromey <tom@tromey.com>
12067
12068 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12069
12070 2020-02-22 Tom Tromey <tom@tromey.com>
12071
12072 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12073 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12074 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12075 (tui_set_win_focus_to): Move from tui-win.c.
12076
12077 2020-02-22 Tom Tromey <tom@tromey.com>
12078
12079 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12080 functions.
12081 (known_window_types): New global.
12082 (tui_get_window_by_name): Reimplement.
12083 (initialize_known_windows): New function.
12084 (validate_window_name): Rewrite.
12085 (_initialize_tui_layout): Call initialize_known_windows.
12086
12087 2020-02-22 Tom Tromey <tom@tromey.com>
12088
12089 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12090 Remove constants.
12091 * tui/tui-winsource.h (struct tui_source_window_base)
12092 <tui_source_window_base>: Remove parameter.
12093 * tui/tui-winsource.c
12094 (tui_source_window_base::tui_source_window_base): Remove
12095 parameter.
12096 (tui_source_window_base::refill): Update.
12097 * tui/tui-stack.h (struct tui_locator_window)
12098 <tui_locator_window>: Update.
12099 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12100 Default the constructor.
12101 * tui/tui-regs.h (struct tui_data_item_window)
12102 <tui_data_item_window>: Default the constructor.
12103 (struct tui_data_window) <tui_data_window>: Likewise.
12104 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12105 Default the constructor.
12106 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12107 Default the constructor.
12108 <type>: Remove.
12109 (struct tui_win_info) <tui_win_info>: Default the constructor.
12110 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12111 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12112 Default the constructor.
12113
12114 2020-02-22 Tom Tromey <tom@tromey.com>
12115
12116 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12117 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12118 * tui/tui-win.c (tui_resize_all): Don't call
12119 tui_delete_invisible_windows.
12120 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12121 done.
12122 (tui_set_layout): Update.
12123 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12124 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12125 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12126
12127 2020-02-22 Tom Tromey <tom@tromey.com>
12128
12129 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12130 correctly.
12131
12132 2020-02-22 Tom Tromey <tom@tromey.com>
12133
12134 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12135
12136 2020-02-22 Tom Tromey <tom@tromey.com>
12137
12138 * tui/tui-winsource.h (struct tui_source_window_iterator)
12139 <inner_iterator>: New etytypedef.
12140 <tui_source_window_iterator>: Take "end" parameter.
12141 <tui_source_window_iterator>: Take iterator.
12142 <operator*, advance>: Update.
12143 <m_iter>: Change type.
12144 <m_end>: New field.
12145 (struct tui_source_windows) <begin, end>: Update.
12146 * tui/tui-layout.c (tui_windows): New global.
12147 (tui_apply_current_layout): Clear tui_windows.
12148 (tui_layout_window::apply): Update tui_windows.
12149 * tui/tui-data.h (tui_windows): Declare.
12150 (all_tui_windows): Now inline function.
12151 (class tui_window_iterator, struct all_tui_windows): Remove.
12152
12153 2020-02-22 Tom Tromey <tom@tromey.com>
12154
12155 PR tui/17850:
12156 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12157 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12158 "height" argument.
12159 (class tui_layout_window) <get_sizes>: Likewise.
12160 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12161 argument.
12162 <get_sizes>: Add "height" argument.
12163 <m_vertical>: New field.
12164 * tui/tui-layout.c (tui_layout_split::clone): Update.
12165 (tui_layout_split::get_sizes): Add "height" argument.
12166 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12167 (tui_new_layout_command): Parse "-horizontal".
12168 (_initialize_tui_layout): Update help string.
12169 (tui_layout_split::specification): Add "-horizontal" when needed.
12170 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12171 argument.
12172 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12173 New methods.
12174
12175 2020-02-22 Tom Tromey <tom@tromey.com>
12176
12177 * tui/tui-layout.h (enum tui_adjust_result): New.
12178 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12179 (class tui_layout_window) <adjust_size>: Return
12180 tui_adjust_result. Rewrite.
12181 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12182 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12183
12184 2020-02-22 Tom Tromey <tom@tromey.com>
12185
12186 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12187 parameter and return types.
12188 (class tui_layout_base) <specification>: Add "depth".
12189 (class tui_layout_window) <specification>: Add "depth".
12190 (class tui_layout_split) <specification>: Add "depth".
12191 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12192 and return types.
12193 (tui_new_layout_command): Parse sub-layouts.
12194 (_initialize_tui_layout): Update help string.
12195 (tui_layout_window::specification): Add "depth".
12196 (add_layout_command): Update.
12197
12198 2020-02-22 Tom Tromey <tom@tromey.com>
12199
12200 * NEWS: Add "tui new-layout" item.
12201 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12202 Add new-layout command to help text.
12203 (validate_window_name): New function.
12204 (tui_new_layout_command): New function.
12205 (_initialize_tui_layout): Register "new-layout".
12206 (tui_layout_window::specification): New method.
12207 (tui_layout_window::specification): New method.
12208 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12209 method.
12210 (class tui_layout_window) <specification>: New method.
12211 (class tui_layout_split) <specification>: New method.
12212
12213 2020-02-22 Tom Tromey <tom@tromey.com>
12214
12215 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12216 * tui/tui-win.c (window_name_completer): Update comment.
12217 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12218 Declare method.
12219 (class tui_layout_window) <replace_window>: Likewise.
12220 (class tui_layout_split) <replace_window>: Likewise.
12221 (tui_set_layout): Don't declare.
12222 (tui_set_initial_layout): Declare function.
12223 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12224 (asm_regs_layout): New globals.
12225 (tui_current_layout, show_layout): Remove.
12226 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12227 (find_layout, tui_apply_layout): New function.
12228 (layout_completer): Remove.
12229 (tui_next_layout): Reimplement.
12230 (tui_next_layout_command): New function.
12231 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12232 (tui_regs_layout): Reimplement.
12233 (tui_regs_layout_command): New function.
12234 (extract_display_start_addr): Rewrite.
12235 (next_layout, prev_layout): Remove.
12236 (tui_layout_window::replace_window): New method.
12237 (tui_layout_split::replace_window): New method.
12238 (destroy_layout): New function.
12239 (layout_list): New global.
12240 (add_layout_command): New function.
12241 (initialize_layouts): Update.
12242 (tui_layout_command): New function.
12243 (_initialize_tui_layout): Install "layout" commands.
12244 * tui/tui-data.h (enum tui_layout_type): Remove.
12245 (tui_current_layout): Don't declare.
12246
12247 2020-02-22 Tom Tromey <tom@tromey.com>
12248
12249 * tui/tui-regs.c (tui_reg_layout): Remove.
12250 (tui_reg_command): Use tui_regs_layout.
12251 * tui/tui-layout.h (tui_reg_command): Declare.
12252 * tui/tui-layout.c (tui_reg_command): New function.
12253
12254 2020-02-22 Tom Tromey <tom@tromey.com>
12255
12256 * tui/tui.c (tui_rl_delete_other_windows): Call
12257 tui_remove_some_windows.
12258 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12259 Declare method.
12260 (class tui_layout_window) <remove_windows>: New method.
12261 (class tui_layout_split) <remove_windows>: Declare.
12262 (tui_remove_some_windows): Declare.
12263 * tui/tui-layout.c (tui_remove_some_windows): New function.
12264 (tui_layout_split::remove_windows): New method.
12265
12266 2020-02-22 Tom Tromey <tom@tromey.com>
12267
12268 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12269 * tui/tui-layout.h (tui_next_layout): Declare.
12270 * tui/tui-layout.c (tui_next_layout): New function.
12271
12272 2020-02-22 Tom Tromey <tom@tromey.com>
12273
12274 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12275 correct coordinates.
12276
12277 2020-02-22 Tom Tromey <tom@tromey.com>
12278
12279 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12280 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12281 DATA_WIN case.
12282
12283 2020-02-22 Tom Tromey <tom@tromey.com>
12284
12285 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12286 TUI_DISASM_WIN, not tui_win_list.
12287
12288 2020-02-22 Tom Tromey <tom@tromey.com>
12289
12290 * valprint.c (generic_val_print_enum_1)
12291 (val_print_type_code_flags): Style member names.
12292 * rust-lang.c (val_print_struct, rust_print_enum)
12293 (rust_print_struct_def, rust_internal_print_type): Style member
12294 names.
12295 * p-valprint.c (pascal_object_print_value_fields): Style member
12296 names. Only call fprintf_symbol_filtered for static members.
12297 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12298 * f-valprint.c (f_val_print): Style member names.
12299 * f-typeprint.c (f_type_print_base): Style member names.
12300 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12301 call fprintf_symbol_filtered for static members.
12302 (cp_print_class_member): Style member names.
12303 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12304 member names.
12305 * ada-valprint.c (ada_print_scalar): Style enum names.
12306 (ada_val_print_enum): Likewise.
12307 * ada-typeprint.c (print_enum_type): Style enum names.
12308
12309 2020-02-21 Tom Tromey <tom@tromey.com>
12310
12311 * psympriv.h (struct partial_symtab): Update comment.
12312
12313 2020-02-21 Tom Tromey <tromey@adacore.com>
12314
12315 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12316 type is CORE_ADDR.
12317
12318 2020-02-21 Tom de Vries <tdevries@suse.de>
12319
12320 PR gdb/25534
12321 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12322 if dependencies[i]->user != NULL.
12323
12324 2020-02-21 Ali Tamur <tamur@google.com>
12325
12326 * dwarf2/read.c (dwarf2_name): Add null check.
12327
12328 2020-02-20 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12331 ">=", in binary search.
12332 (dwarf2_find_containing_comp_unit): New overload.
12333 (run_test): New self-test.
12334 (_initialize_dwarf2_read): Register new test.
12335
12336 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12337
12338 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12339 * riscv-tdep.h: Likewise.
12340 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12341 rv32-only CSR.
12342 * features/riscv/64bit-csr.xml: Regenerated.
12343
12344 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12345 Tom Tromey <tom@tromey.com>
12346
12347 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12348 of 'fputc_unfiltered'.
12349 (putchar_unfiltered): Call 'fputc_unfiltered'.
12350 (fputc_unfiltered): Call 'fputs_unfiltered'.
12351
12352 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12353
12354 * config.in: Regenerate.
12355 * configure: Regenerate.
12356 * configure.ac: Add --with-python-libdir option.
12357 * main.c: Use WITH_PYTHON_LIBDIR.
12358
12359 2020-02-19 Tom Tromey <tom@tromey.com>
12360
12361 * symtab.c (general_symbol_info::compute_and_set_names): Use
12362 obstack_strndup. Simplify call to symbol_set_demangled_name.
12363
12364 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12365
12366 * dwarf2/read.c (allocate_signatured_type_table,
12367 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12368 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12369 Remove objfile parameter, update all callers.
12370
12371 2020-02-19 Doug Evans <dje@google.com>
12372
12373 PR rust/25535
12374 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12375 rust_enum_variant calculation.
12376
12377 2020-02-19 Tom Tromey <tromey@adacore.com>
12378
12379 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12380
12381 2020-02-19 Tom Tromey <tromey@adacore.com>
12382
12383 * ada-lang.c (cache_symbol): Use obstack_strdup.
12384
12385 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12386
12387 * configure: Regenerate.
12388
12389 2020-02-19 Tom Tromey <tromey@adacore.com>
12390
12391 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12392 NULL check.
12393
12394 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12395
12396 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12397
12398 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12399
12400 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12401 if GDBSERVER is not defined.
12402 (riscv_tdesc_cache): Likewise, also store const target_desc.
12403 (STATIC_IN_GDB): Define.
12404 (riscv_create_target_description): Update declaration with
12405 STATIC_IN_GDB.
12406 (riscv_lookup_target_description): New function, only define if
12407 GDBSERVER is not defined.
12408 * arch/riscv.h (riscv_create_target_description): Declare only
12409 when GDBSERVER is defined.
12410 (riscv_lookup_target_description): New declaration when GDBSERVER
12411 is not defined.
12412 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12413 (riscv_linux_read_features): ...this, and return
12414 riscv_gdbarch_features instead of target_desc.
12415 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12416 (riscv_linux_read_description): Rename to...
12417 (riscv_linux_read_features): ...this.
12418 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12419 Update to use riscv_gdbarch_features and
12420 riscv_lookup_target_description.
12421 * riscv-tdep.c (riscv_find_default_target_description): Use
12422 riscv_lookup_target_description instead of
12423 riscv_create_target_description.
12424
12425 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12426
12427 * valprint.c (generic_val_print_enum_1): When printing a flag
12428 enum with value 0 and there is no enumerator with value 0, print
12429 just "0" instead of "(unknown: 0x0)".
12430
12431 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12432
12433 * valprint.c (generic_val_print_enum_1): Print unknown part of
12434 flag enum in hex.
12435
12436 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12437
12438 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12439 flag enums to contain duplicate enumerators.
12440 * valprint.c (generic_val_print_enum_1): Update comment.
12441
12442 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12443
12444 * dwarf2/read.c: Include "count-one-bits.h".
12445 (update_enumeration_type_from_children): If an enumerator has
12446 multiple bits set, don't treat the enumeration as a "flag enum".
12447 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12448 of flag enums have 0 or 1 bit set.
12449
12450 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12451
12452 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12453 conversion.
12454 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12455 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12456 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12457 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12458 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12459
12460 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12463
12464 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12465
12466 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12467 displaced_step_closure_up.
12468 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12469 (struct displaced_step_closure_up):
12470 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12471 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12472 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12473 Likewise.
12474 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12475 * gdbarch.c, gdbarch.h: Re-generate.
12476 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12477 displaced_step_closure_up.
12478 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12479 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12480 * infrun.h (displaced_step_closure_up): New type alias.
12481 (struct displaced_step_inferior_state) <step_closure>: Change
12482 type to displaced_step_closure_up.
12483 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12484 displaced_step_closure_up.
12485 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12486
12487 2020-02-14 Tom Tromey <tom@tromey.com>
12488
12489 * minidebug.c (gnu_debug_key): New global.
12490 (find_separate_debug_file_in_section): Use it.
12491
12492 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12493
12494 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12495 std::unique_ptr.
12496 * gdbarch.c: Re-generate.
12497 * gdbarch.h: Re-generate.
12498 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12499 change.
12500 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12501 type to std::unique_ptr.
12502 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12503 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12504 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12505 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12506 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12507 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12508 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12509 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12510 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12511
12512 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12513
12514 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12515 std::unique_ptr.
12516 (displaced_step_clear): Rename to...
12517 (displaced_step_reset): ... this. Just call displaced->reset ().
12518 (displaced_step_clear_cleanup): Rename to...
12519 (displaced_step_reset_cleanup): ... this.
12520 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12521 (displaced_step_fixup): Likewise.
12522 (resume_1): Likewise.
12523 (handle_inferior_event): Restore child's memory before calling
12524 displaced_step_fixup on the parent.
12525 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12526 to std::unique_ptr.
12527 <step_closure>: Change type to std::unique_ptr.
12528
12529 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12530
12531 * arm-tdep.c: Include count-one-bits.h.
12532 (cleanup_block_store_pc): Use count_one_bits.
12533 (cleanup_block_load_pc): Use count_one_bits.
12534 (arm_copy_block_xfer): Use count_one_bits.
12535 (thumb2_copy_block_xfer): Use count_one_bits.
12536 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12537 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12538 (thumb_get_next_pcs_raw): Use count_one_bits.
12539 (arm_get_next_pcs_raw): Use count_one_bits_l.
12540 * arch/arm.c (bitcount): Remove.
12541 * arch/arm.h (bitcount): Remove.
12542
12543 2020-02-14 Tom Tromey <tromey@adacore.com>
12544
12545 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12546 Update.
12547 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12548 * dwarf2/loc.c (call_site_find_chain_1): Return
12549 unique_xmalloc_ptr.
12550 (call_site_find_chain): Likewise.
12551
12552 2020-02-14 Richard Biener <rguenther@suse.de>
12553
12554 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12555 on expression with division operators.
12556
12557 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12558
12559 * MAINTAINERS (Write After Approval): Adding myself.
12560
12561 2020-02-12 Tom Tromey <tom@tromey.com>
12562
12563 * event-loop.c (event_data, gdb_event, event_handler_func):
12564 Remove.
12565
12566 2020-02-12 Tom Tromey <tom@tromey.com>
12567
12568 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12569 (dwarf2_frame_objfile_data): Add comment.
12570 (find_comp_unit, set_comp_unit): New functions.
12571 (dwarf2_frame_find_fde): Use find_comp_unit.
12572 (dwarf2_build_frame_info): Use set_comp_unit.
12573
12574 2020-02-12 Tom Tromey <tom@tromey.com>
12575
12576 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12577 (comp_unit): Don't initialize objfile.
12578 (execute_cfa_program): Add text_offset parameter.
12579 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12580 (dwarf2_frame_cache): Update.
12581 (dwarf2_build_frame_info): Don't set "objfile" member.
12582
12583 2020-02-12 Tom Tromey <tom@tromey.com>
12584
12585 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12586 (decode_frame_entry): Likewise.
12587 (dwarf2_build_frame_info): Update.
12588
12589 2020-02-12 Tom Tromey <tom@tromey.com>
12590
12591 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12592 (decode_frame_entry_1): Use the comp_unit obstack.
12593
12594 2020-02-12 Tom Tromey <tom@tromey.com>
12595
12596 * dwarf2/frame.c (struct comp_unit): Add initializers and
12597 constructor.
12598 (dwarf2_frame_objfile_data): Store a comp_unit.
12599 (dwarf2_frame_find_fde): Update.
12600 (dwarf2_build_frame_info): Use "new".
12601
12602 2020-02-12 Tom Tromey <tom@tromey.com>
12603
12604 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12605 (dwarf2_fde_table): Typedef for std::vector.
12606 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12607 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12608 (decode_frame_entry): Update.
12609 (dwarf2_build_frame_info): Use "new".
12610
12611 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12612
12613 * arm-tdep.c (arm_gdbarch_init): Update.
12614 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12615 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12616 have_neon, is_m>: Change to bool.
12617
12618 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12619
12620 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12621
12622 2020-02-12 Tom Tromey <tom@tromey.com>
12623
12624 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12625
12626 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12627
12628 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12629 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12630
12631 2020-02-11 Tom Tromey <tom@tromey.com>
12632
12633 * psymtab.h: Update comment.
12634
12635 2020-02-11 Tom Tromey <tom@tromey.com>
12636
12637 * gdb_obstack.h (struct auto_obstack): Use
12638 DISABLE_COPY_AND_ASSIGN.
12639
12640 2020-02-11 Tom Tromey <tom@tromey.com>
12641
12642 * dwarf2/frame.h (struct objfile): Don't forward declare.
12643
12644 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12645
12646 * cris-tdep.c (cris_supply_gregset): Change signature to match
12647 what struct regset expects.
12648 (cris_regset): New struct.
12649 (fetch_core_registers): Remove.
12650 (cris_iterate_over_regset_sections): New function.
12651 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12652 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12653
12654 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12655
12656 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12657 registers.
12658
12659 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12660
12661 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12662
12663 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12664
12665 * configure: Re-generate.
12666
12667 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12668
12669 * configure: Re-generate.
12670
12671 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12672
12673 * acinclude: Update warning.m4 path.
12674 * warning.m4: Move to gdbsupport.
12675
12676 2020-02-11 Tom Tromey <tromey@adacore.com>
12677
12678 * remote.c (remote_console_output): Update.
12679 * printcmd.c (printf_command): Update.
12680 * event-loop.c (gdb_wait_for_event): Update.
12681 * linux-nat.c (sigchld_handler): Update.
12682 * remote-sim.c (gdb_os_write_stdout): Update.
12683 (gdb_os_flush_stdout): Update.
12684 (gdb_os_flush_stderr): Update.
12685 (gdb_os_write_stderr): Update.
12686 * exceptions.c (print_exception): Update.
12687 * remote-fileio.c (remote_fileio_func_read): Update.
12688 (remote_fileio_func_write): Update.
12689 * tui/tui.c (tui_enable): Update.
12690 * tui/tui-interp.c (tui_interp::init): Update.
12691 * utils.c (init_page_info): Update.
12692 (putchar_unfiltered, fputc_unfiltered): Update.
12693 (gdb_flush): Update.
12694 (emit_style_escape): Update.
12695 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12696 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12697 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12698 (stderr_file::write): Update.
12699 (stderr_file::puts): Update.
12700 * ui-file.h (ui_file_isatty, ui_file_write)
12701 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12702 (ui_file_puts): Don't declare.
12703
12704 2020-02-10 Tom de Vries <tdevries@suse.de>
12705
12706 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12707 sentinel to char *.
12708
12709 2020-02-09 Tom de Vries <tdevries@suse.de>
12710
12711 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12712 filename if it matches "<artificial>".
12713
12714 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12715
12716 * windows-tdep.c (struct enum_value_name): New struct.
12717 (create_enum): New function.
12718 (windows_get_siginfo_type): Create and use enum types.
12719
12720 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12721
12722 * NEWS: Mention $_siginfo support for Windows.
12723 * windows-nat.c (handle_exception): Set siginfo_er.
12724 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12725 (windows_xfer_siginfo): New function.
12726 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12727 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12728 (init_windows_gdbarch_data): New function.
12729 (get_windows_gdbarch_data): New function.
12730 (windows_get_siginfo_type): New function.
12731 (windows_init_abi): Register windows_get_siginfo_type.
12732 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12733
12734 2020-02-08 Tom Tromey <tom@tromey.com>
12735
12736 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12737 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12738 <keep>: Declare method.
12739 <m_keep>: Remove member.
12740 <~cutu_reader>: Remove.
12741 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12742 (cutu_reader::cutu_reader): Update.
12743 (cutu_reader::keep): Rename from ~cutu_reader.
12744 (process_psymtab_comp_unit, build_type_psymtabs_1)
12745 (process_skeletonless_type_unit, load_partial_comp_unit)
12746 (load_full_comp_unit, dwarf2_read_addr_index)
12747 (read_signatured_type): Update.
12748
12749 2020-02-08 Tom Tromey <tom@tromey.com>
12750
12751 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12752 "want_partial_unit" parameter.
12753 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12754 Inline check for DW_TAG_partial_unit.
12755 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12756
12757 2020-02-08 Tom Tromey <tom@tromey.com>
12758
12759 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12760 read.c.
12761 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12762 read.c.
12763
12764 2020-02-08 Tom Tromey <tom@tromey.com>
12765
12766 * dwarf2/read.c (read_address): Move to comp-unit.c.
12767 (dwarf2_rnglists_process, dwarf2_ranges_process)
12768 (read_attribute_value, dwarf_decode_lines_1)
12769 (var_decode_location, decode_locdesc): Update.
12770 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12771 read.c. Remove "cu" parameter.
12772 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12773 method.
12774
12775 2020-02-08 Tom Tromey <tom@tromey.com>
12776
12777 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12778 (read_indirect_line_string): Update.
12779 * dwarf2/comp-unit.c (read_offset): Remove.
12780 (read_comp_unit_head): Update.
12781 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12782 method.
12783 (read_offset): Don't declare.
12784
12785 2020-02-08 Tom Tromey <tom@tromey.com>
12786
12787 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12788 * dwarf2/read.c (struct comp_unit_head): Move to
12789 dwarf2/comp-unit.h.
12790 (enum class rcuh_kind): Move to comp-unit.h.
12791 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12792 (read_comp_unit_head, error_check_comp_unit_head)
12793 (read_and_check_comp_unit_head): Move to comp-unit.c.
12794 (read_offset, dwarf_unit_type_name): Likewise.
12795 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12796 (cutu_reader::cutu_reader, read_call_site_scope)
12797 (find_partial_die, follow_die_offset): Update.
12798 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12799
12800 2020-02-08 Tom Tromey <tom@tromey.com>
12801
12802 * dwarf2/read.c (read_offset_1): Move to leb.c.
12803 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12804 (dwarf_decode_macro_bytes): Update.
12805 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12806 * dwarf2/leb.h (read_offset): Declare.
12807
12808 2020-02-08 Tom Tromey <tom@tromey.com>
12809
12810 * dwarf2/read.c (dwarf2_section_size): Remove.
12811 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12812 Update.
12813 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12814
12815 2020-02-08 Tom Tromey <tom@tromey.com>
12816
12817 * dwarf2/read.c (read_initial_length): Move to leb.c.
12818 * dwarf2/leb.h (read_initial_length): Declare.
12819 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12820 handle_nonstd parameter.
12821 * dwarf2/frame.c (read_initial_length): Remove.
12822 (decode_frame_entry_1): Update.
12823
12824 2020-02-08 Tom Tromey <tom@tromey.com>
12825
12826 * dwarf2/loc.c (dwarf2_find_location_expression)
12827 (dwarf_evaluate_loc_desc::get_tls_address)
12828 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12829 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12830 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12831 (dwarf2_compile_property_to_c)
12832 (dwarf2_loc_desc_get_symbol_read_needs)
12833 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12834 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12835 (loclist_describe_location, loclist_tracepoint_var_ref)
12836 (loclist_generate_c_location): Update.
12837 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12838 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12839 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12840 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12841 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12842 (dwarf2_per_cu_data::addr_size)
12843 (dwarf2_per_cu_data::ref_addr_size)
12844 (dwarf2_per_cu_data::text_offset)
12845 (dwarf2_per_cu_data::addr_type): Now methods.
12846 (per_cu_header_read_in): Make per_cu "const".
12847 (dwarf2_version): Remove.
12848 (dwarf2_per_cu_data::int_type): Now a method.
12849 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12850 (set_die_type, read_array_type, read_subrange_index_type)
12851 (read_tag_string_type, read_subrange_type): Update.
12852 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12853 offset_size, ref_addr_size, text_offset, addr_type, version,
12854 objfile, int_type, addr_sized_int_type>: Declare methods.
12855
12856 2020-02-08 Tom Tromey <tom@tromey.com>
12857
12858 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12859 Move earlier.
12860
12861 2020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.h (dwarf_line_debug): Declare.
12864 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12865 * dwarf2/read.c: Move line_header code to new files.
12866 (dwarf_line_debug): No longer static.
12867 * dwarf2/line-header.c: New file.
12868 * dwarf2/line-header.h: New file.
12869
12870 2020-02-08 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/read.c (struct line_header) <file_full_name,
12873 file_file_name>: Return unique_xmalloc_ptr.
12874 (line_header::file_file_name): Update.
12875 (line_header::file_full_name): Update.
12876 (dw2_get_file_names_reader): Update.
12877 (macro_start_file): Update.
12878
12879 2020-02-08 Tom Tromey <tom@tromey.com>
12880
12881 * dwarf2/read.c (struct line_header) <file_full_name,
12882 file_file_name>: Declare methods.
12883 (dw2_get_file_names_reader): Update.
12884 (file_file_name): Now a method.
12885 (file_full_name): Likewise.
12886 (macro_start_file): Update.
12887
12888 2020-02-08 Tom Tromey <tom@tromey.com>
12889
12890 * dwarf2/read.c (dwarf_always_disassemble)
12891 (show_dwarf_always_disassemble): Move to loc.c.
12892 (_initialize_dwarf2_read): Move "always-disassemble" registration
12893 to loc.c.
12894 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12895 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12896 static.
12897 (show_dwarf_always_disassemble): Move from read.c.
12898 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12899
12900 2020-02-08 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12903 (create_quick_file_names_table): Return htab_up.
12904 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12905 Update.
12906 * dwarf2/read.h (struct dwarf2_per_objfile)
12907 <quick_file_names_table>: Now htab_up.
12908
12909 2020-02-08 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12912
12913 2020-02-08 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12916 Rewrite.
12917 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12918 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12919 (abbrev_table::abbrev_table): No longer inline.
12920 (ABBREV_HASH_SIZE): Remove.
12921 (abbrev_table::m_abbrevs): Now an htab_up.
12922
12923 2020-02-08 Tom Tromey <tom@tromey.com>
12924
12925 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12926 (cutu_reader): Update.
12927 (build_type_psymtabs_1): Update.
12928 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12929 (abbrev_table::alloc_abbrev): Update.
12930 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12931 (abbrev_table::read): New static method, renamed from
12932 abbrev_table_read_table.
12933 (abbrev_table::alloc_abbrev)
12934 (abbrev_table::add_abbrev): Now private.
12935 (abbrev_table::abbrev_table): Now private.
12936 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12937
12938 2020-02-08 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12941 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12942 htab_up.
12943
12944 2020-02-08 Tom Tromey <tom@tromey.com>
12945
12946 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12947 htab_up.
12948 (lookup_dwo_unit_in_dwp): Update.
12949 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12950 on obstack.
12951
12952 2020-02-08 Tom Tromey <tom@tromey.com>
12953
12954 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12955 obstack.
12956
12957 2020-02-08 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12960 line_header_hash.
12961 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12962 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12963 Change type to htab_up.
12964
12965 2020-02-08 Tom Tromey <tom@tromey.com>
12966
12967 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12968 htab_up. Don't allocate on obstack.
12969 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12970 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12971 Change type to htab_up.
12972
12973 2020-02-08 Tom Tromey <tom@tromey.com>
12974
12975 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12976 Change type to htab_up.
12977 * dwarf2/read.c (create_signatured_type_table_from_index)
12978 (create_signatured_type_table_from_debug_names)
12979 (create_all_type_units, add_type_unit)
12980 (lookup_dwo_signatured_type, lookup_signatured_type)
12981 (process_skeletonless_type_unit): Update.
12982 (create_debug_type_hash_table, create_debug_types_hash_table):
12983 Change type of types_htab.
12984 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12985 htab_up. Don't allocate on obstack.
12986 (create_cus_hash_table): Change type of cus_htab parameter.
12987 (struct dwo_file) <cus, tus>: Now htab_up.
12988 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12989 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12990 (queue_and_load_all_dwo_tus): Update.
12991 * dwarf2/index-write.c (write_gdbindex): Update.
12992 (write_debug_names): Update.
12993
12994 2020-02-08 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12997 dwarf2/read.c. Remove "next" member. Add constructor ntad
12998 destructor.
12999 (struct dwarf2_per_objfile) <queue>: New member.
13000 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13001 dwarf2/read.h.
13002 (dwarf2_queue, dwarf2_queue_tail): Remove.
13003 (class dwarf2_queue_guard): Add parameter to constructor. Use
13004 DISABLE_COPY_AND_ASSIGN.
13005 <m_per_objfile>: New member.
13006 <~dwarf2_queue_guard>: Rewrite.
13007 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13008 Update.
13009 (~dwarf2_queue_item): New.
13010
13011 2020-02-08 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2/read.c (struct die_info) <has_children>: New member.
13014 (dw2_get_file_names_reader): Remove has_children.
13015 (dw2_get_file_names): Update.
13016 (read_cutu_die_from_dwo): Remove has_children.
13017 (cutu_reader::init_tu_and_read_dwo_dies)
13018 (cutu_reader::cutu_reader): Update.
13019 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13020 Remove has_children.
13021 (build_type_psymtabs_1, process_skeletonless_type_unit)
13022 (load_partial_comp_unit, load_full_comp_unit): Update.
13023 (create_dwo_cu_reader): Remove has_children.
13024 (create_cus_hash_table, read_die_and_children): Update.
13025 (read_full_die_1,read_full_die): Remove has_children.
13026 (read_signatured_type): Update.
13027 (class cutu_reader) <has_children>: Remove.
13028
13029 2020-02-08 Tom Tromey <tom@tromey.com>
13030
13031 * dwarf2/expr.c: Rename from dwarf2expr.c.
13032 * dwarf2/expr.h: Rename from dwarf2expr.h.
13033 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13034 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13035 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13036 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13037 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13038 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13039 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13040 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13041 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13042 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13043 * dwarf2/loc.c: Rename from dwarf2loc.c.
13044 * dwarf2/loc.h: Rename from dwarf2loc.h.
13045 * dwarf2/read.c: Rename from dwarf2read.c.
13046 * dwarf2/read.h: Rename from dwarf2read.h.
13047 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13048 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13049 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13050 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13051 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13052 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13053 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13054 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13055 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13056 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13057 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13058 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13059 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13060 Update.
13061 * Makefile.in (COMMON_SFILES): Update.
13062 (HFILES_NO_SRCDIR): Update.
13063
13064 2020-02-08 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13067 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13068
13069 2020-02-08 Tom Tromey <tom@tromey.com>
13070
13071 * dwarf2read.h (struct die_info): Don't declare.
13072
13073 2020-02-08 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2read.h (die_info_ptr): Remove typedef.
13076
13077 2020-02-08 Tom Tromey <tom@tromey.com>
13078
13079 * dwarf2read.c (read_call_site_scope)
13080 (handle_data_member_location, dwarf2_add_member_fn)
13081 (mark_common_block_symbol_computed, read_common_block)
13082 (attr_to_dynamic_prop, partial_die_info::read)
13083 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13084 (dwarf2_symbol_mark_computed, set_die_type): Update.
13085 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13086 method.
13087 (attr_form_is_block): Don't declare.
13088 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13089
13090 2020-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2read.c (dwarf2_find_base_address, )
13093 (read_call_site_scope, rust_containing_type)
13094 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13095 (handle_data_member_location, dwarf2_add_member_fn)
13096 (get_alignment, read_structure_type, process_structure_scope)
13097 (mark_common_block_symbol_computed, read_common_block)
13098 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13099 (partial_die_info::read, read_attribute_value, new_symbol)
13100 (lookup_die_type, dwarf2_get_ref_die_offset)
13101 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13102 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13103 (dwarf2_symbol_mark_computed): Update.
13104 * dwarf2/attribute.h (struct attribute) <value_as_address,
13105 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13106 methods.
13107 (value_as_address, attr_form_is_section_offset)
13108 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13109 * dwarf2/attribute.c (attribute::value_as_address)
13110 (attribute::form_is_section_offset, attribute::form_is_constant)
13111 (attribute::form_is_ref): Now methods.
13112
13113 2020-02-08 Tom Tromey <tom@tromey.com>
13114
13115 * dwarf2read.c (struct attribute, DW_STRING)
13116 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13117 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13118 (attr_form_is_block, attr_form_is_section_offset)
13119 (attr_form_is_constant, attr_form_is_ref): Move.
13120 * dwarf2/attribute.h: New file.
13121 * dwarf2/attribute.c: New file, from dwarf2read.c.
13122 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13123
13124 2020-02-08 Tom Tromey <tom@tromey.com>
13125
13126 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13127 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13128 Move.
13129 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13130 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13131 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13132 abbrev.c.
13133 * dwarf2/abbrev.h: New file.
13134 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13135 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13136
13137 2020-02-08 Tom Tromey <tom@tromey.com>
13138
13139 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13140 (dwarf2_section_size, dwarf2_get_section_info)
13141 (create_signatured_type_table_from_debug_names)
13142 (create_addrmap_from_aranges, read_debug_names_from_section)
13143 (get_gdb_index_contents_from_section, read_comp_unit_head)
13144 (error_check_comp_unit_head, read_abbrev_offset)
13145 (create_debug_type_hash_table, init_cu_die_reader)
13146 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13147 (read_comp_units_from_section, create_cus_hash_table)
13148 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13149 (create_dwp_v2_section, dwarf2_rnglists_process)
13150 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13151 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13152 (read_indirect_string_from_dwz, read_addr_index_1)
13153 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13154 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13155 (fill_in_loclist_baton): Update.
13156 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13157 get_containing_section, get_bfd_owner, get_bfd_section,
13158 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13159 (dwarf2_read_section, get_section_name, get_section_file_name)
13160 (get_containing_section, get_section_bfd_owner)
13161 (get_section_bfd_section, get_section_name, get_section_file_name)
13162 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13163 declare.
13164 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13165 (dwarf2_section_info::get_bfd_owner)
13166 (dwarf2_section_info::get_bfd_section)
13167 (dwarf2_section_info::get_name)
13168 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13169 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13170 (dwarf2_section_info::read): Now methods.
13171 * dwarf-index-write.c (class debug_names): Update.
13172
13173 2020-02-08 Tom Tromey <tom@tromey.com>
13174
13175 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13176 Move to dwarf2/section.h.
13177 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13178 (get_section_bfd_section, get_section_name)
13179 (get_section_file_name, get_section_id, get_section_flags)
13180 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13181 dwarf2/section.c.
13182 * dwarf2/section.h: New file.
13183 * dwarf2/section.c: New file, from dwarf2read.c.
13184 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13185
13186 2020-02-08 Tom Tromey <tom@tromey.com>
13187
13188 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13189 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13190 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13191 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13192 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13193 * dwarf2/leb.h: New file, from dwarf2read.c.
13194 * dwarf2/leb.c: New file, from dwarf2read.c.
13195 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13196 Remove.
13197 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13198 (COMMON_SFILES): Add dwarf2/leb.c.
13199
13200 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13201
13202 GDB 9.1 released.
13203
13204 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13205
13206 PR gdb/25190:
13207 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13208 * gdb/remote.c (remote_console_output): Update.
13209 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13210 (ui_file_puts): ...this.
13211 * gdb/ui-file.h (ui_file_puts): Add declaration.
13212 * gdb/utils.c (emit_style_escape): Update.
13213 (flush_wrap_buffer): Update.
13214 (fputs_maybe_filtered): Update.
13215 (fputs_unfiltered): Add function.
13216
13217 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13218
13219 * gdb/event-loop.c (gdb_wait_for_event): Update.
13220 * gdb/printcmd.c (printf_command): Update.
13221 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13222 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13223 (gdb_os_flush_stderr): Update.
13224 * gdb/remote.c (remote_console_output): Update.
13225 * gdb/ui-file.c (gdb_flush): Rename to...
13226 (ui_file_flush): ...this.
13227 (stderr_file::write): Update.
13228 (stderr_file::puts): Update.
13229 * gdb/ui-file.h (gdb_flush): Rename to...
13230 (ui_file_flush): ...this.
13231 * gdb/utils.c (gdb_flush): Add function.
13232 * gdb/utils.h (gdb_flush): Add declaration.
13233
13234 2020-02-07 Tom Tromey <tromey@adacore.com>
13235
13236 PR breakpoints/24915:
13237 * source.c (find_and_open_source): Do not check basenames_may_differ.
13238
13239 2020-02-07 Tom Tromey <tom@tromey.com>
13240
13241 * README: Update gdbserver documentation.
13242 * gdbserver: Move to top level.
13243 * configure.tgt (build_gdbserver): Remove.
13244 * configure.ac: Remove --enable-gdbserver.
13245 * configure: Rebuild.
13246 * Makefile.in (distclean): Don't mention gdbserver.
13247
13248 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13249
13250 * source-cache.c (source_cache::ensure): Surround
13251 get_plain_source_lines with a try/catch.
13252 (source_cache::get_line_charpos): Get rid of try/catch
13253 and only check for the return value of "ensure".
13254 * tui/tui-source.c (tui_source_window::set_contents):
13255 Simplify "nlines" calculation.
13256
13257 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13258
13259 * MAINTAINERS (Write After Approval): Add myself.
13260
13261 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13262
13263 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13264 function call.
13265
13266 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13267
13268 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13269
13270 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13271
13272 * nat/riscv-linux-tdesc.h: New file.
13273 * nat/riscv-linux-tdesc.c: New file, taking code from...
13274 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13275 ... here.
13276 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13277 NATDEPFILES.
13278
13279 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13280
13281 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13282 we don't set the fake simulator ptid to the null_ptid.
13283
13284 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13285
13286 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13287 * gdbthread.h (class thread_info) <resumed>: Likewise.
13288 * infrun.c (resume_1): Likewise.
13289 (proceed): Likewise.
13290 (infrun_thread_stop_requested): Likewise.
13291 (stop_all_threads): Likewise.
13292 (handle_inferior_event): Likewise.
13293 (restart_threads): Likewise.
13294 (finish_step_over): Likewise.
13295 (keep_going_stepped_thread): Likewise.
13296 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13297 (linux_handle_extended_wait): Likewise.
13298 * record-btrace.c (get_thread_current_frame_id): Likewise.
13299 * record-full.c (record_full_wait_1): Likewise.
13300 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13301 * target.c (target_resume): Likewise.
13302 * thread.c (set_running_thread): Likewise.
13303
13304 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13305
13306 * f-valprint.c (f77_print_array_1): Changed datatype of index
13307 variable to LONGEST from int to enable it to contain bound
13308 values correctly.
13309
13310 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13311
13312 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13313 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13314 offsets according to FLEN determined.
13315 (riscv_linux_nat_target::read_description): Determine FLEN
13316 dynamically.
13317 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13318 according to FLEN determined.
13319 (riscv_linux_nat_target::store_registers): Likewise.
13320
13321 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13322
13323 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13324 when reg->group is empty and reggroup is not.
13325
13326 2020-01-31 Tom Tromey <tromey@adacore.com>
13327
13328 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13329 Call beneath target's mourn_inferior after unpushing.
13330
13331 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13332
13333 PR tui/9765
13334 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13335 have enough lines to fill the screen, still return the lowest
13336 address we found.
13337
13338 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13339
13340 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13341 '-', '<', and '>' commands.
13342
13343 2020-01-29 Pedro Alves <palves@redhat.com>
13344 Sergio Durigan Junior <sergiodj@redhat.com>
13345
13346 * infcmd.c (construct_inferior_arguments): Assert that
13347 'argc' is greater than 0.
13348
13349 2020-01-29 Luis Machado <luis.machado@linaro.org>
13350
13351 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13352 (BRK_INSN_MASK): Define to 0xd4200000.
13353 (aarch64_program_breakpoint_here_p): New function.
13354 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13355 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13356 breakpoint.c.
13357 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13358 breakpoint.h
13359 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13360 call gdbarch_program_breakpoint_here_p.
13361 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13362 default_program_breakpoint_here_p, changed return type to bool and
13363 simplified.
13364 * breakpoint.h (program_breakpoint_here): Moved prototype to
13365 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13366 return type to bool.
13367 * gdbarch.c: Regenerate.
13368 * gdbarch.h: Regenerate.
13369 * gdbarch.sh (program_breakpoint_here_p): New method.
13370 * infrun.c (handle_signal_stop): Call
13371 gdbarch_program_breakpoint_here_p.
13372
13373 2020-01-26 Tom Tromey <tom@tromey.com>
13374
13375 * ctfread.c (struct ctf_fp_info): Reindent.
13376 (_initialize_ctfread): Remove.
13377
13378 2020-01-26 Tom Tromey <tom@tromey.com>
13379
13380 * psymtab.c (partial_map_expand_apply)
13381 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13382 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13383 (psym_print_stats, psym_expand_symtabs_for_function)
13384 (psym_map_symbol_filenames, psym_map_matching_symbols)
13385 (psym_expand_symtabs_matching)
13386 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13387 (maintenance_check_psymtabs): Use new methods.
13388 * psympriv.h (struct partial_symtab) <readin_p,
13389 get_compunit_symtab>: New methods.
13390 <readin, compunit_symtab>: Remove members.
13391 (struct standard_psymtab): New.
13392 (struct legacy_psymtab): Derive from standard_psymtab.
13393 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13394 standard_psymtab.
13395 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13396
13397 2020-01-26 Tom Tromey <tom@tromey.com>
13398
13399 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13400 read_dependencies. Add assert.
13401 * psymtab.c (partial_symtab::read_dependencies): New method.
13402 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13403 method.
13404 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13405 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13406 read_dependencies.
13407 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13408 Add assert.
13409
13410 2020-01-26 Tom Tromey <tom@tromey.com>
13411
13412 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13413 Call expand_psymtab.
13414 (xcoff_read_symtab): Call expand_psymtab.
13415 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13416 legacy_expand_psymtab.
13417 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13418 method.
13419 (struct legacy_psymtab) <expand_psymtab>: Implement.
13420 <legacy_expand_psymtab>: New member.
13421 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13422 (parse_partial_symbols): Set legacy_expand_psymtab.
13423 (psymtab_to_symtab_1): Change argument order. Call
13424 expand_psymtab.
13425 (new_psymtab): Set legacy_expand_psymtab.
13426 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13427 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13428 expand_psymtab.
13429 (dwarf2_psymtab::expand_psymtab): Rename from
13430 psymtab_to_symtab_1. Call expand_psymtab.
13431 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13432 (dbx_end_psymtab): Likewise.
13433 (dbx_psymtab_to_symtab_1): Change argument order. Call
13434 expand_psymtab.
13435 (dbx_read_symtab): Call expand_psymtab.
13436 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13437 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13438 (ctf_psymtab::read_symtab): Call expand_psymtab.
13439
13440 2020-01-26 Tom Tromey <tom@tromey.com>
13441
13442 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13443 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13444 messages.
13445 * mdebugread.c (mdebug_read_symtab): Remove prints.
13446 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13447 assert.
13448 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13449
13450 2020-01-26 Tom Tromey <tom@tromey.com>
13451
13452 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13453 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13454 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13455 legacy_symtab.
13456 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13457 * psymtab.c (psymtab_to_symtab): Call method.
13458 (dump_psymtab): Update.
13459 * psympriv.h (struct partial_symtab): Add virtual destructor.
13460 <read_symtab>: New method.
13461 (struct legacy_symtab): New.
13462 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13463 (struct pst_map) <pst>: Now a legacy_psymtab.
13464 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13465 (new_psymtab): Use legacy_psymtab.
13466 * dwarf2read.h (struct dwarf2_psymtab): New.
13467 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13468 * dwarf2read.c (dwarf2_create_include_psymtab)
13469 (dwarf2_build_include_psymtabs, create_type_unit_group)
13470 (create_partial_symtab, process_psymtab_comp_unit_reader)
13471 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13472 (set_partial_user): Use dwarf2_psymtab.
13473 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13474 (psymtab_to_symtab_1, process_full_comp_unit)
13475 (process_full_type_unit, dwarf2_ranges_read)
13476 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13477 (dwarf_decode_lines): Use dwarf2_psymtab.
13478 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13479 (add_address_entry_worker, write_one_signatured_type)
13480 (recursively_count_psymbols, recursively_write_psymbols)
13481 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13482 (write_debug_names): Likewise.
13483 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13484 <pst>: Now a legacy_psymtab.
13485 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13486 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13487 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13488 * ctfread.c (struct ctf_psymtab): New.
13489 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13490 ctf_psymtab.
13491 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13492 (create_partial_symtab): Return a ctf_psymtab.
13493 (scan_partial_symbols): Update.
13494
13495 2020-01-26 Tom Tromey <tom@tromey.com>
13496
13497 * xcoffread.c (xcoff_start_psymtab): Use new.
13498 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13499 renamed from start_psymtab_common.
13500 * psympriv.h (struct partial_symtab): Add new constructor.
13501 (start_psymtab_common): Don't declare.
13502 * mdebugread.c (parse_partial_symbols): Use new.
13503 * dwarf2read.c (create_partial_symtab): Use new.
13504 * dbxread.c (start_psymtab): Use new.
13505 * ctfread.c (create_partial_symtab): Use new.
13506
13507 2020-01-26 Tom Tromey <tom@tromey.com>
13508
13509 * xcoffread.c (xcoff_end_psymtab): Use new.
13510 * psymtab.c (start_psymtab_common): Use new.
13511 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13512 Update.
13513 * psympriv.h (struct partial_symtab): Add parameters to
13514 constructor. Don't inline.
13515 (allocate_psymtab): Don't declare.
13516 * mdebugread.c (new_psymtab): Use new.
13517 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13518 * dbxread.c (dbx_end_psymtab): Use new.
13519
13520 2020-01-26 Tom Tromey <tom@tromey.com>
13521
13522 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13523 allocate_psymtab. Update documentation.
13524 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13525 allocate_psymtab. Do not use new.
13526 (allocate_psymtab): Use new. Update.
13527
13528 2020-01-26 Tom Tromey <tom@tromey.com>
13529
13530 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13531 * psymtab.c (psym_print_stats): Update.
13532 * psympriv.h (struct partial_symtab) <readin,
13533 psymtabs_addrmap_supported, anonymous>: Now bool.
13534 * mdebugread.c (psymtab_to_symtab_1): Update.
13535 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13536 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13537 (process_full_comp_unit, process_full_type_unit): Update.
13538 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13539 * ctfread.c (psymtab_to_symtab): Update.
13540
13541 2020-01-26 Tom Tromey <tom@tromey.com>
13542
13543 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13544 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13545 * psymtab.c (psymtab_storage): Delete psymtabs.
13546 (psymtab_storage::allocate_psymtab): Use new.
13547 (psymtab_storage::discard_psymtab): Use delete.
13548 * psympriv.h (struct partial_symtab): Add constructor and
13549 initializers.
13550
13551 2020-01-26 Tom Tromey <tom@tromey.com>
13552
13553 * machoread.c: Do not include psympriv.h.
13554
13555 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13556
13557 * NEWS: Mention the new option and the set/show commands.
13558
13559 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13560
13561 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13562 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13563 (validate_exec_file): New variables, enums, functions.
13564 (exec_file_locate_attach, print_section_info): Style the filenames.
13565 (_initialize_exec): Install show_exec_file_mismatch_command and
13566 set_exec_file_mismatch_command.
13567 * gdbcore.h (validate_exec_file): Declare.
13568 * infcmd.c (attach_command): Call validate_exec_file.
13569 * remote.c ( remote_target::remote_add_inferior): Likewise.
13570
13571 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13572
13573 * frame.c (find_frame_sal): Move call to get_next_frame into more
13574 inner scope.
13575 * inline-frame.c (inilne_state) <inline_state>: Update argument
13576 types.
13577 (inilne_state) <skipped_symbol>: Rename to...
13578 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13579 (skip_inline_frames): Build vector of skipped symbols and use this
13580 to reate the inline_state.
13581 (inline_skipped_symbol): Add a comment and some assertions, fetch
13582 skipped symbol from the list.
13583
13584 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13585
13586 * buildsym.c (lte_is_less_than): Delete.
13587 (buildsym_compunit::end_symtab_with_blockvector): Create local
13588 lambda function to sort line table entries, and use
13589 std::stable_sort instead of std::sort.
13590 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13591 markers when looking for a previous line.
13592
13593 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13594
13595 * dwarf2read.c (lnp_state_machine::record_line): Include
13596 end_sequence parameter in debug print out. Record the line if we
13597 are at an end_sequence marker even if it's not the start of a
13598 statement.
13599 * symmisc.c (maintenance_print_one_line_table): Print end of
13600 sequence markers with 'END' not '0'.
13601
13602 2020-01-24 Pedro Alves <palves@redhat.com>
13603
13604 PR gdb/25410
13605 * thread.c (scoped_restore_current_thread::restore): Use
13606 switch_to_inferior_no_thread.
13607 * exec.c: Include "progspace-and-thread.h".
13608 (add_target_sections, remove_target_sections):
13609 scoped_restore_current_pspace_and_thread instead of
13610 scoped_restore_current_thread.
13611 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13612 and aspace to the inferior before calling clone_program_space.
13613 Remove stale comment.
13614
13615 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13616
13617 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13618 (arm_netbsd_nat_target::fetch_registers): ...this.
13619 (arm_nbsd_nat_target::store_registers): Rename to...
13620 (arm_netbsd_nat_target::store_registers): ...this.
13621
13622 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13623
13624 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13625 register_t.
13626
13627 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13628
13629 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13630 Update comment.
13631 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13632 Likewise.
13633 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13634 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13635 the correct replacement (iterate_over_regset_sections).
13636 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13637 Update comment.
13638
13639 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13640
13641 PR gdb/23718
13642 * gdb/python/python.c (execute_gdb_command): Call
13643 async_enable_stdin in catch block.
13644
13645 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13646
13647 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13648 SWITCH_THRU_ALL_UIS.
13649
13650 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13651
13652 PR tui/9765
13653 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13654 comment, add extra parameter, and update to store previous symbol
13655 when appropriate.
13656 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13657 add extra parameter.
13658 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13659 remove unneeded parameter, add try/catch around gdb_print_insn,
13660 rewrite to add items to asm_lines vector.
13661 (tui_find_backward_disassembly_start_address): New function.
13662 (tui_find_disassembly_address): Updated throughout.
13663 (tui_disasm_window::set_contents): Update for changes to
13664 tui_disassemble.
13665 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13666 number of lines to scroll.
13667
13668 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13669
13670 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13671 (SECT_OFF_DATA): Likewise.
13672 (SECT_OFF_RODATA): Likewise.
13673 (SECT_OFF_TEXT): Likewise.
13674 (SECT_OFF_BSS): Likewise.
13675 (struct objfile) <text_section_offset, data_section_offset>: New
13676 methods.
13677 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13678 objfile::text_section_offset.
13679 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13680 * coffread.c (coff_symtab_read): Likewise.
13681 (enter_linenos): Likewise.
13682 (process_coff_symbol): Likewise.
13683 * ctfread.c (get_objfile_text_range): Likewise.
13684 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13685 Use objfile::data_section_offset.
13686 * dwarf2-frame.c (execute_cfa_program): Use
13687 objfile::text_section_offset.
13688 (dwarf2_frame_find_fde): Likewise.
13689 * dwarf2read.c (create_addrmap_from_index): Likewise.
13690 (create_addrmap_from_aranges): Likewise.
13691 (dw2_find_pc_sect_compunit_symtab): Likewise.
13692 (process_psymtab_comp_unit_reader): Likewise.
13693 (add_partial_symbol): Likewise.
13694 (add_partial_subprogram): Likewise.
13695 (process_full_comp_unit): Likewise.
13696 (read_file_scope): Likewise.
13697 (read_func_scope): Likewise.
13698 (read_lexical_block_scope): Likewise.
13699 (read_call_site_scope): Likewise.
13700 (dwarf2_rnglists_process): Likewise.
13701 (dwarf2_ranges_process): Likewise.
13702 (dwarf2_ranges_read): Likewise.
13703 (dwarf_decode_lines_1): Likewise.
13704 (new_symbol): Likewise.
13705 (dwarf2_fetch_die_loc_sect_off): Likewise.
13706 (dwarf2_per_cu_text_offset): Likewise.
13707 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13708 * hppa-tdep.c (read_unwind_info): Likewise.
13709 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13710 * psympriv.h (struct partial_symtab): Likewise.
13711 * psymtab.c (find_pc_sect_psymtab): Likewise.
13712 * solib-svr4.c (enable_break): Likewise.
13713 * stap-probe.c (relocate_address): Use
13714 objfile::data_section_offset.
13715 * xcoffread.c (enter_line_range): Use
13716 objfile::text_section_offset.
13717 (read_xcoff_symtab): Likewise.
13718
13719 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13720
13721 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13722 declaration to narrower scopes.
13723
13724 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13725
13726 * darwin-nat.h (struct darwin_exception_msg, enum
13727 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13728 Move up.
13729 (class darwin_nat_target) <wait_1, check_new_threads,
13730 decode_exception_message, decode_message, stop_inferior,
13731 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13732 * darwin-nat.c (darwin_check_new_threads): Rename to...
13733 (darwin_nat_target::check_new_threads): ... this.
13734 (darwin_suspend_inferior_it): Remove.
13735 (darwin_decode_exception_message): Rename to...
13736 (darwin_nat_target::decode_exception_message): ... this.
13737 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13738 (darwin_decode_message): Rename to...
13739 (darwin_nat_target::decode_message): ... this.
13740 (cancel_breakpoint): Rename to...
13741 (darwin_nat_target::cancel_breakpoint): ... this.
13742 (darwin_wait): Rename to...
13743 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13744 instead of iterate_over_inferiors.
13745 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13746 (darwin_stop_inferior): Rename to...
13747 (darwin_nat_target::stop_inferior): ... this.
13748 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13749 (darwin_init_thread_list): Rename to...
13750 (darwin_nat_target::init_thread_list): ... this.
13751 (darwin_ptrace_him): Rename to...
13752 (darwin_nat_target::ptrace_him): ... this.
13753 (darwin_nat_target::create_inferior): Pass lambda function to
13754 fork_inferior.
13755 (darwin_nat_target::detach): Call stop_inferior instead of
13756 darwin_stop_inferior.
13757 * fork-inferior.h (fork_inferior): Change init_trace_fun
13758 parameter to gdb::function_view.
13759 * fork-inferior.c (fork_inferior): Likewise.
13760
13761 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13762
13763 * i386-cygwin-tdep.c (core_process_module_section): Update.
13764 * windows-nat.c (struct lm_info_windows): Add text_offset.
13765 (windows_xfer_shared_libraries): Update.
13766 * windows-tdep.c (windows_xfer_shared_library):
13767 Add text_offset_cached argument.
13768 * windows-tdep.h (windows_xfer_shared_library): Update.
13769
13770 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13771
13772 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13773
13774 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13775
13776 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13777 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13778 replace with range-based for.
13779 (gdbsim_interrupt_inferior): Remove.
13780 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13781 with a range-based for. Inline code from
13782 gdbsim_interrupt_inferior.
13783
13784 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13785
13786 * infrun.c (proceed): Fix indentation.
13787
13788 2020-01-21 Tom Tromey <tromey@adacore.com>
13789
13790 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13791 * python/python.c (python_extension_ops): Update.
13792 (gdbpy_colorize): New function.
13793 * python/lib/gdb/__init__.py (colorize): New function.
13794 * extension.h (ext_lang_colorize): Declare.
13795 * extension.c (ext_lang_colorize): New function.
13796 * extension-priv.h (struct extension_language_ops) <colorize>: New
13797 member.
13798 * cli/cli-style.c (_initialize_cli_style): Update help text.
13799
13800 2020-01-21 Luis Machado <luis.machado@linaro.org>
13801
13802 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13803 <cond>: Change type to bool.
13804 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13805 (aarch64_displaced_step_cb): Likewise.
13806 (aarch64_displaced_step_tb): Likewise.
13807
13808 2020-01-21 Luis Machado <luis.machado@linaro.org>
13809
13810 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13811 output.
13812
13813 2020-01-21 Luis Machado <luis.machado@linaro.org>
13814
13815 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13816 <pc_adjust>: Adjust the documentation.
13817 (aarch64_displaced_step_fixup): Check if PC really moved before
13818 adjusting it.
13819
13820 2020-01-19 Tom Tromey <tom@tromey.com>
13821
13822 * disasm.c (~gdb_disassembler): New destructor.
13823 (gdb_buffered_insn_length): Call disassemble_free_target.
13824 * disasm.h (class gdb_disassembler): Declare destructor. Use
13825 DISABLE_COPY_AND_ASSIGN.
13826
13827 2020-01-19 Tom Tromey <tom@tromey.com>
13828
13829 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13830 (die_reader_func_ftype): Remove.
13831 (cutu_reader): New class.
13832 (dw2_get_file_names_reader): Remove "data" parameter.
13833 (dw2_get_file_names): Use cutu_reader.
13834 (create_debug_type_hash_table): Update.
13835 (read_cutu_die_from_dwo): Update comment.
13836 (lookup_dwo_unit): Add dwo_name parameter.
13837 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13838 die_reader_func_ftype and data parameters.
13839 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13840 Remove die_reader_func_ftype and data parameters.
13841 (~cutu_reader): New; from init_cutu_and_read_dies.
13842 (cutu_reader::cutu_reader): Rename from
13843 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13844 and data parameters.
13845 (init_cutu_and_read_dies_simple): Remove.
13846 (struct process_psymtab_comp_unit_data): Remove.
13847 (process_psymtab_comp_unit_reader): Remove data parameter; add
13848 want_partial_unit and pretend_language parameters.
13849 (process_psymtab_comp_unit): Use cutu_reader.
13850 (build_type_psymtabs_reader): Remove data parameter.
13851 (build_type_psymtabs_1): Use cutu_reader.
13852 (process_skeletonless_type_unit): Likewise.
13853 (load_partial_comp_unit_reader): Remove.
13854 (load_partial_comp_unit): Use cutu_reader.
13855 (load_full_comp_unit_reader): Remove.
13856 (load_full_comp_unit): Use cutu_reader.
13857 (struct create_dwo_cu_data): Remove.
13858 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13859 dwo_unit parameters.
13860 (create_cus_hash_table): Use cutu_reader.
13861 (struct dwarf2_read_addr_index_data): Remove.
13862 (dwarf2_read_addr_index_reader): Remove.
13863 (dwarf2_read_addr_index): Use cutu_reader.
13864 (read_signatured_type_reader): Remove.
13865 (read_signatured_type): Use cutu_reader.
13866
13867 2020-01-19 Tom Tromey <tom@tromey.com>
13868
13869 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13870 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13871 (tui_wrefresh): Declare.
13872 * tui/tui-wingeneral.c (suppress_output): New global.
13873 (tui_suppress_output, ~tui_suppress_output): New constructor and
13874 destructor.
13875 (tui_wrefresh): New function.
13876 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13877 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13878 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13879 method.
13880 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13881 tui_wrefresh.
13882 (tui_data_window::no_refresh): New method.
13883 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13884 (tui_reg_command): Use tui_suppress_output
13885 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13886 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13887 method.
13888 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13889
13890 2020-01-19 Tom Tromey <tom@tromey.com>
13891
13892 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13893 Handle case where symtab is null.
13894
13895 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13896
13897 * linux-fork.c (one_fork_p): Simplify.
13898
13899 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13900
13901 * top.c (struct qt_args): Remove.
13902 (kill_or_detach): Change return type to void, replace `void *`
13903 parameter with a proper one.
13904 (print_inferior_quit_action): Likewise.
13905 (quit_confirm): Use range-based for loop to iterate over inferiors.
13906 (quit_force): Likewise.
13907
13908 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13909
13910 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13911 `void *` parameter with proper parameters.
13912 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13913 (print_one_inferior): Change return type to void, replace `void *`
13914 parameter with proper parameters.
13915 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13916 inferiors.
13917 (get_other_inferior): Remove.
13918 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13919 inferiors.
13920
13921 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13922
13923 * mi/mi-interp.c (report_initial_inferior): Remove.
13924 (mi_interp::init): Use range-based for to iterate over inferiors.
13925
13926 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * python/py-inferior.c (build_inferior_list): Remove.
13929 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13930
13931 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13932
13933 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13934 (btrace_stitch_trace): Likewise.
13935 * charset.c (intermediate_encoding): Likewise (vaild).
13936 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13937 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13938 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13939
13940 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13941
13942 * windows-tdep.c (windows_get_tlb_type):
13943 Add rtl_user_process_parameters type.
13944
13945 2020-01-16 Pedro Alves <palves@redhat.com>
13946 Norbert Lange <nolange79@gmail.com>
13947
13948 PR build/24805
13949 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13950 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13951 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13952 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13953 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13954 (ps_plog): Redeclare exported functions with default visibility.
13955
13956 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13957
13958 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13959 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13960
13961 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13962
13963 * infcmd.c (post_create_inferior): Use get_thread_regcache
13964 instead of get_current_regcache.
13965
13966 2020-01-14 Tom Tromey <tom@tromey.com>
13967
13968 PR symtab/12535:
13969 * python/python.c (gdbpy_decode_line): Treat empty string the same
13970 as no argument.
13971
13972 2020-01-14 Tom Tromey <tom@tromey.com>
13973
13974 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13975
13976 2020-01-14 Tom Tromey <tom@tromey.com>
13977
13978 * nat/linux-btrace.c: Don't include <config.h>.
13979 * nat/linux-ptrace.c: Don't include <config.h>.
13980 * nat/x86-linux-dregs.c: Don't include <config.h>.
13981
13982 2020-01-14 Tom Tromey <tom@tromey.com>
13983
13984 * configure: Rebuild.
13985 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13986
13987 2020-01-14 Tom Tromey <tom@tromey.com>
13988
13989 * nat/x86-linux-dregs.c: Include configh.h.
13990 * nat/linux-ptrace.c: Include configh.h.
13991 * nat/linux-btrace.c: Include configh.h.
13992 * defs.h: Include config.h, bfd.h.
13993 * configure.ac: Don't source common.host.
13994 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13995 * configure: Rebuild.
13996 * acinclude.m4: Update path.
13997 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13998 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13999 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14000 (CLIBS): Add LIBSUPPORT.
14001 (CDEPS): Likewise.
14002 (COMMON_SFILES): Remove gdbsupport files.
14003 (HFILES_NO_SRCDIR): Likewise.
14004 (stamp-version): Update path to create-version.sh.
14005 (ALLDEPFILES): Remove gdbsupport files.
14006
14007 2020-01-14 Tom Tromey <tom@tromey.com>
14008
14009 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14010 USE_WIN32API when needed.
14011 * configure.ac (USE_WIN32API): Don't define.
14012 (WIN32LIBS): Use WIN32APILIBS.
14013 * configure: Rebuild.
14014
14015 2020-01-14 Tom Tromey <tom@tromey.com>
14016
14017 * configure: Rebuild.
14018 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14019
14020 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14021
14022 * skip.c (skip_function_command): Make skip w/o arguments use the
14023 name of the inlined function if pc is inside any inlined function.
14024
14025 2020-01-14 Luis Machado <luis.machado@linaro.org>
14026
14027 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14028 * infrun.c (resume_1): Likewise.
14029 (handle_inferior_event): Remove stale comment.
14030 * linux-nat.c (linux_nat_target::resume): Update comments.
14031 (save_stop_reason): Likewise.
14032 (linux_nat_filter_event): Likewise.
14033 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14034
14035 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * elfread.c (record_minimal_symbol): Set section index to 0 for
14038 non-allocatable sections.
14039
14040
14041 2020-01-13 Ali Tamur <tamur@google.com>
14042
14043 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14044 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14045 to gdb::optional. Update comments.
14046 (dwo_file): Update comments.
14047 (read_attribute): Update API to take an additional out parameter,
14048 need_reprocess. This is used to mark attributes that need other
14049 attributes (e.g. str_offsets_base) for correct computation which may not
14050 have been read yet.
14051 (read_attribute_reprocess): New function declaration.
14052 (read_addr_index): Likewise.
14053 (read_dwo_str_index): Likewise.
14054 (read_stub_str_index): Likewise.
14055 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14056 (lookup_addr_base): New function definition.
14057 (lookup_ranges_base): Likewise.
14058 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14059 lookup_ranges_base.
14060 (init_cutu_and_read_dies): Update comments.
14061 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14062 unit. This is used to inherit parent's str_offsets_base and addr_base.
14063 Update comments.
14064 (init_cutu_and_read_dies_simple): Reflect API changes.
14065 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14066 (create_cus_hash_table): Change API to take parent compile unit.
14067 Reflect API changes.
14068 (open_and_init_dwo_file): Reflect API changes.
14069 (dwarf2_get_pc_bounds): Update comments.
14070 (dwarf2_record_block_ranges): Likewise.
14071 (read_full_die_1): Change implementation to reprocess attributes that
14072 need str_offsets_base and addr_base.
14073 (partial_die_info::read): Likewise.
14074 (read_attribute_reprocess): New function definition.
14075 (read_attribute_value): Change API to take an additional out parameter,
14076 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14077 when a non-dwo compile unit has index based attributes.
14078 (read_attribute): Reflect API changes.
14079 (read_addr_index_1): Reflect API changes. Update comments.
14080 (dwarf2_read_addr_index_data): Reflect API changes.
14081 (dwarf2_read_addr_index): Likewise.
14082 (read_str_index): Change API and implementation. This becomes a helper
14083 to be used by the new string index related methods. Update error
14084 message and comments.
14085 (read_dwo_str_index): New function definition.
14086 (read_stub_str_index): Likewise.
14087 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14088 * symfile.h (dwarf2_debug_sections): Likewise.
14089 * xcoffread.c (dwarf2_debug_sections): Likewise.
14090
14091 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14092
14093 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14094 core_reg_sect type to gdb_byte *.
14095 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14096 * cris-tdep.c (fetch_core_registers): Likewise.
14097 * corelow.c (core_target::get_core_register_section): Change
14098 type of `contents` to gdb::byte_vector.
14099
14100 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14101
14102 * tui/tui-wingeneral.c (box_win): Position the title in the center
14103 of the border.
14104
14105 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14106
14107 * corelow.c (core_target::get_core_register_section): Use
14108 std::vector instead of alloca.
14109
14110 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * warning.m4: Add -Wmissing-declarations to build_warnings.
14113 * configure: Re-generate.
14114
14115 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14116
14117 * python/python.c (init__gdb_module): Add declaration.
14118
14119 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14120
14121 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14122 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14123 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14124 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14125 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14126 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14127 * ada-exp.y (_initialize_ada_exp): Add declaration.
14128 * ada-lang.c (_initialize_ada_language): Add declaration.
14129 * ada-tasks.c (_initialize_tasks): Add declaration.
14130 * agent.c (_initialize_agent): Add declaration.
14131 * aix-thread.c (_initialize_aix_thread): Add declaration.
14132 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14133 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14134 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14135 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14136 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14137 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14138 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14139 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14140 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14141 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14142 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14143 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14144 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14145 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14146 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14147 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14148 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14149 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14150 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14151 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14152 * annotate.c (_initialize_annotate): Add declaration.
14153 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14154 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14155 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14156 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14157 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14158 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14159 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14160 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14161 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14162 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14163 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14164 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14165 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14166 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14167 * auto-load.c (_initialize_auto_load): Add declaration.
14168 * auxv.c (_initialize_auxv): Add declaration.
14169 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14170 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14171 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14172 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14173 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14174 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14175 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14176 * breakpoint.c (_initialize_breakpoint): Add declaration.
14177 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14178 * btrace.c (_initialize_btrace): Add declaration.
14179 * charset.c (_initialize_charset): Add declaration.
14180 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14181 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14182 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14183 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14184 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14185 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14186 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14187 * coffread.c (_initialize_coffread): Add declaration.
14188 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14189 * compile/compile.c (_initialize_compile): Add declaration.
14190 * complaints.c (_initialize_complaints): Add declaration.
14191 * completer.c (_initialize_completer): Add declaration.
14192 * copying.c (_initialize_copying): Add declaration.
14193 * corefile.c (_initialize_core): Add declaration.
14194 * corelow.c (_initialize_corelow): Add declaration.
14195 * cp-abi.c (_initialize_cp_abi): Add declaration.
14196 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14197 * cp-support.c (_initialize_cp_support): Add declaration.
14198 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14199 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14200 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14201 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14202 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14203 * ctfread.c (_initialize_ctfread): Add declaration.
14204 * d-lang.c (_initialize_d_language): Add declaration.
14205 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14206 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14207 * dbxread.c (_initialize_dbxread): Add declaration.
14208 * dcache.c (_initialize_dcache): Add declaration.
14209 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14210 * disasm.c (_initialize_disasm): Add declaration.
14211 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14212 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14213 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14214 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14215 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14216 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14217 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14218 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14219 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14220 * elfread.c (_initialize_elfread): Add declaration.
14221 * exec.c (_initialize_exec): Add declaration.
14222 * extension.c (_initialize_extension): Add declaration.
14223 * f-lang.c (_initialize_f_language): Add declaration.
14224 * f-valprint.c (_initialize_f_valprint): Add declaration.
14225 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14226 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14227 * filesystem.c (_initialize_filesystem): Add declaration.
14228 * findcmd.c (_initialize_mem_search): Add declaration.
14229 * findvar.c (_initialize_findvar): Add declaration.
14230 * fork-child.c (_initialize_fork_child): Add declaration.
14231 * frame-base.c (_initialize_frame_base): Add declaration.
14232 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14233 * frame.c (_initialize_frame): Add declaration.
14234 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14235 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14236 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14237 * gcore.c (_initialize_gcore): Add declaration.
14238 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14239 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14240 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14241 * gdbarch.c (_initialize_gdbarch): Add declaration.
14242 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14243 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14244 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14245 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14246 * go-lang.c (_initialize_go_language): Add declaration.
14247 * go32-nat.c (_initialize_go32_nat): Add declaration.
14248 * guile/guile.c (_initialize_guile): Add declaration.
14249 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14250 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14251 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14252 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14253 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14254 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14255 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14256 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14257 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14258 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14259 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14260 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14261 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14262 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14263 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14264 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14265 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14266 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14267 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14268 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14269 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14270 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14271 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14272 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14273 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14274 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14275 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14276 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14277 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14278 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14279 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14280 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14281 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14282 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14283 * infcall.c (_initialize_infcall): Add declaration.
14284 * infcmd.c (_initialize_infcmd): Add declaration.
14285 * inflow.c (_initialize_inflow): Add declaration.
14286 * infrun.c (_initialize_infrun): Add declaration.
14287 * interps.c (_initialize_interpreter): Add declaration.
14288 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14289 * jit.c (_initialize_jit): Add declaration.
14290 * language.c (_initialize_language): Add declaration.
14291 * linux-fork.c (_initialize_linux_fork): Add declaration.
14292 * linux-nat.c (_initialize_linux_nat): Add declaration.
14293 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14294 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14295 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14296 * m2-lang.c (_initialize_m2_language): Add declaration.
14297 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14298 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14299 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14300 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14301 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14302 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14303 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14304 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14305 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14306 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14307 * machoread.c (_initialize_machoread): Add declaration.
14308 * macrocmd.c (_initialize_macrocmd): Add declaration.
14309 * macroscope.c (_initialize_macroscope): Add declaration.
14310 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14311 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14312 * maint.c (_initialize_maint_cmds): Add declaration.
14313 * mdebugread.c (_initialize_mdebugread): Add declaration.
14314 * memattr.c (_initialize_mem): Add declaration.
14315 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14316 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14317 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14318 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14319 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14320 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14321 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14322 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14323 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14324 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14325 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14326 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14327 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14328 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14329 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14330 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14331 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14332 * mipsread.c (_initialize_mipsread): Add declaration.
14333 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14334 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14335 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14336 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14337 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14338 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14339 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14340 * nto-procfs.c (_initialize_procfs): Add declaration.
14341 * objc-lang.c (_initialize_objc_language): Add declaration.
14342 * observable.c (_initialize_observer): Add declaration.
14343 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14344 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14345 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14346 * osabi.c (_initialize_gdb_osabi): Add declaration.
14347 * osdata.c (_initialize_osdata): Add declaration.
14348 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14349 * parse.c (_initialize_parse): Add declaration.
14350 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14351 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14352 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14353 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14354 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14355 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14356 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14357 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14358 * printcmd.c (_initialize_printcmd): Add declaration.
14359 * probe.c (_initialize_probe): Add declaration.
14360 * proc-api.c (_initialize_proc_api): Add declaration.
14361 * proc-events.c (_initialize_proc_events): Add declaration.
14362 * proc-service.c (_initialize_proc_service): Add declaration.
14363 * procfs.c (_initialize_procfs): Add declaration.
14364 * producer.c (_initialize_producer): Add declaration.
14365 * psymtab.c (_initialize_psymtab): Add declaration.
14366 * python/python.c (_initialize_python): Add declaration.
14367 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14368 * record-btrace.c (_initialize_record_btrace): Add declaration.
14369 * record-full.c (_initialize_record_full): Add declaration.
14370 * record.c (_initialize_record): Add declaration.
14371 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14372 * regcache.c (_initialize_regcache): Add declaration.
14373 * reggroups.c (_initialize_reggroup): Add declaration.
14374 * remote-notif.c (_initialize_notif): Add declaration.
14375 * remote-sim.c (_initialize_remote_sim): Add declaration.
14376 * remote.c (_initialize_remote): Add declaration.
14377 * reverse.c (_initialize_reverse): Add declaration.
14378 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14379 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14380 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14381 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14382 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14383 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14384 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14385 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14386 Add declaration.
14387 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14388 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14389 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14390 * rust-exp.y (_initialize_rust_exp): Add declaration.
14391 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14392 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14393 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14394 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14395 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14396 * score-tdep.c (_initialize_score_tdep): Add declaration.
14397 * ser-go32.c (_initialize_ser_dos): Add declaration.
14398 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14399 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14400 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14401 * ser-uds.c (_initialize_ser_socket): Add declaration.
14402 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14403 * serial.c (_initialize_serial): Add declaration.
14404 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14405 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14406 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14407 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14408 * skip.c (_initialize_step_skip): Add declaration.
14409 * sol-thread.c (_initialize_sol_thread): Add declaration.
14410 * solib-aix.c (_initialize_solib_aix): Add declaration.
14411 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14412 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14413 * solib-frv.c (_initialize_frv_solib): Add declaration.
14414 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14415 * solib-target.c (_initialize_solib_target): Add declaration.
14416 * solib.c (_initialize_solib): Add declaration.
14417 * source-cache.c (_initialize_source_cache): Add declaration.
14418 * source.c (_initialize_source): Add declaration.
14419 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14420 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14421 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14422 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14423 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14424 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14425 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14426 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14427 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14428 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14429 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14430 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14431 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14432 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14433 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14434 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14435 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14436 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14437 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14438 * stabsread.c (_initialize_stabsread): Add declaration.
14439 * stack.c (_initialize_stack): Add declaration.
14440 * stap-probe.c (_initialize_stap_probe): Add declaration.
14441 * std-regs.c (_initialize_frame_reg): Add declaration.
14442 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14443 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14444 * symfile.c (_initialize_symfile): Add declaration.
14445 * symmisc.c (_initialize_symmisc): Add declaration.
14446 * symtab.c (_initialize_symtab): Add declaration.
14447 * target.c (_initialize_target): Add declaration.
14448 * target-connection.c (_initialize_target_connection): Add
14449 declaration.
14450 * target-dcache.c (_initialize_target_dcache): Add declaration.
14451 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14452 * thread.c (_initialize_thread): Add declaration.
14453 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14454 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14455 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14456 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14457 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14458 * tracectf.c (_initialize_ctf): Add declaration.
14459 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14460 * tracefile.c (_initialize_tracefile): Add declaration.
14461 * tracepoint.c (_initialize_tracepoint): Add declaration.
14462 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14463 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14464 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14465 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14466 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14467 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14468 * tui/tui.c (_initialize_tui): Add declaration.
14469 * typeprint.c (_initialize_typeprint): Add declaration.
14470 * ui-style.c (_initialize_ui_style): Add declaration.
14471 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14472 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14473 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14474 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14475 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14476 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14477 * unittests/filtered_iterator-selftests.c
14478 (_initialize_filtered_iterator_selftests): Add declaration.
14479 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14480 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14481 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14482 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14483 * unittests/main-thread-selftests.c
14484 (_initialize_main_thread_selftests): Add declaration.
14485 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14486 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14487 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14488 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14489 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14490 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14491 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14492 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14493 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14494 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14495 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14496 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14497 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14498 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14499 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14500 declaration.
14501 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14502 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14503 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14504 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14505 * user-regs.c (_initialize_user_regs): Add declaration.
14506 * utils.c (_initialize_utils): Add declaration.
14507 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14508 * valops.c (_initialize_valops): Add declaration.
14509 * valprint.c (_initialize_valprint): Add declaration.
14510 * value.c (_initialize_values): Add declaration.
14511 * varobj.c (_initialize_varobj): Add declaration.
14512 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14513 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14514 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14515 * windows-nat.c (_initialize_windows_nat): Add declaration.
14516 (_initialize_check_for_gdb_ini): Add declaration.
14517 (_initialize_loadable): Add declaration.
14518 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14519 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14520 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14521 * xcoffread.c (_initialize_xcoffread): Add declaration.
14522 * xml-support.c (_initialize_xml_support): Add declaration.
14523 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14524 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14525 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14526 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14527
14528 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14529
14530 * regformats/regdat.sh: Generate declaration for init function.
14531
14532 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14533
14534 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14535 up.
14536 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14537 close_one_inferior>: New methods.
14538 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14539 pass down target to find_inferior_pid.
14540 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14541 Pass down target to find_inferior_ptid.
14542 (gdbsim_target::create_inferior): Pass down target to
14543 add_thread_silent.
14544 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14545 target down to find_inferior_ptid and switch_to_thread.
14546 (gdbsim_target::close): Update to call close_one_inferior.
14547 (struct resume_data): Remove.
14548 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14549 directly, rather than through a void pointer.
14550 (gdbsim_target::resume): Update to call resume_one_inferior.
14551
14552 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14553
14554 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14555
14556 2020-01-12 Pedro Alves <palves@redhat.com>
14557
14558 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14559 directly for the current inferior instead of
14560 discard_all_inferiors.
14561 (discard_all_inferiors): Delete.
14562
14563 2020-01-11 Tom Tromey <tom@tromey.com>
14564
14565 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14566 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14567 deprecated_safe_get_selected_frame.
14568
14569 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14570
14571 * inferior.c (print_inferior): Switch inferior before printing it.
14572
14573 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14574 Pedro Alves <palves@redhat.com>
14575
14576 * progspace-and-thread.c (switch_to_program_space_and_thread):
14577 Assert there's an inferior for PSPACE. Use
14578 switch_to_inferior_no_thread to switch the inferior too.
14579 * progspace.c (program_space::~program_space): Call
14580 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14581 (program_space::free_all_objfiles): Don't call clear_symtab_users
14582 here.
14583 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14584
14585 2020-01-10 Pedro Alves <palves@redhat.com>
14586
14587 * NEWS: Mention multi-target debugging, "info connections", and
14588 "add-inferior -no-connection".
14589
14590 2020-01-10 Pedro Alves <palves@redhat.com>
14591
14592 * infrun.c: Include "target-connection.h".
14593 (check_multi_target_resumption): New.
14594 (proceed): Call it.
14595 * target-connection.c (make_target_connection_string): Make
14596 extern.
14597 * target-connection.h (make_target_connection_string): Declare.
14598
14599 2020-01-10 Pedro Alves <palves@redhat.com>
14600
14601 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14602 * inferior.c (uiout_field_connection): New function.
14603 (print_inferior): Add new "connection-id" column.
14604 (add_inferior_command): Show connection number/string of added
14605 inferior.
14606 * process-stratum-target.h
14607 (process_stratum_target::connection_string): New virtual method.
14608 (process_stratum_target::connection_number): New field.
14609 * remote.c (remote_target::connection_string): New override.
14610 * target-connection.c: New file.
14611 * target-connection.h: New file.
14612 * target.c (decref_target): Remove process_stratum targets from
14613 the connection list.
14614 (target_stack::push): Add process_stratum targets to the
14615 connection list.
14616
14617 2020-01-10 Pedro Alves <palves@redhat.com>
14618
14619 Revert:
14620 2016-04-12 Pedro Alves <palves@redhat.com>
14621 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14622 Remove references to name.
14623 * serial.h (struct serial) <name>: Delete.
14624
14625 2020-01-10 Pedro Alves <palves@redhat.com>
14626
14627 * gdbarch-selftests.c (register_to_value_test): Remove "target
14628 already pushed" check.
14629
14630 2020-01-10 Pedro Alves <palves@redhat.com>
14631 John Baldwin <jhb@FreeBSD.org>
14632
14633 * aarch64-linux-nat.c
14634 (aarch64_linux_nat_target::thread_architecture): Adjust.
14635 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14636 (task_command_1): Likewise.
14637 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14638 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14639 (aix_thread_target::store_registers)
14640 (aix_thread_target::thread_alive): Adjust.
14641 * amd64-fbsd-tdep.c: Include "inferior.h".
14642 (amd64fbsd_get_thread_local_address): Pass down target.
14643 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14644 thread's gdbarch instead of target_gdbarch.
14645 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14646 get_last_target_status.
14647 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14648 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14649 inferiors.
14650 (update_inserted_breakpoint_locations): Skip if inferiors with no
14651 execution.
14652 (update_global_location_list): When handling moribund locations,
14653 find representative inferior for location's pspace, and use thread
14654 count of its process_stratum target.
14655 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14656 * bsd-uthread.c (bsd_uthread_target::wait): Use
14657 as_process_stratum_target and adjust thread_change_ptid and
14658 add_thread calls.
14659 (bsd_uthread_target::update_thread_list): Use
14660 as_process_stratum_target and adjust find_thread_ptid,
14661 thread_change_ptid and add_thread calls.
14662 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14663 find_thread_ptid call.
14664 * corelow.c (add_to_thread_list): Adjust add_thread call.
14665 (core_target_open): Adjust add_thread_silent and thread_count
14666 calls.
14667 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14668 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14669 * event-top.c (async_disconnect): Pop targets from all inferiors.
14670 * exec.c (add_target_sections): Push exec target on all inferiors
14671 sharing the program space.
14672 (remove_target_sections): Remove the exec target from all
14673 inferiors sharing the program space.
14674 (exec_on_vfork): New.
14675 * exec.h (exec_on_vfork): Declare.
14676 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14677 Pass it down.
14678 (fbsd_nat_target::update_thread_list): Adjust.
14679 (fbsd_nat_target::resume): Adjust.
14680 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14681 down.
14682 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14683 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14684 get_thread_arch_regcache call.
14685 * fork-child.c (gdb_startup_inferior): Pass target down to
14686 startup_inferior and set_executing.
14687 * gdbthread.h (struct process_stratum_target): Forward declare.
14688 (add_thread, add_thread_silent, add_thread_with_info)
14689 (in_thread_list): Add process_stratum_target parameter.
14690 (find_thread_ptid(inferior*, ptid_t)): New overload.
14691 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14692 parameter.
14693 (all_threads()): Delete overload.
14694 (all_threads, all_non_exited_threads): Add process_stratum_target
14695 parameter.
14696 (all_threads_safe): Use brace initialization.
14697 (thread_count): Add process_stratum_target parameter.
14698 (set_resumed, set_running, set_stop_requested, set_executing)
14699 (threads_are_executing, finish_thread_state): Add
14700 process_stratum_target parameter.
14701 (switch_to_thread): Use is_current_thread.
14702 * i386-fbsd-tdep.c: Include "inferior.h".
14703 (i386fbsd_get_thread_local_address): Pass down target.
14704 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14705 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14706 have_inferiors check.
14707 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14708 (inf_ptrace_target::attach): Adjust.
14709 * infcall.c (run_inferior_call): Adjust.
14710 * infcmd.c (run_command_1): Pass target to
14711 scoped_finish_thread_state.
14712 (proceed_thread_callback): Skip inferiors with no execution.
14713 (continue_command): Rename 'all_threads' local to avoid hiding
14714 'all_threads' function. Adjust get_last_target_status call.
14715 (prepare_one_step): Adjust set_running call.
14716 (signal_command): Use user_visible_resume_target. Compare thread
14717 pointers instead of inferior_ptid.
14718 (info_program_command): Adjust to pass down target.
14719 (attach_command): Mark target's 'thread_executing' flag.
14720 (stop_current_target_threads_ns): New, factored out from ...
14721 (interrupt_target_1): ... this. Switch inferior before making
14722 target calls.
14723 * inferior-iter.h
14724 (struct all_inferiors_iterator, struct all_inferiors_range)
14725 (struct all_inferiors_safe_range)
14726 (struct all_non_exited_inferiors_range): Filter on
14727 process_stratum_target too. Remove explicit.
14728 * inferior.c (inferior::inferior): Push dummy target on target
14729 stack.
14730 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14731 Add process_stratum_target parameter, and pass it down.
14732 (have_live_inferiors): Adjust.
14733 (switch_to_inferior_and_push_target): New.
14734 (add_inferior_command, clone_inferior_command): Handle
14735 "-no-connection" parameter. Use
14736 switch_to_inferior_and_push_target.
14737 (_initialize_inferior): Mention "-no-connection" option in
14738 the help of "add-inferior" and "clone-inferior" commands.
14739 * inferior.h: Include "process-stratum-target.h".
14740 (interrupt_target_1): Use bool.
14741 (struct inferior) <push_target, unpush_target, target_is_pushed,
14742 find_target_beneath, top_target, process_target, target_at,
14743 m_stack>: New.
14744 (discard_all_inferiors): Delete.
14745 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14746 (all_inferiors, all_non_exited_inferiors): Add
14747 process_stratum_target parameter.
14748 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14749 (target_last_proc_target): New global.
14750 (follow_fork_inferior): Push target on new inferior. Pass target
14751 to add_thread_silent. Call exec_on_vfork. Handle target's
14752 reference count.
14753 (follow_fork): Adjust get_last_target_status call. Also consider
14754 target.
14755 (follow_exec): Push target on new inferior.
14756 (struct execution_control_state) <target>: New field.
14757 (user_visible_resume_target): New.
14758 (do_target_resume): Call target_async.
14759 (resume_1): Set target's threads_executing flag. Consider resume
14760 target.
14761 (commit_resume_all_targets): New.
14762 (proceed): Also consider resume target. Skip threads of inferiors
14763 with no execution. Commit resumtion in all targets.
14764 (start_remote): Pass current inferior to wait_for_inferior.
14765 (infrun_thread_stop_requested): Consider target as well. Pass
14766 thread_info pointer to clear_inline_frame_state instead of ptid.
14767 (infrun_thread_thread_exit): Consider target as well.
14768 (random_pending_event_thread): New inferior parameter. Use it.
14769 (do_target_wait): Rename to ...
14770 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14771 down.
14772 (threads_are_resumed_pending_p, do_target_wait): New.
14773 (prepare_for_detach): Adjust calls.
14774 (wait_for_inferior): New inferior parameter. Handle it. Use
14775 do_target_wait_1 instead of do_target_wait.
14776 (fetch_inferior_event): Adjust. Switch to representative
14777 inferior. Pass target down.
14778 (set_last_target_status): Add process_stratum_target parameter.
14779 Save target in global.
14780 (get_last_target_status): Add process_stratum_target parameter and
14781 handle it.
14782 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14783 (context_switch): Check inferior_ptid == null_ptid before calling
14784 inferior_thread().
14785 (get_inferior_stop_soon): Pass down target.
14786 (wait_one): Rename to ...
14787 (poll_one_curr_target): ... this.
14788 (struct wait_one_event): New.
14789 (wait_one): New.
14790 (stop_all_threads): Adjust.
14791 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14792 event's target.
14793 (switch_back_to_stepped_thread): Also consider target.
14794 (print_stop_event): Update.
14795 (normal_stop): Update. Also consider the resume target.
14796 * infrun.h (wait_for_inferior): Remove declaration.
14797 (user_visible_resume_target): New declaration.
14798 (get_last_target_status, set_last_target_status): New
14799 process_stratum_target parameter.
14800 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14801 process_stratum_target parameter, and use it.
14802 (clear_inline_frame_state (thread_info*)): New.
14803 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14804 process_stratum_target parameter.
14805 (clear_inline_frame_state (thread_info*)): Declare.
14806 * linux-fork.c (delete_checkpoint_command): Pass target down to
14807 find_thread_ptid.
14808 (checkpoint_command): Adjust.
14809 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14810 instead of just tweaking inferior_ptid.
14811 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14812 (exit_lwp): Pass target down to find_thread_ptid.
14813 (attach_proc_task_lwp_callback): Pass target down to
14814 add_thread/set_running/set_executing.
14815 (linux_nat_target::attach): Pass target down to
14816 thread_change_ptid.
14817 (get_detach_signal): Pass target down to find_thread_ptid.
14818 Consider last target status's target.
14819 (linux_resume_one_lwp_throw, resume_lwp)
14820 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14821 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14822 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14823 (linux_nat_target::async_wait_fd): New.
14824 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14825 target down.
14826 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14827 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14828 * linux-thread-db.c (struct thread_db_info::process_target): New
14829 field.
14830 (add_thread_db_info): Save target.
14831 (get_thread_db_info): New process_stratum_target parameter. Also
14832 match target.
14833 (delete_thread_db_info): New process_stratum_target parameter.
14834 Also match target.
14835 (thread_from_lwp): Adjust to pass down target.
14836 (thread_db_notice_clone): Pass down target.
14837 (check_thread_db_callback): Pass down target.
14838 (try_thread_db_load_1): Always push the thread_db target.
14839 (try_thread_db_load, record_thread): Pass target down.
14840 (thread_db_target::detach): Pass target down. Always unpush the
14841 thread_db target.
14842 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14843 target down. Always unpush the thread_db target.
14844 (find_new_threads_callback, thread_db_find_new_threads_2)
14845 (thread_db_target::update_thread_list): Pass target down.
14846 (thread_db_target::pid_to_str): Pass current inferior down.
14847 (thread_db_target::get_thread_local_address): Pass target down.
14848 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14849 target down.
14850 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14851 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14852 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14853 (procfs_init_inferior): Rename to ...
14854 (procfs_target::procfs_init_inferior): ... this and adjust.
14855 (procfs_target::create_inferior, procfs_notice_thread)
14856 (procfs_do_thread_registers): Adjust.
14857 * ppc-fbsd-tdep.c: Include "inferior.h".
14858 (ppcfbsd_get_thread_local_address): Pass down target.
14859 * proc-service.c (ps_xfer_memory): Switch current inferior and
14860 program space as well.
14861 (get_ps_regcache): Pass target down.
14862 * process-stratum-target.c
14863 (process_stratum_target::thread_address_space)
14864 (process_stratum_target::thread_architecture): Pass target down.
14865 * process-stratum-target.h
14866 (process_stratum_target::threads_executing): New field.
14867 (as_process_stratum_target): New.
14868 * ravenscar-thread.c
14869 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14870 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14871 down.
14872 * record-btrace.c (record_btrace_target::info_record): Adjust.
14873 (record_btrace_target::record_method)
14874 (record_btrace_target::record_is_replaying)
14875 (record_btrace_target::fetch_registers)
14876 (get_thread_current_frame_id, record_btrace_target::resume)
14877 (record_btrace_target::wait, record_btrace_target::stop): Pass
14878 target down.
14879 * record-full.c (record_full_wait_1): Switch to event thread.
14880 Pass target down.
14881 * regcache.c (regcache::regcache)
14882 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14883 process_stratum_target parameter and handle it.
14884 (current_thread_target): New global.
14885 (get_thread_regcache): Add process_stratum_target parameter and
14886 handle it. Switch inferior before calling target method.
14887 (get_thread_regcache): Pass target down.
14888 (get_thread_regcache_for_ptid): Pass target down.
14889 (registers_changed_ptid): Add process_stratum_target parameter and
14890 handle it.
14891 (registers_changed_thread, registers_changed): Pass target down.
14892 (test_get_thread_arch_aspace_regcache): New.
14893 (current_regcache_test): Define a couple local test_target_ops
14894 instances and use them for testing.
14895 (readwrite_regcache): Pass process_stratum_target parameter.
14896 (cooked_read_test, cooked_write_test): Pass mock_target down.
14897 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14898 (get_thread_arch_aspace_regcache): Add process_stratum_target
14899 parameter.
14900 (regcache::target): New method.
14901 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14902 (regcache::registers_changed_ptid): Add process_stratum_target
14903 parameter.
14904 (regcache::m_target): New field.
14905 (registers_changed_ptid): Add process_stratum_target parameter.
14906 * remote.c (remote_state::supports_vCont_probed): New field.
14907 (remote_target::async_wait_fd): New method.
14908 (remote_unpush_and_throw): Add remote_target parameter.
14909 (get_current_remote_target): Adjust.
14910 (remote_target::remote_add_inferior): Push target.
14911 (remote_target::remote_add_thread)
14912 (remote_target::remote_notice_new_inferior)
14913 (get_remote_thread_info): Pass target down.
14914 (remote_target::update_thread_list): Skip threads of inferiors
14915 bound to other targets. (remote_target::close): Don't discard
14916 inferiors. (remote_target::add_current_inferior_and_thread)
14917 (remote_target::process_initial_stop_replies)
14918 (remote_target::start_remote)
14919 (remote_target::remote_serial_quit_handler): Pass down target.
14920 (remote_target::remote_unpush_target): New remote_target
14921 parameter. Unpush the target from all inferiors.
14922 (remote_target::remote_unpush_and_throw): New remote_target
14923 parameter. Pass it down.
14924 (remote_target::open_1): Check whether the current inferior has
14925 execution instead of checking whether any inferior is live. Pass
14926 target down.
14927 (remote_target::remote_detach_1): Pass down target. Use
14928 remote_unpush_target.
14929 (extended_remote_target::attach): Pass down target.
14930 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14931 (remote_target::append_resumption): Pass down target.
14932 (remote_target::append_pending_thread_resumptions)
14933 (remote_target::remote_resume_with_hc, remote_target::resume)
14934 (remote_target::commit_resume): Pass down target.
14935 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14936 (remote_target::interrupt_query)
14937 (remote_target::remove_new_fork_children)
14938 (remote_target::check_pending_events_prevent_wildcard_vcont)
14939 (remote_target::remote_parse_stop_reply)
14940 (remote_target::process_stop_reply): Pass down target.
14941 (first_remote_resumed_thread): New remote_target parameter. Pass
14942 it down.
14943 (remote_target::wait_as): Pass down target.
14944 (unpush_and_perror): New remote_target parameter. Pass it down.
14945 (remote_target::readchar, remote_target::remote_serial_write)
14946 (remote_target::getpkt_or_notif_sane_1)
14947 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14948 down target.
14949 (remote_target::mourn_inferior): Pass down target. Use
14950 remote_unpush_target.
14951 (remote_target::core_of_thread)
14952 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14953 (remote_target::pid_to_exec_file)
14954 (remote_target::thread_handle_to_thread_info): Pass down target.
14955 (remote_target::async_wait_fd): New.
14956 * riscv-fbsd-tdep.c: Include "inferior.h".
14957 (riscv_fbsd_get_thread_local_address): Pass down target.
14958 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14959 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14960 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14961 Adjust.
14962 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14963 * solib-svr4.c (enable_break): Pass down target.
14964 * spu-multiarch.c (parse_spufs_run): Pass down target.
14965 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14966 * target-delegates.c: Regenerate.
14967 * target.c (g_target_stack): Delete.
14968 (current_top_target): Return the current inferior's top target.
14969 (target_has_execution_1): Refer to the passed-in inferior's top
14970 target.
14971 (target_supports_terminal_ours): Check whether the initial
14972 inferior was already created.
14973 (decref_target): New.
14974 (target_stack::push): Incref/decref the target.
14975 (push_target, push_target, unpush_target): Adjust.
14976 (target_stack::unpush): Defref target.
14977 (target_is_pushed): Return bool. Adjust to refer to the current
14978 inferior's target stack.
14979 (dispose_inferior): Delete, and inline parts ...
14980 (target_preopen): ... here. Only dispose of the current inferior.
14981 (target_detach): Hold strong target reference while detaching.
14982 Pass target down.
14983 (target_thread_name): Add assertion.
14984 (target_resume): Pass down target.
14985 (target_ops::beneath, find_target_at): Adjust to refer to the
14986 current inferior's target stack.
14987 (get_dummy_target): New.
14988 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14989 has a thread running.
14990 (initialize_targets): Rename to ...
14991 (_initialize_target): ... this.
14992 * target.h: Include "gdbsupport/refcounted-object.h".
14993 (struct target_ops): Inherit refcounted_object.
14994 (target_ops::shortname, target_ops::longname): Make const.
14995 (target_ops::async_wait_fd): New method.
14996 (decref_target): Declare.
14997 (struct target_ops_ref_policy): New.
14998 (target_ops_ref): New typedef.
14999 (get_dummy_target): Declare function.
15000 (target_is_pushed): Return bool.
15001 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15002 (all_matching_threads_iterator::all_matching_threads_iterator):
15003 Handle filter target.
15004 * thread-iter.h (struct all_matching_threads_iterator, struct
15005 all_matching_threads_range, class all_non_exited_threads_range):
15006 Filter by target too. Remove explicit.
15007 * thread.c (threads_executing): Delete.
15008 (inferior_thread): Pass down current inferior.
15009 (clear_thread_inferior_resources): Pass down thread pointer
15010 instead of ptid_t.
15011 (add_thread_silent, add_thread_with_info, add_thread): Add
15012 process_stratum_target parameter. Use it for thread and inferior
15013 searches.
15014 (is_current_thread): New.
15015 (thread_info::deletable): Use it.
15016 (find_thread_ptid, thread_count, in_thread_list)
15017 (thread_change_ptid, set_resumed, set_running): New
15018 process_stratum_target parameter. Pass it down.
15019 (set_executing): New process_stratum_target parameter. Pass it
15020 down. Adjust reference to 'threads_executing'.
15021 (threads_are_executing): New process_stratum_target parameter.
15022 Adjust reference to 'threads_executing'.
15023 (set_stop_requested, finish_thread_state): New
15024 process_stratum_target parameter. Pass it down.
15025 (switch_to_thread): Also match inferior.
15026 (switch_to_thread): New process_stratum_target parameter. Pass it
15027 down.
15028 (update_threads_executing): Reimplement.
15029 * top.c (quit_force): Pop targets from all inferior.
15030 (gdb_init): Don't call initialize_targets.
15031 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15032 Declare.
15033 (windows_add_thread, windows_delete_thread): Adjust.
15034 (get_windows_debug_event): Rename to ...
15035 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15036 * tracefile-tfile.c (tfile_target_open): Pass down target.
15037 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15038 Forward declare.
15039 (switch_to_thread): Add process_stratum_target parameter.
15040 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15041 parameter. Use it.
15042 (mi_on_resume): Pass target down.
15043 * nat/fork-inferior.c (startup_inferior): Add
15044 process_stratum_target parameter. Pass it down.
15045 * nat/fork-inferior.h (startup_inferior): Add
15046 process_stratum_target parameter.
15047 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15048
15049 2020-01-10 Pedro Alves <palves@redhat.com>
15050
15051 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15052 directly. Instead find the first thread in the thread list and
15053 use switch_to_thread.
15054
15055 2020-01-10 Pedro Alves <palves@redhat.com>
15056
15057 * remote.c (remote_target::remote_add_inferior): Don't bind a
15058 process to the current inferior if the current inferior is already
15059 bound to a process.
15060
15061 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15062 Pedro Alves <palves@redhat.com>
15063
15064 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15065 If no process is specified, return null_ptid instead of
15066 inferior_ptid.
15067 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15068 TARGET_WAITKIND_SIGNALLED with no pid.
15069
15070 2020-01-10 Pedro Alves <palves@redhat.com>
15071
15072 * remote.c (first_remote_resumed_thread): New.
15073 (remote_target::wait_as): Use it as default event_ptid instead of
15074 inferior_ptid.
15075
15076 2020-01-10 Pedro Alves <palves@redhat.com>
15077
15078 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15079
15080 2020-01-10 Pedro Alves <palves@redhat.com>
15081
15082 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15083 not -1.
15084
15085 2020-01-10 Pedro Alves <palves@redhat.com>
15086
15087 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15088 ptid to get_last_target_status.
15089 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15090 ptid to get_last_target_status.
15091 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15092 get_last_target_status.
15093 (info_program_command): Don't pass a target_waitstatus to
15094 get_last_target_status.
15095 * infrun.c (init_wait_for_inferior): Use
15096 nullify_last_target_wait_ptid.
15097 (get_last_target_status): Handle nullptr arguments.
15098 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15099 (print_stop_event): Don't pass a ptid to get_last_target_status.
15100 (normal_stop): Don't pass a ptid to get_last_target_status.
15101 * infrun.h (get_last_target_status, set_last_target_status): Move
15102 comments here and update.
15103 (nullify_last_target_wait_ptid): Declare.
15104 * linux-fork.c (fork_load_infrun_state): Remove local extern
15105 declaration of nullify_last_target_wait_ptid.
15106 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15107 to get_last_target_status.
15108
15109 2020-01-10 Pedro Alves <palves@redhat.com>
15110
15111 * gdbthread.h (scoped_restore_current_thread)
15112 <dont_restore, restore, m_dont_restore>: Declare.
15113 * thread.c (thread_alive): Add assertion. Return bool.
15114 (switch_to_thread_if_alive): New.
15115 (prune_threads): Switch inferior/thread.
15116 (print_thread_info_1): Switch thread before calling target methods.
15117 (scoped_restore_current_thread::restore): New, factored out from
15118 ...
15119 (scoped_restore_current_thread::~scoped_restore_current_thread):
15120 ... this.
15121 (scoped_restore_current_thread::scoped_restore_current_thread):
15122 Add assertion.
15123 (thread_apply_all_command, thread_select): Use
15124 switch_to_thread_if_alive.
15125 * infrun.c (proceed, restart_threads, handle_signal_stop)
15126 (switch_back_to_stepped_thread): Switch current thread before
15127 calling target methods.
15128
15129 2020-01-10 Pedro Alves <palves@redhat.com>
15130
15131 * inferior.c (switch_to_inferior_no_thread): New function,
15132 factored out from ...
15133 (inferior_command): ... here.
15134 * inferior.h (switch_to_inferior_no_thread): Declare.
15135 * mi/mi-main.c (run_one_inferior): Use
15136 switch_to_inferior_no_thread.
15137
15138 2020-01-10 Pedro Alves <palves@redhat.com>
15139
15140 * infcmd.c (kill_command): Remove dead code.
15141
15142 2020-01-10 Pedro Alves <palves@redhat.com>
15143
15144 * remote.c (remote_target::mourn_inferior): No longer check
15145 whether the target is running.
15146
15147 2020-01-10 Pedro Alves <palves@redhat.com>
15148
15149 * corelow.c (core_target::has_execution): Change parameter type to
15150 inferior pointer.
15151 * inferior.c (number_of_live_inferiors): Use
15152 inferior::has_execution instead of target_has_execution_1.
15153 * inferior.h (inferior::has_execution): New.
15154 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15155 inferior::has_execution instead of target_has_execution_1.
15156 * process-stratum-target.c
15157 (process_stratum_target::has_execution): Change parameter type to
15158 inferior pointer. Check the inferior's PID instead of
15159 inferior_ptid.
15160 * process-stratum-target.h
15161 (process_stratum_target::has_execution): Change parameter type to
15162 inferior pointer.
15163 * record-full.c (record_full_core_target::has_execution): Change
15164 parameter type to inferior pointer.
15165 * target.c (target_has_execution_1): Change parameter type to
15166 inferior pointer.
15167 (target_has_execution_current): Adjust.
15168 * target.h (target_ops::has_execution): Change parameter type to
15169 inferior pointer.
15170 (target_has_execution_1): Change parameter type to inferior
15171 pointer. Change return type to bool.
15172 * tracefile.h (tracefile_target::has_execution): Change parameter
15173 type to inferior pointer.
15174
15175 2020-01-10 Pedro Alves <palves@redhat.com>
15176
15177 * exceptions.c (print_flush): Remove current_top_target() check.
15178
15179 2020-01-10 Pedro Alves <palves@redhat.com>
15180
15181 * remote.c (show_remote_exec_file): Show the current inferior's
15182 exec-file instead of the command variable's value.
15183
15184 2020-01-10 Pedro Alves <palves@redhat.com>
15185
15186 * record-full.c (record_full_resume_ptid): New global.
15187 (record_full_target::resume): Set it.
15188 (record_full_wait_1): Use record_full_resume_ptid instead of
15189 inferior_ptid.
15190
15191 2020-01-10 Pedro Alves <palves@redhat.com>
15192
15193 * gdbthread.h (scoped_restore_current_thread)
15194 <dont_restore, restore, m_dont_restore>: Declare.
15195 * thread.c (thread_alive): Add assertion. Return bool.
15196 (switch_to_thread_if_alive): New.
15197 (prune_threads): Switch inferior/thread.
15198 (print_thread_info_1): Switch thread before calling target methods.
15199 (scoped_restore_current_thread::restore): New, factored out from
15200 ...
15201 (scoped_restore_current_thread::~scoped_restore_current_thread):
15202 ... this.
15203 (scoped_restore_current_thread::scoped_restore_current_thread):
15204 Add assertion.
15205 (thread_apply_all_command, thread_select): Use
15206 switch_to_thread_if_alive.
15207
15208 2020-01-10 George Barrett <bob@bob131.so>
15209
15210 * stap-probe.c (stap_modify_semaphore): Don't check for null
15211 semaphores.
15212 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15213 for null semaphores.
15214
15215 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15216
15217 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15218 all source windows, and maintain horizontal scroll status while
15219 doing so.
15220
15221 2020-01-09 Tom Tromey <tom@tromey.com>
15222
15223 PR tui/18932:
15224 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15225 update_source_window, not print_source_lines.
15226
15227 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15228
15229 * tui/tui.c (tui_enable): Register tui hooks after calling
15230 tui_display_main.
15231
15232 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15233
15234 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15235
15236 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15237
15238 * thread.c (print_thread_info_1): Fix indentation.
15239
15240 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15241
15242 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15243 unique_xmalloc_ptr outside the if to always free the demangled name.
15244
15245 2020-01-08 Tom Tromey <tromey@adacore.com>
15246
15247 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15248 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15249 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15250 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15251 Remove.
15252 (section_offsets): New typedef.
15253 * symtab.c (fixup_section, get_msymbol_address): Update.
15254 * symmisc.c (dump_msymbols): Update.
15255 * symfile.h (relative_addr_info_to_section_offsets)
15256 (symfile_map_offsets_to_segments): Update.
15257 * symfile.c (build_section_addr_info_from_objfile)
15258 (init_objfile_sect_indices): Update.
15259 (struct place_section_arg): Change type of "offsets".
15260 (place_section): Update.
15261 (relative_addr_info_to_section_offsets): Change type of
15262 "section_offsets". Remove "num_sections" parameter.
15263 (default_symfile_offsets, syms_from_objfile_1)
15264 (set_objfile_default_section_offset): Update.
15265 (reread_symbols): No need to preserve section offsets by hand.
15266 (symfile_map_offsets_to_segments): Change type of "offsets".
15267 * stap-probe.c (relocate_address): Update.
15268 * stabsread.h (process_one_symbol): Update.
15269 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15270 (solib_target_relocate_section_addresses): Update.
15271 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15272 Update.
15273 * solib-frv.c (frv_relocate_main_executable): Update.
15274 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15275 * solib-aix.c (solib_aix_get_section_offsets): Change return
15276 type.
15277 (solib_aix_solib_create_inferior_hook): Update.
15278 * remote.c (remote_target::get_offsets): Update.
15279 * psymtab.c (find_pc_sect_psymtab): Update.
15280 * psympriv.h (struct partial_symbol) <address, text_low,
15281 text_high>: Update.
15282 * objfiles.h (obj_section_offset): Update.
15283 (struct objfile) <section_offsets>: Change type.
15284 <num_sections>: Remove.
15285 (objfile_relocate): Update.
15286 * objfiles.c (entry_point_address_query): Update
15287 (relocate_one_symbol): Change type of "section_offsets".
15288 (objfile_relocate1, objfile_relocate1): Change type of
15289 "new_offsets".
15290 (objfile_rebase1): Update.
15291 * mipsread.c (mipscoff_symfile_read): Update.
15292 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15293 parameter.
15294 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15295 (parse_external, psymtab_to_symtab_1): Update.
15296 * machoread.c (macho_symfile_offsets): Update.
15297 * ia64-tdep.c (ia64_find_unwind_table): Update.
15298 * hppa-tdep.c (read_unwind_info): Update.
15299 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15300 * dwarf2read.c (create_addrmap_from_index)
15301 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15302 (process_psymtab_comp_unit_reader, add_partial_symbol)
15303 (add_partial_subprogram, process_full_comp_unit)
15304 (read_file_scope, read_func_scope, read_lexical_block_scope)
15305 (read_call_site_scope, dwarf2_rnglists_process)
15306 (dwarf2_ranges_process, dwarf2_ranges_read)
15307 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15308 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15309 Update.
15310 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15311 Update.
15312 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15313 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15314 (process_one_symbol): Change type of "section_offsets".
15315 * ctfread.c (get_objfile_text_range): Update.
15316 * coffread.c (coff_symtab_read, enter_linenos)
15317 (process_coff_symbol): Update.
15318 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15319 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15320
15321 2020-01-08 Tom Tromey <tromey@adacore.com>
15322
15323 * dwarf2read.c (parse_macro_definition): Use std::string.
15324 (parse_macro_definition): Likewise.
15325
15326 2020-01-08 Tom Tromey <tromey@adacore.com>
15327
15328 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15329 (ATTR_ALLOC_CHUNK): Remove.
15330
15331 2020-01-08 Tom Tromey <tromey@adacore.com>
15332
15333 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15334
15335 2020-01-08 Tom Tromey <tromey@adacore.com>
15336
15337 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15338 (dwarf2_compute_name, open_dwo_file): Likewise.
15339 (process_enumeration_scope): Use std::vector.
15340 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15341 (partial_die_info::fixup, dwarf2_start_subfile)
15342 (guess_full_die_structure_name, dwarf2_name): Likewise.
15343 (determine_prefix): Update.
15344 (guess_full_die_structure_name): Make return type const.
15345 (partial_die_full_name): Return unique_xmalloc_ptr.
15346 (DW_FIELD_ALLOC_CHUNK): Remove.
15347
15348 2020-01-07 Tom Tromey <tromey@adacore.com>
15349
15350 PR build/24937:
15351 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15352
15353 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15354
15355 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15356
15357 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15358
15359 * stack.c (print_frame_info): Move disassemble_next_line code
15360 inside source_print block.
15361
15362 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15363
15364 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15365 gdb/signals.h, as we are now using native signal symbols.
15366
15367 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15368
15369 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15370 overflow by an early check of content vs threshold.
15371 * tui/tui-source.c (tui_source_window::line_is_displayed):
15372 Likewise.
15373
15374 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15375
15376 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15377
15378 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15379
15380 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15381 export table if no section contains it's RVA.
15382
15383 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15384
15385 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15386
15387 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15388
15389 * source.c (print_source_lines_base): Set last_line_listed.
15390
15391 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15392
15393 * tui/tui-disasm.c: Remove trailing spaces.
15394
15395 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15396 Pedro Alves <palves@redhat.com>
15397
15398 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15399 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15400 (windows_gdb_signal_to_target): New function, uses the above
15401 enumeration to convert GDB internal signal codes to equivalent
15402 Windows codes.
15403 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15404 * windows-nat.c: Include "gdb_wait.h".
15405 (get_windows_debug_event): Extract the fatal exception from the
15406 exit status and convert to the equivalent Posix signal number.
15407 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15408 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15409 * gdbsupport/gdb_wait.c: New file, implements
15410 windows_status_to_termsig.
15411 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15412 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15413
15414 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15415
15416 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15417 show_layout.
15418
15419 2020-01-05 Luis Machado <luis.machado@linaro.org>
15420
15421 * aarch64-linux-nat.c
15422 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15423 and bfd_mach_aarch64.
15424
15425 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15426
15427 * ui-file.c (stdio_file::can_emit_style_escape)
15428 (tee_file::can_emit_style_escape): Ensure style is used also on
15429 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15430 to gdb_stdout.
15431 * main.c (set_gdb_data_directory): Use file style to output the
15432 warning that the given pathname is not a directory.
15433 * top.c (show_history_filename, gdb_safe_append_history)
15434 (show_gdb_datadir): Use file style.
15435
15436 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15437
15438 * solib-target.c (struct lm_info_target):
15439 Change offsets to be a unique_xmalloc_ptr.
15440 (solib_target_relocate_section_addresses): Update.
15441
15442 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15443
15444 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15445
15446 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15447
15448 * MAINTAINERS (Write After Approval): Add myself.
15449
15450 2020-01-02 Luis Machado <luis.machado@linaro.org>
15451
15452 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15453 Cell BE architecture.
15454 * target.h (struct target_ops) <thread_architecture>: Likewise.
15455
15456 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15457
15458 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15459
15460 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15461
15462 * MAINTAINERS (Write After Approval): Add myself.
15463
15464 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15465
15466 * gdbarch.sh: Update copyright year range of generated files.
15467
15468 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15469
15470 Update copyright year range in all GDB files.
15471
15472 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15473
15474 * copyright.py: Convert to Python 3.
15475
15476 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15477
15478 * copyright.py: Adapt after move of gnulib directory from gdb
15479 directory to toplevel directory.
15480
15481 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15482
15483 * copyright.py (main): Exit if run from the wrong directory.
15484
15485 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15486
15487 * top.c (print_gdb_version): Change copyright year to 2020.
15488
15489 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15490
15491 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15492
15493 For older changes see ChangeLog-2019.
15494 \f
15495 Local Variables:
15496 mode: change-log
15497 left-margin: 8
15498 fill-column: 74
15499 version-control: never
15500 coding: utf-8
15501 End: