gdb: Convert enum range_type to a bit field enum
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * expprint.c (print_subexp_standard): Update to reflect changes to
4 enum range_type.
5 (dump_subexp_body_standard): Likewise.
6 * expression.h (enum range_type): Convert to a bit field enum, and
7 make the enum unsigned.
8 * f-exp.y (subrange): Update to reflect changes to enum
9 range_type.
10 * f-lang.c (value_f90_subarray): Likewise.
11 * parse.c (operator_length_standard): Likewise.
12 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
13 * rust-lang.c (rust_range): Likewise.
14 (rust_compute_range): Likewise.
15 (rust_subscript): Likewise.
16
17 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
18
19 * infrun.c (displaced_step_in_progress_thread): Fix comment.
20 (displaced_step_in_progress): Fix comment.
21
22 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * gdbarch.sh (make_corefile_notes): Return unique pointer.
25 * gdbarch.c: Re-generate.
26 * gdbarch.h: Re-generate.
27 * gcore.c (write_gcore_file_1): Adjust.
28 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
29 constructor.
30 <note_data>: Change type to unique pointer.
31 <abort_iteration>: Change type to bool.
32 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
33 (fbsd_collect_thread_registers): Return void, adjust.
34 (struct fbsd_corefile_thread_data): Add construtor.
35 <note_data>: Change type to unique pointer.
36 (fbsd_corefile_thread): Adjust.
37 (fbsd_make_corefile_notes): Return unique pointer, adjust.
38 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
39 to unique pointer, adjust.
40 (struct linux_collect_regset_section_cb_data): Add constructor.
41 <note_data>: Change type to unique pointer.
42 <abort_iteration>: Change type to bool.
43 (linux_collect_thread_registers): Return void, adjust.
44 (struct linux_corefile_thread_data): Add constructor.
45 <note_data>: Change type to unique pointer.
46 (linux_corefile_thread): Adjust.
47 (linux_make_corefile_notes): Return unique pointer, adjust.
48
49 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
52 * gdbarch.c: Re-generate.
53 * gdbarch.h: Re-generate.
54 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
55 bool.
56 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
57 Likewise.
58 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
59 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
60 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
61 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
62
63 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
64
65 * gdbarch.sh: Make generated predicates return bool.
66 * gdbarch.c: Re-generate.
67 * gdbarch.h: Re-generate.
68
69 2020-10-20 Tom Tromey <tom@tromey.com>
70
71 * varobj-iter.h (struct varobj_item): Remove typedef.
72
73 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * infrun.c (currently_stepping): Change int to bool
76 (maybe_software_singlestep): Likewise.
77 (show_stop_on_solib_events): Likewise.
78 (stepping_past_nonsteppable_watchpoint): Likewise.
79 (displaced_step_in_progress_any_inferior): Likewise.
80 (displaced_step_in_progress_thread): Likewise.
81 (keep_going_stepped_thread): Likewise.
82 (thread_still_needs_step_over): Likewise.
83 (start_step_over): Likewise.
84 (do_target_resume): Likewise.
85 (resume_1): Likewise.
86 (clear_proceed_status): Likewise.
87 (thread_still_needs_step_over_bp): Likewise.
88 (proceed): Likewise.
89 (switch_back_to_stepped_thread): Likewise.
90 (adjust_pc_after_break): Likewise.
91 (stepped_in_from): Likewise.
92 (handle_stop_requested): Likewise.
93 (handle_syscall_event): Likewise.
94 (handle_no_resumed): Likewise.
95 (handle_inferior_event): Likewise.
96 (finish_step_over): Likewise.
97 (handle_signal_stop): Likewise.
98 (process_event_stop_test): Likewise.
99
100 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * infrun.c (get_displaced_stepping_state): Fix comment.
103
104 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
105
106 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
107
108 2020-10-19 Tom Tromey <tromey@adacore.com>
109
110 PR tui/26719
111 * tui/tui-winsource.h (struct tui_source_window_base)
112 <refresh_window>: Rename from refresh_pad.
113 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
114 Rename from refresh_pad.
115 (tui_source_window_base::show_source_content)
116 (tui_source_window_base::do_scroll_horizontal): Update.
117
118 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 * thread.c (_initialize_thread): Fine-tune the help text of
121 'info threads'.
122
123 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
124
125 * frame.c: Remove the unused 'uinteger_option_def' type alias.
126
127 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
128
129 * breakpoint.c (handle_jit_event): Add an argument, change how
130 `jit_event_handler` is called.
131
132 2020-10-17 Tom Tromey <tom@tromey.com>
133
134 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
135 (scan_xcoff_symtab): Update.
136 * psymtab.h (class psymtab_storage) <global_psymbols,
137 static_psymbols, current_global_psymbols,
138 current_static_psymbols>: Remove.
139 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
140 (match_partial_symbol, lookup_partial_symbol): Update.
141 (print_partial_symbols): Change parameters.
142 (dump_psymtab, recursively_search_psymtabs)
143 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
144 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
145 (concat): Remove.
146 (end_psymtab_common): Simplify.
147 (append_psymbol_to_list): Change parameters.
148 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
149 (init_psymbol_list): Simplify.
150 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
151 * psympriv.h (struct partial_symtab) <empty>: New method.
152 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
153 Remove.
154 <global_psymbols, static_psymbols>: New members.
155 <add_psymbol>: New methods.
156 (add_psymbol_to_list): Don't declare.
157 (psymbol_placement): Move earlier.
158 * mdebugread.c (parse_partial_symbols): Update.
159 (handle_psymbol_enumerators): Change parameters.
160 (mdebug_expand_psymtab): Update.
161 * dwarf2/read.c (process_psymtab_comp_unit_reader)
162 (add_partial_symbol): Update.
163 * dwarf2/index-write.c (write_psymbols): Change parameters.
164 (write_one_signatured_type): Update.
165 (recursively_count_psymbols): Update.
166 (recursively_write_psymbols): Update.
167 (class debug_names) <recursively_write_psymbols>: Update.
168 <write_psymbols>: Change parameters.
169 <write_one_signatured_type>: Update.
170 * dbxread.c (read_dbx_symtab): Update.
171 (dbx_end_psymtab): Use partial_symtab::empty.
172 * ctfread.c (struct ctf_context) <pst>: New member.
173 (create_partial_symtab): Set it.
174 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
175 (scan_partial_symbols): Use the psymtab's context. Update.
176
177 2020-10-17 Tom Tromey <tom@tromey.com>
178
179 * valprint.c (generic_value_print): Remove comment.
180 * m2-valprint.c (m2_value_print_inner): Remove comment.
181 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
182 type.
183
184 2020-10-17 Tom de Vries <tdevries@suse.de>
185
186 PR symtab/26317
187 * source.c (select_source_symtab): Handling sal.symtab == NULL for
188 symbol main.
189
190 2020-10-14 Tom de Vries <tdevries@suse.de>
191
192 PR gdb/26733
193 * solib.c (solib_contains_address_p): Handle
194 'solib->sections == nullptr'.
195
196 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
197
198 PR gdb/26642
199 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
200 target can't do async.
201 * target.c (target_wait): Assert that we don't pass
202 TARGET_WNOHANG to a target that can't async.
203
204 2020-10-13 Kamil Rytarowski <n54@gmx.com>
205
206 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
207 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
208 * alpha-bsd-nat.c: Adjust include.
209 * alpha-bsd-tdep.h: Adjust comment.
210 * alpha-nbsd-tdep.c: Rename to ...
211 * alpha-netbsd-tdep.c: ... this, adjust include.
212 * amd64-nbsd-nat.c: Rename to ...
213 * amd64-netbsd-nat.c: ... this, adjust include.
214 * amd64-nbsd-tdep.c: Rename to ...
215 * amd64-netbsd-tdep.c: ... this, adjust include.
216 * amd64-tdep.h: Adjust include.
217 * arm-nbsd-nat.c: Rename to ...
218 * arm-netbsd-nat.c: ... this, adjust include.
219 * arm-nbsd-tdep.c: Rename to ...
220 * arm-netbsd-tdep.c: ... this, adjust include.
221 * arm-nbsd-tdep.h: Rename to ...
222 * arm-netbsd-tdep.h: ... this, adjust include.
223 * configure.nat: Adjust file lists.
224 * configure.tgt: Likewise.
225 * hppa-nbsd-nat.c: Rename to ...
226 * hppa-netbsd-nat.c: ... this, adjust include.
227 * hppa-nbsd-tdep.c: Rename to ...
228 * hppa-netbsd-tdep.c: ... this, adjust include.
229 * i386-nbsd-nat.c: Rename to ...
230 * i386-netbsd-nat.c: ... this, adjust include.
231 * i386-nbsd-tdep.c: Rename to ...
232 * i386-netbsd-tdep.c: ... this, adjust include.
233 * m68k-bsd-nat.c: Adjust include.
234 * mips-nbsd-nat.c: Rename to ...
235 * mips-netbsd-nat.c: ... this, adjust include.
236 * mips-nbsd-tdep.c: Rename to ...
237 * mips-netbsd-tdep.c: ... this, adjust include.
238 * mips-nbsd-tdep.h: Rename to ...
239 * mips-netbsd-tdep.h: ... this.
240 * nbsd-nat.c: Rename to ...
241 * netbsd-nat.c: ... this, adjust include.
242 * nbsd-nat.h: Rename to ...
243 * netbsd-nat.h: ... this, adjust include.
244 * nbsd-tdep.c: Rename to ...
245 * netbsd-tdep.c: ... this, adjust include.
246 * nbsd-tdep.h: Rename to ...
247 * netbsd-tdep.h: ... this.
248 * ppc-nbsd-nat.c: Rename to ...
249 * ppc-netbsd-nat.c: ... this, adjust include.
250 * ppc-nbsd-tdep.c: Rename to ...
251 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
252 * ppc-nbsd-tdep.h: Rename to ...
253 * ppc-netbsd-tdep.h: ... this.
254 * sh-nbsd-nat.c: Rename to ...
255 * sh-netbsd-nat.c: ... this, adjust include.
256 * sh-nbsd-tdep.c: Rename to ...
257 * sh-netbsd-tdep.c: ... this, adjust include.
258 * sparc-nbsd-nat.c: Rename to ...
259 * sparc-netbsd-nat.c: ... this.
260 * sparc-nbsd-tdep.c: Rename to ...
261 * sparc-netbsd-tdep.c: ... this, adjust include.
262 * sparc64-nbsd-nat.c: Rename to ...
263 * sparc64-netbsd-nat.c: ... this.
264 * sparc64-nbsd-tdep.c: Rename to ...
265 * sparc64-netbsd-tdep.c: ... this, adjust include.
266 * sparc64-tdep.h: Adjust comment.
267 * vax-bsd-nat.c: Adjust include.
268 * vax-nbsd-tdep.c: Rename to ...
269 * vax-netbsd-tdep.c: ... this, adjust include.
270
271 2020-10-12 Tom Tromey <tom@tromey.com>
272
273 * target.h (struct target_ops) <get_section_table>: Update.
274 (target_get_section_table): Update.
275 * target.c (target_get_section_table, target_section_by_addr)
276 (memory_xfer_partial_1): Update.
277 * target-section.h (target_section_table): Now an alias.
278 * target-delegates.c: Rebuild.
279 * target-debug.h (target_debug_print_target_section_table_p):
280 Rename from target_debug_print_struct_target_section_table_p.
281 * symfile.c (build_section_addr_info_from_section_table): Update.
282 * solib.c (solib_map_sections, solib_contains_address_p): Update.
283 * solib-svr4.c (scan_dyntag): Update.
284 * solib-dsbt.c (scan_dyntag): Update.
285 * remote.c (remote_target::remote_xfer_live_readonly_partial):
286 Update.
287 * record-full.c (record_full_core_target::xfer_partial): Update.
288 * progspace.h (struct program_space) <target_sections>: Update.
289 * exec.h (print_section_info): Update.
290 * exec.c (exec_target::close, build_section_table)
291 (add_target_sections, add_target_sections_of_objfile)
292 (remove_target_sections, exec_on_vfork)
293 (section_table_available_memory)
294 (section_table_xfer_memory_partial)
295 (exec_target::get_section_table, exec_target::xfer_partial)
296 (print_section_info, set_section_command)
297 (exec_set_section_address, exec_target::has_memory): Update.
298 * corelow.c (core_target::build_file_mappings)
299 (core_target::xfer_partial, core_target::info_proc_mappings)
300 (core_target::info_proc_mappings): Update.
301 * bfd-target.c (class target_bfd): Update
302
303 2020-10-12 Tom Tromey <tom@tromey.com>
304
305 * progspace.c (program_space::~program_space): Don't call
306 clear_section_table.
307 * exec.h (clear_section_table): Don't declare.
308 * exec.c (exec_target::close): Update.
309 (clear_section_table): Remove.
310
311 2020-10-12 Tom Tromey <tom@tromey.com>
312
313 * exec.c (add_target_sections_of_objfile): Simplify.
314
315 2020-10-12 Tom Tromey <tom@tromey.com>
316
317 * solib.c (solib_map_sections): Update.
318 * record-full.c (record_full_core_open_1): Update.
319 * exec.h (build_section_table): Return a target_section_table.
320 * exec.c (exec_file_attach): Update.
321 (build_section_table): Return a target_section_table.
322 * corelow.c (core_target::core_target): Update.
323 * bfd-target.c (target_bfd::target_bfd): Update.
324
325 2020-10-12 Tom Tromey <tom@tromey.com>
326
327 * target.c (target_section_by_addr, memory_xfer_partial_1):
328 Update.
329 * target-section.h (struct target_section_table): Use
330 std::vector.
331 * symfile.h (build_section_addr_info_from_section_table): Take a
332 target_section_table.
333 * symfile.c (build_section_addr_info_from_section_table): Take a
334 target_section_table.
335 * solist.h (struct so_list) <sections>: Change type.
336 <sections_end>: Remove.
337 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
338 (solib_contains_address_p): Update.
339 * solib-svr4.c (scan_dyntag): Update.
340 * solib-dsbt.c (scan_dyntag): Update.
341 * remote.c (remote_target::remote_xfer_live_readonly_partial):
342 Update.
343 * record-full.c (record_full_core_start, record_full_core_end):
344 Remove.
345 (record_full_core_sections): New global.
346 (record_full_core_open_1, record_full_core_target::xfer_partial):
347 Update.
348 * exec.h (build_section_table, section_table_xfer_memory_partial)
349 (add_target_sections): Take a target_section_table.
350 * exec.c (exec_file_attach, clear_section_table): Update.
351 (resize_section_table): Remove.
352 (build_section_table, add_target_sections): Take a
353 target_section_table.
354 (add_target_sections_of_objfile, remove_target_sections)
355 (exec_on_vfork): Update.
356 (section_table_available_memory): Take a target_section_table.
357 (section_table_read_available_memory): Update.
358 (section_table_xfer_memory_partial): Take a target_section_table.
359 (print_section_info, set_section_command)
360 (exec_set_section_address, exec_target::has_memory): Update.
361 * corelow.c (class core_target) <m_core_section_table,
362 m_core_file_mappings>: Remove braces.
363 <~core_target>: Remove.
364 (core_target::core_target): Update.
365 (core_target::~core_target): Remove.
366 (core_target::build_file_mappings)
367 (core_target::xfer_memory_via_mappings)
368 (core_target::xfer_partial, core_target::info_proc_mappings):
369 Update.
370 * bfd-target.c (target_bfd::xfer_partial): Update.
371 (target_bfd::target_bfd): Update.
372 (target_bfd::~target_bfd): Remove.
373
374 2020-10-12 Tom Tromey <tom@tromey.com>
375
376 * target.h (struct target_section, struct target_section_table):
377 Move to target-section.h.
378 * target-section.h: New file.
379
380 2020-10-12 Pedro Alves <pedro@palves.net>
381
382 PR exp/26602
383 * valops.c (struct struct_field_searcher): New.
384 (update_search_result): Rename to ...
385 (struct_field_searcher::update_result): ... this. Simplify
386 prototype. Record all found fields.
387 (do_search_struct_field): Rename to ...
388 (struct_field_searcher::search): ... this. Simplify prototype.
389 Maintain stack of visited baseclass path. Call update_result for
390 fields too. Keep searching fields in baseclasses instead of
391 stopping at the first found field.
392 (search_struct_field): Use struct_field_searcher. When looking
393 for fields, report ambiguous access attempts.
394
395 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * frame.c (inside_main_func): Check full symbols as well as
398 minimal symbols.
399
400 2020-10-09 Joel Brobecker <brobecker@adacore.com>
401
402 * ada-lang.c (advance_wild_match): Rewrite the function's
403 description. Change the type of target0, t0 and t1 to char.
404
405 2020-10-09 Tom Tromey <tromey@adacore.com>
406
407 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
408
409 2020-10-09 Tom Tromey <tromey@adacore.com>
410
411 * ada-lang.h (ada_encode): Return std::string.
412 * ada-lang.c (ada_encode_1): Return std::string.
413 (ada_encode): Likewise.
414 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
415 Update.
416 * ada-exp.y (block_lookup, write_var_or_type): Update.
417
418 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
419
420 PR exp/26714
421 * printcmd.c (print_formatted): Handle void results as
422 unformatted prints.
423
424 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * arch/aarch32.c (aarch32_create_target_description): Release the
427 target_desc_up as late as possible.
428 * arch/aarch64.c (aarch64_create_target_description): Likewise.
429 * arch/amd64.c (amd64_create_target_description): Likewise.
430 * arch/arc.c (arc_create_target_description): Return a
431 target_desc_up, don't release it.
432 * arch/arc.h (arc_create_target_description): Update declaration.
433 (arc_lookup_target_description): Move target_desc_up into the
434 cache, and return a borrowed pointer.
435 * arch/arm.c (arm_create_target_description): Release the
436 target_desc_up as late as possible.
437 * arch/i386.c (i386_create_target_description): Likewise.
438 * arch/riscv.h (riscv_create_target_description): Update
439 declaration to match definition.
440 * arch/tic6x.c (tic6x_create_target_description): Release the
441 target_desc_up as late as possible.
442
443 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
446 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
447
448 2020-10-09 Jan Vrany <jan.vrany@labware.com>
449
450 * source.c (directory_command): Notify observers that "directories"
451 parameter has changed.
452
453 2020-10-08 Tom Tromey <tom@tromey.com>
454
455 * cli/cli-cmds.c (print_disassembly): Style function name and
456 addresses. Add _() wrappers.
457
458 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
459
460 * NEWS: Mention ARC support in GDBserver.
461
462 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * arch/aarch32.c (aarch32_create_target_description): Release
465 unique_ptr returned from allocate_target_description.
466 * arch/aarch64.c (aarch64_create_target_description): Likewise.
467 * arch/amd64.c (amd64_create_target_description): Likewise.
468 * arch/arc.c (arc_create_target_description): Likewise.
469 * arch/arm.c (arm_create_target_description): Likewise.
470 * arch/i386.c (i386_create_target_description): Likewise.
471 * arch/riscv.c (riscv_create_target_description): Update return
472 type. Handle allocate_target_description returning a unique_ptr.
473 (riscv_lookup_target_description): Update to handle unique_ptr.
474 * arch/tic6x.c (tic6x_create_target_description): Release
475 unique_ptr returned from allocate_target_description.
476 * features/microblaze-with-stack-protect.c: Regenerate.
477 * features/microblaze.c: Regenerate.
478 * features/mips-dsp-linux.c: Regenerate.
479 * features/mips-linux.c: Regenerate.
480 * features/mips64-dsp-linux.c: Regenerate.
481 * features/mips64-linux.c: Regenerate.
482 * features/nds32.c: Regenerate.
483 * features/nios2.c: Regenerate.
484 * features/or1k.c: Regenerate.
485 * features/rs6000/powerpc-32.c: Regenerate.
486 * features/rs6000/powerpc-32l.c: Regenerate.
487 * features/rs6000/powerpc-403.c: Regenerate.
488 * features/rs6000/powerpc-403gc.c: Regenerate.
489 * features/rs6000/powerpc-405.c: Regenerate.
490 * features/rs6000/powerpc-505.c: Regenerate.
491 * features/rs6000/powerpc-601.c: Regenerate.
492 * features/rs6000/powerpc-602.c: Regenerate.
493 * features/rs6000/powerpc-603.c: Regenerate.
494 * features/rs6000/powerpc-604.c: Regenerate.
495 * features/rs6000/powerpc-64.c: Regenerate.
496 * features/rs6000/powerpc-64l.c: Regenerate.
497 * features/rs6000/powerpc-7400.c: Regenerate.
498 * features/rs6000/powerpc-750.c: Regenerate.
499 * features/rs6000/powerpc-860.c: Regenerate.
500 * features/rs6000/powerpc-altivec32.c: Regenerate.
501 * features/rs6000/powerpc-altivec32l.c: Regenerate.
502 * features/rs6000/powerpc-altivec64.c: Regenerate.
503 * features/rs6000/powerpc-altivec64l.c: Regenerate.
504 * features/rs6000/powerpc-e500.c: Regenerate.
505 * features/rs6000/powerpc-e500l.c: Regenerate.
506 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
507 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
508 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
509 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
510 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
511 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
512 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
513 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
514 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
515 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
516 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
517 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
518 * features/rs6000/powerpc-vsx32.c: Regenerate.
519 * features/rs6000/powerpc-vsx32l.c: Regenerate.
520 * features/rs6000/powerpc-vsx64.c: Regenerate.
521 * features/rs6000/powerpc-vsx64l.c: Regenerate.
522 * features/rs6000/rs6000.c: Regenerate.
523 * features/rx.c: Regenerate.
524 * features/s390-gs-linux64.c: Regenerate.
525 * features/s390-linux32.c: Regenerate.
526 * features/s390-linux32v1.c: Regenerate.
527 * features/s390-linux32v2.c: Regenerate.
528 * features/s390-linux64.c: Regenerate.
529 * features/s390-linux64v1.c: Regenerate.
530 * features/s390-linux64v2.c: Regenerate.
531 * features/s390-te-linux64.c: Regenerate.
532 * features/s390-tevx-linux64.c: Regenerate.
533 * features/s390-vx-linux64.c: Regenerate.
534 * features/s390x-gs-linux64.c: Regenerate.
535 * features/s390x-linux64.c: Regenerate.
536 * features/s390x-linux64v1.c: Regenerate.
537 * features/s390x-linux64v2.c: Regenerate.
538 * features/s390x-te-linux64.c: Regenerate.
539 * features/s390x-tevx-linux64.c: Regenerate.
540 * features/s390x-vx-linux64.c: Regenerate.
541 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
542 from allocate_target_description.
543 * target-descriptions.c (allocate_target_description): Update
544 return type.
545 (print_c_tdesc::visit_pre): Release unique_ptr returned from
546 allocate_target_description.
547
548 2020-10-07 Tom Tromey <tromey@adacore.com>
549
550 * unittests/search-memory-selftests.c: New file.
551 * Makefile.in (SELFTESTS_SRCS): Add
552 unittests/search-memory-selftests.c.
553
554 2020-10-07 Tom Tromey <tromey@adacore.com>
555
556 PR gdb/16930:
557 * findcmd.c (_initialize_mem_search): Mention that the range is
558 inclusive.
559
560 2020-10-07 Tom Tromey <tromey@adacore.com>
561
562 * target.h (simple_search_memory): Don't declare.
563 * target.c (simple_search_memory): Move to gdbsupport.
564 (default_search_memory): Update.
565 * remote.c (remote_target::search_memory): Update.
566
567 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
568
569 * Makefile.in (COMPILE): Add CXXFLAGS.
570 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
571 (check-headers): Add CXXFLAGS.
572
573 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
574
575 * arc-linux-tdep.h: New file.
576 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
577 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
578 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
579 arc_linux_gregset, arc_linux_v2_regset,
580 arc_linux_iterate_over_regset_sections,
581 arc_linux_core_read_description): Implement.
582 (arc_linux_init_osabi): Set iterate_over_regset_sections.
583 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
584 (arc_gdbarch_features_create): Add.
585 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
586
587 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
588
589 * arch/arc.h: Rename "arc_gdbarch_features" to
590 "arc_arch_features".
591 * arc-tdep.h: Likewise.
592 * arc-tdep.c: Likewise.
593
594 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
595
596 * infcmd.c (attach_command): Remove the redundant call to
597 `clear_proceed_status`.
598
599 2020-10-07 Kamil Rytarowski <n54@gmx.com>
600
601 * nat/netbsd-nat.c (write_memory, read_memory): Update.
602
603 2020-10-07 Kamil Rytarowski <n54@gmx.com>
604
605 * nat/netbsd-nat.c (write_memory, read_memory): Add.
606 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
607 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
608
609 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
612 (_initialize_break_catch_sig): Don't allocate array.
613
614 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
615
616 * symtab.c (find_pc_line): Return unmapped addresses when the
617 requested address is also unmapped.
618
619 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
620
621 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
622 tui/tui-out.h.
623
624 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
625
626 * amd64-windows-tdep.c (amd64_windows_return_value): Use
627 type::is_vector instead of TYPE_VECTOR.
628
629 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * auto-load.c (auto_load_objfile_script_1): Don't use
632 debugfile_holder as temporary variable when stripping drive
633 letter.
634
635 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
636
637 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
638 Add TYPE_CODE_COMPLEX.
639 (amd64_windows_return_value): Fix types returned via XMM0.
640
641 2020-10-05 Alan Hayward <alan.hayward@arm.com>
642
643 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
644 AArch64/ARM maintainers.
645
646 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * NEWS: Mention set/show debug event-loop.
649
650 2020-10-02 Tom Tromey <tromey@adacore.com>
651
652 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
653 REG_EXTENDED.
654
655 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
656
657 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
658 * procfs.c (procfs_inferior_created): Remove.
659 (_initialize_procfs): Don't register procfs_inferior_created.
660
661 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
662
663 * async-event.c (invoke_async_signal_handlers): Add debug
664 print.
665 (check_async_event_handlers): Likewise.
666 * event-top.c (show_debug_event_loop): New function.
667 (_initialize_event_top): Register "set debug event-loop"
668 setting.
669
670 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
673 * debug.h: Remove.
674 * infrun.c: Include gdbsupport/common-debug.h.
675 * linux-nat.c: Likewise.
676
677 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * async-event.h (create_async_signal_handler): Add name
680 parameter.
681 (create_async_event_handler): Likewise.
682 * async-event.c (struct async_signal_handler) <name>: New field.
683 (struct async_event_handler) <name>: New field.
684 (create_async_signal_handler): Assign name.
685 (create_async_event_handler): Assign name.
686 * event-top.c (async_init_signals): Pass name when creating
687 handler.
688 * infrun.c (_initialize_infrun): Likewise.
689 * record-btrace.c (record_btrace_push_target): Likewise.
690 * record-full.c (record_full_open): Likewise.
691 * remote-notif.c (remote_notif_state_allocate): Likewise.
692 * remote.c (remote_target::open_1): Likewise.
693 * tui/tui-win.c (tui_initialize_win): Likewise.
694
695 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
696
697 * async-event.c (initialize_async_signal_handlers): Pass name to
698 add_file_handler
699 * event-top.c (ui_register_input_event_handler): Likewise.
700 * linux-nat.c (linux_nat_target::async): Likewise.
701 * run-on-main-thread.c (_initialize_run_on_main_thread):
702 Likewise
703 * ser-base.c (reschedule): Likewise.
704 (ser_base_async): Likewise.
705 * tui/tui-io.c: Likewise.
706 * top.h (struct ui) <num>: New field.
707 * top.c (highest_ui_num): New variable.
708 (ui::ui): Initialize num.
709
710 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * observable.h <inferior_created>: Remove parameters. Update all
713 listeners.
714 * inferior.h (post_create_inferior): Remove target parameter.
715 Update all callers.
716
717 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
718
719 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
720 and DW_MACRO_undef_strx.
721 (dwarf_decode_macros): Likewise
722 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
723 which is the value of DW_AT_str_offsets_base.
724 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
725 str_offsets_base.
726
727 2020-10-01 Kamil Rytarowski <n54@gmx.com>
728
729 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
730
731 2020-10-01 Kamil Rytarowski <n54@gmx.com>
732
733 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
734 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
735
736 2020-10-01 Kamil Rytarowski <n54@gmx.com>
737
738 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
739
740 2020-09-30 Tom de Vries <tdevries@suse.de>
741
742 PR symtab/26683
743 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
744
745 2020-09-30 Tom Tromey <tromey@adacore.com>
746
747 * dwarf2/read.c (handle_variant): Use constant_value.
748
749 2020-09-29 Tom Tromey <tom@tromey.com>
750
751 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
752 (read_file_scope, dwarf2_get_pc_bounds)
753 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
754 (read_structure_type, handle_struct_member_die)
755 (read_enumeration_type, read_array_type, read_set_type)
756 (read_tag_pointer_type, read_tag_reference_type)
757 (read_subroutine_type, read_base_type, read_subrange_type)
758 (read_full_die_1, partial_die_info::read)
759 (partial_die_info::read, by, new_symbol)
760 (dwarf2_const_value_data, dwarf2_const_value_attr)
761 (dump_die_shallow, dwarf2_fetch_constant_bytes)
762 (prepare_one_comp_unit): Update.
763 * dwarf2/attribute.h (DW_UNSND): Remove.
764
765 2020-09-29 Tom Tromey <tom@tromey.com>
766
767 * dwarf2/read.c (read_func_scope, prototyped_function_p)
768 (read_subroutine_type, partial_die_info::read)
769 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
770 (dwarf2_add_member_fn): Update.
771 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
772 * dwarf2/attribute.c (attribute::as_boolean): New method.
773
774 2020-09-29 Tom Tromey <tom@tromey.com>
775
776 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
777 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
778 method.
779 * dwarf2/attribute.c (attribute::as_virtuality): New method.
780
781 2020-09-29 Tom Tromey <tom@tromey.com>
782
783 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
784 the attribute's form.
785
786 2020-09-29 Tom Tromey <tom@tromey.com>
787
788 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
789 (dwarf2_add_member_fn): Update.
790 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
791 * dwarf2/attribute.c (attribute::defaulted): New method, from
792 is_valid_DW_AT_defaulted.
793
794 2020-09-29 Tom Tromey <tom@tromey.com>
795
796 * dwarf2/read.c (dw2_get_file_names_reader)
797 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
798 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
799 (dwarf2_symbol_mark_computed): Use as_unsigned.
800 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
801 method.
802 <form_is_section_offset>: Update comment.
803
804 2020-09-29 Tom Tromey <tom@tromey.com>
805
806 * dwarf2/read.c (dwarf2_access_attribute): Rename from
807 dwarf2_default_access_attribute. Look up attribute.
808 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
809 Update.
810
811 2020-09-29 Tom Tromey <tom@tromey.com>
812
813 * dwarf2/read.c (skip_one_die): Update.
814 (read_full_die_1): Change how reprocessing is done.
815 (partial_die_info::read): Update.
816 (read_attribute_value): Remove need_reprocess parameter.
817 (read_attribute): Likewise.
818 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
819 New method.
820
821 2020-09-29 Tom Tromey <tom@tromey.com>
822
823 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
824 (dwarf2_const_value_attr, dump_die_shallow)
825 (dwarf2_fetch_constant_bytes): Update.
826 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
827 comment.
828 <set_address>: New method.
829 (DW_ADDR): Remove.
830 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
831 (attribute::as_string, attribute::as_address): Add assert.
832
833 2020-09-29 Tom Tromey <tom@tromey.com>
834
835 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
836 (read_attribute_reprocess, read_attribute_value): Update.
837 (read_attribute): Clear requires_reprocessing.
838 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
839 form_requires_reprocessing>: New methods.
840 <string_init>: Clear requires_reprocessing.
841 <set_unsigned_reprocess>: New method.
842 <name>: Shrink by one bit.
843 <requires_reprocessing>: New member.
844 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
845 method.
846
847 2020-09-29 Tom Tromey <tom@tromey.com>
848
849 * dwarf2/read.c (read_attribute_value): Update.
850 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
851 set_unsigned>: New methods.
852 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
853
854 2020-09-29 Tom Tromey <tom@tromey.com>
855
856 * dwarf2/read.c (get_alignment, read_array_order)
857 (read_attribute_value, dwarf2_const_value_attr)
858 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
859 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
860 New methods.
861 (DW_SND): Remove.
862
863 2020-09-29 Tom Tromey <tom@tromey.com>
864
865 * dwarf2/read.c (read_attribute_value, lookup_die_type)
866 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
867 Update.
868 * dwarf2/attribute.h (struct attribute) <as_signature,
869 set_signature>: New methods.
870 (DW_SIGNATURE): Remove.
871
872 2020-09-29 Tom Tromey <tom@tromey.com>
873
874 * dwarf2/read.c (read_call_site_scope)
875 (handle_data_member_location, dwarf2_add_member_fn)
876 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
877 (partial_die_info::read, read_attribute_value)
878 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
879 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
880 (dwarf2_symbol_mark_computed): Update.
881 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
882 methods.
883 (DW_BLOCK): Remove.
884 * dwarf2/attribute.c (attribute::form_is_block): Add
885 DW_FORM_data16.
886
887 2020-09-29 Tom Tromey <tom@tromey.com>
888
889 * dwarf2/read.c (read_cutu_die_from_dwo)
890 (read_attribute_reprocess, read_attribute_value, read_attribute)
891 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
892 (dwarf2_fetch_constant_bytes): Update.
893 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
894 <set_string_noncanonical, set_string_canonical>: New methods.
895 <string_is_canonical>: Update comment.
896 <canonical_string_p>: Add assert.
897 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
898 * dwarf2/attribute.c (attribute::form_is_string): New method.
899 (attribute::string): Use it.
900
901 2020-09-29 Tom Tromey <tom@tromey.com>
902
903 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
904 (dump_die_shallow): Use canonical_string_p.
905 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
906 method.
907
908 2020-09-29 Tom Tromey <tom@tromey.com>
909
910 * dwarf2/read.c (partial_die_info::read)
911 (dwarf2_const_value_attr, anonymous_struct_prefix, )
912 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
913 attribute::as_string.
914
915 2020-09-29 Tom Tromey <tom@tromey.com>
916
917 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
918 DW_ADDR.
919 (attribute::string): Don't use DW_STRING.
920 (attribute::get_ref_die_offset): Don't use DW_UNSND.
921 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
922
923 2020-09-29 Tom Tromey <tom@tromey.com>
924
925 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
926 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
927 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
928 * dwarf2/attribute.h (struct attribute): Rename methods.
929 * dwarf2/attribute.c (attribute::as_address): Rename from
930 value_as_address.
931 (attribute::as_string): Rename from value_as_string.
932
933 2020-09-29 Tom Tromey <tom@tromey.com>
934
935 * dwarf2/read.c (partial_die_info::read) <case
936 DW_AT_linkage_name>: Use value_as_string.
937 (dwarf2_string_attr): Use value_as_string.
938 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
939 method.
940 * dwarf2/attribute.c (attribute::value_as_string): New method.
941
942 2020-09-29 Pedro Alves <pedro@palves.net>
943
944 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
945 defined before using '#pragma GCC diagnostic' instead of checking
946 __clang__.
947
948 2020-09-28 Tom Tromey <tom@tromey.com>
949
950 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
951 (handle_signal_stop): Update.
952 * procfs.c (procfs_target::insert_watchpoint): Update.
953 * target.h (target_have_steppable_watchpoint): Now a function.
954
955 2020-09-28 Tom Tromey <tom@tromey.com>
956
957 * infrun.c (set_schedlock_func): Update.
958 * target.h (target_can_lock_scheduler): Now a function.
959
960 2020-09-28 Tom Tromey <tom@tromey.com>
961
962 * inferior.h (class inferior) <has_execution>: Update.
963 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
964 * valops.c (find_function_in_inferior)
965 (value_allocate_space_in_inferior): Update.
966 * top.c (kill_or_detach): Update.
967 * target.c (target_preopen, set_target_permissions): Update.
968 (target_has_execution_current): Remove.
969 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
970 Update.
971 * solib.c (update_solib_list, reload_shared_libraries): Update.
972 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
973 * solib-dsbt.c (enable_break): Update.
974 * score-tdep.c (score7_fetch_inst): Update.
975 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
976 Update.
977 * remote.c (remote_target::start_remote)
978 (remote_target::remote_check_symbols, remote_target::open_1)
979 (remote_target::remote_detach_1, remote_target::verify_memory)
980 (remote_target::xfer_partial, remote_target::read_description)
981 (remote_target::get_min_fast_tracepoint_insn_len): Update.
982 * record-full.c (record_full_open_1): Update.
983 * record-btrace.c (record_btrace_target_open): Update.
984 * objc-lang.c (lookup_objc_class, lookup_child_selector)
985 (value_nsstring): Update.
986 * linux-thread-db.c (add_thread_db_info)
987 (thread_db_find_new_threads_silently, check_thread_db_callback)
988 (try_thread_db_load_1, record_thread): Update.
989 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
990 Update.
991 * linux-fork.c (checkpoint_command): Update.
992 * infrun.c (set_non_stop, set_observer_mode)
993 (check_multi_target_resumption, for_each_just_stopped_thread)
994 (maybe_remove_breakpoints, normal_stop)
995 (class infcall_suspend_state): Update.
996 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
997 (info_program_command, attach_command): Update.
998 * infcall.c (call_function_by_hand_dummy): Update.
999 * inf-loop.c (inferior_event_handler): Update.
1000 * gcore.c (gcore_command, derive_heap_segment): Update.
1001 * exec.c (exec_file_command): Update.
1002 * eval.c (evaluate_subexp): Update.
1003 * compile/compile.c (compile_to_object): Update.
1004 * cli/cli-dump.c (restore_command): Update.
1005 * breakpoint.c (update_watchpoint)
1006 (update_inserted_breakpoint_locations)
1007 (insert_breakpoint_locations, get_bpstat_thread): Update.
1008 * target.h (target_has_execution): Remove macro.
1009 (target_has_execution_current): Don't declare.
1010 (target_has_execution): Rename from target_has_execution_1. Add
1011 argument default.
1012
1013 2020-09-28 Tom Tromey <tom@tromey.com>
1014
1015 * mi/mi-main.c (exec_reverse_continue)
1016 (mi_cmd_list_target_features): Update.
1017 * infrun.c (set_exec_direction_func): Update.
1018 * target.c (default_execution_direction): Update.
1019 * reverse.c (exec_reverse_once): Update.
1020 * target.h (target_can_execute_reverse): Now a function.
1021
1022 2020-09-28 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-regs.c (tui_get_register)
1025 (tui_data_window::show_registers): Update.
1026 * thread.c (scoped_restore_current_thread::restore)
1027 (scoped_restore_current_thread::scoped_restore_current_thread):
1028 Update.
1029 * regcache-dump.c (regcache_print): Update.
1030 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1031 Update.
1032 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1033 * mep-tdep.c (current_me_module, current_options): Update.
1034 * linux-thread-db.c (thread_db_load): Update.
1035 * infcmd.c (registers_info, info_vector_command)
1036 (info_float_command): Update.
1037 * ia64-tdep.c (ia64_frame_prev_register)
1038 (ia64_sigtramp_frame_prev_register): Update.
1039 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1040 * gcore.c (derive_stack_segment): Update.
1041 * frame.c (get_current_frame, has_stack_frames): Update.
1042 * findvar.c (language_defn::read_var_value): Update.
1043 * arm-tdep.c (arm_pc_is_thumb): Update.
1044 * target.c (target_has_registers): Rename from
1045 target_has_registers_1.
1046 * target.h (target_has_registers): Remove macro.
1047 (target_has_registers): Rename from target_has_registers_1.
1048
1049 2020-09-28 Tom Tromey <tom@tromey.com>
1050
1051 * windows-tdep.c (tlb_make_value): Update.
1052 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1053 * thread.c (scoped_restore_current_thread::restore)
1054 (scoped_restore_current_thread::scoped_restore_current_thread)
1055 (thread_command): Update.
1056 * stack.c (backtrace_command_1, frame_apply_level_command)
1057 (frame_apply_all_command, frame_apply_command): Update.
1058 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1059 Update.
1060 * gcore.c (derive_stack_segment): Update.
1061 * frame.c (get_current_frame, has_stack_frames): Update.
1062 * auxv.c (info_auxv_command): Update.
1063 * ada-tasks.c (ada_build_task_list): Update.
1064 * target.c (target_has_stack): Rename from target_has_stack_1.
1065 * target.h (target_has_stack): Remove macro.
1066 (target_has_stack): Rename from target_has_stack_1.
1067
1068 2020-09-28 Tom Tromey <tom@tromey.com>
1069
1070 * target.c (target_has_memory): Rename from target_has_memory_1.
1071 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1072 * thread.c (scoped_restore_current_thread::restore)
1073 (scoped_restore_current_thread::scoped_restore_current_thread):
1074 Update.
1075 * frame.c (get_current_frame, has_stack_frames): Update.
1076 * target.h (target_has_memory): Remove macro.
1077 (target_has_memory): Rename from target_has_memory_1.
1078
1079 2020-09-28 Tom Tromey <tom@tromey.com>
1080
1081 * target.c (target_has_all_memory_1): Remove.
1082 * target.h (target_has_all_memory): Remove define.
1083 (target_has_all_memory_1): Don't declare.
1084
1085 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1086
1087 * ser-base.c: Adjust comments formatting.
1088
1089 2020-09-27 Tom Tromey <tom@tromey.com>
1090
1091 PR tui/25342:
1092 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1093
1094 2020-09-27 Tom Tromey <tom@tromey.com>
1095
1096 PR tui/25342:
1097 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1098
1099 2020-09-27 Tom Tromey <tom@tromey.com>
1100
1101 * unittests/tui-selftests.c: Update.
1102 * tui/tui-winsource.h (struct tui_source_window_base)
1103 <extra_margin, show_line_number, refresh_pad>: New methods.
1104 <m_max_length, m_pad>: New members.
1105 (tui_copy_source_line): Update.
1106 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1107 first_col, line_width, ndigits parameters. Add length.
1108 (tui_source_window_base::show_source_line): Write to pad. Line
1109 number now 0-based.
1110 (tui_source_window_base::refresh_pad): New method.
1111 (tui_source_window_base::show_source_content): Write to pad. Call
1112 refresh_pad.
1113 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1114 not refill.
1115 (tui_source_window_base::update_exec_info): Call
1116 show_line_number.
1117 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1118 method.
1119 <m_digits>: New member.
1120 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1121 and m_max_length.
1122 (tui_source_window::show_line_number): New method.
1123 * tui/tui-io.h (tui_puts): Fix comment.
1124 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1125 m_max_length.
1126
1127 2020-09-27 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-winsource.c
1130 (tui_source_window_base::set_is_exec_point_at): Don't call
1131 show_source_line.
1132
1133 2020-09-27 Tom Tromey <tom@tromey.com>
1134
1135 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1136 method.
1137 <erase>: Update.
1138 <cursor_x, cursor_y>: Remove.
1139 <m_inner_window>: New member.
1140 (tui_py_window::rerender): Create inner window.
1141 (tui_py_window::output): Write to inner window.
1142
1143 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1144
1145 PR python/26586
1146 * cli/cli-script.c (execute_control_commands): don't set
1147 instream to nullptr here as this breaks the from_tty argument
1148 to gdb.execute in Python.
1149 (execute_user_command): set instream to nullptr here instead.
1150
1151 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1152
1153 * infrun.h (infrun_debug_printf): Fix formatting.
1154 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1155
1156 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1157
1158 * compile/compile-object-load.h (struct munmap_list): Add
1159 explicitly-defined move constructor.
1160
1161 2020-09-24 Tom Tromey <tromey@adacore.com>
1162
1163 PR tui/26638:
1164 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1165 method.
1166 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1167 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1168 (tui_prev_win): Rewrite.
1169
1170 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1171
1172 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1173 in WOW64 processes as SIGINT.
1174 * nat/windows-nat.h: Make wow64_process a shared variable.
1175 * windows-nat.c: Remove static wow64_process variable.
1176
1177 2020-09-23 Tom Tromey <tom@tromey.com>
1178
1179 PR symtab/25470:
1180 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1181 offset and bit size.
1182 * printcmd.c (print_scalar_formatted): Handle zero-length
1183 integer.
1184 (print_scalar_formatted): Use bit_size_differs_p.
1185 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1186 constant.
1187 (union type_specific): <int_stuff>: New member.
1188 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1189 methods.
1190 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1191 TYPE_SPECIFIC_FIELD.
1192 (recursive_dump_type, copy_type_recursive): Update.
1193 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1194 DW_AT_data_bit_offset.
1195
1196 2020-09-23 Tom Tromey <tom@tromey.com>
1197
1198 * utils.h (class gdb_argv): Add move operators.
1199 <append>: New methods.
1200 * compile/compile.c (build_argc_argv): Remove.
1201 (compile_args_argc): Remove.
1202 (compile_args_argv): Change type.
1203 (set_compile_args): Simplify.
1204 (append_args): Remove.
1205 (filter_args): Remove argcp parameter.
1206 (get_args): Return gdb_argv. Simplify.
1207 (compile_to_object): Update.
1208
1209 2020-09-23 Tom Tromey <tom@tromey.com>
1210
1211 * compile/compile-object-run.c (do_module_cleanup)
1212 <~do_module_cleanup> :Remove.
1213 (do_module_cleanup): Update.
1214 * compile/compile-object-load.h (struct munmap_list): Add move
1215 assignment operator.
1216 <source_file>: Now a std::string.
1217 <munmap_list>: Rename. No longer a pointer.
1218 * compile/compile-object-load.c (struct setup_sections_data): Add
1219 constructor.
1220 <setup_one_section>: Declare.
1221 <munmap_list>: Move earlier.
1222 <m_bfd>: New member.
1223 <m_last_size, m_last_section_first, m_last_prot,
1224 m_last_max_alignment>: Rename, add initializers where needed.
1225 (setup_sections_data::setup_one_section): Rename from
1226 setup_sections. Update.
1227 (compile_object_load): Update. Don't use bfd_map_over_sections.
1228
1229 2020-09-23 Tom Tromey <tom@tromey.com>
1230
1231 * compile/compile-object-run.c (struct do_module_cleanup): Add
1232 parameters to constructor. Update destructor.
1233 <source_file, scope, scope_data, out_value_type, out_value_addr,
1234 munmap_list_head, objfile_name_string>: Remove.
1235 <module>: New member.
1236 (do_module_cleanup): Update.
1237 (compile_object_run): Update.
1238
1239 2020-09-23 Tom Tromey <tom@tromey.com>
1240
1241 * compile/compile.c (eval_compile_command): Update.
1242 * compile/compile-object-run.h (compile_object_run): Take a
1243 compile_module_up.
1244 * compile/compile-object-run.c (compile_object_run): Take a
1245 compile_module_up.
1246 * compile/compile-object-load.h (struct compile_module): Add
1247 constructor, destructor.
1248 (compile_module_up): New typedef.
1249 (compile_object_load): Return compile_object_up.
1250 * compile/compile-object-load.c (compile_object_load): Return
1251 compile_module_up.
1252
1253 2020-09-23 Tom Tromey <tom@tromey.com>
1254
1255 * compile/compile-object-run.c (struct do_module_cleanup): Add
1256 constructor, destructor.
1257 <objfile_name_string>: Don't use struct hack.
1258 (do_module_cleanup): Use delete.
1259 (compile_object_run): Use new.
1260
1261 2020-09-23 Tom Tromey <tom@tromey.com>
1262
1263 * compile/compile-cplus-types.c
1264 (compile_cplus_convert_struct_or_union): Use std::vector.
1265 (compile_cplus_convert_func): Likewise.
1266 * compile/compile-c-types.c (convert_func): Use std::vector.
1267
1268 2020-09-21 Tom Tromey <tromey@adacore.com>
1269
1270 * sparc-tdep.c (sparc32_skip_prologue): Use
1271 skip_prologue_using_sal.
1272
1273 2020-09-19 Tom Tromey <tom@tromey.com>
1274
1275 * symfile.c (add_section_size_callback): Remove.
1276 (load_one_section): Rename from load_section_callback. Change
1277 parameters.
1278 (generic_load): Use foreach.
1279
1280 2020-09-19 Tom Tromey <tom@tromey.com>
1281
1282 * exec.c (add_to_section_table): Remove.
1283 (build_section_table): Use foreach.
1284
1285 2020-09-19 Tom Tromey <tom@tromey.com>
1286
1287 * elfread.c (elf_locate_sections): Change parameters.
1288 (elf_symfile_read): Use foreach.
1289
1290 2020-09-19 Tom Tromey <tom@tromey.com>
1291
1292 * cli/cli-dump.c (struct callback_data): Remove.
1293 (restore_one_section): Rename from restore_section_callback.
1294 Change parameters.
1295 (restore_binary_file): Change parameters.
1296 (restore_command): Use foreach.
1297
1298 2020-09-19 Tom Tromey <tom@tromey.com>
1299
1300 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1301 (gcore_copy_callback): Likewise.
1302 (gcore_memory_sections): Use foreach.
1303
1304 2020-09-19 Tom Tromey <tom@tromey.com>
1305
1306 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1307 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1308 parameters.
1309 (generic_elf_osabi_sniffer): Use foreach.
1310 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1311 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1312
1313 2020-09-19 Tom Tromey <tom@tromey.com>
1314
1315 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1316 (dwarf2_get_dwz_file): Use foreach.
1317 (dwarf2_locate_dwo_sections): Change parameters.
1318 (open_and_init_dwo_file): Use foreach.
1319 (dwarf2_locate_common_dwp_sections): Change parameters.
1320 (open_and_init_dwp_file): Use foreach.
1321
1322 2020-09-19 Tom Tromey <tom@tromey.com>
1323
1324 * symfile.h: (find_lowest_section): Don't declare.
1325 * symfile.c (find_lowest_section): Now static. Change
1326 parameters.
1327 (struct place_section_arg): Remove.
1328 (place_section): Change parameters.
1329 (addr_info_make_relative): Use foreach.
1330 (symfile_dummy_outputs): Remove.
1331 (default_symfile_relocate): Use foreach.
1332
1333 2020-09-19 Tom Tromey <tom@tromey.com>
1334
1335 * objfiles.c (add_to_objfile_sections): Rename from
1336 add_to_objfile_sections_full.
1337 (add_to_objfile_sections): Remove.
1338 (build_objfile_section_table): Use foreach.
1339
1340 2020-09-19 Tom Tromey <tom@tromey.com>
1341
1342 * stap-probe.c (get_stap_base_address_1): Remove.
1343 (get_stap_base_address): Use foreach.
1344
1345 2020-09-19 Tom Tromey <tom@tromey.com>
1346
1347 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1348 parameters.
1349 (gdb_bfd_close_or_warn): Use foreach.
1350
1351 2020-09-19 Tom Tromey <tom@tromey.com>
1352
1353 * corelow.c (add_to_thread_list): Change parameters.
1354 (core_target_open): Use foreach.
1355
1356 2020-09-19 Tom Tromey <tom@tromey.com>
1357
1358 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1359 existing function.
1360
1361 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1362
1363 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1364 for arrays.
1365
1366 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * eval.c: Remove 'f-lang.h' include.
1369 (value_f90_subarray): Moved to f-lang.c.
1370 (eval_call): Renamed to...
1371 (evaluate_subexp_do_call): ...this, is no longer static, header
1372 comment moved into header file.
1373 (evaluate_funcall): Update call to eval_call.
1374 (skip_undetermined_arglist): Moved to f-lang.c.
1375 (fortran_value_subarray): Likewise.
1376 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1377 moved to evaluate_subexp_f.
1378 (calc_f77_array_dims): Moved to f-lang.c
1379 * expprint.c (print_subexp_funcall): New function.
1380 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1381 moved to print_subexp_f, OP_FUNCALL uses new function.
1382 (dump_subexp_body_funcall): New function.
1383 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1384 moved to dump_subexp_f, OP_FUNCALL uses new function.
1385 * expression.h (evaluate_subexp_do_call): Declare.
1386 * f-lang.c (value_f90_subarray): Moved from eval.c.
1387 (skip_undetermined_arglist): Likewise.
1388 (calc_f77_array_dims): Likewise.
1389 (fortran_value_subarray): Likewise.
1390 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1391 (operator_length_f): Likewise.
1392 (print_subexp_f): Likewise.
1393 (dump_subexp_body_f): Likewise.
1394 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1395 declaration of this operation to here.
1396 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1397 support moved to operator_length_f.
1398 * parser-defs.h (dump_subexp_body_funcall): Declare.
1399 (print_subexp_funcall): Declare.
1400 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1401 fortran-operator.def.
1402
1403 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1404
1405 * eval.c (fortran_value_subarray): New function, content is taken
1406 from...
1407 (evaluate_subexp_standard): ...here, in two places. Now arrays
1408 and strings both call the new function.
1409 (calc_f77_array_dims): Add header comment, handle strings.
1410
1411 2020-09-18 Victor Collod <vcollod@nvidia.com>
1412
1413 PR gdb/26635
1414 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1415 (i386_analyze_prologue): Call i386_skip_endbr.
1416
1417 2020-09-18 Tom Tromey <tromey@adacore.com>
1418
1419 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1420 (windows_nat_target::wait): Update.
1421 * target/wait.h (enum target_wait_flag): New. Use
1422 DEF_ENUM_FLAGS_TYPE.
1423 * target/target.h (target_wait): Change type of options.
1424 * target.h (target_options_to_string, default_target_wait):
1425 Update.
1426 (struct target_ops) <wait>: Change type of options.
1427 * target.c (target_wait, default_target_wait, do_option): Change
1428 type of "options".
1429 (target_options_to_string): Likewise.
1430 * target-delegates.c: Rebuild.
1431 * target-debug.h (target_debug_print_target_wait_flags): Rename
1432 from target_debug_print_options.
1433 * sol-thread.c (class sol_thread_target) <wait>: Update.
1434 (sol_thread_target::wait): Update.
1435 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1436 (rs6000_nat_target::wait): Update.
1437 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1438 Update.
1439 (remote_target::wait_ns, remote_target::wait_as): Change type of
1440 "options".
1441 (remote_target::wait): Update.
1442 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1443 (gdbsim_target::wait): Update.
1444 * record-full.c (class record_full_base_target) <wait>: Update.
1445 (record_full_wait_1): Change type of "options".
1446 (record_full_base_target::wait): Update.
1447 * record-btrace.c (class record_btrace_target) <wait>: Update.
1448 (record_btrace_target::wait): Update.
1449 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1450 Update.
1451 (ravenscar_thread_target::wait): Update.
1452 * procfs.c (class procfs_target) <wait>: Update.
1453 (procfs_target::wait): Update.
1454 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1455 * obsd-nat.c (obsd_nat_target::wait): Update.
1456 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1457 (nto_procfs_target::wait): Update.
1458 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1459 * nbsd-nat.c (nbsd_wait): Change type of "options".
1460 (nbsd_nat_target::wait): Update.
1461 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1462 (thread_db_target::wait): Update.
1463 * linux-nat.h (class linux_nat_target) <wait>: Update.
1464 * linux-nat.c (linux_nat_target::wait): Update.
1465 (linux_nat_wait_1): Update.
1466 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1467 "options".
1468 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1469 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1470 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1471 (go32_nat_target::wait): Update.
1472 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1473 * gnu-nat.c (gnu_nat_target::wait): Update.
1474 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1475 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1476 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1477 * darwin-nat.c (darwin_nat_target::wait): Update.
1478 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1479 (bsd_uthread_target::wait): Update.
1480 * aix-thread.c (class aix_thread_target) <wait>: Update.
1481 (aix_thread_target::wait): Update.
1482
1483 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * compile/compile-object-run.c (create_copied_type_recursive): New
1486 function.
1487 (compile_object_run): Use new function.
1488
1489 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1490
1491 * NEWS: Mention x86_64 Cygwin core file support.
1492
1493 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1494
1495 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1496 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1497
1498 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1499
1500 * windows-tdep.h: Add prototypes.
1501 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1502 (i386_windows_core_pid_to_str): Move and rename ...
1503 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1504 (windows_core_pid_to_str): ... and here.
1505 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1506
1507 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1508 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1509 (amd64_windows_init_abi_common): ... and register.
1510
1511 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1512
1513 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1514 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1515
1516 2020-09-18 Pedro Alves <pedro@palves.net>
1517
1518 PR gdb/26631
1519 * thread.c (thread_find_command): Switch inferior before calling
1520 target methods.
1521
1522 2020-09-17 Tom Tromey <tromey@adacore.com>
1523
1524 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1525 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1526 (tdesc_arch_data_up): New typedef.
1527 (tdesc_use_registers, tdesc_data_alloc): Update.
1528 (tdesc_data_cleanup): Don't declare.
1529 * target-descriptions.c (tdesc_data_alloc): Return a
1530 tdesc_arch_data_up.
1531 (tdesc_arch_data_deleter::operator()): Rename from
1532 tdesc_data_cleanup. Change argument type.
1533 (tdesc_use_registers): Change early_data to an rvalue reference.
1534 (tdesc_use_registers): Don't use delete.
1535 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1536 * s390-tdep.c (s390_gdbarch_init): Update.
1537 * rx-tdep.c (rx_gdbarch_init): Update.
1538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1539 * riscv-tdep.c (riscv_gdbarch_init): Update.
1540 * or1k-tdep.c (or1k_gdbarch_init): Update.
1541 * nios2-tdep.c (nios2_gdbarch_init): Update.
1542 * nds32-tdep.c (nds32_gdbarch_init): Update.
1543 * mips-tdep.c (mips_gdbarch_init): Update.
1544 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1545 * m68k-tdep.c (m68k_gdbarch_init): Update.
1546 * i386-tdep.c (i386_gdbarch_init): Update.
1547 * arm-tdep.c (arm_gdbarch_init): Update.
1548 * arc-tdep.c (arc_tdesc_init): Update.
1549 (arc_gdbarch_init): Update.
1550 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1551
1552 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1553
1554 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1555 for WOW64 processes.
1556
1557 2020-09-17 Tom Tromey <tom@tromey.com>
1558
1559 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1560
1561 2020-09-17 Tom Tromey <tom@tromey.com>
1562
1563 * value.c (preserve_values): Update.
1564 * python/py-type.c (save_objfile_types): Update.
1565 * guile/scm-type.c (save_objfile_types): Update.
1566 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1567 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1568 * compile/compile-object-run.c (compile_object_run): Update.
1569
1570 2020-09-17 Tom Tromey <tom@tromey.com>
1571
1572 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1573 Remove.
1574 <m_table>: Now htab_up.
1575 * typeprint.c (typedef_hash_table::recursively_update)
1576 (typedef_hash_table::add_template_parameters)
1577 (typedef_hash_table::typedef_hash_table): Update.
1578 (typedef_hash_table::~typedef_hash_table): Remove.
1579 (typedef_hash_table::typedef_hash_table)
1580 (typedef_hash_table::find_global_typedef)
1581 (typedef_hash_table::find_typedef): Update.
1582
1583 2020-09-17 Tom Tromey <tom@tromey.com>
1584
1585 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1586
1587 2020-09-17 Tom Tromey <tom@tromey.com>
1588
1589 * linespec.c (class decode_compound_collector)
1590 <~decode_compound_collector>: Remove.
1591 <m_unique_syms>: Now htab_up.
1592 (decode_compound_collector::operator ()): Update.
1593 (class symtab_collector) <~symtab_collector>: Remove.
1594 <m_symtab_table>: Now htab_up.
1595 (symtab_collector::operator ()): Update.
1596
1597 2020-09-17 Tom Tromey <tom@tromey.com>
1598
1599 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1600 (filename_seen_cache::clear): Update.
1601 (~filename_seen_cache): Remove.
1602 (filename_seen_cache::seen): Update.
1603 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1604 htab_up.
1605 <~filename_seen_cache>: Remove.
1606 <traverse>: Update.
1607
1608 2020-09-17 Tom Tromey <tom@tromey.com>
1609
1610 * completer.c (completion_tracker::discard_completions)
1611 (completion_tracker::~completion_tracker)
1612 (completion_tracker::maybe_add_completion)
1613 (completion_tracker::remove_completion)
1614 (completion_tracker::recompute_lowest_common_denominator)
1615 (completion_tracker::build_completion_result): Update.
1616 * completer.h (class completion_tracker) <have_completions>:
1617 Update.
1618 <m_entries_hash>: Now htab_up.
1619
1620 2020-09-17 Tom Tromey <tom@tromey.com>
1621
1622 * breakpoint.c (ambiguous_names_p): Use htab_up.
1623
1624 2020-09-17 Tom Tromey <tom@tromey.com>
1625
1626 * auto-load.c (struct auto_load_pspace_info)
1627 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1628 <loaded_script_files, loaded_script_texts>: Change type to
1629 htab_up.
1630 (~auto_load_pspace_info) Remove.
1631 (init_loaded_scripts_info, maybe_add_script_file)
1632 (maybe_add_script_text, auto_load_info_scripts): Update.
1633
1634 2020-09-17 Tom Tromey <tromey@adacore.com>
1635
1636 * c-exp.y (name_obstack): Now static.
1637
1638 2020-09-17 Chungyi Chi <demonic@csie.io>
1639
1640 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1641
1642 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1645 (add_solib_catchpoint): Likewise.
1646 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1647 to bool.
1648 (add_solib_catchpoint): Change int parameter/variable to bool.
1649 (catch_load_or_unload): Likewise.
1650 (init_catchpoint): Likewise.
1651 (create_fork_vfork_event_catchpoint): Likewise.
1652 (catch_fork_command_1): Likewise.
1653 (catch_exec_command_1): Likewise.
1654
1655 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1656
1657 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1658 Change instance_flags to m_instance_flags.
1659
1660 2020-09-16 Tom Tromey <tromey@adacore.com>
1661
1662 PR gdb/26598:
1663 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1664
1665 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1666
1667 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1668 PL_FLAG_EXEC.
1669 (fbsd_nat_target::insert_exec_catchpoint)
1670 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1671 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1672 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1673
1674 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1675
1676 * configure.ac: Remove check for kinfo_getvmmap().
1677 * configure, config.in: Regenerate.
1678 * fbsd-nat.c (fbsd_read_mapping): Remove
1679 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1680 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1681 kinfo_get_vmmap() are always present.
1682
1683 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1684
1685 * fbsd-nat.c: Always include support for
1686 TARGET_OBJECT_SIGNAL_INFO.
1687
1688 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1689
1690 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1691 sysctl and remove procfs fallback.
1692
1693 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1694
1695 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1696 * fbsd-nat.h: Likewise.
1697
1698 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1699
1700 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1701 argument.
1702
1703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * ada-lang.c (ada_language_data): Delete.
1706 (ada_language): Remove references to ada_language_data.
1707 * c-lang.c (c_language_data): Delete.
1708 (c_language): Remove references to c_language_data.
1709 (cplus_language_data): Delete.
1710 (cplus_language): Remove references to cplus_language_data.
1711 (asm_language_data): Delete.
1712 (asm_language): Remove references to asm_language_data.
1713 (minimal_language_data): Delete.
1714 (minimal_language): Remove references to minimal_language_data.
1715 * d-lang.c (d_language_data): Delete.
1716 (d_language): Remove references to d_language_data.
1717 * f-lang.c (f_language_data): Delete.
1718 (f_language): Remove references to f_language_data.
1719 * go-lang.c (go_language_data): Delete.
1720 (go_language): Remove references to go_language_data.
1721 * language.c (unknown_language_data): Delete.
1722 (unknown_language): Remove references to unknown_language_data.
1723 (auto_language_data): Delete.
1724 (auto_language): Remove references to auto_language_data.
1725 * language.h (language_data): Delete struct.
1726 (language_defn): No longer inherit from language_data.
1727 * m2-lang.c (m2_language_data): Delete.
1728 (m2_language): Remove references to m2_language_data.
1729 * objc-lang.c (objc_language_data): Delete.
1730 (objc_language): Remove references to objc_language_data.
1731 * opencl-lang.c (opencl_language_data): Delete.
1732 (opencl_language): Remove references to opencl_language_data.
1733 * p-lang.c (pascal_language_data): Delete.
1734 (pascal_language): Remove references to pascal_language_data.
1735 * rust-lang.c (rust_language_data): Delete.
1736 (rust_language): Remove references to rust_language_data.
1737
1738 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1741 initializer.
1742 (ada_language::opcode_print_table): New member function.
1743 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1744 (c_language::opcode_print_table): New member function.
1745 (cplus_language_data): Remove la_op_print_tab initializer.
1746 (cplus_language::opcode_print_table): New member function.
1747 (asm_language_data): Remove la_op_print_tab initializer.
1748 (asm_language::opcode_print_table): New member function.
1749 (minimal_language_data): Remove la_op_print_tab initializer.
1750 (minimal_language::opcode_print_table): New member function.
1751 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1752 (d_language::opcode_print_table): New member function.
1753 * expprint.c (print_subexp_standard): Update call to
1754 opcode_print_table.
1755 (op_string): Likewise.
1756 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1757 (f_language::opcode_print_table): New member function.
1758 * go-lang.c (go_language_data): Remove la_op_print_tab
1759 initializer.
1760 (go_language::opcode_print_table): New member function.
1761 * language.c (unknown_language_data): Remove la_op_print_tab
1762 initializer.
1763 (unknown_language::opcode_print_table): New member function.
1764 (auto_language_data): Remove la_op_print_tab initializer.
1765 (auto_language::opcode_print_table): New member function.
1766 * language.h (language_data): Remove la_op_print_tab field.
1767 (language_defn::opcode_print_table): Declare new member function.
1768 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1769 initializer.
1770 (m2_language::opcode_print_table): New member function.
1771 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1772 initializer.
1773 (objc_language::opcode_print_table): New member function.
1774 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1775 initializer.
1776 (opencl_language::opcode_print_table): New member function.
1777 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1778 initializer.
1779 (pascal_language::opcode_print_table): New member function.
1780 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1781 initializer.
1782 (rust_language::opcode_print_table): New member function.
1783
1784 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1787 (ada_language::expression_ops): New member function.
1788 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1789 (c_language::expression_ops): New member function.
1790 (cplus_language_data): Remove la_exp_desc initializer.
1791 (cplus_language::expression_ops): New member function.
1792 (asm_language_data): Remove la_exp_desc initializer.
1793 (asm_language::expression_ops): New member function.
1794 (minimal_language_data): Remove la_exp_desc initializer.
1795 (minimal_language::expression_ops): New member function.
1796 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1797 (d_language::expression_ops): New member function.
1798 * eval.c (evaluate_subexp): Update call to expression_ops.
1799 * expprint.c (print_subexp): Likewise.
1800 (op_name): Likewise.
1801 (dump_subexp_body): Likewise.
1802 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1803 (f_language::expression_ops): New member function.
1804 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1805 (go_language::expression_ops): New member function.
1806 * language.c (language_defn::expression_ops): New function.
1807 (unknown_language_data): Remove la_exp_desc initializer.
1808 (auto_language_data): Likewise.
1809 * language.h (language_data): Remove la_exp_desc field.
1810 (language_defn::expression_ops): Declare new member function.
1811 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1812 (m2_language::expression_ops): New member function.
1813 * objc-lang.c (objc_language_data): Remove la_exp_desc
1814 initializer.
1815 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1816 initializer.
1817 (opencl_language::expression_ops): New member function.
1818 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1819 * parse.c (operator_length): Update call to expression_ops.
1820 (exp_iterate): Likewise.
1821 * rust-lang.c (rust_language_data): Remove la_exp_desc
1822 initializer.
1823 (ruse_language::expression_ops): New member function.
1824
1825 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1828 initializer.
1829 (ada_language::varobj_ops): New member function.
1830 * c-lang.c (c_language_data): Remove la_varobj_ops
1831 initializer.
1832 (cplus_language_data): Likewise.
1833 (cplus_language::varobj_ops): New member function.
1834 (asm_language_data): Remove la_varobj_ops initializer.
1835 (minimal_language_data): Likewise.
1836 * d-lang.c (d_language_data): Likewise.
1837 * f-lang.c (f_language_data): Likewise.
1838 * go-lang.c (go_language_data): Likewise.
1839 * language.c (language_defn::varobj_ops): New function.
1840 (unknown_language_data): Remove la_varobj_ops
1841 initializer.
1842 (auto_language_data): Likewise.
1843 * language.h (language_data): Remove la_varobj_ops field.
1844 (language_defn::varobj_ops): Declare new member function.
1845 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1846 * objc-lang.c (objc_language_data): Likewise.
1847 * opencl-lang.c (opencl_language_data): Likewise.
1848 * p-lang.c (pascal_language_data): Likewise.
1849 * rust-lang.c (rust_language_data): Likewise.
1850 * varobj.c (varobj_create): Update call to varobj_ops.
1851 * varobj.h (default_varobj_ops): Delete define.
1852
1853 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1856 initializer.
1857 * c-lang.c (c_language_data): Likewise.
1858 (c_language::macro_expansion): New member function.
1859 (cplus_language_data): Likewise.
1860 (cplus_language::macro_expansion): New member function.
1861 (asm_language_data): Likewise.
1862 (asm_language::macro_expansion): New member function.
1863 (minimal_language_data): Likewise.
1864 (minimal_language::macro_expansion): New member function.
1865 * d-lang.c (d_language_data): Remove la_macro_expansion
1866 initializer.
1867 * f-lang.c (f_language_data): Likewise.
1868 * go-lang.c (go_language_data): Likewise.
1869 * language.c (unknown_language_data): Likewise.
1870 (auto_language_data): Likewise.
1871 * language.h (language_data): Remove la_macro_expansion field.
1872 (language_defn::macro_expansion): New member function.
1873 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1874 initializer.
1875 * objc-lang.c (objc_language_data): Likewise.
1876 (objc_language::macro_expansion): New member function.
1877 * opencl-lang.c (opencl_language_data): Likewise.
1878 (opencl_language::macro_expansion): New member function.
1879 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1880 initializer.
1881 * rust-lang.c (rust_language_data): Likewise.
1882 * symtab.c (default_collect_symbol_completion_matches_break_on):
1883 Update call to macro_expansion.
1884
1885 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Remove la_array_ordering
1888 initializer.
1889 * c-lang.c (c_language_data): Likewise.
1890 (cplus_language_data): Likewise.
1891 (asm_language_data): Likewise.
1892 (minimal_language_data): Likewise.
1893 * d-lang.c (d_language_data): Likewise.
1894 * dwarf2/read.c (read_array_order): Update for call to
1895 array_ordering.
1896 * f-lang.c (f_language_data): Remove la_array_ordering
1897 initializer.
1898 (f_language::array_ordering): New member function.
1899 * go-lang.c (go_language_data): Remove la_array_ordering
1900 initializer.
1901 * language.c (unknown_language_data): Likewise.
1902 (auto_language_data): Likewise.
1903 * language.h (language_data): Delete la_array_ordering field.
1904 (language_defn::array_ordering): New member function.
1905 * m2-lang.c (m2_language_data): Remove la_array_ordering
1906 initializer.
1907 * objc-lang.c (objc_language_data): Likewise.
1908 * opencl-lang.c (opencl_language_data): Likewise.
1909 * p-lang.c (pascal_language_data): Likewise.
1910 * rust-lang.c (rust_language_data): Likewise.
1911
1912 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1915 initializer.
1916 * c-lang.c (c_language_data): Likewise.
1917 (cplus_language_data): Likewise.
1918 (asm_language_data): Likewise.
1919 (minimal_language_data): Likewise.
1920 * d-lang.c (d_language_data): Likewise.
1921 * f-lang.c (f_language_data): Likewise.
1922 (f_language::case_sensitivity): New member function.
1923 * go-lang.c (go_language_data): Remove la_case_sensitivity
1924 initializer.
1925 * language.c (enum case_mode): Moved here from language.h.
1926 (case_mode): Make static.
1927 (show_case_command): Update for case_sensitivity being a method.
1928 (set_case_command): Likewise.
1929 (set_range_case): Likewise.
1930 (unknown_language_data): Remove la_case_sensitivity initializer.
1931 (auto_language_data): Likewise.
1932 * language.h (case_mode): Delete, move enum declaration to
1933 language.c.
1934 (language_data): Delete la_case_sensitivity field.
1935 (language_defn::case_sensitivity): New member function.
1936 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1937 initializer.
1938 * objc-lang.c (objc_language_data): Likewise.
1939 * opencl-lang.c (opencl_language_data): Likewise.
1940 * p-lang.c (pascal_language_data): Likewise.
1941 * rust-lang.c (rust_language_data): Likewise.
1942
1943 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * ada-lang.c (ada_language_data): Remove la_range_check
1946 initializer.
1947 * c-lang.c (c_language_data): Likewise.
1948 (cplus_language_data): Likewise.
1949 (asm_language_data): Likewise.
1950 (minimal_language_data): Likewise.
1951 * d-lang.c (d_language_data): Likewise.
1952 * f-lang.c (f_language_data): Likewise.
1953 (f_language::range_checking_on_by_default): New member function.
1954 * go-lang.c (go_language_data): Remove la_range_check initializer.
1955 * language.c (enum range_mode): Moved here from language.h.
1956 (range_mode): Made static.
1957 (show_range_command): Update to use
1958 range_checking_on_by_default.
1959 (set_range_command): Likewise.
1960 (set_range_case): Likewise.
1961 (unknown_language_data): Remove la_range_check initializer.
1962 (auto_language_data): Likewise.
1963 * language.h (range_mode): Delete. Enum definition moved to
1964 language.c.
1965 (language_data): Remove la_range_check field.
1966 (language_defn::range_checking_on_by_default): New member
1967 function.
1968 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1969 (m2_language::range_checking_on_by_default): New member function.
1970 * objc-lang.c (objc_language_data): Remove la_range_check
1971 initializer.
1972 * opencl-lang.c (opencl_language_data): Likewise.
1973 * p-lang.c (pascal_language_data): Likewise.
1974 (pascal_language::range_checking_on_by_default): New member
1975 function.
1976 * rust-lang.c (rust_language_data): Remove la_range_check
1977 initializer.
1978 (rust_language::range_checking_on_by_default): New member
1979 function.
1980
1981 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * dwarf2/read.c (dwarf2_physname): Remove special case for
1984 language_go.
1985 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1986 member function.
1987
1988 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * ada-lang.c (ada_language_data): Remove
1991 la_store_sym_names_in_linkage_form_p initializer.
1992 (ada_language::store_sym_names_in_linkage_form_p): New member
1993 function.
1994 * c-lang.c (c_language_data): Remove
1995 la_store_sym_names_in_linkage_form_p initializer.
1996 (c_language::store_sym_names_in_linkage_form_p): New member
1997 function.
1998 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1999 initializer.
2000 (asm_language_data): Likewise.
2001 (asm_language::store_sym_names_in_linkage_form_p): New member
2002 function.
2003 (minimal_language_data): Remove
2004 la_store_sym_names_in_linkage_form_p initializer.
2005 (minimal_language::store_sym_names_in_linkage_form_p): New member
2006 function.
2007 * d-lang.c (d_language_data): Remove
2008 la_store_sym_names_in_linkage_form_p initializer.
2009 * dwarf2/read.c (dwarf2_physname): Update call to
2010 store_sym_names_in_linkage_form_p.
2011 * f-lang.c (f_language_data): Remove
2012 la_store_sym_names_in_linkage_form_p initializer.
2013 * go-lang.c (go_language_data): Remove
2014 la_store_sym_names_in_linkage_form_p initializer.
2015 * language.c (unknown_language_data): Remove
2016 la_store_sym_names_in_linkage_form_p initializer.
2017 (unknown_language::store_sym_names_in_linkage_form_p): New member
2018 function.
2019 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2020 initializer.
2021 (auto_language::store_sym_names_in_linkage_form_p): New member
2022 function.
2023 * language.h (language_data): Remove
2024 la_store_sym_names_in_linkage_form_p member variable.
2025 (language_defn::store_sym_names_in_linkage_form_p): New member
2026 function.
2027 * m2-lang.c (m2_language_data): Remove
2028 la_store_sym_names_in_linkage_form_p initializer.
2029 * objc-lang.c (objc_language_data): Likewise.
2030 * opencl-lang.c (opencl_language_data): Likewise.
2031 * p-lang.c (pascal_language_data): Likewise.
2032 * rust-lang.c (rust_language_data): Likewise.
2033
2034 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-lang.c (ada_language_data): Remove string_lower_bound
2037 initializer.
2038 * c-lang.c (c_language_data): Likewise.
2039 (cplus_language_data): Likewise.
2040 (asm_language_data): Likewise.
2041 (minimal_language_data): Likewise.
2042 * d-lang.c (d_language_data): Likewise.
2043 * f-lang.c (f_language_data): Likewise.
2044 * go-lang.c (go_language_data): Likewise.
2045 * language.c (unknown_language_data): Likewise.
2046 (auto_language_data): Likewise.
2047 * language.h (language_data): Remove string_lower_bound field.
2048 (language_defn::string_lower_bound): New member function.
2049 * m2-lang.c (m2_language_data): Remove string_lower_bound
2050 initializer.
2051 (m2_language::string_lower_bound): New member function.
2052 * objc-lang.c (objc_language_data): Remove string_lower_bound
2053 initializer.
2054 * opencl-lang.c (opencl_language_data): Likewise.
2055 * p-lang.c (pascal_language_data): Likewise.
2056 * rust-lang.c (rust_language_data): Likewise.
2057 * valops.c (value_cstring): Update call to string_lower_bound.
2058 (value_string): Likewise.
2059 * value.c (allocate_repeated_value): Likewise.
2060
2061 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * valops.c (value_repeat): Fix incorrect argument name in comment.
2064
2065 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2066
2067 * ada-lang.c (ada_language_data): Remove c_style_arrays
2068 initializer.
2069 (ada_language::c_style_arrays_p): New member fuction.
2070 * c-lang.c (c_language_data): Remove c_style_arrays
2071 initializer.
2072 (cplus_language_data): Likewise.
2073 (asm_language_data): Likewise.
2074 (minimal_language_data): Likewise.
2075 * d-lang.c (d_language_data): Likewise.
2076 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2077 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2078 (f_language::c_style_arrays_p): New member function.
2079 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2080 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2081 * language.c (unknown_language_data): Remove c_style_arrays
2082 initializer.
2083 (auto_language_data): Likewise.
2084 * language.h (language_data): Remove c_style_arrays field.
2085 (language_defn::c_style_arrays_p): New member function.
2086 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2087 (m2_language::c_style_arrays_p): New member function.
2088 * objc-lang.c (objc_language_data): Remove c_style_arrays
2089 initializer.
2090 * opencl-lang.c (opencl_language_data): Likewise.
2091 * p-lang.c (pascal_language_data): Likewise.
2092 * rust-lang.c (rust_language_data): Likewise.
2093 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2094 and update local variable to a bool.
2095 * valops.c (value_cast): Update call to c_style_arrays_p.
2096 (value_array): Likewise.
2097 * value.c (coerce_array): Likewise.
2098
2099 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * ada-lang.c (ada_language_data): Remove la_language initializer.
2102 * c-lang.c (c_language_data): Likewise.
2103 (cplus_language_data): Likewise.
2104 (asm_language_data): Likewise.
2105 (minimal_language_data): Likewise.
2106 * d-lang.c (d_language_data): Likewise.
2107 * f-lang.c (f_language_data): Likewise.
2108 * go-lang.c (go_language_data): Likewise.
2109 * language.c (unknown_language_data): Likewise.
2110 (auto_language_data): Likewise.
2111 * language.h (language_data): Remove la_language field.
2112 (language_defn::language_defn): Initialise la_language field.
2113 (language_defn::la_language): New member variable.
2114 * m2-lang.c (m2_language_data): Remove la_language field.
2115 * objc-lang.c (objc_language_data): Likewise.
2116 * opencl-lang.c (opencl_language_data): Likewise.
2117 * p-lang.c (pascal_language_data): Likewise.
2118 * rust-lang.c (rust_language_data): Likewise.
2119
2120 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * ada-lang.c (ada_extensions): Delete, moved into
2123 ada_language::filename_extensions.
2124 (ada_language_data): Remove la_filename_extensions initializer.
2125 (ada_language::filename_extensions): New member function.
2126 * c-lang.c (c_extensions): Delete, moved into
2127 c_language::filename_extensions.
2128 (c_language_data): Remove la_filename_extensions initializer.
2129 (c_language::filename_extensions): New member function.
2130 (cplus_extensions): Delete, moved into
2131 cplus_language::filename_extensions.
2132 (cplus_language_data): Remove la_filename_extensions initializer.
2133 (cplus_language::filename_extensions): New member function.
2134 (asm_extensions): Delete, moved into
2135 asm_language::filename_extensions.
2136 (asm_language_data): Remove la_filename_extensions initializer.
2137 (asm_language::filename_extensions): New member function.
2138 (minimal_language_data): Remove la_filename_extensions
2139 initializer.
2140 * d-lang.c (d_extensions): Delete, moved into
2141 d_language::filename_extensions.
2142 (d_language_data): Remove la_filename_extensions initializer.
2143 (d_language::filename_extensions): New member function.
2144 * f-lang.c (f_extensions): Delete, moved into
2145 f_language::filename_extensions.
2146 (f_language_data): Remove la_filename_extensions initializer.
2147 (f_language::filename_extensions): New member function.
2148 * go-lang.c (go_language_data): Remove la_filename_extensions
2149 initializer.
2150 * language.c (add_set_language_command): Update now that
2151 filename_extensions returns a vector.
2152 (unknown_language_data): Remove la_filename_extensions
2153 initializer.
2154 (auto_language_data): Likewise.
2155 * language.h (language_data): Remove la_filename_extensions field.
2156 (language_defn::filename_extensions): New member function.
2157 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2158 initializer.
2159 * objc-lang.c (objc_extensions): Delete, moved into
2160 objc_language::filename_extensions.
2161 (objc_language_data): Remove la_filename_extensions initializer.
2162 (objc_language::filename_extensions): New member function.
2163 * opencl-lang.c (opencl_language_data): Remove
2164 la_filename_extensions initializer.
2165 * p-lang.c (pascal_extensions): Delete, moved into
2166 pascal_language::filename_extensions.
2167 (pascal_language_data): Remove la_filename_extensions initializer.
2168 (pascal_language::filename_extensions): New member function.
2169 * rust-lang.c (rust_extensions): Delete, moved into
2170 rust_language::filename_extensions.
2171 (rust_language_data): Remove la_filename_extensions initializer.
2172 (rust_language::filename_extensions): New member function.
2173 * symfile.c (add_filename_language): Add new assert.
2174
2175 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * ada-lang.c (ada_language_data): Remove la_name and
2178 la_natural_name initializers.
2179 (ada_language::name): New member function.
2180 (ada_language::natural_name): New member function.
2181 * c-lang.c (c_language_data): Remove la_name and
2182 la_natural_name initializers.
2183 (c_language::name): New member function.
2184 (c_language::natural_name): New member function.
2185 (cplus_language_data): Remove la_name and
2186 la_natural_name initializers.
2187 (cplus_language::name): New member function.
2188 (cplus_language::natural_name): New member function.
2189 (asm_language_data): Remove la_name and
2190 la_natural_name initializers.
2191 (asm_language::name): New member function.
2192 (asm_language::natural_name): New member function.
2193 (minimal_language_data): Remove la_name and
2194 la_natural_name initializers.
2195 (minimal_language::name): New member function.
2196 (minimal_language::natural_name): New member function.
2197 * compile/compile.c (compile_to_object): Update call to
2198 lanugage_defn::name.
2199 * d-lang.c (d_language_data): Remove la_name and
2200 la_natural_name initializers.
2201 (d_language::name): New member function.
2202 (d_language::natural_name): New member function.
2203 * expprint.c (print_subexp_standard): Update call to
2204 language_defn::name.
2205 (dump_raw_expression): Likewise
2206 (dump_prefix_expression): Likewise.
2207 * f-lang.c (f_language_data): Remove la_name and
2208 la_natural_name initializers.
2209 (f_language::name): New member function.
2210 (f_language::natural_name): New member function.
2211 * go-lang.c (go_language_data): Remove la_name and
2212 la_natural_name initializers.
2213 (go_language::name): New member function.
2214 (go_language::natural_name): New member function.
2215 * language.c (show_language_command): Update call to
2216 language_defn::name.
2217 (set_language_command): Likewise.
2218 (language_enum): Likewise.
2219 (language_str): Likewise.
2220 (add_set_language_command): Likewise, use
2221 language_defn::natural_name in the doc string.
2222 (unknown_language_data): Remove la_name and
2223 la_natural_name initializers.
2224 (unknown_language::name): New member function.
2225 (unknown_language::natural_name): New member function.
2226 (auto_language_data): Remove la_name and
2227 la_natural_name initializers.
2228 (auto_language::name): New member function.
2229 (auto_language::natural_name): New member function.
2230 (language_lookup_primitive_type_as_symbol): Update call to
2231 language_defn::name.
2232 * language.h (language_data): Remove la_name and la_natural_name
2233 member variables.
2234 (language_defn::name): New member function.
2235 (language_defn::natural_name): New member function.
2236 * m2-lang.c (m2_language_data): Remove la_name and
2237 la_natural_name initializers.
2238 (m2_language::name): New member function.
2239 (m2_language::natural_name): New member function.
2240 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2241 language_defn::natural_name.
2242 * objc-lang.c (objc_language_data): Remove la_name and
2243 la_natural_name initializers.
2244 (objc_language::name): New member function.
2245 (objc_language::natural_name): New member function.
2246 * opencl-lang.c (opencl_language_data): Remove la_name and
2247 la_natural_name initializers.
2248 (opencl_language::name): New member function.
2249 (opencl_language::natural_name): New member function.
2250 * p-lang.c (pascal_language_data): Remove la_name and
2251 la_natural_name initializers.
2252 (pascal_language::name): New member function.
2253 (pascal_language::natural_name): New member function.
2254 * rust-lang.c (rust_language_data): Remove la_name and
2255 la_natural_name initializers.
2256 (rust_language::name): New member function.
2257 (rust_language::natural_name): New member function.
2258 * symtab.c (lookup_language_this): Update call to
2259 language_defn::name.
2260
2261 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * ada-lang.c (ada_language_data): Remove la_name_of_this
2264 initializer.
2265 * ax-gdb.c (gen_expr): Update call to name_of_this.
2266 * c-exp.y (classify_name): Likewise.
2267 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2268 (cplus_language_data): Likewise.
2269 (cplus_language::name_of_this): New member function.
2270 (asm_language_data): Remove la_name_of_this initializer.
2271 (minimal_language_data): Likewise.
2272 * d-lang.c (d_language_data): Likewise.
2273 (d_language::name_of_this): New member function.
2274 * expprint.c (print_subexp_standard): Update call to name_of_this.
2275 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2276 * go-lang.c (go_language_data): Likewise.
2277 * language.c (unknown_language_data): Likewise.
2278 (unknown_language::name_of_this): New member function.
2279 (auto_language_data): Remove la_name_of_this initializer.
2280 (auto_language::name_of_this): New member function.
2281 * language.h (language_data): Delete la_name_of_this member
2282 variable.
2283 (language_defn::name_of_this): New member function.
2284 * m2-lang.c (m2_language_data): Remove la_name_of_this
2285 initializer.
2286 * objc-lang.c (objc_language_data): Likewise.
2287 (objc_language::name_of_this): New member function.
2288 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2289 initializer.
2290 * p-lang.c (pascal_language_data): Likewise.
2291 (pascal_language::name_of_this): New member function.
2292 * rust-lang.c (rust_language_data): Remove la_name_of_this
2293 initializer.
2294 * symtab.c (lookup_language_this): Update call to name_of_this.
2295 (lookup_symbol_aux): Likewise.
2296 * valops.c (value_of_this): Likewise.
2297
2298 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * ada-lang.c (ada_language_data): Remove
2301 la_struct_too_deep_ellipsis initializer.
2302 (ada_language::struct_too_deep_ellipsis): New member function.
2303 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2304 initializer.
2305 (cplus_language_data): Likewise.
2306 (asm_language_data): Likewise.
2307 (minimal_language_data): Likewise.
2308 * cp-valprint.c (cp_print_value): Update call to
2309 struct_too_deep_ellipsis.
2310 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2311 initializer.
2312 * f-lang.c (f_language_data): Likewise.
2313 (f_language::struct_too_deep_ellipsis): New member function.
2314 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2315 initializer.
2316 * language.c (unknown_language_data): Likewise.
2317 (auto_language_data): Likewise.
2318 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2319 member variable.
2320 (language_defn::struct_too_deep_ellipsis): New member function.
2321 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2322 initializer.Q
2323 * objc-lang.c (objc_language_data): Likewise.
2324 * opencl-lang.c (opencl_language_data): Likewise.
2325 * p-lang.c (pascal_language_data): Likewise.
2326 * rust-lang.c (rust_language_data): Likewise.
2327 * valprint.c (val_print_check_max_depth): Update call to
2328 struct_too_deep_ellipsis.
2329
2330 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2331
2332 * MAINTAINERS (Write After Approval): Add myself.
2333
2334 2020-09-15 Tom Tromey <tom@tromey.com>
2335
2336 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2337 Remove.
2338
2339 2020-09-15 Tom Tromey <tom@tromey.com>
2340
2341 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2342 and TYPE_CODE_METHODPTR cases.
2343 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2344 (c_value_print_inner): Update.
2345 * valprint.c (generic_value_print_memberptr): New function, from
2346 c_value_print_memberptr.
2347 (generic_value_print): Use it. Call cplus_print_method_ptr.
2348
2349 2020-09-15 Tom Tromey <tromey@adacore.com>
2350
2351 * python/python-internal.h (PyInt_FromLong): Remove define.
2352 * python/py-value.c (convert_value_from_python): Use
2353 gdb_py_object_from_longest.
2354 * python/py-type.c (typy_get_code): Use
2355 gdb_py_object_from_longest.
2356 * python/py-symtab.c (salpy_get_line): Use
2357 gdb_py_object_from_longest.
2358 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2359 gdb_py_object_from_longest.
2360 * python/py-record.c (recpy_gap_reason_code): Use
2361 gdb_py_object_from_longest.
2362 * python/py-record-btrace.c (recpy_bt_insn_size)
2363 (recpy_bt_func_level, btpy_list_count): Use
2364 gdb_py_object_from_longest.
2365 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2366 gdb_py_object_from_longest. Fix error handling.
2367 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2368 gdb_py_object_from_longest.
2369 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2370 gdb_py_object_from_longest.
2371 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2372 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2373 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2374
2375 2020-09-15 Tom Tromey <tromey@adacore.com>
2376
2377 * python/python.c (gdbpy_parameter_value): Use
2378 gdb_py_object_from_ulongest.
2379
2380 2020-09-15 Tom Tromey <tromey@adacore.com>
2381
2382 * python/py-infevents.c (create_register_changed_event_object):
2383 Use gdb_py_object_from_longest.
2384 * python/py-exitedevent.c (create_exited_event_object): Use
2385 gdb_py_object_from_longest.
2386
2387 2020-09-15 Tom Tromey <tromey@adacore.com>
2388
2389 * python/python.c (gdbpy_parameter_value): Use
2390 gdb_py_object_from_longest.
2391 * python/py-type.c (convert_field, typy_range): Use
2392 gdb_py_object_from_longest.
2393 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2394 gdb_py_object_from_longest.
2395 * python/py-lazy-string.c (stpy_get_length): Use
2396 gdb_py_object_from_longest.
2397 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2398 gdb_py_object_from_longest.
2399 * python/py-infevents.c (create_memory_changed_event_object): Use
2400 gdb_py_object_from_longest.
2401 * python/py-inferior.c (infpy_get_num): Use
2402 gdb_py_object_from_longest.
2403 (infpy_get_pid): Likewise.
2404
2405 2020-09-15 Tom Tromey <tromey@adacore.com>
2406
2407 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2408 defines.
2409 * python/py-value.c (valpy_long): Use
2410 gdb_py_object_from_ulongest.
2411 * python/py-symtab.c (salpy_get_pc): Use
2412 gdb_py_object_from_ulongest.
2413 (salpy_get_last): Likewise.
2414 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2415 gdb_py_object_from_ulongest.
2416 * python/py-lazy-string.c (stpy_get_address): Use
2417 gdb_py_object_from_ulongest.
2418 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2419 * python/py-arch.c (archpy_disassemble): Use
2420 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2421 error handling.
2422
2423 2020-09-15 Tom Tromey <tromey@adacore.com>
2424
2425 * python/python-internal.h (gdb_py_long_from_longest): Remove
2426 defines.
2427 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2428 * python/py-type.c (convert_field, typy_get_sizeof): Use
2429 gdb_py_object_from_longest.
2430 * python/py-record-btrace.c (btpy_list_index): Use
2431 gdb_py_object_from_longest.
2432
2433 2020-09-15 Tom Tromey <tromey@adacore.com>
2434
2435 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2436 * python/py-record.c (recpy_element_number): Use
2437 gdb_py_object_from_longest.
2438 (recpy_gap_number): Likewise.
2439
2440 2020-09-15 Tom Tromey <tromey@adacore.com>
2441
2442 * top.c (ui::ui): Update.
2443 (highest_ui_num): Remove.
2444 * top.h (struct ui) <num>: Remove.
2445
2446 2020-09-15 Tom Tromey <tromey@adacore.com>
2447
2448 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2449 * ui-style.c (ansi_regex_text): Now array.
2450 * rust-exp.y (number_regex_text): Now array.
2451 * linespec.c (linespec_quote_characters): Now array.
2452 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2453 Now arrays.
2454
2455 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * debuginfod-support.c (debuginfod_client_deleter): New.
2458 (debuginfod_client_up): New.
2459 (debuginfod_init): Return debuginfod_client_up.
2460 (debuginfod_source_query): Adjust.
2461 (debuginfod_debuginfo_query): Adjust.
2462
2463 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2464
2465 * debuginfod-support.c (debuginfod_source_query): Use
2466 make_unique_xstrdup.
2467
2468 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2471 with `type::instance_flags`.
2472
2473 2020-09-14 Michael Mullin <masmullin@gmail.com>
2474
2475 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2476 Remove baton parameter.
2477
2478 2020-09-14 Pedro Alves <pedro@palves.net>
2479
2480 * Makefile.in (SELFTESTS_SRCS): Add
2481 unittests/enum-flags-selftests.c.
2482 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2483 btrace_function_flags instead of enum btrace_function_flag.
2484 * compile/compile-c-types.c (convert_qualified): Use
2485 enum_flags::raw.
2486 * compile/compile-cplus-symbols.c (convert_one_symbol)
2487 (convert_symbol_bmsym):
2488 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2489 (compile_cplus_convert_struct_or_union_methods)
2490 (compile_cplus_instance::convert_qualified_base):
2491 * go-exp.y (parse_string_or_char): Add cast to int.
2492 * unittests/enum-flags-selftests.c: New file.
2493 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2494 type to btrace_thread_flags from btrace_thread_flag.
2495 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2496 local's type to btrace_thread_flags from btrace_thread_flag. Add
2497 cast in DEBUG call.
2498
2499 2020-09-14 Pedro Alves <pedro@palves.net>
2500
2501 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2502 * gdbtypes.c (address_space_name_to_int): Rename to ...
2503 (address_space_name_to_type_instance_flags): ... this.
2504 (address_space_int_to_name): Rename to ...
2505 (address_space_type_instance_flags_to_name): ... this.
2506 * gdbtypes.h (address_space_name_to_int): Rename to ...
2507 (address_space_name_to_type_instance_flags): ... this.
2508 (address_space_int_to_name): Rename to ...
2509 (address_space_type_instance_flags_to_name): ... this.
2510 * type-stack.c (type_stack::insert): Adjust to rename.
2511 * type-stack.h (type_stack::insert): Likewise.
2512
2513 2020-09-14 Pedro Alves <pedro@palves.net>
2514 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * avr-tdep.c (avr_address_class_type_flags): Return
2517 type_instance_flags.
2518 (avr_address_class_type_flags_to_name): Take a
2519 type_instance_flags.
2520 (avr_address_class_name_to_type_flags): Return bool and take a
2521 type_instance_flags.
2522 * d-lang.c (build_d_types): Use type::set_instance_flags.
2523 * ft32-tdep.c (ft32_address_class_type_flags): Return
2524 type_instance_flags.
2525 (ft32_address_class_type_flags_to_name): Take a
2526 type_instance_flags.
2527 (ft32_address_class_name_to_type_flags): Return bool and take a
2528 type_instance_flags.
2529 (ft32_gdbarch_init): Use type::set_instance_flags.
2530 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2531 * gdbarch.h, gdbarch.c: Regenerate.
2532 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2533 (address_class_name_to_type_flags): Use type_instance_flags and
2534 bool.
2535 * gdbtypes.c (address_space_name_to_int)
2536 (address_space_int_to_name, make_qualified_type): Use
2537 type_instance_flags.
2538 (make_qualified_type): Use type_instance_flags and
2539 type::set_instance_flags.
2540 (make_type_with_address_space, make_cv_type, make_vector_type)
2541 (check_typedef): Use type_instance_flags.
2542 (recursive_dump_type): Cast type_instance_flags to unsigned for
2543 printing.
2544 (copy_type_recursive): Use type::set_instance_flags.
2545 (gdbtypes_post_init): Use type::set_instance_flags.
2546 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2547 <m_instance_flags>: ... this.
2548 <instance_flags, set_instance_flags>: New methods.
2549 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2550 (SET_TYPE_INSTANCE_FLAGS): New.
2551 (address_space_name_to_int, address_space_int_to_name)
2552 (make_type_with_address_space): Pass flags using
2553 type_instance_flags instead of int.
2554 * stabsread.c (cleanup_undefined_types_noname): Use
2555 type::set_instance_flags.
2556 * s390-tdep.c (s390_address_class_type_flags): Return
2557 type_instance_flags.
2558 (s390_address_class_type_flags_to_name): Take a
2559 type_instance_flags.
2560 (s390_address_class_name_to_type_flags): Return bool and take a
2561 type_instance_flags.
2562 * type-stack.c (type_stack::follow_types): Use
2563 type_instance_flags.
2564 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2565
2566 2020-09-14 Tom Tromey <tromey@adacore.com>
2567
2568 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2569 * x86-tdep.c (x86_is_thunk_register_name)
2570 (x86_in_indirect_branch_thunk): Update.
2571 * sparc64-tdep.c (sparc64_fpu_register_names)
2572 (sparc64_cp0_register_names, sparc64_register_names)
2573 (sparc64_pseudo_register_names): Now const.
2574 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2575 cp0_registers_num>: Now const.
2576 * sparc-tdep.c (sparc_core_register_names)
2577 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2578 (sparc32_pseudo_register_names): Now const.
2579 (validate_tdesc_registers): Update.
2580 * rust-lang.c (rust_extensions): Now const.
2581 * p-lang.c (p_extensions): Now const.
2582 * objc-lang.c (objc_extensions): Now const.
2583 * nto-tdep.c (nto_thread_state_str): Now const.
2584 * moxie-tdep.c (moxie_register_names): Now const.
2585 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2586 Now const.
2587 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2588 (mips_linux_reg_names): Now const.
2589 (mips_gdbarch_init): Update.
2590 * microblaze-tdep.c (microblaze_register_names): Now const.
2591 * m68k-tdep.c (m68k_register_names): Now const.
2592 * m32r-tdep.c (m32r_register_names): Now const.
2593 * ia64-tdep.c (ia64_register_names): Now const.
2594 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2595 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2596 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2597 ymm_avx512_register_names, pkeys_register_names>: Now const.
2598 * i386-tdep.c (i386_register_names, i386_zmm_names)
2599 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2600 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2601 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2602 * f-lang.c (f_extensions): Now const.
2603 * d-lang.c (d_extensions): Now const.
2604 * csky-tdep.c (csky_register_names): Now const.
2605 * charset.c (default_charset_names, charset_enum): Now const.
2606 (_initialize_charset): Update.
2607 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2608 const.
2609 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2610 (bsd_uthread_solib_loaded): Update.
2611 (bsd_uthread_state): Now const.
2612 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2613 (amd64_ymm_avx512_names, amd64_ymmh_names)
2614 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2615 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2616 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2617 (amd64_dword_names): Now const.
2618 * agent.c (can_use_agent_enum): Now const.
2619 * ada-tasks.c (task_states, long_task_states): Now const.
2620 * ada-lang.c (known_runtime_file_name_patterns)
2621 (known_auxiliary_function_name_patterns, attribute_names)
2622 (standard_exc, ada_extensions): Now const.
2623
2624 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * bcache.h (struct bcache) <bcache>: Remove constructor.
2627 <m_hash_function, m_compare_function>: Remove.
2628 <~bcache>: Make virtual.
2629 <compare>: Remove static method, introduce virtual method.
2630 <default_hash>: Remove.
2631 <hash>: New virtual method.
2632 * bcache.c (bcache::expand_hash_table): Update.
2633 (bcache::insert): Update.
2634 (bcache::hash): New.
2635 (bcache::compare): Update comment and parameter names.
2636 * gdbtypes.c (types_deeply_equal): Update.
2637 * psymtab.h (struct psymbol_bcache): New struct.
2638 (class psymtab_storage) <psymtab_storage>: Make default.
2639 <psymbol_cache>: Change type to psymbol_bcache.
2640 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2641 (psymbol_hash): Change to...
2642 (psymbol_bcache::hash): ... this.
2643 (psymbol_compare): Change to...
2644 (psymbol_bcache::compare): ... this.
2645
2646 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2647
2648 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2649 checking for initial lwp.
2650
2651 2020-09-14 Tom Tromey <tromey@adacore.com>
2652
2653 * m68k-tdep.c (m68k_extract_return_value): Use
2654 pointer_result_regnum.
2655 (m68k_store_return_value): Likewise.
2656 (m68k_reg_struct_return_p): Handle vectors and arrays.
2657 (m68k_return_value): Handle arrays.
2658 (m68k_svr4_return_value): Fix single-element aggregate handling.
2659 Handle long double. Adjust for embedded ABI.
2660 (m68k_svr4_init_abi): Set pointer_result_regnum.
2661 (m68k_embedded_init_abi): New function.
2662 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2663 (m68k_osabi_sniffer): New function.
2664 (_initialize_m68k_tdep): Register osabi sniffer.
2665 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2666 member.
2667
2668 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2669
2670 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2671 with gdb::unique_xmalloc_ptr<char>.
2672
2673 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2674
2675 * xml-support.h (xml_fetch_another): Change type to be a
2676 function_view.
2677 (xml_process_xincludes): Remove baton parameter.
2678 (xml_fetch_content_from_file): Change baton parameter to
2679 dirname.
2680 * xml-support.c (struct xinclude_parsing_data)
2681 <xinclude_parsing_data>: Remove baton parameter.
2682 <fetcher_baton>: Remove.
2683 (xinclude_start_include): Adjust.
2684 (xml_process_xincludes): Adjust.
2685 (xml_fetch_content_from_file): Replace baton parameter with
2686 dirname.
2687 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2688 (xml_init_syscalls_info): Use a lambda.
2689 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2690 (file_read_description_xml): Use a lambda.
2691 (fetch_available_features_from_target): Change baton parameter
2692 to target_ops.
2693 (target_read_description_xml): Use a lambda.
2694 (target_fetch_description_xml): Use a lambda.
2695 (string_read_description_xml): Update.
2696
2697 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2700 uses with type::endianity_is_not_default.
2701
2702 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * gdbtypes.h (struct type) <endianity_is_not_default,
2705 set_endianity_is_not_default>: New methods.
2706 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2707 type::endianity_is_not_default, change all write call sites to
2708 use type::set_endianity_is_not_default.
2709
2710 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2711
2712 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2713 uses with type::is_fixed_instance.
2714
2715 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * gdbtypes.h (struct type) <is_fixed_instance,
2718 set_is_fixed_instance>: New methods.
2719 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2720 write call sites to use type::set_is_fixed_instance.
2721
2722 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2725 uses with type::is_gnu_ifunc.
2726
2727 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2730 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2731 use type::set_is_gnu_ifunc.
2732
2733 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2736 uses with type::stub_is_supported.
2737
2738 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2741 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2742 use type::set_stub_is_supported.
2743
2744 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2747 uses with type::is_vector.
2748
2749 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2752 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2753 use type::set_is_vector.
2754
2755 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2756
2757 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2758 uses with type::has_varargs.
2759
2760 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2763 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2764 use type::set_has_varargs.
2765
2766 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2767
2768 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2769 uses with type::is_prototyped.
2770
2771 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2772
2773 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2774 New methods.
2775 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2776 call sites to use type::set_is_prototyped.
2777
2778 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2781 uses with type::target_is_stub.
2782
2783 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2786 New methods.
2787 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2788 sites to use type::set_target_is_stub.
2789
2790 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * gdbtypes.h (TYPE_STUB): Remove, replace all
2793 uses with type::is_stub.
2794
2795 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2798 (TYPE_STUB): Use type::is_stub, change all write call sites to
2799 use type::set_is_stub.
2800
2801 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2802
2803 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2804 type::has_no_signedness.
2805
2806 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * gdbtypes.h (struct type) <has_no_signedness,
2809 set_has_no_signedness>: New methods.
2810 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2811 call sites to use type::set_has_no_signedness.
2812
2813 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2814
2815 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2816 type::is_unsigned.
2817
2818 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2821 methods.
2822 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2823 sites to use type::set_is_unsigned.
2824
2825 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2826 Adam Renquinha <arenquinha@cimeq.qc.ca>
2827
2828 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2829 pointer and stack frame offset when unwinding.
2830
2831 2020-09-13 Pedro Alves <pedro@palves.net>
2832
2833 * NEWS: Document "-break-insert --qualified".
2834 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2835
2836 2020-09-13 Pedro Alves <pedro@palves.net>
2837
2838 * linespec.c (classify_mtype, compare_msyms): Delete.
2839 (search_minsyms_for_name): Remove classification logic. Instead
2840 filter out trampoline symbols if we also found an external
2841 function of the same name.
2842
2843 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2844
2845 * NEWS: Create a new section for the next release branch.
2846 Rename the section of the current branch, now that it has
2847 been cut.
2848
2849 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2850
2851 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2852 * version.in: Bump version to 11.0.50.DATE-git.
2853
2854 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2855
2856 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2857
2858 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2859 Felix Willgerodt <Felix.Willgerodt@intel.com>
2860
2861 * gdbarch.sh: Added bfloat16 type.
2862 * gdbarch.c: Regenerated.
2863 * gdbarch.h: Regenerated.
2864 * gdbtypes.c (floatformats_bfloat16): New struct.
2865 (gdbtypes_post_init): Add builtin_bfloat16.
2866 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2867 (floatformats_bfloat16): New struct.
2868 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2869 (i386_ymm_type): Add field "v16_bfloat16"
2870 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2871 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2872 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2873 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2874 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2875 * features/i386/64bit-avx512.c: Regenerated.
2876 * features/i386/64bit-sse.xml: Add bfloat16 type.
2877 * features/i386/64bit-sse.c: Regenerated.
2878
2879 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2880
2881 * i386-tdep.c (i386_zmm_type): Fix field names.
2882 (i386_ymm_type): Fix field names.
2883
2884 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2885
2886 * breakpoint.c: Fix typo in the help message of the
2887 "set breakpoint condition-evaluation" command.
2888
2889 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2890
2891 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2892 * (nbsd_nat_target::pid_to_exec_file)
2893 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2894 (nbsd_nat_target::post_startup_inferior)
2895 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2896 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2897 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2898 * (nbsd_thread_lister): Remove.
2899
2900 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2901
2902 * fork-inferior.c (startup_inferior): Avoid double free.
2903
2904 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2905
2906 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2907 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2908
2909 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2910
2911 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2912 * netbsd-nat.c: Include <sys/ptrace.h>.
2913 * (netbsd_nat::enable_proc_events): Add.
2914
2915 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2916
2917 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2918 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2919 (netbsd_nat::for_each_thread): Add.
2920 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2921 "gdbsupport/common-debug.h".
2922 * (netbsd_nat::netbsd_thread_lister)
2923 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2924 (netbsd_nat::for_each_thread): Add.
2925
2926 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2927
2928 * netbsd-nat.h: Include <unistd.h>.
2929 * (netbsd_nat::pid_to_exec_file): Add.
2930 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2931 * (netbsd_nat::pid_to_exec_file) Add.
2932
2933 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2934
2935 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2936
2937 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2938
2939 * netbsd-nat.h: New file.
2940 * netbsd-nat.c: Likewise.
2941
2942 2020-09-09 Tom Tromey <tromey@adacore.com>
2943
2944 * ada-lang.c (remove_extra_symbols): Do not increment when
2945 removing an element
2946
2947 2020-09-08 Tom Tromey <tromey@adacore.com>
2948
2949 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2950
2951 2020-09-08 Tom Tromey <tromey@adacore.com>
2952
2953 PR win32/25302:
2954 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2955 (gdb_bfd_init_data): New function.
2956 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2957
2958 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2959
2960 * infrun.c (fetch_inferior_event): Use
2961 `switch_to_target_no_thread` to switch the target.
2962
2963 2020-09-06 Tom Tromey <tom@tromey.com>
2964
2965 * symfile.h (dwarf2_free_objfile): Don't declare.
2966
2967 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2968
2969 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2970 to match 16 byte real/complex type generated by Flang compiler.
2971
2972 2020-09-03 Tom de Vries <tdevries@suse.de>
2973
2974 PR breakpoint/26546
2975 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2976 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2977
2978 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * maint.c (index_digits): New function.
2981 (struct maint_print_section_data): Remove.
2982 (print_bfd_section_info): Remove print_data parameter, add arg
2983 and index_digits.
2984 (print_objfile_section_info): Likewise.
2985 (print_bfd_section_info_maybe_relocated): Likewise (plus
2986 objfile).
2987 (maintenance_info_sections): Adjust calls.
2988
2989 2020-09-02 Tom Tromey <tromey@adacore.com>
2990
2991 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2992 for null pointers.
2993 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2994
2995 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * bcache.h (struct bcache) <insert>: Change type of `added` to
2998 pointer to bool.
2999 * bcache.c (bcache::insert): Likewise.
3000 * gdbtypes.c (check_types_worklist): Adjust.
3001 * psymtab.c (add_psymbol_to_bcache): Adjust.
3002
3003 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3004
3005 * corelow.c (unordered_set): Include.
3006 (class core_target): Add field 'm_core_unavailable_mappings'.
3007 (core_target::build_file_mappings): Print only one warning
3008 per inaccessible file. Add unavailable/broken mappings
3009 to m_core_unavailable_mappings.
3010 (core_target::xfer_partial): Call...
3011 (core_target::xfer_memory_via_mappings): New method.
3012
3013 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3014
3015 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3016 type to bool.
3017
3018 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * dwarf2/read.c (struct field_info): Fix indentation.
3021
3022 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3025 ordering in comment.
3026 * frame.c (frame_id_eq): Fix indentation.
3027
3028 2020-08-31 Scott Linder <scott@scottlinder.com>
3029 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3032 inline frame ids in outer frame.
3033
3034 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3037 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3038 (outer_frame_id): Use FID_STACK_OUTER instead of
3039 FID_STACK_INVALID.
3040 (frame_id_p): Don't check for outer_frame_id.
3041
3042 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3043
3044 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3045 regnum/frame in value. Call allocate_value_lazy.
3046 * frame.c (frame_unwind_register_value): Use
3047 val_print_not_saved.
3048
3049 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3052
3053 2020-08-29 Pedro Alves <pedro@palves.net>
3054
3055 * progspace.c (print_program_space): Use all_inferiors. Switch to
3056 the inferior before calling target_pid_to_str.
3057
3058 2020-08-28 Tom Tromey <tom@tromey.com>
3059
3060 * xcoffread.c (xcoff_end_psymtab): Update comment.
3061 * dbxread.c (dbx_end_psymtab): Update comment.
3062
3063 2020-08-28 Tom de Vries <tdevries@suse.de>
3064
3065 PR breakpoint/26544
3066 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3067 event_location.
3068 (create_breakpoint): Same.
3069 (base_breakpoint_decode_location): Same.
3070 (bkpt_create_sals_from_location): Same.
3071 (bkpt_decode_location): Same.
3072 (bkpt_probe_create_sals_from_location): Same.
3073 (bkpt_probe_decode_location): Same.
3074 (tracepoint_create_sals_from_location): Same.
3075 (tracepoint_decode_location): Same.
3076 (tracepoint_probe_decode_location): Same.
3077 (strace_marker_create_sals_from_location): Same.
3078 (strace_marker_decode_location): Same.
3079 (create_sals_from_location_default): Same.
3080 (decode_location_default): Same.
3081 * breakpoint.h (struct breakpoint_ops): Same.
3082 (create_breakpoint): Same.
3083 * linespec.h (decode_line_full): Same.
3084 * linespec.c (decode_line_full): Same. Throw error if
3085 result.size () == 0.
3086
3087 2020-08-27 Pedro Alves <pedro@palves.net>
3088
3089 PR gdb/26524
3090 * breakpoint.c (until_break_fsm) <location_breakpoint,
3091 caller_breakpoint>: Delete fields.
3092 <breakpoints>: New field.
3093 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3094 two individual breakpoints.
3095 (until_break_fsm::should_stop): Loop over breakpoints in the
3096 breakpoint vector.
3097 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3098 vector.
3099 (until_break_command): Handle location expanding into multiple
3100 sals.
3101
3102 2020-08-27 Pedro Alves <pedro@palves.net>
3103
3104 PR gdb/26523
3105 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3106 bp_until breakpoints user-specified locations. Update intro
3107 comment.
3108
3109 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3110
3111 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3112 gdb_bfd_sections): New.
3113 * maint.c (print_bfd_section_info): Change param type to
3114 maint_print_section_data.
3115 (print_objfile_section_info): Likewise.
3116 (print_bfd_section_info_maybe_relocated): Likewise.
3117 (maintenance_info_sections): Use gdb_bfd_sections.
3118
3119 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3120
3121 * MAINTAINERS: Add ARC target and maintainer.
3122
3123 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3124
3125 * configure.tgt: ARC support for GNU/Linux.
3126 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3127 * arc-linux-tdep.c: New file.
3128 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3129 * arc-tdep.c (arc_write_pc): Use it.
3130
3131 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3132
3133 * arc-tdep.c (arc_check_for_hardware_loop): New.
3134 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3135
3136 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3137
3138 * arc-tdep.h: Include "gdbarch.h".
3139
3140 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3141
3142 * arch/arc.h
3143 (arc_gdbarch_features): New class to stir the selection of target XML.
3144 (arc_create_target_description): Use FEATURES to choose XML target.
3145 (arc_lookup_target_description): Use arc_create_target_description
3146 to create _new_ target descriptions or return the already created
3147 ones if the FEATURES is the same.
3148 * arch/arc.c: Implementation of prototypes described above.
3149 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3150 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3151 * arc-tdep.c (*_feature_name): Make feature names consistent.
3152 (arc_register_feature): A new struct to hold information about
3153 registers of a particular target/feature.
3154 (arc_check_tdesc_feature): Check if XML provides registers in
3155 compliance with ARC_REGISTER_FEATURE structs.
3156 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3157 (determine_*_reg_feature_set): Which feature name to look for.
3158 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3159 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3160 to expected ISA enums to be used in arc_gdbarch_features structs.
3161 * features/Makefile (FEATURE_XMLFILES): Add new files.
3162 * gdb/features/arc/v1-aux.c: New file.
3163 * gdb/features/arc/v1-aux.xml: Likewise.
3164 * gdb/features/arc/v1-core.c: Likewise.
3165 * gdb/features/arc/v1-core.xml: Likewise.
3166 * gdb/features/arc/v2-aux.c: Likewise.
3167 * gdb/features/arc/v2-aux.xml: Likewise.
3168 * gdb/features/arc/v2-core.c: Likewise.
3169 * gdb/features/arc/v2-core.xml: Likewise.
3170 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3171
3172 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3173 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 PR m2/26372
3176 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3177 an assert. Remove single element array indexing pattern as the
3178 MULTI_SUBSCRIPT support will handle this case too.
3179
3180 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3181
3182 * value.h (valprint_check_validity): Move declaration from
3183 here...
3184 * valprint.h (valprint_check_validity): ... to here.
3185
3186 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3187
3188 * debug.h: New file.
3189 * debug.c (debug_prefixed_vprintf): New function.
3190 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3191 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3192
3193 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3194
3195 * infrun.h (infrun_debug_printf_1): New function declaration.
3196 (infrun_debug_printf): New macro.
3197 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3198 throughout.
3199 (infrun_debug_printf): New function.
3200 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3201 (handle_jit_event): Likewise.
3202
3203 2020-08-21 Mark Wielaard <mark@klomp.org>
3204
3205 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3206
3207 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3208
3209 * frame.c (enum class frame_id_status): New.
3210 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3211 (fprintf_frame): Update.
3212 (compute_frame_id): Set frame id status to "computing" on entry.
3213 Set it back to "not_computed" on failure and to "computed" on
3214 success.
3215 (get_frame_id): Assert the frame id is not being computed.
3216 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3217 (create_new_frame): Likewise.
3218 (frame_cleanup_after_sniffer): Update assert.
3219
3220 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3221
3222 * regcache.c (pid_ptid_regcache_map): New type.
3223 (target_ptid_regcache_map): Remove.
3224 (target_pid_ptid_regcache_map): New type.
3225 (regcaches): Change type to target_pid_ptid_regcache_map.
3226 (get_thread_arch_aspace_regcache): Update.
3227 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3228 case.
3229 (regcaches_size): Update.
3230 (regcache_count): Update.
3231 (registers_changed_ptid_target_pid_test): New.
3232 (_initialize_regcache): Register new test.
3233
3234 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3235
3236 * regcache.c (regcache_count): New.
3237 (struct regcache_test_data): New.
3238 (regcache_test_data_up): New.
3239 (populate_regcaches_for_test): New.
3240 (regcaches_test): Remove.
3241 (get_thread_arch_aspace_regcache_test): New.
3242 (registers_changed_ptid_all_test): New.
3243 (registers_changed_ptid_target_test): New.
3244 (registers_changed_ptid_target_ptid_test): New.
3245 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3246 (_initialize_regcache): Register new tests.
3247
3248 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3249
3250 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3251 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3252 gdbarch and aspace parameter. Use current inferior's aspace.
3253 Validate regcache's arch value.
3254 (regcaches_test): Update.
3255
3256 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * regcache.c (regcaches_test): Call registers_changed.
3259
3260 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3261
3262 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3263
3264 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3265
3266 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3267 to find the end of prologue for flang compiled binaries.
3268 * arm-tdep.c (arm_skip_prologue): Likewise.
3269 * i386-tdep.c (i386_skip_prologue): Likewise.
3270 * producer.c (producer_is_llvm): New function.
3271 (producer_parsing_tests): Added new tests for clang/flang.
3272 * producer.h (producer_is_llvm): New declaration.
3273
3274 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * linux-nat.c (linux_nat_debug_printf): New function.
3277 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3278
3279 2020-08-18 Aaron Merey <amerey@redhat.com>
3280
3281 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3282 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3283 (CLIBS): Add DEBUGINFOD_LIBS.
3284
3285 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3286
3287 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3288 'gdbarch_num_regs'.
3289
3290 2020-08-17 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3293 ada_get_decoded_value returns NULL.
3294
3295 2020-08-17 Tom Tromey <tromey@adacore.com>
3296
3297 * python/py-inferior.c (infpy_search_memory): Use
3298 gdb_py_object_from_ulongest.
3299 * python/py-infevents.c (create_inferior_call_event_object)
3300 (create_memory_changed_event_object): Use
3301 gdb_py_object_from_ulongest.
3302 * python/py-linetable.c (ltpy_entry_get_pc): Use
3303 gdb_py_object_from_ulongest.
3304
3305 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * loc.c (class symbol_needs_eval_context): Fix indentation.
3308
3309 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3312 bool.
3313
3314 2020-08-17 Tom de Vries <tdevries@suse.de>
3315
3316 PR gdb/26393
3317 * gdbtypes.c (dump_dynamic_prop): New function.
3318 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3319
3320 2020-08-15 Tom de Vries <tdevries@suse.de>
3321
3322 PR backtrace/26390
3323 * stack.c (print_frame_args): Temporarily set the selected
3324 frame to FRAME while printing the frame's arguments.
3325
3326 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3327
3328 PR breakpoints/26385
3329 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3330 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3331
3332 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3333
3334 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3335 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3336 and >= to check return value instead of == -1 and != -1.
3337
3338 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * utils.h (class gdb_argv) <as_array_view>: New method.
3341 * utils.c (gdb_argv_as_array_view_test): New.
3342 (_initialize_utils): Register selftest.
3343 * maint.c (maintenance_selftest): Use the new method.
3344
3345 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3346
3347 * target.h (supports_dumpcore, dumpcore): New
3348 function declarations.
3349 * target.c (supports_dumpcore, dumpcore): New
3350 functions.
3351 * target-delegates.c: Rebuild.
3352 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3353 and target_dumpcore ().
3354
3355 2020-08-13 Aaron Merey <amerey@redhat.com>
3356
3357 * debuginfod-support.c: Replace global variables with user_data.
3358
3359 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * maint.c (maintenance_selftest): Split args and pass array_view
3362 to run_tests.
3363
3364 2020-08-12 Luis Machado <luis.machado@linaro.org>
3365
3366 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3367 type's length.
3368 Use %s and pulongest to print the length.
3369
3370 2020-08-12 Pedro Alves <palves@redhat.com>
3371
3372 * NEWS: Move "Multi-target debugging support" item to the
3373 "Changes since GDB 9" section.
3374
3375 2020-08-12 Pedro Alves <palves@redhat.com>
3376
3377 PR gdb/26336
3378 * progspace.c (program_space::remove_objfile): Invalidate the
3379 frame cache.
3380
3381 2020-08-11 Tom de Vries <tdevries@suse.de>
3382
3383 * MAINTAINERS: Mark ms1 as deleted.
3384
3385 2020-08-10 Luis Machado <luis.machado@linaro.org>
3386
3387 PR gdb/26310
3388
3389 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3390 act accordingly.
3391 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3392 movz/str/stur/stp skipping behavior.
3393
3394 2020-08-10 Luis Machado <luis.machado@linaro.org>
3395
3396 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3397 struct user_sve_header instead of struct sve_context.
3398
3399 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3400
3401 * read.h (dwarf2_fetch_die_loc_sect_off,
3402 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3403 `void *` parameter with function_view.
3404 * read.c (dwarf2_fetch_die_loc_sect_off,
3405 dwarf2_fetch_die_loc_cu_off): Likewise.
3406 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3407 (per_cu_dwarf_call): Adjust.
3408 (get_frame_address_in_block_wrapper): Remove.
3409 (indirect_synthetic_pointer): Adjust.
3410 (get_ax_pc): Remove.
3411 (dwarf2_compile_expr_to_ax): Adjust.
3412
3413 2020-08-08 Tom de Vries <tdevries@suse.de>
3414
3415 PR build/26344
3416 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3417 constructor.
3418 * regcache.c (get_thread_arch_aspace_regcache): Same.
3419
3420 2020-08-07 Tom Tromey <tromey@adacore.com>
3421
3422 * ravenscar-thread.c
3423 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3424 New method.
3425 (ravenscar_thread_target::wait): Check
3426 runtime_initialized.
3427 (ravenscar_thread_target::prepare_to_store)
3428 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3429 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3430 (ravenscar_thread_target::stopped_by_watchpoint)
3431 (ravenscar_thread_target::stopped_data_address)
3432 (ravenscar_thread_target::core_of_thread): Use
3433 scoped_restore_current_thread and
3434 set_base_thread_from_ravenscar_task.
3435
3436 2020-08-07 Tom Tromey <tromey@adacore.com>
3437
3438 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3439
3440 2020-08-07 Tom Tromey <tromey@adacore.com>
3441
3442 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3443 update_inferior_ptid before update_thread_list.
3444 (temporarily_change_regcache_ptid): New class.
3445 (ravenscar_thread_target::fetch_registers)
3446 (ravenscar_thread_target::store_registers)
3447 (ravenscar_thread_target::prepare_to_store): Use base thread when
3448 forwarding operation.
3449
3450 2020-08-07 Tom Tromey <tromey@adacore.com>
3451
3452 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3453 "is_pid" case.
3454
3455 2020-08-07 Tom Tromey <tromey@adacore.com>
3456
3457 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3458 New methods.
3459 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3460 first.
3461 (ravenscar_thread_target::add_thread): Rename from
3462 ravenscar_add_thread.
3463 (ravenscar_thread_target::update_thread_list): Use a lambda.
3464 (ravenscar_thread_target::xfer_partial): New method.
3465
3466 2020-08-07 Tom Tromey <tromey@adacore.com>
3467
3468 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3469 gdb::function_view.
3470 (iterate_over_live_ada_tasks): Change type of argument.
3471 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3472 of argument.
3473
3474 2020-08-07 Tom Tromey <tromey@adacore.com>
3475
3476 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3477 Remove.
3478 (ravenscar_thread_target::extra_thread_info): Remove.
3479 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3480 defer to target beneath for non-Ravenscar threads.
3481
3482 2020-08-07 Tom Tromey <tromey@adacore.com>
3483
3484 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3485 get_base_thread_from_ravenscar_task>: Now methods.
3486 <m_cpu_map>: New member.
3487 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3488 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3489 (ravenscar_thread_target::task_is_currently_active): Update.
3490 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3491 Now a method.
3492 (ravenscar_thread_target::add_active_thread): Put initial thread
3493 into the m_cpu_map.
3494
3495 2020-08-07 Tom Tromey <tromey@adacore.com>
3496
3497 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3498 event_ptid.
3499
3500 2020-08-07 Tom Tromey <tromey@adacore.com>
3501
3502 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3503 runtime_initialized.
3504
3505 2020-08-07 Tom Tromey <tromey@adacore.com>
3506
3507 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3508 add_active_thread.
3509 (ravenscar_thread_target::add_active_thread): Now public.
3510 (ravenscar_inferior_created): Call add_active_thread after pushing
3511 the target.
3512
3513 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * regcache.c (ptid_regcache_map): New type.
3516 (target_ptid_regcache_map): New type.
3517 (regcaches): Change type to target_ptid_regcache_map.
3518 (get_thread_arch_aspace_regcache): Update to regcaches' new
3519 type.
3520 (regcache_thread_ptid_changed): Likewise.
3521 (registers_changed_ptid): Likewise.
3522 (regcaches_size): Likewise.
3523 (regcaches_test): Update.
3524 (regcache_thread_ptid_changed): Update.
3525 * regcache.h (regcache_up): New type.
3526 * gdbsupport/ptid.h (hash_ptid): New struct.
3527
3528 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * observable.h (thread_ptid_changed): Add parameter
3531 `process_stratum_target *`.
3532 * infrun.c (infrun_thread_ptid_changed): Add parameter
3533 `process_stratum_target *` and use it.
3534 (selftests): New namespace.
3535 (infrun_thread_ptid_changed): New function.
3536 (_initialize_infrun): Register selftest.
3537 * regcache.c (regcache_thread_ptid_changed): Add parameter
3538 `process_stratum_target *` and use it.
3539 (regcache_thread_ptid_changed): New function.
3540 (_initialize_regcache): Register selftest.
3541 * thread.c (thread_change_ptid): Pass target to
3542 thread_ptid_changed observable.
3543
3544 2020-08-06 Caroline Tice <cmtice@google.com>
3545
3546 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3547 (struct dwp_sections): Update field comments. Add loclists and
3548 rnglists fields.
3549 (struct virtual_v2_dwo_sections): Rename struct to
3550 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3551 size & offset fields for loclists and rnglists.
3552 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3553 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3554 skipping dummy type units.
3555 (create_dwp_hash_table): Update the large comment above the function to
3556 discuss Version 5 DWP files as well, with references. Update all the
3557 version checks in the function to check for version 5 as well. Add new
3558 section at the end to create dwp hash table for version 5.
3559 (create_dwp_v2_section): Rename function to
3560 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3561 Add V5 to error message text.
3562 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3563 into calls to create_dwp_v2_or_v5_section.
3564 (create_dwo_unit_in_dwp_v5): New function.
3565 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3566 check for version2; add else clause to handle version 5.
3567 (open_and_init_dwo_file): Add code to check dwarf version & only call
3568 create_debug_types_hash_table (with sections.types) if version is not 5;
3569 else call create_debug_type_hash_table, with sections.info.
3570 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3571 version 5.
3572 (dwarf2_locate_v5_dwp_sections): New function.
3573 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3574 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3575
3576 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * regcache.h (class regcache): Remove friend
3579 registers_changed_ptid.
3580 <regcache_thread_ptid_changed>: Remove.
3581 <regcaches>: Remove.
3582 * regcache.c (regcache::regcaches): Rename to...
3583 (regcaches): ... this. Make static.
3584 (get_thread_arch_aspace_regcache): Update.
3585 (regcache::regcache_thread_ptid_changed): Rename to...
3586 (regcache_thread_ptid_changed): ... this. Update.
3587 (class regcache_access): Remove.
3588 (regcaches_test): Update.
3589 (_initialize_regcache): Update.
3590 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3591 <forward_list>.
3592
3593 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * regcache.h (class regcache) <current_regcache>: Rename to...
3596 <regcaches>: ... this. Move doc here.
3597 * regcache.c (regcache::current_regcache) Rename to...
3598 (regcache::regcaches): ... this. Move doc to header.
3599 (get_thread_arch_aspace_regcache): Update.
3600 (regcache::regcache_thread_ptid_changed): Update.
3601 (registers_changed_ptid): Update.
3602 (class regcache_access) <current_regcache_size>: Rename to...
3603 <regcaches_size>: ... this.
3604 (current_regcache_test): Rename to...
3605 (regcaches_test): ... this.
3606 (_initialize_regcache): Update.
3607
3608 2020-08-06 Victor Collod <vcollod@nvidia.com>
3609
3610 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3611
3612 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3613
3614 * corelow.c (core_target::build_file_mappings): Don't output
3615 null pathname in warning.
3616
3617 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3618
3619 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3620 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3621 gdb.dwarf2/dw2-single-line-discriminators.exp,
3622 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3623
3624 2020-08-05 Tom Tromey <tromey@adacore.com>
3625
3626 PR rust/26197:
3627 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3628 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3629 Fix off-by-one and type size errors in ordinary case.
3630
3631 2020-08-05 Tom de Vries <tdevries@suse.de>
3632
3633 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3634 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3635
3636 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3637
3638 * frame.h (frame_id_p): Return bool.
3639 (frame_id_artificial_p): Return bool.
3640 (frame_id_eq): Return bool.
3641 (has_stack_frames): Return bool.
3642 (get_selected_frame): Fix typo in comment.
3643 (get_frame_pc_if_available): Return bool.
3644 (get_frame_address_in_block_if_available): Return bool.
3645 (get_frame_func_if_available): Return bool.
3646 (read_frame_register_unsigned): Return bool.
3647 (get_frame_register_bytes): Return bool.
3648 (safe_frame_unwind_memory): Return bool.
3649 (deprecated_frame_register_read): Return bool.
3650 (frame_unwinder_is): Return bool.
3651 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3652 bool.
3653 <this_id::p>: Likewise.
3654 <prev_p>: Likewise.
3655 (frame_stash_add): Return bool.
3656 (get_frame_id): Use bool.
3657 (frame_id_build_special) Use bool.
3658 (frame_id_build_unavailable_stack): Use bool.
3659 (frame_id_build): Use bool.
3660 (frame_id_p): Return bool, use true/false instead of 1/0.
3661 (frame_id_artificial_p): Likewise.
3662 (frame_id_eq): Likewise.
3663 (frame_id_inner): Likewise.
3664 (get_frame_func_if_available): Likewise.
3665 (read_frame_register_unsigned): Likewise.
3666 (deprecated_frame_register_read): Likewise.
3667 (get_frame_register_bytes): Likewise.
3668 (has_stack_frames): Likewise.
3669 (inside_main_func): Likewise.
3670 (inside_entry_func): Likewise.
3671 (get_frame_pc_if_available): Likewise.
3672 (get_frame_address_in_block_if_available): Likewise.
3673 (frame_unwinder_is): Likewise.
3674 (safe_frame_unwind_memory): Likewise.
3675 (frame_unwind_arch): Likewise.
3676
3677 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3680 type to cached_copy_status.
3681 (fprintf_frame): Adjust.
3682 (get_frame_func_if_available): Adjust.
3683 (frame_cleanup_after_sniffer): Adjust.
3684
3685 2020-08-04 Mark Wielaard <mark@klomp.org>
3686
3687 * MAINTAINERS (Write After Approval): Update email address.
3688
3689 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3690
3691 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3692 dynamic_prop::const_val.
3693
3694 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3697 dynamic_prop::kind.
3698
3699 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3700
3701 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3702
3703 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3704
3705 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3706
3707 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3708 Jose E. Marchesi <jose.marchesi@oracle.com>
3709
3710 * configure.tgt: Add entry for bpf-*-*.
3711 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3712 (ALLDEPFILES): Add bpf-tdep.c.
3713 * bpf-tdep.c: New file.
3714 * MAINTAINERS: Add bpf target and maintainer.
3715 * NEWS: Mention the support for the new target.
3716
3717 2020-08-04 Tom de Vries <tdevries@suse.de>
3718
3719 PR symtab/23270
3720 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3721 Error.
3722
3723 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3724
3725 * syscalls/freebsd.xml: Regenerate.
3726
3727 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3728
3729 * syscalls/update-freebsd.sh: Fix usage and year range.
3730
3731 2020-08-03 Tom de Vries <tdevries@suse.de>
3732
3733 PR symtab/26333
3734 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3735 DW_LNE_lo_user/DW_LNE_hi_user range.
3736
3737 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 PR ada/26318
3740 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3741 kind.
3742
3743 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3744
3745 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3746
3747 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3748
3749 * breakpoint.c (set_breakpoint_condition): Update the condition
3750 expressions after checking that the input condition string parses
3751 successfully and does not contain junk at the end.
3752
3753 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754
3755 * breakpoint.c (set_breakpoint_condition): Update the
3756 condition string after parsing the new condition successfully.
3757
3758 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3759
3760 * proc-api.c (_STRUCTURED_PROC): Don't define.
3761 * proc-events.c: Likewise.
3762 * proc-flags.c: Likewise.
3763 * proc-why.c: Likewise.
3764 * procfs.c: Likewise.
3765
3766 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3767 * configure, config.in: Regenerate.
3768
3769 2020-07-30 Tom de Vries <tdevries@suse.de>
3770
3771 PR build/26320
3772 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3773 m_red/m_green/m_blue in a union.
3774
3775 2020-07-29 Tom de Vries <tdevries@suse.de>
3776
3777 PR tdep/26280
3778 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3779
3780 2020-07-28 Tom Tromey <tromey@adacore.com>
3781
3782 PR symtab/26270:
3783 * symtab.h (find_pc_partial_function_sym): Declare.
3784 * cli/cli-cmds.c (disassemble_command): Use
3785 find_pc_partial_function_sym. Check asm_demangle.
3786 * blockframe.c (cache_pc_function_sym): New global.
3787 (cache_pc_function_name): Remove.
3788 (clear_pc_function_cache): Update.
3789 (find_pc_partial_function_sym): New function, from
3790 find_pc_partial_function.
3791 (find_pc_partial_function): Rewrite using
3792 find_pc_partial_function_sym.
3793
3794 2020-07-28 Tom Tromey <tromey@adacore.com>
3795
3796 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3797 help. Add usage.
3798
3799 2020-07-28 Tom Tromey <tromey@adacore.com>
3800
3801 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3802 <DW_OP_GNU_variable_value>: Cast to address type.
3803
3804 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3805
3806 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3807 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3808 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3809 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3810 (nbsd_get_siginfo_type): New.
3811 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3812 (_initialize_nbsd_tdep): New.
3813
3814 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3815
3816 PR binutils/26301
3817 * configure: Regenerated.
3818
3819 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3820
3821 PR binutils/26301
3822 * configure: Regenerated.
3823
3824 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * python/py-frame.c: Remove 'user-regs.h' include.
3827 (frapy_read_register): Rewrite to make use of
3828 gdbpy_parse_register_id.
3829 * python/py-registers.c (gdbpy_parse_register_id): New function,
3830 moved here from python/py-unwind.c. Updated the return type, and
3831 also accepts register descriptor objects.
3832 * python/py-unwind.c: Remove 'user-regs.h' include.
3833 (pyuw_parse_register_id): Moved to python/py-registers.c.
3834 (unwind_infopy_add_saved_register): Update to use
3835 gdbpy_parse_register_id.
3836 (pending_framepy_read_register): Likewise.
3837 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3838
3839 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3840
3841 * python/py-registers.c: Add 'user-regs.h' include.
3842 (register_descriptor_iter_find): New function.
3843 (register_descriptor_iterator_object_methods): New static global
3844 methods array.
3845 (register_descriptor_iterator_object_type): Add pointer to methods
3846 array.
3847
3848 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3849
3850 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3851 for all architectures on FreeBSD 11.3 and later.
3852
3853 2020-07-27 Tom Tromey <tromey@adacore.com>
3854
3855 * gcore.h (load_corefile): Don't declare.
3856
3857 2020-07-27 Tom de Vries <tdevries@suse.de>
3858
3859 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3860 * config.in: Regenerate.
3861 * configure: Regenerate.
3862
3863 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3864
3865 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3866 ws2tcpip.h. When checking whether socklen_t type is defined, use
3867 ws2tcpip.h if it is available and sys/socket.h isn't.
3868 * configure: Regenerate.
3869 * config.in: Regenerate.
3870
3871 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3872
3873 PR fortran/23051
3874 PR fortran/26139
3875 * valops.c (value_ind): Pass address to
3876 readjust_indirect_value_type.
3877 * value.c (readjust_indirect_value_type): Make parameter
3878 non-const, and add extra address parameter. Resolve original type
3879 before using it.
3880 * value.h (readjust_indirect_value_type): Update function
3881 signature and comment.
3882
3883 2020-07-25 Tom de Vries <tdevries@suse.de>
3884
3885 PR symtab/26243
3886 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3887 entries.
3888
3889 2020-07-24 Aaron Merey <amerey@redhat.com>
3890
3891 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3892 * configure: Rebuild.
3893
3894 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3895
3896 PR corefiles/26294
3897 * corelow.c (_initialize_corelow): Add period to help text
3898 for "maintenance print core-file-backed-mappings".
3899
3900 2020-07-23 Pedro Alves <pedro@palves.net>
3901
3902 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3903 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3904 meanwhile.
3905 * frame.c (frame_cache_generation, get_frame_cache_generation):
3906 New.
3907 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3908 (get_prev_frame_if_no_cycle): On exception, don't touch
3909 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3910 * frame.h (get_frame_cache_generation): Declare.
3911
3912 2020-07-23 Tom de Vries <tdevries@suse.de>
3913
3914 PR tui/26282
3915 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3916 New default constructor.
3917
3918 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3919
3920 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3921 exclude non-statement entries.
3922
3923 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3924
3925 * NEWS (New commands): Mention new command
3926 "maintenance print core-file-backed-mappings".
3927
3928 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3929
3930 * corelow.c (gdbcmd.h): Include.
3931 (core_target::info_proc_mappings): New method.
3932 (get_current_core_target): New function.
3933 (maintenance_print_core_file_backed_mappings): New function.
3934 (_initialize_corelow): Add core-file-backed-mappings to
3935 "maint print" commands.
3936
3937 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3938
3939 * linux-tdep.c (dump_note_entry_p): New function.
3940 (linux_dump_mapping_p_ftype): New typedef.
3941 (linux_find_memory_regions_full): Add new parameter,
3942 should_dump_mapping_p.
3943 (linux_find_memory_regions): Adjust call to
3944 linux_find_memory_regions_full.
3945 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3946 call to linux_find_memory_regions_full.
3947
3948 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3949
3950 * corelow.c (solist.h, unordered_map): Include.
3951 (class core_target): Add field m_core_file_mappings and
3952 method build_file_mappings.
3953 (core_target::core_target): Call build_file_mappings.
3954 (core_target::~core_target): Free memory associated with
3955 m_core_file_mappings.
3956 (core_target::build_file_mappings): New method.
3957 (core_target::xfer_partial): Use m_core_file_mappings
3958 for memory transfers.
3959 * linux-tdep.c (linux_read_core_file_mappings): New
3960 function.
3961 (linux_core_info_proc_mappings): Rewrite to use
3962 linux_read_core_file_mappings.
3963 (linux_init_abi): Register linux_read_core_file_mappings.
3964
3965 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3966
3967 * arch-utils.c (default_read_core_file_mappings): New function.
3968 * arch-utils.c (default_read_core_file_mappings): Declare.
3969 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3970 * gdbarch.h, gdbarch.c: Regenerate.
3971
3972 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3973
3974 PR corefiles/25631
3975 * corelow.c (core_target:xfer_partial): Revise
3976 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3977 case after first checking the stratum beneath the core
3978 target.
3979 (has_all_memory): Return true.
3980 * target.c (raw_memory_xfer_partial): Revise comment
3981 regarding use of has_all_memory.
3982
3983 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3984
3985 * exec.h (section_table_xfer_memory): Revise declaration,
3986 replacing section name parameter with an optional callback
3987 predicate.
3988 * exec.c (section_table_xfer_memory): Likewise.
3989 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3990 of section_table_xfer_memory.
3991
3992 2020-07-22 Tom Tromey <tromey@adacore.com>
3993
3994 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3995 lookup_symbol_search_name.
3996
3997 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3998
3999 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4000 redundant local variable.
4001 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4002 reference, not pointer, update code accordingly.
4003
4004 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4005 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4006
4007 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4008 * jit.c (jit_breakpoint_re_set_internal): Use the
4009 `skip_jit_symbol_lookup` field.
4010
4011 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4012 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4013
4014 * jit.c (jit_read_descriptor): Define the descriptor address once,
4015 use twice.
4016 (jit_breakpoint_deleted): Move the declaration of the loop variable
4017 `iter` into the loop header.
4018 (jit_breakpoint_re_set_internal): Move the declaration of the local
4019 variable `objf_data` to the first point of definition.
4020 (jit_event_handler): Move the declaration of local variables
4021 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4022 Rename `objf` to `jited`.
4023
4024 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4025
4026 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4027 Remove.
4028 * jit.c (get_jiter_objfile_data): Update.
4029
4030 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4031 Simon Marchi <simon.marchi@polymtl.ca>
4032
4033 * jit.c (struct jit_program_space_data): Remove.
4034 (jit_program_space_key): Remove.
4035 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4036 stuff.
4037 (get_jit_program_space_data): Remove.
4038 (jit_breakpoint_deleted): Iterate on all of the program space's
4039 objfiles.
4040 (jit_inferior_init): Likewise.
4041 (jit_breakpoint_re_set_internal): Likewise. Also change return
4042 type to void.
4043 (jit_breakpoint_re_set): Pass current_program_space to
4044 jit_breakpoint_re_set_internal.
4045
4046 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * jit.h (struct jiter_objfile_data) <cached_code_address,
4049 jit_breakpoint>: Move to here from ...
4050 * jit.c (jit_program_space_data): ... here.
4051 (jiter_objfile_data::~jiter_objfile_data): Update.
4052 (jit_breakpoint_deleted): Update.
4053 (jit_breakpoint_re_set_internal): Update.
4054
4055 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4058 checks.
4059 (jit_read_descriptor): Remove NULL check.
4060 (jit_event_handler): Add an assertion.
4061
4062 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4063
4064 * jit.h (struct jit_objfile_data): Split into...
4065 (struct jiter_objfile_data): ... this ...
4066 (struct jited_objfile_data): ... and this.
4067 * objfiles.h (struct objfile) <jit_data>: Remove.
4068 <jiter_data, jited_data>: New fields.
4069 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4070 (jiter_objfile_data::~jiter_objfile_data): ... this.
4071 (get_jit_objfile_data): Rename to ...
4072 (get_jiter_objfile_data): ... this.
4073 (add_objfile_entry): Update.
4074 (jit_read_descriptor): Use get_jiter_objfile_data.
4075 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4076 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4077 (jit_inferior_exit_hook): Use objfile's jited_data field.
4078
4079 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4080
4081 * jit.h: Forward-declare `struct minimal_symbol`.
4082 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4083 constructor, destructor, and an objfile* field.
4084 * jit.c (jit_objfile_data): Remove.
4085 (struct jit_objfile_data): Migrate from here to jit.h.
4086 (jit_objfile_data::~jit_objfile_data): New destructor
4087 implementation with code moved from free_objfile_data.
4088 (free_objfile_data): Delete.
4089 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4090 (jit_find_objf_with_entry_addr): Ditto.
4091 (jit_inferior_exit_hook): Ditto.
4092 (_initialize_jit): Remove the call to
4093 register_objfile_data_with_cleanup.
4094 * objfiles.h (struct objfile) <jit_data>: New field.
4095
4096 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4097
4098 * jit.h: Forward-declare `struct objfile`.
4099 (jit_event_handler): Add a second parameter, the JITer objfile.
4100 * jit.c (jit_read_descriptor): Change the signature to take the
4101 JITer objfile as an argument instead of the jit_program_space_data.
4102 (jit_inferior_init): Update the call to jit_read_descriptor.
4103 (jit_event_handler): Use the new JITer objfile argument when calling
4104 jit_read_descriptor.
4105 * breakpoint.c (handle_jit_event): Update the call to
4106 jit_event_handler to pass the JITer objfile.
4107
4108 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4109
4110 * gdbarch.c: Regenerate.
4111 * gdbarch.h: Regenerate.
4112 * gdbarch.sh (handle_segmentation_fault): Remove method.
4113 * infrun.c (handle_segmentation_fault): Remove.
4114 (print_signal_received_reason): Remove call to
4115 handle_segmentation_fault.
4116
4117 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4118
4119 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4120 Rename to sparc64_linux_report_signal_info and add siggnal
4121 argument.
4122 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4123 instead of sparc64_linux_handle_segmentation_fault.
4124
4125 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4126
4127 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4128 i386_linux_report_signal_info instead of
4129 i386_linux_handle_segmentation_fault.
4130 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4131 to i386_linux_report_signal_info and add siggnal argument.
4132 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4133 of i386_linux_handle_segmentation_fault.
4134 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4135 to i386_linux_report_signal_info and add siggnal argument.
4136
4137 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4138
4139 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4140 hook if present.
4141
4142 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4143
4144 * gdbarch.c: Regenerate.
4145 * gdbarch.h: Regenerate.
4146 * gdbarch.sh (report_signal_info): New method.
4147 * infrun.c (print_signal_received_reason): Invoke gdbarch
4148 report_signal_info hook if present.
4149
4150 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * python/py-registers.c : Add 'unordered_map' include.
4153 (gdbpy_new_reggroup): Renamed to...
4154 (gdbpy_get_reggroup): ...this. Update to only create register
4155 group descriptors when needed.
4156 (gdbpy_reggroup_iter_next): Update.
4157
4158 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * python/py-registers.c (gdbpy_register_object_data): New static
4161 global.
4162 (gdbpy_register_object_data_init): New function.
4163 (gdbpy_new_register_descriptor): Renamed to...
4164 (gdbpy_get_register_descriptor): ...this, and update to reuse
4165 existing register descriptors where possible.
4166 (gdbpy_register_descriptor_iter_next): Update.
4167 (gdbpy_initialize_registers): Register new gdbarch data.
4168
4169 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * linux-nat.c (stopped_pids): Make static.
4172
4173 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 PR ada/26235
4176 * gdbtypes.c (ada_discrete_type_low_bound,
4177 ada_discrete_type_high_bound): Handle undefined bounds.
4178
4179 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4180
4181 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4182 declaration.
4183 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4184 function.
4185
4186 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4187
4188 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4189 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4190 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4191 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4192 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4193 method.
4194
4195 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4196
4197 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4198 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4199 which are deprecated in Guile 3.0.
4200 * configure.ac (try_guile_versions): Add "guile-3.0".
4201 * configure (try_guile_versions): Regenerate.
4202 * NEWS: Update entry.
4203
4204 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4205 Doug Evans <dje@google.com>
4206
4207 PR gdb/21104
4208 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4209 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4210 USING_GUILE_BEFORE_2_2.
4211 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4212 Change type to 'scm_t_port_type *'.
4213 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4214 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4215 parameter and honor it. Update callers.
4216 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4217 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4218 functions.
4219 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4220 USING_GUILE_BEFORE_2_2.
4221 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4222 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4223 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4224 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4225 and 'SCM_PORT_TYPE'.
4226 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4227 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4228 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4229 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4230 [!USING_GUILE_BEFORE_2_2]: New functions.
4231 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4232 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4233 'gdbscm_memory_port_read'.
4234 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4235 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4236 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4237 function.
4238 (ioscm_init_memory_port): Remove.
4239 (ioscm_init_memory_port_stream): New function
4240 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4241 function.
4242 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4243 Return scm_from_uint (0).
4244 (gdbscm_set_memory_port_read_buffer_size_x)
4245 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4246 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4247 Return scm_from_uint (0).
4248 (gdbscm_set_memory_port_write_buffer_size_x)
4249 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4250 * configure.ac (try_guile_versions): Add "guile-2.2".
4251 * configure: Regenerate.
4252 * NEWS: Add entry.
4253
4254 2020-07-18 Tom Tromey <tom@tromey.com>
4255
4256 * linux-nat.c (linux_multi_process): Remove.
4257 (linux_nat_target::supports_multi_process): Return true.
4258
4259 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4262 (riscv_lookup_target_description): Return pointer out of
4263 unique_ptr.
4264 * target-descriptions.c (allocate_target_description): Add
4265 comment.
4266 (target_desc_deleter::operator()): Likewise.
4267 * target-descriptions.h (struct target_desc_deleter): Moved to
4268 gdbsupport/tdesc.h.
4269 (target_desc_up): Likewise.
4270
4271 2020-07-17 Tom Tromey <tromey@adacore.com>
4272
4273 * linux-nat.c (linux_nat_target::supports_non_stop)
4274 (linux_nat_target::always_non_stop_p): Use "true".
4275 (linux_nat_target::supports_disable_randomization): Use "true" and
4276 "false".
4277
4278 2020-07-16 Caroline Tice <cmtice@google.com>
4279
4280 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4281 (RNGLIST_HEADER_SIZE64): New constant definition.
4282 (struct dwop_section_names): Add rnglists_dwo.
4283 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4284 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4285 (struct dwo_sections): Add rnglists field.
4286 (read_attribut_reprocess): Add tag parameter.
4287 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4288 (cu_debug_rnglists_section): New function (decl & definition).
4289 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4290 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4291 die whose range is being checked; get rnglist section from
4292 cu_debug_rnglists_section, to get from either objfile or dwo file as
4293 appropriate. Add cases for DW_RLE_base_addressx,
4294 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4295 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4296 test inside if-condition and updating complaint message.
4297 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4298 dwarf2_rnglists_process.
4299 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4300 dwarf2_ranges_process.
4301 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4302 need_ranges_base and update comment appropriately. Also pass die tag
4303 to dwarf2_ranges_read.
4304 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4305 need_ranges_base and update comment appropriately. Also pass die tag
4306 to dwarf2_ranges_process.
4307 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4308 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4309 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4310 need_ranges_base and update comment appropriately. Also pass die tag
4311 to read_attribute_reprocess and dwarf2_ranges_read.
4312 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4313 and update function comment appropriately.
4314 (read_loclist_index): Call read_loclists_rnglists_header instead of
4315 read_loclist_header.
4316 (read_rnglist_index): New function.
4317 (read_attribute_reprocess): Add tag parameter. Add code for
4318 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4319 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4320
4321 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4322
4323 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4324 being resolved.
4325
4326 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * arch-utils.c (show_architecture): Update formatting of messages.
4329
4330 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * gdbtypes.h (struct type) <bounds>: Handle array and string
4333 types.
4334 * ada-lang.c (assign_aggregate): Use type::bounds on
4335 array/string type.
4336 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4337 * c-varobj.c (c_number_of_children): Likewise.
4338 (c_describe_child): Likewise.
4339 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4340 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4341 (f_type_print_base): Likewise.
4342 * f-valprint.c (f77_array_offset_tbl): Likewise.
4343 (f77_get_upperbound): Likewise.
4344 (f77_print_array_1): Likewise.
4345 * guile/scm-type.c (gdbscm_type_range): Likewise.
4346 * m2-typeprint.c (m2_array): Likewise.
4347 (m2_is_long_set_of_type): Likewise.
4348 * m2-valprint.c (get_long_set_bounds): Likewise.
4349 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4350 * python/py-type.c (typy_range): Likewise.
4351 * rust-lang.c (rust_internal_print_type): Likewise.
4352 * type-stack.c (type_stack::follow_types): Likewise.
4353 * valarith.c (value_subscripted_rvalue): Likewise.
4354 * valops.c (value_cast): Likewise.
4355
4356 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4359 callers to use the equivalent accessor methods.
4360
4361 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4364 (struct type) <bit_stride>: New method.
4365 (TYPE_BIT_STRIDE): Remove.
4366 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4367
4368 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4371 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4372 callers to use the equivalent accessor methods instead.
4373
4374 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4377 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4378 callers to use the equivalent accessor methods instead.
4379
4380 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4381
4382 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4383 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4384 to use dynamic_prop::kind.
4385
4386 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4389 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4390 to get the bound property's kind and check against
4391 PROP_UNDEFINED.
4392
4393 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4396 all callers to use type::range_bounds followed by
4397 dynamic_prop::{low,high}.
4398
4399 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4402 const_val, set_const_val, baton, set_locexpr, set_loclist,
4403 set_addr_offset, variant_parts, set_variant_parts,
4404 original_type, set_original_type>: New methods.
4405 <kind>: Rename to...
4406 <m_kind>: ... this. Update all users to use the new methods
4407 instead.
4408 <data>: Rename to...
4409 <m_data>: ... this. Update all users to use the new methods
4410 instead.
4411
4412 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * gdbtypes.c (get_discrete_bounds): Return failure if
4415 the range type's bounds are not both defined and constant
4416 values.
4417 (get_array_bounds): Update comment. Remove undefined bound check.
4418
4419 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4420
4421 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4422 the type::bounds method directly.
4423
4424 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4425
4426 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4427 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4428 are used to set the range type's bounds to use set_bounds.
4429
4430 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4431
4432 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4433
4434 2020-07-10 Pedro Alves <pedro@palves.net>
4435
4436 * gdbthread.h (inferior_ref): Define.
4437 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4438 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4439 * thread.c
4440 (scoped_restore_current_thread::restore):
4441 Adjust to gdb::ref_ptr.
4442 (scoped_restore_current_thread::~scoped_restore_current_thread):
4443 Remove manual decref handling.
4444 (scoped_restore_current_thread::scoped_restore_current_thread):
4445 Adjust to use
4446 inferior_ref::new_reference/thread_info_ref::new_reference.
4447 Incref the thread before calling get_frame_id instead of after.
4448 Let TARGET_CLOSE_ERROR propagate.
4449
4450 2020-07-10 Pedro Alves <pedro@palves.net>
4451
4452 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4453 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4454 NOT_AVAILABLE_ERROR.
4455 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4456 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4457
4458 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4459 Pedro Alves <pedro@palves.net>
4460
4461 PR gdb/26199
4462 * infrun.c (threads_are_resumed_pending_p): Delete.
4463 (do_target_wait): Remove threads_are_executing and
4464 threads_are_resumed_pending_p checks from the inferior_matches
4465 lambda. Update comments.
4466
4467 2020-07-10 Pedro Alves <pedro@palves.net>
4468
4469 PR gdb/26199
4470 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4471 executing threads.
4472
4473 2020-07-10 Pedro Alves <pedro@palves.net>
4474
4475 PR gdb/26199
4476 * infrun.c (handle_no_resumed): Handle multiple targets.
4477
4478 2020-07-10 Pedro Alves <pedro@palves.net>
4479
4480 PR gdb/26199
4481 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4482 target_is_async_p.
4483
4484 2020-07-10 Pedro Alves <pedro@palves.net>
4485
4486 PR gdb/26199
4487 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4488 threads, not all threads.
4489
4490 2020-07-10 Pedro Alves <pedro@palves.net>
4491
4492 PR gdb/26199
4493 * remote.c (remote_target::open_1): Pass remote target pointer as
4494 data to create_async_event_handler.
4495 (remote_async_inferior_event_handler): Mark async event handler
4496 before returning if the remote target still has either pending
4497 events or unacknowledged notifications.
4498
4499 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4500
4501 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4502 declaration.
4503 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4504 function.
4505
4506 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4507
4508 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4509 inferior_ptid.
4510
4511 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4512
4513 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4514 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4515 AT_FREEBSD_PS_STRINGS.
4516
4517 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4518
4519 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4520 of debugfile path on Windows.
4521
4522 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4523
4524 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4525 argument to 'data'.
4526
4527 2020-07-08 Tom Tromey <tromey@adacore.com>
4528
4529 * ada-lang.c (ada_exception_message_1): Use read_memory.
4530
4531 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 PR python/22748
4534 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4535 special handling for inline frames.
4536 * findvar.c (value_of_register_lazy): Skip inline frames when
4537 creating lazy register values.
4538 * frame.c (frame_id_computed_p): Delete definition.
4539 * frame.h (frame_id_computed_p): Delete declaration.
4540
4541 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4542
4543 * NEWS: Mention additions to Python API.
4544 * python/py-arch.c (archpy_register_groups): New function.
4545 (arch_object_methods): Add 'register_groups' method.
4546 * python/py-registers.c (reggroup_iterator_object): New struct.
4547 (reggroup_object): New struct.
4548 (gdbpy_new_reggroup): New function.
4549 (gdbpy_reggroup_to_string): New function.
4550 (gdbpy_reggroup_name): New function.
4551 (gdbpy_reggroup_iter): New function.
4552 (gdbpy_reggroup_iter_next): New function.
4553 (gdbpy_new_reggroup_iterator): New function
4554 (gdbpy_initialize_registers): Register new types.
4555 (reggroup_iterator_object_type): Define new Python type.
4556 (gdbpy_reggroup_getset): New static global.
4557 (reggroup_object_type): Define new Python type.
4558 * python/python-internal.h
4559
4560 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4563 * python/py-arch.c (archpy_registers): New function.
4564 (arch_object_methods): Add 'registers' method.
4565 * python/py-registers.c: New file.
4566 * python/python-internal.h
4567 (gdbpy_new_register_descriptor_iterator): Declare.
4568 (gdbpy_initialize_registers): Declare.
4569 * python/python.c (do_start_initialization): Call
4570 gdbpy_initialize_registers.
4571 * NEWS: Mention additions to the Python API.
4572
4573 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 * NEWS: Mention new Python API method.
4576 * python/py-unwind.c (pending_framepy_architecture): New function.
4577 (pending_frame_object_methods): Add architecture method.
4578
4579 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * gdbarch.c: Regenerate.
4582 * gdbarch.h: Regenerate.
4583 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4584 (gdbarch_data): Use internal_error for the case where
4585 deprecated_set_gdbarch_data was originally needed.
4586 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4587 and use passed in obstack.
4588 (libunwind_frame_set_descr): Should no longer get back NULL from
4589 gdbarch_data.
4590 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4591 type.
4592 * user-regs.c (user_regs_init): Update parameters, and use passed
4593 in obstack.
4594 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4595 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4596
4597 2020-07-06 Tom de Vries <tdevries@suse.de>
4598
4599 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4600 End-Of-Sequence in lte_is_less_than.
4601 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4602 "gdb: Don't reorder line table entries too much when sorting".
4603
4604 2020-07-06 Tom de Vries <tdevries@suse.de>
4605
4606 PR tui/26205
4607 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4608
4609 2020-07-05 Tom de Vries <tdevries@suse.de>
4610
4611 PR build/26187
4612 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4613 std::uncaught_exceptions instead of deprecated
4614 std::uncaught_exception.
4615
4616 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4617
4618 * macroexp.h (macro_stringify): Return
4619 gdb::unique_xmalloc_ptr<char>.
4620 * macroexp.c (macro_stringify): Likewise.
4621 * macrotab.c (fixup_definition): Update.
4622
4623 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4624
4625 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4626 (lex_one_token): Update.
4627 * macroexp.c (struct macro_buffer) <release>: Return
4628 gdb::unique_xmalloc_ptr<char>.
4629 (macro_stringify): Update.
4630 (macro_expand): Update.
4631 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4632 * macroexp.h (macro_expand_next): Likewise.
4633
4634 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * macroexp.h (macro_lookup_ftype): Remove.
4637 (macro_expand, macro_expand_once, macro_expand_next): Remove
4638 lookup function parameters, add scope parameter.
4639 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4640 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4641 * macroscope.h (standard_macro_lookup): Change parameter type
4642 to macro_scope.
4643 * macroscope.c (standard_macro_lookup): Likewise.
4644 * c-exp.y (lex_one_token): Update.
4645 * macrocmd.c (macro_expand_command): Likewise.
4646 (macro_expand_once_command): Likewise.
4647
4648 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * inf-loop.c (inferior_event_handler): Remove client_data param.
4651 * inf-loop.h (inferior_event_handler): Likewise.
4652 * infcmd.c (step_1): Adjust.
4653 * infrun.c (proceed): Adjust.
4654 (fetch_inferior_event): Remove client_data param.
4655 (infrun_async_inferior_event_handler): Adjust.
4656 * infrun.h (fetch_inferior_event): Remove `void *` param.
4657 * linux-nat.c (handle_target_event): Adjust.
4658 * record-btrace.c (record_btrace_handle_async_inferior_event):
4659 Adjust.
4660 * record-full.c (record_full_async_inferior_event_handler):
4661 Adjust.
4662 * remote.c (remote_async_inferior_event_handler): Adjust.
4663
4664 2020-07-01 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4667 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4668
4669 2020-07-01 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4672 tui_gen_win_info.
4673 (tui_win_info::make_window): Merge with
4674 tui_gen_win_info::make_window.
4675 (tui_win_info::make_visible): Move from tui_gen_win_info.
4676 * tui/tui-win.c (tui_win_info::max_width): Move from
4677 tui_gen_win_info.
4678 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4679 type.
4680 <window_factory>: Likewise.
4681 * tui/tui-layout.c (tui_win_info::resize): Move from
4682 tui_gen_win_info.
4683 (make_standard_window): Change return type.
4684 (get_locator_window, tui_get_window_by_name): Likewise.
4685 (tui_layout_window::apply): Remove a cast.
4686 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4687 (struct tui_win_info): Merge with tui_gen_win_info.
4688 (struct tui_gen_win_info): Remove.
4689
4690 2020-07-01 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-stack.h (struct tui_locator_window): Derive from
4693 tui_win_info.
4694 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4695 <can_box>: New method.
4696
4697 2020-07-01 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4700
4701 2020-07-01 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-regs.c (tui_data_window::display_registers_from)
4704 (tui_data_window::display_registers_from)
4705 (tui_data_window::first_data_item_displayed)
4706 (tui_data_window::delete_data_content_windows): Update.
4707 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4708 Remove.
4709 (tui_data_window::check_register_values): Update.
4710 (tui_data_item_window::rerender): Add parameters. Update.
4711 (tui_data_item_window::refresh_window): Remove.
4712 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4713 virtual.
4714 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4715 tui_gen_win_info.
4716 <refresh_window, max_height, min_height>: Remove.
4717 <rerender>: Add parameters.
4718 <x, y, visible>: New members.
4719 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4720 <m_item_width>: New member.
4721
4722 2020-07-01 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-regs.c (tui_data_window::show_register_group)
4725 (tui_data_window::check_register_values): Update.
4726 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4727 from item_no.
4728
4729 2020-07-01 Tom Tromey <tom@tromey.com>
4730
4731 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4732 useless "if".
4733
4734 2020-07-01 Tom Tromey <tom@tromey.com>
4735
4736 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4737 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4738
4739 2020-07-01 Tom Tromey <tom@tromey.com>
4740
4741 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4742 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4743 (struct tui_line_or_address): Move from tui-data.h.
4744 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4745 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4746 (tui_cmd_window, tui_source_window_base, tui_source_window)
4747 (tui_disasm_window): Don't declare.
4748 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4749 to tui-winsource.h.
4750 (SINGLE_KEY): Move to tui-stack.c.
4751
4752 2020-07-01 Tom Tromey <tom@tromey.com>
4753
4754 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4755 std::string.
4756 * tui/tui-regs.c (class tab_expansion_file): New.
4757 (tab_expansion_file::write): New method.
4758 (tui_register_format): Change return type. Use
4759 tab_expansion_file.
4760 (tui_get_register, tui_data_window::display_registers_from)
4761 (tui_data_item_window::rerender): Update.
4762 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4763 * tui/tui-io.c (tui_expand_tabs): Remove.
4764
4765 2020-07-01 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4768
4769 2020-07-01 Fangrui Song <maskray@google.com>
4770
4771 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4772
4773 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4774
4775 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4776 forms for DW_AT_associated and DW_AT_allocated attributes,
4777 which is already checked in function attr_to_dynamic_prop.
4778
4779 2020-06-30 Tom Tromey <tromey@adacore.com>
4780
4781 * dwarf2/read.c (quirk_rust_enum): Correctly call
4782 alloc_rust_variant for default-less enum.
4783
4784 2020-06-30 Tom Tromey <tromey@adacore.com>
4785
4786 PR build/26183:
4787 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4788 gdb::to_string.
4789
4790 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4793 * gdbarch.h: Re-generate.
4794
4795 2020-06-28 Tom Tromey <tom@tromey.com>
4796
4797 * command.h (cmd_types): Remove.
4798 (cmd_type): Don't declare.
4799 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4800 typedef.
4801 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4802 * cli/cli-decode.c (cmd_type): Remove.
4803
4804 2020-06-27 Pedro Alves <palves@redhat.com>
4805
4806 * fork-child.c (prefork_hook): Adjust.
4807 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4808 Delete.
4809 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4810 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4811 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4812 Remove declarations.
4813 (struct inferior) <set_tty, tty>: New methods.
4814 (struct inferior) <terminal>: Rename to ...
4815 (struct inferior) <m_terminal>: ... this and make private.
4816 * main.c (captured_main_1): Adjust.
4817 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4818 (mi_cmd_inferior_tty_show): Adjust.
4819 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4820 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4821
4822 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4823
4824 * configure.ac: Add --enable-libctf: handle --disable-static
4825 properly.
4826 * acinclude.m4: sinclude ../config/enable.m4.
4827 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4828 (LIBCTF): Substitute in.
4829 (CTF_DEPS): New, likewise.
4830 (CLIBS): libctf needs symbols from libbfd: move earlier.
4831 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4832 flags.
4833 * ctfread.c: Surround in ENABLE_LIBCTF.
4834 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4835 * configure: Regenerate.
4836 * config.in: Likewise.
4837
4838 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4841
4842 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * inferior.h (struct inferior) <terminal>: Change type to
4845 gdb::unique_xmalloc_ptr<char>.
4846 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4847 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4848 field, adjust to unique pointer.
4849 (get_inferior_io_terminal): Adjust to unique pointer.
4850
4851 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4852
4853 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4854 registers, not just the known core set of registers.
4855
4856 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4857
4858 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4859 fflags, frm, and fcsr registers.
4860 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4861 restore groups.
4862 (riscv_tdesc_unknown_reg): New function.
4863 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4864 tdesc_use_registers.
4865 * riscv-tdep.h (struct gdbarch_tdep): Add
4866 unknown_csrs_first_regnum, unknown_csrs_count,
4867 duplicate_fflags_regnum, duplicate_frm_regnum, and
4868 duplicate_fcsr_regnum fields.
4869
4870 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4873 callback, use the callback (when not null) to help number unknown
4874 registers.
4875 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4876 (tdesc_use_registers): Add extra parameter to declaration.
4877
4878 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4879
4880 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4881 in the file.
4882 (class riscv_pending_register_alias): Likewise.
4883 (riscv_register_feature::register_info): Change 'required_p' field
4884 to 'required', and change its type. Add 'check' member function.
4885 (riscv_register_feature::register_info::check): Define new member
4886 function.
4887 (riscv_xreg_feature): Change initialisation of 'required' field.
4888 (riscv_freg_feature): Likewise.
4889 (riscv_virtual_feature): Likewise.
4890 (riscv_csr_feature): Likewise.
4891 (riscv_check_tdesc_feature): Take extra parameter, the csr
4892 tdesc_feature, rewrite the function to use the new
4893 riscv_register_feature::register_info::check function.
4894 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4895
4896 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * features/Makefile: Remove all references to the deleted files
4899 below.
4900 * features/riscv/32bit-csr.c: Deleted.
4901 * features/riscv/32bit-csr.xml: Deleted.
4902 * features/riscv/64bit-csr.c: Deleted.
4903 * features/riscv/64bit-csr.xml: Deleted.
4904 * features/riscv/rebuild-csr-xml.sh: Deleted.
4905
4906 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4909 whitespace error for declaration of names member variable.
4910 (struct riscv_register_feature): Add new prefer_first_name member
4911 variable, and fix whitespace error in declaration of registers.
4912 (riscv_xreg_feature): Initialize prefer_first_name field.
4913 (riscv_freg_feature): Likewise.
4914 (riscv_virtual_feature): Likewise.
4915 (riscv_csr_feature): Likewise.
4916 (riscv_register_name): Expand on comments. Remove register name
4917 modifications for CSR and virtual registers.
4918
4919 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4920
4921 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4922 errors.
4923
4924 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4925
4926 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4927 riscv-opc.h.
4928 (class riscv_pending_register_alias): New class.
4929 (riscv_check_tdesc_feature): Take vector of pending aliases and
4930 populate it as appropriate.
4931 (riscv_setup_register_aliases): Delete.
4932 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4933 to riscv_check_tdesc_feature in all cases. Use the vector to
4934 create the register aliases.
4935
4936 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4937
4938 * sol2-tdep.c (sol2_static_transform_name): Remove.
4939 (sol2_init_abi): Don't register it.
4940 * gdbarch.sh (static_transform_name): Remove.
4941 * gdbarch.c, gdbarch.h: Regenerate.
4942
4943 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4944 gdbarch_static_transform_name.
4945 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4946 * stabsread.c (define_symbol) <'X'>: Remove.
4947 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4948 handling.
4949 <'V'>: Likewise.
4950 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4951 <'S'>: Remove call to gdbarch_static_transform_name.
4952
4953 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4954
4955 * procfs.c (procfs_pre_trace): New function.
4956 (procfs_target::create_inferior): Pass it to fork_inferior.
4957
4958 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4959
4960 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4961 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4962 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4963 sol2-tdep.o, sparc-sol2-tdep.o.
4964 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4965 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4966 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4967 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4968
4969 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4970
4971 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4972 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4973 Call sol2_init_abi.
4974 Remove calls to set_gdbarch_skip_solib_resolver,
4975 set_gdbarch_core_pid_to_str.
4976 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4977 (i386_sol2_static_transform_name): Remove.
4978 (i386_sol2_init_abi): Call sol2_init_abi.
4979 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4980 set_gdbarch_static_transform_name,
4981 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4982 Use sol2_sigtramp_p.
4983 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4984 (sol2_sigtramp_p): New function.
4985 (sol2_static_transform_name): New function.
4986 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4987 (sol2_init_abi): New function.
4988 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4989 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4990 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4991 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4992 (sparc_sol2_static_transform_name): Remove.
4993 (sparc32_sol2_init_abi): Call sol2_init_abi.
4994 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4995 set_gdbarch_static_transform_name,
4996 set_gdbarch_skip_solib_resolver,
4997 set_gdbarch_core_pid_to_str.
4998 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4999 (sparc_sol2_static_transform_name): Remove
5000 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5001 call sol2_sigtramp_p.
5002 (sparc64_sol2_init_abi): Call sol2_init_abi.
5003 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5004 set_gdbarch_static_transform_name,
5005 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5006
5007 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5008
5009 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5010 * exec.c (validate_exec_file): If from_tty, set both
5011 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5012 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5013 and from_tty, unconditionally ask a confirmation.
5014
5015 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5016
5017 * target-descriptions.c (tdesc_architecture_name): Protect against
5018 NULL pointer dereference.
5019 (maint_print_xml_tdesc_cmd): New function.
5020 (_initialize_target_descriptions): Register new 'maint print
5021 xml-tdesc' command and give it the filename completer.
5022 * NEWS: Mention new 'maint print xml-tdesc' command.
5023
5024 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5025
5026 * target-descriptions.c (class tdesc_compatible_info): New class.
5027 (struct target_desc): Change type of compatible vector.
5028 (tdesc_compatible_p): Update for change in type of
5029 target_desc::compatible.
5030 (tdesc_compatible_info_list): New function.
5031 (tdesc_compatible_info_arch_name): New function.
5032 (tdesc_add_compatible): Update for change in type of
5033 target_desc::compatible.
5034 (print_c_tdesc::visit_pre): Likewise.
5035
5036 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5039 whitespace to underscore.
5040 (maint_print_c_tdesc_cmd): Use fake filename for target
5041 descriptions that came from the target.
5042 (_initialize_target_descriptions): Add filename command completion
5043 for 'maint print c-tdesc'.
5044
5045 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5048 lines.
5049
5050 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5051
5052 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5053 lines.
5054 (dwarf2_find_location_expression): Likewise.
5055 (call_site_parameter_matches): Likewise.
5056 (dwarf2_compile_expr_to_ax): Likewise.
5057 (disassemble_dwarf_expression): Likewise.
5058 (loclist_describe_location): Likewise.
5059
5060 2020-06-23 Pedro Alves <palves@redhat.com>
5061
5062 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5063 progspace-and-thread.h. Include scoped-mock-context.h instead.
5064 (register_to_value_test): Use scoped_mock_context.
5065 * regcache.c: Include "scoped-mock-context.h".
5066 (cooked_read_test): Don't error out if a target is already pushed.
5067 Use scoped_mock_context. Adjust.
5068 * scoped-mock-context.h: New file.
5069
5070 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5073 initializer.
5074 (ada_language::is_string_type_p): New member function.
5075 * c-lang.c (c_language_data): Delete la_is_string_type_p
5076 initializer.
5077 (cplus_language_data): Likewise.
5078 (asm_language_data): Likewise.
5079 (minimal_language_data): Likewise.
5080 * d-lang.c (d_language_data): Likewise.
5081 * f-lang.c (f_is_string_type_p): Delete function, implementation
5082 moved to f_language::is_string_type_p.
5083 (f_language_data): Delete la_is_string_type_p initializer.
5084 (f_language::is_string_type_p): New member function,
5085 implementation from f_is_string_type_p.
5086 * go-lang.c (go_is_string_type_p): Delete function, implementation
5087 moved to go_language::is_string_type_p.
5088 (go_language_data): Delete la_is_string_type_p initializer.
5089 (go_language::is_string_type_p): New member function,
5090 implementation from go_is_string_type_p.
5091 * language.c (language_defn::is_string_type_p): Define new member
5092 function.
5093 (default_is_string_type_p): Make static, add comment copied from
5094 header file.
5095 (unknown_language_data): Delete la_is_string_type_p initializer.
5096 (unknown_language::is_string_type_p): New member function.
5097 (auto_language_data): Delete la_is_string_type_p initializer.
5098 (auto_language::is_string_type_p): New member function.
5099 * language.h (language_data): Delete la_is_string_type_p field.
5100 (language_defn::is_string_type_p): Declare new function.
5101 (default_is_string_type_p): Delete desclaration, move comment to
5102 definition.
5103 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5104 moved to m2_language::is_string_type_p.
5105 (m2_language_data): Delete la_is_string_type_p initializer.
5106 (m2_language::is_string_type_p): New member function,
5107 implementation from m2_is_string_type_p.
5108 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5109 initializer.
5110 * opencl-lang.c (opencl_language_data): Likewise.
5111 * p-lang.c (pascal_is_string_type_p): Delete function,
5112 implementation moved to pascal_language::is_string_type_p.
5113 (pascal_language_data): Delete la_is_string_type_p initializer.
5114 (pascal_language::is_string_type_p): New member function,
5115 implementation from pascal_is_string_type_p.
5116 * rust-lang.c (rust_is_string_type_p): Delete function,
5117 implementation moved to rust_language::is_string_type_p.
5118 (rust_language_data): Delete la_is_string_type_p initializer.
5119 (rust_language::is_string_type_p): New member function,
5120 implementation from rust_is_string_type_p.
5121 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5122 is_string_type_p.
5123
5124 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5125
5126 * ada-lang.c (ada_language_data): Delete la_print_typedef
5127 initializer.
5128 (ada_language::print_typedef): New member function.
5129 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5130 (cplus_language_data): Likewise.
5131 (asm_language_data): Likewise.
5132 (minimal_language_data): Likewise.
5133 * d-lang.c (d_language_data): Likewise.
5134 * f-lang.c (f_language_data): Likewise.
5135 (f_language::print_typedef): New member function.
5136 * go-lang.c (go_language_data): Delete la_print_typedef
5137 initializer.
5138 * language.c (language_defn::print_typedef): Define member
5139 function.
5140 (unknown_language_data): Delete la_print_typedef initializer.
5141 (unknown_language::print_typedef): New member function.
5142 (auto_language_data): Delete la_print_typedef initializer.
5143 (auto_language::print_typedef): New member function.
5144 * language.h (language_data): Delete la_print_typedef field.
5145 (language_defn::print_typedef): Declare new member function.
5146 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5147 (default_print_typedef): Delete declaration.
5148 * m2-lang.c (m2_language_data): Delete la_print_typedef
5149 initializer.
5150 (m2_language::print_typedef): New member function.
5151 * objc-lang.c (objc_language_data): Delete la_print_typedef
5152 initializer.
5153 * opencl-lang.c (opencl_language_data): Likewise.
5154 * p-lang.c (pascal_language_data): Likewise.
5155 (pascal_language::print_typedef): New member function.
5156 * rust-lang.c (rust_print_typedef): Delete function,
5157 implementation moved to rust_language::print_typedef.
5158 (rust_language): Delete la_print_typedef initializer.
5159 (rust_language::print_typedef): New member function,
5160 implementation from rust_print_typedef.
5161 * typeprint.c (default_print_typedef): Delete.
5162
5163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5166 (ada_language::printstr): New member function.
5167 * c-lang.c (c_language_data): Delete la_printstr initializer.
5168 (cplus_language_data): Likewise.
5169 (asm_language_data): Likewise.
5170 (minimal_language_data): Likewise.
5171 * d-lang.c (d_language_data): Likewise.
5172 * f-lang.c (f_printstr): Rename to f_language::printstr.
5173 (f_language_data): Delete la_printstr initializer.
5174 (f_language::printstr): New member function, implementation from
5175 f_printstr.
5176 * go-lang.c (go_language_data): Delete la_printstr initializer.
5177 * language.c (language_defn::printstr): Define new member
5178 function.
5179 (unk_lang_printstr): Delete.
5180 (unknown_language_data): Delete la_printstr initializer.
5181 (unknown_language::printstr): New member function.
5182 (auto_language_data): Delete la_printstr initializer.
5183 (auto_language::printstr): New member function.
5184 * language.h (language_data): Delete la_printstr field.
5185 (language_defn::printstr): Declare new member function.
5186 (LA_PRINT_STRING): Update call to printstr.
5187 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5188 (m2_language_data): Delete la_printstr initializer.
5189 (m2_language::printstr): New member function, implementation from
5190 m2_printstr.
5191 * objc-lang.c (objc_language_data): Delete la_printstr
5192 initializer.
5193 * opencl-lang.c (opencl_language_data): Likewise.
5194 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5195 (pascal_language_data): Delete la_printstr initializer.
5196 (pascal_language::printstr): New member function, implementation
5197 from pascal_printstr.
5198 * p-lang.h (pascal_printstr): Delete declaration.
5199 * rust-lang.c (rust_printstr): Update header comment.
5200 (rust_language_data): Delete la_printstr initializer.
5201 (rust_language::printstr): New member function.
5202
5203 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5206 (ada_language::printchar): New member function.
5207 * c-lang.c (c_language_data): Delete la_printchar initializer.
5208 (cplus_language_data): Likewise.
5209 (asm_language_data): Likewise.
5210 (minimal_language_data): Likewise.
5211 * d-lang.c (d_language_data): Likewise.
5212 * f-lang.c (f_printchar): Rename to f_language::printchar.
5213 (f_language_data): Delete la_printchar initializer.
5214 (f_language::printchar): New member function, implementation from
5215 f_printchar.
5216 * go-lang.c (go_language_data): Delete la_printchar initializer.
5217 * language.c (unk_lang_printchar): Delete.
5218 (language_defn::printchar): Define new member function.
5219 (unknown_language_data): Delete la_printchar initializer.
5220 (unknown_language::printchar): New member function.
5221 (auto_language_data): Delete la_printchar initializer.
5222 (auto_language::printchar): New member function.
5223 * language.h (language_data): Delete la_printchar field.
5224 (language_defn::printchar): Declare new member function.
5225 (LA_PRINT_CHAR): Update call to printchar.
5226 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5227 (m2_language::printchar): New member function.
5228 * objc-lang.c (objc_language_data): Delete la_printchar
5229 initializer.
5230 * opencl-lang.c (opencl_language_data): Likewise.
5231 * p-lang.c (pascal_language_data): Delete la_printchar
5232 initializer.
5233 (pascal_language::printchar): New member function.
5234 * rust-lang.c (rust_printchar): Rename to
5235 rust_language::printchar.
5236 (rust_language_data): Delete la_printchar initializer.
5237 (rust_language::printchar): New member function, implementation
5238 from rust_printchar.
5239
5240 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5241
5242 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5243 (ada_language_data): Delete la_emitchar initializer.
5244 (ada_language::emitchar): New member function, implementation from
5245 emit_char.
5246 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5247 (cplus_language_data): Likewise.
5248 (asm_language_data): Likewise.
5249 (minimal_language_data): Likewise.
5250 * d-lang.c (d_language_data): Likewise.
5251 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5252 (f_language_data): Delete la_emitchar initializer.
5253 (f_language::emitchar): New member function, implementation from
5254 f_emit_char.
5255 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5256 * language.c (unk_lang_emit_char): Delete.
5257 (language_defn::emitchar): New member function definition.
5258 (unknown_language_data): Delete la_emitchar initializer.
5259 (unknown_language::emitchar): New member function.
5260 (auto_language_data): Delete la_emitchar initializer.
5261 (auto_language::emitchar): New member function.
5262 * language.h (language_data): Delete la_emitchar field.
5263 (language_defn::emitchar): New member field declaration.
5264 (LA_EMIT_CHAR): Update call to emitchar.
5265 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5266 (m2_language_data): Delete la_emitchar initializer.
5267 (m2_language::emitchar): New member function, implementation from
5268 m2_emit_char.
5269 * objc-lang.c (objc_language_data): Delete la_emitchar
5270 initializer.
5271 * opencl-lang.c (opencl_language_data): Likewise.
5272 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5273 (pascal_language_data): Delete la_emitchar initializer.
5274 (pascal_language::emitchar): New member function, implementation
5275 from pascal_emit_char.
5276 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5277 (rust_language_data): Delete la_emitchar initializer.
5278 (rust_language::emitchar): New member function, implementation
5279 from rust_emitchar.
5280
5281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5284 (ada_language_data): Delete la_post_parser initializer.
5285 (ada_language::post_parser): New member function.
5286 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5287 (cplus_language_data): Likewise.
5288 (asm_language_data): Likewise.
5289 (minimal_language_data): Likewise.
5290 * d-lang.c (d_language_data): Likewise.
5291 * f-lang.c (f_language_data): Likewise.
5292 * go-lang.c (go_language_data): Likewise.
5293 * language.c (unknown_language_data): Likewise.
5294 (auto_language_data): Likewise.
5295 * language.h (language_data): Delete la_post_parser field.
5296 (language_defn::post_parser): New member function.
5297 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5298 * objc-lang.c (objc_language_data): Likewise.
5299 * opencl-lang.c (opencl_language_data): Likewise.
5300 * p-lang.c (pascal_language_data): Likewise.
5301 * parse.c (parse_exp_in_context): Update call to post_parser.
5302 (null_post_parser): Delete definition.
5303 * parser-defs.h (null_post_parser): Delete declaration.
5304 * rust-lang.c (rust_language_data): Delete la_post_parser
5305 initializer.
5306
5307 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5308
5309 * ada-lang.c (parse): Rename to ada_language::parser.
5310 (ada_language_data): Delete la_parser initializer.
5311 (ada_language::parser): New member function, implementation from
5312 parse.
5313 * c-lang.c (c_language_data): Delete la_parser initializer.
5314 (cplus_language_data): Likewise.
5315 (asm_language_data): Likewise.
5316 (minimal_language_data): Likewise.
5317 * d-lang.c (d_language_data): Likewise.
5318 (d_language::parser): New member function.
5319 * f-lang.c (f_language_data): Delete la_parser initializer.
5320 (f_language::parser): New member function.
5321 * go-lang.c (go_language_data): Delete la_parser initializer.
5322 (go_language::parser): New member function.
5323 * language.c (unk_lang_parser): Delete.
5324 (language_defn::parser): Define new member function.
5325 (unknown_language_data): Delete la_parser initializer.
5326 (unknown_language::parser): New member function.
5327 (auto_language_data): Delete la_parser initializer.
5328 (auto_language::parser): New member function.
5329 * language.h (language_data): Delete la_parser field.
5330 (language_defn::parser): Declare new member function.
5331 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5332 (m2_language::parser): New member function.
5333 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5334 * opencl-lang.c (opencl_language_data): Likewise.
5335 * p-lang.c (pascal_language_data): Likewise.
5336 (pascal_language::parser): New member function.
5337 * parse.c (parse_exp_in_context): Update call to parser.
5338 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5339 (rust_language::parser): New member function.
5340
5341 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5342
5343 * top.c (print_gdb_configuration): Print --with-python-libdir
5344 configuration value.
5345
5346 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5347
5348 * NEWS: Mention change to the alias command.
5349
5350 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5351
5352 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5353 (alias_command_completer)
5354 (make_alias_options_def_group): New functions.
5355 (alias_opts, alias_option_defs): New struct and array.
5356 (alias_usage_error): Update usage.
5357 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5358 Use option framework.
5359 (_initialize_cli_cmds): Update alias command help.
5360 Update aliases command help.
5361 (show_user):
5362 Add NULL for new default_args lookup_cmd argument.
5363 (valid_command_p): Rename to validate_aliased_command.
5364 Add NULL for new default_args lookup_cmd argument. Verify that the
5365 aliased_command has no default args.
5366 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5367 (lookup_cmd_1, lookup_cmd): New argument default_args.
5368 (add_alias_cmd):
5369 Add NULL for new default_args lookup_cmd argument.
5370 (print_help_for_command): Show default args under the layout
5371 alias some_alias = some_aliased_cmd some_alias_default_arg.
5372 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5373 xfree default_args in destructor.
5374 * cli/cli-script.c (process_next_line, do_define_command):
5375 Add NULL for new default_args lookup_cmd argument.
5376 * command.h: Declare new default_args argument in lookup_cmd
5377 and lookup_cmd_1.
5378 * completer.c (complete_line_internal_1):
5379 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5380 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5381 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5382 Likewise.
5383 * infcmd.c (_initialize_infcmd): Likewise.
5384 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5385 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5386 * python/py-param.c (add_setshow_generic): Likewise.
5387 * remote.c (_initialize_remote): Likewise.
5388 * top.c (execute_command): Prepend default_args if command has some.
5389 (set_verbose):
5390 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5391 * tracepoint.c (validate_actionline, encode_actions_1):
5392 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5393
5394 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5395
5396 * jit.c (jit_read_descriptor): Use bool as the return type.
5397 (jit_breakpoint_re_set_internal): Use bool as the return type.
5398 Invert the return value logic; return true if the jit breakpoint
5399 has been successfully initialized.
5400 (jit_inferior_init): Update the call to
5401 jit_breakpoint_re_set_internal.
5402
5403 2020-06-22 Pedro Alves <palves@redhat.com>
5404
5405 PR gdb/25939
5406 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5407 Use the current inferior instead. Don't return
5408 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5409 wait again.
5410 * sol-thread.c (sol_thread_target::wait): Don't reference
5411 inferior_ptid.
5412 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5413 (sol_update_thread_list_callback): Use the current inferior's pid
5414 instead of inferior_ptid.
5415
5416 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5417
5418 * procfs.c: Cleanup many comments.
5419
5420 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5421 (AFTER_WATCHFLAG): Replace by value.
5422
5423 (MAIN_PROC_NAME_FORMAT): Inline ...
5424 (create_procinfo): ... here.
5425
5426 (procfs_debug_inferior): Remove SYS_exec handling.
5427 (syscall_is_exec): Likewise.
5428 (procfs_set_exec_trap): Likewise.
5429
5430 (syscall_is_lwp_exit): Inline in callers.
5431 (syscall_is_exit): Likewise.
5432 (syscall_is_exec): Likewise.
5433 (syscall_is_lwp_create): Likewise.
5434
5435 (invalidate_cache): Remove #if 0 code.
5436
5437 (make_signal_thread_runnable): Remove.
5438 (procfs_target::resume): Remove #if 0 code.
5439
5440 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5441
5442 PR gdb/25939
5443 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5444 call ...
5445 (procfs_target::create_inferior): ... here.
5446
5447 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5448
5449 * exec.c (validate_exec_file): Ensure the build-id is up to
5450 date by calling reopen_exec_file (that checks file timestamp
5451 to decide to re-read the file).
5452
5453 2020-06-18 Pedro Alves <palves@redhat.com>
5454
5455 PR gdb/25412
5456 * gdbthread.h (delete_thread, delete_thread_silent)
5457 (find_thread_ptid): Update comments.
5458 * thread.c (current_thread_): New global.
5459 (is_current_thread): Move higher, and reimplement.
5460 (inferior_thread): Reimplement.
5461 (set_thread_exited): Use bool. Add assertions.
5462 (add_thread_silent): Simplify thread-reuse handling by always
5463 calling delete_thread.
5464 (delete_thread): Remove intro comment.
5465 (find_thread_ptid): Skip exited threads.
5466 (switch_to_thread_no_regs): Write to current_thread_.
5467 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5468 INFERIOR_PTID. Clear current_thread_.
5469
5470 2020-06-18 Pedro Alves <palves@redhat.com>
5471
5472 * aix-thread.c (pd_update): Use switch_to_thread.
5473
5474 2020-06-18 Pedro Alves <palves@redhat.com>
5475
5476 * ravenscar-thread.c (ravenscar_thread_target): Update.
5477 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5478 (ravenscar_thread_target::add_active_thread): ... this. Don't
5479 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5480 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5481
5482 2020-06-18 Pedro Alves <palves@redhat.com>
5483
5484 * nat/windows-nat.c (current_windows_thread): Remove.
5485 * nat/windows-nat.h (current_windows_thread): Remove.
5486 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5487 Adjust.
5488 (display_selectors): Adjust to fetch the current
5489 windows_thread_info based on inferior_ptid.
5490 (fake_create_process): No longer write to current_windows_thread.
5491 (windows_nat_target::get_windows_debug_event):
5492 Don't set inferior_ptid or current_windows_thread.
5493 (windows_nat_target::wait): Adjust to not rely on
5494 current_windows_thread.
5495 (do_initial_windows_stuff): Now a method of windows_nat_target.
5496 Switch to the last_ptid thread.
5497 (windows_nat_target::attach): Adjust.
5498 (windows_nat_target::detach): Use switch_to_no_thread instead of
5499 writing to inferior_ptid directly.
5500 (windows_nat_target::create_inferior): Adjust.
5501
5502 2020-06-18 Pedro Alves <palves@redhat.com>
5503
5504 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5505
5506 2020-06-18 Pedro Alves <palves@redhat.com>
5507
5508 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5509 after creating it, instead of writing to inferior_ptid. Don't
5510 write to inferior_ptid.
5511
5512 2020-06-18 Pedro Alves <palves@redhat.com>
5513
5514 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5515
5516 2020-06-18 Pedro Alves <palves@redhat.com>
5517
5518 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5519 it, instead of writing to inferior_ptid.
5520
5521 2020-06-18 Pedro Alves <palves@redhat.com>
5522
5523 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5524 to inferior_ptid.
5525
5526 2020-06-18 Pedro Alves <palves@redhat.com>
5527
5528 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5529 instead of writing to inferior_ptid directly.
5530
5531 2020-06-18 Pedro Alves <palves@redhat.com>
5532
5533 * corelow.c (core_target::close): Use switch_to_no_thread instead
5534 of writing to inferior_ptid directly.
5535 (add_to_thread_list, core_target_open): Use switch_to_thread
5536 instead of writing to inferior_ptid directly.
5537
5538 2020-06-18 Pedro Alves <palves@redhat.com>
5539
5540 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5541 inferior_ptid.
5542 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5543 inferior_ptid.
5544 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5545 inferior_ptid directly.
5546 (darwin_nat_target::init_thread_list): Switch to thread, instead
5547 of writing to inferior_ptid.
5548 (darwin_nat_target::attach): Don't write to inferior_ptid.
5549 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5550
5551 2020-06-18 Pedro Alves <palves@redhat.com>
5552
5553 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5554 thread.
5555 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5556 Instead use switch_to_thread.
5557 (gnu_nat_target::detach): Use switch_to_no_thread
5558 instead of writing to inferior_ptid directly. Used passed-in
5559 inferior instead of looking up the inferior by pid.
5560
5561 2020-06-18 Pedro Alves <palves@redhat.com>
5562
5563 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5564 inferior_ptid.
5565
5566 2020-06-18 Pedro Alves <palves@redhat.com>
5567
5568 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5569 inferior_ptid.
5570 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5571 thread.
5572 (nto_procfs_target::detach): Avoid referencing
5573 inferior_ptid. Use switch_to_no_thread instead of writing to
5574 inferior_ptid directly.
5575 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5576 instead of writing to inferior_ptid directly.
5577 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5578 to thread.
5579
5580 2020-06-18 Pedro Alves <palves@redhat.com>
5581
5582 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5583 after creating it, instead of writing to inferior_ptid.
5584 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5585 to inferior_ptid directly.
5586 (gdbsim_target::wait): Don't write to inferior_ptid.
5587
5588 2020-06-18 Pedro Alves <palves@redhat.com>
5589
5590 * remote.c (remote_target::remote_notice_new_inferior): Use
5591 switch_to_thread instead of writing to inferior_ptid directly.
5592 (remote_target::add_current_inferior_and_thread): Use
5593 switch_to_no_thread instead of writing to inferior_ptid directly.
5594 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5595 and switch_to_thread instead of using set_current_inferior or
5596 writing to inferior_ptid directly.
5597
5598 2020-06-18 Pedro Alves <palves@redhat.com>
5599
5600 * tracectf.c (ctf_target_open): Switch to added thread instead of
5601 writing to inferior_ptid directly.
5602 (ctf_target::close): Use switch_to_no_thread instead of writing to
5603 inferior_ptid directly.
5604
5605 2020-06-18 Pedro Alves <palves@redhat.com>
5606
5607 * tracefile-tfile.c (tfile_target_open): Don't write to
5608 inferior_ptid directly, instead switch to added thread.
5609 (tfile_target::close): Use switch_to_no_thread instead of writing
5610 to inferior_ptid directly.
5611
5612 2020-06-18 Pedro Alves <palves@redhat.com>
5613
5614 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5615 (procfs_target::detach): Use switch_to_no_thread
5616 instead of writing to inferior_ptid directly.
5617 (do_attach): Change return type to void. Switch to the added
5618 thread.
5619 (procfs_target::create_inferior): Switch to the added thread.
5620 (procfs_do_thread_registers): Don't write to inferior_ptid.
5621
5622 2020-06-18 Pedro Alves <palves@redhat.com>
5623
5624 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5625 of writing to inferior_ptid.
5626 (scoped_restore_exited_inferior): Delete.
5627 (handle_vfork_child_exec_or_exit): Simplify using
5628 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5629 instead of writing to inferior_ptid.
5630 (THREAD_STOPPED_BY): Delete.
5631 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5632 (thread_stopped_by_hw_breakpoint): Delete.
5633 (save_waitstatus): Use
5634 scoped_restore_current_thread+switch_to_thread, and call
5635 target_stopped_by_watchpoint instead of
5636 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5637 instead of thread_stopped_by_sw_breakpoint, and
5638 target_stopped_by_hw_breakpoint instead of
5639 thread_stopped_by_hw_breakpoint.
5640 (handle_inferior_event)
5641 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5642 inferior_ptid directly, nor
5643 set_current_inferior/set_current_program_space. Use
5644 switch_to_thread / switch_to_inferior_no_thread instead.
5645
5646 2020-06-18 Pedro Alves <palves@redhat.com>
5647
5648 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5649 instead of writing to inferior_ptid.
5650
5651 2020-06-18 Pedro Alves <palves@redhat.com>
5652
5653 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5654 added thread.
5655 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5656 to the added thread.
5657 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5658 instead of writing to inferior_ptid.
5659
5660 2020-06-18 Pedro Alves <palves@redhat.com>
5661
5662 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5663 (register_to_value_test): Mock a program_space too. Heap-allocate
5664 the address space. Don't write to inferior_ptid. Use
5665 switch_to_thread instead.
5666
5667 2020-06-18 Pedro Alves <palves@redhat.com>
5668
5669 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5670 Delete.
5671 (find_signalled_thread()): New, factored out from
5672 linux_make_corefile_notes and adjusted to handle exited threads.
5673 (linux_make_corefile_notes): Adjust to use the new
5674 find_signalled_thread.
5675
5676 2020-06-18 Pedro Alves <palves@redhat.com>
5677
5678 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5679 of saving/restoring inferior_ptid.
5680
5681 2020-06-17 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5684 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5685 declare.
5686 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5687
5688 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5689
5690 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5691 of partial symtabs.
5692
5693 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * regformats/reg-arm.dat: Remove.
5696 * regformats/reg-bfin.dat: Remove.
5697 * regformats/reg-cris.dat: Remove.
5698 * regformats/reg-crisv32.dat: Remove.
5699 * regformats/reg-m32r.dat: Remove.
5700 * regformats/reg-tilegx.dat: Remove.
5701 * regformats/reg-tilegx32.dat: Remove.
5702
5703 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * features/Makefile (WHICH): Remove arm files.
5706 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5707 * regformats/arm/arm-with-neon.dat: Remove.
5708 * regformats/arm/arm-with-vfpv2.dat: Remove.
5709 * regformats/arm/arm-with-vfpv3.dat: Remove.
5710
5711 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * features/Makefile (XMLTOC): Remove rx.xml.
5714
5715 2020-06-17 Pedro Alves <palves@redhat.com>
5716
5717 * gdbthread.h (thread_control_state) <trap_expected> Update
5718 comments.
5719
5720 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5723 ada_language::lookup_symbol_nonlocal.
5724 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5725 (ada_language::lookup_symbol_nonlocal): New member function,
5726 implementation from ada_lookup_symbol_nonlocal.
5727 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5728 initializer.
5729 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5730 initializer.
5731 (cplus_language::lookup_symbol_nonlocal): New member function.
5732 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5733 (minimal_language_data) Likewise.
5734 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5735 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5736 initializer.
5737 (d_language::lookup_symbol_nonlocal): New member function.
5738 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5739 initializer.
5740 (f_language::lookup_symbol_nonlocal): New member function.
5741 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5742 initializer.
5743 * language.c (unknown_language_data): Likewise.
5744 (auto_language_data): Likewise.
5745 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5746 field.
5747 (language_defn::lookup_symbol_nonlocal): New member function.
5748 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5749 initializer.
5750 * objc-lang.c (objc_language_data): Likewise.
5751 * opencl-lang.c (opencl_language_data): Likewise.
5752 * p-lang.c (pascal_language_data): Likewise.
5753 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5754 rust_language::lookup_symbol_nonlocal.
5755 (rust_language_data): Delete la_lookup_symbol_nonlocal
5756 initializer.
5757 (rust_language::lookup_symbol_nonlocal): New member function,
5758 implementation from rust_lookup_symbol_nonlocal.
5759 * symtab.c (lookup_symbol_aux): Update call to
5760 lookup_symbol_nonlocal.
5761 (basic_lookup_symbol_nonlocal): Rename to...
5762 (language_defn::lookup_symbol_nonlocal): ...this, and update
5763 header comment. Remove language_defn parameter, and replace with
5764 uses of `this'.
5765 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5766
5767 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5768
5769 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5770 initializer.
5771 (ada_language::value_print_inner): New member function.
5772 * c-lang.c (c_language_data): Delete la_value_print_inner
5773 initializer.
5774 (cplus_language_data): Likewise.
5775 (asm_language_data): Likewise.
5776 (minimal_language_data): Likewise.
5777 * d-lang.c (d_language_data): Likewise.
5778 (d_language::value_print_inner): New member function.
5779 * f-lang.c (f_language_data): Delete la_value_print_inner
5780 initializer.
5781 (f_language::value_print_inner): New member function.
5782 * f-lang.h (f_value_print_innner): Rename to...
5783 (f_value_print_inner): ...this (note spelling of 'inner').
5784 * f-valprint.c (f_value_print_innner): Rename to...
5785 (f_value_print_inner): ...this (note spelling of 'inner').
5786 * go-lang.c (go_language_data): Delete la_value_print_inner
5787 initializer.
5788 (go_language::value_print_inner): New member function.
5789 * language.c (language_defn::value_print_inner): Define new member
5790 function.
5791 (unk_lang_value_print_inner): Delete.
5792 (unknown_language_data): Delete la_value_print_inner initializer.
5793 (unknown_language::value_print_inner): New member function.
5794 (auto_language_data): Delete la_value_print_inner initializer.
5795 (auto_language::value_print_inner): New member function.
5796 * language.h (language_data): Delete la_value_print_inner field.
5797 (language_defn::value_print_inner): Delcare new member function.
5798 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5799 initializer.
5800 (m2_language::value_print_inner): New member function.
5801 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5802 initializer.
5803 * opencl-lang.c (opencl_language_data): Likewise.
5804 * p-lang.c (pascal_language_data): Likewise.
5805 (pascal_language::value_print_inner): New member function.
5806 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5807 initializer.
5808 (rust_language::value_print_inner): New member function.
5809 * valprint.c (do_val_print): Update call to value_print_inner.
5810
5811 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * ada-lang.c (ada_language_data): Delete la_value_print
5814 initializer.
5815 (ada_language::value_print): New member function.
5816 * c-lang.c (c_language_data): Delete la_value_print 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 * f-lang.c (f_language_data): Likewise.
5822 * go-lang.c (go_language_data): Likewise.
5823 * language.c (unk_lang_value_print): Delete.
5824 (language_defn::value_print): Define new member function.
5825 (unknown_language_data): Delete la_value_print initializer.
5826 (unknown_language::value_print): New member function.
5827 (auto_language_data): Delete la_value_print initializer.
5828 (auto_language::value_print): New member function.
5829 * language.h (language_data): Delete la_value_print field.
5830 (language_defn::value_print): Declare new member function.
5831 (LA_VALUE_PRINT): Update call to value_print.
5832 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5833 * objc-lang.c (objc_language_data): Likewise.
5834 * opencl-lang.c (opencl_language_data): Likewise.
5835 * p-lang.c (pascal_language_data): Likewise.
5836 (pascal_language::value_print): New member function.
5837 * rust-lang.c (rust_language_data): Delete la_value_print
5838 initializer.
5839
5840 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * ada-lang.c (ada_watch_location_expression): Rename to
5843 ada_language::watch_location_expression.
5844 (ada_language_data): Delete la_watch_location_expression
5845 initializer.
5846 (ada_language::watch_location_expression): New member function,
5847 implementation from ada_watch_location_expression.
5848 * breakpoint.c (watch_command_1): Update call to
5849 watch_location_expression.
5850 * c-lang.c (c_watch_location_expression): Rename to
5851 language_defn::watch_location_expression.
5852 (c_language_data): Delete la_watch_location_expression
5853 initializer.
5854 (cplus_language_data): Likewise.
5855 (asm_language_data): Likewise.
5856 (minimal_language_data): Likewise.
5857 * c-lang.h (c_watch_location_expression): Delete declaration.
5858 * d-lang.c (d_language_data): Delete la_watch_location_expression
5859 initializer.
5860 * f-lang.c (f_language_data): Likewise.
5861 * go-lang.c (go_language_data): Likewise.
5862 * language.c (language_defn::watch_location_expression): Member
5863 function implementation from c_watch_location_expression.
5864 (unknown_language_data): Delete la_watch_location_expression
5865 initializer.
5866 (auto_language_data): Likewise.
5867 * language.h (language_data): Delete la_watch_location_expression
5868 field.
5869 (language_defn::watch_location_expression): Declare new member
5870 function.
5871 * m2-lang.c (m2_language_data): Delete
5872 la_watch_location_expression initializer.
5873 * objc-lang.c (objc_language_data): Likewise.
5874 * opencl-lang.c (opencl_language_data): Likewise.
5875 * p-lang.c (pascal_language_data): Likewise.
5876 * rust-lang.c (rust_watch_location_expression): Rename to
5877 rust_language::watch_location_expression.
5878 (rust_language_data): Delete la_watch_location_expression
5879 initializer.
5880 (rust_language::watch_location_expression): New member function,
5881 implementation from rust_watch_location_expression.
5882
5883 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5886 ada_language::collect_symbol_completion_matches.
5887 (ada_language_data): Delete la_collect_symbol_completion_matches
5888 initializer.
5889 (ada_language::collect_symbol_completion_matches): New member
5890 function, implementation from
5891 ada_collect_symbol_completion_matches.
5892 * c-lang.c (c_language_data): Delete
5893 la_collect_symbol_completion_matches initializer.
5894 (cplus_language_data): Likewise.
5895 (asm_language_data): Likewise.
5896 (minimal_language_data): Likewise.
5897 * d-lang.c (d_language_data): Likewise.
5898 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5899 f_language::collect_symbol_completion_matches.
5900 (f_language_data): Delete la_collect_symbol_completion_matches
5901 initializer.
5902 (f_language::collect_symbol_completion_matches) New member
5903 function, implementation from f_collect_symbol_completion_matches.
5904 * go-lang.c (go_language_data): Delete
5905 la_collect_symbol_completion_matches initializer.
5906 * language.c (unknown_language_data): Likewise.
5907 (auto_language_data): Likewise.
5908 * language.h (language_data): Delete
5909 la_collect_symbol_completion_matches field.
5910 (language_defn::collect_symbol_completion_matches): New member
5911 function.
5912 * m2-lang.c (m2_language_data): Delete
5913 la_collect_symbol_completion_matches initializer.
5914 * objc-lang.c (objc_language_data): Likewise.
5915 * opencl-lang.c (opencl_language_data): Likewise.
5916 * p-lang.c (pascal_language_data): Likewise.
5917 * rust-lang.c (rust_language_data): Likewise.
5918 * symtab.c (default_collect_symbol_completion_matches): Delete.
5919 (collect_symbol_completion_matches): Update call to
5920 collect_symbol_completion_matches.
5921 (collect_symbol_completion_matches_type): Likewise.
5922 * symtab.h (default_collect_symbol_completion_matches): Delete
5923 declaration.
5924
5925 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5926
5927 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5928 (ada_language_data): Delete la_word_break_characters initializer.
5929 (ada_language::word_break_characters): New member function.
5930 * c-lang.c (c_language_data): Delete la_word_break_characters
5931 initializer.
5932 (cplus_language_data): Likewise.
5933 (asm_language_data): Likewise.
5934 (minimal_language_data): Likewise.
5935 * completer.c: Update global comment.
5936 (advance_to_expression_complete_word_point): Update call to
5937 word_break_characters.
5938 (complete_files_symbols): Likewise.
5939 (complete_line_internal_1): Likewise.
5940 (default_completer_handle_brkchars): Likewise.
5941 (skip_quoted_chars): Likewise.
5942 * d-lang.c (d_language_data): Delete la_word_break_characters
5943 initializer.
5944 * f-lang.c (f_word_break_characters): Delete.
5945 (f_language_data): Delete la_word_break_characters initializer.
5946 (f_language::word_break_characters): New member function.
5947 * go-lang.c (go_language_data): Delete la_word_break_characters
5948 initializer.
5949 * language.c (unknown_language_data): Likewise.
5950 (auto_language_data): Likewise.
5951 * language.h (default_word_break_characters): Move declaration to
5952 earlier in the file.
5953 (language_data): Delete la_word_break_characters field.
5954 (language_defn::word_break_characters): New member function.
5955 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5956 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
5962 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5963
5964 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5965 (ada_language_data): Delete la_get_symbol_name_matcher
5966 initializer.
5967 (language_defn::get_symbol_name_matcher_inner): New member
5968 function.
5969 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5970 initializer.
5971 (cplus_language_data): Likewise.
5972 (cplus_language::get_symbol_name_matcher_inner): New member
5973 function.
5974 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5975 (minimal_language_data): Likewise.
5976 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5977 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5978 initializer.
5979 * dictionary.c (iter_match_first_hashed): Update call to
5980 get_symbol_name_matcher.
5981 (iter_match_next_hashed): Likewise.
5982 (iter_match_next_linear): Likewise.
5983 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5984 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5985 initializer.
5986 (f_language::get_symbol_name_matcher_inner): New member function.
5987 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5988 initializer.
5989 * language.c (default_symbol_name_matcher): Update header comment,
5990 make static.
5991 (language_defn::get_symbol_name_matcher): New definition.
5992 (language_defn::get_symbol_name_matcher_inner): Likewise.
5993 (get_symbol_name_matcher): Delete.
5994 (unknown_language_data): Delete la_get_symbol_name_matcher
5995 initializer.
5996 (auto_language_data): Likewise.
5997 * language.h (language_data): Delete la_get_symbol_name_matcher
5998 field.
5999 (language_defn::get_symbol_name_matcher): New member function.
6000 (language_defn::get_symbol_name_matcher_inner): Likewise.
6001 (default_symbol_name_matcher): Delete declaration.
6002 * linespec.c (find_methods): Update call to
6003 get_symbol_name_matcher.
6004 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6005 initializer.
6006 * minsyms.c (lookup_minimal_symbol): Update call to
6007 get_symbol_name_matcher.
6008 (iterate_over_minimal_symbols): Likewise.
6009 * objc-lang.c (objc_language_data): Delete
6010 la_get_symbol_name_matcher initializer.
6011 * opencl-lang.c (opencl_language_data): Likewise.
6012 * p-lang.c (pascal_language_data): Likewise.
6013 * psymtab.c (psymbol_name_matches): Update call to
6014 get_symbol_name_matcher.
6015 * rust-lang.c (rust_language_data): Delete
6016 la_get_symbol_name_matcher initializer.
6017 * symtab.c (symbol_matches_search_name): Update call to
6018 get_symbol_name_matcher.
6019 (compare_symbol_name): Likewise.
6020
6021 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * ada-lang.c (ada_language_data): Delete la_compute_program
6024 initializer.
6025 * c-lang.c (c_language_data): Likewise.
6026 (c_language::compute_program): New member function.
6027 (cplus_language_data): Delete la_compute_program initializer.
6028 (cplus_language::compute_program): New member function.
6029 (asm_language_data): Delete la_compute_program initializer.
6030 (minimal_language_data): Likewise.
6031 * c-lang.h (c_compute_program): Update comment.
6032 (cplus_compute_program): Likewise.
6033 * compile/compile-c-support.c (c_compute_program): Likewise.
6034 (cplus_compute_program): Likewise.
6035 * compile/compile.c (compile_to_object): Update call to
6036 la_compute_program.
6037 * d-lang.c (d_language_data): Delete la_compute_program
6038 initializer.
6039 * f-lang.c (f_language_data): Likewise.
6040 * go-lang.c (go_language_data): Likewise.
6041 * language.c (unknown_language_data): Likewise.
6042 (auto_language_data): Likewise.
6043 * language.h (language_data): Delete la_compute_program field.
6044 (language_defn::compute_program): New member function.
6045 * m2-lang.c (m2_language_data): Delete la_compute_program
6046 initializer.
6047 * objc-lang.c (objc_language_data): Likewise.
6048 * opencl-lang.c (opencl_language_data): Likewise.
6049 * p-lang.c (pascal_language_data): Likewise.
6050 * rust-lang.c (rust_language_data): Likewise.
6051
6052 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * ada-lang.c (ada_language_data) Delete
6055 la_class_name_from_physname initializer.
6056 * c-lang.c (c_language_data): Likewise.
6057 (cplus_language_data): Likewise.
6058 (cplus_language::class_name_from_physname): New member function.
6059 (asm_language_data): Delete la_class_name_from_physname
6060 initializer.
6061 (minimal_language_data): Likewise.
6062 * d-lang.c (d_language_data): Likewise.
6063 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6064 method on language_defn class.
6065 (guess_full_die_structure_name): Likewise.
6066 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6067 initializer.
6068 * go-lang.c (go_language_data): Likewise.
6069 * language.c (language_class_name_from_physname): Delete.
6070 (unk_lang_class_name): Delete.
6071 (unknown_language_data): Delete la_class_name_from_physname
6072 initializer.
6073 (auto_language_data): Likewise.
6074 * language.h (language_data): Delete la_class_name_from_physname
6075 field.
6076 (language_defn::class_name_from_physname): New function.
6077 (language_class_name_from_physname): Delete declaration.
6078 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6079 initializer.
6080 * objc-lang.c (objc_language_data): Likewise.
6081 * opencl-lang.c (opencl_language_data): Likewise.
6082 * p-lang.c (pascal_language_data): Likewise.
6083 * rust-lang.c (rust_language_data): Likewise.
6084
6085 2020-06-16 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui-data.h (STATUS_NAME): New macro.
6088 * tui/tui-layout.c (tui_remove_some_windows)
6089 (initialize_known_windows, tui_register_window)
6090 (tui_layout_split::remove_windows, initialize_layouts)
6091 (tui_new_layout_command): Don't use hard-coded window names.
6092
6093 2020-06-16 Tom Tromey <tom@tromey.com>
6094
6095 PR tui/25348:
6096 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6097 tui_initialize_readline. Only run once. Call rl_initialize.
6098 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6099 tui_initialize_readline.
6100 * tui/tui-io.c (tui_setup_io): Call
6101 tui_ensure_readline_initialized.
6102 * tui/tui-interp.c (tui_interp::init): Update.
6103
6104 2020-06-16 Tom Tromey <tom@tromey.com>
6105
6106 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6107 Also preserve the status window.
6108
6109 2020-06-16 Tom Tromey <tom@tromey.com>
6110
6111 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6112 where m_window==nullptr.
6113
6114 2020-06-15 Tom Tromey <tromey@adacore.com>
6115
6116 * windows-nat.c (windows_nat::handle_output_debug_string):
6117 Update.
6118 (windows_nat::handle_ms_vc_exception): Update.
6119 * target.h (target_read_string): Change API.
6120 * target.c (target_read_string): Change API.
6121 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6122 Update.
6123 * solib-frv.c (frv_current_sos): Update.
6124 * solib-dsbt.c (dsbt_current_sos): Update.
6125 * solib-darwin.c (darwin_current_sos): Update.
6126 * linux-thread-db.c (inferior_has_bug): Update.
6127 * expprint.c (print_subexp_standard): Update.
6128 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6129 (ada_exception_message_1): Update.
6130
6131 2020-06-15 Tom Tromey <tromey@adacore.com>
6132
6133 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6134
6135 2020-06-15 Tom Tromey <tromey@adacore.com>
6136
6137 * valprint.c (read_string): Update comment.
6138 * target.c (MIN): Remove.
6139 (target_read_string): Rewrite.
6140
6141 2020-06-15 Tom Tromey <tromey@adacore.com>
6142
6143 * corefile.c (read_memory_string): Remove.
6144 * ada-valprint.c (ada_value_print_ptr): Update.
6145 * ada-lang.h (ada_tag_name): Change return type.
6146 * ada-lang.c (type_from_tag): Update.
6147 (ada_tag_name_from_tsd): Change return type. Use
6148 target_read_string.
6149 (ada_tag_name): Likewise.
6150 * gdbcore.h (read_memory_string): Don't declare.
6151
6152 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6153
6154 * symtab.c (rbreak_command): Ignore Windows drive colon.
6155
6156 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * NEWS: Mention removed GDBserver host support.
6159
6160 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6161
6162 * features/riscv/rebuild-csr-xml.sh: Updated.
6163
6164 2020-06-11 Tom Tromey <tom@tromey.com>
6165
6166 PR gdb/18318:
6167 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6168
6169 2020-06-09 Jonny Grant <jg@jguk.org>
6170 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * main.c (captured_main_1): Don't print new line after help.
6173 (print_gdb_help): add mailing list and IRC channel information
6174 to --help. Add new lines between items in the footer. Remove
6175 quotes around bug url.
6176
6177 2020-06-11 Keith Seitz <keiths@redhat.com>
6178
6179 PR gdb/21356
6180 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6181 Resolve typedefs for type length calculations.
6182
6183 2020-06-10 Tom de Vries <tdevries@suse.de>
6184
6185 PR ada/24713
6186 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6187 (write_psymbols): Enable .gdb_index for ada.
6188 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6189 ada.
6190
6191 2020-06-10 Tom de Vries <tdevries@suse.de>
6192
6193 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6194 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6195 namei" instead of "const char *name" argument.
6196 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6197 dw2_symtab_iter_init.
6198
6199 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6200
6201 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6202 to use type::field and field::type instead.
6203
6204 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6207 to use field::type instead.
6208
6209 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * gdbtypes.h (struct field) <type, set_type>: New methods.
6212 Rename `type` field to...
6213 <m_type>: ... this. Change references throughout to use type or
6214 set_type methods.
6215 (FIELD_TYPE): Use field::type. Change call sites that modify
6216 the field's type to use field::set_type instead.
6217
6218 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6219
6220 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6221 to use type::index_type instead.
6222
6223 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6224
6225 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6226 methods.
6227 (TYPE_INDEX_TYPE): Use type::index_type.
6228 * gdbtypes.c (create_array_type_with_stride): Likewise.
6229
6230 2020-06-07 Tom Tromey <tom@tromey.com>
6231
6232 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6233 parameter.
6234 (generic_value_print): Update.
6235
6236 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6237
6238 Revert commit 982a38f60b0.
6239 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6240
6241 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6242
6243 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6244 avoid use after free.
6245
6246 2020-06-05 Tom de Vries <tdevries@suse.de>
6247
6248 * NEWS: Fix typos.
6249
6250 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6253 the per_bfd object.
6254 (dwarf2_read_debug_names): Likewise.
6255 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6256 object when re-using a per_bfd object with an index.
6257
6258 2020-06-03 Tom de Vries <tdevries@suse.de>
6259
6260 PR symtab/26046
6261 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6262 children for C++.
6263 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6264 DW_TAG_subprogram.
6265
6266 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * ada-lang.c (ada_language_data): Delete skip_trampoline
6269 initializer.
6270 * c-lang.c (c_language_data): Likewise.
6271 (cplus_language_data): Likewise.
6272 (cplus_language::skip_trampoline): New member function.
6273 (asm_language_data): Delete skip_trampoline initializer.
6274 (minimal_language_data): Likewise.
6275 * d-lang.c (d_language_data): Likewise.
6276 * f-lang.c (f_language_data): Likewise.
6277 * go-lang.c (go_language_data): Likewise.
6278 * language.c (unk_lang_trampoline): Delete function.
6279 (skip_language_trampoline): Update.
6280 (unknown_language_data): Delete skip_trampoline initializer.
6281 (auto_language_data): Likewise.
6282 * language.h (language_data): Delete skip_trampoline field.
6283 (language_defn::skip_trampoline): New function.
6284 * m2-lang.c (m2_language_data): Delete skip_trampoline
6285 initializer.
6286 * objc-lang.c (objc_skip_trampoline): Delete function, move
6287 implementation to objc_language::skip_trampoline.
6288 (objc_language_data): Delete skip_trampoline initializer.
6289 (objc_language::skip_trampoline): New member function with
6290 implementation from objc_skip_trampoline.
6291 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6292 initializer.
6293 * p-lang.c (pascal_language_data): Likewise.
6294 * rust-lang.c (rust_language_data): Likewise.
6295
6296 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6299 (ada_language::demangle): New member function.
6300 * c-lang.c (c_language_data): Delete la_demangle initializer.
6301 (cplus_language_data): Delete la_demangle initializer.
6302 (cplus_language::demangle): New member function.
6303 (asm_language_data): Delete la_demangle initializer.
6304 (minimal_language_data): Delete la_demangle initializer.
6305 * d-lang.c (d_language_data): Delete la_demangle initializer.
6306 (d_language::demangle): New member function.
6307 * f-lang.c (f_language_data): Delete la_demangle initializer.
6308 (f_language::demangle): New member function.
6309 * go-lang.c (go_language_data): Delete la_demangle initializer.
6310 (go_language::demangle): New member function.
6311 * language.c (language_demangle): Update.
6312 (unk_lang_demangle): Delete.
6313 (unknown_language_data): Delete la_demangle initializer.
6314 (unknown_language::demangle): New member function.
6315 (auto_language_data): Delete la_demangle initializer.
6316 (auto_language::demangle): New member function.
6317 * language.h (language_data): Delete la_demangle field.
6318 (language_defn::demangle): New function.
6319 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6320 * objc-lang.c (objc_language_data): Delete la_demangle
6321 initializer.
6322 (objc_language::demangle): New member function.
6323 * opencl-lang.c (opencl_language_data): Delete la_demangle
6324 initializer.
6325 * p-lang.c (pascal_language_data): Likewise.
6326 * rust-lang.c (rust_language_data): Likewise.
6327 (rust_language::demangle): New member function.
6328
6329 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6330
6331 * ada-lang.c (ada_language_data): Delete la_print_type
6332 initializer.
6333 (ada_language::print_type): New member function.
6334 * c-lang.c (c_language_data): Delete la_print_type initializer.
6335 (c_language::print_type): New member function.
6336 (cplus_language_data): Delete la_print_type initializer.
6337 (cplus_language::print_type): New member function.
6338 (asm_language_data): Delete la_print_type initializer.
6339 (asm_language::print_type): New member function.
6340 (minimal_language_data): Delete la_print_type initializer.
6341 (minimal_language::print_type): New member function.
6342 * d-lang.c (d_language_data): Delete la_print_type initializer.
6343 (d_language::print_type): New member function.
6344 * f-lang.c (f_language_data): Delete la_print_type initializer.
6345 (f_language::print_type): New member function.
6346 * go-lang.c (go_language_data): Delete la_print_type initializer.
6347 (go_language::print_type): New member function.
6348 * language.c (unk_lang_print_type): Delete.
6349 (unknown_language_data): Delete la_print_type initializer.
6350 (unknown_language::print_type): New member function.
6351 (auto_language_data): Delete la_print_type initializer.
6352 (auto_language::print_type): New member function.
6353 * language.h (language_data): Delete la_print_type field.
6354 (language_defn::print_type): New function.
6355 (LA_PRINT_TYPE): Update.
6356 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6357 (m2_language::print_type): New member function.
6358 * objc-lang.c (objc_language_data): Delete la_print_type
6359 initializer.
6360 (objc_language::print_type): New member function.
6361 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6362 to opencl_language::print_type.
6363 (opencl_language_data): Delete la_print_type initializer.
6364 (opencl_language::print_type): New member function, implementation
6365 from opencl_print_type.
6366 * p-lang.c (pascal_language_data): Delete la_print_type
6367 initializer.
6368 (pascal_language::print_type): New member function.
6369 * rust-lang.c (rust_print_type): Delete, implementation moved to
6370 rust_language::print_type.
6371 (rust_language_data): Delete la_print_type initializer.
6372 (rust_language::print_type): New member function, implementation
6373 from rust_print_type.
6374
6375 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6376
6377 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6378 implementation moves to...
6379 (ada_language::sniff_from_mangled_name): ...here. Update return
6380 type.
6381 (ada_language_data): Delete la_sniff_from_mangled_name
6382 initializer.
6383 * c-lang.c (c_language_data): Likewise.
6384 (cplus_language_data): Likewise.
6385 (cplus_language::sniff_from_mangled_name): New member function,
6386 implementation taken from gdb_sniff_from_mangled_name.
6387 (asm_language_data): Delete la_sniff_from_mangled_name
6388 initializer.
6389 (minimal_language_data): Likewise.
6390 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6391 implementation moves to cplus_language::sniff_from_mangled_name.
6392 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6393 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6394 moves to...
6395 (d_language::sniff_from_mangled_name): ...here.
6396 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6397 * f-lang.c (f_language_data): Likewise.
6398 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6399 moves to...
6400 (go_language::sniff_from_mangled_name): ...here.
6401 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6402 * language.c (language_sniff_from_mangled_name): Delete.
6403 (unknown_language_data): Delete la_sniff_from_mangled_name
6404 initializer.
6405 (auto_language_data): Likewise.
6406 * language.h (language_data): Delete la_sniff_from_mangled_name
6407 field.
6408 (language_defn::sniff_from_mangled_name): New function.
6409 (language_sniff_from_mangled_name): Delete declaration.
6410 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6411 field.
6412 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6413 implementation moves to...
6414 (objc_language::sniff_from_mangled_name): ...here.
6415 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6416 * opencl-lang.c (opencl_language_data): Likewise.
6417 * p-lang.c (pascal_language_data): Likewise.
6418 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6419 implementation moves to...
6420 (rust_language::sniff_from_mangled_name): ...here.
6421 (rust_language_data): Delete la_sniff_from_mangled_name
6422 initializer.
6423 * symtab.c (symbol_find_demangled_name): Call
6424 sniff_from_mangled_name member function.
6425
6426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6427
6428 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6429 initializer.
6430 * c-lang.c (c_language_data): Likewise.
6431 (cplus_language_data): Likewise.
6432 (cplus_language::search_name_hash): New member function.
6433 (asm_language_data): Delete la_search_name_hash initializer.
6434 (minimal_language_data): Likewise.
6435 * d-lang.c (d_language_data): Likewise.
6436 * dictionary.c (default_search_name_hash): Rename to...
6437 (language_defn::search_name_hash): ...this.
6438 * f-lang.c (f_language_data): Likewise.
6439 (f_language::search_name_hash): New member function.
6440 * go-lang.c (go_language_data): Delete la_search_name_hash
6441 initializer.
6442 * language.c (unknown_language_data): Likewise.
6443 (auto_language_data): Likewise.
6444 * language.h (struct language_data): Delete la_search_name_hash
6445 field.
6446 (language_defn::search_name_hash): Declare new member function.
6447 (default_search_name_hash): Delete declaration.
6448 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6449 initializer.
6450 * objc-lang.c (objc_language_data): Likewise.
6451 * opencl-lang.c (opencl_language_data): Likewise.
6452 * p-lang.c (pascal_language_data): Likewise.
6453 * rust-lang.c (rust_language_data): Likewise.
6454 * symtab.c (search_name_hash): Update call.
6455
6456 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6459 initializer.
6460 * c-lang.c (class compile_instance): Declare.
6461 (c_language_data): Delete la_get_compile_instance initializer.
6462 (c_language::get_compile_instance): New member function.
6463 (cplus_language_data): Delete la_get_compile_instance initializer.
6464 (cplus_language::get_compile_instance): New member function.
6465 (asm_language_data): Delete la_get_compile_instance initializer.
6466 (minimal_language_data): Likewise.
6467 * c-lang.h (c_get_compile_context): Update comment.
6468 (cplus_get_compile_context): Update comment.
6469 * compile/compile.c (compile_to_object): Update calls, don't rely
6470 on function pointer being NULL.
6471 * d-lang.c (d_language_data): Delete la_get_compile_instance
6472 initializer.
6473 * f-lang.c (f_language_data): Likewise.
6474 * go-lang.c (go_language_data): Likewise.
6475 * language.c (unknown_language_data): Likewise.
6476 (auto_language_data): Likewise.
6477 * language.h (language_data): Delete la_get_compile_instance field.
6478 (language_defn::get_compile_instance): New member function.
6479 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6480 initializer.
6481 * objc-lang.c (objc_language_data): Likewise.
6482 * opencl-lang.c (opencl_language_data): Likewise.
6483 * p-lang.c (pascal_language_data): Likewise.
6484 * rust-lang.c (rust_language_data): Likewise.
6485
6486 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6487
6488 * ada-lang.c (ada_add_all_symbols): Update comment.
6489 (ada_iterate_over_symbols): Delete, move implementation to...
6490 (ada_language::iterate_over_symbols): ...here, a new member
6491 function, rewrite to use range based for loop.
6492 (ada_language_data): Delete la_iterate_over_symbols initializer.
6493 * c-lang.c (c_language_data): Likewise.
6494 (cplus_language_data): Likewise.
6495 (asm_language_data): Likewise.
6496 (minimal_language_data): Likewise.
6497 * d-lang.c (d_language_data): Likewise.
6498 * f-lang.c (f_language_data): Likewise.
6499 * go-lang.c (go_language_data): Likewise.
6500 * language.c (unknown_language_data): Likewise.
6501 (auto_language_data): Likewise.
6502 * language.h (language_data): Delete la_iterate_over_symbols field.
6503 (language_defn::iterate_over_symbols): New member function.
6504 (LA_ITERATE_OVER_SYMBOLS): Update.
6505 * linespec.c (iterate_over_all_matching_symtabs): Update.
6506 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6507 initializer.
6508 * objc-lang.c (objc_language_data): Likewise.
6509 * opencl-lang.c (opencl_language_data): Likewise.
6510 * p-lang.c (pascal_language_data): Likewise.
6511 * rust-lang.c (rust_language_data): Likewise.
6512
6513 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * ada-lang.c (ada_language_data): Delete
6516 la_lookup_transparent_type initializer.
6517 * c-lang.c (c_language_data): Likewise.
6518 (cplus_language_data): Likewise.
6519 (cplus_language::lookup_transparent_type): New member function.
6520 (asm_language_data): Delete la_lookup_transparent_type
6521 initializer.
6522 (minimal_language_data): Likewise.
6523 * d-lang.c (d_language_data): Likewise.
6524 * f-lang.c (f_language_data): Likewise.
6525 * go-lang.c (go_language_data): Likewise.
6526 * language.c (unknown_language_data): Likewise.
6527 (auto_language_data): Likewise.
6528 * language.h (struct language_data): Delete
6529 la_lookup_transparent_type field.
6530 (language_defn::lookup_transparent_type): New member function.
6531 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6532 initializer.
6533 * objc-lang.c (objc_language_data): Likewise.
6534 * opencl-lang.c (opencl_language_data): Likewise.
6535 * p-lang.c (pascal_language_data): Likewise.
6536 * rust-lang.c (rust_language_data): Likewise.
6537 * symtab.c (symbol_matches_domain): Update call.
6538
6539 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * ada-lang.c (ada_language_arch_info): Delete function, move
6542 implementation to...
6543 (ada_language::language_arch_info): ...here, a new member
6544 function.
6545 (ada_language_data): Delete la_language_arch_info.
6546 * c-lang.c (c_language_data): Likewise.
6547 (c_language::language_arch_info): New member function.
6548 (cplus_language_arch_info): Delete function, move
6549 implementation to...
6550 (cplus_language::language_arch_info): ...here, a new member
6551 function.
6552 (cplus_language_data): Delete la_language_arch_info.
6553 (asm_language_data): Likewise.
6554 (asm_language::language_arch_info): New member function.
6555 (minimal_language_data): Delete la_language_arch_info.
6556 (minimal_language::language_arch_info): New member function.
6557 * d-lang.c (d_language_arch_info): Delete function, move
6558 implementation to...
6559 (d_language::language_arch_info): ...here, a new member
6560 function.
6561 (d_language_data): Delete la_language_arch_info.
6562 * f-lang.c (f_language_arch_info): Delete function, move
6563 implementation to...
6564 (f_language::language_arch_info): ...here, a new member
6565 function.
6566 (f_language_data): Delete la_language_arch_info.
6567 * go-lang.c (go_language_arch_info): Delete function, move
6568 implementation to...
6569 (go_language::language_arch_info): ...here, a new member
6570 function.
6571 (go_language_data): Delete la_language_arch_info.
6572 * language.c (unknown_language_data): Likewise.
6573 (unknown_language::language_arch_info): New member function.
6574 (auto_language_data): Delete la_language_arch_info.
6575 (auto_language::language_arch_info): New member function.
6576 (language_gdbarch_post_init): Update call to
6577 la_language_arch_info.
6578 * language.h (language_data): Delete la_language_arch_info
6579 function pointer.
6580 (language_defn::language_arch_info): New function.
6581 * m2-lang.c (m2_language_arch_info): Delete function, move
6582 implementation to...
6583 (m2_language::language_arch_info): ...here, a new member
6584 function.
6585 (m2_language_data): Delete la_language_arch_info.
6586 * objc-lang.c (objc_language_arch_info): Delete function, move
6587 implementation to...
6588 (objc_language::language_arch_info): ...here, a new member
6589 function.
6590 (objc_language_data): Delete la_language_arch_info.
6591 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6592 implementation to...
6593 (opencl_language::language_arch_info): ...here, a new member
6594 function.
6595 (opencl_language_data): Delete la_language_arch_info.
6596 * p-lang.c (pascal_language_arch_info): Delete function, move
6597 implementation to...
6598 (pascal_language::language_arch_info): ...here, a new member
6599 function.
6600 (pascal_language_data): Delete la_language_arch_info.
6601 * rust-lang.c (rust_language_arch_info): Delete function, move
6602 implementation to...
6603 (rust_language::language_arch_info): ...here, a new member
6604 function.
6605 (rust_language_data): Delete la_language_arch_info.
6606
6607 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6610 initializer.
6611 * c-lang.c (c_language_data): Likewise.
6612 (cplus_language_data): Likewise.
6613 (cplus_language::pass_by_reference_info): New method.
6614 (asm_language_data): Delete la_pass_by_reference initializer.
6615 (minimal_language_data): Likewise.
6616 * cp-abi.c (cp_pass_by_reference): Remove use of
6617 default_pass_by_reference.
6618 * d-lang.c (d_language_data): Likewise.
6619 * f-lang.c (f_language_data): Likewise.
6620 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6621 default_pass_by_reference.
6622 * go-lang.c (go_language_data): Likewise.
6623 * language.c (language_pass_by_reference): Update.
6624 (default_pass_by_reference): Delete.
6625 (unknown_language_data): Delete la_pass_by_reference
6626 initializer.
6627 (auto_language_data): Likewise.
6628 * language.h (struct language_data): Delete la_pass_by_reference
6629 field.
6630 (language_defn::pass_by_reference_info): New member function.
6631 (default_pass_by_reference): Delete declaration.
6632 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6633 initializer.
6634 * objc-lang.c (objc_language_data): Likewise.
6635 * opencl-lang.c (opencl_language_data): Likewise.
6636 * p-lang.c (pascal_language_data): Likewise.
6637 * rust-lang.c (rust_language_data): Likewise.
6638
6639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * ada-lang.c (ada_read_var_value): Delete function, move
6642 implementation to...
6643 (ada_language::read_var_value): ...here.
6644 (ada_language_data): Delete la_read_var_value initializer.
6645 * c-lang.c (c_language_data): Likewise.
6646 (cplus_language_data): Likewise.
6647 (minimal_language_data): Likewise.
6648 * d-lang.c (d_language_data): Likewise.
6649 * f-lang.c (f_language_data): Likewise.
6650 * findvar.c (default_read_var_value): Rename to...
6651 (language_defn::read_var_value): ...this.
6652 * findvar.c (read_var_value): Update header comment, and change to
6653 call member function instead of function pointer.
6654 * go-lang.c (go_language_data): Likewise.
6655 * language.c (unknown_language_data): Delete la_read_var_value
6656 initializer.
6657 (auto_language_data): Likewise.
6658 * language.h (struct language_data): Delete la_read_var_value
6659 field.
6660 (language_defn::read_var_value): New member function.
6661 (default_read_var_value): Delete declaration.
6662 * m2-lang.c (m2_language_data): Delete la_read_var_value
6663 initializer.
6664 * objc-lang.c (objc_language_data): Likewise.
6665 * opencl-lang.c (opencl_language_data): Likewise.
6666 * p-lang.c (pascal_language_data): Likewise.
6667 * rust-lang.c (rust_language_data): Likewise.
6668 * value.h (default_read_var_value): Delete declaration.
6669
6670 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * ada-lang.c (ada_print_array_index): Delete function, move
6673 implementation to...
6674 (ada_language::print_array_index): ...here.
6675 (ada_language_data): Delete la_print_array_index initializer.
6676 * c-lang.c (c_language_data): Likewise.
6677 (cplus_language_data): Likewise.
6678 (minimal_language_data): Likewise.
6679 * d-lang.c (d_language_data): Likewise.
6680 * f-lang.c (f_language_data): Likewise.
6681 * go-lang.c (go_language_data): Likewise.
6682 * language.c (default_print_array_index): Delete function, move
6683 implementation to...
6684 (language_defn::print_array_index): ...here.
6685 (unknown_language_data): Delete la_print_array_index initializer.
6686 (auto_language_data): Likewise.
6687 * language.h (struct language_data): Delete la_print_array_index
6688 field.
6689 (language_defn::print_array_index): New member function.
6690 (LA_PRINT_ARRAY_INDEX): Update.
6691 (default_print_array_index): Delete declaration.
6692 * m2-lang.c (m2_language_data): Delete la_print_array_index
6693 initializer.
6694 * objc-lang.c (objc_language_data): Likewise.
6695 * opencl-lang.c (opencl_language_data): Likewise.
6696 * p-lang.c (pascal_language_data): Likewise.
6697 * rust-lang.c (rust_language_data): Likewise.
6698
6699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * gdb/ada-lang.c (ada_language_defn): Convert to...
6702 (ada_language_data): ...this.
6703 (class ada_language): New class.
6704 (ada_language_defn): New static global.
6705 * gdb/c-lang.c (c_language_defn): Convert to...
6706 (c_language_data): ...this.
6707 (class c_language): New class.
6708 (c_language_defn): New static global.
6709 (cplus_language_defn): Convert to...
6710 (cplus_language_data): ...this.
6711 (class cplus_language): New class.
6712 (cplus_language_defn): New static global.
6713 (asm_language_defn): Convert to...
6714 (asm_language_data): ...this.
6715 (class asm_language): New class.
6716 (asm_language_defn): New static global.
6717 (minimal_language_defn): Convert to...
6718 (minimal_language_data): ...this.
6719 (class minimal_language): New class.
6720 (minimal_language_defn): New static global.
6721 * gdb/d-lang.c (d_language_defn): Convert to...
6722 (d_language_data): ...this.
6723 (class d_language): New class.
6724 (d_language_defn): New static global.
6725 * gdb/f-lang.c (f_language_defn): Convert to...
6726 (f_language_data): ...this.
6727 (class f_language): New class.
6728 (f_language_defn): New static global.
6729 * gdb/go-lang.c (go_language_defn): Convert to...
6730 (go_language_data): ...this.
6731 (class go_language): New class.
6732 (go_language_defn): New static global.
6733 * gdb/language.c (unknown_language_defn): Remove declaration.
6734 (current_language): Initialize to nullptr, real initialization is
6735 moved to _initialize_language.
6736 (languages): Delete global.
6737 (language_defn::languages): Define.
6738 (set_language_command): Use language_defn::languages.
6739 (set_language): Likewise.
6740 (range_error): Likewise.
6741 (language_enum): Likewise.
6742 (language_def): Likewise.
6743 (add_set_language_command): Use language_def::languages for the
6744 language list, and language_def to lookup language pointers.
6745 (skip_language_trampoline): Use language_defn::languages.
6746 (unknown_language_defn): Convert to...
6747 (unknown_language_data): ...this.
6748 (class unknown_language): New class.
6749 (unknown_language_defn): New static global.
6750 (auto_language_defn): Convert to...
6751 (auto_language_data): ...this.
6752 (class auto_language): New class.
6753 (auto_language_defn): New static global.
6754 (language_gdbarch_post_init): Use language_defn::languages.
6755 (_initialize_language): Initialize current_language.
6756 * gdb/language.h (struct language_defn): Rename to...
6757 (struct language_data): ...this.
6758 (struct language_defn): New.
6759 (auto_language_defn): Delete.
6760 (unknown_language_defn): Delete.
6761 (minimal_language_defn): Delete.
6762 (ada_language_defn): Delete.
6763 (asm_language_defn): Delete.
6764 (c_language_defn): Delete.
6765 (cplus_language_defn): Delete.
6766 (d_language_defn): Delete.
6767 (f_language_defn): Delete.
6768 (go_language_defn): Delete.
6769 (m2_language_defn): Delete.
6770 (objc_language_defn): Delete.
6771 (opencl_language_defn): Delete.
6772 (pascal_language_defn): Delete.
6773 (rust_language_defn): Delete.
6774 * gdb/m2-lang.c (m2_language_defn): Convert to...
6775 (m2_language_data): ...this.
6776 (class m2_language): New class.
6777 (m2_language_defn): New static global.
6778 * gdb/objc-lang.c (objc_language_defn): Convert to...
6779 (objc_language_data): ...this.
6780 (class objc_language): New class.
6781 (objc_language_defn): New static global.
6782 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6783 (opencl_language_data): ...this.
6784 (class opencl_language): New class.
6785 (opencl_language_defn): New static global.
6786 * gdb/p-lang.c (pascal_language_defn): Convert to...
6787 (pascal_language_data): ...this.
6788 (class pascal_language): New class.
6789 (pascal_language_defn): New static global.
6790 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6791 language pointer, update comment format.
6792 * gdb/rust-lang.c (rust_language_defn): Convert to...
6793 (rust_language_data): ...this.
6794 (class rust_language): New class.
6795 (rust_language_defn): New static global.
6796
6797 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6798
6799 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6800 member variable.
6801 <m_stmt_at_address>: New member variable.
6802 (lnp_state_machine::record_line): Don't record some lines, update
6803 tracking of is_stmt at the same address.
6804 (lnp_state_machine::lnp_state_machine): Initialise new member
6805 variables.
6806
6807 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6808
6809 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6810 "-include gnu-nat-mig.h".
6811 * gnu-nat-mig.h: New file.
6812 * gnu-nat.c: Include "gnu-nat-mig.h".
6813 (exc_server, msg_reply_server, notify_server,
6814 process_reply_server): Remove declarations.
6815
6816 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6817
6818 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6819 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6820 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6821 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6822 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6823 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6824 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6825 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6826 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6827 to gnu_nat_target class.
6828 * gnu-nat.c: Likewise.
6829 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6830 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6831 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6832 object.
6833 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6834 instead of `gnu_target'.
6835
6836 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6837
6838 * i386-gnu-tdep.c: Include "gdbcore.h"
6839 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6840 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6841 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6842 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6843 i386_gnu_sigcontext_addr): New functions
6844 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6845 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6846 tdep.
6847
6848 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6849
6850 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6851 before fork_inferior call. Avoid calling it if target_is_pushed returns
6852 true.
6853
6854 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6855
6856 * gnu-nat.h (gnu_target): New variable declaration.
6857 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6858 gnu_target.
6859 * gnu-nat.c (gnu_target): New variable.
6860 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6861 add_thread_silent, and add_thread calls.
6862 (gnu_nat_target::create_inferior): Pass gnu_target to
6863 add_thread_silent, thread_change_ptid call.
6864 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6865 call.
6866
6867 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6868
6869 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6870 (gnu_nat_target::find_memory_regions): Remove unused
6871 `old_address' variable.
6872
6873 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6874
6875 * gnu-nat.c: Include "gdbarch.h".
6876
6877 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6878
6879 * reply_mig_hack.awk (Error return): Cast function through
6880 void *, to bypass compiler function call check.
6881
6882 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6883
6884 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6885 $(srcdir)/reply_mig_hack.awk.
6886
6887 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6888
6889 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6890
6891 2020-05-30 Jonny Grant <jg@jguk.org>
6892
6893 * configure.ac (ACX_BUGURL): change bug URL to https.
6894
6895 2020-05-30 Pedro Alves <palves@redhat.com>
6896
6897 * cp-support.c (replace_typedefs_template): New.
6898 (replace_typedefs_qualified_name): Handle
6899 DEMANGLE_COMPONENT_TEMPLATE.
6900
6901 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6902
6903 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6904 dwarf2/index-cache.h, dwarf2/index-write.c,
6905 dwarf2/index-write.h, dwarf2/line-header.c,
6906 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6907 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6908 variables and fields from `dwarf2_per_objfile` to just
6909 `per_objfile` throughout.
6910
6911 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6912
6913 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6914 <push_dwarf_reg_entry_value>: Add comment.
6915
6916 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6917 Keith Seitz <keiths@redhat.com>
6918
6919 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6920 instead of PyEval_ReleaseLock.
6921 (class gdbpy_gil): Move to earlier in file.
6922 (finalize_python): Set gdb_python_initialized.
6923 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6924 when not initialized.
6925
6926 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6929 <push_dwarf_reg_entry_value>: Remove assert. Override
6930 per_objfile with caller_per_objfile.
6931
6932 2020-05-28 Tom de Vries <tdevries@suse.de>
6933
6934 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6935 PR gold/15646 workaround to symbol kind "type".
6936
6937 2020-05-27 Tom Tromey <tromey@adacore.com>
6938
6939 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6940
6941 2020-05-27 Tom Tromey <tromey@adacore.com>
6942
6943 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6944 Use htab_find_with_hash.
6945 <add_abbrev>: Remove "abbrev_number" parameter.
6946 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6947 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6948 (hash_abbrev): Add comment.
6949 (abbrev_table::lookup_abbrev): Move to header file.
6950 (abbrev_table::read): Update.
6951
6952 2020-05-27 Tom Tromey <tromey@adacore.com>
6953
6954 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6955 method.
6956 <canonical_name>: New member.
6957 <raw_name>: Rename from "name".
6958 (partial_die_info): Initialize canonical_name.
6959 (scan_partial_symbols): Check raw_name.
6960 (partial_die_parent_scope, partial_die_full_name)
6961 (add_partial_symbol, add_partial_subprogram)
6962 (add_partial_enumeration, load_partial_dies): Use "name" method.
6963 (partial_die_info::name): New method.
6964 (partial_die_info::read, guess_partial_die_structure_name)
6965 (partial_die_info::fixup): Update.
6966
6967 2020-05-27 Tom Tromey <tromey@adacore.com>
6968
6969 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6970 <get_ref_die_offset>: Inline.
6971 <get_ref_die_offset_complaint>: New method.
6972 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6973 (attribute::get_ref_die_offset_complaint): Rename from
6974 get_ref_die_offset. Just issue complaint.
6975
6976 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6977
6978 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6979
6980 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6981
6982 * exec.c (exec_file_attach): Use errno value of first openp failure.
6983
6984 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6985
6986 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6987 Don't close thread handle.
6988
6989 2020-05-27 Tom Tromey <tom@tromey.com>
6990 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6993 shared_ptr.
6994 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6995 member.
6996 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6997 dwarf2_per_bfd_objfile_data_key>: New globals.
6998 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6999 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7000 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7001 shared.
7002 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7003 short-circuit when sharing.
7004 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7005 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7006
7007 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7010 to...
7011 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7012 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7013
7014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7017 build_name_components, find_name_components_bounds>:
7018 Add per_objfile parameter.
7019 (struct mapped_index) <symbol_name_at>: Likewise.
7020 (struct mapped_debug_names): Remove constructor.
7021 <dwarf2_per_objfile>: Remove field.
7022 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7023 (mapped_index_base::find_name_components_bounds,
7024 mapped_index_base::build_name_components,
7025 dw2_expand_symtabs_matching_symbol): Likewise.
7026 (class mock_mapped_index) <symbol_name_at>: Likewise.
7027 (check_match): Likewise.
7028 (check_find_bounds_finds): Likewise.
7029 (test_mapped_index_find_name_component_bounds): Update.
7030 (CHECK_MATCH): Update.
7031 (dw2_expand_symtabs_matching): Update.
7032 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7033 per_objfile parameter.
7034 <find_vec_in_debug_names>: Likewise.
7035 <m_per_objfile>: New field.
7036 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7037 parameter.
7038 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7039 (dw2_debug_names_iterator::next): Update.
7040 (dw2_debug_names_lookup_symbol): Update.
7041 (dw2_debug_names_expand_symtabs_for_function): Update.
7042 (dw2_debug_names_map_matching_symbols): Update.
7043 (dw2_debug_names_expand_symtabs_matching): Update.
7044 (dwarf2_read_debug_names): Update.
7045
7046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7049 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7050 move to dwarf2_per_objfile.
7051 <read_in_chain>: Remove.
7052 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7053 remove_all_cus, age_comp_units>: New methods.
7054 <m_dwarf2_cus>: New member.
7055 (struct dwarf2_per_cu_data) <cu>: Remove.
7056 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7057 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7058 moved to methods of dwarf2_per_objfile.
7059 (dwarf2_clear_marks): Remove.
7060 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7061 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7062 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7063 (dwarf2_per_objfile::remove_all_cus): New.
7064 (class free_cached_comp_units) <~free_cached_comp_units>:
7065 Update.
7066 (load_cu): Update.
7067 (dw2_do_instantiate_symtab): Adjust.
7068 (fill_in_sig_entry_from_dwo_entry): Adjust.
7069 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7070 (cutu_reader::cutu_reader): Likewise.
7071 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7072 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7073 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7074 and dwarf2_per_objfile::age_comp_units.
7075 (load_partial_comp_unit): Update.
7076 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7077 (process_queue): Likewise.
7078 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7079 backlink.
7080 (dwarf2_read_addr_index): Likewise.
7081 (follow_die_offset): Likewise.
7082 (dwarf2_fetch_die_loc_sect_off): Likewise.
7083 (dwarf2_fetch_constant_bytes): Likewise.
7084 (dwarf2_fetch_die_type_sect_off): Likewise.
7085 (follow_die_sig_1): Likewise.
7086 (load_full_type_unit): Likewise.
7087 (read_signatured_type): Likewise.
7088 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7089 (dwarf2_cu::~dwarf2_cu): Remove.
7090 (dwarf2_per_objfile::get_cu): New.
7091 (dwarf2_per_objfile::set_cu): New.
7092 (age_cached_comp_units): Rename to...
7093 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7094 to std::unordered_map.
7095 (free_one_cached_comp_unit): Rename to...
7096 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7097 to std::unordered_map.
7098 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7099 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7100 a dwarf2_per_objfile in data.
7101 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7102 (dwarf2_clear_marks): Remove.
7103
7104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7105
7106 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7107 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7108 (init_tu_and_read_dwo_dies): Likewise.
7109 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7110 (cutu_reader::cutu_reader): Likewise.
7111 (load_partial_comp_unit): Likewise.
7112 (process_psymtab_comp_unit): Update.
7113 (build_type_psymtabs_1): Update.
7114 (process_skeletonless_type_unit): Update.
7115 (load_full_comp_unit): Update.
7116 (find_partial_die): Update.
7117 (dwarf2_read_addr_index): Update.
7118 (read_signatured_type): Update.
7119
7120 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7121
7122 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7123 m_header_read_in>: New fields.
7124 <get_header>: New method.
7125 * dwarf2/read.c (per_cu_header_read_in): Remove.
7126 (dwarf2_per_cu_data::get_header): New.
7127 (dwarf2_per_cu_data::addr_size): Update.
7128 (dwarf2_per_cu_data::offset_size): Update.
7129 (dwarf2_per_cu_data::ref_addr_size): Update.
7130
7131 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7132
7133 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7134 (dw2_do_instantiate_symtab): Update.
7135 (queue_and_load_all_dwo_tus): Change parameter from
7136 dwarf2_per_cu_data to dwarf2_cu.
7137 (dwarf2_fetch_die_loc_sect_off): Update.
7138 (dwarf2_fetch_constant_bytes): Update.
7139 (dwarf2_fetch_die_type_sect_off): Update.
7140
7141 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * dwarf2/read.c (process_full_comp_unit,
7144 process_full_type_unit): Remove per_cu, per_objfile paramters.
7145 Add dwarf2_cu parameter.
7146 (process_queue): Update.
7147
7148 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * dwarf2/read.c (create_cu_from_index_list): Replace
7151 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7152 (create_cus_from_index_list): Likewise.
7153 (create_cus_from_index): Likewise.
7154 (create_signatured_type_table_from_index): Likewise.
7155 (create_cus_from_debug_names_list): Likewise.
7156 (create_cus_from_debug_names): Likewise.
7157 (dwarf2_read_gdb_index): Update.
7158 (dwarf2_read_debug_names): Update.
7159
7160 2020-05-27 Tom Tromey <tom@tromey.com>
7161 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * dwarf2/read.h (struct dwarf2_per_objfile)
7164 <get_type_for_signatured_type, set_type_for_signatured_type>:
7165 New methods.
7166 <m_type_map>: New member.
7167 (struct signatured_type) <type>: Remove.
7168 * dwarf2/read.c
7169 (dwarf2_per_objfile::get_type_for_signatured_type,
7170 dwarf2_per_objfile::set_type_for_signatured_type): New.
7171 (get_signatured_type): Use new methods.
7172
7173 2020-05-27 Tom Tromey <tom@tromey.com>
7174 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7177 (struct dwarf2_per_objfile) <type_units>: New member.
7178 <get_type_unit_group_unshareable>: New method.
7179 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7180 num_symtabs, symtabs>: Remove; move to
7181 type_unit_group_unshareable.
7182 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7183 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7184 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7185
7186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * dwarf2/read.h (struct dwarf2_per_cu_data):
7189 <dwarf2_per_objfile>: Remove.
7190 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7191 dwarf2_per_objfile.
7192 (create_signatured_type_table_from_index): Likewise.
7193 (create_signatured_type_table_from_debug_names): Likewise.
7194 (create_debug_type_hash_table): Likewise.
7195 (fill_in_sig_entry_from_dwo_entry): Likewise.
7196 (create_type_unit_group): Likewise.
7197 (read_comp_units_from_section): Likewise.
7198 (create_cus_hash_table): Likewise.
7199
7200 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7203 dwarf2_per_cu_data::dwarf2_per_objfile.
7204 (compute_compunit_symtab_includes): Likewise.
7205 (dwarf2_cu::start_symtab): Likewise.
7206
7207 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7208
7209 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7210 parameter.
7211 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7212 (read_namespace_alias): Update.
7213 (lookup_die_type): Update.
7214 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7215 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7216 Update.
7217 (disassemble_dwarf_expression): Update.
7218
7219 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * dwarf2/read.h (struct dwarf2_queue_item): Add
7222 dwarf2_per_objfile parameter, assign new parameter.
7223 <per_objfile>: New field.
7224 * dwarf2/read.c (free_one_cached_comp_unit): Add
7225 dwarf2_per_objfile parameter.
7226 (queue_comp_unit): Likewise.
7227 (dw2_do_instantiate_symtab): Update.
7228 (process_psymtab_comp_unit): Update.
7229 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7230 (process_imported_unit_die): Update.
7231 (queue_and_load_dwo_tu): Update.
7232 (follow_die_offset): Update.
7233 (follow_die_sig_1): Update.
7234
7235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7238 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7239 (read_call_site_scope): Assign per_objfile.
7240 (dwarf2_per_cu_data::objfile): Remove.
7241 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7242 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7243 dwarf2_per_objfile parameter.
7244 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7245 dwarf2_per_objfile parameter.
7246 (dwarf_expr_reg_to_entry_parameter): Add output
7247 dwarf2_per_objfile parameter.
7248 (locexpr_get_frame_base): Update.
7249 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7250 <push_dwarf_reg_entry_value>: Update.
7251 <call_site_to_target_addr>: Update.
7252 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7253 parameter.
7254 (value_of_dwarf_reg_entry): Update.
7255 (rw_pieced_value): Update.
7256 (indirect_synthetic_pointer): Update.
7257 (dwarf2_evaluate_property): Update.
7258 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7259 parameter.
7260 (locexpr_read_variable): Update.
7261 (locexpr_get_symbol_read_needs): Update.
7262 (loclist_read_variable): Update.
7263
7264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7265
7266 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7267 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7268 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7269 parameter.
7270 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7271 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7272 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7273 parameter.
7274 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7275 sect_variable_value): Add dwarf2_per_objfile parameter.
7276 (class dwarf_evaluate_loc_desc) <dwarf_call,
7277 dwarf_variable_value>: Update.
7278 (fetch_const_value_from_synthetic_pointer): Add
7279 dwarf2_per_objfile parameter.
7280 (fetch_const_value_from_synthetic_pointer): Update.
7281 (coerced_pieced_ref): Update.
7282 (class symbol_needs_eval_context) <dwarf_call,
7283 dwarf_variable_value>: Update.
7284 (dwarf2_compile_expr_to_ax): Update.
7285
7286 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7287
7288 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7289 parameter.
7290 (dwarf2_evaluate_loc_desc_full): Update.
7291
7292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7295 parameter.
7296 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7297 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7298 dwarf2_per_objfile parameter.
7299 (decode_debug_loc_dwo_addresses): Likewise.
7300 (dwarf2_find_location_expression): Update.
7301 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7302 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7303 parameter.
7304 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7305 parameter.
7306 (locexpr_describe_location_1): Likewise.
7307 (locexpr_describe_location): Update.
7308
7309 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7310
7311 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7312 Remove.
7313 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7314 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7315 (dwarf2_compile_property_to_c): Update.
7316 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7317 use text offset from objfile.
7318 (locexpr_tracepoint_var_ref): Update.
7319 (locexpr_generate_c_location): Update.
7320 (loclist_describe_location): Update.
7321 (loclist_tracepoint_var_ref): Update.
7322 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7323 dwarf2_per_objfile parameter.
7324 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7325 use text offset from objfile.
7326 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7327
7328 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * dwarf2/expr.h (struct dwarf_expr_context)
7331 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7332 <offset>: Remove.
7333 <per_objfile>: New member.
7334 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7335 dwarf2_per_objfile parameter. Don't set offset, set
7336 per_objfile.
7337 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7338 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7339 a dwarf2_per_objfile object instead of an offset.
7340 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7341 constructor.
7342 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7343 to dwarf2_expr_executor constructor. Don't set offset.
7344 (dwarf2_fetch_cfa_info): Update.
7345 (struct dwarf2_frame_cache) <text_offset>: Remove.
7346 <per_objfile>: New field.
7347 (dwarf2_frame_cache): Update.
7348 (dwarf2_frame_prev_register): Update.
7349 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7350 <dwarf_evaluate_loc_desc>: Add constructor.
7351 (dwarf2_evaluate_loc_desc_full): Update.
7352 (dwarf2_locexpr_baton_eval): Update.
7353 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7354 Add constructor.
7355 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7356
7357 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7360 addr_sized_int_type>: Move to dwarf2_cu.
7361 <int_type>: Move to dwarf2_per_objfile.
7362 (struct dwarf2_per_objfile) <int_type>: Move here.
7363 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7364 addr_sized_int_type>: Move here.
7365 (read_func_scope): Update.
7366 (read_array_type): Update.
7367 (read_tag_string_type): Update.
7368 (attr_to_dynamic_prop): Update.
7369 (dwarf2_per_cu_data::int_type): Rename to...
7370 (dwarf2_per_objfile::int_type): ... this.
7371 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7372 (dwarf2_cu::addr_sized_int_type): ... this.
7373 (read_subrange_type): Update.
7374 (dwarf2_per_cu_data::addr_type): Rename to...
7375 (dwarf2_cu::addr_type): ... this.
7376 (set_die_type): Update.
7377
7378 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7381 data through per_cu->cu.
7382
7383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7386 dwarf2_per_cu_data parameter fo dwarf2_cu.
7387 (lookup_dwo_type_unit): Likewise.
7388 (read_cutu_die_from_dwo): Likewise.
7389 (lookup_dwo_unit): Likewise.
7390 (open_and_init_dwo_file): Likewise.
7391 (lookup_dwo_cutu): Likewise.
7392 (lookup_dwo_comp_unit): Likewise.
7393 (lookup_dwo_type_unit): Likewise.
7394 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7395 (cutu_reader::cutu_reader): Update.
7396
7397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7400 parameter.
7401 (process_full_type_unit): Likewise.
7402 (process_queue): Update.
7403
7404 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * dwarf2/read.c (recursively_compute_inclusions): Add
7407 dwarf2_per_objfile parameter.
7408 (compute_compunit_symtab_includes): Likewise.
7409 (process_cu_includes): Update.
7410
7411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7414 parameter.
7415 (create_type_unit_group): Update.
7416 (process_psymtab_comp_unit_reader): Update.
7417 (build_type_psymtabs_reader): Update.
7418
7419 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7422 object through m_this_cu->cu.
7423
7424 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7425
7426 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7427 the info parameter.
7428 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7429
7430 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7431
7432 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7433 per_objfile parameter.
7434 (load_full_type_unit): Add per_objfile parameter.
7435 (read_signatured_type): Likewise.
7436 (load_full_comp_unit): Likewise.
7437 (load_cu): Likewise.
7438 (dw2_do_instantiate_symtab): Likewise.
7439 (dw2_get_file_names): Likewise.
7440 (dw2_map_symtabs_matching_filename): Update.
7441 (dw_expand_symtabs_matching_file_matcher): Update.
7442 (dw2_map_symbol_filenames): Update.
7443 (process_psymtab_comp_unit): Add per_objfile parameter.
7444 (build_type_psymtabs_1): Update.
7445 (process_skeletonless_type_unit): Update.
7446 (dwarf2_build_psymtabs_hard): Update.
7447 (load_partial_comp_unit): Add per_objfile parameter.
7448 (scan_partial_symbols): Update.
7449 (load_full_comp_unit): Add per_objfile parameter.
7450 (process_imported_unit_die): Update.
7451 (create_cus_hash_table): Update.
7452 (find_partial_die): Update.
7453 (dwarf2_read_addr_index): Update.
7454 (follow_die_offset): Update.
7455 (dwarf2_fetch_die_loc_sect_off): Update.
7456 (dwarf2_fetch_constant_bytes): Update.
7457 (dwarf2_fetch_die_type_sect_off): Update.
7458 (follow_die_sig_1): Update.
7459 (load_full_type_unit): Add per_objfile parameter.
7460 (read_signatured_type): Likewise.
7461
7462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7465 of objfile_name.
7466
7467 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7470 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7471 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7472 field.
7473 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7474 (create_cus_from_index): Update.
7475 (dwarf2_read_gdb_index): Update.
7476 (create_cus_from_debug_names): Update.
7477 (dwarf2_read_debug_names): Update.
7478 (get_abbrev_section_for_cu): Update.
7479 (create_all_comp_units): Update.
7480 (read_attribute_value): Update.
7481 (get_debug_line_section): Update.
7482 * dwarf2/index-cache.c (index_cache::store): Update.
7483 * dwarf2/index-write.c (save_gdb_index_command): Update.
7484 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7485
7486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7487
7488 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7489 member.
7490 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7491 dwarf2_per_cu_data::per_bfd.
7492 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7493 (create_type_unit_group): Likewise.
7494 (queue_comp_unit): Remove reference to
7495 per_cu->dwarf2_per_objfile.
7496 (maybe_queue_comp_unit): Likewise.
7497 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7498 (create_cus_hash_table): Assign new field.
7499
7500 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * dwarf2/read.c: Replace
7503 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7504 dwarf2_cu->per_objfile throughout.
7505
7506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7509 parameter, don't use per_cu->dwarf2_per_objfile.
7510 (dw2_instantiate_symtab): Likewise.
7511 (dw2_find_last_source_symtab): Update.
7512 (dw2_map_expand_apply): Update.
7513 (dw2_lookup_symbol): Update.
7514 (dw2_expand_symtabs_for_function): Update.
7515 (dw2_expand_all_symtabs): Update.
7516 (dw2_expand_symtabs_with_fullname): Update.
7517 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7518 don't use per_cu->dwarf2_per_objfile.
7519 (dw2_expand_marked_cus): Update.
7520 (dw2_find_pc_sect_compunit_symtab): Update.
7521 (dw2_debug_names_lookup_symbol): Update.
7522 (dw2_debug_names_expand_symtabs_for_function): Update.
7523 (dw2_debug_names_map_matching_symbols): Update.
7524 (dwarf2_psymtab::expand_psymtab): Update.
7525
7526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7529 <per_objfile>: New member.
7530 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7531 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7532 call to dwarf2_cu.
7533 (cutu_reader::cutu_reader): Update.
7534 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7535
7536 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7537
7538 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7539 struct dwarf2_per_objfile.
7540 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7541 dwarf2_per_bfd.
7542 * dwarf2/read.c (set_die_type): Update.
7543 (get_die_type_at_offset): Update.
7544
7545 2020-05-27 Tom Tromey <tom@tromey.com>
7546 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7549 method.
7550 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7551 get_symtab, set_symtab>: New methods.
7552 <m_symtabs>: New field.
7553 (struct dwarf2_psymtab): Derive from partial_symtab.
7554 <readin_p, get_compunit_symtab>: Declare methods.
7555 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7556 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7557 New methods.
7558 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7559 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7560 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7561 (dw2_symtab_iter_next, dw2_print_stats)
7562 (dw2_expand_symtabs_with_fullname)
7563 (dw2_expand_symtabs_matching_one)
7564 (dw_expand_symtabs_matching_file_matcher)
7565 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7566 (dw2_debug_names_iterator::next)
7567 (dw2_debug_names_map_matching_symbols)
7568 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7569 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7570 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7571 New methods.
7572 (get_compunit_symtab, process_full_comp_unit)
7573 (process_full_type_unit): Update.
7574 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7575
7576 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7577
7578 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7579 then introduce a new dwarf2_per_objfile type.
7580 <read_line_string>: Move to the new dwarf2_per_objfile type.
7581 <objfile>: Likewise.
7582 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7583 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7584 dwarf2_per_objfile->per_bfd.
7585 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7586 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7587 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7588 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7589 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7590 (dwarf2_per_objfile::locate_sections): Rename to...
7591 (dwarf2_per_bfd::locate_sections): ... this.
7592 (dwarf2_per_objfile::get_cutu): Rename to...
7593 (dwarf2_per_bfd::get_cutu): ... this.
7594 (dwarf2_per_objfile::get_cu): Rename to...
7595 (dwarf2_per_bfd::get_cu): ... this.
7596 (dwarf2_per_objfile::get_tu): Rename to...
7597 (dwarf2_per_bfd::get_tu): ... this.
7598 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7599 (dwarf2_per_bfd::allocate_per_cu): ... this.
7600 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7601 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7602 (get_gdb_index_contents_ftype): Change parameter from
7603 dwarf2_per_objfile to dwarf2_per_bfd.
7604 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7605 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7606
7607 2020-05-27 Tom Tromey <tom@tromey.com>
7608 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7611 (allocate_piece_closure): Set "per_objfile" member.
7612 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7613 (locexpr_describe_location, loclist_describe_location): Use new
7614 member.
7615 * dwarf2/read.c (read_call_site_scope)
7616 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7617 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7618 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7619 handle_data_member_location): Set per_objfile member.
7620 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7621 member.
7622 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7623
7624 2020-05-27 Tom Tromey <tom@tromey.com>
7625
7626 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7627 allocate_signatured_type>: Declare new methods.
7628 <m_num_psymtabs>: New member.
7629 (struct dwarf2_per_cu_data) <index>: New member.
7630 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7631 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7632 (create_cu_from_index_list): Use allocate_per_cu.
7633 (create_signatured_type_table_from_index)
7634 (create_signatured_type_table_from_debug_names)
7635 (create_debug_type_hash_table, add_type_unit)
7636 (read_comp_units_from_section): Use allocate_signatured_type.
7637
7638 2020-05-27 Tom Tromey <tom@tromey.com>
7639
7640 * psymtab.c (partial_map_expand_apply)
7641 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7642 (psym_lookup_global_symbol_language)
7643 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7644 (psym_print_stats, psym_expand_symtabs_for_function)
7645 (psym_map_symbol_filenames, psym_map_matching_symbols)
7646 (psym_expand_symtabs_matching)
7647 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7648 (maintenance_check_psymtabs): Update.
7649 * psympriv.h (struct partial_symtab) <readin_p,
7650 get_compunit_symtab>: Add objfile parameter.
7651 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7652 Likewise.
7653 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7654 get_compunit_symtab>: Likewise.
7655 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7656
7657 2020-05-27 Tom Tromey <tom@tromey.com>
7658
7659 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7660 member.
7661 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7662 (create_cu_from_index_list)
7663 (create_signatured_type_table_from_index)
7664 (create_signatured_type_table_from_debug_names)
7665 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7666 (dwarf2_create_include_psymtab)
7667 (create_debug_type_hash_table, add_type_unit)
7668 (create_type_unit_group, read_comp_units_from_section)
7669 (dwarf2_compute_name, create_cus_hash_table)
7670 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7671 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7672 obstack.
7673 (dw2_get_real_path): Likewise. Change argument to
7674 dwarf2_per_objfile.
7675
7676 2020-05-27 Luis Machado <luis.machado@linaro.org>
7677
7678 PR tdep/26000
7679 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7680 for ldrd (immediate).
7681
7682 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7683
7684 * command.h: Add comment giving the name of class_tui.
7685 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7686 create the fake command for the help for class_tui.
7687
7688 2020-05-26 Tom Tromey <tromey@adacore.com>
7689
7690 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7691 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7692 (val_atr): New function.
7693 (value_val_atr): Use it.
7694 * ada-valprint.c (print_optional_low_bound): Change low bound
7695 handling for enums.
7696 (val_print_packed_array_elements): Don't call discrete_position.
7697 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7698 discrete_position for enum types.
7699 * language.c (default_print_array_index): Change type.
7700 * language.h (struct language_defn) <la_print_array_index>: Add
7701 index_type parameter, change type of index_value.
7702 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7703 (default_print_array_index): Update.
7704 * valprint.c (maybe_print_array_index): Don't call
7705 value_from_longest. Update.
7706 (value_print_array_elements): Don't call discrete_position.
7707
7708 2020-05-26 Tom Tromey <tromey@adacore.com>
7709
7710 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7711 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7712
7713 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7714
7715 PR gdb/13519
7716 * avr-tdep.c (avr_integer_to_address): Return data or code
7717 address accordingly to the second 'type' argument of the
7718 function.
7719
7720 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7721
7722 * infcmd.c, inferior.h: (construct_inferior_arguments):
7723 Moved function from here to gdbsupport/common-inferior.{h,cc}
7724
7725 2020-05-23 Tom Tromey <tom@tromey.com>
7726
7727 Revert commit eca1f90c:
7728 * NEWS: Remove entry for completion styling.
7729 * completer.c (_rl_completion_prefix_display_length): Move
7730 declaration later.
7731 (gdb_fnprint): Revert.
7732 (gdb_display_match_list_1): Likewise.
7733 * cli/cli-style.c (completion_prefix_style)
7734 (completion_difference_style, completion_suffix_style): Remove.
7735 (_initialize_cli_style): Revert.
7736 * cli/cli-style.h (completion_prefix_style)
7737 (completion_difference_style, completion_suffix_style): Don't
7738 declare.
7739
7740 2020-05-24 Pedro Alves <palves@redhat.com>
7741
7742 * symtab.c (completion_list_add_name): Return boolean indication
7743 of whether the symbol matched.
7744 (completion_list_add_symbol): Don't try to remove C++ aliases if
7745 the symbol didn't match in the first place.
7746 * symtab.h (completion_list_add_name): Return bool.
7747
7748 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7749
7750 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7751 type::field.
7752
7753 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7754
7755 GDB 9.2 released.
7756
7757 2020-05-23 Tom Tromey <tom@tromey.com>
7758
7759 * NEWS: Add entry for completion styling.
7760 * completer.c (_rl_completion_prefix_display_length): Move
7761 declaration earlier.
7762 (gdb_fnprint): Use completion_style.
7763 (gdb_display_match_list_1): Likewise.
7764 * cli/cli-style.c (completion_prefix_style)
7765 (completion_difference_style, completion_suffix_style): New
7766 globals.
7767 (_initialize_cli_style): Register new globals.
7768 * cli/cli-style.h (completion_prefix_style)
7769 (completion_difference_style, completion_suffix_style): Declare.
7770
7771 2020-05-23 Pedro Alves <palves@redhat.com>
7772
7773 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7774 (parse_escape): Use ISDIGIT instead of isdigit.
7775 (puts_debug): Use gdb_isprint instead of isprint.
7776 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7777 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7778 ISSPACE instead of isspace.
7779 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7780 instead of isspace.
7781 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7782 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7783 instead of isxdigit and ISDIGIT instead of isdigit.
7784
7785 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * gdbtypes.h (struct type) <field>: New method.
7788 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7789 or type::field.
7790
7791 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7794 (TYPE_FIELDS): Use type::fields. Change all call sites that
7795 modify the propery to use type::set_fields instead.
7796
7797 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7800 type::num_fields instead.
7801
7802 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7805 methods.
7806 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7807 that modify the number of fields to use type::set_num_fields
7808 instead.
7809
7810 2020-05-22 Tom Tromey <tromey@adacore.com>
7811
7812 * compile/compile-object-load.h (munmap_list_free): Don't
7813 declare.
7814
7815 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * annotate.c (annotate_source_line): Update return type, add call
7818 to update current symtab and line.
7819 * annotate.h (annotate_source_line): Update return type, and
7820 extend header comment.
7821 * source.c (info_line_command): Check annotation_level before
7822 calling annotate_source_line.
7823 * stack.c (print_frame_info): If calling annotate_source_line
7824 returns true, then don't print any other source line information.
7825
7826 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7829
7830 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * coffread.c (patch_type): Remove NULL check before xfree.
7833 * corefile.c (set_gnutarget): Likewise.
7834 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7835 * exec.c (build_section_table): Likewise.
7836 * remote.c (remote_target::pass_signals): Likewise.
7837 * utils.c (n_spaces): Likewise.
7838 * cli/cli-script.c (document_command): Likewise.
7839 * i386-windows-tdep.c (core_process_module_section): Likewise.
7840 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7841
7842 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7843
7844 * symfile.c (reread_symbols): Clear objfile's section_offsets
7845 vector and section indices, re-compute them by calling
7846 sym_offsets.
7847
7848 2020-05-20 Tom Tromey <tromey@adacore.com>
7849
7850 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7851 (desc_one_bound, desc_index_type): Compute field name.
7852
7853 2020-05-20 Tom de Vries <tdevries@suse.de>
7854
7855 PR symtab/25833
7856 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7857
7858 2020-05-20 Alan Modra <amodra@gmail.com>
7859
7860 PR 25993
7861 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7862 bfd_set_filename.
7863 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7864 passed to bfd_set_filename.
7865 * symfile-mem.c (add_vsyscall_page): Likewise for string
7866 passed to symbol_file_add_from_memory.
7867 (symbol_file_add_from_memory): Make name param a const char* and
7868 don't strdup.
7869
7870 2020-05-20 Alan Modra <amodra@gmail.com>
7871
7872 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7873 rather than accessing bfd->filename directly.
7874 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7875 and use bfd_section_name.
7876 * dwarf2/frame.c (decode_frame_entry): Likewise.
7877 * exec.c (exec_set_section_address): Likewise.
7878 * solib-aix.c (solib_aix_bfd_open): Likewise.
7879 * stap-probe.c (get_stap_base_address): Likewise.
7880 * symfile.c (reread_symbols): Likewise.
7881
7882 2020-05-19 Tom Tromey <tromey@adacore.com>
7883
7884 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7885
7886 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7889
7890 2020-05-19 Pedro Alves <palves@redhat.com>
7891
7892 * NEWS (set exec-file-mismatch): Adjust entry.
7893 * exec.c: Include "build-id.h".
7894 (validate_exec_file): Try to match build IDs instead of filenames.
7895 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7896 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7897 and pass down 'warn_if_slow'.
7898 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7899 gdb_bfd_open_closure to pass it down.
7900 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7901
7902 2020-05-19 Pedro Alves <palves@redhat.com>
7903
7904 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7905 * target.c (target_fileio_open_1): Rename to target_fileio_open
7906 and make extern. Use bool.
7907 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7908 (target_fileio_read_alloc_1): Adjust.
7909 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7910 (target_fileio_open_warn_if_slow): Delete declaration.
7911
7912 2020-05-19 Pedro Alves <palves@redhat.com>
7913
7914 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7915 Adjust all callers.
7916
7917 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7918
7919 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7920 whether disp is negative.
7921
7922 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * symfile.h (struct symfile_segment_data)
7925 <~symfile_segment_data>: Remove.
7926 <segment_info>: Change to std::vector.
7927 * symfile.c (default_symfile_segments): Update.
7928 * elfread.c (elf_symfile_segments): Update.
7929
7930 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7931
7932 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7933 <segments>: New.
7934 <segment_bases, segment_sizes>: Remove.
7935 * symfile.c (default_symfile_segments): Update.
7936 * elfread.c (elf_symfile_segments): Update.
7937 * remote.c (remote_target::get_offsets): Update.
7938 * solib-target.c (solib_target_relocate_section_addresses):
7939 Update.
7940
7941 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7942
7943 * symfile.h (struct symfile_segment_data): Initialize fields.
7944 <~symfile_segment_data>: Add.
7945 (symfile_segment_data_up): New.
7946 (struct sym_fns) <sym_segments>: Return a
7947 symfile_segment_data_up.
7948 (default_symfile_segments): Return a symfile_segment_data_up.
7949 (free_symfile_segment_data): Remove.
7950 (get_symfile_segment_data): Return a symfile_segment_data_up.
7951 * symfile.c (default_symfile_segments): Likewise.
7952 (get_symfile_segment_data): Likewise.
7953 (free_symfile_segment_data): Remove.
7954 (symfile_find_segment_sections): Update.
7955 * elfread.c (elf_symfile_segments): Return a
7956 symfile_segment_data_up.
7957 * remote.c (remote_target::get_offsets): Update.
7958 * solib-target.c (solib_target_relocate_section_addresses):
7959 Update.
7960 * symfile-debug.c (debug_sym_segments): Return a
7961 symfile_segment_data_up.
7962
7963 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7964
7965 PR build/25981
7966 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7967 Hardcode register numbers.
7968
7969 PR build/25981
7970 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7971 procfs_find_LDT_entry): Remove.
7972 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7973 procfs_find_LDT_entry): Remove.
7974 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7975 Remove.
7976
7977 2020-05-17 Pedro Alves <palves@redhat.com>
7978 Andrew Burgess <andrew.burgess@embecosm.com>
7979 Keno Fischer <keno@juliacomputing.com>
7980
7981 PR gdb/25741
7982 * breakpoint.c (build_target_condition_list): Update comments.
7983 (build_target_command_list): Update comments and skip matching
7984 locations.
7985 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7986 a separate function. Simplify "set breakpoint auto-hw off"
7987 handling.
7988 (insert_breakpoints): Update comment.
7989 (tracepoint_locations_match): New parameter. For breakpoints,
7990 compare location types too, if the caller wants to.
7991 (handle_automatic_hardware_breakpoints): New functions.
7992 (bp_location_is_less_than): Also sort by location type and
7993 hardware breakpoint length.
7994 (update_global_location_list): Handle "set breakpoint auto-hw on"
7995 here.
7996 (update_breakpoint_locations): Ask breakpoint_locations_match to
7997 ignore location types.
7998
7999 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8000
8001 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8002 type::name instead.
8003
8004 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * gdbtypes.h (struct type) <name, set_name>: New methods.
8007 (TYPE_CODE): Use type::name. Change all call sites used to set
8008 the name to use type::set_name instead.
8009
8010 2020-05-16 Tom Tromey <tom@tromey.com>
8011
8012 * top.c (quit_force): Update.
8013 * infrun.c (handle_no_resumed): Update.
8014 * top.h (all_uis): New function.
8015 (ALL_UIS): Remove.
8016
8017 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8018
8019 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8020
8021 2020-05-16 Pedro Alves <palves@redhat.com>
8022
8023 * ia64-linux-nat.c
8024 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8025 Declare method.
8026 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8027
8028 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8031 (sparc64_adi_info): Likewise.
8032
8033 2020-05-15 Tom Tromey <tom@tromey.com>
8034
8035 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8036 block_objfile.
8037 (lookup_objfile_from_block): Remove.
8038 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8039 (lookup_global_symbol): Use block_objfile.
8040 * symtab.h (lookup_objfile_from_block): Don't declare.
8041 * printcmd.c (clear_dangling_display_expressions): Use
8042 block_objfile.
8043 * parse.c (operator_check_standard): Use block_objfile.
8044
8045 2020-05-15 Tom Tromey <tom@tromey.com>
8046
8047 * language.c (language_alloc_type_symbol): Set
8048 SYMBOL_SECTION.
8049 * symtab.c (initialize_objfile_symbol): Remove.
8050 (allocate_symbol): Remove.
8051 (allocate_template_symbol): Remove.
8052 * dwarf2/read.c (fixup_go_packaging): Use "new".
8053 (new_symbol): Use "new".
8054 (read_variable): Don't call initialize_objfile_symbol. Use
8055 "new".
8056 (read_func_scope): Use "new".
8057 * xcoffread.c (process_xcoff_symbol): Don't call
8058 initialize_objfile_symbol.
8059 (SYMBOL_DUP): Remove.
8060 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8061 "new".
8062 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8063 (allocate_template_symbol): Don't declare.
8064 (struct symbol): Add copy constructor. Change defaults.
8065 * jit.c (finalize_symtab): Use "new".
8066 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8067 Use "new".
8068 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8069 (common_block_end): Use "new".
8070 * mdebugread.c (parse_symbol): Use "new".
8071 (new_symbol): Likewise.
8072
8073 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8074
8075 * NEWS: Mention changes to help and apropos.
8076
8077 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8078
8079 * command.h (enum command_class): Improve comments, document
8080 that class_alias is for user-defined aliases, give the class
8081 name for each class, remove unused class_xdb.
8082 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8083 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8084 by a precise class.
8085 * infcmd.c (_initialize_infcmd): Likewise.
8086 * reverse.c (_initialize_reverse): Likewise.
8087 * stack.c (_initialize_stack): Likewise.
8088 * symfile.c (_initialize_symfile): Likewise.
8089 * tracepoint.c (_initialize_tracepoint): Likewise.
8090
8091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8092
8093 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8094 when their aliased command is traversed.
8095 (help_cmd): Add fput_command_names_styled call to
8096 output command name and aliases when command has an alias.
8097
8098 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8099
8100 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8101 * cli/cli-decode.c (help_cmd_list): Declare as static,
8102 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8103 a command together with the command.
8104 (fput_command_name_styled, fput_command_names_styled): New functions.
8105 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8106 fput_command_name_styled.
8107 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8108 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8109
8110 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8111
8112 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8113 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8114 * command.h (cmd_show_list): Likewise.
8115 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8116 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8117
8118 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8119
8120 * unittests/command-def-selftests.c (traverse_command_structure):
8121 Verify all commands of a list have the same prefix command and
8122 that only the top cmdlist commands have a null prefix.
8123
8124 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8125
8126 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8127 as prefix, not one of its aliases.
8128 (set_cmd_prefix): Remove.
8129 (do_add_cmd): Centralize the setting of the prefix of a command, when
8130 command is defined after its full chain of prefix commands.
8131 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8132 (add_setshow_cmd_full): Likewise.
8133 (update_prefix_field_of_prefixed_commands): New function.
8134 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8135 update_prefix_field_of_prefixed_commands.
8136 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8137 addresses of remote_set_cmdlist and remote_show_cmdlist given
8138 as argument, not the address of an argument.
8139 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8140 * gdb/remote.c (_initialize_remote): Likewise.
8141
8142 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8143
8144 * cli/cli-cmds.c (alias_command): Check for an existing alias
8145 using lookup_cmd_composition, as valid_command_p is too strict
8146 and forbids aliases that are the prefix of an existing alias
8147 or command.
8148 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8149 command is properly recognised as a valid command.
8150
8151 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8152
8153 * unittests/help-doc-selftests.c: Rename to
8154 unittests/command-def-selftests.c
8155 * unittests/command-def-selftests.c (help_doc_tests): Update some
8156 comments.
8157 (command_structure_tests, traverse_command_structure): New namespace
8158 and function.
8159 (command_structure_invariants_tests): New function.
8160 (_initialize_command_def_selftests) Renamed from
8161 _initialize_help_doc_selftests, register command_structure_invariants
8162 selftest.
8163
8164 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8165
8166 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8167 an alias of 'show'.
8168
8169 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8170
8171 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8172 ada_is_fixed_point_type. Update all callers.
8173 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8174 all callers.
8175 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8176 Update all callers.
8177 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8178 print_fixed_point_type. Update all callers.
8179 * ada-valprint.c (ada_value_print_num): Replace call to
8180 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8181
8182 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8183
8184 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8185 processors.
8186 (cpu_supports_bts): Add CV_AMD case.
8187
8188 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8189 Simon Marchi <simon.marchi@efficios.com>
8190
8191 * infrun.c (stop_all_threads): Collect multiple wait events at
8192 each pass.
8193
8194 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8195
8196 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8197 type::code instead.
8198
8199 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8200
8201 * gdbtypes.h (struct type) <code, set_code>: New methods.
8202 (TYPE_CODE): Use type::code. Change all call sites used to set
8203 the code to use type::set_code instead.
8204
8205 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8206 Tom de Vries <tdevries@suse.de>
8207 Pedro Alves <palves@redhat.com>
8208
8209 PR threads/25478
8210 * infrun.c (stop_all_threads): Do NOT ignore
8211 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8212 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8213 received.
8214 (handle_no_resumed): Remove code handling a live inferior with no
8215 threads.
8216 * remote.c (has_single_non_exited_thread): New.
8217 (remote_target::update_thread_list): Do not delete a thread if is
8218 the last thread of the process.
8219 * thread.c (thread_select): Call delete_exited_threads instead of
8220 prune_threads.
8221
8222 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8223
8224 * infrun.c (stop_all_threads): Enable/disable thread events of all
8225 targets. Move a debug message denoting the end of the function
8226 into the SCOPED_EXIT block.
8227
8228 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8229
8230 * process-stratum-target.h: Include <set>.
8231 (all_non_exited_process_targets, switch_to_target_no_thread): New
8232 function declarations.
8233 * process-stratum-target.c (all_non_exited_process_targets)
8234 (switch_to_target_no_thread): New function implementations.
8235
8236 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8237
8238 * infrun.c (handle_inferior_event): Extract out a piece of code
8239 into...
8240 (mark_non_executing_threads): ...this new function.
8241
8242 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8243
8244 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8245 use.
8246
8247 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8248
8249 * regcache.c (regcache_read_pc_protected): New function
8250 implementation that returns 0 if the PC cannot read via
8251 'regcache_read_pc'.
8252 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8253 instead of 'regcache_read_pc'.
8254 (keep_going_pass_signal): Ditto.
8255
8256 2020-05-13 Tom Tromey <tromey@adacore.com>
8257
8258 * ada-lang.c (align_value): Remove.
8259 (ada_template_to_fixed_record_type_1): Use align_up.
8260
8261 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8262
8263 * async-event.c: Update the copyright year.
8264 * async-event.h: Update the copyright year.
8265
8266 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8267
8268 * objfiles.h (is_addr_in_objfile,
8269 shared_objfile_contains_address_p): Return bool.
8270 * objfile.c (is_addr_in_objfile,
8271 shared_objfile_contains_address_p): Return bool.
8272
8273 2020-05-11 Tom Tromey <tromey@adacore.com>
8274
8275 * cli/cli-cmds.c (info_command): Restore.
8276 (_initialize_cli_cmds): Use add_prefix_command for "info".
8277 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8278
8279 2020-05-11 Tom Tromey <tromey@adacore.com>
8280
8281 * ada-lang.c (ada_value_primitive_field): Now public.
8282 * ada-lang.h (ada_value_primitive_field): Declare.
8283 * ada-valprint.c (print_field_values): Use
8284 ada_value_primitive_field for wrapper fields.
8285
8286 2020-05-11 Tom de Vries <tdevries@suse.de>
8287
8288 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8289 MODULE_DOMAIN.
8290
8291 2020-05-11 Tom de Vries <tdevries@suse.de>
8292
8293 PR symtab/25941
8294 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8295 with length 0, if not gdb-produced.
8296 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8297
8298 2020-05-09 Tom de Vries <tdevries@suse.de>
8299
8300 PR gdb/25955
8301 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8302 calculation.
8303
8304 2020-05-09 Tom Tromey <tom@tromey.com>
8305
8306 * top.c (server_command): Now bool.
8307 * top.h (server_command): Now bool.
8308
8309 2020-05-08 Tom Tromey <tromey@adacore.com>
8310
8311 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8312 already being processed.
8313
8314 2020-05-08 Tom Tromey <tom@tromey.com>
8315
8316 * printcmd.c (struct display) <next>: Remove.
8317 <display>: New constructor.
8318 <exp_string>: Now a std::string.
8319 <enabled_p>: Now a bool.
8320 (display_number): Move definition earlier.
8321 (displays): Rename from display_chain. Now a std::vector.
8322 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8323 (display_command): Update.
8324 (do_one_display, disable_display)
8325 (enable_disable_display_command, do_enable_disable_display):
8326 Update.
8327 (free_display): Remove.
8328 (clear_displays): Rewrite.
8329 (delete_display): Update.
8330 (map_display_numbers): Use function_view. Remove "data"
8331 parameter. Update.
8332 (do_delete_display): Remove.
8333 (undisplay_command): Update.
8334 (do_one_display, do_displays, disable_display)
8335 (info_display_command): Update.
8336 (do_enable_disable_display): Remove.
8337 (enable_disable_display_command)
8338 (clear_dangling_display_expressions): Update.
8339
8340 2020-05-08 Tom Tromey <tom@tromey.com>
8341
8342 * symtab.c (set_symbol_cache_size)
8343 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8344 (maintenance_print_symbol_cache_statistics): Update.
8345 * symmisc.c (print_symbol_bcache_statistics)
8346 (print_objfile_statistics, maintenance_print_objfiles)
8347 (maintenance_info_symtabs, maintenance_check_symtabs)
8348 (maintenance_expand_symtabs, maintenance_info_line_tables):
8349 Update.
8350 * symfile-debug.c (set_debug_symfile): Update.
8351 * source.c (forget_cached_source_info): Update.
8352 * python/python.c (gdbpy_progspaces): Update.
8353 * psymtab.c (maintenance_info_psymtabs): Update.
8354 * probe.c (parse_probes): Update.
8355 * linespec.c (iterate_over_all_matching_symtabs)
8356 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8357 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8358 * exec.c (exec_target::close): Update.
8359 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8360 * breakpoint.c (print_one_breakpoint_location)
8361 (create_longjmp_master_breakpoint)
8362 (create_std_terminate_master_breakpoint): Update.
8363 * progspace.c (program_spaces): Now a std::vector.
8364 (maybe_new_address_space): Update.
8365 (add_program_space): Remove.
8366 (program_space::program_space): Update.
8367 (remove_program_space): Update.
8368 (number_of_program_spaces): Remove.
8369 (print_program_space, update_address_spaces): Update.
8370 * progspace.h (program_spaces): Change type.
8371 (ALL_PSPACES): Remove.
8372 (number_of_program_spaces): Don't declare.
8373 (struct program_space) <next>: Remove.
8374
8375 2020-05-08 Tom Tromey <tom@tromey.com>
8376
8377 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8378 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8379 (enable_break): Update.
8380 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8381 (frv_fdpic_find_canonical_descriptor): Update.
8382 (frv_fetch_objfile_link_map): Update.
8383 * progspace.c (program_space::free_all_objfiles): Update.
8384 (program_space::solibs): New method.
8385 * progspace.h (struct program_space) <solibs>: New method.
8386 * solist.h (master_so_list): Don't declare.
8387 (ALL_SO_LIBS): Remove.
8388 * solib.h (so_list_head): Remove.
8389 (update_solib_list): Update comment.
8390 * solib.c (master_so_list): Remove.
8391 (solib_used, update_solib_list, solib_add)
8392 (info_sharedlibrary_command, clear_solib)
8393 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8394
8395 2020-05-08 Tom Tromey <tom@tromey.com>
8396
8397 * extension.c (extension_languages): Now a std::array.
8398 (ALL_EXTENSION_LANGUAGES): Remove.
8399 (get_ext_lang_defn, get_ext_lang_of_file)
8400 (eval_ext_lang_from_control_command): Update.
8401 (finish_ext_lang_initialization)
8402 (auto_load_ext_lang_scripts_for_objfile)
8403 (ext_lang_type_printers::ext_lang_type_printers)
8404 (apply_ext_lang_type_printers)
8405 (ext_lang_type_printers::~ext_lang_type_printers)
8406 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8407 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8408 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8409 (get_matching_xmethod_workers, ext_lang_colorize)
8410 (ext_lang_before_prompt): Update.
8411 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8412
8413 2020-05-08 Tom Tromey <tom@tromey.com>
8414
8415 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8416 overload.
8417 <swap_string, m_string>: Remove.
8418 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8419 Update.
8420 * stabsread.c (define_symbol, read_type): Update.
8421 * linespec.c (find_linespec_symbols): Update.
8422 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8423 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8424 * dbxread.c (read_dbx_symtab): Update.
8425 * cp-support.h (cp_canonicalize_string_full)
8426 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8427 Return unique_xmalloc_ptr.
8428 * cp-support.c (inspect_type): Update.
8429 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8430 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8431 Likewise.
8432 * c-typeprint.c (print_name_maybe_canonical): Update.
8433 * break-catch-throw.c (check_status_exception_catchpoint):
8434 Update.
8435
8436 2020-05-08 Tom de Vries <tdevries@suse.de>
8437
8438 * infrun.c (follow_fork): Copy current_line and current_symtab to
8439 child thread.
8440
8441 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8442
8443 * async-event.c (struct async_signal_handler, struct
8444 async_event_handler): Reformat, remove typedef.
8445
8446 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8447
8448 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8449 access thistype->main_type->dyn_prop_list directly.
8450
8451 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8452
8453 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8454 (remove_dyn_prop): Remove. Update all users to use
8455 type::remove_dyn_prop.
8456 * gdbtypes.c (remove_dyn_prop): Rename to...
8457 (type::remove_dyn_prop): ... this.
8458
8459 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8460
8461 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8462 (add_dyn_prop): Remove. Update all users to use
8463 type::add_dyn_prop.
8464 * gdbtypes.c (add_dyn_prop): Rename to...
8465 (type::add_dyn_prop): ... this.
8466
8467 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8470 (get_dyn_prop): Remove. Update all users to use
8471 type::dyn_prop.
8472 * gdbtypes.c (get_dyn_prop): Rename to...
8473 (type::dyn_prop): ... this.
8474
8475 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8476
8477 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8478
8479 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8482 instruction, skip it if it's there.
8483
8484 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8487
8488 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8489
8490 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8491 * gdbtypes.c (recursive_dump_type): Remove use of
8492 TYPE_INCOMPLETE.
8493
8494 2020-05-03 Tom Tromey <tom@tromey.com>
8495
8496 * breakpoint.c (catch_command, tcatch_command): Remove.
8497 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8498 add_show_prefix_cmd.
8499 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8500 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8501 Remove.
8502 (add_internal_problem_command): Use add_basic_prefix_cmd,
8503 add_show_prefix_cmd.
8504 * mips-tdep.c (set_mipsfpu_command): Remove.
8505 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8506 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8507 (_initialize_index_cache): Use add_basic_prefix_cmd.
8508 * memattr.c (dummy_cmd): Remove.
8509 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8510 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8511 (_initialize_tui_win): Use add_basic_prefix_cmd,
8512 add_show_prefix_cmd.
8513 * cli/cli-logging.c (set_logging_command): Remove.
8514 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8515 add_show_prefix_cmd.
8516 (show_logging_command): Remove.
8517 * target.c (target_command): Remove.
8518 (add_target): Use add_basic_prefix_cmd.
8519
8520 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8521
8522 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8523
8524 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8525
8526 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8527 info_command.
8528
8529 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8530
8531 * nbsd-nat.c (nbsd_enable_proc_events)
8532 (nbsd_nat_target::post_startup_inferior): Add.
8533 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8534 (nbsd_nat_target::update_thread_list): Rewrite.
8535 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8536 "PTRACE_LWP_CREATE".
8537 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8538
8539 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8540
8541 * stack.c (_initialize_stack): Remove duplicated creation
8542 of "frame" command and "f" alias.
8543
8544 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8545
8546 PR gdb/18706
8547 * gdbtypes.c (check_typedef): Calculate size of array of
8548 stubbed type.
8549
8550 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8551
8552 PR gdb/15559
8553 * i386-tdep.c (i386_push_dummy_call): Call
8554 i386_thiscall_push_dummy_call.
8555 (i386_thiscall_push_dummy_call): New function.
8556 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8557 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8558 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8559
8560 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * gdbarch.sh (do_read): Add shellcheck disable directive for
8563 warning SC2162.
8564
8565 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8568 "referenced but not assigned" warning.
8569
8570 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * gdbarch.sh: Remove code that sets fallbackdefault.
8573
8574 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8575
8576 * gdbarch.sh: Use shell operators && and || instead of
8577 -a and -o.
8578
8579 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8580
8581 * gdbarch.sh: Use $(...) instead of `...`.
8582
8583 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * gdbarch.sh: Use double quotes around variables.
8586
8587 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * gdbarch.sh: Use %s with printf, instead of variables in the
8590 format string.
8591
8592 2020-04-29 Tom Tromey <tromey@adacore.com>
8593
8594 PR ada/25875:
8595 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8596 type fields here.
8597 (read_enumeration_type): Call
8598 update_enumeration_type_from_children later. Update comments.
8599 (process_enumeration_scope): Don't create type fields.
8600
8601 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8602
8603 * nbsd-tdep.c: Include "xml-syscall.h".
8604 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8605
8606 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8607
8608 * nbsd-nat.c: Include "sys/wait.h".
8609 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8610 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8611 (nbsd_nat_target::remove_exec_catchpoint)
8612 (nbsd_nat_target::set_syscall_catchpoint): Add.
8613 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8614 (nbsd_nat_target::insert_exec_catchpoint)
8615 (nbsd_nat_target::remove_exec_catchpoint)
8616 (nbsd_nat_target::set_syscall_catchpoint): Add.
8617 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8618 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8619 `nbsd_get_syscall_number'.
8620
8621 2020-04-29 Tom Tromey <tom@tromey.com>
8622
8623 * stack.c (print_block_frame_labels): Remove.
8624
8625 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8626
8627 PR gdb/17320
8628 * ada-valprint.c (val_print_packed_array_elements): Move array
8629 end bracket to new line.
8630 (ada_val_print_string): Remove extra spaces before first array
8631 element.
8632 * c-valprint.c (c_value_print_array): Likewise.
8633 * m2-valprint.c (m2_print_array_contents): Likewise.
8634 (m2_value_print_inner): Likewise.
8635 * p-valprint.c (pascal_value_print_inner): Likewise.
8636 * valprint.c (generic_val_print_array): Likewise.
8637 (value_print_array_elements): Move first array element and array
8638 end bracket to new line.
8639
8640 2020-04-29 Tom de Vries <tdevries@suse.de>
8641
8642 PR symtab/25889
8643 * linespec.c (find_method): Fix ix calculation.
8644
8645 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8646
8647 * syscalls/update-netbsd.sh: New file.
8648 * syscalls/netbsd.xml: Regenerate.
8649 * data-directory/Makefile.in: Register `netbsd.xml' in
8650 `SYSCALLS_FILES'.
8651
8652 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * syscalls/update-freebsd.sh: Add double quotes.
8655
8656 2020-04-28 Tom Tromey <tom@tromey.com>
8657
8658 * NEWS: Update.
8659 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8660 (cmdpy_init): Allow class_tui.
8661
8662 2020-04-28 Mark Williams <mark@myosotissp.com>
8663
8664 PR gdb/24480
8665 * dwarf2read.c: Add missing assingments to list_in_scope when
8666 start_symtab was already called.
8667
8668 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8669
8670 PR gdb/25881
8671 * dwarf2/read.c (offset_map_type): Use
8672 gdb:hash_enum<sect_offset> as hash function.
8673
8674 2020-04-28 Tom de Vries <tdevries@suse.de>
8675
8676 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8677 with DW_AT_signature.
8678
8679 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8680
8681 * configure.ac: Remove check for fs_base/gs_base in
8682 user_regs_struct.
8683 * configure: Re-generate.
8684 * config.in: Re-generate.
8685 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8686 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8687 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8688
8689 2020-04-27 Luis Machado <luis.machado@linaro.org>
8690
8691 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8692 problematic inline frame unwinding situation.
8693 * frame.c (frame_id_computed_p): New function.
8694 * frame.h (frame_id_computed_p): New prototype.
8695
8696 2020-04-26 Tom Tromey <tom@tromey.com>
8697
8698 * command.h (enum command_class) <class_pseudo>: Remove.
8699
8700 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8701
8702 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8703 and whitespace.
8704
8705 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8706
8707 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8708 `PT_GET_PROCESS_STATE' block.
8709
8710 2020-04-24 Tom Tromey <tom@tromey.com>
8711
8712 * symtab.h (symbol_get_demangled_name): Don't declare.
8713 * symtab.c (symbol_get_demangled_name): Remove.
8714 (general_symbol_info::natural_name)
8715 (general_symbol_info::demangled_name): Update.
8716
8717 2020-04-24 Tom Tromey <tom@tromey.com>
8718
8719 PR rust/25025:
8720 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8721
8722 2020-04-24 Tom Tromey <tom@tromey.com>
8723
8724 PR symtab/12707:
8725 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8726 exists.
8727 (new_symbol): Likewise.
8728 * compile/compile-object-load.c (get_out_value_type): Use
8729 symbol_matches_search_name.
8730
8731 2020-04-24 Tom Tromey <tom@tromey.com>
8732
8733 * dwarf2/read.c (add_partial_symbol): Do not call
8734 compute_and_set_names.
8735
8736 2020-04-24 Tom Tromey <tom@tromey.com>
8737
8738 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8739 overload.
8740
8741 2020-04-24 Tom Tromey <tom@tromey.com>
8742
8743 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8744 (add_psymbol_to_list): New overload. Make old overload call new
8745 one.
8746 * psympriv.h (add_psymbol_to_list): New overload.
8747
8748 2020-04-24 Tom Tromey <tom@tromey.com>
8749
8750 * dwarf2/read.c (partial_die_info::read) <case
8751 DW_AT_linkage_name>: Use value_as_string.
8752 (dwarf2_string_attr): Use value_as_string.
8753 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8754 method.
8755 * dwarf2/attribute.c (attribute::value_as_string): New method.
8756
8757 2020-04-24 Tom Tromey <tom@tromey.com>
8758
8759 * symtab.c (general_symbol_info::natural_name)
8760 (general_symbol_info::demangled_name): Check for language_rust.
8761
8762 2020-04-24 Tom Tromey <tom@tromey.com>
8763
8764 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8765 (dwarf2_physname): ... from here.
8766 (partial_die_info::read): Add Rust "{" hack.
8767
8768 2020-04-24 Tom Tromey <tom@tromey.com>
8769
8770 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8771 method.
8772 (symbol_set_demangled_name): Don't declare.
8773 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8774 symbol_set_demangled_name.
8775 (general_symbol_info::set_language)
8776 (general_symbol_info::compute_and_set_names): Update.
8777 * minsyms.c (minimal_symbol_reader::install): Update.
8778 * dwarf2/read.c (new_symbol): Update.
8779
8780 2020-04-24 Tom Tromey <tromey@adacore.com>
8781
8782 PR python/23662:
8783 * python/py-type.c (convert_field): Handle
8784 FIELD_LOC_KIND_DWARF_BLOCK.
8785 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8786 (typy_get_dynamic): Nw function.
8787 (type_object_getset): Add "dynamic".
8788 * NEWS: Add entry.
8789
8790 2020-04-24 Tom Tromey <tromey@adacore.com>
8791
8792 * ada-typeprint.c (print_choices, print_variant_part)
8793 (print_record_field_types_dynamic): New functions.
8794 (print_record_field_types): Use print_record_field_types_dynamic.
8795
8796 2020-04-24 Tom Tromey <tromey@adacore.com>
8797
8798 * dwarf2/read.c (handle_data_member_location): New overload.
8799 (dwarf2_add_field): Use it.
8800 (decode_locdesc): Add "computed" parameter. Update comment.
8801 * gdbtypes.c (is_dynamic_type_internal): Also look for
8802 FIELD_LOC_KIND_DWARF_BLOCK.
8803 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8804 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8805 virtual base classes.
8806 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8807 FIELD_LOC_KIND_DWARF_BLOCK.
8808
8809 2020-04-24 Tom Tromey <tromey@adacore.com>
8810
8811 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8812 * gdbtypes.c (is_dynamic_type_internal): Check
8813 TYPE_HAS_DYNAMIC_LENGTH.
8814 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8815 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8816 New macros.
8817 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8818 constant.
8819
8820 2020-04-24 Tom Tromey <tromey@adacore.com>
8821
8822 * dwarf2/read.c (struct variant_field): Rewrite.
8823 (struct variant_part_builder): New.
8824 (struct nextfield): Remove "variant" field. Add "offset".
8825 (struct field_info): Add "current_variant_part" and
8826 "variant_parts".
8827 (alloc_discriminant_info): Remove.
8828 (alloc_rust_variant): New function.
8829 (quirk_rust_enum): Update.
8830 (dwarf2_add_field): Set "offset" member. Don't handle
8831 DW_TAG_variant_part.
8832 (offset_map_type): New typedef.
8833 (convert_variant_range, create_one_variant)
8834 (create_one_variant_part, create_variant_parts)
8835 (add_variant_property): New functions.
8836 (dwarf2_attach_fields_to_type): Call add_variant_property.
8837 (read_structure_type): Don't handle DW_TAG_variant_part.
8838 (handle_variant_part, handle_variant): New functions.
8839 (handle_struct_member_die): Use them.
8840 (process_structure_scope): Don't handle variant parts.
8841 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8842 (struct discriminant_info): Remove.
8843 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8844 (struct main_type) <flag_discriminated_union>: Remove.
8845 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8846 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8847 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8848 Update.
8849 * valops.c (value_union_variant): Remove.
8850 * value.h (value_union_variant): Don't declare.
8851
8852 2020-04-24 Tom Tromey <tromey@adacore.com>
8853
8854 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8855 (ada_value_primitive_packed_val): Update.
8856 * ada-valprint.c (ada_value_print_1): Update.
8857 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8858 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8859 just an address. Use evaluate_for_locexpr_baton.
8860 (dwarf2_evaluate_property): Update.
8861 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8862 array_view.
8863 * findvar.c (default_read_var_value): Update.
8864 * gdbtypes.c (compute_variant_fields_inner)
8865 (resolve_dynamic_type_internal): Update.
8866 (resolve_dynamic_type): Change type of valaddr parameter.
8867 * gdbtypes.h (resolve_dynamic_type): Update.
8868 * valarith.c (value_subscripted_rvalue): Update.
8869 * value.c (value_from_contents_and_address): Update.
8870
8871 2020-04-24 Tom Tromey <tromey@adacore.com>
8872
8873 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8874 "push_initial_value" parameter.
8875 (dwarf2_evaluate_property): Likewise.
8876 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8877
8878 2020-04-24 Tom Tromey <tromey@adacore.com>
8879
8880 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8881 (variant::matches, compute_variant_fields_recurse)
8882 (compute_variant_fields_inner, compute_variant_fields): New
8883 functions.
8884 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8885 Use resolved_type after type is made.
8886 (operator==): Add new cases.
8887 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8888 (struct discriminant_range, struct variant, struct variant_part):
8889 New.
8890 (union dynamic_prop_data) <variant_parts, original_type>: New
8891 members.
8892 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8893 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8894 constants.
8895 * value.c (unpack_bits_as_long): Now public.
8896 * value.h (unpack_bits_as_long): Declare.
8897
8898 2020-04-24 Tom Tromey <tromey@adacore.com>
8899
8900 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8901 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8902
8903 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8904
8905 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8906
8907 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8908
8909 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8910 (remove_fork_catchpoint, post_startup_inferior)
8911 (post_attach): Move...
8912 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8913 (remove_fork_catchpoint, post_startup_inferior)
8914 (post_attach): ...here.
8915 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8916 (remove_fork_catchpoint, post_startup_inferior)
8917 (post_attach): Move...
8918 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8919 (remove_fork_catchpoint, post_startup_inferior)
8920 (post_attach): ...here.
8921
8922 2020-04-24 Tom Tromey <tromey@adacore.com>
8923
8924 * nat/windows-nat.h (struct windows_thread_info)
8925 <pc_adjusted>: New member.
8926 * windows-nat.c (windows_fetch_one_register): Check
8927 pc_adjusted.
8928 (windows_nat_target::get_windows_debug_event)
8929 (windows_nat_target::wait): Set pc_adjusted.
8930
8931 2020-04-24 Tom de Vries <tdevries@suse.de>
8932
8933 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8934 Run gdb-add-index inside temp dir.
8935
8936 2020-04-23 Tom Tromey <tromey@adacore.com>
8937
8938 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8939 in loop.
8940
8941 2020-04-23 Luis Machado <luis.machado@linaro.org>
8942
8943 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8944 get_frame_register instead of gdbarch_unwind_pc.
8945
8946 2020-04-23 Tom de Vries <tdevries@suse.de>
8947
8948 * symtab.c (lookup_global_symbol): Prefer def over decl.
8949
8950 2020-04-23 Tom de Vries <tdevries@suse.de>
8951
8952 PR symtab/25807
8953 * block.c (best_symbol, better_symbol): Promote to external.
8954 * block.h (best_symbol, better_symbol): Declare.
8955 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8956 decl.
8957
8958 2020-04-23 Tom Tromey <tromey@adacore.com>
8959
8960 PR ada/25837:
8961 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8962 "const char *", not a "const std::string &".
8963 <name_and_matcher::operator==>: Update.
8964 * unittests/lookup_name_info-selftests.c: Change type of
8965 "result".
8966
8967 2020-04-23 Tom Tromey <tom@tromey.com>
8968
8969 * inferior.h (iterate_over_inferiors): Don't declare.
8970 * inferior.c (iterate_over_inferiors): Remove.
8971 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8972 Remove.
8973 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8974 use iterate_over_inferiors.
8975 (darwin_resume_inferior_it)
8976 (struct resume_inferior_threads_param)
8977 (darwin_resume_inferior_threads_it): Remove.
8978 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8979
8980 2020-04-23 Tom de Vries <tdevries@suse.de>
8981
8982 * blockframe.c (find_pc_partial_function): Use
8983 find_pc_sect_compunit_symtab rather than
8984 objfile->sf->qf->find_pc_sect_compunit_symtab.
8985
8986 2020-04-22 Tom de Vries <tdevries@suse.de>
8987
8988 PR symtab/25764
8989 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8990 in psymtabs.
8991
8992 2020-04-22 Tom de Vries <tdevries@suse.de>
8993
8994 PR symtab/25801
8995 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8996 symtabs.
8997
8998 2020-04-22 Tom de Vries <tdevries@suse.de>
8999
9000 PR symtab/25700
9001 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9002 CU if already created.
9003
9004 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9005
9006 * infrun.c (displaced_step_fixup): Switch to the event_thread
9007 before calling displaced_step_restore, not after.
9008
9009 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9010
9011 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9012 its inferior is not recorded by us.
9013 (record_btrace_target_open): Replace call to
9014 all_non_exited_threads () with call to current_inferior
9015 ()->non_exited_threads ().
9016 (record_btrace_target::stop_recording): Likewise.
9017 (record_btrace_target::close): Likewise.
9018 (record_btrace_target::wait): Likewise.
9019 (record_btrace_target::record_stop_replaying): Likewise.
9020
9021 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9022
9023 * btrace.c (btrace_enable): Throw an error on double enables and
9024 when enabling recording fails.
9025 (btrace_disable): Throw an error if the thread is not recorded.
9026
9027 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9028
9029 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9030 request if we do not have a thread_info.
9031
9032 2020-04-21 Tom de Vries <tdevries@suse.de>
9033
9034 PR gdb/25471
9035 * thread.c
9036 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9037 exception in get_frame_id.
9038
9039 2020-04-20 Tom Tromey <tromey@adacore.com>
9040
9041 * python/python.c (struct gdbpy_event): Mark move constructor as
9042 noexcept.
9043 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9044 constructor as noexcept.
9045 * completer.h (struct completion_result): Mark move constructor as
9046 noexcept.
9047 * completer.c (completion_result::completion_result): Use
9048 initialization style. Don't call reset_match_list.
9049
9050 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9051
9052 * MAINTAINERS (Write After Approval): Add myself.
9053
9054 2020-04-18 Tom Tromey <tom@tromey.com>
9055
9056 * windows-tdep.c (init_w32_command_list)
9057 (w32_prefix_command_valid): Restore.
9058 (_initialize_windows_tdep): Call init_w32_command_list.
9059
9060 2020-04-18 Tom Tromey <tom@tromey.com>
9061
9062 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9063 * value.c (value_fn_field): Update.
9064 * valops.c (find_function_in_inferior)
9065 (value_allocate_space_in_inferior): Update.
9066 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9067 Update.
9068 * tui/tui-source.c (tui_source_window::set_contents): Update.
9069 * symtab.c (lookup_global_or_static_symbol)
9070 (find_function_start_sal_1, skip_prologue_sal)
9071 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9072 * symmisc.c (dump_msymbols, dump_symtab_1)
9073 (maintenance_print_one_line_table): Update.
9074 * symfile.c (init_entry_point_info, section_is_mapped)
9075 (list_overlays_command, simple_read_overlay_table)
9076 (simple_overlay_update_1): Update.
9077 * stap-probe.c (handle_stap_probe): Update.
9078 * stabsread.c (dbx_init_float_type, define_symbol)
9079 (read_one_struct_field, read_enum_type, read_range_type): Update.
9080 * source.c (info_line_command): Update.
9081 * python/python.c (gdbpy_source_objfile_script)
9082 (gdbpy_execute_objfile_script): Update.
9083 * python/py-type.c (save_objfile_types): Update.
9084 * python/py-objfile.c (py_free_objfile): Update.
9085 * python/py-inferior.c (python_new_objfile): Update.
9086 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9087 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9088 (maintenance_check_psymtabs): Update.
9089 * printcmd.c (info_address_command): Update.
9090 * objfiles.h (struct objfile) <arch>: New method, from
9091 get_objfile_arch.
9092 (get_objfile_arch): Don't declare.
9093 * objfiles.c (get_objfile_arch): Remove.
9094 (filter_overlapping_sections): Update.
9095 * minsyms.c (msymbol_is_function): Update.
9096 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9097 (output_nondebug_symbol): Update.
9098 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9099 (mdebug_expand_psymtab): Update.
9100 * machoread.c (macho_add_oso_symfile): Update.
9101 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9102 Update.
9103 * linux-fork.c (checkpoint_command): Update.
9104 * linespec.c (convert_linespec_to_sals): Update.
9105 * jit.c (finalize_symtab): Update.
9106 * infrun.c (insert_exception_resume_from_probe): Update.
9107 * ia64-tdep.c (ia64_find_unwind_table): Update.
9108 * hppa-tdep.c (internalize_unwinds): Update.
9109 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9110 Update.
9111 * gcore.c (call_target_sbrk): Update.
9112 * elfread.c (record_minimal_symbol, elf_symtab_read)
9113 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9114 (elf_gnu_ifunc_resolve_by_got): Update.
9115 * dwarf2/read.c (create_addrmap_from_index)
9116 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9117 (read_debug_names_from_section)
9118 (process_psymtab_comp_unit_reader, add_partial_symbol)
9119 (add_partial_subprogram, process_full_comp_unit)
9120 (read_file_scope, read_func_scope, read_lexical_block_scope)
9121 (read_call_site_scope, dwarf2_ranges_read)
9122 (dwarf2_record_block_ranges, dwarf2_add_field)
9123 (mark_common_block_symbol_computed, read_tag_pointer_type)
9124 (read_tag_string_type, dwarf2_init_float_type)
9125 (dwarf2_init_complex_target_type, read_base_type)
9126 (partial_die_info::read, partial_die_info::read)
9127 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9128 (dwarf2_fetch_die_loc_sect_off): Update.
9129 * dwarf2/loc.c (dwarf2_find_location_expression)
9130 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9131 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9132 (dwarf2_loc_desc_get_symbol_read_needs)
9133 (locexpr_describe_location_piece, locexpr_describe_location_1)
9134 (loclist_describe_location): Update.
9135 * dwarf2/index-write.c (write_debug_names): Update.
9136 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9137 * dtrace-probe.c (dtrace_process_dof): Update.
9138 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9139 (process_one_symbol): Update.
9140 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9141 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9142 (coff_read_enum_type): Update.
9143 * cli/cli-cmds.c (edit_command, list_command): Update.
9144 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9145 * breakpoint.c (create_overlay_event_breakpoint)
9146 (create_longjmp_master_breakpoint)
9147 (create_std_terminate_master_breakpoint)
9148 (create_exception_master_breakpoint, get_sal_arch): Update.
9149 * block.c (block_gdbarch): Update.
9150 * annotate.c (annotate_source_line): Update.
9151
9152 2020-04-17 Tom Tromey <tromey@adacore.com>
9153
9154 * auto-load.c (show_auto_load_cmd): Remove.
9155 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9156 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9157 (maintenance_print_arc_command): Remove.
9158 * tui/tui-win.c (tui_command): Remove.
9159 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9160 * tui/tui-layout.c (tui_layout_command): Remove.
9161 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9162 * python/python.c (user_set_python, user_show_python): Remove.
9163 (_initialize_python): Use add_basic_prefix_cmd,
9164 add_show_prefix_cmd.
9165 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9166 (install_gdb_commands): Use add_basic_prefix_cmd,
9167 add_show_prefix_cmd.
9168 (info_guile_command): Remove.
9169 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9170 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9171 add_show_prefix_cmd.
9172 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9173 Remove do_set and do_show parameters.
9174 * cli/cli-style.c (set_style, show_style): Remove.
9175 (_initialize_cli_style): Use add_basic_prefix_cmd,
9176 add_show_prefix_cmd.
9177 (cli_style_option::add_setshow_commands): Remove do_set and
9178 do_show parameters.
9179 (cli_style_option::add_setshow_commands): Use
9180 add_basic_prefix_cmd, add_show_prefix_cmd.
9181 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9182 (set_style_name): Remove.
9183 * cli/cli-dump.c (dump_command, append_command): Remove.
9184 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9185 (tekhex_dump_command, binary_dump_command)
9186 (binary_append_command): Remove.
9187 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9188 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9189 (init_w32_command_list): Remove; move into ...
9190 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9191 * valprint.c (set_print, show_print, set_print_raw)
9192 (show_print_raw): Remove.
9193 (_initialize_valprint): Use add_basic_prefix_cmd,
9194 add_show_prefix_cmd.
9195 * typeprint.c (set_print_type, show_print_type): Remove.
9196 (_initialize_typeprint): Use add_basic_prefix_cmd,
9197 add_show_prefix_cmd.
9198 * record.c (set_record_command, show_record_command): Remove.
9199 (_initialize_record): Use add_basic_prefix_cmd,
9200 add_show_prefix_cmd.
9201 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9202 add_show_prefix_cmd.
9203 (info_command, show_command, set_debug, show_debug): Remove.
9204 * top.h (set_history, show_history): Don't declare.
9205 * top.c (set_history, show_history): Remove.
9206 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9207 (unset_tdesc_cmd): Remove.
9208 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9209 add_show_prefix_cmd.
9210 * symtab.c (info_module_command): Remove.
9211 (_initialize_symtab): Use add_basic_prefix_cmd.
9212 * symfile.c (overlay_command): Remove.
9213 (_initialize_symfile): Use add_basic_prefix_cmd.
9214 * sparc64-tdep.c (info_adi_command): Remove.
9215 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9216 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9217 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9218 add_show_prefix_cmd.
9219 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9220 (_initialize_serial): Use add_basic_prefix_cmd,
9221 add_show_prefix_cmd.
9222 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9223 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9224 add_show_prefix_cmd.
9225 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9226 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9227 add_show_prefix_cmd.
9228 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9229 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9230 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9231 add_show_prefix_cmd.
9232 * remote.c (remote_command, set_remote_cmd): Remove.
9233 (_initialize_remote): Use add_basic_prefix_cmd.
9234 * record-full.c (set_record_full_command)
9235 (show_record_full_command): Remove.
9236 (_initialize_record_full): Use add_basic_prefix_cmd,
9237 add_show_prefix_cmd.
9238 * record-btrace.c (cmd_set_record_btrace)
9239 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9240 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9241 (cmd_show_record_btrace_pt): Remove.
9242 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9243 add_show_prefix_cmd.
9244 * ravenscar-thread.c (set_ravenscar_command)
9245 (show_ravenscar_command): Remove.
9246 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9247 add_show_prefix_cmd.
9248 * mips-tdep.c (show_mips_command, set_mips_command)
9249 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9250 add_show_prefix_cmd.
9251 * maint.c (maintenance_command, maintenance_info_command)
9252 (maintenance_check_command, maintenance_print_command)
9253 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9254 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9255 add_show_prefix_cmd.
9256 (show_per_command_cmd): Remove.
9257 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9258 Remove.
9259 (maintenance_show_test_settings_cmd): Remove.
9260 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9261 add_show_prefix_cmd.
9262 * maint-test-options.c (maintenance_test_options_command):
9263 Remove.
9264 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9265 * macrocmd.c (macro_command): Remove
9266 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9267 * language.c (set_check, show_check): Remove.
9268 (_initialize_language): Use add_basic_prefix_cmd,
9269 add_show_prefix_cmd.
9270 * infcmd.c (unset_command): Remove.
9271 (_initialize_infcmd): Use add_basic_prefix_cmd.
9272 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9273 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9274 add_show_prefix_cmd.
9275 * go32-nat.c (go32_info_dos_command): Remove.
9276 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9277 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9278 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9279 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9280 (_initialize_frame): Use add_basic_prefix_cmd,
9281 add_show_prefix_cmd.
9282 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9283 (_initialize_dcache): Use add_basic_prefix_cmd,
9284 add_show_prefix_cmd.
9285 * cp-support.c (maint_cplus_command): Remove.
9286 (_initialize_cp_support): Use add_basic_prefix_cmd.
9287 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9288 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9289 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9290 add_basic_prefix_cmd, add_show_prefix_cmd.
9291 * breakpoint.c (save_command): Remove.
9292 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9293 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9294 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9295 add_show_prefix_cmd.
9296 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9297 (set_ada_command, show_ada_command): Remove.
9298 (_initialize_ada_language): Use add_basic_prefix_cmd,
9299 add_show_prefix_cmd.
9300 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9301
9302 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9303
9304 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9305 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9306
9307 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9308
9309 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9310 warning messages.
9311
9312 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9315 import table is not at beginning of .idata section.
9316
9317 2020-04-16 Pedro Alves <palves@redhat.com>
9318
9319 * inferior.c (delete_inferior): Use delete operator directly
9320 instead of delete_program_space.
9321 * progspace.c (add_program_space): New, factored out from
9322 program_space::program_space.
9323 (remove_program_space): New, factored out from
9324 delete_program_space.
9325 (program_space::program_space): Remove intro comment. Rewrite.
9326 (program_space::~program_space): Remove intro comment. Call
9327 remove_program_space.
9328 (delete_program_space): Delete.
9329 * progspace.h (program_space::program_space): Make explicit. Move
9330 intro comment here, adjusted.
9331 (program_space::~program_space): Move intro comment here,
9332 adjusted.
9333 (delete_program_space): Remove.
9334
9335 2020-04-16 Tom Tromey <tromey@adacore.com>
9336
9337 * windows-nat.c (windows_nat::handle_access_violation): New
9338 function.
9339 * nat/windows-nat.h (handle_access_violation): Declare.
9340 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9341 windows-nat.c. Call handle_access_violation.
9342
9343 2020-04-16 Tom de Vries <tdevries@suse.de>
9344
9345 PR symtab/25791
9346 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9347 CUs without psymtab.
9348
9349 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9350
9351 * python/python.c (do_start_initialization): Don't call
9352 PyEval_InitThreads for Python 3.9 and beyond.
9353
9354 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9355
9356 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9357 thread functions.
9358 (obsd_nat_target::wait): Likewise.
9359
9360 2020-04-15 Tom Tromey <tromey@adacore.com>
9361
9362 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9363 (DEBUG_EXCEPT): Use debug_printf.
9364
9365 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9366
9367 * completer.c (class completion_tracker::completion_hash_entry)
9368 <hash_name>: New member function.
9369 (completion_tracker::discard_completions): New callback to hash a
9370 completion_hash_entry, pass this to htab_create_alloc.
9371
9372 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9373
9374 * windows-nat.c (windows_make_so): Warn rather than stopping with
9375 an error if realpath() fails.
9376
9377 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9378
9379 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9380 (nbsd_nat_target::info_proc): Add do_status.
9381
9382 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9383 Tom de Vries <tdevries@suse.de>
9384
9385 PR symtab/25718
9386 * psympriv.h (struct partial_symtab::read_symtab)
9387 (struct partial_symtab::expand_psymtab)
9388 (struct partial_symtab::read_dependencies): Update comments.
9389 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9390 read_symtab for includer.
9391 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9392 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9393 (struct dwarf2_include_psymtab::m_readin): Remove.
9394 (struct dwarf2_include_psymtab::includer): New member function.
9395 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9396
9397 2020-04-14 Tom de Vries <tdevries@suse.de>
9398
9399 PR symtab/25720
9400 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9401 with NULL symbol_matcher and lookup_name.
9402 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9403 and lookup_name.
9404 * dwarf2/read.c (dw2_expand_symtabs_matching)
9405 (dw2_debug_names_expand_symtabs_matching): Same.
9406 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9407 Make lookup_name a pointer. Update comment.
9408 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9409 lookup_name being a pointer.
9410 * symfile.c (expand_symtabs_matching): Same.
9411 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9412 * linespec.c (iterate_over_all_matching_symtabs): Same.
9413
9414 2020-04-13 Tom Tromey <tom@tromey.com>
9415
9416 * run-on-main-thread.c: Update include.
9417 * unittests/main-thread-selftests.c: Update include.
9418 * tui/tui-win.c: Update include.
9419 * tui/tui-io.c: Update include.
9420 * tui/tui-interp.c: Update include.
9421 * tui/tui-hooks.c: Update include.
9422 * top.h: Update include.
9423 * top.c: Update include.
9424 * ser-base.c: Update include.
9425 * remote.c: Update include.
9426 * remote-notif.c: Update include.
9427 * remote-fileio.c: Update include.
9428 * record-full.c: Update include.
9429 * record-btrace.c: Update include.
9430 * python/python.c: Update include.
9431 * posix-hdep.c: Update include.
9432 * mingw-hdep.c: Update include.
9433 * mi/mi-main.c: Update include.
9434 * mi/mi-interp.c: Update include.
9435 * main.c: Update include.
9436 * linux-nat.c: Update include.
9437 * interps.c: Update include.
9438 * infrun.c: Update include.
9439 * inf-loop.c: Update include.
9440 * event-top.c: Update include.
9441 * event-loop.c: Move to ../gdbsupport/.
9442 * event-loop.h: Move to ../gdbsupport/.
9443 * async-event.h: Update include.
9444 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9445
9446 2020-04-13 Tom Tromey <tom@tromey.com>
9447
9448 * tui/tui-win.c: Include async-event.h.
9449 * remote.c: Include async-event.h.
9450 * remote-notif.c: Include async-event.h.
9451 * record-full.c: Include async-event.h.
9452 * record-btrace.c: Include async-event.h.
9453 * infrun.c: Include async-event.h.
9454 * event-top.c: Include async-event.h.
9455 * event-loop.h: Move some declarations to async-event.h.
9456 * event-loop.c: Don't include ser-event.h or top.h. Move some
9457 code to async-event.c.
9458 * async-event.h: New file.
9459 * async-event.c: New file.
9460 * Makefile.in (COMMON_SFILES): Add async-event.c.
9461 (HFILES_NO_SRCDIR): Add async-event.h.
9462
9463 2020-04-13 Tom Tromey <tom@tromey.com>
9464
9465 * utils.c (flush_streams): New function.
9466 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9467
9468 2020-04-13 Tom Tromey <tom@tromey.com>
9469
9470 * event-loop.c (handle_file_event): Use warning, not
9471 printf_unfiltered.
9472
9473 2020-04-13 Tom Tromey <tom@tromey.com>
9474
9475 * event-loop.c: Include <chrono>.
9476
9477 2020-04-13 Tom Tromey <tom@tromey.com>
9478
9479 * gdb_select.h: Move to ../gdbsupport/.
9480 * event-loop.c: Update include path.
9481 * top.c: Update include path.
9482 * ser-base.c: Update include path.
9483 * ui-file.c: Update include path.
9484 * ser-tcp.c: Update include path.
9485 * guile/scm-ports.c: Update include path.
9486 * posix-hdep.c: Update include path.
9487 * ser-unix.c: Update include path.
9488 * gdb_usleep.c: Update include path.
9489 * mingw-hdep.c: Update include path.
9490 * inflow.c: Update include path.
9491 * infrun.c: Update include path.
9492 * event-top.c: Update include path.
9493
9494 2020-04-13 Tom Tromey <tom@tromey.com>
9495
9496 * configure: Rebuild.
9497 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9498
9499 2020-04-13 Tom Tromey <tom@tromey.com>
9500
9501 * event-loop.h (start_event_loop): Don't declare.
9502 * event-loop.c (start_event_loop): Move...
9503 * main.c (start_event_loop): ...here. Now static.
9504
9505 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9506
9507 * MAINTAINERS: Update my email address.
9508
9509 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9510
9511 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9512 IP_ALL.
9513
9514 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9515
9516 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9517 (nbsd_nat_target::info_proc): Add do_cmdline.
9518
9519 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9520
9521 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9522 (nbsd_nat_target::info_proc): Add do_cwd.
9523
9524 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9525
9526 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9527
9528 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9529
9530 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9531 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9532 (nbsd_nat_target::info_proc): New functions.
9533 * nbsd-nat.c (kinfo_get_vmmap): New function.
9534 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9535 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9536 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9537 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9538 functions.
9539 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9540 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9541 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9542 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9543 (KINFO_VME_FLAG_GROWS_DOWN): New.
9544
9545 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9546
9547 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9548 bit shift.
9549
9550 2020-04-10 Tom Tromey <tromey@adacore.com>
9551
9552 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9553
9554 2020-04-10 Tom Tromey <tromey@adacore.com>
9555
9556 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9557 separate debug files.
9558
9559 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9560
9561 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9562 Move to...
9563 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9564 ... here.
9565 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9566 Check for STATUS_WX86_BREAKPOINT.
9567 (windows_nat_target::wait): Same.
9568
9569 2020-04-10 Tom de Vries <tdevries@suse.de>
9570
9571 PR cli/25808
9572 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9573
9574 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9575
9576 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9577 (Write After Approval): Remove Tom de Vries.
9578
9579 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9580
9581 revert partially:
9582 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9583
9584 * buildsym.c (record_line): Fix undefined behavior and preserve
9585 lines at eof.
9586
9587 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9588
9589 * auxv.h (svr4_auxv_parse): New.
9590 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9591 and generic_auxv_parse.
9592 (svr4_auxv_parse): Add.
9593 * obsd-tdep.c: Include "auxv.h".
9594 (obsd_auxv_parse): Remove.
9595 (obsd_init_abi): Remove comment.
9596 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9597 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9598 * nbsd-tdep.c: Include "auxv.h".
9599 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9600
9601 2020-04-08 Tom Tromey <tromey@adacore.com>
9602
9603 * nat/windows-nat.h (last_wait_event): Don't declare.
9604 (wait_for_debug_event): Update comment.
9605 * nat/windows-nat.c (last_wait_event): Now static.
9606
9607 2020-04-08 Tom Tromey <tromey@adacore.com>
9608
9609 * windows-nat.c (wait_for_debug_event): Move to
9610 nat/windows-nat.c.
9611 * nat/windows-nat.h (wait_for_debug_event): Declare.
9612 * nat/windows-nat.c (wait_for_debug_event): Move from
9613 windows-nat.c. No longer static.
9614
9615 2020-04-08 Tom Tromey <tromey@adacore.com>
9616
9617 * windows-nat.c (get_windows_debug_event): Use
9618 fetch_pending_stop.
9619 * nat/windows-nat.h (fetch_pending_stop): Declare.
9620 * nat/windows-nat.c (fetch_pending_stop): New function.
9621
9622 2020-04-08 Tom Tromey <tromey@adacore.com>
9623
9624 * windows-nat.c (windows_continue): Use matching_pending_stop and
9625 continue_last_debug_event.
9626 * nat/windows-nat.h (matching_pending_stop)
9627 (continue_last_debug_event): Declare.
9628 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9629 (matching_pending_stop, continue_last_debug_event): New
9630 functions.
9631
9632 2020-04-08 Tom Tromey <tromey@adacore.com>
9633
9634 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9635 (handle_exception_result): Move to nat/windows-nat.h.
9636 (DEBUG_EXCEPTION_SIMPLE): Remove.
9637 (windows_nat::handle_ms_vc_exception): New function.
9638 (handle_exception): Move to nat/windows-nat.c.
9639 (get_windows_debug_event): Update.
9640 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9641 nat/windows-nat.c.
9642 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9643 (handle_exception_result): Move from windows-nat.c.
9644 (handle_exception): Declare.
9645 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9646 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9647 windows-nat.c.
9648
9649 2020-04-08 Tom Tromey <tromey@adacore.com>
9650
9651 * windows-nat.c (exception_count, event_count): Remove.
9652 (handle_exception, get_windows_debug_event)
9653 (do_initial_windows_stuff): Update.
9654
9655 2020-04-08 Tom Tromey <tromey@adacore.com>
9656
9657 * windows-nat.c (windows_nat::handle_load_dll)
9658 (windows_nat::handle_unload_dll): Rename. No longer static.
9659 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9660 Declare.
9661
9662 2020-04-08 Tom Tromey <tromey@adacore.com>
9663
9664 * complaints.h (stop_whining): Declare at top-level.
9665 (complaint): Don't declare stop_whining.
9666
9667 2020-04-08 Tom Tromey <tromey@adacore.com>
9668
9669 * windows-nat.c (windows_nat::handle_output_debug_string):
9670 Rename. No longer static.
9671 * nat/windows-nat.h (handle_output_debug_string): Declare.
9672
9673 2020-04-08 Tom Tromey <tromey@adacore.com>
9674
9675 * windows-nat.c (current_process_handle, current_process_id)
9676 (main_thread_id, last_sig, current_event, last_wait_event)
9677 (current_windows_thread, desired_stop_thread_id, pending_stops)
9678 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9679 (display_selectors, fake_create_process)
9680 (get_windows_debug_event): Update.
9681 * nat/windows-nat.h (current_process_handle, current_process_id)
9682 (main_thread_id, last_sig, current_event, last_wait_event)
9683 (current_windows_thread, desired_stop_thread_id, pending_stops)
9684 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9685 * nat/windows-nat.c (current_process_handle, current_process_id)
9686 (main_thread_id, last_sig, current_event, last_wait_event)
9687 (current_windows_thread, desired_stop_thread_id, pending_stops)
9688 (siginfo_er): New globals. Move from windows-nat.c.
9689
9690 2020-04-08 Tom Tromey <tromey@adacore.com>
9691
9692 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9693 (handle_load_dll): Update.
9694 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9695
9696 2020-04-08 Tom Tromey <tromey@adacore.com>
9697
9698 * windows-nat.c (enum thread_disposition_type): Move to
9699 nat/windows-nat.h.
9700 (windows_nat::thread_rec): Rename from thread_rec. No longer
9701 static.
9702 (windows_add_thread, windows_nat_target::fetch_registers)
9703 (windows_nat_target::store_registers, handle_exception)
9704 (windows_nat_target::resume, get_windows_debug_event)
9705 (windows_nat_target::get_tib_address)
9706 (windows_nat_target::thread_name)
9707 (windows_nat_target::thread_alive): Update.
9708 * nat/windows-nat.h (enum thread_disposition_type): Move from
9709 windows-nat.c.
9710 (thread_rec): Declare.
9711
9712 2020-04-08 Tom Tromey <tromey@adacore.com>
9713
9714 * windows-nat.c: Add "using namespace".
9715 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9716 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9717
9718 2020-04-08 Tom Tromey <tromey@adacore.com>
9719
9720 * nat/windows-nat.h (struct windows_thread_info): Declare
9721 destructor.
9722 * nat/windows-nat.c (~windows_thread_info): New.
9723
9724 2020-04-08 Tom Tromey <tromey@adacore.com>
9725
9726 PR gdb/22992
9727 * windows-nat.c (current_event): Update comment.
9728 (last_wait_event, desired_stop_thread_id): New globals.
9729 (struct pending_stop): New.
9730 (pending_stops): New global.
9731 (windows_nat_target) <stopped_by_sw_breakpoint>
9732 <supports_stopped_by_sw_breakpoint>: New methods.
9733 (windows_fetch_one_register): Add assertions. Adjust PC.
9734 (windows_continue): Handle pending stops. Suspend other threads
9735 when stepping. Use last_wait_event
9736 (wait_for_debug_event): New function.
9737 (get_windows_debug_event): Use wait_for_debug_event. Handle
9738 pending stops. Queue spurious stops.
9739 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9740 (windows_nat_target::kill): Use wait_for_debug_event.
9741 * nat/windows-nat.h (struct windows_thread_info)
9742 <stopped_at_software_breakpoint>: New field.
9743 * nat/windows-nat.c (windows_thread_info::resume): Clear
9744 stopped_at_software_breakpoint.
9745
9746 2020-04-08 Tom Tromey <tromey@adacore.com>
9747
9748 * windows-nat.c (enum thread_disposition_type): New.
9749 (thread_rec): Replace "get_context" parameter with "disposition";
9750 change type.
9751 (windows_add_thread, windows_nat_target::fetch_registers)
9752 (windows_nat_target::store_registers, handle_exception)
9753 (windows_nat_target::resume, get_windows_debug_event)
9754 (windows_nat_target::get_tib_address)
9755 (windows_nat_target::thread_name)
9756 (windows_nat_target::thread_alive): Update.
9757
9758 2020-04-08 Tom Tromey <tromey@adacore.com>
9759
9760 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9761 (windows_continue): Use windows_continue::resume.
9762 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9763 resume>: Declare new methods.
9764 * nat/windows-nat.c: New file.
9765 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9766
9767 2020-04-08 Tom Tromey <tromey@adacore.com>
9768
9769 * windows-nat.c (windows_add_thread, windows_delete_thread)
9770 (windows_nat_target::fetch_registers)
9771 (windows_nat_target::store_registers, fake_create_process)
9772 (windows_nat_target::resume, windows_nat_target::resume)
9773 (get_windows_debug_event, windows_nat_target::wait)
9774 (windows_nat_target::pid_to_str)
9775 (windows_nat_target::get_tib_address)
9776 (windows_nat_target::get_ada_task_ptid)
9777 (windows_nat_target::thread_name)
9778 (windows_nat_target::thread_alive): Use lwp, not tid.
9779
9780 2020-04-08 Tom Tromey <tromey@adacore.com>
9781
9782 * windows-nat.c (handle_exception)
9783 (windows_nat_target::thread_name): Update.
9784 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9785 <name>: Now unique_xmalloc_ptr.
9786
9787 2020-04-08 Tom Tromey <tromey@adacore.com>
9788
9789 * windows-nat.c (thread_rec)
9790 (windows_nat_target::fetch_registers): Update.
9791 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9792 Update comment.
9793 <debug_registers_changed, reload_context>: Now bool.
9794
9795 2020-04-08 Tom Tromey <tromey@adacore.com>
9796
9797 * windows-nat.c (windows_add_thread): Use new.
9798 (windows_init_thread_list, windows_delete_thread): Use delete.
9799 (get_windows_debug_event): Update.
9800 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9801 destructor, and initializers.
9802
9803 2020-04-08 Tom Tromey <tromey@adacore.com>
9804
9805 * windows-nat.c (struct windows_thread_info): Remove.
9806 * nat/windows-nat.h: New file.
9807
9808 2020-04-08 Tom Tromey <tromey@adacore.com>
9809
9810 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9811 (thread_rec, windows_add_thread, windows_delete_thread)
9812 (windows_continue): Update.
9813
9814 2020-04-08 Tom Tromey <tromey@adacore.com>
9815
9816 * windows-nat.c (struct windows_thread_info): Remove typedef.
9817 (thread_head): Remove.
9818 (thread_list): New global.
9819 (thread_rec, windows_add_thread, windows_init_thread_list)
9820 (windows_delete_thread, windows_continue): Update.
9821
9822 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * windows-tdep.h (windows_init_abi): Add comment.
9825 (cygwin_init_abi): New declaration.
9826 * windows-tdep.c: Split signal enumeration in two, one for
9827 Windows and one for Cygwin.
9828 (windows_gdb_signal_to_target): Only deal with signal of the
9829 Windows OS ABI.
9830 (cygwin_gdb_signal_to_target): New function.
9831 (windows_init_abi): Rename to windows_init_abi_common, don't set
9832 gdb_signal_to_target gdbarch method. Add new new function with
9833 this name.
9834 (cygwin_init_abi): New function.
9835 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9836 comment. Don't call windows_init_abi.
9837 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9838 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9839 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9840 i386_windows_init_abi_common, don't call windows_init_abi. Add
9841 a new function of this name.
9842 (i386_cygwin_init_abi): New function.
9843 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9844 OS ABI Cygwin.
9845
9846 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9847
9848 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9849 parameter.c.
9850 (dwarf2_read_gdb_index): Update.
9851
9852 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9853
9854 * nbsd-tdep.c: Include "objfiles.h".
9855 (nbsd_skip_solib_resolver): New.
9856 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9857
9858 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9859
9860 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9861 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9862 with DW_LLE_base_addressx are being emitted in DWARFv5.
9863 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9864 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9865 unsigned integer.
9866
9867 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9868
9869 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9870 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9871 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9872 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9873 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9874 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9875 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9876
9877
9878 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9879
9880 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9881 (read_loclist_index): New function definition.
9882 (lookup_loclist_base): New function definition.
9883 (read_loclist_header): New function definition.
9884 (dwarf2_cu): Add loclist_base and loclist_header field.
9885 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9886 (read_full_die_1): Read the value of DW_AT_loclists_base.
9887 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9888 (read_attribute_value): Handle DW_FORM_loclistx.
9889 (skip_one_die): Handle DW_FORM_loclistx.
9890 (loclist_header): New structure declaration.
9891 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9892
9893 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9894
9895 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9896 constructor. Remove `addr` parameter from other constructor and
9897 add `per_cu` parameter.
9898 * dwarf2/read.c (create_partial_symtab): Update.
9899
9900 2020-04-07 Tom de Vries <tdevries@suse.de>
9901
9902 PR symtab/25796
9903 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9904 (partial_die_info::fixup): Inherit has_const_value.
9905
9906 2020-04-07 Tom de Vries <tdevries@suse.de>
9907
9908 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9909 symbols without address.
9910
9911 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9912
9913 * nbsd-nat.h (struct thread_info): Add forward declaration.
9914 (nbsd_nat_target::thread_alive): Add.
9915 (nbsd_nat_target::thread_name): Likewise.
9916 (nbsd_nat_target::update_thread_list): Likewise.
9917 (update_thread_list::post_attach): Likewise.
9918 (post_attach::pid_to_str): Likewise.
9919 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9920 (nbsd_thread_lister): Add.
9921 (nbsd_nat_target::thread_alive): Likewise.
9922 (nbsd_nat_target::thread_name): Likewise.
9923 (nbsd_add_threads): Likewise.
9924 (update_thread_list::post_attach): Likewise.
9925 (nbsd_nat_target::update_thread_list): Likewise.
9926 (post_attach::pid_to_str): Likewise.
9927
9928 2020-04-06 Tom Tromey <tromey@adacore.com>
9929
9930 * ada-valprint.c (print_variant_part): Extract the variant field.
9931 (print_field_values): Use the field as the outer value when
9932 recursing.
9933
9934 2020-04-06 Tom Tromey <tromey@adacore.com>
9935
9936 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9937 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9938 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9939 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9940 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9941
9942 2020-04-06 Tom Tromey <tromey@adacore.com>
9943
9944 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9945 TYPE_CODE_ERROR.
9946
9947 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9948
9949 * nbsd-tdep.c: Include "gdbarch.h".
9950 Define enum with NetBSD signal numbers.
9951 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9952 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9953 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9954 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9955 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9956 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9957 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9958 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9959 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9960 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9961 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9962 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9963
9964 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9965
9966 PR gdb/25325
9967 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9968
9969 2020-04-03 Tom Tromey <tromey@adacore.com>
9970
9971 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9972 Read constant block.
9973
9974 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9975
9976 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9977 (gdb_bfd_get_full_section_contents): New declaration.
9978 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9979 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9980 gdb_bfd_get_full_section_contents.
9981
9982 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9983
9984 * exec.c (build_section_table): Replace internal_error with
9985 gdb_assert.
9986 (section_table_xfer_memory_partial): Likewise.
9987 * mdebugread.c (parse_partial_symbols): Likewise.
9988 * psymtab.c (lookup_partial_symbol): Likewise.
9989 * utils.c (wrap_here): Likewise.
9990
9991 2020-04-02 Tom Tromey <tromey@adacore.com>
9992
9993 * f-lang.c (build_fortran_types): Use arch_type to initialize
9994 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9995
9996 2020-04-02 Tom Tromey <tromey@adacore.com>
9997
9998 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9999 of attributes.
10000
10001 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10002 Bernd Edlinger <bernd.edlinger@hotmail.de>
10003 Tom Tromey <tromey@adacore.com>
10004
10005 * buildsym.c (buildsym_compunit::record_line): Remove
10006 deduplication code.
10007
10008 2020-04-02 Tom de Vries <tdevries@suse.de>
10009
10010 PR ada/24671
10011 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10012
10013 2020-04-02 Tom de Vries <tdevries@suse.de>
10014
10015 * dwarf2/read.c (dwarf2_gdb_index_functions,
10016 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10017 NULL.
10018 * psymtab.c (psym_lookup_global_symbol_language): New function.
10019 (psym_functions): Init psym_lookup_global_symbol_language with
10020 psym_lookup_global_symbol_language.
10021 * symfile-debug.c (debug_sym_quick_functions): Init
10022 lookup_global_symbol_language with NULL.
10023 * symfile.c (set_initial_language): Remove fixme comment.
10024 * symfile.h (struct quick_symbol_functions): Add
10025 lookup_global_symbol_language.
10026 * symtab.c (find_quick_global_symbol_language): New function.
10027 (find_main_name): Use find_quick_global_symbol_language.
10028
10029 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10030
10031 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10032
10033 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10034
10035 * buildsym.c (record_line): Fix undefined behavior and preserve
10036 lines at eof.
10037
10038 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10039
10040 * buildsym.c (record_line): Fix the resizing condition.
10041
10042 2020-04-01 Tom Tromey <tom@tromey.com>
10043
10044 * value.h (value_literal_complex): Add comment.
10045 * valops.c (value_literal_complex): Refer to value.h.
10046
10047 2020-04-01 Tom Tromey <tom@tromey.com>
10048
10049 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10050 (scalar_type): New rule, from typebase.
10051 (typebase): Use scalar_type. Recognize complex types.
10052 (field_name): Handle FLOAT_KEYWORD.
10053 (ident_tokens): Add _Complex and __complex__.
10054
10055 2020-04-01 Tom Tromey <tom@tromey.com>
10056
10057 PR exp/25299:
10058 * valarith.c (promotion_type, complex_binop): New functions.
10059 (scalar_binop): Handle complex numbers. Use promotion_type.
10060 (value_pos, value_neg, value_complement): Handle complex numbers.
10061
10062 2020-04-01 Tom Tromey <tom@tromey.com>
10063
10064 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10065 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10066 (parse_number): Handle complex numbers.
10067
10068 2020-04-01 Tom Tromey <tom@tromey.com>
10069
10070 * c-valprint.c (c_decorations): Change complex suffix to "i".
10071
10072 2020-04-01 Tom Tromey <tom@tromey.com>
10073
10074 * valprint.c (generic_value_print_complex): Use accessors.
10075 * value.h (value_real_part, value_imaginary_part): Declare.
10076 * valops.c (value_real_part, value_imaginary_part): New
10077 functions.
10078 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10079
10080 2020-04-01 Tom Tromey <tom@tromey.com>
10081
10082 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10083 (read_range_type): Update.
10084 * mdebugread.c (basic_type): Update.
10085 * go-lang.c (build_go_types): Use init_complex_type.
10086 * gdbtypes.h (struct main_type) <complex_type>: New member.
10087 (init_complex_type): Update.
10088 (arch_complex_type): Don't declare.
10089 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10090 Make name if none given. Use alloc_type_copy. Look for cached
10091 complex type.
10092 (arch_complex_type): Remove.
10093 (gdbtypes_post_init): Use init_complex_type.
10094 * f-lang.c (build_fortran_types): Use init_complex_type.
10095 * dwarf2/read.c (read_base_type): Update.
10096 * d-lang.c (build_d_types): Use init_complex_type.
10097 * ctfread.c (read_base_type): Update.
10098
10099 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10100
10101 * infrun.c (stop_all_threads): Update assertion, plus when
10102 stopping threads, take into account that we might be trying
10103 to stop an all-stop target.
10104 (stop_waiting): Call 'stop_all_threads' if there exists a
10105 non-stop target.
10106
10107 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10108
10109 * target.h (exists_non_stop_target): New function declaration.
10110 * target.c (exists_non_stop_target): New function.
10111
10112 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10113
10114 PR gdb/24789
10115 * eval.c (is_integral_or_integral_reference): New function.
10116 (evaluate_subexp_standard): Allow integer references in
10117 pointer arithmetic.
10118
10119 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10120
10121 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10122 check for no ptid in the stop reply when the target is non-stop.
10123
10124 2020-04-01 Tom Tromey <tromey@adacore.com>
10125
10126 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10127 "name" parameter to rvalue reference. Initialize m_name_holder.
10128 <lookup_name_info>: New overloads.
10129 <name>: Return gdb::string_view.
10130 <c_str>: New method.
10131 <make_ignore_params>: Update.
10132 <search_name_hash>: Update.
10133 <language_lookup_name>: Return const char *.
10134 <m_name>: Change type.
10135 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10136 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10137 (lookup_name_info::match_any): Update.
10138 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10139 Update.
10140 * minsyms.c (linkage_name_str): Update.
10141 * language.c (default_symbol_name_matcher): Update.
10142 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10143 Update.
10144 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10145 (ada_lookup_name_info::ada_lookup_name_info): Update.
10146 (literal_symbol_name_matcher): Update.
10147
10148 2020-04-01 Tom Tromey <tromey@adacore.com>
10149
10150 * psymtab.c (psymtab_search_name): Remove function.
10151 (psym_lookup_symbol): Create search name and lookup name here.
10152 (lookup_partial_symbol): Remove "name" parameter; add
10153 lookup_name.
10154 (psym_expand_symtabs_for_function): Update.
10155
10156 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10157
10158 PR tui/25597:
10159 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10160
10161 2020-03-31 Tom Tromey <tromey@adacore.com>
10162
10163 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10164 memcpy.
10165
10166 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10167
10168 * features/riscv/32bit-csr.xml: Regenerated.
10169 * features/riscv/64bit-csr.xml: Regenerated.
10170
10171 2020-03-30 Tom Tromey <tromey@adacore.com>
10172
10173 * ada-valprint.c (print_variant_part): Update.
10174 * ada-lang.h (ada_which_variant_applies): Update.
10175 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10176 outer_valaddr parameters; replace with "outer" value parameter.
10177 (to_fixed_variant_branch_type): Update.
10178
10179 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10180
10181 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10182 <list>. Remove inclusion of observable.h.
10183 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10184 (struct arch_lwp_info): New struct.
10185 (class ppc_linux_dreg_interface): New class.
10186 (struct ppc_linux_process_info): New struct.
10187 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10188 <low_new_clone, low_forget_process, low_prepare_to_resume>
10189 <copy_thread_dreg_state, mark_thread_stale>
10190 <mark_debug_registers_changed, register_hw_breakpoint>
10191 <clear_hw_breakpoint, register_wp, clear_wp>
10192 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10193 <num_memory_accesses, get_trigger_type>
10194 <create_watchpoint_request, hwdebug_point_cmp>
10195 <init_arch_lwp_info, get_arch_lwp_info>
10196 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10197 methods.
10198 <struct ptid_hash>: New inner struct.
10199 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10200 members.
10201 (saved_dabr_value, hwdebug_info, max_slots_number)
10202 (struct hw_break_tuple, struct thread_points, ppc_threads)
10203 (have_ptrace_hwdebug_interface)
10204 (hwdebug_find_thread_points_by_tid)
10205 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10206 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10207 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10208 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10209 use m_dreg_interface.
10210 (hwdebug_point_cmp): Change to...
10211 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10212 reference arguments instead of pointers.
10213 (ppc_linux_nat_target::ranged_break_num_registers): Use
10214 m_dreg_interface.
10215 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10216 m_dreg_interface. Call register_hw_breakpoint.
10217 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10218 m_dreg_interface. Call clear_hw_breakpoint.
10219 (get_trigger_type): Change to...
10220 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10221 comment.
10222 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10223 use m_dreg_interface. Call register_hw_breakpoint.
10224 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10225 use m_dreg_interface. Call clear_hw_breakpoint.
10226 (can_use_watchpoint_cond_accel): Change to...
10227 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10228 method. Update comment, use m_dreg_interface and
10229 m_process_info.
10230 (calculate_dvc): Change to...
10231 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10232 m_dreg_interface.
10233 (num_memory_accesses): Change to...
10234 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10235 (check_condition): Change to...
10236 (ppc_linux_nat_target::check_condition): ...this method.
10237 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10238 comment, use m_dreg_interface.
10239 (create_watchpoint_request): Change to...
10240 (ppc_linux_nat_target::create_watchpoint_request): ...this
10241 method. Use m_dreg_interface.
10242 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10243 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10244 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10245 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10246 (ppc_linux_nat_target::low_forget_process)
10247 (ppc_linux_nat_target::low_new_fork)
10248 (ppc_linux_nat_target::low_new_clone)
10249 (ppc_linux_nat_target::low_delete_thread)
10250 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10251 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10252 only call mark_thread_stale.
10253 (ppc_linux_thread_exit): Remove.
10254 (ppc_linux_nat_target::stopped_data_address): Change to...
10255 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10256 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10257 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10258 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10259 comment. Call low_stopped_data_address.
10260 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10261 m_dreg_interface.
10262 (ppc_linux_nat_target::masked_watch_num_registers): Use
10263 m_dreg_interface.
10264 (ppc_linux_nat_target::copy_thread_dreg_state)
10265 (ppc_linux_nat_target::mark_thread_stale)
10266 (ppc_linux_nat_target::mark_debug_registers_changed)
10267 (ppc_linux_nat_target::register_hw_breakpoint)
10268 (ppc_linux_nat_target::clear_hw_breakpoint)
10269 (ppc_linux_nat_target::register_wp)
10270 (ppc_linux_nat_target::clear_wp)
10271 (ppc_linux_nat_target::init_arch_lwp_info)
10272 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10273 (_initialize_ppc_linux_nat): Remove observer callback.
10274
10275 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10276
10277 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10278 (ppc_linux_nat_target::auxv_parse)
10279 (ppc_linux_nat_target::read_description)
10280 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10281 Move up.
10282
10283 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10284
10285 * linux-nat.h (low_new_clone): New method.
10286 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10287
10288 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10289
10290 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10291 (dbx_expand_psymtab): ... this.
10292 (start_psymtab): Update.
10293 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10294 (mdebug_expand_psymtab): ... this.
10295 (parse_partial_symbols): Update.
10296 (new_psymtab): Update.
10297 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10298 (xcoff_expand_psymtab): ... this.
10299 (xcoff_start_psymtab): Update.
10300
10301 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10302
10303 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10304 <expand_dependencies>: ... this.
10305 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10306 (partial_symtab::expand_dependencies): ... this.
10307 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10308 Update.
10309 (dwarf2_psymtab::expand_psymtab): Update.
10310 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10311 * mdebugread.c (psymtab_to_symtab_1): Update.
10312 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10313
10314 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * psympriv.h (discard_psymtab): Remove.
10317 * dbxread.c (dbx_end_psymtab): Update.
10318 * xcoffread.c (xcoff_end_psymtab): Update.
10319
10320 2020-03-28 Tom Tromey <tom@tromey.com>
10321
10322 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10323 comment.
10324
10325 2020-03-28 Tom Tromey <tom@tromey.com>
10326
10327 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10328
10329 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10330
10331 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10332
10333 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10334
10335 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10336
10337 2020-03-26 Tom Tromey <tom@tromey.com>
10338
10339 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10340 (mark_common_block_symbol_computed, read_tag_string_type)
10341 (attr_to_dynamic_prop, read_subrange_type): Update.
10342 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10343 to be methods on struct attribute.
10344 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10345 (read_call_site_scope, partial_die_info::read)
10346 (partial_die_info::read, lookup_die_type, follow_die_ref):
10347 Update.
10348 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10349 from dwarf2_get_ref_die_offset.
10350 (attribute::constant_value): New method, from
10351 dwarf2_get_attr_constant_value.
10352 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10353 Declare method.
10354 <constant_value>: New method.
10355
10356 2020-03-26 Tom Tromey <tom@tromey.com>
10357
10358 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10359 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10360 (dwarf_type_encoding_name): Move to stringify.c.
10361 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10362 * dwarf2/stringify.c: New file.
10363 * dwarf2/stringify.h: New file.
10364
10365 2020-03-26 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10368 Rewrite.
10369
10370 2020-03-26 Tom Tromey <tom@tromey.com>
10371
10372 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10373 methods.
10374 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10375 (lookup_ranges_base): Likewise.
10376 (read_cutu_die_from_dwo, read_full_die_1): Update.
10377
10378 2020-03-26 Tom Tromey <tom@tromey.com>
10379
10380 * dwarf2/read.c (read_import_statement, read_file_scope)
10381 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10382 (read_lexical_block_scope, read_call_site_scope)
10383 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10384 (handle_struct_member_die, process_structure_scope)
10385 (update_enumeration_type_from_children)
10386 (process_enumeration_scope, read_array_type, read_common_block)
10387 (read_namespace, read_module, read_subroutine_type): Update.
10388 (sibling_die): Remove.
10389
10390 2020-03-26 Tom Tromey <tom@tromey.com>
10391
10392 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10393 (build_type_psymtabs_reader, read_structure_type)
10394 (read_enumeration_type, read_full_die_1): Update.
10395 (dwarf2_attr_no_follow): Move to die.h.
10396 * dwarf2/die.h (struct die_info) <attr>: New method.
10397
10398 2020-03-26 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10401 <base_address>: Now an optional.
10402 (dwarf2_find_base_address, dwarf2_rnglists_process)
10403 (dwarf2_ranges_process, fill_in_loclist_baton)
10404 (dwarf2_symbol_mark_computed): Update.
10405
10406 2020-03-26 Tom Tromey <tom@tromey.com>
10407
10408 * dwarf2/read.c (struct die_info): Move to die.h.
10409 * dwarf2/die.h: New file.
10410
10411 2020-03-26 Tom Tromey <tom@tromey.com>
10412
10413 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10414 * dwarf2/read.c
10415 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10416 Move to line-header.c.
10417 (read_checked_initial_length_and_offset, read_formatted_entries):
10418 Likewise.
10419 (dwarf_decode_line_header): Split into two.
10420 * dwarf2/line-header.c
10421 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10422 Move from read.c.
10423 (read_checked_initial_length_and_offset, read_formatted_entries):
10424 Likewise.
10425 (dwarf_decode_line_header): New function, split from read.c.
10426
10427 2020-03-26 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10430 Declare method.
10431 * dwarf2/read.c (read_attribute_value): Update.
10432 (dwarf2_per_objfile::read_line_string): Rename from
10433 read_indirect_line_string.
10434 (read_formatted_entries): Update.
10435
10436 2020-03-26 Tom Tromey <tom@tromey.com>
10437
10438 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10439 variable.
10440
10441 2020-03-26 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10444 const.
10445 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10446 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10447 parameter const.
10448
10449 2020-03-26 Tom Tromey <tom@tromey.com>
10450
10451 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10452 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10453 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10454 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10455
10456 2020-03-26 Tom Tromey <tom@tromey.com>
10457
10458 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10459 file_names_size, file_full_name, file_file_name>: Use const.
10460 <file_name_at, file_names>: Add const overload.
10461 * dwarf2/line-header.c (line_header::file_file_name)
10462 (line_header::file_full_name): Update.
10463
10464 2020-03-26 Tom Tromey <tom@tromey.com>
10465
10466 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10467 (macro_start_file, consume_improper_spaces)
10468 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10469 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10470 (dwarf_decode_macros): Move to macro.c.
10471 * dwarf2/macro.c: New file.
10472 * dwarf2/macro.h: New file.
10473 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10474
10475 2020-03-26 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10478 method.
10479 * dwarf2/section.c: New method. From
10480 read_indirect_string_at_offset_from.
10481 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10482 (read_indirect_string_at_offset_from): Move to section.c.
10483 (read_indirect_string_at_offset): Rewrite.
10484 (read_indirect_line_string_at_offset): Remove.
10485 (read_indirect_string, read_indirect_line_string)
10486 (dwarf_decode_macro_bytes): Update.
10487
10488 2020-03-26 Tom Tromey <tom@tromey.com>
10489
10490 * dwarf2/section.h (struct dwarf2_section_info)
10491 <overload_complaint>: Declare.
10492 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10493 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10494 Rename from dwarf2_section_buffer_overflow_complaint.
10495 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10496 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10497
10498 2020-03-26 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10501 Declare.
10502 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10503 Move from read.c.
10504 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10505 to section.c.
10506
10507 2020-03-26 Tom Tromey <tom@tromey.com>
10508
10509 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10510
10511 2020-03-26 Tom Tromey <tom@tromey.com>
10512
10513 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10514 "builder".
10515 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10516 parameter.
10517 (dwarf_decode_macros): Update.
10518
10519 2020-03-26 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/read.c (read_attribute_value): Update.
10522 (read_indirect_string_from_dwz): Move to dwz.c; change into
10523 method.
10524 (dwarf_decode_macro_bytes): Update.
10525 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10526 * dwarf2/dwz.c: New file.
10527 * Makefile.in (COMMON_SFILES): Add dwz.c.
10528
10529 2020-03-26 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10532 * dwarf2/read.c: Add include.
10533 * dwarf2/index-write.c: Add include.
10534 * dwarf2/index-cache.c: Add include.
10535 * dwarf2/dwz.h: New file.
10536
10537 2020-03-25 Tom Tromey <tom@tromey.com>
10538
10539 * compile/compile-object-load.c (get_out_value_type): Mention
10540 correct symbol name in error message.
10541
10542 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10543
10544 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10545
10546 2020-03-25 Tom de Vries <tdevries@suse.de>
10547
10548 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10549 * symmisc.c (dump_symtab_1): Print user and includes fields.
10550 (maintenance_info_symtabs): Same.
10551
10552 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10553
10554 PR gdb/25534
10555 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10556 (riscv_regcache_cooked_write): New function.
10557 (riscv_push_dummy_call): Use new function.
10558 (riscv_return_value): Likewise.
10559
10560 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10561
10562 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10563 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10564 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10565 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10566 * infrun.c (follow_fork): Likewise.
10567 (follow_fork_inferior): Likewise.
10568 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10569 * linux-nat.h (class linux_nat_target): Likewise.
10570 * remote.c (class remote_target) <follow_fork>: Likewise.
10571 (remote_target::follow_fork): Likewise.
10572 * target-delegates.c: Re-generate.
10573 * target.c (default_follow_fork): Likewise.
10574 (target_follow_fork): Likewise.
10575 * target.h (struct target_ops) <follow_fork>: Likewise.
10576 (target_follow_fork): Likewise.
10577
10578 2020-03-24 Tom de Vries <tdevries@suse.de>
10579
10580 * psymtab.c (maintenance_info_psymtabs): Print user field.
10581
10582 2020-03-20 Tom Tromey <tromey@adacore.com>
10583
10584 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10585 const.
10586 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10587 const.
10588
10589 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * ptrace.m4: Don't check for ptrace declaration.
10592 * config.in: Re-generate.
10593 * configure: Re-generate.
10594 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10595 not defined.
10596
10597 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10598
10599 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10600 `PTRACE_TYPE_RET'.
10601 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10602 * sparc-nat.c (gdb_ptrace): Likewise.
10603 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10604
10605 2020-03-20 Tom Tromey <tromey@adacore.com>
10606
10607 * c-exp.y (lex_one_token): Fix assert.
10608
10609 2020-03-20 Tom Tromey <tromey@adacore.com>
10610
10611 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10612 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10613 strncpy call.
10614
10615 2020-03-20 Tom Tromey <tromey@adacore.com>
10616
10617 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10618
10619 2020-03-20 Tom Tromey <tromey@adacore.com>
10620
10621 * ada-valprint.c (print_variant_part): Remove parameters; switch
10622 to value-based API.
10623 (print_field_values): Likewise.
10624 (ada_val_print_struct_union): Likewise.
10625 (ada_value_print_1): Update.
10626
10627 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10628
10629 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10630 nbsd_nat_target instead of inf_ptrace_target.
10631 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10632 nbsd_nat_target.
10633
10634 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10635
10636 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10637 it to the ptrace call.
10638 * (store_registers): Likewise.
10639
10640 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10641
10642 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10643 it to the ptrace call.
10644 * (store_registers): Likewise.
10645
10646 2020-03-19 Luis Machado <luis.machado@linaro.org>
10647
10648 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10649 valid, fetch vg value from ptrace.
10650
10651 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10652 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10653 * inf-ptrace.c: Likewise.
10654 * (gdb_ptrace): Add.
10655 * (inf_ptrace_target::resume): Update.
10656 * (inf_ptrace_target::xfer_partial): Likewise.
10657 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10658 * (inf_ptrace_peek_poke): Update.
10659
10660 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10661
10662 * x86-bsd-nat.c (gdb_ptrace): New.
10663 * (x86bsd_dr_set): Add new argument `ptid'.
10664 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10665 x86bsd_dr_set_addr): Update.
10666
10667 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * remote.c (remote_target::process_stop_reply): Handle events for
10670 all threads differently.
10671
10672 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * completer.c (completion_tracker::remove_completion): Define new
10675 function.
10676 * completer.h (completion_tracker::remove_completion): Declare new
10677 function.
10678 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10679 when adding a C++ function symbol.
10680
10681 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10682
10683 * completer.c (completion_tracker::completion_hash_entry): Define
10684 new class.
10685 (advance_to_filename_complete_word_point): Call
10686 recompute_lowest_common_denominator.
10687 (completion_tracker::completion_tracker): Call discard_completions
10688 to setup the hash table.
10689 (completion_tracker::discard_completions): Allow for being called
10690 from the constructor, pass new equal function, and element deleter
10691 when constructing the hash table. Initialise new class member
10692 variables.
10693 (completion_tracker::maybe_add_completion): Remove use of
10694 m_entries_vec, and store more information into m_entries_hash.
10695 (completion_tracker::recompute_lcd_visitor): New function, most
10696 content taken from...
10697 (completion_tracker::recompute_lowest_common_denominator):
10698 ...here, this now just visits each item in the hash calling the
10699 above visitor.
10700 (completion_tracker::build_completion_result): Remove use of
10701 m_entries_vec, call recompute_lowest_common_denominator.
10702 * completer.h (completion_tracker::have_completions): Remove use
10703 of m_entries_vec.
10704 (completion_tracker::completion_hash_entry): Declare new class.
10705 (completion_tracker::recompute_lowest_common_denominator): Change
10706 function signature.
10707 (completion_tracker::recompute_lcd_visitor): Declare new function.
10708 (completion_tracker::m_entries_vec): Delete.
10709 (completion_tracker::m_entries_hash): Initialize to NULL.
10710 (completion_tracker::m_lowest_common_denominator_valid): New
10711 member variable.
10712 (completion_tracker::m_lowest_common_denominator_max_length): New
10713 member variable.
10714
10715 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10716
10717 * regformats/regdef.h: Put reg in gdb namespace.
10718
10719 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10720
10721 * i386-bsd-nat.c (gdb_ptrace): New.
10722 * (i386bsd_fetch_inferior_registers,
10723 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10724 * (i386bsd_fetch_inferior_registers,
10725 i386bsd_store_inferior_registers) Use gdb_ptrace.
10726
10727 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10728
10729 * amd64-bsd-nat.c (gdb_ptrace): New.
10730 * (amd64bsd_fetch_inferior_registers,
10731 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10732 * (amd64bsd_fetch_inferior_registers,
10733 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10734
10735 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10736
10737 * user-regs.c (user_reg::read): Rename to...
10738 (user_reg::xread): ...this.
10739 * (append_user_reg): Rename argument `read' to `xread'.
10740 * (user_reg_add_builtin): Likewise.
10741 * (user_reg_add): Likewise.
10742 * (value_of_user_reg): Likewise.
10743
10744 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10745
10746 * sparc-nat.c (gdb_ptrace): New.
10747 * sparc-nat.c (sparc_fetch_inferior_registers)
10748 (sparc_store_inferior_registers) Remove obsolete comment.
10749 * sparc-nat.c (sparc_fetch_inferior_registers)
10750 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10751 * sparc-nat.c (sparc_fetch_inferior_registers)
10752 (sparc_store_inferior_registers) Use gdb_ptrace.
10753
10754 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10755
10756 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10757 it to the ptrace call.
10758 * sh-nbsd-nat.c (store_registers): Likewise.
10759
10760 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10761
10762 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10763 nbsd_nat_target instead of inf_ptrace_target.
10764 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10765 nbsd_nat_target.
10766
10767 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10768
10769 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10770
10771 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10772
10773 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10774 <sys/sysctl.h>.
10775 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10776
10777 2020-03-17 Tom de Vries <tdevries@suse.de>
10778
10779 PR gdb/23710
10780 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10781 fields.
10782 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10783 fields.
10784 (process_imported_unit_die): Skip import of c++ CUs.
10785
10786 2020-03-16 Tom Tromey <tom@tromey.com>
10787
10788 * p-valprint.c (pascal_object_print_value): Initialize
10789 base_value.
10790
10791 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10792 Shahab Vahedi <shahab@synopsys.com>
10793
10794 * Makefile.in: Add arch/arc.o
10795 * configure.tgt: Likewise.
10796 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10797 (_initialize_arc_tdep): Don't initialize old target descriptions.
10798 (arc_read_description): New function to cache target descriptions.
10799 * arc-tdep.h (arc_read_description): Add proto type.
10800 * arch/arc.c: New file.
10801 * arch/arc.h: Likewise.
10802 * features/Makefile: Replace old target descriptions with new.
10803 * features/arc-arcompact.c: Remove.
10804 * features/arc-arcompact.xml: Likewise.
10805 * features/arc-v2.c: Likewise
10806 * features/arc-v2.xml: Likewise
10807 * features/arc/aux-arcompact.xml: New file.
10808 * features/arc/aux-v2.xml: Likewise.
10809 * features/arc/core-arcompact.xml: Likewise.
10810 * features/arc/core-v2.xml: Likewise.
10811 * features/arc/aux-arcompact.c: Generate.
10812 * features/arc/aux-v2.c: Likewise.
10813 * features/arc/core-arcompact.c: Likewise.
10814 * features/arc/core-v2.c: Likewise.
10815 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10816
10817 2020-03-16 Tom Tromey <tromey@adacore.com>
10818
10819 PR gdb/25663:
10820 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10821 putting value into bcache.
10822
10823 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10824
10825 PR gdb/21500
10826 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10827 to...
10828 (amd64_windows_init_abi_common): ... this. Don't set size of
10829 long type.
10830 (amd64_windows_init_abi): New function.
10831 (amd64_cygwin_init_abi): New function.
10832 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10833 the Cygwin OS ABI.
10834 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10835 comment.
10836
10837 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10838
10839 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10840 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10841 (pe_import_directory_entry): New struct type.
10842 (is_linked_with_cygwin_dll): New function.
10843 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10844 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10845 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10846
10847 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10848
10849 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10850 i386_cygwin_core_osabi_sniffer.
10851
10852 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10853
10854 * i386-cygwin-tdep.c: Rename to...
10855 * i386-windows-tdep.c: ... this.
10856 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10857 i386-windows-tdep.c.
10858 * configure.tgt: Likewise.
10859
10860 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10861
10862 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10863 * osabi.c (gdb_osabi_names): Add "Windows".
10864 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10865 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10866 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10867 i386_cygwin_osabi_sniffer.
10868 (_initialize_i386_cygwin_tdep): Register OS ABI
10869 GDB_OSABI_WINDOWS for i386.
10870 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10871 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10872 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10873 for x86-64.
10874 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10875 when the target matches '*-*-mingw*'.
10876
10877 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * defs.h (enum gdb_osabi): Move to...
10880 * osabi.h (enum gdb_osabi): ... here.
10881 * gdbarch.sh: Include osabi.h in gdbarch.h.
10882 * gdbarch.h: Re-generate.
10883
10884 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10885
10886 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10887 function.
10888 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10889
10890 2020-03-14 Tom Tromey <tom@tromey.com>
10891
10892 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10893 for C++.
10894 (c_type_print_modifier): Likewise. Add "language" parameter.
10895 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10896 (c_type_print_base_1): Update.
10897 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10898 constants.
10899 * type-stack.c (type_stack::insert): Handle tp_atomic and
10900 tp_restrict.
10901 (type_stack::follow_type_instance_flags): Likewise.
10902 (type_stack::follow_types): Likewise. Merge type-following code.
10903 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10904 (space_identifier, cv_with_space_id)
10905 (const_or_volatile_or_space_identifier_noopt)
10906 (const_or_volatile_or_space_identifier): Remove.
10907 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10908 rules.
10909 (ptr_operator, typebase): Update.
10910 (enum token_flag) <FLAG_C>: New constant.
10911 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10912 "_Atomic".
10913 (lex_one_token): Handle FLAG_C.
10914
10915 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10916
10917 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10918 it to the ptrace call.
10919 * m68k-bsd-nat.c (store_registers): Likewise.
10920
10921 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10922
10923 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10924 gdb_byte *.
10925 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10926 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10927 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10928
10929 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10930
10931 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10932 nbsd_nat_target instead of inf_ptrace_target.
10933 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10934 nbsd_nat_target.
10935
10936 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10937
10938 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10939 register_t.
10940
10941 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10942
10943 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10944 it to the ptrace call.
10945 * alpha-bsd-nat.c (store_registers): Likewise.
10946
10947 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10948
10949 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10950 includes.
10951 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10952 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10953 fill_fpregset): Likewise.
10954
10955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10956
10957 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10958 nbsd_nat_target instead of inf_ptrace_target.
10959 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10960 nbsd_nat_target.
10961
10962 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10963
10964 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10965 register_t.
10966
10967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10968
10969 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10970 it to the ptrace call.
10971 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10972 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10973 * arm-nbsd-nat.c (store_register): Likewise.
10974 * arm-nbsd-nat.c (store_regs): Likewise.
10975 * arm-nbsd-nat.c (store_fp_register): Likewise.
10976 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10977
10978 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10979
10980 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10981 nbsd_nat_target instead of inf_ptrace_target.
10982 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10983 nbsd_nat_target.
10984
10985 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10986
10987 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10988 it to the ptrace call.
10989 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10990
10991 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10992
10993 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10994 it to the ptrace call.
10995 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10996
10997 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10998
10999 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11000 gdb_byte *.
11001 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11002
11003 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11004
11005 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11006 instead of inf_ptrace_target.
11007 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11008 nbsd_nat_target.
11009
11010 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11011
11012 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11013 register_t.
11014
11015 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11016
11017 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11018 register_t.
11019
11020 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11021
11022 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11023 register_t.
11024
11025 2020-03-13 Tom Tromey <tom@tromey.com>
11026
11027 * value.h (val_print): Don't declare.
11028 * valprint.h (val_print_array_elements)
11029 (val_print_scalar_formatted, generic_val_print): Don't declare.
11030 * valprint.c (generic_val_print_array): Take a struct value.
11031 (generic_val_print_ptr, generic_val_print_memberptr)
11032 (generic_val_print_bool, generic_val_print_int)
11033 (generic_val_print_char, generic_val_print_complex)
11034 (generic_val_print): Remove.
11035 (generic_value_print): Update.
11036 (do_val_print): Remove unused parameters. Don't call
11037 la_val_print.
11038 (val_print): Remove.
11039 (common_val_print): Update. Don't call value_check_printable.
11040 (val_print_scalar_formatted, val_print_array_elements): Remove.
11041 * rust-lang.c (rust_val_print): Remove.
11042 (rust_language_defn): Update.
11043 * p-valprint.c (pascal_val_print): Remove.
11044 (pascal_value_print_inner): Update.
11045 (pascal_object_print_val_fields, pascal_object_print_val):
11046 Remove.
11047 (pascal_object_print_static_field): Update.
11048 * p-lang.h (pascal_val_print): Don't declare.
11049 * p-lang.c (pascal_language_defn): Update.
11050 * opencl-lang.c (opencl_language_defn): Update.
11051 * objc-lang.c (objc_language_defn): Update.
11052 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11053 * m2-lang.h (m2_val_print): Don't declare.
11054 * m2-lang.c (m2_language_defn): Update.
11055 * language.h (struct language_defn) <la_val_print>: Remove.
11056 * language.c (unk_lang_value_print_inner): Rename. Change
11057 argument types.
11058 (unknown_language_defn, auto_language_defn): Update.
11059 * go-valprint.c (go_val_print): Remove.
11060 * go-lang.h (go_val_print): Don't declare.
11061 * go-lang.c (go_language_defn): Update.
11062 * f-valprint.c (f_val_print): Remove.
11063 * f-lang.h (f_value_print): Don't declare.
11064 * f-lang.c (f_language_defn): Update.
11065 * d-valprint.c (d_val_print): Remove.
11066 * d-lang.h (d_value_print): Don't declare.
11067 * d-lang.c (d_language_defn): Update.
11068 * cp-valprint.c (cp_print_value_fields)
11069 (cp_print_value_fields_rtti, cp_print_value): Remove.
11070 (cp_print_static_field): Update.
11071 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11072 (c_val_print_struct, c_val_print_union, c_val_print_int)
11073 (c_val_print_memberptr, c_val_print): Remove.
11074 * c-lang.h (c_val_print_array, cp_print_value_fields)
11075 (cp_print_value_fields_rtti): Don't declare.
11076 * c-lang.c (c_language_defn, cplus_language_defn)
11077 (asm_language_defn, minimal_language_defn): Update.
11078 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11079 (ada_val_print_enum): Take a struct value.
11080 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11081 (ada_val_print): Remove.
11082 (ada_value_print_1): Update.
11083 (printable_val_type): Remove.
11084 * ada-lang.h (ada_val_print): Don't declare.
11085 * ada-lang.c (ada_language_defn): Update.
11086
11087 2020-03-13 Tom Tromey <tom@tromey.com>
11088
11089 * valprint.c (do_val_print): Update.
11090 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11091 a struct value.
11092 (value_to_value_object_no_release): Declare.
11093 * python/py-value.c (value_to_value_object_no_release): New
11094 function.
11095 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11096 struct value.
11097 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11098 function.
11099 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11100 a struct value.
11101 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11102 Declare.
11103 (gdbscm_apply_val_pretty_printer): Take a struct value.
11104 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11105 value.
11106 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11107 value.
11108 * extension-priv.h (struct extension_language_ops)
11109 <apply_val_pretty_printer>: Take a struct value.
11110 * cp-valprint.c (cp_print_value): Create a struct value.
11111 (cp_print_value): Update.
11112
11113 2020-03-13 Tom Tromey <tom@tromey.com>
11114
11115 * ada-valprint.c (print_field_values): Call common_val_print.
11116
11117 2020-03-13 Tom Tromey <tom@tromey.com>
11118
11119 * ada-valprint.c (val_print_packed_array_elements): Remove
11120 bitoffset and val parameters. Call common_val_print.
11121 (ada_val_print_string): Remove offset, address, and original_value
11122 parameters.
11123 (ada_val_print_array): Update.
11124 (ada_value_print_array): New function.
11125 (ada_value_print_1): Call it.
11126
11127 2020-03-13 Tom Tromey <tom@tromey.com>
11128
11129 * ada-valprint.c (ada_value_print): Use common_val_print.
11130
11131 2020-03-13 Tom Tromey <tom@tromey.com>
11132
11133 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11134
11135 2020-03-13 Tom Tromey <tom@tromey.com>
11136
11137 * ada-valprint.c (ada_value_print_num): New function.
11138 (ada_value_print_1): Use it.
11139
11140 2020-03-13 Tom Tromey <tom@tromey.com>
11141
11142 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11143
11144 2020-03-13 Tom Tromey <tom@tromey.com>
11145
11146 * ada-valprint.c (ada_value_print_ptr): New function.
11147 (ada_value_print_1): Use it.
11148
11149 2020-03-13 Tom Tromey <tom@tromey.com>
11150
11151 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11152 call common_val_print.
11153 (ada_val_print_1): Update.
11154 (ada_value_print_1): New function.
11155 (ada_value_print_inner): Rewrite.
11156
11157 2020-03-13 Tom Tromey <tom@tromey.com>
11158
11159 * cp-valprint.c (cp_print_value_fields): Update.
11160 (cp_print_value): New function.
11161
11162 2020-03-13 Tom Tromey <tom@tromey.com>
11163
11164 * m2-valprint.c (m2_value_print_inner): Use
11165 cp_print_value_fields.
11166 * cp-valprint.c (cp_print_value_fields): New function.
11167 * c-valprint.c (c_value_print_struct): New function.
11168 (c_value_print_inner): Use c_value_print_struct.
11169 * c-lang.h (cp_print_value_fields): Declare.
11170
11171 2020-03-13 Tom Tromey <tom@tromey.com>
11172
11173 * c-valprint.c (c_value_print_array): New function.
11174 (c_value_print_inner): Use it.
11175
11176 2020-03-13 Tom Tromey <tom@tromey.com>
11177
11178 * c-valprint.c (c_value_print_memberptr): New function.
11179 (c_value_print_inner): Use it.
11180
11181 2020-03-13 Tom Tromey <tom@tromey.com>
11182
11183 * c-valprint.c (c_value_print_int): New function.
11184 (c_value_print_inner): Use it.
11185
11186 2020-03-13 Tom Tromey <tom@tromey.com>
11187
11188 * c-valprint.c (c_value_print_ptr): New function.
11189 (c_value_print_inner): Use it.
11190
11191 2020-03-13 Tom Tromey <tom@tromey.com>
11192
11193 * c-valprint.c (c_value_print_inner): Rewrite.
11194
11195 2020-03-13 Tom Tromey <tom@tromey.com>
11196
11197 * valprint.c (generic_value_print_complex): New function.
11198 (generic_value_print): Use it.
11199
11200 2020-03-13 Tom Tromey <tom@tromey.com>
11201
11202 * valprint.c (generic_val_print_float): Don't call
11203 val_print_scalar_formatted.
11204 (generic_val_print, generic_value_print): Update.
11205
11206 2020-03-13 Tom Tromey <tom@tromey.com>
11207
11208 * valprint.c (generic_value_print_char): New function
11209 (generic_value_print): Use it.
11210
11211 2020-03-13 Tom Tromey <tom@tromey.com>
11212
11213 * valprint.c (generic_value_print_int): New function.
11214 (generic_value_print): Use it.
11215
11216 2020-03-13 Tom Tromey <tom@tromey.com>
11217
11218 * valprint.c (generic_value_print_bool): New function.
11219 (generic_value_print): Use it.
11220
11221 2020-03-13 Tom Tromey <tom@tromey.com>
11222
11223 * valprint.c (generic_val_print_func): Simplify.
11224 (generic_val_print, generic_value_print): Update.
11225
11226 2020-03-13 Tom Tromey <tom@tromey.com>
11227
11228 * valprint.c (generic_val_print_flags): Remove.
11229 (generic_val_print, generic_value_print): Update.
11230 (val_print_type_code_flags): Add original_value parameter.
11231
11232 2020-03-13 Tom Tromey <tom@tromey.com>
11233
11234 * valprint.c (generic_val_print): Update.
11235 (generic_value_print): Update.
11236 * valprint.c (generic_val_print_enum): Don't call
11237 val_print_scalar_formatted.
11238
11239 2020-03-13 Tom Tromey <tom@tromey.com>
11240
11241 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11242 * valprint.c (generic_value_print_ptr): New function.
11243
11244 2020-03-13 Tom Tromey <tom@tromey.com>
11245
11246 * valprint.c (generic_value_print): Rewrite.
11247
11248 2020-03-13 Tom Tromey <tom@tromey.com>
11249
11250 * p-valprint.c (pascal_object_print_value_fields)
11251 (pascal_object_print_value): New functions.
11252
11253 2020-03-13 Tom Tromey <tom@tromey.com>
11254
11255 * p-valprint.c (pascal_value_print_inner): Rewrite.
11256
11257 2020-03-13 Tom Tromey <tom@tromey.com>
11258
11259 * f-valprint.c (f_value_print_innner): Rewrite.
11260
11261 2020-03-13 Tom Tromey <tom@tromey.com>
11262
11263 * m2-valprint.c (m2_print_unbounded_array): New overload.
11264 (m2_print_unbounded_array): Update.
11265 (m2_print_array_contents): Take a struct value.
11266 (m2_value_print_inner): Rewrite.
11267
11268 2020-03-13 Tom Tromey <tom@tromey.com>
11269
11270 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11271 (d_value_print_inner): New function.
11272 * d-lang.h (d_value_print_inner): Declare.
11273 * d-lang.c (d_language_defn): Use d_value_print_inner.
11274
11275 2020-03-13 Tom Tromey <tom@tromey.com>
11276
11277 * go-valprint.c (go_value_print_inner): New function.
11278 * go-lang.h (go_value_print_inner): Declare.
11279 * go-lang.c (go_language_defn): Use go_value_print_inner.
11280
11281 2020-03-13 Tom Tromey <tom@tromey.com>
11282
11283 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11284 API.
11285 (rust_val_print): Rewrite.
11286 (rust_value_print_inner): New function, from rust_val_print.
11287 (rust_language_defn): Use rust_value_print_inner.
11288
11289 2020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * ada-valprint.c (ada_value_print_inner): New function.
11292 * ada-lang.h (ada_value_print_inner): Declare.
11293 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11294
11295 2020-03-13 Tom Tromey <tom@tromey.com>
11296
11297 * f-valprint.c (f_value_print_innner): New function.
11298 * f-lang.h (f_value_print_innner): Declare.
11299 * f-lang.c (f_language_defn): Use f_value_print_innner.
11300
11301 2020-03-13 Tom Tromey <tom@tromey.com>
11302
11303 * p-valprint.c (pascal_value_print_inner): New function.
11304 * p-lang.h (pascal_value_print_inner): Declare.
11305 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11306
11307 2020-03-13 Tom Tromey <tom@tromey.com>
11308
11309 * m2-valprint.c (m2_value_print_inner): New function.
11310 * m2-lang.h (m2_value_print_inner): Declare.
11311 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11312
11313 2020-03-13 Tom Tromey <tom@tromey.com>
11314
11315 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11316 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11317 * c-valprint.c (c_value_print_inner): New function.
11318 * c-lang.h (c_value_print_inner): Declare.
11319 * c-lang.c (c_language_defn, cplus_language_defn)
11320 (asm_language_defn, minimal_language_defn): Use
11321 c_value_print_inner.
11322
11323 2020-03-13 Tom Tromey <tom@tromey.com>
11324
11325 * p-valprint.c (pascal_object_print_value_fields): Now static.
11326 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11327
11328 2020-03-13 Tom Tromey <tom@tromey.com>
11329
11330 * c-valprint.c (c_val_print_array): Simplify.
11331
11332 2020-03-13 Tom Tromey <tom@tromey.com>
11333
11334 * valprint.c (value_print_array_elements): New function.
11335 * valprint.h (value_print_array_elements): Declare.
11336
11337 2020-03-13 Tom Tromey <tom@tromey.com>
11338
11339 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11340 * mips-tdep.c (mips_print_register): Use
11341 value_print_scalar_formatted.
11342
11343 2020-03-13 Tom Tromey <tom@tromey.com>
11344
11345 * valprint.h (value_print_scalar_formatted): Declare.
11346 * valprint.c (value_print_scalar_formatted): New function.
11347
11348 2020-03-13 Tom Tromey <tom@tromey.com>
11349
11350 * valprint.h (generic_value_print): Declare.
11351 * valprint.c (generic_value_print): New function.
11352
11353 2020-03-13 Tom Tromey <tom@tromey.com>
11354
11355 * valprint.c (do_val_print): Call la_value_print_inner, if
11356 available.
11357 * rust-lang.c (rust_language_defn): Update.
11358 * p-lang.c (pascal_language_defn): Update.
11359 * opencl-lang.c (opencl_language_defn): Update.
11360 * objc-lang.c (objc_language_defn): Update.
11361 * m2-lang.c (m2_language_defn): Update.
11362 * language.h (struct language_defn) <la_value_print_inner>: New
11363 member.
11364 * language.c (unknown_language_defn, auto_language_defn): Update.
11365 * go-lang.c (go_language_defn): Update.
11366 * f-lang.c (f_language_defn): Update.
11367 * d-lang.c (d_language_defn): Update.
11368 * c-lang.c (c_language_defn, cplus_language_defn)
11369 (asm_language_defn, minimal_language_defn): Update.
11370 * ada-lang.c (ada_language_defn): Update.
11371
11372 2020-03-13 Tom Tromey <tom@tromey.com>
11373
11374 * c-valprint.c (c_value_print): Use common_val_print.
11375
11376 2020-03-13 Tom Tromey <tom@tromey.com>
11377
11378 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11379
11380 2020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * f-valprint.c (f77_print_array_1, f_val_print): Use
11383 common_val_print.
11384
11385 2020-03-13 Tom Tromey <tom@tromey.com>
11386
11387 * riscv-tdep.c (riscv_print_one_register_info): Use
11388 common_val_print.
11389
11390 2020-03-13 Tom Tromey <tom@tromey.com>
11391
11392 * mi/mi-main.c (output_register): Use common_val_print.
11393
11394 2020-03-13 Tom Tromey <tom@tromey.com>
11395
11396 * infcmd.c (default_print_one_register_info): Use
11397 common_val_print.
11398
11399 2020-03-13 Tom Tromey <tom@tromey.com>
11400
11401 * valprint.h (common_val_print_checked): Declare.
11402 * valprint.c (common_val_print_checked): New function.
11403 * stack.c (print_frame_arg): Use common_val_print_checked.
11404
11405 2020-03-13 Tom Tromey <tom@tromey.com>
11406
11407 * valprint.c (do_val_print): New function, from val_print.
11408 (val_print): Use do_val_print.
11409 (common_val_print): Use do_val_print.
11410
11411 2020-03-13 Tom Tromey <tom@tromey.com>
11412
11413 * valprint.c (value_print): Use scoped_value_mark.
11414
11415 2020-03-13 Tom de Vries <tdevries@suse.de>
11416
11417 PR symtab/25646
11418 * psymtab.c (partial_symtab::partial_symtab): Don't set
11419 globals_offset and statics_offset. Push element onto
11420 current_global_psymbols and current_static_psymbols stacks.
11421 (concat): New function.
11422 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11423 element from current_global_psymbols and current_static_psymbols
11424 stacks. Concat popped elements to global_psymbols and
11425 static_symbols.
11426 (add_psymbol_to_list): Use current_global_psymbols and
11427 current_static_psymbols stacks.
11428 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11429 current_static_psymbols fields.
11430
11431 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11432
11433 * corelow.c (sniff_core_bfd): Remove.
11434 (class core_target) <m_core_vec>: Remove.
11435 (core_target::core_target): Update.
11436 (core_file_fns): Remove.
11437 (deprecated_add_core_fns): Remove.
11438 (default_core_sniffer): Remove.
11439 (sniff_core_bfd): Remove.
11440 (default_check_format): Remove.
11441 (gdb_check_format): Remove.
11442 (core_target_open): Update.
11443 (core_target::get_core_register_section): Update.
11444 (get_core_registers_cb): Update.
11445 (core_target::fetch_registers): Update.
11446 * gdbcore.h (struct core_fns): Remove.
11447 (deprecated_add_core_fns): Remove.
11448 (default_core_sniffer): Remove.
11449 (default_check_format): Remove.
11450
11451 2020-03-12 Tom Tromey <tom@tromey.com>
11452
11453 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11454 CORE_ADDR.
11455 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11456
11457 2020-03-12 Tom Tromey <tom@tromey.com>
11458
11459 * remote.c (remote_target::download_tracepoint)
11460 (remote_target::enable_tracepoint)
11461 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11462 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11463 sprintf_vma.
11464
11465 2020-03-12 Tom Tromey <tom@tromey.com>
11466
11467 * symfile-mem.c: Update CORE_ADDR size assert.
11468
11469 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11470
11471 * selftest.m4: Move to gdbsupport/.
11472 * acinclude.m4: Update path to selftest.m4.
11473
11474 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11477 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11478 gdbarch-selfselftests.c and selftest-arch.c.
11479 (SUBDIR_UNITTESTS_OBS): Rename to...
11480 (SELFTESTS_OBS): ... this.
11481 (COMMON_SFILES): Remove disasm-selftests.c and
11482 gdbarch-selftests.c.
11483 * configure.ac: Don't add selftest-arch.{c,o} to
11484 CONFIG_{SRCS,OBS}.
11485 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11486 preprocessor conditions.
11487
11488 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11489
11490 * configure.ac: Don't source bfd/development.sh.
11491 * selftest.m4: Modify comment.
11492 * configure: Re-generate.
11493
11494 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11495
11496 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11497 not "true" or "false".
11498 * configure: Re-generate.
11499
11500 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11501
11502 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11503 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11504 renamed to arm_nbsd_supply_gregset.
11505 (fetch_register): Update to call arm_nbsd_supply_gregset.
11506 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11507 (arm_netbsd_nat_target::fetch_registers): Update.
11508 (fetch_elfcore_registers): Removed.
11509 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11510 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11511 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11512 not require NetBSD system headers.
11513 (arm_nbsd_regset): New struct.
11514 (arm_nbsd_iterate_over_regset_sections): New function.
11515 (arm_netbsd_init_abi_common): Updated to call
11516 set_gdbarch_iterate_over_regset_sections.
11517 * arm-nbsd-tdep.h: New file.
11518
11519 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11520
11521 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11522 recursion.
11523
11524 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11525
11526 * configure: Re-generate.
11527
11528 2020-03-11 Tom Tromey <tromey@adacore.com>
11529
11530 * ada-typeprint.c (print_choices): Fix comment.
11531
11532 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11533
11534 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11535 previous item in the list, when the list has no items.
11536
11537 2020-03-11 Tom de Vries <tdevries@suse.de>
11538
11539 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11540 PROP_LOCLIST handling code.
11541
11542 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11543
11544 * buildsym-legacy.c (record_line): Pass extra parameter to
11545 record_line.
11546 * buildsym.c (buildsym_compunit::record_line): Take an extra
11547 parameter, reduce duplication in the line table, and record the
11548 is_stmt flag in the line table.
11549 * buildsym.h (buildsym_compunit::record_line): Add extra
11550 parameter.
11551 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11552 non-statement lines.
11553 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11554 this to the symtab builder.
11555 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11556 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11557 through to dwarf_record_line_1.
11558 * infrun.c (process_event_stop_test): When stepping, don't stop at
11559 a non-statement instruction, and only refresh the step info when
11560 we land in the middle of a line's range. Also add an extra
11561 comment.
11562 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11563 field.
11564 * record-btrace.c (btrace_find_line_range): Only record lines
11565 marked as is-statement.
11566 * stack.c (frame_show_address): Show the frame address if we are
11567 in a non-statement sal.
11568 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11569 (maintenance_print_one_line_table): Print a header for the is_stmt
11570 column, and include is_stmt information in the output.
11571 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11572 preference to non-statements.
11573 (find_pcs_for_symtab_line): Prefer is-statement entries.
11574 (find_line_common): Likewise.
11575 * symtab.h (struct linetable_entry): Add is_stmt field.
11576 (struct symtab_and_line): Likewise.
11577 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11578 arranging the line table.
11579
11580 2020-03-07 Tom de Vries <tdevries@suse.de>
11581
11582 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11583 DIE.
11584
11585 2020-03-07 Tom Tromey <tom@tromey.com>
11586
11587 * valops.c (value_literal_complex): Remove obsolete comment.
11588 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11589 comment.
11590
11591 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11592
11593 * infrun.h: Forward-declare thread_info.
11594 (set_step_info): Add thread_info parameter, add doc.
11595 * infrun.c (set_step_info): Add thread_info parameter, move doc
11596 to header.
11597 * infrun.c (process_event_stop_test): Pass thread to
11598 set_step_info call.
11599 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11600 set_step_info.
11601 (prepare_one_step): Add thread_info parameter, pass it to
11602 set_step_frame and prepare_one_step (recursive) call.
11603 (step_1): Pass thread to prepare_one_step call.
11604 (step_command_fsm::should_stop): Pass thread to
11605 prepare_one_step.
11606 (until_next_fsm): Pass thread to set_step_frame call.
11607 (finish_command): Pass thread to set_step_info call.
11608
11609 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11610
11611 * windows-tdep.c (windows_solib_create_inferior_hook):
11612 Check if inferior is running.
11613
11614 2020-03-06 Tom de Vries <tdevries@suse.de>
11615
11616 * NEWS: Fix "the the".
11617 * ctfread.c: Same.
11618
11619 2020-03-06 Tom de Vries <tdevries@suse.de>
11620
11621 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11622
11623 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11624
11625 * .dir-locals.el: Add a comment referencing the other copies of
11626 this file.
11627
11628 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11629
11630 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11631 psargs.
11632
11633 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11634
11635 * .gitattributes: New file.
11636
11637 2020-03-04 Tom Tromey <tom@tromey.com>
11638
11639 * symmisc.c (print_symbol_bcache_statistics)
11640 (print_objfile_statistics): Update.
11641 * symfile.c (allocate_symtab): Use intern.
11642 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11643 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11644 macro_cache>: Remove.
11645 <string_cache>: New member.
11646 (struct objfile) <intern>: New methods.
11647 * elfread.c (elf_symtab_read): Use intern.
11648 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11649 (dwarf2_compute_name, dwarf2_physname)
11650 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11651 names.
11652 (guess_partial_die_structure_name): Update.
11653 (partial_die_info::fixup): Intern name.
11654 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11655 name.
11656 (dwarf2_name): Intern name. Update.
11657 * buildsym.c (buildsym_compunit::get_macro_table): Use
11658 string_cache.
11659
11660 2020-03-04 Tom Tromey <tom@tromey.com>
11661
11662 * jit.c (bfd_open_from_target_memory): Make "target" const.
11663 * corefile.c (gnutarget): Now const.
11664 * gdbcore.h (gnutarget): Now const.
11665
11666 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11667
11668 * NEWS: Mention support for WOW64 processes.
11669 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11670 (amd64_windows_segment_register_p): Remove static.
11671 (_initialize_amd64_windows_nat): Update.
11672 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11673 * i386-windows-nat.c (context_offset): Update.
11674 (i386_mappings): Rename and remove static.
11675 (i386_windows_segment_register_p): Remove static.
11676 (_initialize_i386_windows_nat): Update.
11677 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11678 (STATUS_WX86_SINGLE_STEP): New macro.
11679 (EnumProcessModulesEx): New macro.
11680 (Wow64SuspendThread): New macro.
11681 (Wow64GetThreadContext): New macro.
11682 (Wow64SetThreadContext): New macro.
11683 (Wow64GetThreadSelectorEntry): New macro.
11684 (windows_set_context_register_offsets): Add static.
11685 (windows_set_segment_register_p): Likewise.
11686 (windows_add_thread): Adapt for WOW64 processes.
11687 (windows_fetch_one_register): Likewise.
11688 (windows_nat_target::fetch_registers): Likewise.
11689 (windows_store_one_register): Likewise.
11690 (display_selector): Likewise.
11691 (display_selectors): Likewise.
11692 (handle_exception): Likewise.
11693 (windows_continue): Likewise.
11694 (windows_nat_target::resume): Likewise.
11695 (windows_add_all_dlls): Likewise.
11696 (do_initial_windows_stuff): Likewise.
11697 (windows_nat_target::attach): Likewise.
11698 (windows_get_exec_module_filename): Likewise.
11699 (windows_nat_target::create_inferior): Likewise.
11700 (windows_xfer_siginfo): Likewise.
11701 (_initialize_loadable): Initialize Wow64SuspendThread,
11702 Wow64GetThreadContext, Wow64SetThreadContext,
11703 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11704 * windows-nat.h (windows_set_context_register_offsets):
11705 Remove declaration.
11706 (windows_set_segment_register_p): Likewise.
11707 (i386_windows_segment_register_p): Add declaration.
11708 (amd64_windows_segment_register_p): Likewise.
11709
11710 2020-03-04 Luis Machado <luis.machado@linaro.org>
11711
11712 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11713 in "info registers" for AArch64/ARM.
11714
11715 The change caused "info registers" to not print GPR's.
11716
11717 gdb/ChangeLog:
11718
11719 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11720
11721 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11722 when reg->group is empty and reggroup is not.
11723
11724 2020-03-03 Tom Tromey <tromey@adacore.com>
11725
11726 * dwarf2/frame.c (struct dwarf2_frame_cache)
11727 <checked_tailcall_bottom, entry_cfa_sp_offset,
11728 entry_cfa_sp_offset_p>: Remove members.
11729 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11730 (dwarf2_frame_prev_register): Don't call
11731 dwarf2_tailcall_sniffer_first.
11732 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11733 * frame-unwind.c (add_unwinder): New fuction.
11734 (frame_unwind_init): Use it. Add tailcall unwinder.
11735
11736 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11737 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11738
11739 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11740 value should be printed as true.
11741
11742 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11743
11744 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11745 (windows_init_abi): Set and use windows_so_ops.
11746
11747 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11748
11749 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11750 when verifying if dealing with a convenience variable.
11751
11752 2020-03-03 Luis Machado <luis.machado@linaro.org>
11753
11754 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11755
11756 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11757
11758 * infrun.c (gdbarch_supports_displaced_stepping): New.
11759 (use_displaced_stepping): Break up conditions in smaller pieces.
11760 Use gdbarch_supports_displaced_stepping.
11761 (displaced_step_prepare_throw): Use
11762 gdbarch_supports_displaced_stepping.
11763
11764 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11765
11766 * NEWS: Mention new behaviour of the history filename.
11767 * top.c (write_history_p): Add comment.
11768 (show_write_history_p): Add header comment, give a different
11769 message when history writing is on, but the history filename is
11770 empty.
11771 (history_filename): Add comment.
11772 (history_filename_empty): New function.
11773 (show_history_filename): Add header comment, give a different
11774 message when the filename is empty.
11775 (init_history): Compare history_filename against nullptr, and only
11776 read history if the filename is not empty.
11777 (set_history_filename): Add header comment, and only make
11778 non-empty filenames absolute.
11779 (init_main): Make the filename argument to 'set history filename'
11780 optional.
11781
11782 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11783
11784 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11785 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11786 (fetch_fp_register): Update.
11787 (fetch_fp_regs): Update.
11788 (store_fp_register): Update.
11789 (store_fp_regs): Update.
11790 (arm_netbsd_nat_target::read_description): New function.
11791 (fetch_elfcore_registers): Update.
11792
11793 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11796 general_thread if the stop reply is missing a thread-id.
11797 (remote_target::process_stop_reply): Use the first non-exited
11798 thread if the target didn't pass a thread-id.
11799 * infrun.c (do_target_wait): Move call to
11800 switch_to_inferior_no_thread to ....
11801 (do_target_wait_1): ... here.
11802
11803 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11804
11805 * debuginfod-support.c: Include defs.h first.
11806
11807 2020-02-28 Tom de Vries <tdevries@suse.de>
11808
11809 * symfile.c (set_initial_language): Use default language for lookup.
11810
11811 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11812
11813 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11814 reader variable, pass `this` to read_cutu_die_from_dwo.
11815
11816 2020-02-27 Aaron Merey <amerey@redhat.com>
11817
11818 * source.c (open_source_file): Check for nullptr when computing
11819 srcpath.
11820
11821 2020-02-27 Tom Tromey <tromey@adacore.com>
11822
11823 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11824 member.
11825 (dwarf2_add_field): Don't update nfields.
11826 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11827
11828 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11829
11830 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11831 abs.
11832
11833 2020-02-26 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11836 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11837 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11838 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11839 per_cu_data.
11840
11841 2020-02-26 Tom Tromey <tom@tromey.com>
11842
11843 * dwarf2/index-write.c (psym_index_map): Change type.
11844 (add_address_entry_worker, write_one_signatured_type)
11845 (recursively_count_psymbols, recursively_write_psymbols)
11846 (class debug_names, psyms_seen_size, write_gdbindex)
11847 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11848
11849 2020-02-26 Aaron Merey <amerey@redhat.com>
11850
11851 * Makefile.in: Handle optional debuginfod support.
11852 * NEWS: Update.
11853 * README: Add --with-debuginfod summary.
11854 * config.in: Regenerate.
11855 * configure: Regenerate.
11856 * configure.ac: Handle optional debuginfod support.
11857 * debuginfod-support.c: debuginfod helper functions.
11858 * debuginfod-support.h: Ditto.
11859 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11860 summary.
11861 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11862 when a dwz file cannot be found.
11863 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11864 debuginfo file cannot be found.
11865 * source.c (open_source_file): Query debuginfod servers when a
11866 source file cannot be found.
11867 * top.c (print_gdb_configuration): Include
11868 --{with,without}-debuginfod in the output.
11869
11870 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11871
11872 * thread.c (thr_try_catch_cmd): Print thread name.
11873
11874 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11875
11876 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11877 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11878 dwarf2_fetch_die_type_sect_off): Move to...
11879 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11880 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11881 dwarf2_fetch_die_type_sect_off): ... here.
11882 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11883 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11884 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11885
11886 2020-02-26 Tom de Vries <tdevries@suse.de>
11887
11888 PR gdb/25603
11889 * symfile.c (set_initial_language): Exit-early if
11890 language_mode == language_mode_manual.
11891
11892 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11893
11894 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11895 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11896 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11897
11898 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11899
11900 * gdbtypes.c (create_array_type_with_stride): Handle negative
11901 array strides.
11902 * valarith.c (value_subscripted_rvalue): Likewise.
11903
11904 2020-02-25 Luis Machado <luis.machado@linaro.org>
11905
11906 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11907
11908 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11909
11910 * loc.h (dwarf2_get_die_type): Move to...
11911 * read.h (dwarf2_get_die_type): ... here.
11912 * read.c (dwarf2_get_die_type): Move doc to header.
11913
11914 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11915
11916 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11917 'gnulib/Makefile.in' to the list.
11918
11919 2020-02-24 Tom Tromey <tom@tromey.com>
11920
11921 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11922 Remove.
11923 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11924 XOBNEWVEC.
11925
11926 2020-02-24 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11929 New method.
11930 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11931 (dw2_do_instantiate_symtab, dw2_get_file_names)
11932 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11933
11934 2020-02-24 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11937 make_scoped_restore.
11938 (dwarf2_psymtab::read_symtab): Don't clear
11939 reading_partial_symbols.
11940
11941 2020-02-24 Tom de Vries <tdevries@suse.de>
11942
11943 PR gdb/25592
11944 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11945
11946 2020-02-24 Tom de Vries <tdevries@suse.de>
11947
11948 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11949 commands layout next/prev/regs.
11950
11951 2020-02-22 Tom Tromey <tom@tromey.com>
11952
11953 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11954 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11955
11956 2020-02-22 Tom Tromey <tom@tromey.com>
11957
11958 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11959
11960 2020-02-22 Tom Tromey <tom@tromey.com>
11961
11962 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11963 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11964 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11965 * tui/tui.c (_initialize_tui): Add usage text.
11966
11967 2020-02-22 Tom Tromey <tom@tromey.com>
11968
11969 * tui/tui-win.c (tui_set_focus_command)
11970 (tui_set_win_height_command): Use error_no_arg.
11971 (_initialize_tui_win): Update help text.
11972 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11973
11974 2020-02-22 Tom Tromey <tom@tromey.com>
11975
11976 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11977 * tui/tui-disasm.h (struct tui_disasm_window)
11978 <display_start_addr>: Declare.
11979 * tui/tui-source.h (struct tui_source_window)
11980 <display_start_addr>: Declare.
11981 * tui/tui-winsource.h (struct tui_source_window_base)
11982 <show_source_line, display_start_addr>: New methods.
11983 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11984 Rename and move to protected section.
11985 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11986 (tui_source_window_base::do_erase_source_content): Update.
11987 (tui_source_window_base::show_source_line): Now a method.
11988 (tui_source_window_base::show_source_content)
11989 (tui_source_window_base::tui_source_window_base)
11990 (tui_source_window_base::rerender)
11991 (tui_source_window_base::refill)
11992 (tui_source_window_base::do_scroll_horizontal)
11993 (tui_source_window_base::set_is_exec_point_at)
11994 (tui_source_window_base::update_breakpoint_info)
11995 (tui_source_window_base::update_exec_info): Update.
11996 * tui/tui-source.c (tui_source_window::set_contents)
11997 (tui_source_window::showing_source_p)
11998 (tui_source_window::do_scroll_vertical)
11999 (tui_source_window::location_matches_p)
12000 (tui_source_window::line_is_displayed): Update.
12001 (tui_source_window::display_start_addr): New method.
12002 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12003 (tui_disasm_window::do_scroll_vertical)
12004 (tui_disasm_window::location_matches_p): Update.
12005 (tui_disasm_window::display_start_addr): New method.
12006
12007 2020-02-22 Tom Tromey <tom@tromey.com>
12008
12009 * NEWS: Add entry for gdb.register_window_type.
12010 * tui/tui-layout.h (window_factory): New typedef.
12011 (tui_register_window): Declare.
12012 * tui/tui-layout.c (saved_tui_windows): New global.
12013 (tui_apply_current_layout): Use it.
12014 (tui_register_window): New function.
12015 * python/python.c (do_start_initialization): Call
12016 gdbpy_initialize_tui.
12017 (python_GdbMethods): Add "register_window_type" function.
12018 * python/python-internal.h (gdbpy_register_tui_window)
12019 (gdbpy_initialize_tui): Declare.
12020 * python/py-tui.c: New file.
12021 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12022
12023 2020-02-22 Tom Tromey <tom@tromey.com>
12024
12025 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12026
12027 2020-02-22 Tom Tromey <tom@tromey.com>
12028
12029 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12030 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12031 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12032 (tui_set_win_focus_to): Move from tui-win.c.
12033
12034 2020-02-22 Tom Tromey <tom@tromey.com>
12035
12036 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12037 functions.
12038 (known_window_types): New global.
12039 (tui_get_window_by_name): Reimplement.
12040 (initialize_known_windows): New function.
12041 (validate_window_name): Rewrite.
12042 (_initialize_tui_layout): Call initialize_known_windows.
12043
12044 2020-02-22 Tom Tromey <tom@tromey.com>
12045
12046 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12047 Remove constants.
12048 * tui/tui-winsource.h (struct tui_source_window_base)
12049 <tui_source_window_base>: Remove parameter.
12050 * tui/tui-winsource.c
12051 (tui_source_window_base::tui_source_window_base): Remove
12052 parameter.
12053 (tui_source_window_base::refill): Update.
12054 * tui/tui-stack.h (struct tui_locator_window)
12055 <tui_locator_window>: Update.
12056 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12057 Default the constructor.
12058 * tui/tui-regs.h (struct tui_data_item_window)
12059 <tui_data_item_window>: Default the constructor.
12060 (struct tui_data_window) <tui_data_window>: Likewise.
12061 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12062 Default the constructor.
12063 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12064 Default the constructor.
12065 <type>: Remove.
12066 (struct tui_win_info) <tui_win_info>: Default the constructor.
12067 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12068 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12069 Default the constructor.
12070
12071 2020-02-22 Tom Tromey <tom@tromey.com>
12072
12073 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12074 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12075 * tui/tui-win.c (tui_resize_all): Don't call
12076 tui_delete_invisible_windows.
12077 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12078 done.
12079 (tui_set_layout): Update.
12080 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12081 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12082 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12083
12084 2020-02-22 Tom Tromey <tom@tromey.com>
12085
12086 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12087 correctly.
12088
12089 2020-02-22 Tom Tromey <tom@tromey.com>
12090
12091 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12092
12093 2020-02-22 Tom Tromey <tom@tromey.com>
12094
12095 * tui/tui-winsource.h (struct tui_source_window_iterator)
12096 <inner_iterator>: New etytypedef.
12097 <tui_source_window_iterator>: Take "end" parameter.
12098 <tui_source_window_iterator>: Take iterator.
12099 <operator*, advance>: Update.
12100 <m_iter>: Change type.
12101 <m_end>: New field.
12102 (struct tui_source_windows) <begin, end>: Update.
12103 * tui/tui-layout.c (tui_windows): New global.
12104 (tui_apply_current_layout): Clear tui_windows.
12105 (tui_layout_window::apply): Update tui_windows.
12106 * tui/tui-data.h (tui_windows): Declare.
12107 (all_tui_windows): Now inline function.
12108 (class tui_window_iterator, struct all_tui_windows): Remove.
12109
12110 2020-02-22 Tom Tromey <tom@tromey.com>
12111
12112 PR tui/17850:
12113 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12114 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12115 "height" argument.
12116 (class tui_layout_window) <get_sizes>: Likewise.
12117 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12118 argument.
12119 <get_sizes>: Add "height" argument.
12120 <m_vertical>: New field.
12121 * tui/tui-layout.c (tui_layout_split::clone): Update.
12122 (tui_layout_split::get_sizes): Add "height" argument.
12123 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12124 (tui_new_layout_command): Parse "-horizontal".
12125 (_initialize_tui_layout): Update help string.
12126 (tui_layout_split::specification): Add "-horizontal" when needed.
12127 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12128 argument.
12129 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12130 New methods.
12131
12132 2020-02-22 Tom Tromey <tom@tromey.com>
12133
12134 * tui/tui-layout.h (enum tui_adjust_result): New.
12135 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12136 (class tui_layout_window) <adjust_size>: Return
12137 tui_adjust_result. Rewrite.
12138 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12139 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12140
12141 2020-02-22 Tom Tromey <tom@tromey.com>
12142
12143 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12144 parameter and return types.
12145 (class tui_layout_base) <specification>: Add "depth".
12146 (class tui_layout_window) <specification>: Add "depth".
12147 (class tui_layout_split) <specification>: Add "depth".
12148 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12149 and return types.
12150 (tui_new_layout_command): Parse sub-layouts.
12151 (_initialize_tui_layout): Update help string.
12152 (tui_layout_window::specification): Add "depth".
12153 (add_layout_command): Update.
12154
12155 2020-02-22 Tom Tromey <tom@tromey.com>
12156
12157 * NEWS: Add "tui new-layout" item.
12158 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12159 Add new-layout command to help text.
12160 (validate_window_name): New function.
12161 (tui_new_layout_command): New function.
12162 (_initialize_tui_layout): Register "new-layout".
12163 (tui_layout_window::specification): New method.
12164 (tui_layout_window::specification): New method.
12165 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12166 method.
12167 (class tui_layout_window) <specification>: New method.
12168 (class tui_layout_split) <specification>: New method.
12169
12170 2020-02-22 Tom Tromey <tom@tromey.com>
12171
12172 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12173 * tui/tui-win.c (window_name_completer): Update comment.
12174 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12175 Declare method.
12176 (class tui_layout_window) <replace_window>: Likewise.
12177 (class tui_layout_split) <replace_window>: Likewise.
12178 (tui_set_layout): Don't declare.
12179 (tui_set_initial_layout): Declare function.
12180 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12181 (asm_regs_layout): New globals.
12182 (tui_current_layout, show_layout): Remove.
12183 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12184 (find_layout, tui_apply_layout): New function.
12185 (layout_completer): Remove.
12186 (tui_next_layout): Reimplement.
12187 (tui_next_layout_command): New function.
12188 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12189 (tui_regs_layout): Reimplement.
12190 (tui_regs_layout_command): New function.
12191 (extract_display_start_addr): Rewrite.
12192 (next_layout, prev_layout): Remove.
12193 (tui_layout_window::replace_window): New method.
12194 (tui_layout_split::replace_window): New method.
12195 (destroy_layout): New function.
12196 (layout_list): New global.
12197 (add_layout_command): New function.
12198 (initialize_layouts): Update.
12199 (tui_layout_command): New function.
12200 (_initialize_tui_layout): Install "layout" commands.
12201 * tui/tui-data.h (enum tui_layout_type): Remove.
12202 (tui_current_layout): Don't declare.
12203
12204 2020-02-22 Tom Tromey <tom@tromey.com>
12205
12206 * tui/tui-regs.c (tui_reg_layout): Remove.
12207 (tui_reg_command): Use tui_regs_layout.
12208 * tui/tui-layout.h (tui_reg_command): Declare.
12209 * tui/tui-layout.c (tui_reg_command): New function.
12210
12211 2020-02-22 Tom Tromey <tom@tromey.com>
12212
12213 * tui/tui.c (tui_rl_delete_other_windows): Call
12214 tui_remove_some_windows.
12215 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12216 Declare method.
12217 (class tui_layout_window) <remove_windows>: New method.
12218 (class tui_layout_split) <remove_windows>: Declare.
12219 (tui_remove_some_windows): Declare.
12220 * tui/tui-layout.c (tui_remove_some_windows): New function.
12221 (tui_layout_split::remove_windows): New method.
12222
12223 2020-02-22 Tom Tromey <tom@tromey.com>
12224
12225 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12226 * tui/tui-layout.h (tui_next_layout): Declare.
12227 * tui/tui-layout.c (tui_next_layout): New function.
12228
12229 2020-02-22 Tom Tromey <tom@tromey.com>
12230
12231 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12232 correct coordinates.
12233
12234 2020-02-22 Tom Tromey <tom@tromey.com>
12235
12236 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12237 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12238 DATA_WIN case.
12239
12240 2020-02-22 Tom Tromey <tom@tromey.com>
12241
12242 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12243 TUI_DISASM_WIN, not tui_win_list.
12244
12245 2020-02-22 Tom Tromey <tom@tromey.com>
12246
12247 * valprint.c (generic_val_print_enum_1)
12248 (val_print_type_code_flags): Style member names.
12249 * rust-lang.c (val_print_struct, rust_print_enum)
12250 (rust_print_struct_def, rust_internal_print_type): Style member
12251 names.
12252 * p-valprint.c (pascal_object_print_value_fields): Style member
12253 names. Only call fprintf_symbol_filtered for static members.
12254 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12255 * f-valprint.c (f_val_print): Style member names.
12256 * f-typeprint.c (f_type_print_base): Style member names.
12257 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12258 call fprintf_symbol_filtered for static members.
12259 (cp_print_class_member): Style member names.
12260 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12261 member names.
12262 * ada-valprint.c (ada_print_scalar): Style enum names.
12263 (ada_val_print_enum): Likewise.
12264 * ada-typeprint.c (print_enum_type): Style enum names.
12265
12266 2020-02-21 Tom Tromey <tom@tromey.com>
12267
12268 * psympriv.h (struct partial_symtab): Update comment.
12269
12270 2020-02-21 Tom Tromey <tromey@adacore.com>
12271
12272 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12273 type is CORE_ADDR.
12274
12275 2020-02-21 Tom de Vries <tdevries@suse.de>
12276
12277 PR gdb/25534
12278 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12279 if dependencies[i]->user != NULL.
12280
12281 2020-02-21 Ali Tamur <tamur@google.com>
12282
12283 * dwarf2/read.c (dwarf2_name): Add null check.
12284
12285 2020-02-20 Tom Tromey <tom@tromey.com>
12286
12287 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12288 ">=", in binary search.
12289 (dwarf2_find_containing_comp_unit): New overload.
12290 (run_test): New self-test.
12291 (_initialize_dwarf2_read): Register new test.
12292
12293 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12294
12295 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12296 * riscv-tdep.h: Likewise.
12297 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12298 rv32-only CSR.
12299 * features/riscv/64bit-csr.xml: Regenerated.
12300
12301 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12302 Tom Tromey <tom@tromey.com>
12303
12304 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12305 of 'fputc_unfiltered'.
12306 (putchar_unfiltered): Call 'fputc_unfiltered'.
12307 (fputc_unfiltered): Call 'fputs_unfiltered'.
12308
12309 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12310
12311 * config.in: Regenerate.
12312 * configure: Regenerate.
12313 * configure.ac: Add --with-python-libdir option.
12314 * main.c: Use WITH_PYTHON_LIBDIR.
12315
12316 2020-02-19 Tom Tromey <tom@tromey.com>
12317
12318 * symtab.c (general_symbol_info::compute_and_set_names): Use
12319 obstack_strndup. Simplify call to symbol_set_demangled_name.
12320
12321 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12322
12323 * dwarf2/read.c (allocate_signatured_type_table,
12324 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12325 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12326 Remove objfile parameter, update all callers.
12327
12328 2020-02-19 Doug Evans <dje@google.com>
12329
12330 PR rust/25535
12331 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12332 rust_enum_variant calculation.
12333
12334 2020-02-19 Tom Tromey <tromey@adacore.com>
12335
12336 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12337
12338 2020-02-19 Tom Tromey <tromey@adacore.com>
12339
12340 * ada-lang.c (cache_symbol): Use obstack_strdup.
12341
12342 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * configure: Regenerate.
12345
12346 2020-02-19 Tom Tromey <tromey@adacore.com>
12347
12348 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12349 NULL check.
12350
12351 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12352
12353 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12354
12355 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12358 if GDBSERVER is not defined.
12359 (riscv_tdesc_cache): Likewise, also store const target_desc.
12360 (STATIC_IN_GDB): Define.
12361 (riscv_create_target_description): Update declaration with
12362 STATIC_IN_GDB.
12363 (riscv_lookup_target_description): New function, only define if
12364 GDBSERVER is not defined.
12365 * arch/riscv.h (riscv_create_target_description): Declare only
12366 when GDBSERVER is defined.
12367 (riscv_lookup_target_description): New declaration when GDBSERVER
12368 is not defined.
12369 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12370 (riscv_linux_read_features): ...this, and return
12371 riscv_gdbarch_features instead of target_desc.
12372 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12373 (riscv_linux_read_description): Rename to...
12374 (riscv_linux_read_features): ...this.
12375 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12376 Update to use riscv_gdbarch_features and
12377 riscv_lookup_target_description.
12378 * riscv-tdep.c (riscv_find_default_target_description): Use
12379 riscv_lookup_target_description instead of
12380 riscv_create_target_description.
12381
12382 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12383
12384 * valprint.c (generic_val_print_enum_1): When printing a flag
12385 enum with value 0 and there is no enumerator with value 0, print
12386 just "0" instead of "(unknown: 0x0)".
12387
12388 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * valprint.c (generic_val_print_enum_1): Print unknown part of
12391 flag enum in hex.
12392
12393 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12394
12395 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12396 flag enums to contain duplicate enumerators.
12397 * valprint.c (generic_val_print_enum_1): Update comment.
12398
12399 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12400
12401 * dwarf2/read.c: Include "count-one-bits.h".
12402 (update_enumeration_type_from_children): If an enumerator has
12403 multiple bits set, don't treat the enumeration as a "flag enum".
12404 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12405 of flag enums have 0 or 1 bit set.
12406
12407 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12408
12409 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12410 conversion.
12411 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12412 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12413 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12414 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12415 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12416
12417 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12418
12419 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12420
12421 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12422
12423 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12424 displaced_step_closure_up.
12425 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12426 (struct displaced_step_closure_up):
12427 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12428 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12429 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12430 Likewise.
12431 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12432 * gdbarch.c, gdbarch.h: Re-generate.
12433 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12434 displaced_step_closure_up.
12435 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12436 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12437 * infrun.h (displaced_step_closure_up): New type alias.
12438 (struct displaced_step_inferior_state) <step_closure>: Change
12439 type to displaced_step_closure_up.
12440 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12441 displaced_step_closure_up.
12442 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12443
12444 2020-02-14 Tom Tromey <tom@tromey.com>
12445
12446 * minidebug.c (gnu_debug_key): New global.
12447 (find_separate_debug_file_in_section): Use it.
12448
12449 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12450
12451 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12452 std::unique_ptr.
12453 * gdbarch.c: Re-generate.
12454 * gdbarch.h: Re-generate.
12455 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12456 change.
12457 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12458 type to std::unique_ptr.
12459 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12460 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12461 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12462 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12463 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12464 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12465 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12466 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12467 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12468
12469 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12472 std::unique_ptr.
12473 (displaced_step_clear): Rename to...
12474 (displaced_step_reset): ... this. Just call displaced->reset ().
12475 (displaced_step_clear_cleanup): Rename to...
12476 (displaced_step_reset_cleanup): ... this.
12477 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12478 (displaced_step_fixup): Likewise.
12479 (resume_1): Likewise.
12480 (handle_inferior_event): Restore child's memory before calling
12481 displaced_step_fixup on the parent.
12482 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12483 to std::unique_ptr.
12484 <step_closure>: Change type to std::unique_ptr.
12485
12486 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12487
12488 * arm-tdep.c: Include count-one-bits.h.
12489 (cleanup_block_store_pc): Use count_one_bits.
12490 (cleanup_block_load_pc): Use count_one_bits.
12491 (arm_copy_block_xfer): Use count_one_bits.
12492 (thumb2_copy_block_xfer): Use count_one_bits.
12493 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12494 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12495 (thumb_get_next_pcs_raw): Use count_one_bits.
12496 (arm_get_next_pcs_raw): Use count_one_bits_l.
12497 * arch/arm.c (bitcount): Remove.
12498 * arch/arm.h (bitcount): Remove.
12499
12500 2020-02-14 Tom Tromey <tromey@adacore.com>
12501
12502 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12503 Update.
12504 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12505 * dwarf2/loc.c (call_site_find_chain_1): Return
12506 unique_xmalloc_ptr.
12507 (call_site_find_chain): Likewise.
12508
12509 2020-02-14 Richard Biener <rguenther@suse.de>
12510
12511 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12512 on expression with division operators.
12513
12514 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12515
12516 * MAINTAINERS (Write After Approval): Adding myself.
12517
12518 2020-02-12 Tom Tromey <tom@tromey.com>
12519
12520 * event-loop.c (event_data, gdb_event, event_handler_func):
12521 Remove.
12522
12523 2020-02-12 Tom Tromey <tom@tromey.com>
12524
12525 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12526 (dwarf2_frame_objfile_data): Add comment.
12527 (find_comp_unit, set_comp_unit): New functions.
12528 (dwarf2_frame_find_fde): Use find_comp_unit.
12529 (dwarf2_build_frame_info): Use set_comp_unit.
12530
12531 2020-02-12 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12534 (comp_unit): Don't initialize objfile.
12535 (execute_cfa_program): Add text_offset parameter.
12536 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12537 (dwarf2_frame_cache): Update.
12538 (dwarf2_build_frame_info): Don't set "objfile" member.
12539
12540 2020-02-12 Tom Tromey <tom@tromey.com>
12541
12542 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12543 (decode_frame_entry): Likewise.
12544 (dwarf2_build_frame_info): Update.
12545
12546 2020-02-12 Tom Tromey <tom@tromey.com>
12547
12548 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12549 (decode_frame_entry_1): Use the comp_unit obstack.
12550
12551 2020-02-12 Tom Tromey <tom@tromey.com>
12552
12553 * dwarf2/frame.c (struct comp_unit): Add initializers and
12554 constructor.
12555 (dwarf2_frame_objfile_data): Store a comp_unit.
12556 (dwarf2_frame_find_fde): Update.
12557 (dwarf2_build_frame_info): Use "new".
12558
12559 2020-02-12 Tom Tromey <tom@tromey.com>
12560
12561 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12562 (dwarf2_fde_table): Typedef for std::vector.
12563 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12564 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12565 (decode_frame_entry): Update.
12566 (dwarf2_build_frame_info): Use "new".
12567
12568 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12569
12570 * arm-tdep.c (arm_gdbarch_init): Update.
12571 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12572 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12573 have_neon, is_m>: Change to bool.
12574
12575 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12576
12577 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12578
12579 2020-02-12 Tom Tromey <tom@tromey.com>
12580
12581 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12582
12583 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12584
12585 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12586 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12587
12588 2020-02-11 Tom Tromey <tom@tromey.com>
12589
12590 * psymtab.h: Update comment.
12591
12592 2020-02-11 Tom Tromey <tom@tromey.com>
12593
12594 * gdb_obstack.h (struct auto_obstack): Use
12595 DISABLE_COPY_AND_ASSIGN.
12596
12597 2020-02-11 Tom Tromey <tom@tromey.com>
12598
12599 * dwarf2/frame.h (struct objfile): Don't forward declare.
12600
12601 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12602
12603 * cris-tdep.c (cris_supply_gregset): Change signature to match
12604 what struct regset expects.
12605 (cris_regset): New struct.
12606 (fetch_core_registers): Remove.
12607 (cris_iterate_over_regset_sections): New function.
12608 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12609 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12610
12611 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12612
12613 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12614 registers.
12615
12616 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12617
12618 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12619
12620 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12621
12622 * configure: Re-generate.
12623
12624 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12625
12626 * configure: Re-generate.
12627
12628 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12629
12630 * acinclude: Update warning.m4 path.
12631 * warning.m4: Move to gdbsupport.
12632
12633 2020-02-11 Tom Tromey <tromey@adacore.com>
12634
12635 * remote.c (remote_console_output): Update.
12636 * printcmd.c (printf_command): Update.
12637 * event-loop.c (gdb_wait_for_event): Update.
12638 * linux-nat.c (sigchld_handler): Update.
12639 * remote-sim.c (gdb_os_write_stdout): Update.
12640 (gdb_os_flush_stdout): Update.
12641 (gdb_os_flush_stderr): Update.
12642 (gdb_os_write_stderr): Update.
12643 * exceptions.c (print_exception): Update.
12644 * remote-fileio.c (remote_fileio_func_read): Update.
12645 (remote_fileio_func_write): Update.
12646 * tui/tui.c (tui_enable): Update.
12647 * tui/tui-interp.c (tui_interp::init): Update.
12648 * utils.c (init_page_info): Update.
12649 (putchar_unfiltered, fputc_unfiltered): Update.
12650 (gdb_flush): Update.
12651 (emit_style_escape): Update.
12652 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12653 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12654 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12655 (stderr_file::write): Update.
12656 (stderr_file::puts): Update.
12657 * ui-file.h (ui_file_isatty, ui_file_write)
12658 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12659 (ui_file_puts): Don't declare.
12660
12661 2020-02-10 Tom de Vries <tdevries@suse.de>
12662
12663 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12664 sentinel to char *.
12665
12666 2020-02-09 Tom de Vries <tdevries@suse.de>
12667
12668 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12669 filename if it matches "<artificial>".
12670
12671 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12672
12673 * windows-tdep.c (struct enum_value_name): New struct.
12674 (create_enum): New function.
12675 (windows_get_siginfo_type): Create and use enum types.
12676
12677 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12678
12679 * NEWS: Mention $_siginfo support for Windows.
12680 * windows-nat.c (handle_exception): Set siginfo_er.
12681 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12682 (windows_xfer_siginfo): New function.
12683 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12684 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12685 (init_windows_gdbarch_data): New function.
12686 (get_windows_gdbarch_data): New function.
12687 (windows_get_siginfo_type): New function.
12688 (windows_init_abi): Register windows_get_siginfo_type.
12689 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12690
12691 2020-02-08 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12694 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12695 <keep>: Declare method.
12696 <m_keep>: Remove member.
12697 <~cutu_reader>: Remove.
12698 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12699 (cutu_reader::cutu_reader): Update.
12700 (cutu_reader::keep): Rename from ~cutu_reader.
12701 (process_psymtab_comp_unit, build_type_psymtabs_1)
12702 (process_skeletonless_type_unit, load_partial_comp_unit)
12703 (load_full_comp_unit, dwarf2_read_addr_index)
12704 (read_signatured_type): Update.
12705
12706 2020-02-08 Tom Tromey <tom@tromey.com>
12707
12708 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12709 "want_partial_unit" parameter.
12710 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12711 Inline check for DW_TAG_partial_unit.
12712 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12713
12714 2020-02-08 Tom Tromey <tom@tromey.com>
12715
12716 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12717 read.c.
12718 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12719 read.c.
12720
12721 2020-02-08 Tom Tromey <tom@tromey.com>
12722
12723 * dwarf2/read.c (read_address): Move to comp-unit.c.
12724 (dwarf2_rnglists_process, dwarf2_ranges_process)
12725 (read_attribute_value, dwarf_decode_lines_1)
12726 (var_decode_location, decode_locdesc): Update.
12727 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12728 read.c. Remove "cu" parameter.
12729 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12730 method.
12731
12732 2020-02-08 Tom Tromey <tom@tromey.com>
12733
12734 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12735 (read_indirect_line_string): Update.
12736 * dwarf2/comp-unit.c (read_offset): Remove.
12737 (read_comp_unit_head): Update.
12738 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12739 method.
12740 (read_offset): Don't declare.
12741
12742 2020-02-08 Tom Tromey <tom@tromey.com>
12743
12744 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12745 * dwarf2/read.c (struct comp_unit_head): Move to
12746 dwarf2/comp-unit.h.
12747 (enum class rcuh_kind): Move to comp-unit.h.
12748 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12749 (read_comp_unit_head, error_check_comp_unit_head)
12750 (read_and_check_comp_unit_head): Move to comp-unit.c.
12751 (read_offset, dwarf_unit_type_name): Likewise.
12752 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12753 (cutu_reader::cutu_reader, read_call_site_scope)
12754 (find_partial_die, follow_die_offset): Update.
12755 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12756
12757 2020-02-08 Tom Tromey <tom@tromey.com>
12758
12759 * dwarf2/read.c (read_offset_1): Move to leb.c.
12760 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12761 (dwarf_decode_macro_bytes): Update.
12762 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12763 * dwarf2/leb.h (read_offset): Declare.
12764
12765 2020-02-08 Tom Tromey <tom@tromey.com>
12766
12767 * dwarf2/read.c (dwarf2_section_size): Remove.
12768 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12769 Update.
12770 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12771
12772 2020-02-08 Tom Tromey <tom@tromey.com>
12773
12774 * dwarf2/read.c (read_initial_length): Move to leb.c.
12775 * dwarf2/leb.h (read_initial_length): Declare.
12776 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12777 handle_nonstd parameter.
12778 * dwarf2/frame.c (read_initial_length): Remove.
12779 (decode_frame_entry_1): Update.
12780
12781 2020-02-08 Tom Tromey <tom@tromey.com>
12782
12783 * dwarf2/loc.c (dwarf2_find_location_expression)
12784 (dwarf_evaluate_loc_desc::get_tls_address)
12785 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12786 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12787 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12788 (dwarf2_compile_property_to_c)
12789 (dwarf2_loc_desc_get_symbol_read_needs)
12790 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12791 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12792 (loclist_describe_location, loclist_tracepoint_var_ref)
12793 (loclist_generate_c_location): Update.
12794 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12795 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12796 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12797 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12798 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12799 (dwarf2_per_cu_data::addr_size)
12800 (dwarf2_per_cu_data::ref_addr_size)
12801 (dwarf2_per_cu_data::text_offset)
12802 (dwarf2_per_cu_data::addr_type): Now methods.
12803 (per_cu_header_read_in): Make per_cu "const".
12804 (dwarf2_version): Remove.
12805 (dwarf2_per_cu_data::int_type): Now a method.
12806 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12807 (set_die_type, read_array_type, read_subrange_index_type)
12808 (read_tag_string_type, read_subrange_type): Update.
12809 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12810 offset_size, ref_addr_size, text_offset, addr_type, version,
12811 objfile, int_type, addr_sized_int_type>: Declare methods.
12812
12813 2020-02-08 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12816 Move earlier.
12817
12818 2020-02-08 Tom Tromey <tom@tromey.com>
12819
12820 * dwarf2/read.h (dwarf_line_debug): Declare.
12821 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12822 * dwarf2/read.c: Move line_header code to new files.
12823 (dwarf_line_debug): No longer static.
12824 * dwarf2/line-header.c: New file.
12825 * dwarf2/line-header.h: New file.
12826
12827 2020-02-08 Tom Tromey <tom@tromey.com>
12828
12829 * dwarf2/read.c (struct line_header) <file_full_name,
12830 file_file_name>: Return unique_xmalloc_ptr.
12831 (line_header::file_file_name): Update.
12832 (line_header::file_full_name): Update.
12833 (dw2_get_file_names_reader): Update.
12834 (macro_start_file): Update.
12835
12836 2020-02-08 Tom Tromey <tom@tromey.com>
12837
12838 * dwarf2/read.c (struct line_header) <file_full_name,
12839 file_file_name>: Declare methods.
12840 (dw2_get_file_names_reader): Update.
12841 (file_file_name): Now a method.
12842 (file_full_name): Likewise.
12843 (macro_start_file): Update.
12844
12845 2020-02-08 Tom Tromey <tom@tromey.com>
12846
12847 * dwarf2/read.c (dwarf_always_disassemble)
12848 (show_dwarf_always_disassemble): Move to loc.c.
12849 (_initialize_dwarf2_read): Move "always-disassemble" registration
12850 to loc.c.
12851 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12852 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12853 static.
12854 (show_dwarf_always_disassemble): Move from read.c.
12855 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12856
12857 2020-02-08 Tom Tromey <tom@tromey.com>
12858
12859 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12860 (create_quick_file_names_table): Return htab_up.
12861 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12862 Update.
12863 * dwarf2/read.h (struct dwarf2_per_objfile)
12864 <quick_file_names_table>: Now htab_up.
12865
12866 2020-02-08 Tom Tromey <tom@tromey.com>
12867
12868 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12869
12870 2020-02-08 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12873 Rewrite.
12874 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12875 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12876 (abbrev_table::abbrev_table): No longer inline.
12877 (ABBREV_HASH_SIZE): Remove.
12878 (abbrev_table::m_abbrevs): Now an htab_up.
12879
12880 2020-02-08 Tom Tromey <tom@tromey.com>
12881
12882 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12883 (cutu_reader): Update.
12884 (build_type_psymtabs_1): Update.
12885 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12886 (abbrev_table::alloc_abbrev): Update.
12887 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12888 (abbrev_table::read): New static method, renamed from
12889 abbrev_table_read_table.
12890 (abbrev_table::alloc_abbrev)
12891 (abbrev_table::add_abbrev): Now private.
12892 (abbrev_table::abbrev_table): Now private.
12893 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12894
12895 2020-02-08 Tom Tromey <tom@tromey.com>
12896
12897 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12898 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12899 htab_up.
12900
12901 2020-02-08 Tom Tromey <tom@tromey.com>
12902
12903 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12904 htab_up.
12905 (lookup_dwo_unit_in_dwp): Update.
12906 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12907 on obstack.
12908
12909 2020-02-08 Tom Tromey <tom@tromey.com>
12910
12911 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12912 obstack.
12913
12914 2020-02-08 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12917 line_header_hash.
12918 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12919 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12920 Change type to htab_up.
12921
12922 2020-02-08 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12925 htab_up. Don't allocate on obstack.
12926 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12927 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12928 Change type to htab_up.
12929
12930 2020-02-08 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12933 Change type to htab_up.
12934 * dwarf2/read.c (create_signatured_type_table_from_index)
12935 (create_signatured_type_table_from_debug_names)
12936 (create_all_type_units, add_type_unit)
12937 (lookup_dwo_signatured_type, lookup_signatured_type)
12938 (process_skeletonless_type_unit): Update.
12939 (create_debug_type_hash_table, create_debug_types_hash_table):
12940 Change type of types_htab.
12941 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12942 htab_up. Don't allocate on obstack.
12943 (create_cus_hash_table): Change type of cus_htab parameter.
12944 (struct dwo_file) <cus, tus>: Now htab_up.
12945 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12946 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12947 (queue_and_load_all_dwo_tus): Update.
12948 * dwarf2/index-write.c (write_gdbindex): Update.
12949 (write_debug_names): Update.
12950
12951 2020-02-08 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12954 dwarf2/read.c. Remove "next" member. Add constructor ntad
12955 destructor.
12956 (struct dwarf2_per_objfile) <queue>: New member.
12957 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12958 dwarf2/read.h.
12959 (dwarf2_queue, dwarf2_queue_tail): Remove.
12960 (class dwarf2_queue_guard): Add parameter to constructor. Use
12961 DISABLE_COPY_AND_ASSIGN.
12962 <m_per_objfile>: New member.
12963 <~dwarf2_queue_guard>: Rewrite.
12964 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12965 Update.
12966 (~dwarf2_queue_item): New.
12967
12968 2020-02-08 Tom Tromey <tom@tromey.com>
12969
12970 * dwarf2/read.c (struct die_info) <has_children>: New member.
12971 (dw2_get_file_names_reader): Remove has_children.
12972 (dw2_get_file_names): Update.
12973 (read_cutu_die_from_dwo): Remove has_children.
12974 (cutu_reader::init_tu_and_read_dwo_dies)
12975 (cutu_reader::cutu_reader): Update.
12976 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12977 Remove has_children.
12978 (build_type_psymtabs_1, process_skeletonless_type_unit)
12979 (load_partial_comp_unit, load_full_comp_unit): Update.
12980 (create_dwo_cu_reader): Remove has_children.
12981 (create_cus_hash_table, read_die_and_children): Update.
12982 (read_full_die_1,read_full_die): Remove has_children.
12983 (read_signatured_type): Update.
12984 (class cutu_reader) <has_children>: Remove.
12985
12986 2020-02-08 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/expr.c: Rename from dwarf2expr.c.
12989 * dwarf2/expr.h: Rename from dwarf2expr.h.
12990 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12991 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12992 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12993 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12994 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12995 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12996 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12997 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12998 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12999 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13000 * dwarf2/loc.c: Rename from dwarf2loc.c.
13001 * dwarf2/loc.h: Rename from dwarf2loc.h.
13002 * dwarf2/read.c: Rename from dwarf2read.c.
13003 * dwarf2/read.h: Rename from dwarf2read.h.
13004 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13005 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13006 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13007 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13008 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13009 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13010 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13011 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13012 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13013 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13014 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13015 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13016 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13017 Update.
13018 * Makefile.in (COMMON_SFILES): Update.
13019 (HFILES_NO_SRCDIR): Update.
13020
13021 2020-02-08 Tom Tromey <tom@tromey.com>
13022
13023 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13024 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13025
13026 2020-02-08 Tom Tromey <tom@tromey.com>
13027
13028 * dwarf2read.h (struct die_info): Don't declare.
13029
13030 2020-02-08 Tom Tromey <tom@tromey.com>
13031
13032 * dwarf2read.h (die_info_ptr): Remove typedef.
13033
13034 2020-02-08 Tom Tromey <tom@tromey.com>
13035
13036 * dwarf2read.c (read_call_site_scope)
13037 (handle_data_member_location, dwarf2_add_member_fn)
13038 (mark_common_block_symbol_computed, read_common_block)
13039 (attr_to_dynamic_prop, partial_die_info::read)
13040 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13041 (dwarf2_symbol_mark_computed, set_die_type): Update.
13042 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13043 method.
13044 (attr_form_is_block): Don't declare.
13045 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13046
13047 2020-02-08 Tom Tromey <tom@tromey.com>
13048
13049 * dwarf2read.c (dwarf2_find_base_address, )
13050 (read_call_site_scope, rust_containing_type)
13051 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13052 (handle_data_member_location, dwarf2_add_member_fn)
13053 (get_alignment, read_structure_type, process_structure_scope)
13054 (mark_common_block_symbol_computed, read_common_block)
13055 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13056 (partial_die_info::read, read_attribute_value, new_symbol)
13057 (lookup_die_type, dwarf2_get_ref_die_offset)
13058 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13059 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13060 (dwarf2_symbol_mark_computed): Update.
13061 * dwarf2/attribute.h (struct attribute) <value_as_address,
13062 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13063 methods.
13064 (value_as_address, attr_form_is_section_offset)
13065 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13066 * dwarf2/attribute.c (attribute::value_as_address)
13067 (attribute::form_is_section_offset, attribute::form_is_constant)
13068 (attribute::form_is_ref): Now methods.
13069
13070 2020-02-08 Tom Tromey <tom@tromey.com>
13071
13072 * dwarf2read.c (struct attribute, DW_STRING)
13073 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13074 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13075 (attr_form_is_block, attr_form_is_section_offset)
13076 (attr_form_is_constant, attr_form_is_ref): Move.
13077 * dwarf2/attribute.h: New file.
13078 * dwarf2/attribute.c: New file, from dwarf2read.c.
13079 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13080
13081 2020-02-08 Tom Tromey <tom@tromey.com>
13082
13083 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13084 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13085 Move.
13086 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13087 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13088 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13089 abbrev.c.
13090 * dwarf2/abbrev.h: New file.
13091 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13092 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13093
13094 2020-02-08 Tom Tromey <tom@tromey.com>
13095
13096 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13097 (dwarf2_section_size, dwarf2_get_section_info)
13098 (create_signatured_type_table_from_debug_names)
13099 (create_addrmap_from_aranges, read_debug_names_from_section)
13100 (get_gdb_index_contents_from_section, read_comp_unit_head)
13101 (error_check_comp_unit_head, read_abbrev_offset)
13102 (create_debug_type_hash_table, init_cu_die_reader)
13103 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13104 (read_comp_units_from_section, create_cus_hash_table)
13105 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13106 (create_dwp_v2_section, dwarf2_rnglists_process)
13107 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13108 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13109 (read_indirect_string_from_dwz, read_addr_index_1)
13110 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13111 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13112 (fill_in_loclist_baton): Update.
13113 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13114 get_containing_section, get_bfd_owner, get_bfd_section,
13115 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13116 (dwarf2_read_section, get_section_name, get_section_file_name)
13117 (get_containing_section, get_section_bfd_owner)
13118 (get_section_bfd_section, get_section_name, get_section_file_name)
13119 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13120 declare.
13121 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13122 (dwarf2_section_info::get_bfd_owner)
13123 (dwarf2_section_info::get_bfd_section)
13124 (dwarf2_section_info::get_name)
13125 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13126 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13127 (dwarf2_section_info::read): Now methods.
13128 * dwarf-index-write.c (class debug_names): Update.
13129
13130 2020-02-08 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13133 Move to dwarf2/section.h.
13134 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13135 (get_section_bfd_section, get_section_name)
13136 (get_section_file_name, get_section_id, get_section_flags)
13137 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13138 dwarf2/section.c.
13139 * dwarf2/section.h: New file.
13140 * dwarf2/section.c: New file, from dwarf2read.c.
13141 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13142
13143 2020-02-08 Tom Tromey <tom@tromey.com>
13144
13145 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13146 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13147 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13148 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13149 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13150 * dwarf2/leb.h: New file, from dwarf2read.c.
13151 * dwarf2/leb.c: New file, from dwarf2read.c.
13152 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13153 Remove.
13154 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13155 (COMMON_SFILES): Add dwarf2/leb.c.
13156
13157 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13158
13159 GDB 9.1 released.
13160
13161 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13162
13163 PR gdb/25190:
13164 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13165 * gdb/remote.c (remote_console_output): Update.
13166 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13167 (ui_file_puts): ...this.
13168 * gdb/ui-file.h (ui_file_puts): Add declaration.
13169 * gdb/utils.c (emit_style_escape): Update.
13170 (flush_wrap_buffer): Update.
13171 (fputs_maybe_filtered): Update.
13172 (fputs_unfiltered): Add function.
13173
13174 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13175
13176 * gdb/event-loop.c (gdb_wait_for_event): Update.
13177 * gdb/printcmd.c (printf_command): Update.
13178 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13179 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13180 (gdb_os_flush_stderr): Update.
13181 * gdb/remote.c (remote_console_output): Update.
13182 * gdb/ui-file.c (gdb_flush): Rename to...
13183 (ui_file_flush): ...this.
13184 (stderr_file::write): Update.
13185 (stderr_file::puts): Update.
13186 * gdb/ui-file.h (gdb_flush): Rename to...
13187 (ui_file_flush): ...this.
13188 * gdb/utils.c (gdb_flush): Add function.
13189 * gdb/utils.h (gdb_flush): Add declaration.
13190
13191 2020-02-07 Tom Tromey <tromey@adacore.com>
13192
13193 PR breakpoints/24915:
13194 * source.c (find_and_open_source): Do not check basenames_may_differ.
13195
13196 2020-02-07 Tom Tromey <tom@tromey.com>
13197
13198 * README: Update gdbserver documentation.
13199 * gdbserver: Move to top level.
13200 * configure.tgt (build_gdbserver): Remove.
13201 * configure.ac: Remove --enable-gdbserver.
13202 * configure: Rebuild.
13203 * Makefile.in (distclean): Don't mention gdbserver.
13204
13205 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13206
13207 * source-cache.c (source_cache::ensure): Surround
13208 get_plain_source_lines with a try/catch.
13209 (source_cache::get_line_charpos): Get rid of try/catch
13210 and only check for the return value of "ensure".
13211 * tui/tui-source.c (tui_source_window::set_contents):
13212 Simplify "nlines" calculation.
13213
13214 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13215
13216 * MAINTAINERS (Write After Approval): Add myself.
13217
13218 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13219
13220 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13221 function call.
13222
13223 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13224
13225 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13226
13227 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13228
13229 * nat/riscv-linux-tdesc.h: New file.
13230 * nat/riscv-linux-tdesc.c: New file, taking code from...
13231 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13232 ... here.
13233 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13234 NATDEPFILES.
13235
13236 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13237
13238 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13239 we don't set the fake simulator ptid to the null_ptid.
13240
13241 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13242
13243 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13244 * gdbthread.h (class thread_info) <resumed>: Likewise.
13245 * infrun.c (resume_1): Likewise.
13246 (proceed): Likewise.
13247 (infrun_thread_stop_requested): Likewise.
13248 (stop_all_threads): Likewise.
13249 (handle_inferior_event): Likewise.
13250 (restart_threads): Likewise.
13251 (finish_step_over): Likewise.
13252 (keep_going_stepped_thread): Likewise.
13253 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13254 (linux_handle_extended_wait): Likewise.
13255 * record-btrace.c (get_thread_current_frame_id): Likewise.
13256 * record-full.c (record_full_wait_1): Likewise.
13257 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13258 * target.c (target_resume): Likewise.
13259 * thread.c (set_running_thread): Likewise.
13260
13261 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13262
13263 * f-valprint.c (f77_print_array_1): Changed datatype of index
13264 variable to LONGEST from int to enable it to contain bound
13265 values correctly.
13266
13267 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13268
13269 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13270 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13271 offsets according to FLEN determined.
13272 (riscv_linux_nat_target::read_description): Determine FLEN
13273 dynamically.
13274 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13275 according to FLEN determined.
13276 (riscv_linux_nat_target::store_registers): Likewise.
13277
13278 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13279
13280 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13281 when reg->group is empty and reggroup is not.
13282
13283 2020-01-31 Tom Tromey <tromey@adacore.com>
13284
13285 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13286 Call beneath target's mourn_inferior after unpushing.
13287
13288 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13289
13290 PR tui/9765
13291 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13292 have enough lines to fill the screen, still return the lowest
13293 address we found.
13294
13295 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13296
13297 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13298 '-', '<', and '>' commands.
13299
13300 2020-01-29 Pedro Alves <palves@redhat.com>
13301 Sergio Durigan Junior <sergiodj@redhat.com>
13302
13303 * infcmd.c (construct_inferior_arguments): Assert that
13304 'argc' is greater than 0.
13305
13306 2020-01-29 Luis Machado <luis.machado@linaro.org>
13307
13308 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13309 (BRK_INSN_MASK): Define to 0xd4200000.
13310 (aarch64_program_breakpoint_here_p): New function.
13311 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13312 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13313 breakpoint.c.
13314 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13315 breakpoint.h
13316 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13317 call gdbarch_program_breakpoint_here_p.
13318 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13319 default_program_breakpoint_here_p, changed return type to bool and
13320 simplified.
13321 * breakpoint.h (program_breakpoint_here): Moved prototype to
13322 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13323 return type to bool.
13324 * gdbarch.c: Regenerate.
13325 * gdbarch.h: Regenerate.
13326 * gdbarch.sh (program_breakpoint_here_p): New method.
13327 * infrun.c (handle_signal_stop): Call
13328 gdbarch_program_breakpoint_here_p.
13329
13330 2020-01-26 Tom Tromey <tom@tromey.com>
13331
13332 * ctfread.c (struct ctf_fp_info): Reindent.
13333 (_initialize_ctfread): Remove.
13334
13335 2020-01-26 Tom Tromey <tom@tromey.com>
13336
13337 * psymtab.c (partial_map_expand_apply)
13338 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13339 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13340 (psym_print_stats, psym_expand_symtabs_for_function)
13341 (psym_map_symbol_filenames, psym_map_matching_symbols)
13342 (psym_expand_symtabs_matching)
13343 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13344 (maintenance_check_psymtabs): Use new methods.
13345 * psympriv.h (struct partial_symtab) <readin_p,
13346 get_compunit_symtab>: New methods.
13347 <readin, compunit_symtab>: Remove members.
13348 (struct standard_psymtab): New.
13349 (struct legacy_psymtab): Derive from standard_psymtab.
13350 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13351 standard_psymtab.
13352 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13353
13354 2020-01-26 Tom Tromey <tom@tromey.com>
13355
13356 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13357 read_dependencies. Add assert.
13358 * psymtab.c (partial_symtab::read_dependencies): New method.
13359 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13360 method.
13361 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13362 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13363 read_dependencies.
13364 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13365 Add assert.
13366
13367 2020-01-26 Tom Tromey <tom@tromey.com>
13368
13369 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13370 Call expand_psymtab.
13371 (xcoff_read_symtab): Call expand_psymtab.
13372 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13373 legacy_expand_psymtab.
13374 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13375 method.
13376 (struct legacy_psymtab) <expand_psymtab>: Implement.
13377 <legacy_expand_psymtab>: New member.
13378 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13379 (parse_partial_symbols): Set legacy_expand_psymtab.
13380 (psymtab_to_symtab_1): Change argument order. Call
13381 expand_psymtab.
13382 (new_psymtab): Set legacy_expand_psymtab.
13383 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13384 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13385 expand_psymtab.
13386 (dwarf2_psymtab::expand_psymtab): Rename from
13387 psymtab_to_symtab_1. Call expand_psymtab.
13388 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13389 (dbx_end_psymtab): Likewise.
13390 (dbx_psymtab_to_symtab_1): Change argument order. Call
13391 expand_psymtab.
13392 (dbx_read_symtab): Call expand_psymtab.
13393 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13394 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13395 (ctf_psymtab::read_symtab): Call expand_psymtab.
13396
13397 2020-01-26 Tom Tromey <tom@tromey.com>
13398
13399 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13400 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13401 messages.
13402 * mdebugread.c (mdebug_read_symtab): Remove prints.
13403 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13404 assert.
13405 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13406
13407 2020-01-26 Tom Tromey <tom@tromey.com>
13408
13409 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13410 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13411 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13412 legacy_symtab.
13413 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13414 * psymtab.c (psymtab_to_symtab): Call method.
13415 (dump_psymtab): Update.
13416 * psympriv.h (struct partial_symtab): Add virtual destructor.
13417 <read_symtab>: New method.
13418 (struct legacy_symtab): New.
13419 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13420 (struct pst_map) <pst>: Now a legacy_psymtab.
13421 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13422 (new_psymtab): Use legacy_psymtab.
13423 * dwarf2read.h (struct dwarf2_psymtab): New.
13424 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13425 * dwarf2read.c (dwarf2_create_include_psymtab)
13426 (dwarf2_build_include_psymtabs, create_type_unit_group)
13427 (create_partial_symtab, process_psymtab_comp_unit_reader)
13428 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13429 (set_partial_user): Use dwarf2_psymtab.
13430 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13431 (psymtab_to_symtab_1, process_full_comp_unit)
13432 (process_full_type_unit, dwarf2_ranges_read)
13433 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13434 (dwarf_decode_lines): Use dwarf2_psymtab.
13435 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13436 (add_address_entry_worker, write_one_signatured_type)
13437 (recursively_count_psymbols, recursively_write_psymbols)
13438 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13439 (write_debug_names): Likewise.
13440 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13441 <pst>: Now a legacy_psymtab.
13442 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13443 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13444 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13445 * ctfread.c (struct ctf_psymtab): New.
13446 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13447 ctf_psymtab.
13448 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13449 (create_partial_symtab): Return a ctf_psymtab.
13450 (scan_partial_symbols): Update.
13451
13452 2020-01-26 Tom Tromey <tom@tromey.com>
13453
13454 * xcoffread.c (xcoff_start_psymtab): Use new.
13455 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13456 renamed from start_psymtab_common.
13457 * psympriv.h (struct partial_symtab): Add new constructor.
13458 (start_psymtab_common): Don't declare.
13459 * mdebugread.c (parse_partial_symbols): Use new.
13460 * dwarf2read.c (create_partial_symtab): Use new.
13461 * dbxread.c (start_psymtab): Use new.
13462 * ctfread.c (create_partial_symtab): Use new.
13463
13464 2020-01-26 Tom Tromey <tom@tromey.com>
13465
13466 * xcoffread.c (xcoff_end_psymtab): Use new.
13467 * psymtab.c (start_psymtab_common): Use new.
13468 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13469 Update.
13470 * psympriv.h (struct partial_symtab): Add parameters to
13471 constructor. Don't inline.
13472 (allocate_psymtab): Don't declare.
13473 * mdebugread.c (new_psymtab): Use new.
13474 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13475 * dbxread.c (dbx_end_psymtab): Use new.
13476
13477 2020-01-26 Tom Tromey <tom@tromey.com>
13478
13479 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13480 allocate_psymtab. Update documentation.
13481 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13482 allocate_psymtab. Do not use new.
13483 (allocate_psymtab): Use new. Update.
13484
13485 2020-01-26 Tom Tromey <tom@tromey.com>
13486
13487 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13488 * psymtab.c (psym_print_stats): Update.
13489 * psympriv.h (struct partial_symtab) <readin,
13490 psymtabs_addrmap_supported, anonymous>: Now bool.
13491 * mdebugread.c (psymtab_to_symtab_1): Update.
13492 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13493 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13494 (process_full_comp_unit, process_full_type_unit): Update.
13495 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13496 * ctfread.c (psymtab_to_symtab): Update.
13497
13498 2020-01-26 Tom Tromey <tom@tromey.com>
13499
13500 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13501 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13502 * psymtab.c (psymtab_storage): Delete psymtabs.
13503 (psymtab_storage::allocate_psymtab): Use new.
13504 (psymtab_storage::discard_psymtab): Use delete.
13505 * psympriv.h (struct partial_symtab): Add constructor and
13506 initializers.
13507
13508 2020-01-26 Tom Tromey <tom@tromey.com>
13509
13510 * machoread.c: Do not include psympriv.h.
13511
13512 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13513
13514 * NEWS: Mention the new option and the set/show commands.
13515
13516 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13517
13518 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13519 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13520 (validate_exec_file): New variables, enums, functions.
13521 (exec_file_locate_attach, print_section_info): Style the filenames.
13522 (_initialize_exec): Install show_exec_file_mismatch_command and
13523 set_exec_file_mismatch_command.
13524 * gdbcore.h (validate_exec_file): Declare.
13525 * infcmd.c (attach_command): Call validate_exec_file.
13526 * remote.c ( remote_target::remote_add_inferior): Likewise.
13527
13528 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13529
13530 * frame.c (find_frame_sal): Move call to get_next_frame into more
13531 inner scope.
13532 * inline-frame.c (inilne_state) <inline_state>: Update argument
13533 types.
13534 (inilne_state) <skipped_symbol>: Rename to...
13535 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13536 (skip_inline_frames): Build vector of skipped symbols and use this
13537 to reate the inline_state.
13538 (inline_skipped_symbol): Add a comment and some assertions, fetch
13539 skipped symbol from the list.
13540
13541 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13542
13543 * buildsym.c (lte_is_less_than): Delete.
13544 (buildsym_compunit::end_symtab_with_blockvector): Create local
13545 lambda function to sort line table entries, and use
13546 std::stable_sort instead of std::sort.
13547 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13548 markers when looking for a previous line.
13549
13550 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13551
13552 * dwarf2read.c (lnp_state_machine::record_line): Include
13553 end_sequence parameter in debug print out. Record the line if we
13554 are at an end_sequence marker even if it's not the start of a
13555 statement.
13556 * symmisc.c (maintenance_print_one_line_table): Print end of
13557 sequence markers with 'END' not '0'.
13558
13559 2020-01-24 Pedro Alves <palves@redhat.com>
13560
13561 PR gdb/25410
13562 * thread.c (scoped_restore_current_thread::restore): Use
13563 switch_to_inferior_no_thread.
13564 * exec.c: Include "progspace-and-thread.h".
13565 (add_target_sections, remove_target_sections):
13566 scoped_restore_current_pspace_and_thread instead of
13567 scoped_restore_current_thread.
13568 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13569 and aspace to the inferior before calling clone_program_space.
13570 Remove stale comment.
13571
13572 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13573
13574 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13575 (arm_netbsd_nat_target::fetch_registers): ...this.
13576 (arm_nbsd_nat_target::store_registers): Rename to...
13577 (arm_netbsd_nat_target::store_registers): ...this.
13578
13579 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13580
13581 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13582 register_t.
13583
13584 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13585
13586 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13587 Update comment.
13588 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13589 Likewise.
13590 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13591 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13592 the correct replacement (iterate_over_regset_sections).
13593 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13594 Update comment.
13595
13596 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13597
13598 PR gdb/23718
13599 * gdb/python/python.c (execute_gdb_command): Call
13600 async_enable_stdin in catch block.
13601
13602 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13603
13604 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13605 SWITCH_THRU_ALL_UIS.
13606
13607 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13608
13609 PR tui/9765
13610 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13611 comment, add extra parameter, and update to store previous symbol
13612 when appropriate.
13613 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13614 add extra parameter.
13615 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13616 remove unneeded parameter, add try/catch around gdb_print_insn,
13617 rewrite to add items to asm_lines vector.
13618 (tui_find_backward_disassembly_start_address): New function.
13619 (tui_find_disassembly_address): Updated throughout.
13620 (tui_disasm_window::set_contents): Update for changes to
13621 tui_disassemble.
13622 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13623 number of lines to scroll.
13624
13625 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13626
13627 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13628 (SECT_OFF_DATA): Likewise.
13629 (SECT_OFF_RODATA): Likewise.
13630 (SECT_OFF_TEXT): Likewise.
13631 (SECT_OFF_BSS): Likewise.
13632 (struct objfile) <text_section_offset, data_section_offset>: New
13633 methods.
13634 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13635 objfile::text_section_offset.
13636 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13637 * coffread.c (coff_symtab_read): Likewise.
13638 (enter_linenos): Likewise.
13639 (process_coff_symbol): Likewise.
13640 * ctfread.c (get_objfile_text_range): Likewise.
13641 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13642 Use objfile::data_section_offset.
13643 * dwarf2-frame.c (execute_cfa_program): Use
13644 objfile::text_section_offset.
13645 (dwarf2_frame_find_fde): Likewise.
13646 * dwarf2read.c (create_addrmap_from_index): Likewise.
13647 (create_addrmap_from_aranges): Likewise.
13648 (dw2_find_pc_sect_compunit_symtab): Likewise.
13649 (process_psymtab_comp_unit_reader): Likewise.
13650 (add_partial_symbol): Likewise.
13651 (add_partial_subprogram): Likewise.
13652 (process_full_comp_unit): Likewise.
13653 (read_file_scope): Likewise.
13654 (read_func_scope): Likewise.
13655 (read_lexical_block_scope): Likewise.
13656 (read_call_site_scope): Likewise.
13657 (dwarf2_rnglists_process): Likewise.
13658 (dwarf2_ranges_process): Likewise.
13659 (dwarf2_ranges_read): Likewise.
13660 (dwarf_decode_lines_1): Likewise.
13661 (new_symbol): Likewise.
13662 (dwarf2_fetch_die_loc_sect_off): Likewise.
13663 (dwarf2_per_cu_text_offset): Likewise.
13664 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13665 * hppa-tdep.c (read_unwind_info): Likewise.
13666 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13667 * psympriv.h (struct partial_symtab): Likewise.
13668 * psymtab.c (find_pc_sect_psymtab): Likewise.
13669 * solib-svr4.c (enable_break): Likewise.
13670 * stap-probe.c (relocate_address): Use
13671 objfile::data_section_offset.
13672 * xcoffread.c (enter_line_range): Use
13673 objfile::text_section_offset.
13674 (read_xcoff_symtab): Likewise.
13675
13676 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13677
13678 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13679 declaration to narrower scopes.
13680
13681 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13682
13683 * darwin-nat.h (struct darwin_exception_msg, enum
13684 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13685 Move up.
13686 (class darwin_nat_target) <wait_1, check_new_threads,
13687 decode_exception_message, decode_message, stop_inferior,
13688 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13689 * darwin-nat.c (darwin_check_new_threads): Rename to...
13690 (darwin_nat_target::check_new_threads): ... this.
13691 (darwin_suspend_inferior_it): Remove.
13692 (darwin_decode_exception_message): Rename to...
13693 (darwin_nat_target::decode_exception_message): ... this.
13694 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13695 (darwin_decode_message): Rename to...
13696 (darwin_nat_target::decode_message): ... this.
13697 (cancel_breakpoint): Rename to...
13698 (darwin_nat_target::cancel_breakpoint): ... this.
13699 (darwin_wait): Rename to...
13700 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13701 instead of iterate_over_inferiors.
13702 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13703 (darwin_stop_inferior): Rename to...
13704 (darwin_nat_target::stop_inferior): ... this.
13705 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13706 (darwin_init_thread_list): Rename to...
13707 (darwin_nat_target::init_thread_list): ... this.
13708 (darwin_ptrace_him): Rename to...
13709 (darwin_nat_target::ptrace_him): ... this.
13710 (darwin_nat_target::create_inferior): Pass lambda function to
13711 fork_inferior.
13712 (darwin_nat_target::detach): Call stop_inferior instead of
13713 darwin_stop_inferior.
13714 * fork-inferior.h (fork_inferior): Change init_trace_fun
13715 parameter to gdb::function_view.
13716 * fork-inferior.c (fork_inferior): Likewise.
13717
13718 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13719
13720 * i386-cygwin-tdep.c (core_process_module_section): Update.
13721 * windows-nat.c (struct lm_info_windows): Add text_offset.
13722 (windows_xfer_shared_libraries): Update.
13723 * windows-tdep.c (windows_xfer_shared_library):
13724 Add text_offset_cached argument.
13725 * windows-tdep.h (windows_xfer_shared_library): Update.
13726
13727 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13728
13729 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13730
13731 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13732
13733 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13734 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13735 replace with range-based for.
13736 (gdbsim_interrupt_inferior): Remove.
13737 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13738 with a range-based for. Inline code from
13739 gdbsim_interrupt_inferior.
13740
13741 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13742
13743 * infrun.c (proceed): Fix indentation.
13744
13745 2020-01-21 Tom Tromey <tromey@adacore.com>
13746
13747 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13748 * python/python.c (python_extension_ops): Update.
13749 (gdbpy_colorize): New function.
13750 * python/lib/gdb/__init__.py (colorize): New function.
13751 * extension.h (ext_lang_colorize): Declare.
13752 * extension.c (ext_lang_colorize): New function.
13753 * extension-priv.h (struct extension_language_ops) <colorize>: New
13754 member.
13755 * cli/cli-style.c (_initialize_cli_style): Update help text.
13756
13757 2020-01-21 Luis Machado <luis.machado@linaro.org>
13758
13759 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13760 <cond>: Change type to bool.
13761 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13762 (aarch64_displaced_step_cb): Likewise.
13763 (aarch64_displaced_step_tb): Likewise.
13764
13765 2020-01-21 Luis Machado <luis.machado@linaro.org>
13766
13767 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13768 output.
13769
13770 2020-01-21 Luis Machado <luis.machado@linaro.org>
13771
13772 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13773 <pc_adjust>: Adjust the documentation.
13774 (aarch64_displaced_step_fixup): Check if PC really moved before
13775 adjusting it.
13776
13777 2020-01-19 Tom Tromey <tom@tromey.com>
13778
13779 * disasm.c (~gdb_disassembler): New destructor.
13780 (gdb_buffered_insn_length): Call disassemble_free_target.
13781 * disasm.h (class gdb_disassembler): Declare destructor. Use
13782 DISABLE_COPY_AND_ASSIGN.
13783
13784 2020-01-19 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13787 (die_reader_func_ftype): Remove.
13788 (cutu_reader): New class.
13789 (dw2_get_file_names_reader): Remove "data" parameter.
13790 (dw2_get_file_names): Use cutu_reader.
13791 (create_debug_type_hash_table): Update.
13792 (read_cutu_die_from_dwo): Update comment.
13793 (lookup_dwo_unit): Add dwo_name parameter.
13794 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13795 die_reader_func_ftype and data parameters.
13796 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13797 Remove die_reader_func_ftype and data parameters.
13798 (~cutu_reader): New; from init_cutu_and_read_dies.
13799 (cutu_reader::cutu_reader): Rename from
13800 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13801 and data parameters.
13802 (init_cutu_and_read_dies_simple): Remove.
13803 (struct process_psymtab_comp_unit_data): Remove.
13804 (process_psymtab_comp_unit_reader): Remove data parameter; add
13805 want_partial_unit and pretend_language parameters.
13806 (process_psymtab_comp_unit): Use cutu_reader.
13807 (build_type_psymtabs_reader): Remove data parameter.
13808 (build_type_psymtabs_1): Use cutu_reader.
13809 (process_skeletonless_type_unit): Likewise.
13810 (load_partial_comp_unit_reader): Remove.
13811 (load_partial_comp_unit): Use cutu_reader.
13812 (load_full_comp_unit_reader): Remove.
13813 (load_full_comp_unit): Use cutu_reader.
13814 (struct create_dwo_cu_data): Remove.
13815 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13816 dwo_unit parameters.
13817 (create_cus_hash_table): Use cutu_reader.
13818 (struct dwarf2_read_addr_index_data): Remove.
13819 (dwarf2_read_addr_index_reader): Remove.
13820 (dwarf2_read_addr_index): Use cutu_reader.
13821 (read_signatured_type_reader): Remove.
13822 (read_signatured_type): Use cutu_reader.
13823
13824 2020-01-19 Tom Tromey <tom@tromey.com>
13825
13826 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13827 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13828 (tui_wrefresh): Declare.
13829 * tui/tui-wingeneral.c (suppress_output): New global.
13830 (tui_suppress_output, ~tui_suppress_output): New constructor and
13831 destructor.
13832 (tui_wrefresh): New function.
13833 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13834 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13835 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13836 method.
13837 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13838 tui_wrefresh.
13839 (tui_data_window::no_refresh): New method.
13840 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13841 (tui_reg_command): Use tui_suppress_output
13842 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13843 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13844 method.
13845 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13846
13847 2020-01-19 Tom Tromey <tom@tromey.com>
13848
13849 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13850 Handle case where symtab is null.
13851
13852 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13853
13854 * linux-fork.c (one_fork_p): Simplify.
13855
13856 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13857
13858 * top.c (struct qt_args): Remove.
13859 (kill_or_detach): Change return type to void, replace `void *`
13860 parameter with a proper one.
13861 (print_inferior_quit_action): Likewise.
13862 (quit_confirm): Use range-based for loop to iterate over inferiors.
13863 (quit_force): Likewise.
13864
13865 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13866
13867 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13868 `void *` parameter with proper parameters.
13869 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13870 (print_one_inferior): Change return type to void, replace `void *`
13871 parameter with proper parameters.
13872 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13873 inferiors.
13874 (get_other_inferior): Remove.
13875 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13876 inferiors.
13877
13878 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * mi/mi-interp.c (report_initial_inferior): Remove.
13881 (mi_interp::init): Use range-based for to iterate over inferiors.
13882
13883 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13884
13885 * python/py-inferior.c (build_inferior_list): Remove.
13886 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13887
13888 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13889
13890 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13891 (btrace_stitch_trace): Likewise.
13892 * charset.c (intermediate_encoding): Likewise (vaild).
13893 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13894 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13895 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13896
13897 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13898
13899 * windows-tdep.c (windows_get_tlb_type):
13900 Add rtl_user_process_parameters type.
13901
13902 2020-01-16 Pedro Alves <palves@redhat.com>
13903 Norbert Lange <nolange79@gmail.com>
13904
13905 PR build/24805
13906 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13907 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13908 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13909 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13910 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13911 (ps_plog): Redeclare exported functions with default visibility.
13912
13913 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13914
13915 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13916 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13917
13918 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13919
13920 * infcmd.c (post_create_inferior): Use get_thread_regcache
13921 instead of get_current_regcache.
13922
13923 2020-01-14 Tom Tromey <tom@tromey.com>
13924
13925 PR symtab/12535:
13926 * python/python.c (gdbpy_decode_line): Treat empty string the same
13927 as no argument.
13928
13929 2020-01-14 Tom Tromey <tom@tromey.com>
13930
13931 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13932
13933 2020-01-14 Tom Tromey <tom@tromey.com>
13934
13935 * nat/linux-btrace.c: Don't include <config.h>.
13936 * nat/linux-ptrace.c: Don't include <config.h>.
13937 * nat/x86-linux-dregs.c: Don't include <config.h>.
13938
13939 2020-01-14 Tom Tromey <tom@tromey.com>
13940
13941 * configure: Rebuild.
13942 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13943
13944 2020-01-14 Tom Tromey <tom@tromey.com>
13945
13946 * nat/x86-linux-dregs.c: Include configh.h.
13947 * nat/linux-ptrace.c: Include configh.h.
13948 * nat/linux-btrace.c: Include configh.h.
13949 * defs.h: Include config.h, bfd.h.
13950 * configure.ac: Don't source common.host.
13951 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13952 * configure: Rebuild.
13953 * acinclude.m4: Update path.
13954 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13955 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13956 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13957 (CLIBS): Add LIBSUPPORT.
13958 (CDEPS): Likewise.
13959 (COMMON_SFILES): Remove gdbsupport files.
13960 (HFILES_NO_SRCDIR): Likewise.
13961 (stamp-version): Update path to create-version.sh.
13962 (ALLDEPFILES): Remove gdbsupport files.
13963
13964 2020-01-14 Tom Tromey <tom@tromey.com>
13965
13966 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13967 USE_WIN32API when needed.
13968 * configure.ac (USE_WIN32API): Don't define.
13969 (WIN32LIBS): Use WIN32APILIBS.
13970 * configure: Rebuild.
13971
13972 2020-01-14 Tom Tromey <tom@tromey.com>
13973
13974 * configure: Rebuild.
13975 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13976
13977 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13978
13979 * skip.c (skip_function_command): Make skip w/o arguments use the
13980 name of the inlined function if pc is inside any inlined function.
13981
13982 2020-01-14 Luis Machado <luis.machado@linaro.org>
13983
13984 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13985 * infrun.c (resume_1): Likewise.
13986 (handle_inferior_event): Remove stale comment.
13987 * linux-nat.c (linux_nat_target::resume): Update comments.
13988 (save_stop_reason): Likewise.
13989 (linux_nat_filter_event): Likewise.
13990 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13991
13992 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13993
13994 * elfread.c (record_minimal_symbol): Set section index to 0 for
13995 non-allocatable sections.
13996
13997
13998 2020-01-13 Ali Tamur <tamur@google.com>
13999
14000 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14001 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14002 to gdb::optional. Update comments.
14003 (dwo_file): Update comments.
14004 (read_attribute): Update API to take an additional out parameter,
14005 need_reprocess. This is used to mark attributes that need other
14006 attributes (e.g. str_offsets_base) for correct computation which may not
14007 have been read yet.
14008 (read_attribute_reprocess): New function declaration.
14009 (read_addr_index): Likewise.
14010 (read_dwo_str_index): Likewise.
14011 (read_stub_str_index): Likewise.
14012 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14013 (lookup_addr_base): New function definition.
14014 (lookup_ranges_base): Likewise.
14015 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14016 lookup_ranges_base.
14017 (init_cutu_and_read_dies): Update comments.
14018 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14019 unit. This is used to inherit parent's str_offsets_base and addr_base.
14020 Update comments.
14021 (init_cutu_and_read_dies_simple): Reflect API changes.
14022 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14023 (create_cus_hash_table): Change API to take parent compile unit.
14024 Reflect API changes.
14025 (open_and_init_dwo_file): Reflect API changes.
14026 (dwarf2_get_pc_bounds): Update comments.
14027 (dwarf2_record_block_ranges): Likewise.
14028 (read_full_die_1): Change implementation to reprocess attributes that
14029 need str_offsets_base and addr_base.
14030 (partial_die_info::read): Likewise.
14031 (read_attribute_reprocess): New function definition.
14032 (read_attribute_value): Change API to take an additional out parameter,
14033 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14034 when a non-dwo compile unit has index based attributes.
14035 (read_attribute): Reflect API changes.
14036 (read_addr_index_1): Reflect API changes. Update comments.
14037 (dwarf2_read_addr_index_data): Reflect API changes.
14038 (dwarf2_read_addr_index): Likewise.
14039 (read_str_index): Change API and implementation. This becomes a helper
14040 to be used by the new string index related methods. Update error
14041 message and comments.
14042 (read_dwo_str_index): New function definition.
14043 (read_stub_str_index): Likewise.
14044 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14045 * symfile.h (dwarf2_debug_sections): Likewise.
14046 * xcoffread.c (dwarf2_debug_sections): Likewise.
14047
14048 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14049
14050 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14051 core_reg_sect type to gdb_byte *.
14052 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14053 * cris-tdep.c (fetch_core_registers): Likewise.
14054 * corelow.c (core_target::get_core_register_section): Change
14055 type of `contents` to gdb::byte_vector.
14056
14057 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14058
14059 * tui/tui-wingeneral.c (box_win): Position the title in the center
14060 of the border.
14061
14062 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14063
14064 * corelow.c (core_target::get_core_register_section): Use
14065 std::vector instead of alloca.
14066
14067 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14068
14069 * warning.m4: Add -Wmissing-declarations to build_warnings.
14070 * configure: Re-generate.
14071
14072 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14073
14074 * python/python.c (init__gdb_module): Add declaration.
14075
14076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14077
14078 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14079 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14080 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14081 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14082 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14083 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14084 * ada-exp.y (_initialize_ada_exp): Add declaration.
14085 * ada-lang.c (_initialize_ada_language): Add declaration.
14086 * ada-tasks.c (_initialize_tasks): Add declaration.
14087 * agent.c (_initialize_agent): Add declaration.
14088 * aix-thread.c (_initialize_aix_thread): Add declaration.
14089 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14090 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14091 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14092 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14093 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14094 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14095 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14096 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14097 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14098 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14099 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14100 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14101 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14102 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14103 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14104 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14105 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14106 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14107 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14108 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14109 * annotate.c (_initialize_annotate): Add declaration.
14110 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14111 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14112 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14113 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14114 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14115 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14116 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14117 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14118 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14119 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14120 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14121 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14122 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14123 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14124 * auto-load.c (_initialize_auto_load): Add declaration.
14125 * auxv.c (_initialize_auxv): Add declaration.
14126 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14127 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14128 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14129 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14130 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14131 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14132 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14133 * breakpoint.c (_initialize_breakpoint): Add declaration.
14134 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14135 * btrace.c (_initialize_btrace): Add declaration.
14136 * charset.c (_initialize_charset): Add declaration.
14137 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14138 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14139 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14140 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14141 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14142 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14143 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14144 * coffread.c (_initialize_coffread): Add declaration.
14145 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14146 * compile/compile.c (_initialize_compile): Add declaration.
14147 * complaints.c (_initialize_complaints): Add declaration.
14148 * completer.c (_initialize_completer): Add declaration.
14149 * copying.c (_initialize_copying): Add declaration.
14150 * corefile.c (_initialize_core): Add declaration.
14151 * corelow.c (_initialize_corelow): Add declaration.
14152 * cp-abi.c (_initialize_cp_abi): Add declaration.
14153 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14154 * cp-support.c (_initialize_cp_support): Add declaration.
14155 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14156 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14157 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14158 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14159 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14160 * ctfread.c (_initialize_ctfread): Add declaration.
14161 * d-lang.c (_initialize_d_language): Add declaration.
14162 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14163 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14164 * dbxread.c (_initialize_dbxread): Add declaration.
14165 * dcache.c (_initialize_dcache): Add declaration.
14166 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14167 * disasm.c (_initialize_disasm): Add declaration.
14168 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14169 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14170 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14171 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14172 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14173 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14174 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14175 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14176 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14177 * elfread.c (_initialize_elfread): Add declaration.
14178 * exec.c (_initialize_exec): Add declaration.
14179 * extension.c (_initialize_extension): Add declaration.
14180 * f-lang.c (_initialize_f_language): Add declaration.
14181 * f-valprint.c (_initialize_f_valprint): Add declaration.
14182 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14183 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14184 * filesystem.c (_initialize_filesystem): Add declaration.
14185 * findcmd.c (_initialize_mem_search): Add declaration.
14186 * findvar.c (_initialize_findvar): Add declaration.
14187 * fork-child.c (_initialize_fork_child): Add declaration.
14188 * frame-base.c (_initialize_frame_base): Add declaration.
14189 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14190 * frame.c (_initialize_frame): Add declaration.
14191 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14192 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14193 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14194 * gcore.c (_initialize_gcore): Add declaration.
14195 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14196 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14197 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14198 * gdbarch.c (_initialize_gdbarch): Add declaration.
14199 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14200 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14201 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14202 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14203 * go-lang.c (_initialize_go_language): Add declaration.
14204 * go32-nat.c (_initialize_go32_nat): Add declaration.
14205 * guile/guile.c (_initialize_guile): Add declaration.
14206 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14207 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14208 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14209 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14210 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14211 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14212 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14213 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14214 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14215 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14216 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14217 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14218 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14219 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14220 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14221 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14222 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14223 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14224 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14225 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14226 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14227 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14228 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14229 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14230 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14231 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14232 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14233 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14234 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14235 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14236 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14237 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14238 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14239 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14240 * infcall.c (_initialize_infcall): Add declaration.
14241 * infcmd.c (_initialize_infcmd): Add declaration.
14242 * inflow.c (_initialize_inflow): Add declaration.
14243 * infrun.c (_initialize_infrun): Add declaration.
14244 * interps.c (_initialize_interpreter): Add declaration.
14245 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14246 * jit.c (_initialize_jit): Add declaration.
14247 * language.c (_initialize_language): Add declaration.
14248 * linux-fork.c (_initialize_linux_fork): Add declaration.
14249 * linux-nat.c (_initialize_linux_nat): Add declaration.
14250 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14251 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14252 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14253 * m2-lang.c (_initialize_m2_language): Add declaration.
14254 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14255 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14256 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14257 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14258 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14259 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14260 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14261 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14262 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14263 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14264 * machoread.c (_initialize_machoread): Add declaration.
14265 * macrocmd.c (_initialize_macrocmd): Add declaration.
14266 * macroscope.c (_initialize_macroscope): Add declaration.
14267 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14268 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14269 * maint.c (_initialize_maint_cmds): Add declaration.
14270 * mdebugread.c (_initialize_mdebugread): Add declaration.
14271 * memattr.c (_initialize_mem): Add declaration.
14272 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14273 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14274 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14275 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14276 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14277 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14278 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14279 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14280 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14281 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14282 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14283 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14284 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14285 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14286 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14287 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14288 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14289 * mipsread.c (_initialize_mipsread): Add declaration.
14290 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14291 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14292 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14293 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14294 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14295 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14296 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14297 * nto-procfs.c (_initialize_procfs): Add declaration.
14298 * objc-lang.c (_initialize_objc_language): Add declaration.
14299 * observable.c (_initialize_observer): Add declaration.
14300 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14301 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14302 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14303 * osabi.c (_initialize_gdb_osabi): Add declaration.
14304 * osdata.c (_initialize_osdata): Add declaration.
14305 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14306 * parse.c (_initialize_parse): Add declaration.
14307 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14308 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14309 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14310 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14311 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14312 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14313 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14314 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14315 * printcmd.c (_initialize_printcmd): Add declaration.
14316 * probe.c (_initialize_probe): Add declaration.
14317 * proc-api.c (_initialize_proc_api): Add declaration.
14318 * proc-events.c (_initialize_proc_events): Add declaration.
14319 * proc-service.c (_initialize_proc_service): Add declaration.
14320 * procfs.c (_initialize_procfs): Add declaration.
14321 * producer.c (_initialize_producer): Add declaration.
14322 * psymtab.c (_initialize_psymtab): Add declaration.
14323 * python/python.c (_initialize_python): Add declaration.
14324 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14325 * record-btrace.c (_initialize_record_btrace): Add declaration.
14326 * record-full.c (_initialize_record_full): Add declaration.
14327 * record.c (_initialize_record): Add declaration.
14328 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14329 * regcache.c (_initialize_regcache): Add declaration.
14330 * reggroups.c (_initialize_reggroup): Add declaration.
14331 * remote-notif.c (_initialize_notif): Add declaration.
14332 * remote-sim.c (_initialize_remote_sim): Add declaration.
14333 * remote.c (_initialize_remote): Add declaration.
14334 * reverse.c (_initialize_reverse): Add declaration.
14335 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14336 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14337 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14338 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14339 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14340 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14341 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14342 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14343 Add declaration.
14344 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14345 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14346 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14347 * rust-exp.y (_initialize_rust_exp): Add declaration.
14348 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14349 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14350 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14351 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14352 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14353 * score-tdep.c (_initialize_score_tdep): Add declaration.
14354 * ser-go32.c (_initialize_ser_dos): Add declaration.
14355 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14356 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14357 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14358 * ser-uds.c (_initialize_ser_socket): Add declaration.
14359 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14360 * serial.c (_initialize_serial): Add declaration.
14361 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14362 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14363 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14364 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14365 * skip.c (_initialize_step_skip): Add declaration.
14366 * sol-thread.c (_initialize_sol_thread): Add declaration.
14367 * solib-aix.c (_initialize_solib_aix): Add declaration.
14368 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14369 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14370 * solib-frv.c (_initialize_frv_solib): Add declaration.
14371 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14372 * solib-target.c (_initialize_solib_target): Add declaration.
14373 * solib.c (_initialize_solib): Add declaration.
14374 * source-cache.c (_initialize_source_cache): Add declaration.
14375 * source.c (_initialize_source): Add declaration.
14376 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14377 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14378 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14379 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14380 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14381 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14382 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14383 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14384 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14385 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14386 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14387 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14388 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14389 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14390 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14391 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14392 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14393 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14394 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14395 * stabsread.c (_initialize_stabsread): Add declaration.
14396 * stack.c (_initialize_stack): Add declaration.
14397 * stap-probe.c (_initialize_stap_probe): Add declaration.
14398 * std-regs.c (_initialize_frame_reg): Add declaration.
14399 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14400 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14401 * symfile.c (_initialize_symfile): Add declaration.
14402 * symmisc.c (_initialize_symmisc): Add declaration.
14403 * symtab.c (_initialize_symtab): Add declaration.
14404 * target.c (_initialize_target): Add declaration.
14405 * target-connection.c (_initialize_target_connection): Add
14406 declaration.
14407 * target-dcache.c (_initialize_target_dcache): Add declaration.
14408 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14409 * thread.c (_initialize_thread): Add declaration.
14410 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14411 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14412 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14413 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14414 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14415 * tracectf.c (_initialize_ctf): Add declaration.
14416 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14417 * tracefile.c (_initialize_tracefile): Add declaration.
14418 * tracepoint.c (_initialize_tracepoint): Add declaration.
14419 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14420 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14421 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14422 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14423 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14424 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14425 * tui/tui.c (_initialize_tui): Add declaration.
14426 * typeprint.c (_initialize_typeprint): Add declaration.
14427 * ui-style.c (_initialize_ui_style): Add declaration.
14428 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14429 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14430 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14431 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14432 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14433 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14434 * unittests/filtered_iterator-selftests.c
14435 (_initialize_filtered_iterator_selftests): Add declaration.
14436 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14437 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14438 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14439 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14440 * unittests/main-thread-selftests.c
14441 (_initialize_main_thread_selftests): Add declaration.
14442 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14443 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14444 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14445 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14446 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14447 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14448 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14449 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14450 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14451 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14452 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14453 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14454 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14455 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14456 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14457 declaration.
14458 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14459 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14460 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14461 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14462 * user-regs.c (_initialize_user_regs): Add declaration.
14463 * utils.c (_initialize_utils): Add declaration.
14464 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14465 * valops.c (_initialize_valops): Add declaration.
14466 * valprint.c (_initialize_valprint): Add declaration.
14467 * value.c (_initialize_values): Add declaration.
14468 * varobj.c (_initialize_varobj): Add declaration.
14469 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14470 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14471 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14472 * windows-nat.c (_initialize_windows_nat): Add declaration.
14473 (_initialize_check_for_gdb_ini): Add declaration.
14474 (_initialize_loadable): Add declaration.
14475 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14476 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14477 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14478 * xcoffread.c (_initialize_xcoffread): Add declaration.
14479 * xml-support.c (_initialize_xml_support): Add declaration.
14480 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14481 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14482 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14483 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14484
14485 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14486
14487 * regformats/regdat.sh: Generate declaration for init function.
14488
14489 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14490
14491 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14492 up.
14493 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14494 close_one_inferior>: New methods.
14495 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14496 pass down target to find_inferior_pid.
14497 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14498 Pass down target to find_inferior_ptid.
14499 (gdbsim_target::create_inferior): Pass down target to
14500 add_thread_silent.
14501 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14502 target down to find_inferior_ptid and switch_to_thread.
14503 (gdbsim_target::close): Update to call close_one_inferior.
14504 (struct resume_data): Remove.
14505 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14506 directly, rather than through a void pointer.
14507 (gdbsim_target::resume): Update to call resume_one_inferior.
14508
14509 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14510
14511 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14512
14513 2020-01-12 Pedro Alves <palves@redhat.com>
14514
14515 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14516 directly for the current inferior instead of
14517 discard_all_inferiors.
14518 (discard_all_inferiors): Delete.
14519
14520 2020-01-11 Tom Tromey <tom@tromey.com>
14521
14522 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14523 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14524 deprecated_safe_get_selected_frame.
14525
14526 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14527
14528 * inferior.c (print_inferior): Switch inferior before printing it.
14529
14530 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14531 Pedro Alves <palves@redhat.com>
14532
14533 * progspace-and-thread.c (switch_to_program_space_and_thread):
14534 Assert there's an inferior for PSPACE. Use
14535 switch_to_inferior_no_thread to switch the inferior too.
14536 * progspace.c (program_space::~program_space): Call
14537 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14538 (program_space::free_all_objfiles): Don't call clear_symtab_users
14539 here.
14540 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14541
14542 2020-01-10 Pedro Alves <palves@redhat.com>
14543
14544 * NEWS: Mention multi-target debugging, "info connections", and
14545 "add-inferior -no-connection".
14546
14547 2020-01-10 Pedro Alves <palves@redhat.com>
14548
14549 * infrun.c: Include "target-connection.h".
14550 (check_multi_target_resumption): New.
14551 (proceed): Call it.
14552 * target-connection.c (make_target_connection_string): Make
14553 extern.
14554 * target-connection.h (make_target_connection_string): Declare.
14555
14556 2020-01-10 Pedro Alves <palves@redhat.com>
14557
14558 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14559 * inferior.c (uiout_field_connection): New function.
14560 (print_inferior): Add new "connection-id" column.
14561 (add_inferior_command): Show connection number/string of added
14562 inferior.
14563 * process-stratum-target.h
14564 (process_stratum_target::connection_string): New virtual method.
14565 (process_stratum_target::connection_number): New field.
14566 * remote.c (remote_target::connection_string): New override.
14567 * target-connection.c: New file.
14568 * target-connection.h: New file.
14569 * target.c (decref_target): Remove process_stratum targets from
14570 the connection list.
14571 (target_stack::push): Add process_stratum targets to the
14572 connection list.
14573
14574 2020-01-10 Pedro Alves <palves@redhat.com>
14575
14576 Revert:
14577 2016-04-12 Pedro Alves <palves@redhat.com>
14578 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14579 Remove references to name.
14580 * serial.h (struct serial) <name>: Delete.
14581
14582 2020-01-10 Pedro Alves <palves@redhat.com>
14583
14584 * gdbarch-selftests.c (register_to_value_test): Remove "target
14585 already pushed" check.
14586
14587 2020-01-10 Pedro Alves <palves@redhat.com>
14588 John Baldwin <jhb@FreeBSD.org>
14589
14590 * aarch64-linux-nat.c
14591 (aarch64_linux_nat_target::thread_architecture): Adjust.
14592 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14593 (task_command_1): Likewise.
14594 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14595 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14596 (aix_thread_target::store_registers)
14597 (aix_thread_target::thread_alive): Adjust.
14598 * amd64-fbsd-tdep.c: Include "inferior.h".
14599 (amd64fbsd_get_thread_local_address): Pass down target.
14600 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14601 thread's gdbarch instead of target_gdbarch.
14602 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14603 get_last_target_status.
14604 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14605 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14606 inferiors.
14607 (update_inserted_breakpoint_locations): Skip if inferiors with no
14608 execution.
14609 (update_global_location_list): When handling moribund locations,
14610 find representative inferior for location's pspace, and use thread
14611 count of its process_stratum target.
14612 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14613 * bsd-uthread.c (bsd_uthread_target::wait): Use
14614 as_process_stratum_target and adjust thread_change_ptid and
14615 add_thread calls.
14616 (bsd_uthread_target::update_thread_list): Use
14617 as_process_stratum_target and adjust find_thread_ptid,
14618 thread_change_ptid and add_thread calls.
14619 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14620 find_thread_ptid call.
14621 * corelow.c (add_to_thread_list): Adjust add_thread call.
14622 (core_target_open): Adjust add_thread_silent and thread_count
14623 calls.
14624 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14625 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14626 * event-top.c (async_disconnect): Pop targets from all inferiors.
14627 * exec.c (add_target_sections): Push exec target on all inferiors
14628 sharing the program space.
14629 (remove_target_sections): Remove the exec target from all
14630 inferiors sharing the program space.
14631 (exec_on_vfork): New.
14632 * exec.h (exec_on_vfork): Declare.
14633 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14634 Pass it down.
14635 (fbsd_nat_target::update_thread_list): Adjust.
14636 (fbsd_nat_target::resume): Adjust.
14637 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14638 down.
14639 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14640 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14641 get_thread_arch_regcache call.
14642 * fork-child.c (gdb_startup_inferior): Pass target down to
14643 startup_inferior and set_executing.
14644 * gdbthread.h (struct process_stratum_target): Forward declare.
14645 (add_thread, add_thread_silent, add_thread_with_info)
14646 (in_thread_list): Add process_stratum_target parameter.
14647 (find_thread_ptid(inferior*, ptid_t)): New overload.
14648 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14649 parameter.
14650 (all_threads()): Delete overload.
14651 (all_threads, all_non_exited_threads): Add process_stratum_target
14652 parameter.
14653 (all_threads_safe): Use brace initialization.
14654 (thread_count): Add process_stratum_target parameter.
14655 (set_resumed, set_running, set_stop_requested, set_executing)
14656 (threads_are_executing, finish_thread_state): Add
14657 process_stratum_target parameter.
14658 (switch_to_thread): Use is_current_thread.
14659 * i386-fbsd-tdep.c: Include "inferior.h".
14660 (i386fbsd_get_thread_local_address): Pass down target.
14661 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14662 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14663 have_inferiors check.
14664 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14665 (inf_ptrace_target::attach): Adjust.
14666 * infcall.c (run_inferior_call): Adjust.
14667 * infcmd.c (run_command_1): Pass target to
14668 scoped_finish_thread_state.
14669 (proceed_thread_callback): Skip inferiors with no execution.
14670 (continue_command): Rename 'all_threads' local to avoid hiding
14671 'all_threads' function. Adjust get_last_target_status call.
14672 (prepare_one_step): Adjust set_running call.
14673 (signal_command): Use user_visible_resume_target. Compare thread
14674 pointers instead of inferior_ptid.
14675 (info_program_command): Adjust to pass down target.
14676 (attach_command): Mark target's 'thread_executing' flag.
14677 (stop_current_target_threads_ns): New, factored out from ...
14678 (interrupt_target_1): ... this. Switch inferior before making
14679 target calls.
14680 * inferior-iter.h
14681 (struct all_inferiors_iterator, struct all_inferiors_range)
14682 (struct all_inferiors_safe_range)
14683 (struct all_non_exited_inferiors_range): Filter on
14684 process_stratum_target too. Remove explicit.
14685 * inferior.c (inferior::inferior): Push dummy target on target
14686 stack.
14687 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14688 Add process_stratum_target parameter, and pass it down.
14689 (have_live_inferiors): Adjust.
14690 (switch_to_inferior_and_push_target): New.
14691 (add_inferior_command, clone_inferior_command): Handle
14692 "-no-connection" parameter. Use
14693 switch_to_inferior_and_push_target.
14694 (_initialize_inferior): Mention "-no-connection" option in
14695 the help of "add-inferior" and "clone-inferior" commands.
14696 * inferior.h: Include "process-stratum-target.h".
14697 (interrupt_target_1): Use bool.
14698 (struct inferior) <push_target, unpush_target, target_is_pushed,
14699 find_target_beneath, top_target, process_target, target_at,
14700 m_stack>: New.
14701 (discard_all_inferiors): Delete.
14702 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14703 (all_inferiors, all_non_exited_inferiors): Add
14704 process_stratum_target parameter.
14705 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14706 (target_last_proc_target): New global.
14707 (follow_fork_inferior): Push target on new inferior. Pass target
14708 to add_thread_silent. Call exec_on_vfork. Handle target's
14709 reference count.
14710 (follow_fork): Adjust get_last_target_status call. Also consider
14711 target.
14712 (follow_exec): Push target on new inferior.
14713 (struct execution_control_state) <target>: New field.
14714 (user_visible_resume_target): New.
14715 (do_target_resume): Call target_async.
14716 (resume_1): Set target's threads_executing flag. Consider resume
14717 target.
14718 (commit_resume_all_targets): New.
14719 (proceed): Also consider resume target. Skip threads of inferiors
14720 with no execution. Commit resumtion in all targets.
14721 (start_remote): Pass current inferior to wait_for_inferior.
14722 (infrun_thread_stop_requested): Consider target as well. Pass
14723 thread_info pointer to clear_inline_frame_state instead of ptid.
14724 (infrun_thread_thread_exit): Consider target as well.
14725 (random_pending_event_thread): New inferior parameter. Use it.
14726 (do_target_wait): Rename to ...
14727 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14728 down.
14729 (threads_are_resumed_pending_p, do_target_wait): New.
14730 (prepare_for_detach): Adjust calls.
14731 (wait_for_inferior): New inferior parameter. Handle it. Use
14732 do_target_wait_1 instead of do_target_wait.
14733 (fetch_inferior_event): Adjust. Switch to representative
14734 inferior. Pass target down.
14735 (set_last_target_status): Add process_stratum_target parameter.
14736 Save target in global.
14737 (get_last_target_status): Add process_stratum_target parameter and
14738 handle it.
14739 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14740 (context_switch): Check inferior_ptid == null_ptid before calling
14741 inferior_thread().
14742 (get_inferior_stop_soon): Pass down target.
14743 (wait_one): Rename to ...
14744 (poll_one_curr_target): ... this.
14745 (struct wait_one_event): New.
14746 (wait_one): New.
14747 (stop_all_threads): Adjust.
14748 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14749 event's target.
14750 (switch_back_to_stepped_thread): Also consider target.
14751 (print_stop_event): Update.
14752 (normal_stop): Update. Also consider the resume target.
14753 * infrun.h (wait_for_inferior): Remove declaration.
14754 (user_visible_resume_target): New declaration.
14755 (get_last_target_status, set_last_target_status): New
14756 process_stratum_target parameter.
14757 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14758 process_stratum_target parameter, and use it.
14759 (clear_inline_frame_state (thread_info*)): New.
14760 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14761 process_stratum_target parameter.
14762 (clear_inline_frame_state (thread_info*)): Declare.
14763 * linux-fork.c (delete_checkpoint_command): Pass target down to
14764 find_thread_ptid.
14765 (checkpoint_command): Adjust.
14766 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14767 instead of just tweaking inferior_ptid.
14768 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14769 (exit_lwp): Pass target down to find_thread_ptid.
14770 (attach_proc_task_lwp_callback): Pass target down to
14771 add_thread/set_running/set_executing.
14772 (linux_nat_target::attach): Pass target down to
14773 thread_change_ptid.
14774 (get_detach_signal): Pass target down to find_thread_ptid.
14775 Consider last target status's target.
14776 (linux_resume_one_lwp_throw, resume_lwp)
14777 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14778 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14779 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14780 (linux_nat_target::async_wait_fd): New.
14781 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14782 target down.
14783 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14784 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14785 * linux-thread-db.c (struct thread_db_info::process_target): New
14786 field.
14787 (add_thread_db_info): Save target.
14788 (get_thread_db_info): New process_stratum_target parameter. Also
14789 match target.
14790 (delete_thread_db_info): New process_stratum_target parameter.
14791 Also match target.
14792 (thread_from_lwp): Adjust to pass down target.
14793 (thread_db_notice_clone): Pass down target.
14794 (check_thread_db_callback): Pass down target.
14795 (try_thread_db_load_1): Always push the thread_db target.
14796 (try_thread_db_load, record_thread): Pass target down.
14797 (thread_db_target::detach): Pass target down. Always unpush the
14798 thread_db target.
14799 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14800 target down. Always unpush the thread_db target.
14801 (find_new_threads_callback, thread_db_find_new_threads_2)
14802 (thread_db_target::update_thread_list): Pass target down.
14803 (thread_db_target::pid_to_str): Pass current inferior down.
14804 (thread_db_target::get_thread_local_address): Pass target down.
14805 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14806 target down.
14807 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14808 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14809 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14810 (procfs_init_inferior): Rename to ...
14811 (procfs_target::procfs_init_inferior): ... this and adjust.
14812 (procfs_target::create_inferior, procfs_notice_thread)
14813 (procfs_do_thread_registers): Adjust.
14814 * ppc-fbsd-tdep.c: Include "inferior.h".
14815 (ppcfbsd_get_thread_local_address): Pass down target.
14816 * proc-service.c (ps_xfer_memory): Switch current inferior and
14817 program space as well.
14818 (get_ps_regcache): Pass target down.
14819 * process-stratum-target.c
14820 (process_stratum_target::thread_address_space)
14821 (process_stratum_target::thread_architecture): Pass target down.
14822 * process-stratum-target.h
14823 (process_stratum_target::threads_executing): New field.
14824 (as_process_stratum_target): New.
14825 * ravenscar-thread.c
14826 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14827 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14828 down.
14829 * record-btrace.c (record_btrace_target::info_record): Adjust.
14830 (record_btrace_target::record_method)
14831 (record_btrace_target::record_is_replaying)
14832 (record_btrace_target::fetch_registers)
14833 (get_thread_current_frame_id, record_btrace_target::resume)
14834 (record_btrace_target::wait, record_btrace_target::stop): Pass
14835 target down.
14836 * record-full.c (record_full_wait_1): Switch to event thread.
14837 Pass target down.
14838 * regcache.c (regcache::regcache)
14839 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14840 process_stratum_target parameter and handle it.
14841 (current_thread_target): New global.
14842 (get_thread_regcache): Add process_stratum_target parameter and
14843 handle it. Switch inferior before calling target method.
14844 (get_thread_regcache): Pass target down.
14845 (get_thread_regcache_for_ptid): Pass target down.
14846 (registers_changed_ptid): Add process_stratum_target parameter and
14847 handle it.
14848 (registers_changed_thread, registers_changed): Pass target down.
14849 (test_get_thread_arch_aspace_regcache): New.
14850 (current_regcache_test): Define a couple local test_target_ops
14851 instances and use them for testing.
14852 (readwrite_regcache): Pass process_stratum_target parameter.
14853 (cooked_read_test, cooked_write_test): Pass mock_target down.
14854 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14855 (get_thread_arch_aspace_regcache): Add process_stratum_target
14856 parameter.
14857 (regcache::target): New method.
14858 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14859 (regcache::registers_changed_ptid): Add process_stratum_target
14860 parameter.
14861 (regcache::m_target): New field.
14862 (registers_changed_ptid): Add process_stratum_target parameter.
14863 * remote.c (remote_state::supports_vCont_probed): New field.
14864 (remote_target::async_wait_fd): New method.
14865 (remote_unpush_and_throw): Add remote_target parameter.
14866 (get_current_remote_target): Adjust.
14867 (remote_target::remote_add_inferior): Push target.
14868 (remote_target::remote_add_thread)
14869 (remote_target::remote_notice_new_inferior)
14870 (get_remote_thread_info): Pass target down.
14871 (remote_target::update_thread_list): Skip threads of inferiors
14872 bound to other targets. (remote_target::close): Don't discard
14873 inferiors. (remote_target::add_current_inferior_and_thread)
14874 (remote_target::process_initial_stop_replies)
14875 (remote_target::start_remote)
14876 (remote_target::remote_serial_quit_handler): Pass down target.
14877 (remote_target::remote_unpush_target): New remote_target
14878 parameter. Unpush the target from all inferiors.
14879 (remote_target::remote_unpush_and_throw): New remote_target
14880 parameter. Pass it down.
14881 (remote_target::open_1): Check whether the current inferior has
14882 execution instead of checking whether any inferior is live. Pass
14883 target down.
14884 (remote_target::remote_detach_1): Pass down target. Use
14885 remote_unpush_target.
14886 (extended_remote_target::attach): Pass down target.
14887 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14888 (remote_target::append_resumption): Pass down target.
14889 (remote_target::append_pending_thread_resumptions)
14890 (remote_target::remote_resume_with_hc, remote_target::resume)
14891 (remote_target::commit_resume): Pass down target.
14892 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14893 (remote_target::interrupt_query)
14894 (remote_target::remove_new_fork_children)
14895 (remote_target::check_pending_events_prevent_wildcard_vcont)
14896 (remote_target::remote_parse_stop_reply)
14897 (remote_target::process_stop_reply): Pass down target.
14898 (first_remote_resumed_thread): New remote_target parameter. Pass
14899 it down.
14900 (remote_target::wait_as): Pass down target.
14901 (unpush_and_perror): New remote_target parameter. Pass it down.
14902 (remote_target::readchar, remote_target::remote_serial_write)
14903 (remote_target::getpkt_or_notif_sane_1)
14904 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14905 down target.
14906 (remote_target::mourn_inferior): Pass down target. Use
14907 remote_unpush_target.
14908 (remote_target::core_of_thread)
14909 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14910 (remote_target::pid_to_exec_file)
14911 (remote_target::thread_handle_to_thread_info): Pass down target.
14912 (remote_target::async_wait_fd): New.
14913 * riscv-fbsd-tdep.c: Include "inferior.h".
14914 (riscv_fbsd_get_thread_local_address): Pass down target.
14915 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14916 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14917 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14918 Adjust.
14919 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14920 * solib-svr4.c (enable_break): Pass down target.
14921 * spu-multiarch.c (parse_spufs_run): Pass down target.
14922 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14923 * target-delegates.c: Regenerate.
14924 * target.c (g_target_stack): Delete.
14925 (current_top_target): Return the current inferior's top target.
14926 (target_has_execution_1): Refer to the passed-in inferior's top
14927 target.
14928 (target_supports_terminal_ours): Check whether the initial
14929 inferior was already created.
14930 (decref_target): New.
14931 (target_stack::push): Incref/decref the target.
14932 (push_target, push_target, unpush_target): Adjust.
14933 (target_stack::unpush): Defref target.
14934 (target_is_pushed): Return bool. Adjust to refer to the current
14935 inferior's target stack.
14936 (dispose_inferior): Delete, and inline parts ...
14937 (target_preopen): ... here. Only dispose of the current inferior.
14938 (target_detach): Hold strong target reference while detaching.
14939 Pass target down.
14940 (target_thread_name): Add assertion.
14941 (target_resume): Pass down target.
14942 (target_ops::beneath, find_target_at): Adjust to refer to the
14943 current inferior's target stack.
14944 (get_dummy_target): New.
14945 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14946 has a thread running.
14947 (initialize_targets): Rename to ...
14948 (_initialize_target): ... this.
14949 * target.h: Include "gdbsupport/refcounted-object.h".
14950 (struct target_ops): Inherit refcounted_object.
14951 (target_ops::shortname, target_ops::longname): Make const.
14952 (target_ops::async_wait_fd): New method.
14953 (decref_target): Declare.
14954 (struct target_ops_ref_policy): New.
14955 (target_ops_ref): New typedef.
14956 (get_dummy_target): Declare function.
14957 (target_is_pushed): Return bool.
14958 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14959 (all_matching_threads_iterator::all_matching_threads_iterator):
14960 Handle filter target.
14961 * thread-iter.h (struct all_matching_threads_iterator, struct
14962 all_matching_threads_range, class all_non_exited_threads_range):
14963 Filter by target too. Remove explicit.
14964 * thread.c (threads_executing): Delete.
14965 (inferior_thread): Pass down current inferior.
14966 (clear_thread_inferior_resources): Pass down thread pointer
14967 instead of ptid_t.
14968 (add_thread_silent, add_thread_with_info, add_thread): Add
14969 process_stratum_target parameter. Use it for thread and inferior
14970 searches.
14971 (is_current_thread): New.
14972 (thread_info::deletable): Use it.
14973 (find_thread_ptid, thread_count, in_thread_list)
14974 (thread_change_ptid, set_resumed, set_running): New
14975 process_stratum_target parameter. Pass it down.
14976 (set_executing): New process_stratum_target parameter. Pass it
14977 down. Adjust reference to 'threads_executing'.
14978 (threads_are_executing): New process_stratum_target parameter.
14979 Adjust reference to 'threads_executing'.
14980 (set_stop_requested, finish_thread_state): New
14981 process_stratum_target parameter. Pass it down.
14982 (switch_to_thread): Also match inferior.
14983 (switch_to_thread): New process_stratum_target parameter. Pass it
14984 down.
14985 (update_threads_executing): Reimplement.
14986 * top.c (quit_force): Pop targets from all inferior.
14987 (gdb_init): Don't call initialize_targets.
14988 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14989 Declare.
14990 (windows_add_thread, windows_delete_thread): Adjust.
14991 (get_windows_debug_event): Rename to ...
14992 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14993 * tracefile-tfile.c (tfile_target_open): Pass down target.
14994 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14995 Forward declare.
14996 (switch_to_thread): Add process_stratum_target parameter.
14997 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14998 parameter. Use it.
14999 (mi_on_resume): Pass target down.
15000 * nat/fork-inferior.c (startup_inferior): Add
15001 process_stratum_target parameter. Pass it down.
15002 * nat/fork-inferior.h (startup_inferior): Add
15003 process_stratum_target parameter.
15004 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15005
15006 2020-01-10 Pedro Alves <palves@redhat.com>
15007
15008 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15009 directly. Instead find the first thread in the thread list and
15010 use switch_to_thread.
15011
15012 2020-01-10 Pedro Alves <palves@redhat.com>
15013
15014 * remote.c (remote_target::remote_add_inferior): Don't bind a
15015 process to the current inferior if the current inferior is already
15016 bound to a process.
15017
15018 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15019 Pedro Alves <palves@redhat.com>
15020
15021 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15022 If no process is specified, return null_ptid instead of
15023 inferior_ptid.
15024 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15025 TARGET_WAITKIND_SIGNALLED with no pid.
15026
15027 2020-01-10 Pedro Alves <palves@redhat.com>
15028
15029 * remote.c (first_remote_resumed_thread): New.
15030 (remote_target::wait_as): Use it as default event_ptid instead of
15031 inferior_ptid.
15032
15033 2020-01-10 Pedro Alves <palves@redhat.com>
15034
15035 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15036
15037 2020-01-10 Pedro Alves <palves@redhat.com>
15038
15039 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15040 not -1.
15041
15042 2020-01-10 Pedro Alves <palves@redhat.com>
15043
15044 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15045 ptid to get_last_target_status.
15046 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15047 ptid to get_last_target_status.
15048 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15049 get_last_target_status.
15050 (info_program_command): Don't pass a target_waitstatus to
15051 get_last_target_status.
15052 * infrun.c (init_wait_for_inferior): Use
15053 nullify_last_target_wait_ptid.
15054 (get_last_target_status): Handle nullptr arguments.
15055 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15056 (print_stop_event): Don't pass a ptid to get_last_target_status.
15057 (normal_stop): Don't pass a ptid to get_last_target_status.
15058 * infrun.h (get_last_target_status, set_last_target_status): Move
15059 comments here and update.
15060 (nullify_last_target_wait_ptid): Declare.
15061 * linux-fork.c (fork_load_infrun_state): Remove local extern
15062 declaration of nullify_last_target_wait_ptid.
15063 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15064 to get_last_target_status.
15065
15066 2020-01-10 Pedro Alves <palves@redhat.com>
15067
15068 * gdbthread.h (scoped_restore_current_thread)
15069 <dont_restore, restore, m_dont_restore>: Declare.
15070 * thread.c (thread_alive): Add assertion. Return bool.
15071 (switch_to_thread_if_alive): New.
15072 (prune_threads): Switch inferior/thread.
15073 (print_thread_info_1): Switch thread before calling target methods.
15074 (scoped_restore_current_thread::restore): New, factored out from
15075 ...
15076 (scoped_restore_current_thread::~scoped_restore_current_thread):
15077 ... this.
15078 (scoped_restore_current_thread::scoped_restore_current_thread):
15079 Add assertion.
15080 (thread_apply_all_command, thread_select): Use
15081 switch_to_thread_if_alive.
15082 * infrun.c (proceed, restart_threads, handle_signal_stop)
15083 (switch_back_to_stepped_thread): Switch current thread before
15084 calling target methods.
15085
15086 2020-01-10 Pedro Alves <palves@redhat.com>
15087
15088 * inferior.c (switch_to_inferior_no_thread): New function,
15089 factored out from ...
15090 (inferior_command): ... here.
15091 * inferior.h (switch_to_inferior_no_thread): Declare.
15092 * mi/mi-main.c (run_one_inferior): Use
15093 switch_to_inferior_no_thread.
15094
15095 2020-01-10 Pedro Alves <palves@redhat.com>
15096
15097 * infcmd.c (kill_command): Remove dead code.
15098
15099 2020-01-10 Pedro Alves <palves@redhat.com>
15100
15101 * remote.c (remote_target::mourn_inferior): No longer check
15102 whether the target is running.
15103
15104 2020-01-10 Pedro Alves <palves@redhat.com>
15105
15106 * corelow.c (core_target::has_execution): Change parameter type to
15107 inferior pointer.
15108 * inferior.c (number_of_live_inferiors): Use
15109 inferior::has_execution instead of target_has_execution_1.
15110 * inferior.h (inferior::has_execution): New.
15111 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15112 inferior::has_execution instead of target_has_execution_1.
15113 * process-stratum-target.c
15114 (process_stratum_target::has_execution): Change parameter type to
15115 inferior pointer. Check the inferior's PID instead of
15116 inferior_ptid.
15117 * process-stratum-target.h
15118 (process_stratum_target::has_execution): Change parameter type to
15119 inferior pointer.
15120 * record-full.c (record_full_core_target::has_execution): Change
15121 parameter type to inferior pointer.
15122 * target.c (target_has_execution_1): Change parameter type to
15123 inferior pointer.
15124 (target_has_execution_current): Adjust.
15125 * target.h (target_ops::has_execution): Change parameter type to
15126 inferior pointer.
15127 (target_has_execution_1): Change parameter type to inferior
15128 pointer. Change return type to bool.
15129 * tracefile.h (tracefile_target::has_execution): Change parameter
15130 type to inferior pointer.
15131
15132 2020-01-10 Pedro Alves <palves@redhat.com>
15133
15134 * exceptions.c (print_flush): Remove current_top_target() check.
15135
15136 2020-01-10 Pedro Alves <palves@redhat.com>
15137
15138 * remote.c (show_remote_exec_file): Show the current inferior's
15139 exec-file instead of the command variable's value.
15140
15141 2020-01-10 Pedro Alves <palves@redhat.com>
15142
15143 * record-full.c (record_full_resume_ptid): New global.
15144 (record_full_target::resume): Set it.
15145 (record_full_wait_1): Use record_full_resume_ptid instead of
15146 inferior_ptid.
15147
15148 2020-01-10 Pedro Alves <palves@redhat.com>
15149
15150 * gdbthread.h (scoped_restore_current_thread)
15151 <dont_restore, restore, m_dont_restore>: Declare.
15152 * thread.c (thread_alive): Add assertion. Return bool.
15153 (switch_to_thread_if_alive): New.
15154 (prune_threads): Switch inferior/thread.
15155 (print_thread_info_1): Switch thread before calling target methods.
15156 (scoped_restore_current_thread::restore): New, factored out from
15157 ...
15158 (scoped_restore_current_thread::~scoped_restore_current_thread):
15159 ... this.
15160 (scoped_restore_current_thread::scoped_restore_current_thread):
15161 Add assertion.
15162 (thread_apply_all_command, thread_select): Use
15163 switch_to_thread_if_alive.
15164
15165 2020-01-10 George Barrett <bob@bob131.so>
15166
15167 * stap-probe.c (stap_modify_semaphore): Don't check for null
15168 semaphores.
15169 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15170 for null semaphores.
15171
15172 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15173
15174 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15175 all source windows, and maintain horizontal scroll status while
15176 doing so.
15177
15178 2020-01-09 Tom Tromey <tom@tromey.com>
15179
15180 PR tui/18932:
15181 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15182 update_source_window, not print_source_lines.
15183
15184 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15185
15186 * tui/tui.c (tui_enable): Register tui hooks after calling
15187 tui_display_main.
15188
15189 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15190
15191 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15192
15193 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15194
15195 * thread.c (print_thread_info_1): Fix indentation.
15196
15197 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15198
15199 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15200 unique_xmalloc_ptr outside the if to always free the demangled name.
15201
15202 2020-01-08 Tom Tromey <tromey@adacore.com>
15203
15204 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15205 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15206 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15207 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15208 Remove.
15209 (section_offsets): New typedef.
15210 * symtab.c (fixup_section, get_msymbol_address): Update.
15211 * symmisc.c (dump_msymbols): Update.
15212 * symfile.h (relative_addr_info_to_section_offsets)
15213 (symfile_map_offsets_to_segments): Update.
15214 * symfile.c (build_section_addr_info_from_objfile)
15215 (init_objfile_sect_indices): Update.
15216 (struct place_section_arg): Change type of "offsets".
15217 (place_section): Update.
15218 (relative_addr_info_to_section_offsets): Change type of
15219 "section_offsets". Remove "num_sections" parameter.
15220 (default_symfile_offsets, syms_from_objfile_1)
15221 (set_objfile_default_section_offset): Update.
15222 (reread_symbols): No need to preserve section offsets by hand.
15223 (symfile_map_offsets_to_segments): Change type of "offsets".
15224 * stap-probe.c (relocate_address): Update.
15225 * stabsread.h (process_one_symbol): Update.
15226 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15227 (solib_target_relocate_section_addresses): Update.
15228 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15229 Update.
15230 * solib-frv.c (frv_relocate_main_executable): Update.
15231 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15232 * solib-aix.c (solib_aix_get_section_offsets): Change return
15233 type.
15234 (solib_aix_solib_create_inferior_hook): Update.
15235 * remote.c (remote_target::get_offsets): Update.
15236 * psymtab.c (find_pc_sect_psymtab): Update.
15237 * psympriv.h (struct partial_symbol) <address, text_low,
15238 text_high>: Update.
15239 * objfiles.h (obj_section_offset): Update.
15240 (struct objfile) <section_offsets>: Change type.
15241 <num_sections>: Remove.
15242 (objfile_relocate): Update.
15243 * objfiles.c (entry_point_address_query): Update
15244 (relocate_one_symbol): Change type of "section_offsets".
15245 (objfile_relocate1, objfile_relocate1): Change type of
15246 "new_offsets".
15247 (objfile_rebase1): Update.
15248 * mipsread.c (mipscoff_symfile_read): Update.
15249 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15250 parameter.
15251 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15252 (parse_external, psymtab_to_symtab_1): Update.
15253 * machoread.c (macho_symfile_offsets): Update.
15254 * ia64-tdep.c (ia64_find_unwind_table): Update.
15255 * hppa-tdep.c (read_unwind_info): Update.
15256 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15257 * dwarf2read.c (create_addrmap_from_index)
15258 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15259 (process_psymtab_comp_unit_reader, add_partial_symbol)
15260 (add_partial_subprogram, process_full_comp_unit)
15261 (read_file_scope, read_func_scope, read_lexical_block_scope)
15262 (read_call_site_scope, dwarf2_rnglists_process)
15263 (dwarf2_ranges_process, dwarf2_ranges_read)
15264 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15265 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15266 Update.
15267 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15268 Update.
15269 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15270 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15271 (process_one_symbol): Change type of "section_offsets".
15272 * ctfread.c (get_objfile_text_range): Update.
15273 * coffread.c (coff_symtab_read, enter_linenos)
15274 (process_coff_symbol): Update.
15275 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15276 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15277
15278 2020-01-08 Tom Tromey <tromey@adacore.com>
15279
15280 * dwarf2read.c (parse_macro_definition): Use std::string.
15281 (parse_macro_definition): Likewise.
15282
15283 2020-01-08 Tom Tromey <tromey@adacore.com>
15284
15285 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15286 (ATTR_ALLOC_CHUNK): Remove.
15287
15288 2020-01-08 Tom Tromey <tromey@adacore.com>
15289
15290 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15291
15292 2020-01-08 Tom Tromey <tromey@adacore.com>
15293
15294 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15295 (dwarf2_compute_name, open_dwo_file): Likewise.
15296 (process_enumeration_scope): Use std::vector.
15297 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15298 (partial_die_info::fixup, dwarf2_start_subfile)
15299 (guess_full_die_structure_name, dwarf2_name): Likewise.
15300 (determine_prefix): Update.
15301 (guess_full_die_structure_name): Make return type const.
15302 (partial_die_full_name): Return unique_xmalloc_ptr.
15303 (DW_FIELD_ALLOC_CHUNK): Remove.
15304
15305 2020-01-07 Tom Tromey <tromey@adacore.com>
15306
15307 PR build/24937:
15308 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15309
15310 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15311
15312 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15313
15314 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15315
15316 * stack.c (print_frame_info): Move disassemble_next_line code
15317 inside source_print block.
15318
15319 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15320
15321 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15322 gdb/signals.h, as we are now using native signal symbols.
15323
15324 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15325
15326 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15327 overflow by an early check of content vs threshold.
15328 * tui/tui-source.c (tui_source_window::line_is_displayed):
15329 Likewise.
15330
15331 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15332
15333 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15334
15335 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15336
15337 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15338 export table if no section contains it's RVA.
15339
15340 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15341
15342 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15343
15344 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15345
15346 * source.c (print_source_lines_base): Set last_line_listed.
15347
15348 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15349
15350 * tui/tui-disasm.c: Remove trailing spaces.
15351
15352 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15353 Pedro Alves <palves@redhat.com>
15354
15355 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15356 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15357 (windows_gdb_signal_to_target): New function, uses the above
15358 enumeration to convert GDB internal signal codes to equivalent
15359 Windows codes.
15360 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15361 * windows-nat.c: Include "gdb_wait.h".
15362 (get_windows_debug_event): Extract the fatal exception from the
15363 exit status and convert to the equivalent Posix signal number.
15364 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15365 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15366 * gdbsupport/gdb_wait.c: New file, implements
15367 windows_status_to_termsig.
15368 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15369 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15370
15371 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15372
15373 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15374 show_layout.
15375
15376 2020-01-05 Luis Machado <luis.machado@linaro.org>
15377
15378 * aarch64-linux-nat.c
15379 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15380 and bfd_mach_aarch64.
15381
15382 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15383
15384 * ui-file.c (stdio_file::can_emit_style_escape)
15385 (tee_file::can_emit_style_escape): Ensure style is used also on
15386 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15387 to gdb_stdout.
15388 * main.c (set_gdb_data_directory): Use file style to output the
15389 warning that the given pathname is not a directory.
15390 * top.c (show_history_filename, gdb_safe_append_history)
15391 (show_gdb_datadir): Use file style.
15392
15393 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15394
15395 * solib-target.c (struct lm_info_target):
15396 Change offsets to be a unique_xmalloc_ptr.
15397 (solib_target_relocate_section_addresses): Update.
15398
15399 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15400
15401 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15402
15403 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15404
15405 * MAINTAINERS (Write After Approval): Add myself.
15406
15407 2020-01-02 Luis Machado <luis.machado@linaro.org>
15408
15409 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15410 Cell BE architecture.
15411 * target.h (struct target_ops) <thread_architecture>: Likewise.
15412
15413 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15414
15415 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15416
15417 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15418
15419 * MAINTAINERS (Write After Approval): Add myself.
15420
15421 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15422
15423 * gdbarch.sh: Update copyright year range of generated files.
15424
15425 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15426
15427 Update copyright year range in all GDB files.
15428
15429 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15430
15431 * copyright.py: Convert to Python 3.
15432
15433 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15434
15435 * copyright.py: Adapt after move of gnulib directory from gdb
15436 directory to toplevel directory.
15437
15438 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15439
15440 * copyright.py (main): Exit if run from the wrong directory.
15441
15442 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15443
15444 * top.c (print_gdb_version): Change copyright year to 2020.
15445
15446 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15447
15448 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15449
15450 For older changes see ChangeLog-2019.
15451 \f
15452 Local Variables:
15453 mode: change-log
15454 left-margin: 8
15455 fill-column: 74
15456 version-control: never
15457 coding: utf-8
15458 End:
This page took 0.372329 seconds and 5 git commands to generate.