gdb: remove unused macros from target-debug.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * target-debug.h (target_debug_print_struct_target_ops_p):
4 Remove.
5 (target_debug_print_async_callback_ftype_p): Remove.
6 (target_debug_print_struct_trace_state_variable_p): Remove.
7 (target_debug_print_struct_traceframe_info_p): Remove.
8 (target_debug_print_VEC__btrace_block_s__pp): Remove.
9 (target_debug_print_enum_btrace_format): Remove.
10 (target_debug_print_enum_info_proc_what): Remove.
11 (target_debug_print_thread_info_pp): Remove.
12
13 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
14
15 * target.h (struct target_ops) <make_corefile_notes>:
16 Change return type to unique pointer.
17 * target.c (dummy_make_corefile_notes): Likewise.
18 * exec.c (struct exec_target) <make_corefile_notes>:
19 Likewise.
20 (exec_target::make_corefile_notes): Likewise.
21 * procfs.c (class procfs_target) <make_corefile_notes>:
22 Likewise.
23 (procfs_do_thread_registers): Adjust to unique pointer.
24 (struct procfs_corefile_thread_data): Add constructor.
25 <note_data>: Change type to unique pointer.
26 (procfs_corefile_thread_callback): Adjust to unique pointer.
27 (procfs_target::make_corefile_notes): Change return type to
28 unique pointer.
29 * target-delegates.c: Re-generate.
30 * gcore.c (write_gcore_file_1): Adjust.
31 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
32 New.
33
34 2020-10-22 Tom de Vries <tdevries@suse.de>
35
36 * block.c (find_block_in_blockvector): Make sure the returned block
37 contains pc.
38
39 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
40
41 PR gdb/26693
42 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
43 parameter.
44 (load_cu): Pass existing CU.
45 (process_imported_unit_die): Likewise.
46 (follow_die_offset): Likewise.
47
48 2020-10-22 Luis Machado <luis.machado@linaro.org>
49
50 * corelow.c (core_target::xfer_partial): Also check for an empty
51 m_core_unavailable_mappings vector.
52
53 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
56 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
57 * f-exp.y (arglist): Allow for a series of subranges.
58 (subrange): Add cases for subranges with strides.
59 * f-lang.c (value_f90_subarray): Catch use of array strides and
60 throw an error.
61 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
62
63 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * expprint.c (print_subexp_standard): Change enum range_type to
66 range_flag and rename variables to match.
67 (dump_subexp_body_standard): Likewise.
68 * expression.h (enum range_type): Rename to...
69 (enum range_flag): ...this.
70 (range_types): Rename to...
71 (range_flags): ...this.
72 * f-lang.c (value_f90_subarray): Change enum range_type to
73 range_flag and rename variables to match.
74 * parse.c (operator_length_standard): Likewise.
75 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
76 range_type to range_flag.
77 * rust-lang.c (rust_evaluate_funcall): Likewise.
78 (rust_range): Likewise.
79 (rust_compute_range): Likewise.
80 (rust_subscript): Likewise.
81
82 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * expprint.c (print_subexp_standard): Update to reflect changes to
85 enum range_type.
86 (dump_subexp_body_standard): Likewise.
87 * expression.h (enum range_type): Convert to a bit field enum, and
88 make the enum unsigned.
89 * f-exp.y (subrange): Update to reflect changes to enum
90 range_type.
91 * f-lang.c (value_f90_subarray): Likewise.
92 * parse.c (operator_length_standard): Likewise.
93 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
94 * rust-lang.c (rust_range): Likewise.
95 (rust_compute_range): Likewise.
96 (rust_subscript): Likewise.
97
98 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
99
100 * infrun.c (displaced_step_in_progress_thread): Fix comment.
101 (displaced_step_in_progress): Fix comment.
102
103 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * gdbarch.sh (make_corefile_notes): Return unique pointer.
106 * gdbarch.c: Re-generate.
107 * gdbarch.h: Re-generate.
108 * gcore.c (write_gcore_file_1): Adjust.
109 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
110 constructor.
111 <note_data>: Change type to unique pointer.
112 <abort_iteration>: Change type to bool.
113 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
114 (fbsd_collect_thread_registers): Return void, adjust.
115 (struct fbsd_corefile_thread_data): Add construtor.
116 <note_data>: Change type to unique pointer.
117 (fbsd_corefile_thread): Adjust.
118 (fbsd_make_corefile_notes): Return unique pointer, adjust.
119 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
120 to unique pointer, adjust.
121 (struct linux_collect_regset_section_cb_data): Add constructor.
122 <note_data>: Change type to unique pointer.
123 <abort_iteration>: Change type to bool.
124 (linux_collect_thread_registers): Return void, adjust.
125 (struct linux_corefile_thread_data): Add constructor.
126 <note_data>: Change type to unique pointer.
127 (linux_corefile_thread): Adjust.
128 (linux_make_corefile_notes): Return unique pointer, adjust.
129
130 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
133 * gdbarch.c: Re-generate.
134 * gdbarch.h: Re-generate.
135 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
136 bool.
137 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
138 Likewise.
139 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
140 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
141 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
142 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
143
144 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * gdbarch.sh: Make generated predicates return bool.
147 * gdbarch.c: Re-generate.
148 * gdbarch.h: Re-generate.
149
150 2020-10-20 Tom Tromey <tom@tromey.com>
151
152 * varobj-iter.h (struct varobj_item): Remove typedef.
153
154 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
155
156 * infrun.c (currently_stepping): Change int to bool
157 (maybe_software_singlestep): Likewise.
158 (show_stop_on_solib_events): Likewise.
159 (stepping_past_nonsteppable_watchpoint): Likewise.
160 (displaced_step_in_progress_any_inferior): Likewise.
161 (displaced_step_in_progress_thread): Likewise.
162 (keep_going_stepped_thread): Likewise.
163 (thread_still_needs_step_over): Likewise.
164 (start_step_over): Likewise.
165 (do_target_resume): Likewise.
166 (resume_1): Likewise.
167 (clear_proceed_status): Likewise.
168 (thread_still_needs_step_over_bp): Likewise.
169 (proceed): Likewise.
170 (switch_back_to_stepped_thread): Likewise.
171 (adjust_pc_after_break): Likewise.
172 (stepped_in_from): Likewise.
173 (handle_stop_requested): Likewise.
174 (handle_syscall_event): Likewise.
175 (handle_no_resumed): Likewise.
176 (handle_inferior_event): Likewise.
177 (finish_step_over): Likewise.
178 (handle_signal_stop): Likewise.
179 (process_event_stop_test): Likewise.
180
181 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
182
183 * infrun.c (get_displaced_stepping_state): Fix comment.
184
185 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
186
187 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
188
189 2020-10-19 Tom Tromey <tromey@adacore.com>
190
191 PR tui/26719
192 * tui/tui-winsource.h (struct tui_source_window_base)
193 <refresh_window>: Rename from refresh_pad.
194 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
195 Rename from refresh_pad.
196 (tui_source_window_base::show_source_content)
197 (tui_source_window_base::do_scroll_horizontal): Update.
198
199 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
200
201 * thread.c (_initialize_thread): Fine-tune the help text of
202 'info threads'.
203
204 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
205
206 * frame.c: Remove the unused 'uinteger_option_def' type alias.
207
208 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
209
210 * breakpoint.c (handle_jit_event): Add an argument, change how
211 `jit_event_handler` is called.
212
213 2020-10-17 Tom Tromey <tom@tromey.com>
214
215 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
216 (scan_xcoff_symtab): Update.
217 * psymtab.h (class psymtab_storage) <global_psymbols,
218 static_psymbols, current_global_psymbols,
219 current_static_psymbols>: Remove.
220 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
221 (match_partial_symbol, lookup_partial_symbol): Update.
222 (print_partial_symbols): Change parameters.
223 (dump_psymtab, recursively_search_psymtabs)
224 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
225 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
226 (concat): Remove.
227 (end_psymtab_common): Simplify.
228 (append_psymbol_to_list): Change parameters.
229 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
230 (init_psymbol_list): Simplify.
231 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
232 * psympriv.h (struct partial_symtab) <empty>: New method.
233 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
234 Remove.
235 <global_psymbols, static_psymbols>: New members.
236 <add_psymbol>: New methods.
237 (add_psymbol_to_list): Don't declare.
238 (psymbol_placement): Move earlier.
239 * mdebugread.c (parse_partial_symbols): Update.
240 (handle_psymbol_enumerators): Change parameters.
241 (mdebug_expand_psymtab): Update.
242 * dwarf2/read.c (process_psymtab_comp_unit_reader)
243 (add_partial_symbol): Update.
244 * dwarf2/index-write.c (write_psymbols): Change parameters.
245 (write_one_signatured_type): Update.
246 (recursively_count_psymbols): Update.
247 (recursively_write_psymbols): Update.
248 (class debug_names) <recursively_write_psymbols>: Update.
249 <write_psymbols>: Change parameters.
250 <write_one_signatured_type>: Update.
251 * dbxread.c (read_dbx_symtab): Update.
252 (dbx_end_psymtab): Use partial_symtab::empty.
253 * ctfread.c (struct ctf_context) <pst>: New member.
254 (create_partial_symtab): Set it.
255 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
256 (scan_partial_symbols): Use the psymtab's context. Update.
257
258 2020-10-17 Tom Tromey <tom@tromey.com>
259
260 * valprint.c (generic_value_print): Remove comment.
261 * m2-valprint.c (m2_value_print_inner): Remove comment.
262 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
263 type.
264
265 2020-10-17 Tom de Vries <tdevries@suse.de>
266
267 PR symtab/26317
268 * source.c (select_source_symtab): Handling sal.symtab == NULL for
269 symbol main.
270
271 2020-10-14 Tom de Vries <tdevries@suse.de>
272
273 PR gdb/26733
274 * solib.c (solib_contains_address_p): Handle
275 'solib->sections == nullptr'.
276
277 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
278
279 PR gdb/26642
280 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
281 target can't do async.
282 * target.c (target_wait): Assert that we don't pass
283 TARGET_WNOHANG to a target that can't async.
284
285 2020-10-13 Kamil Rytarowski <n54@gmx.com>
286
287 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
288 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
289 * alpha-bsd-nat.c: Adjust include.
290 * alpha-bsd-tdep.h: Adjust comment.
291 * alpha-nbsd-tdep.c: Rename to ...
292 * alpha-netbsd-tdep.c: ... this, adjust include.
293 * amd64-nbsd-nat.c: Rename to ...
294 * amd64-netbsd-nat.c: ... this, adjust include.
295 * amd64-nbsd-tdep.c: Rename to ...
296 * amd64-netbsd-tdep.c: ... this, adjust include.
297 * amd64-tdep.h: Adjust include.
298 * arm-nbsd-nat.c: Rename to ...
299 * arm-netbsd-nat.c: ... this, adjust include.
300 * arm-nbsd-tdep.c: Rename to ...
301 * arm-netbsd-tdep.c: ... this, adjust include.
302 * arm-nbsd-tdep.h: Rename to ...
303 * arm-netbsd-tdep.h: ... this, adjust include.
304 * configure.nat: Adjust file lists.
305 * configure.tgt: Likewise.
306 * hppa-nbsd-nat.c: Rename to ...
307 * hppa-netbsd-nat.c: ... this, adjust include.
308 * hppa-nbsd-tdep.c: Rename to ...
309 * hppa-netbsd-tdep.c: ... this, adjust include.
310 * i386-nbsd-nat.c: Rename to ...
311 * i386-netbsd-nat.c: ... this, adjust include.
312 * i386-nbsd-tdep.c: Rename to ...
313 * i386-netbsd-tdep.c: ... this, adjust include.
314 * m68k-bsd-nat.c: Adjust include.
315 * mips-nbsd-nat.c: Rename to ...
316 * mips-netbsd-nat.c: ... this, adjust include.
317 * mips-nbsd-tdep.c: Rename to ...
318 * mips-netbsd-tdep.c: ... this, adjust include.
319 * mips-nbsd-tdep.h: Rename to ...
320 * mips-netbsd-tdep.h: ... this.
321 * nbsd-nat.c: Rename to ...
322 * netbsd-nat.c: ... this, adjust include.
323 * nbsd-nat.h: Rename to ...
324 * netbsd-nat.h: ... this, adjust include.
325 * nbsd-tdep.c: Rename to ...
326 * netbsd-tdep.c: ... this, adjust include.
327 * nbsd-tdep.h: Rename to ...
328 * netbsd-tdep.h: ... this.
329 * ppc-nbsd-nat.c: Rename to ...
330 * ppc-netbsd-nat.c: ... this, adjust include.
331 * ppc-nbsd-tdep.c: Rename to ...
332 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
333 * ppc-nbsd-tdep.h: Rename to ...
334 * ppc-netbsd-tdep.h: ... this.
335 * sh-nbsd-nat.c: Rename to ...
336 * sh-netbsd-nat.c: ... this, adjust include.
337 * sh-nbsd-tdep.c: Rename to ...
338 * sh-netbsd-tdep.c: ... this, adjust include.
339 * sparc-nbsd-nat.c: Rename to ...
340 * sparc-netbsd-nat.c: ... this.
341 * sparc-nbsd-tdep.c: Rename to ...
342 * sparc-netbsd-tdep.c: ... this, adjust include.
343 * sparc64-nbsd-nat.c: Rename to ...
344 * sparc64-netbsd-nat.c: ... this.
345 * sparc64-nbsd-tdep.c: Rename to ...
346 * sparc64-netbsd-tdep.c: ... this, adjust include.
347 * sparc64-tdep.h: Adjust comment.
348 * vax-bsd-nat.c: Adjust include.
349 * vax-nbsd-tdep.c: Rename to ...
350 * vax-netbsd-tdep.c: ... this, adjust include.
351
352 2020-10-12 Tom Tromey <tom@tromey.com>
353
354 * target.h (struct target_ops) <get_section_table>: Update.
355 (target_get_section_table): Update.
356 * target.c (target_get_section_table, target_section_by_addr)
357 (memory_xfer_partial_1): Update.
358 * target-section.h (target_section_table): Now an alias.
359 * target-delegates.c: Rebuild.
360 * target-debug.h (target_debug_print_target_section_table_p):
361 Rename from target_debug_print_struct_target_section_table_p.
362 * symfile.c (build_section_addr_info_from_section_table): Update.
363 * solib.c (solib_map_sections, solib_contains_address_p): Update.
364 * solib-svr4.c (scan_dyntag): Update.
365 * solib-dsbt.c (scan_dyntag): Update.
366 * remote.c (remote_target::remote_xfer_live_readonly_partial):
367 Update.
368 * record-full.c (record_full_core_target::xfer_partial): Update.
369 * progspace.h (struct program_space) <target_sections>: Update.
370 * exec.h (print_section_info): Update.
371 * exec.c (exec_target::close, build_section_table)
372 (add_target_sections, add_target_sections_of_objfile)
373 (remove_target_sections, exec_on_vfork)
374 (section_table_available_memory)
375 (section_table_xfer_memory_partial)
376 (exec_target::get_section_table, exec_target::xfer_partial)
377 (print_section_info, set_section_command)
378 (exec_set_section_address, exec_target::has_memory): Update.
379 * corelow.c (core_target::build_file_mappings)
380 (core_target::xfer_partial, core_target::info_proc_mappings)
381 (core_target::info_proc_mappings): Update.
382 * bfd-target.c (class target_bfd): Update
383
384 2020-10-12 Tom Tromey <tom@tromey.com>
385
386 * progspace.c (program_space::~program_space): Don't call
387 clear_section_table.
388 * exec.h (clear_section_table): Don't declare.
389 * exec.c (exec_target::close): Update.
390 (clear_section_table): Remove.
391
392 2020-10-12 Tom Tromey <tom@tromey.com>
393
394 * exec.c (add_target_sections_of_objfile): Simplify.
395
396 2020-10-12 Tom Tromey <tom@tromey.com>
397
398 * solib.c (solib_map_sections): Update.
399 * record-full.c (record_full_core_open_1): Update.
400 * exec.h (build_section_table): Return a target_section_table.
401 * exec.c (exec_file_attach): Update.
402 (build_section_table): Return a target_section_table.
403 * corelow.c (core_target::core_target): Update.
404 * bfd-target.c (target_bfd::target_bfd): Update.
405
406 2020-10-12 Tom Tromey <tom@tromey.com>
407
408 * target.c (target_section_by_addr, memory_xfer_partial_1):
409 Update.
410 * target-section.h (struct target_section_table): Use
411 std::vector.
412 * symfile.h (build_section_addr_info_from_section_table): Take a
413 target_section_table.
414 * symfile.c (build_section_addr_info_from_section_table): Take a
415 target_section_table.
416 * solist.h (struct so_list) <sections>: Change type.
417 <sections_end>: Remove.
418 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
419 (solib_contains_address_p): Update.
420 * solib-svr4.c (scan_dyntag): Update.
421 * solib-dsbt.c (scan_dyntag): Update.
422 * remote.c (remote_target::remote_xfer_live_readonly_partial):
423 Update.
424 * record-full.c (record_full_core_start, record_full_core_end):
425 Remove.
426 (record_full_core_sections): New global.
427 (record_full_core_open_1, record_full_core_target::xfer_partial):
428 Update.
429 * exec.h (build_section_table, section_table_xfer_memory_partial)
430 (add_target_sections): Take a target_section_table.
431 * exec.c (exec_file_attach, clear_section_table): Update.
432 (resize_section_table): Remove.
433 (build_section_table, add_target_sections): Take a
434 target_section_table.
435 (add_target_sections_of_objfile, remove_target_sections)
436 (exec_on_vfork): Update.
437 (section_table_available_memory): Take a target_section_table.
438 (section_table_read_available_memory): Update.
439 (section_table_xfer_memory_partial): Take a target_section_table.
440 (print_section_info, set_section_command)
441 (exec_set_section_address, exec_target::has_memory): Update.
442 * corelow.c (class core_target) <m_core_section_table,
443 m_core_file_mappings>: Remove braces.
444 <~core_target>: Remove.
445 (core_target::core_target): Update.
446 (core_target::~core_target): Remove.
447 (core_target::build_file_mappings)
448 (core_target::xfer_memory_via_mappings)
449 (core_target::xfer_partial, core_target::info_proc_mappings):
450 Update.
451 * bfd-target.c (target_bfd::xfer_partial): Update.
452 (target_bfd::target_bfd): Update.
453 (target_bfd::~target_bfd): Remove.
454
455 2020-10-12 Tom Tromey <tom@tromey.com>
456
457 * target.h (struct target_section, struct target_section_table):
458 Move to target-section.h.
459 * target-section.h: New file.
460
461 2020-10-12 Pedro Alves <pedro@palves.net>
462
463 PR exp/26602
464 * valops.c (struct struct_field_searcher): New.
465 (update_search_result): Rename to ...
466 (struct_field_searcher::update_result): ... this. Simplify
467 prototype. Record all found fields.
468 (do_search_struct_field): Rename to ...
469 (struct_field_searcher::search): ... this. Simplify prototype.
470 Maintain stack of visited baseclass path. Call update_result for
471 fields too. Keep searching fields in baseclasses instead of
472 stopping at the first found field.
473 (search_struct_field): Use struct_field_searcher. When looking
474 for fields, report ambiguous access attempts.
475
476 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * frame.c (inside_main_func): Check full symbols as well as
479 minimal symbols.
480
481 2020-10-09 Joel Brobecker <brobecker@adacore.com>
482
483 * ada-lang.c (advance_wild_match): Rewrite the function's
484 description. Change the type of target0, t0 and t1 to char.
485
486 2020-10-09 Tom Tromey <tromey@adacore.com>
487
488 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
489
490 2020-10-09 Tom Tromey <tromey@adacore.com>
491
492 * ada-lang.h (ada_encode): Return std::string.
493 * ada-lang.c (ada_encode_1): Return std::string.
494 (ada_encode): Likewise.
495 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
496 Update.
497 * ada-exp.y (block_lookup, write_var_or_type): Update.
498
499 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
500
501 PR exp/26714
502 * printcmd.c (print_formatted): Handle void results as
503 unformatted prints.
504
505 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * arch/aarch32.c (aarch32_create_target_description): Release the
508 target_desc_up as late as possible.
509 * arch/aarch64.c (aarch64_create_target_description): Likewise.
510 * arch/amd64.c (amd64_create_target_description): Likewise.
511 * arch/arc.c (arc_create_target_description): Return a
512 target_desc_up, don't release it.
513 * arch/arc.h (arc_create_target_description): Update declaration.
514 (arc_lookup_target_description): Move target_desc_up into the
515 cache, and return a borrowed pointer.
516 * arch/arm.c (arm_create_target_description): Release the
517 target_desc_up as late as possible.
518 * arch/i386.c (i386_create_target_description): Likewise.
519 * arch/riscv.h (riscv_create_target_description): Update
520 declaration to match definition.
521 * arch/tic6x.c (tic6x_create_target_description): Release the
522 target_desc_up as late as possible.
523
524 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
527 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
528
529 2020-10-09 Jan Vrany <jan.vrany@labware.com>
530
531 * source.c (directory_command): Notify observers that "directories"
532 parameter has changed.
533
534 2020-10-08 Tom Tromey <tom@tromey.com>
535
536 * cli/cli-cmds.c (print_disassembly): Style function name and
537 addresses. Add _() wrappers.
538
539 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
540
541 * NEWS: Mention ARC support in GDBserver.
542
543 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * arch/aarch32.c (aarch32_create_target_description): Release
546 unique_ptr returned from allocate_target_description.
547 * arch/aarch64.c (aarch64_create_target_description): Likewise.
548 * arch/amd64.c (amd64_create_target_description): Likewise.
549 * arch/arc.c (arc_create_target_description): Likewise.
550 * arch/arm.c (arm_create_target_description): Likewise.
551 * arch/i386.c (i386_create_target_description): Likewise.
552 * arch/riscv.c (riscv_create_target_description): Update return
553 type. Handle allocate_target_description returning a unique_ptr.
554 (riscv_lookup_target_description): Update to handle unique_ptr.
555 * arch/tic6x.c (tic6x_create_target_description): Release
556 unique_ptr returned from allocate_target_description.
557 * features/microblaze-with-stack-protect.c: Regenerate.
558 * features/microblaze.c: Regenerate.
559 * features/mips-dsp-linux.c: Regenerate.
560 * features/mips-linux.c: Regenerate.
561 * features/mips64-dsp-linux.c: Regenerate.
562 * features/mips64-linux.c: Regenerate.
563 * features/nds32.c: Regenerate.
564 * features/nios2.c: Regenerate.
565 * features/or1k.c: Regenerate.
566 * features/rs6000/powerpc-32.c: Regenerate.
567 * features/rs6000/powerpc-32l.c: Regenerate.
568 * features/rs6000/powerpc-403.c: Regenerate.
569 * features/rs6000/powerpc-403gc.c: Regenerate.
570 * features/rs6000/powerpc-405.c: Regenerate.
571 * features/rs6000/powerpc-505.c: Regenerate.
572 * features/rs6000/powerpc-601.c: Regenerate.
573 * features/rs6000/powerpc-602.c: Regenerate.
574 * features/rs6000/powerpc-603.c: Regenerate.
575 * features/rs6000/powerpc-604.c: Regenerate.
576 * features/rs6000/powerpc-64.c: Regenerate.
577 * features/rs6000/powerpc-64l.c: Regenerate.
578 * features/rs6000/powerpc-7400.c: Regenerate.
579 * features/rs6000/powerpc-750.c: Regenerate.
580 * features/rs6000/powerpc-860.c: Regenerate.
581 * features/rs6000/powerpc-altivec32.c: Regenerate.
582 * features/rs6000/powerpc-altivec32l.c: Regenerate.
583 * features/rs6000/powerpc-altivec64.c: Regenerate.
584 * features/rs6000/powerpc-altivec64l.c: Regenerate.
585 * features/rs6000/powerpc-e500.c: Regenerate.
586 * features/rs6000/powerpc-e500l.c: Regenerate.
587 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
588 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
589 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
590 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
591 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
592 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
593 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
594 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
595 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
596 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
597 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
598 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
599 * features/rs6000/powerpc-vsx32.c: Regenerate.
600 * features/rs6000/powerpc-vsx32l.c: Regenerate.
601 * features/rs6000/powerpc-vsx64.c: Regenerate.
602 * features/rs6000/powerpc-vsx64l.c: Regenerate.
603 * features/rs6000/rs6000.c: Regenerate.
604 * features/rx.c: Regenerate.
605 * features/s390-gs-linux64.c: Regenerate.
606 * features/s390-linux32.c: Regenerate.
607 * features/s390-linux32v1.c: Regenerate.
608 * features/s390-linux32v2.c: Regenerate.
609 * features/s390-linux64.c: Regenerate.
610 * features/s390-linux64v1.c: Regenerate.
611 * features/s390-linux64v2.c: Regenerate.
612 * features/s390-te-linux64.c: Regenerate.
613 * features/s390-tevx-linux64.c: Regenerate.
614 * features/s390-vx-linux64.c: Regenerate.
615 * features/s390x-gs-linux64.c: Regenerate.
616 * features/s390x-linux64.c: Regenerate.
617 * features/s390x-linux64v1.c: Regenerate.
618 * features/s390x-linux64v2.c: Regenerate.
619 * features/s390x-te-linux64.c: Regenerate.
620 * features/s390x-tevx-linux64.c: Regenerate.
621 * features/s390x-vx-linux64.c: Regenerate.
622 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
623 from allocate_target_description.
624 * target-descriptions.c (allocate_target_description): Update
625 return type.
626 (print_c_tdesc::visit_pre): Release unique_ptr returned from
627 allocate_target_description.
628
629 2020-10-07 Tom Tromey <tromey@adacore.com>
630
631 * unittests/search-memory-selftests.c: New file.
632 * Makefile.in (SELFTESTS_SRCS): Add
633 unittests/search-memory-selftests.c.
634
635 2020-10-07 Tom Tromey <tromey@adacore.com>
636
637 PR gdb/16930:
638 * findcmd.c (_initialize_mem_search): Mention that the range is
639 inclusive.
640
641 2020-10-07 Tom Tromey <tromey@adacore.com>
642
643 * target.h (simple_search_memory): Don't declare.
644 * target.c (simple_search_memory): Move to gdbsupport.
645 (default_search_memory): Update.
646 * remote.c (remote_target::search_memory): Update.
647
648 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
649
650 * Makefile.in (COMPILE): Add CXXFLAGS.
651 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
652 (check-headers): Add CXXFLAGS.
653
654 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
655
656 * arc-linux-tdep.h: New file.
657 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
658 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
659 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
660 arc_linux_gregset, arc_linux_v2_regset,
661 arc_linux_iterate_over_regset_sections,
662 arc_linux_core_read_description): Implement.
663 (arc_linux_init_osabi): Set iterate_over_regset_sections.
664 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
665 (arc_gdbarch_features_create): Add.
666 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
667
668 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
669
670 * arch/arc.h: Rename "arc_gdbarch_features" to
671 "arc_arch_features".
672 * arc-tdep.h: Likewise.
673 * arc-tdep.c: Likewise.
674
675 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676
677 * infcmd.c (attach_command): Remove the redundant call to
678 `clear_proceed_status`.
679
680 2020-10-07 Kamil Rytarowski <n54@gmx.com>
681
682 * nat/netbsd-nat.c (write_memory, read_memory): Update.
683
684 2020-10-07 Kamil Rytarowski <n54@gmx.com>
685
686 * nat/netbsd-nat.c (write_memory, read_memory): Add.
687 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
688 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
689
690 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
691
692 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
693 (_initialize_break_catch_sig): Don't allocate array.
694
695 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * symtab.c (find_pc_line): Return unmapped addresses when the
698 requested address is also unmapped.
699
700 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
701
702 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
703 tui/tui-out.h.
704
705 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
706
707 * amd64-windows-tdep.c (amd64_windows_return_value): Use
708 type::is_vector instead of TYPE_VECTOR.
709
710 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * auto-load.c (auto_load_objfile_script_1): Don't use
713 debugfile_holder as temporary variable when stripping drive
714 letter.
715
716 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
717
718 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
719 Add TYPE_CODE_COMPLEX.
720 (amd64_windows_return_value): Fix types returned via XMM0.
721
722 2020-10-05 Alan Hayward <alan.hayward@arm.com>
723
724 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
725 AArch64/ARM maintainers.
726
727 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * NEWS: Mention set/show debug event-loop.
730
731 2020-10-02 Tom Tromey <tromey@adacore.com>
732
733 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
734 REG_EXTENDED.
735
736 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
737
738 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
739 * procfs.c (procfs_inferior_created): Remove.
740 (_initialize_procfs): Don't register procfs_inferior_created.
741
742 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * async-event.c (invoke_async_signal_handlers): Add debug
745 print.
746 (check_async_event_handlers): Likewise.
747 * event-top.c (show_debug_event_loop): New function.
748 (_initialize_event_top): Register "set debug event-loop"
749 setting.
750
751 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
754 * debug.h: Remove.
755 * infrun.c: Include gdbsupport/common-debug.h.
756 * linux-nat.c: Likewise.
757
758 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * async-event.h (create_async_signal_handler): Add name
761 parameter.
762 (create_async_event_handler): Likewise.
763 * async-event.c (struct async_signal_handler) <name>: New field.
764 (struct async_event_handler) <name>: New field.
765 (create_async_signal_handler): Assign name.
766 (create_async_event_handler): Assign name.
767 * event-top.c (async_init_signals): Pass name when creating
768 handler.
769 * infrun.c (_initialize_infrun): Likewise.
770 * record-btrace.c (record_btrace_push_target): Likewise.
771 * record-full.c (record_full_open): Likewise.
772 * remote-notif.c (remote_notif_state_allocate): Likewise.
773 * remote.c (remote_target::open_1): Likewise.
774 * tui/tui-win.c (tui_initialize_win): Likewise.
775
776 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * async-event.c (initialize_async_signal_handlers): Pass name to
779 add_file_handler
780 * event-top.c (ui_register_input_event_handler): Likewise.
781 * linux-nat.c (linux_nat_target::async): Likewise.
782 * run-on-main-thread.c (_initialize_run_on_main_thread):
783 Likewise
784 * ser-base.c (reschedule): Likewise.
785 (ser_base_async): Likewise.
786 * tui/tui-io.c: Likewise.
787 * top.h (struct ui) <num>: New field.
788 * top.c (highest_ui_num): New variable.
789 (ui::ui): Initialize num.
790
791 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * observable.h <inferior_created>: Remove parameters. Update all
794 listeners.
795 * inferior.h (post_create_inferior): Remove target parameter.
796 Update all callers.
797
798 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
799
800 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
801 and DW_MACRO_undef_strx.
802 (dwarf_decode_macros): Likewise
803 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
804 which is the value of DW_AT_str_offsets_base.
805 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
806 str_offsets_base.
807
808 2020-10-01 Kamil Rytarowski <n54@gmx.com>
809
810 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
811
812 2020-10-01 Kamil Rytarowski <n54@gmx.com>
813
814 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
815 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
816
817 2020-10-01 Kamil Rytarowski <n54@gmx.com>
818
819 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
820
821 2020-09-30 Tom de Vries <tdevries@suse.de>
822
823 PR symtab/26683
824 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
825
826 2020-09-30 Tom Tromey <tromey@adacore.com>
827
828 * dwarf2/read.c (handle_variant): Use constant_value.
829
830 2020-09-29 Tom Tromey <tom@tromey.com>
831
832 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
833 (read_file_scope, dwarf2_get_pc_bounds)
834 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
835 (read_structure_type, handle_struct_member_die)
836 (read_enumeration_type, read_array_type, read_set_type)
837 (read_tag_pointer_type, read_tag_reference_type)
838 (read_subroutine_type, read_base_type, read_subrange_type)
839 (read_full_die_1, partial_die_info::read)
840 (partial_die_info::read, by, new_symbol)
841 (dwarf2_const_value_data, dwarf2_const_value_attr)
842 (dump_die_shallow, dwarf2_fetch_constant_bytes)
843 (prepare_one_comp_unit): Update.
844 * dwarf2/attribute.h (DW_UNSND): Remove.
845
846 2020-09-29 Tom Tromey <tom@tromey.com>
847
848 * dwarf2/read.c (read_func_scope, prototyped_function_p)
849 (read_subroutine_type, partial_die_info::read)
850 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
851 (dwarf2_add_member_fn): Update.
852 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
853 * dwarf2/attribute.c (attribute::as_boolean): New method.
854
855 2020-09-29 Tom Tromey <tom@tromey.com>
856
857 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
858 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
859 method.
860 * dwarf2/attribute.c (attribute::as_virtuality): New method.
861
862 2020-09-29 Tom Tromey <tom@tromey.com>
863
864 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
865 the attribute's form.
866
867 2020-09-29 Tom Tromey <tom@tromey.com>
868
869 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
870 (dwarf2_add_member_fn): Update.
871 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
872 * dwarf2/attribute.c (attribute::defaulted): New method, from
873 is_valid_DW_AT_defaulted.
874
875 2020-09-29 Tom Tromey <tom@tromey.com>
876
877 * dwarf2/read.c (dw2_get_file_names_reader)
878 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
879 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
880 (dwarf2_symbol_mark_computed): Use as_unsigned.
881 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
882 method.
883 <form_is_section_offset>: Update comment.
884
885 2020-09-29 Tom Tromey <tom@tromey.com>
886
887 * dwarf2/read.c (dwarf2_access_attribute): Rename from
888 dwarf2_default_access_attribute. Look up attribute.
889 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
890 Update.
891
892 2020-09-29 Tom Tromey <tom@tromey.com>
893
894 * dwarf2/read.c (skip_one_die): Update.
895 (read_full_die_1): Change how reprocessing is done.
896 (partial_die_info::read): Update.
897 (read_attribute_value): Remove need_reprocess parameter.
898 (read_attribute): Likewise.
899 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
900 New method.
901
902 2020-09-29 Tom Tromey <tom@tromey.com>
903
904 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
905 (dwarf2_const_value_attr, dump_die_shallow)
906 (dwarf2_fetch_constant_bytes): Update.
907 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
908 comment.
909 <set_address>: New method.
910 (DW_ADDR): Remove.
911 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
912 (attribute::as_string, attribute::as_address): Add assert.
913
914 2020-09-29 Tom Tromey <tom@tromey.com>
915
916 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
917 (read_attribute_reprocess, read_attribute_value): Update.
918 (read_attribute): Clear requires_reprocessing.
919 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
920 form_requires_reprocessing>: New methods.
921 <string_init>: Clear requires_reprocessing.
922 <set_unsigned_reprocess>: New method.
923 <name>: Shrink by one bit.
924 <requires_reprocessing>: New member.
925 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
926 method.
927
928 2020-09-29 Tom Tromey <tom@tromey.com>
929
930 * dwarf2/read.c (read_attribute_value): Update.
931 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
932 set_unsigned>: New methods.
933 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
934
935 2020-09-29 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/read.c (get_alignment, read_array_order)
938 (read_attribute_value, dwarf2_const_value_attr)
939 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
940 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
941 New methods.
942 (DW_SND): Remove.
943
944 2020-09-29 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/read.c (read_attribute_value, lookup_die_type)
947 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
948 Update.
949 * dwarf2/attribute.h (struct attribute) <as_signature,
950 set_signature>: New methods.
951 (DW_SIGNATURE): Remove.
952
953 2020-09-29 Tom Tromey <tom@tromey.com>
954
955 * dwarf2/read.c (read_call_site_scope)
956 (handle_data_member_location, dwarf2_add_member_fn)
957 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
958 (partial_die_info::read, read_attribute_value)
959 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
960 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
961 (dwarf2_symbol_mark_computed): Update.
962 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
963 methods.
964 (DW_BLOCK): Remove.
965 * dwarf2/attribute.c (attribute::form_is_block): Add
966 DW_FORM_data16.
967
968 2020-09-29 Tom Tromey <tom@tromey.com>
969
970 * dwarf2/read.c (read_cutu_die_from_dwo)
971 (read_attribute_reprocess, read_attribute_value, read_attribute)
972 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
973 (dwarf2_fetch_constant_bytes): Update.
974 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
975 <set_string_noncanonical, set_string_canonical>: New methods.
976 <string_is_canonical>: Update comment.
977 <canonical_string_p>: Add assert.
978 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
979 * dwarf2/attribute.c (attribute::form_is_string): New method.
980 (attribute::string): Use it.
981
982 2020-09-29 Tom Tromey <tom@tromey.com>
983
984 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
985 (dump_die_shallow): Use canonical_string_p.
986 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
987 method.
988
989 2020-09-29 Tom Tromey <tom@tromey.com>
990
991 * dwarf2/read.c (partial_die_info::read)
992 (dwarf2_const_value_attr, anonymous_struct_prefix, )
993 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
994 attribute::as_string.
995
996 2020-09-29 Tom Tromey <tom@tromey.com>
997
998 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
999 DW_ADDR.
1000 (attribute::string): Don't use DW_STRING.
1001 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1002 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1003
1004 2020-09-29 Tom Tromey <tom@tromey.com>
1005
1006 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1007 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1008 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1009 * dwarf2/attribute.h (struct attribute): Rename methods.
1010 * dwarf2/attribute.c (attribute::as_address): Rename from
1011 value_as_address.
1012 (attribute::as_string): Rename from value_as_string.
1013
1014 2020-09-29 Tom Tromey <tom@tromey.com>
1015
1016 * dwarf2/read.c (partial_die_info::read) <case
1017 DW_AT_linkage_name>: Use value_as_string.
1018 (dwarf2_string_attr): Use value_as_string.
1019 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1020 method.
1021 * dwarf2/attribute.c (attribute::value_as_string): New method.
1022
1023 2020-09-29 Pedro Alves <pedro@palves.net>
1024
1025 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1026 defined before using '#pragma GCC diagnostic' instead of checking
1027 __clang__.
1028
1029 2020-09-28 Tom Tromey <tom@tromey.com>
1030
1031 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1032 (handle_signal_stop): Update.
1033 * procfs.c (procfs_target::insert_watchpoint): Update.
1034 * target.h (target_have_steppable_watchpoint): Now a function.
1035
1036 2020-09-28 Tom Tromey <tom@tromey.com>
1037
1038 * infrun.c (set_schedlock_func): Update.
1039 * target.h (target_can_lock_scheduler): Now a function.
1040
1041 2020-09-28 Tom Tromey <tom@tromey.com>
1042
1043 * inferior.h (class inferior) <has_execution>: Update.
1044 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1045 * valops.c (find_function_in_inferior)
1046 (value_allocate_space_in_inferior): Update.
1047 * top.c (kill_or_detach): Update.
1048 * target.c (target_preopen, set_target_permissions): Update.
1049 (target_has_execution_current): Remove.
1050 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1051 Update.
1052 * solib.c (update_solib_list, reload_shared_libraries): Update.
1053 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1054 * solib-dsbt.c (enable_break): Update.
1055 * score-tdep.c (score7_fetch_inst): Update.
1056 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1057 Update.
1058 * remote.c (remote_target::start_remote)
1059 (remote_target::remote_check_symbols, remote_target::open_1)
1060 (remote_target::remote_detach_1, remote_target::verify_memory)
1061 (remote_target::xfer_partial, remote_target::read_description)
1062 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1063 * record-full.c (record_full_open_1): Update.
1064 * record-btrace.c (record_btrace_target_open): Update.
1065 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1066 (value_nsstring): Update.
1067 * linux-thread-db.c (add_thread_db_info)
1068 (thread_db_find_new_threads_silently, check_thread_db_callback)
1069 (try_thread_db_load_1, record_thread): Update.
1070 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1071 Update.
1072 * linux-fork.c (checkpoint_command): Update.
1073 * infrun.c (set_non_stop, set_observer_mode)
1074 (check_multi_target_resumption, for_each_just_stopped_thread)
1075 (maybe_remove_breakpoints, normal_stop)
1076 (class infcall_suspend_state): Update.
1077 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1078 (info_program_command, attach_command): Update.
1079 * infcall.c (call_function_by_hand_dummy): Update.
1080 * inf-loop.c (inferior_event_handler): Update.
1081 * gcore.c (gcore_command, derive_heap_segment): Update.
1082 * exec.c (exec_file_command): Update.
1083 * eval.c (evaluate_subexp): Update.
1084 * compile/compile.c (compile_to_object): Update.
1085 * cli/cli-dump.c (restore_command): Update.
1086 * breakpoint.c (update_watchpoint)
1087 (update_inserted_breakpoint_locations)
1088 (insert_breakpoint_locations, get_bpstat_thread): Update.
1089 * target.h (target_has_execution): Remove macro.
1090 (target_has_execution_current): Don't declare.
1091 (target_has_execution): Rename from target_has_execution_1. Add
1092 argument default.
1093
1094 2020-09-28 Tom Tromey <tom@tromey.com>
1095
1096 * mi/mi-main.c (exec_reverse_continue)
1097 (mi_cmd_list_target_features): Update.
1098 * infrun.c (set_exec_direction_func): Update.
1099 * target.c (default_execution_direction): Update.
1100 * reverse.c (exec_reverse_once): Update.
1101 * target.h (target_can_execute_reverse): Now a function.
1102
1103 2020-09-28 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-regs.c (tui_get_register)
1106 (tui_data_window::show_registers): Update.
1107 * thread.c (scoped_restore_current_thread::restore)
1108 (scoped_restore_current_thread::scoped_restore_current_thread):
1109 Update.
1110 * regcache-dump.c (regcache_print): Update.
1111 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1112 Update.
1113 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1114 * mep-tdep.c (current_me_module, current_options): Update.
1115 * linux-thread-db.c (thread_db_load): Update.
1116 * infcmd.c (registers_info, info_vector_command)
1117 (info_float_command): Update.
1118 * ia64-tdep.c (ia64_frame_prev_register)
1119 (ia64_sigtramp_frame_prev_register): Update.
1120 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1121 * gcore.c (derive_stack_segment): Update.
1122 * frame.c (get_current_frame, has_stack_frames): Update.
1123 * findvar.c (language_defn::read_var_value): Update.
1124 * arm-tdep.c (arm_pc_is_thumb): Update.
1125 * target.c (target_has_registers): Rename from
1126 target_has_registers_1.
1127 * target.h (target_has_registers): Remove macro.
1128 (target_has_registers): Rename from target_has_registers_1.
1129
1130 2020-09-28 Tom Tromey <tom@tromey.com>
1131
1132 * windows-tdep.c (tlb_make_value): Update.
1133 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1134 * thread.c (scoped_restore_current_thread::restore)
1135 (scoped_restore_current_thread::scoped_restore_current_thread)
1136 (thread_command): Update.
1137 * stack.c (backtrace_command_1, frame_apply_level_command)
1138 (frame_apply_all_command, frame_apply_command): Update.
1139 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1140 Update.
1141 * gcore.c (derive_stack_segment): Update.
1142 * frame.c (get_current_frame, has_stack_frames): Update.
1143 * auxv.c (info_auxv_command): Update.
1144 * ada-tasks.c (ada_build_task_list): Update.
1145 * target.c (target_has_stack): Rename from target_has_stack_1.
1146 * target.h (target_has_stack): Remove macro.
1147 (target_has_stack): Rename from target_has_stack_1.
1148
1149 2020-09-28 Tom Tromey <tom@tromey.com>
1150
1151 * target.c (target_has_memory): Rename from target_has_memory_1.
1152 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1153 * thread.c (scoped_restore_current_thread::restore)
1154 (scoped_restore_current_thread::scoped_restore_current_thread):
1155 Update.
1156 * frame.c (get_current_frame, has_stack_frames): Update.
1157 * target.h (target_has_memory): Remove macro.
1158 (target_has_memory): Rename from target_has_memory_1.
1159
1160 2020-09-28 Tom Tromey <tom@tromey.com>
1161
1162 * target.c (target_has_all_memory_1): Remove.
1163 * target.h (target_has_all_memory): Remove define.
1164 (target_has_all_memory_1): Don't declare.
1165
1166 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * ser-base.c: Adjust comments formatting.
1169
1170 2020-09-27 Tom Tromey <tom@tromey.com>
1171
1172 PR tui/25342:
1173 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1174
1175 2020-09-27 Tom Tromey <tom@tromey.com>
1176
1177 PR tui/25342:
1178 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1179
1180 2020-09-27 Tom Tromey <tom@tromey.com>
1181
1182 * unittests/tui-selftests.c: Update.
1183 * tui/tui-winsource.h (struct tui_source_window_base)
1184 <extra_margin, show_line_number, refresh_pad>: New methods.
1185 <m_max_length, m_pad>: New members.
1186 (tui_copy_source_line): Update.
1187 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1188 first_col, line_width, ndigits parameters. Add length.
1189 (tui_source_window_base::show_source_line): Write to pad. Line
1190 number now 0-based.
1191 (tui_source_window_base::refresh_pad): New method.
1192 (tui_source_window_base::show_source_content): Write to pad. Call
1193 refresh_pad.
1194 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1195 not refill.
1196 (tui_source_window_base::update_exec_info): Call
1197 show_line_number.
1198 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1199 method.
1200 <m_digits>: New member.
1201 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1202 and m_max_length.
1203 (tui_source_window::show_line_number): New method.
1204 * tui/tui-io.h (tui_puts): Fix comment.
1205 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1206 m_max_length.
1207
1208 2020-09-27 Tom Tromey <tom@tromey.com>
1209
1210 * tui/tui-winsource.c
1211 (tui_source_window_base::set_is_exec_point_at): Don't call
1212 show_source_line.
1213
1214 2020-09-27 Tom Tromey <tom@tromey.com>
1215
1216 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1217 method.
1218 <erase>: Update.
1219 <cursor_x, cursor_y>: Remove.
1220 <m_inner_window>: New member.
1221 (tui_py_window::rerender): Create inner window.
1222 (tui_py_window::output): Write to inner window.
1223
1224 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1225
1226 PR python/26586
1227 * cli/cli-script.c (execute_control_commands): don't set
1228 instream to nullptr here as this breaks the from_tty argument
1229 to gdb.execute in Python.
1230 (execute_user_command): set instream to nullptr here instead.
1231
1232 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * infrun.h (infrun_debug_printf): Fix formatting.
1235 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1236
1237 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1238
1239 * compile/compile-object-load.h (struct munmap_list): Add
1240 explicitly-defined move constructor.
1241
1242 2020-09-24 Tom Tromey <tromey@adacore.com>
1243
1244 PR tui/26638:
1245 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1246 method.
1247 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1248 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1249 (tui_prev_win): Rewrite.
1250
1251 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1252
1253 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1254 in WOW64 processes as SIGINT.
1255 * nat/windows-nat.h: Make wow64_process a shared variable.
1256 * windows-nat.c: Remove static wow64_process variable.
1257
1258 2020-09-23 Tom Tromey <tom@tromey.com>
1259
1260 PR symtab/25470:
1261 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1262 offset and bit size.
1263 * printcmd.c (print_scalar_formatted): Handle zero-length
1264 integer.
1265 (print_scalar_formatted): Use bit_size_differs_p.
1266 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1267 constant.
1268 (union type_specific): <int_stuff>: New member.
1269 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1270 methods.
1271 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1272 TYPE_SPECIFIC_FIELD.
1273 (recursive_dump_type, copy_type_recursive): Update.
1274 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1275 DW_AT_data_bit_offset.
1276
1277 2020-09-23 Tom Tromey <tom@tromey.com>
1278
1279 * utils.h (class gdb_argv): Add move operators.
1280 <append>: New methods.
1281 * compile/compile.c (build_argc_argv): Remove.
1282 (compile_args_argc): Remove.
1283 (compile_args_argv): Change type.
1284 (set_compile_args): Simplify.
1285 (append_args): Remove.
1286 (filter_args): Remove argcp parameter.
1287 (get_args): Return gdb_argv. Simplify.
1288 (compile_to_object): Update.
1289
1290 2020-09-23 Tom Tromey <tom@tromey.com>
1291
1292 * compile/compile-object-run.c (do_module_cleanup)
1293 <~do_module_cleanup> :Remove.
1294 (do_module_cleanup): Update.
1295 * compile/compile-object-load.h (struct munmap_list): Add move
1296 assignment operator.
1297 <source_file>: Now a std::string.
1298 <munmap_list>: Rename. No longer a pointer.
1299 * compile/compile-object-load.c (struct setup_sections_data): Add
1300 constructor.
1301 <setup_one_section>: Declare.
1302 <munmap_list>: Move earlier.
1303 <m_bfd>: New member.
1304 <m_last_size, m_last_section_first, m_last_prot,
1305 m_last_max_alignment>: Rename, add initializers where needed.
1306 (setup_sections_data::setup_one_section): Rename from
1307 setup_sections. Update.
1308 (compile_object_load): Update. Don't use bfd_map_over_sections.
1309
1310 2020-09-23 Tom Tromey <tom@tromey.com>
1311
1312 * compile/compile-object-run.c (struct do_module_cleanup): Add
1313 parameters to constructor. Update destructor.
1314 <source_file, scope, scope_data, out_value_type, out_value_addr,
1315 munmap_list_head, objfile_name_string>: Remove.
1316 <module>: New member.
1317 (do_module_cleanup): Update.
1318 (compile_object_run): Update.
1319
1320 2020-09-23 Tom Tromey <tom@tromey.com>
1321
1322 * compile/compile.c (eval_compile_command): Update.
1323 * compile/compile-object-run.h (compile_object_run): Take a
1324 compile_module_up.
1325 * compile/compile-object-run.c (compile_object_run): Take a
1326 compile_module_up.
1327 * compile/compile-object-load.h (struct compile_module): Add
1328 constructor, destructor.
1329 (compile_module_up): New typedef.
1330 (compile_object_load): Return compile_object_up.
1331 * compile/compile-object-load.c (compile_object_load): Return
1332 compile_module_up.
1333
1334 2020-09-23 Tom Tromey <tom@tromey.com>
1335
1336 * compile/compile-object-run.c (struct do_module_cleanup): Add
1337 constructor, destructor.
1338 <objfile_name_string>: Don't use struct hack.
1339 (do_module_cleanup): Use delete.
1340 (compile_object_run): Use new.
1341
1342 2020-09-23 Tom Tromey <tom@tromey.com>
1343
1344 * compile/compile-cplus-types.c
1345 (compile_cplus_convert_struct_or_union): Use std::vector.
1346 (compile_cplus_convert_func): Likewise.
1347 * compile/compile-c-types.c (convert_func): Use std::vector.
1348
1349 2020-09-21 Tom Tromey <tromey@adacore.com>
1350
1351 * sparc-tdep.c (sparc32_skip_prologue): Use
1352 skip_prologue_using_sal.
1353
1354 2020-09-19 Tom Tromey <tom@tromey.com>
1355
1356 * symfile.c (add_section_size_callback): Remove.
1357 (load_one_section): Rename from load_section_callback. Change
1358 parameters.
1359 (generic_load): Use foreach.
1360
1361 2020-09-19 Tom Tromey <tom@tromey.com>
1362
1363 * exec.c (add_to_section_table): Remove.
1364 (build_section_table): Use foreach.
1365
1366 2020-09-19 Tom Tromey <tom@tromey.com>
1367
1368 * elfread.c (elf_locate_sections): Change parameters.
1369 (elf_symfile_read): Use foreach.
1370
1371 2020-09-19 Tom Tromey <tom@tromey.com>
1372
1373 * cli/cli-dump.c (struct callback_data): Remove.
1374 (restore_one_section): Rename from restore_section_callback.
1375 Change parameters.
1376 (restore_binary_file): Change parameters.
1377 (restore_command): Use foreach.
1378
1379 2020-09-19 Tom Tromey <tom@tromey.com>
1380
1381 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1382 (gcore_copy_callback): Likewise.
1383 (gcore_memory_sections): Use foreach.
1384
1385 2020-09-19 Tom Tromey <tom@tromey.com>
1386
1387 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1388 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1389 parameters.
1390 (generic_elf_osabi_sniffer): Use foreach.
1391 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1392 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1393
1394 2020-09-19 Tom Tromey <tom@tromey.com>
1395
1396 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1397 (dwarf2_get_dwz_file): Use foreach.
1398 (dwarf2_locate_dwo_sections): Change parameters.
1399 (open_and_init_dwo_file): Use foreach.
1400 (dwarf2_locate_common_dwp_sections): Change parameters.
1401 (open_and_init_dwp_file): Use foreach.
1402
1403 2020-09-19 Tom Tromey <tom@tromey.com>
1404
1405 * symfile.h: (find_lowest_section): Don't declare.
1406 * symfile.c (find_lowest_section): Now static. Change
1407 parameters.
1408 (struct place_section_arg): Remove.
1409 (place_section): Change parameters.
1410 (addr_info_make_relative): Use foreach.
1411 (symfile_dummy_outputs): Remove.
1412 (default_symfile_relocate): Use foreach.
1413
1414 2020-09-19 Tom Tromey <tom@tromey.com>
1415
1416 * objfiles.c (add_to_objfile_sections): Rename from
1417 add_to_objfile_sections_full.
1418 (add_to_objfile_sections): Remove.
1419 (build_objfile_section_table): Use foreach.
1420
1421 2020-09-19 Tom Tromey <tom@tromey.com>
1422
1423 * stap-probe.c (get_stap_base_address_1): Remove.
1424 (get_stap_base_address): Use foreach.
1425
1426 2020-09-19 Tom Tromey <tom@tromey.com>
1427
1428 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1429 parameters.
1430 (gdb_bfd_close_or_warn): Use foreach.
1431
1432 2020-09-19 Tom Tromey <tom@tromey.com>
1433
1434 * corelow.c (add_to_thread_list): Change parameters.
1435 (core_target_open): Use foreach.
1436
1437 2020-09-19 Tom Tromey <tom@tromey.com>
1438
1439 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1440 existing function.
1441
1442 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1445 for arrays.
1446
1447 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * eval.c: Remove 'f-lang.h' include.
1450 (value_f90_subarray): Moved to f-lang.c.
1451 (eval_call): Renamed to...
1452 (evaluate_subexp_do_call): ...this, is no longer static, header
1453 comment moved into header file.
1454 (evaluate_funcall): Update call to eval_call.
1455 (skip_undetermined_arglist): Moved to f-lang.c.
1456 (fortran_value_subarray): Likewise.
1457 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1458 moved to evaluate_subexp_f.
1459 (calc_f77_array_dims): Moved to f-lang.c
1460 * expprint.c (print_subexp_funcall): New function.
1461 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1462 moved to print_subexp_f, OP_FUNCALL uses new function.
1463 (dump_subexp_body_funcall): New function.
1464 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1465 moved to dump_subexp_f, OP_FUNCALL uses new function.
1466 * expression.h (evaluate_subexp_do_call): Declare.
1467 * f-lang.c (value_f90_subarray): Moved from eval.c.
1468 (skip_undetermined_arglist): Likewise.
1469 (calc_f77_array_dims): Likewise.
1470 (fortran_value_subarray): Likewise.
1471 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1472 (operator_length_f): Likewise.
1473 (print_subexp_f): Likewise.
1474 (dump_subexp_body_f): Likewise.
1475 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1476 declaration of this operation to here.
1477 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1478 support moved to operator_length_f.
1479 * parser-defs.h (dump_subexp_body_funcall): Declare.
1480 (print_subexp_funcall): Declare.
1481 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1482 fortran-operator.def.
1483
1484 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * eval.c (fortran_value_subarray): New function, content is taken
1487 from...
1488 (evaluate_subexp_standard): ...here, in two places. Now arrays
1489 and strings both call the new function.
1490 (calc_f77_array_dims): Add header comment, handle strings.
1491
1492 2020-09-18 Victor Collod <vcollod@nvidia.com>
1493
1494 PR gdb/26635
1495 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1496 (i386_analyze_prologue): Call i386_skip_endbr.
1497
1498 2020-09-18 Tom Tromey <tromey@adacore.com>
1499
1500 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1501 (windows_nat_target::wait): Update.
1502 * target/wait.h (enum target_wait_flag): New. Use
1503 DEF_ENUM_FLAGS_TYPE.
1504 * target/target.h (target_wait): Change type of options.
1505 * target.h (target_options_to_string, default_target_wait):
1506 Update.
1507 (struct target_ops) <wait>: Change type of options.
1508 * target.c (target_wait, default_target_wait, do_option): Change
1509 type of "options".
1510 (target_options_to_string): Likewise.
1511 * target-delegates.c: Rebuild.
1512 * target-debug.h (target_debug_print_target_wait_flags): Rename
1513 from target_debug_print_options.
1514 * sol-thread.c (class sol_thread_target) <wait>: Update.
1515 (sol_thread_target::wait): Update.
1516 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1517 (rs6000_nat_target::wait): Update.
1518 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1519 Update.
1520 (remote_target::wait_ns, remote_target::wait_as): Change type of
1521 "options".
1522 (remote_target::wait): Update.
1523 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1524 (gdbsim_target::wait): Update.
1525 * record-full.c (class record_full_base_target) <wait>: Update.
1526 (record_full_wait_1): Change type of "options".
1527 (record_full_base_target::wait): Update.
1528 * record-btrace.c (class record_btrace_target) <wait>: Update.
1529 (record_btrace_target::wait): Update.
1530 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1531 Update.
1532 (ravenscar_thread_target::wait): Update.
1533 * procfs.c (class procfs_target) <wait>: Update.
1534 (procfs_target::wait): Update.
1535 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1536 * obsd-nat.c (obsd_nat_target::wait): Update.
1537 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1538 (nto_procfs_target::wait): Update.
1539 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1540 * nbsd-nat.c (nbsd_wait): Change type of "options".
1541 (nbsd_nat_target::wait): Update.
1542 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1543 (thread_db_target::wait): Update.
1544 * linux-nat.h (class linux_nat_target) <wait>: Update.
1545 * linux-nat.c (linux_nat_target::wait): Update.
1546 (linux_nat_wait_1): Update.
1547 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1548 "options".
1549 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1550 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1551 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1552 (go32_nat_target::wait): Update.
1553 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1554 * gnu-nat.c (gnu_nat_target::wait): Update.
1555 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1556 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1557 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1558 * darwin-nat.c (darwin_nat_target::wait): Update.
1559 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1560 (bsd_uthread_target::wait): Update.
1561 * aix-thread.c (class aix_thread_target) <wait>: Update.
1562 (aix_thread_target::wait): Update.
1563
1564 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * compile/compile-object-run.c (create_copied_type_recursive): New
1567 function.
1568 (compile_object_run): Use new function.
1569
1570 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1571
1572 * NEWS: Mention x86_64 Cygwin core file support.
1573
1574 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1575
1576 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1577 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1578
1579 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1580
1581 * windows-tdep.h: Add prototypes.
1582 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1583 (i386_windows_core_pid_to_str): Move and rename ...
1584 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1585 (windows_core_pid_to_str): ... and here.
1586 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1587
1588 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1589 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1590 (amd64_windows_init_abi_common): ... and register.
1591
1592 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1593
1594 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1595 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1596
1597 2020-09-18 Pedro Alves <pedro@palves.net>
1598
1599 PR gdb/26631
1600 * thread.c (thread_find_command): Switch inferior before calling
1601 target methods.
1602
1603 2020-09-17 Tom Tromey <tromey@adacore.com>
1604
1605 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1606 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1607 (tdesc_arch_data_up): New typedef.
1608 (tdesc_use_registers, tdesc_data_alloc): Update.
1609 (tdesc_data_cleanup): Don't declare.
1610 * target-descriptions.c (tdesc_data_alloc): Return a
1611 tdesc_arch_data_up.
1612 (tdesc_arch_data_deleter::operator()): Rename from
1613 tdesc_data_cleanup. Change argument type.
1614 (tdesc_use_registers): Change early_data to an rvalue reference.
1615 (tdesc_use_registers): Don't use delete.
1616 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1617 * s390-tdep.c (s390_gdbarch_init): Update.
1618 * rx-tdep.c (rx_gdbarch_init): Update.
1619 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1620 * riscv-tdep.c (riscv_gdbarch_init): Update.
1621 * or1k-tdep.c (or1k_gdbarch_init): Update.
1622 * nios2-tdep.c (nios2_gdbarch_init): Update.
1623 * nds32-tdep.c (nds32_gdbarch_init): Update.
1624 * mips-tdep.c (mips_gdbarch_init): Update.
1625 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1626 * m68k-tdep.c (m68k_gdbarch_init): Update.
1627 * i386-tdep.c (i386_gdbarch_init): Update.
1628 * arm-tdep.c (arm_gdbarch_init): Update.
1629 * arc-tdep.c (arc_tdesc_init): Update.
1630 (arc_gdbarch_init): Update.
1631 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1632
1633 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1634
1635 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1636 for WOW64 processes.
1637
1638 2020-09-17 Tom Tromey <tom@tromey.com>
1639
1640 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1641
1642 2020-09-17 Tom Tromey <tom@tromey.com>
1643
1644 * value.c (preserve_values): Update.
1645 * python/py-type.c (save_objfile_types): Update.
1646 * guile/scm-type.c (save_objfile_types): Update.
1647 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1648 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1649 * compile/compile-object-run.c (compile_object_run): Update.
1650
1651 2020-09-17 Tom Tromey <tom@tromey.com>
1652
1653 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1654 Remove.
1655 <m_table>: Now htab_up.
1656 * typeprint.c (typedef_hash_table::recursively_update)
1657 (typedef_hash_table::add_template_parameters)
1658 (typedef_hash_table::typedef_hash_table): Update.
1659 (typedef_hash_table::~typedef_hash_table): Remove.
1660 (typedef_hash_table::typedef_hash_table)
1661 (typedef_hash_table::find_global_typedef)
1662 (typedef_hash_table::find_typedef): Update.
1663
1664 2020-09-17 Tom Tromey <tom@tromey.com>
1665
1666 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1667
1668 2020-09-17 Tom Tromey <tom@tromey.com>
1669
1670 * linespec.c (class decode_compound_collector)
1671 <~decode_compound_collector>: Remove.
1672 <m_unique_syms>: Now htab_up.
1673 (decode_compound_collector::operator ()): Update.
1674 (class symtab_collector) <~symtab_collector>: Remove.
1675 <m_symtab_table>: Now htab_up.
1676 (symtab_collector::operator ()): Update.
1677
1678 2020-09-17 Tom Tromey <tom@tromey.com>
1679
1680 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1681 (filename_seen_cache::clear): Update.
1682 (~filename_seen_cache): Remove.
1683 (filename_seen_cache::seen): Update.
1684 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1685 htab_up.
1686 <~filename_seen_cache>: Remove.
1687 <traverse>: Update.
1688
1689 2020-09-17 Tom Tromey <tom@tromey.com>
1690
1691 * completer.c (completion_tracker::discard_completions)
1692 (completion_tracker::~completion_tracker)
1693 (completion_tracker::maybe_add_completion)
1694 (completion_tracker::remove_completion)
1695 (completion_tracker::recompute_lowest_common_denominator)
1696 (completion_tracker::build_completion_result): Update.
1697 * completer.h (class completion_tracker) <have_completions>:
1698 Update.
1699 <m_entries_hash>: Now htab_up.
1700
1701 2020-09-17 Tom Tromey <tom@tromey.com>
1702
1703 * breakpoint.c (ambiguous_names_p): Use htab_up.
1704
1705 2020-09-17 Tom Tromey <tom@tromey.com>
1706
1707 * auto-load.c (struct auto_load_pspace_info)
1708 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1709 <loaded_script_files, loaded_script_texts>: Change type to
1710 htab_up.
1711 (~auto_load_pspace_info) Remove.
1712 (init_loaded_scripts_info, maybe_add_script_file)
1713 (maybe_add_script_text, auto_load_info_scripts): Update.
1714
1715 2020-09-17 Tom Tromey <tromey@adacore.com>
1716
1717 * c-exp.y (name_obstack): Now static.
1718
1719 2020-09-17 Chungyi Chi <demonic@csie.io>
1720
1721 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1722
1723 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1724
1725 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1726 (add_solib_catchpoint): Likewise.
1727 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1728 to bool.
1729 (add_solib_catchpoint): Change int parameter/variable to bool.
1730 (catch_load_or_unload): Likewise.
1731 (init_catchpoint): Likewise.
1732 (create_fork_vfork_event_catchpoint): Likewise.
1733 (catch_fork_command_1): Likewise.
1734 (catch_exec_command_1): Likewise.
1735
1736 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1737
1738 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1739 Change instance_flags to m_instance_flags.
1740
1741 2020-09-16 Tom Tromey <tromey@adacore.com>
1742
1743 PR gdb/26598:
1744 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1745
1746 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1747
1748 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1749 PL_FLAG_EXEC.
1750 (fbsd_nat_target::insert_exec_catchpoint)
1751 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1752 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1753 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1754
1755 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1756
1757 * configure.ac: Remove check for kinfo_getvmmap().
1758 * configure, config.in: Regenerate.
1759 * fbsd-nat.c (fbsd_read_mapping): Remove
1760 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1761 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1762 kinfo_get_vmmap() are always present.
1763
1764 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1765
1766 * fbsd-nat.c: Always include support for
1767 TARGET_OBJECT_SIGNAL_INFO.
1768
1769 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1770
1771 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1772 sysctl and remove procfs fallback.
1773
1774 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1775
1776 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1777 * fbsd-nat.h: Likewise.
1778
1779 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1780
1781 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1782 argument.
1783
1784 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * ada-lang.c (ada_language_data): Delete.
1787 (ada_language): Remove references to ada_language_data.
1788 * c-lang.c (c_language_data): Delete.
1789 (c_language): Remove references to c_language_data.
1790 (cplus_language_data): Delete.
1791 (cplus_language): Remove references to cplus_language_data.
1792 (asm_language_data): Delete.
1793 (asm_language): Remove references to asm_language_data.
1794 (minimal_language_data): Delete.
1795 (minimal_language): Remove references to minimal_language_data.
1796 * d-lang.c (d_language_data): Delete.
1797 (d_language): Remove references to d_language_data.
1798 * f-lang.c (f_language_data): Delete.
1799 (f_language): Remove references to f_language_data.
1800 * go-lang.c (go_language_data): Delete.
1801 (go_language): Remove references to go_language_data.
1802 * language.c (unknown_language_data): Delete.
1803 (unknown_language): Remove references to unknown_language_data.
1804 (auto_language_data): Delete.
1805 (auto_language): Remove references to auto_language_data.
1806 * language.h (language_data): Delete struct.
1807 (language_defn): No longer inherit from language_data.
1808 * m2-lang.c (m2_language_data): Delete.
1809 (m2_language): Remove references to m2_language_data.
1810 * objc-lang.c (objc_language_data): Delete.
1811 (objc_language): Remove references to objc_language_data.
1812 * opencl-lang.c (opencl_language_data): Delete.
1813 (opencl_language): Remove references to opencl_language_data.
1814 * p-lang.c (pascal_language_data): Delete.
1815 (pascal_language): Remove references to pascal_language_data.
1816 * rust-lang.c (rust_language_data): Delete.
1817 (rust_language): Remove references to rust_language_data.
1818
1819 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1820
1821 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1822 initializer.
1823 (ada_language::opcode_print_table): New member function.
1824 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1825 (c_language::opcode_print_table): New member function.
1826 (cplus_language_data): Remove la_op_print_tab initializer.
1827 (cplus_language::opcode_print_table): New member function.
1828 (asm_language_data): Remove la_op_print_tab initializer.
1829 (asm_language::opcode_print_table): New member function.
1830 (minimal_language_data): Remove la_op_print_tab initializer.
1831 (minimal_language::opcode_print_table): New member function.
1832 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1833 (d_language::opcode_print_table): New member function.
1834 * expprint.c (print_subexp_standard): Update call to
1835 opcode_print_table.
1836 (op_string): Likewise.
1837 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1838 (f_language::opcode_print_table): New member function.
1839 * go-lang.c (go_language_data): Remove la_op_print_tab
1840 initializer.
1841 (go_language::opcode_print_table): New member function.
1842 * language.c (unknown_language_data): Remove la_op_print_tab
1843 initializer.
1844 (unknown_language::opcode_print_table): New member function.
1845 (auto_language_data): Remove la_op_print_tab initializer.
1846 (auto_language::opcode_print_table): New member function.
1847 * language.h (language_data): Remove la_op_print_tab field.
1848 (language_defn::opcode_print_table): Declare new member function.
1849 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1850 initializer.
1851 (m2_language::opcode_print_table): New member function.
1852 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1853 initializer.
1854 (objc_language::opcode_print_table): New member function.
1855 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1856 initializer.
1857 (opencl_language::opcode_print_table): New member function.
1858 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1859 initializer.
1860 (pascal_language::opcode_print_table): New member function.
1861 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1862 initializer.
1863 (rust_language::opcode_print_table): New member function.
1864
1865 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1868 (ada_language::expression_ops): New member function.
1869 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1870 (c_language::expression_ops): New member function.
1871 (cplus_language_data): Remove la_exp_desc initializer.
1872 (cplus_language::expression_ops): New member function.
1873 (asm_language_data): Remove la_exp_desc initializer.
1874 (asm_language::expression_ops): New member function.
1875 (minimal_language_data): Remove la_exp_desc initializer.
1876 (minimal_language::expression_ops): New member function.
1877 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1878 (d_language::expression_ops): New member function.
1879 * eval.c (evaluate_subexp): Update call to expression_ops.
1880 * expprint.c (print_subexp): Likewise.
1881 (op_name): Likewise.
1882 (dump_subexp_body): Likewise.
1883 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1884 (f_language::expression_ops): New member function.
1885 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1886 (go_language::expression_ops): New member function.
1887 * language.c (language_defn::expression_ops): New function.
1888 (unknown_language_data): Remove la_exp_desc initializer.
1889 (auto_language_data): Likewise.
1890 * language.h (language_data): Remove la_exp_desc field.
1891 (language_defn::expression_ops): Declare new member function.
1892 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1893 (m2_language::expression_ops): New member function.
1894 * objc-lang.c (objc_language_data): Remove la_exp_desc
1895 initializer.
1896 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1897 initializer.
1898 (opencl_language::expression_ops): New member function.
1899 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1900 * parse.c (operator_length): Update call to expression_ops.
1901 (exp_iterate): Likewise.
1902 * rust-lang.c (rust_language_data): Remove la_exp_desc
1903 initializer.
1904 (ruse_language::expression_ops): New member function.
1905
1906 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1909 initializer.
1910 (ada_language::varobj_ops): New member function.
1911 * c-lang.c (c_language_data): Remove la_varobj_ops
1912 initializer.
1913 (cplus_language_data): Likewise.
1914 (cplus_language::varobj_ops): New member function.
1915 (asm_language_data): Remove la_varobj_ops initializer.
1916 (minimal_language_data): Likewise.
1917 * d-lang.c (d_language_data): Likewise.
1918 * f-lang.c (f_language_data): Likewise.
1919 * go-lang.c (go_language_data): Likewise.
1920 * language.c (language_defn::varobj_ops): New function.
1921 (unknown_language_data): Remove la_varobj_ops
1922 initializer.
1923 (auto_language_data): Likewise.
1924 * language.h (language_data): Remove la_varobj_ops field.
1925 (language_defn::varobj_ops): Declare new member function.
1926 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1927 * objc-lang.c (objc_language_data): Likewise.
1928 * opencl-lang.c (opencl_language_data): Likewise.
1929 * p-lang.c (pascal_language_data): Likewise.
1930 * rust-lang.c (rust_language_data): Likewise.
1931 * varobj.c (varobj_create): Update call to varobj_ops.
1932 * varobj.h (default_varobj_ops): Delete define.
1933
1934 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1937 initializer.
1938 * c-lang.c (c_language_data): Likewise.
1939 (c_language::macro_expansion): New member function.
1940 (cplus_language_data): Likewise.
1941 (cplus_language::macro_expansion): New member function.
1942 (asm_language_data): Likewise.
1943 (asm_language::macro_expansion): New member function.
1944 (minimal_language_data): Likewise.
1945 (minimal_language::macro_expansion): New member function.
1946 * d-lang.c (d_language_data): Remove la_macro_expansion
1947 initializer.
1948 * f-lang.c (f_language_data): Likewise.
1949 * go-lang.c (go_language_data): Likewise.
1950 * language.c (unknown_language_data): Likewise.
1951 (auto_language_data): Likewise.
1952 * language.h (language_data): Remove la_macro_expansion field.
1953 (language_defn::macro_expansion): New member function.
1954 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1955 initializer.
1956 * objc-lang.c (objc_language_data): Likewise.
1957 (objc_language::macro_expansion): New member function.
1958 * opencl-lang.c (opencl_language_data): Likewise.
1959 (opencl_language::macro_expansion): New member function.
1960 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1961 initializer.
1962 * rust-lang.c (rust_language_data): Likewise.
1963 * symtab.c (default_collect_symbol_completion_matches_break_on):
1964 Update call to macro_expansion.
1965
1966 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * ada-lang.c (ada_language_data): Remove la_array_ordering
1969 initializer.
1970 * c-lang.c (c_language_data): Likewise.
1971 (cplus_language_data): Likewise.
1972 (asm_language_data): Likewise.
1973 (minimal_language_data): Likewise.
1974 * d-lang.c (d_language_data): Likewise.
1975 * dwarf2/read.c (read_array_order): Update for call to
1976 array_ordering.
1977 * f-lang.c (f_language_data): Remove la_array_ordering
1978 initializer.
1979 (f_language::array_ordering): New member function.
1980 * go-lang.c (go_language_data): Remove la_array_ordering
1981 initializer.
1982 * language.c (unknown_language_data): Likewise.
1983 (auto_language_data): Likewise.
1984 * language.h (language_data): Delete la_array_ordering field.
1985 (language_defn::array_ordering): New member function.
1986 * m2-lang.c (m2_language_data): Remove la_array_ordering
1987 initializer.
1988 * objc-lang.c (objc_language_data): Likewise.
1989 * opencl-lang.c (opencl_language_data): Likewise.
1990 * p-lang.c (pascal_language_data): Likewise.
1991 * rust-lang.c (rust_language_data): Likewise.
1992
1993 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1996 initializer.
1997 * c-lang.c (c_language_data): Likewise.
1998 (cplus_language_data): Likewise.
1999 (asm_language_data): Likewise.
2000 (minimal_language_data): Likewise.
2001 * d-lang.c (d_language_data): Likewise.
2002 * f-lang.c (f_language_data): Likewise.
2003 (f_language::case_sensitivity): New member function.
2004 * go-lang.c (go_language_data): Remove la_case_sensitivity
2005 initializer.
2006 * language.c (enum case_mode): Moved here from language.h.
2007 (case_mode): Make static.
2008 (show_case_command): Update for case_sensitivity being a method.
2009 (set_case_command): Likewise.
2010 (set_range_case): Likewise.
2011 (unknown_language_data): Remove la_case_sensitivity initializer.
2012 (auto_language_data): Likewise.
2013 * language.h (case_mode): Delete, move enum declaration to
2014 language.c.
2015 (language_data): Delete la_case_sensitivity field.
2016 (language_defn::case_sensitivity): New member function.
2017 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2018 initializer.
2019 * objc-lang.c (objc_language_data): Likewise.
2020 * opencl-lang.c (opencl_language_data): Likewise.
2021 * p-lang.c (pascal_language_data): Likewise.
2022 * rust-lang.c (rust_language_data): Likewise.
2023
2024 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * ada-lang.c (ada_language_data): Remove la_range_check
2027 initializer.
2028 * c-lang.c (c_language_data): Likewise.
2029 (cplus_language_data): Likewise.
2030 (asm_language_data): Likewise.
2031 (minimal_language_data): Likewise.
2032 * d-lang.c (d_language_data): Likewise.
2033 * f-lang.c (f_language_data): Likewise.
2034 (f_language::range_checking_on_by_default): New member function.
2035 * go-lang.c (go_language_data): Remove la_range_check initializer.
2036 * language.c (enum range_mode): Moved here from language.h.
2037 (range_mode): Made static.
2038 (show_range_command): Update to use
2039 range_checking_on_by_default.
2040 (set_range_command): Likewise.
2041 (set_range_case): Likewise.
2042 (unknown_language_data): Remove la_range_check initializer.
2043 (auto_language_data): Likewise.
2044 * language.h (range_mode): Delete. Enum definition moved to
2045 language.c.
2046 (language_data): Remove la_range_check field.
2047 (language_defn::range_checking_on_by_default): New member
2048 function.
2049 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2050 (m2_language::range_checking_on_by_default): New member function.
2051 * objc-lang.c (objc_language_data): Remove la_range_check
2052 initializer.
2053 * opencl-lang.c (opencl_language_data): Likewise.
2054 * p-lang.c (pascal_language_data): Likewise.
2055 (pascal_language::range_checking_on_by_default): New member
2056 function.
2057 * rust-lang.c (rust_language_data): Remove la_range_check
2058 initializer.
2059 (rust_language::range_checking_on_by_default): New member
2060 function.
2061
2062 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * dwarf2/read.c (dwarf2_physname): Remove special case for
2065 language_go.
2066 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2067 member function.
2068
2069 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (ada_language_data): Remove
2072 la_store_sym_names_in_linkage_form_p initializer.
2073 (ada_language::store_sym_names_in_linkage_form_p): New member
2074 function.
2075 * c-lang.c (c_language_data): Remove
2076 la_store_sym_names_in_linkage_form_p initializer.
2077 (c_language::store_sym_names_in_linkage_form_p): New member
2078 function.
2079 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2080 initializer.
2081 (asm_language_data): Likewise.
2082 (asm_language::store_sym_names_in_linkage_form_p): New member
2083 function.
2084 (minimal_language_data): Remove
2085 la_store_sym_names_in_linkage_form_p initializer.
2086 (minimal_language::store_sym_names_in_linkage_form_p): New member
2087 function.
2088 * d-lang.c (d_language_data): Remove
2089 la_store_sym_names_in_linkage_form_p initializer.
2090 * dwarf2/read.c (dwarf2_physname): Update call to
2091 store_sym_names_in_linkage_form_p.
2092 * f-lang.c (f_language_data): Remove
2093 la_store_sym_names_in_linkage_form_p initializer.
2094 * go-lang.c (go_language_data): Remove
2095 la_store_sym_names_in_linkage_form_p initializer.
2096 * language.c (unknown_language_data): Remove
2097 la_store_sym_names_in_linkage_form_p initializer.
2098 (unknown_language::store_sym_names_in_linkage_form_p): New member
2099 function.
2100 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2101 initializer.
2102 (auto_language::store_sym_names_in_linkage_form_p): New member
2103 function.
2104 * language.h (language_data): Remove
2105 la_store_sym_names_in_linkage_form_p member variable.
2106 (language_defn::store_sym_names_in_linkage_form_p): New member
2107 function.
2108 * m2-lang.c (m2_language_data): Remove
2109 la_store_sym_names_in_linkage_form_p initializer.
2110 * objc-lang.c (objc_language_data): Likewise.
2111 * opencl-lang.c (opencl_language_data): Likewise.
2112 * p-lang.c (pascal_language_data): Likewise.
2113 * rust-lang.c (rust_language_data): Likewise.
2114
2115 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * ada-lang.c (ada_language_data): Remove string_lower_bound
2118 initializer.
2119 * c-lang.c (c_language_data): Likewise.
2120 (cplus_language_data): Likewise.
2121 (asm_language_data): Likewise.
2122 (minimal_language_data): Likewise.
2123 * d-lang.c (d_language_data): Likewise.
2124 * f-lang.c (f_language_data): Likewise.
2125 * go-lang.c (go_language_data): Likewise.
2126 * language.c (unknown_language_data): Likewise.
2127 (auto_language_data): Likewise.
2128 * language.h (language_data): Remove string_lower_bound field.
2129 (language_defn::string_lower_bound): New member function.
2130 * m2-lang.c (m2_language_data): Remove string_lower_bound
2131 initializer.
2132 (m2_language::string_lower_bound): New member function.
2133 * objc-lang.c (objc_language_data): Remove string_lower_bound
2134 initializer.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138 * valops.c (value_cstring): Update call to string_lower_bound.
2139 (value_string): Likewise.
2140 * value.c (allocate_repeated_value): Likewise.
2141
2142 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2143
2144 * valops.c (value_repeat): Fix incorrect argument name in comment.
2145
2146 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * ada-lang.c (ada_language_data): Remove c_style_arrays
2149 initializer.
2150 (ada_language::c_style_arrays_p): New member fuction.
2151 * c-lang.c (c_language_data): Remove c_style_arrays
2152 initializer.
2153 (cplus_language_data): Likewise.
2154 (asm_language_data): Likewise.
2155 (minimal_language_data): Likewise.
2156 * d-lang.c (d_language_data): Likewise.
2157 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2158 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2159 (f_language::c_style_arrays_p): New member function.
2160 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2161 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2162 * language.c (unknown_language_data): Remove c_style_arrays
2163 initializer.
2164 (auto_language_data): Likewise.
2165 * language.h (language_data): Remove c_style_arrays field.
2166 (language_defn::c_style_arrays_p): New member function.
2167 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2168 (m2_language::c_style_arrays_p): New member function.
2169 * objc-lang.c (objc_language_data): Remove c_style_arrays
2170 initializer.
2171 * opencl-lang.c (opencl_language_data): Likewise.
2172 * p-lang.c (pascal_language_data): Likewise.
2173 * rust-lang.c (rust_language_data): Likewise.
2174 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2175 and update local variable to a bool.
2176 * valops.c (value_cast): Update call to c_style_arrays_p.
2177 (value_array): Likewise.
2178 * value.c (coerce_array): Likewise.
2179
2180 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2181
2182 * ada-lang.c (ada_language_data): Remove la_language initializer.
2183 * c-lang.c (c_language_data): Likewise.
2184 (cplus_language_data): Likewise.
2185 (asm_language_data): Likewise.
2186 (minimal_language_data): Likewise.
2187 * d-lang.c (d_language_data): Likewise.
2188 * f-lang.c (f_language_data): Likewise.
2189 * go-lang.c (go_language_data): Likewise.
2190 * language.c (unknown_language_data): Likewise.
2191 (auto_language_data): Likewise.
2192 * language.h (language_data): Remove la_language field.
2193 (language_defn::language_defn): Initialise la_language field.
2194 (language_defn::la_language): New member variable.
2195 * m2-lang.c (m2_language_data): Remove la_language field.
2196 * objc-lang.c (objc_language_data): Likewise.
2197 * opencl-lang.c (opencl_language_data): Likewise.
2198 * p-lang.c (pascal_language_data): Likewise.
2199 * rust-lang.c (rust_language_data): Likewise.
2200
2201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * ada-lang.c (ada_extensions): Delete, moved into
2204 ada_language::filename_extensions.
2205 (ada_language_data): Remove la_filename_extensions initializer.
2206 (ada_language::filename_extensions): New member function.
2207 * c-lang.c (c_extensions): Delete, moved into
2208 c_language::filename_extensions.
2209 (c_language_data): Remove la_filename_extensions initializer.
2210 (c_language::filename_extensions): New member function.
2211 (cplus_extensions): Delete, moved into
2212 cplus_language::filename_extensions.
2213 (cplus_language_data): Remove la_filename_extensions initializer.
2214 (cplus_language::filename_extensions): New member function.
2215 (asm_extensions): Delete, moved into
2216 asm_language::filename_extensions.
2217 (asm_language_data): Remove la_filename_extensions initializer.
2218 (asm_language::filename_extensions): New member function.
2219 (minimal_language_data): Remove la_filename_extensions
2220 initializer.
2221 * d-lang.c (d_extensions): Delete, moved into
2222 d_language::filename_extensions.
2223 (d_language_data): Remove la_filename_extensions initializer.
2224 (d_language::filename_extensions): New member function.
2225 * f-lang.c (f_extensions): Delete, moved into
2226 f_language::filename_extensions.
2227 (f_language_data): Remove la_filename_extensions initializer.
2228 (f_language::filename_extensions): New member function.
2229 * go-lang.c (go_language_data): Remove la_filename_extensions
2230 initializer.
2231 * language.c (add_set_language_command): Update now that
2232 filename_extensions returns a vector.
2233 (unknown_language_data): Remove la_filename_extensions
2234 initializer.
2235 (auto_language_data): Likewise.
2236 * language.h (language_data): Remove la_filename_extensions field.
2237 (language_defn::filename_extensions): New member function.
2238 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2239 initializer.
2240 * objc-lang.c (objc_extensions): Delete, moved into
2241 objc_language::filename_extensions.
2242 (objc_language_data): Remove la_filename_extensions initializer.
2243 (objc_language::filename_extensions): New member function.
2244 * opencl-lang.c (opencl_language_data): Remove
2245 la_filename_extensions initializer.
2246 * p-lang.c (pascal_extensions): Delete, moved into
2247 pascal_language::filename_extensions.
2248 (pascal_language_data): Remove la_filename_extensions initializer.
2249 (pascal_language::filename_extensions): New member function.
2250 * rust-lang.c (rust_extensions): Delete, moved into
2251 rust_language::filename_extensions.
2252 (rust_language_data): Remove la_filename_extensions initializer.
2253 (rust_language::filename_extensions): New member function.
2254 * symfile.c (add_filename_language): Add new assert.
2255
2256 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2257
2258 * ada-lang.c (ada_language_data): Remove la_name and
2259 la_natural_name initializers.
2260 (ada_language::name): New member function.
2261 (ada_language::natural_name): New member function.
2262 * c-lang.c (c_language_data): Remove la_name and
2263 la_natural_name initializers.
2264 (c_language::name): New member function.
2265 (c_language::natural_name): New member function.
2266 (cplus_language_data): Remove la_name and
2267 la_natural_name initializers.
2268 (cplus_language::name): New member function.
2269 (cplus_language::natural_name): New member function.
2270 (asm_language_data): Remove la_name and
2271 la_natural_name initializers.
2272 (asm_language::name): New member function.
2273 (asm_language::natural_name): New member function.
2274 (minimal_language_data): Remove la_name and
2275 la_natural_name initializers.
2276 (minimal_language::name): New member function.
2277 (minimal_language::natural_name): New member function.
2278 * compile/compile.c (compile_to_object): Update call to
2279 lanugage_defn::name.
2280 * d-lang.c (d_language_data): Remove la_name and
2281 la_natural_name initializers.
2282 (d_language::name): New member function.
2283 (d_language::natural_name): New member function.
2284 * expprint.c (print_subexp_standard): Update call to
2285 language_defn::name.
2286 (dump_raw_expression): Likewise
2287 (dump_prefix_expression): Likewise.
2288 * f-lang.c (f_language_data): Remove la_name and
2289 la_natural_name initializers.
2290 (f_language::name): New member function.
2291 (f_language::natural_name): New member function.
2292 * go-lang.c (go_language_data): Remove la_name and
2293 la_natural_name initializers.
2294 (go_language::name): New member function.
2295 (go_language::natural_name): New member function.
2296 * language.c (show_language_command): Update call to
2297 language_defn::name.
2298 (set_language_command): Likewise.
2299 (language_enum): Likewise.
2300 (language_str): Likewise.
2301 (add_set_language_command): Likewise, use
2302 language_defn::natural_name in the doc string.
2303 (unknown_language_data): Remove la_name and
2304 la_natural_name initializers.
2305 (unknown_language::name): New member function.
2306 (unknown_language::natural_name): New member function.
2307 (auto_language_data): Remove la_name and
2308 la_natural_name initializers.
2309 (auto_language::name): New member function.
2310 (auto_language::natural_name): New member function.
2311 (language_lookup_primitive_type_as_symbol): Update call to
2312 language_defn::name.
2313 * language.h (language_data): Remove la_name and la_natural_name
2314 member variables.
2315 (language_defn::name): New member function.
2316 (language_defn::natural_name): New member function.
2317 * m2-lang.c (m2_language_data): Remove la_name and
2318 la_natural_name initializers.
2319 (m2_language::name): New member function.
2320 (m2_language::natural_name): New member function.
2321 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2322 language_defn::natural_name.
2323 * objc-lang.c (objc_language_data): Remove la_name and
2324 la_natural_name initializers.
2325 (objc_language::name): New member function.
2326 (objc_language::natural_name): New member function.
2327 * opencl-lang.c (opencl_language_data): Remove la_name and
2328 la_natural_name initializers.
2329 (opencl_language::name): New member function.
2330 (opencl_language::natural_name): New member function.
2331 * p-lang.c (pascal_language_data): Remove la_name and
2332 la_natural_name initializers.
2333 (pascal_language::name): New member function.
2334 (pascal_language::natural_name): New member function.
2335 * rust-lang.c (rust_language_data): Remove la_name and
2336 la_natural_name initializers.
2337 (rust_language::name): New member function.
2338 (rust_language::natural_name): New member function.
2339 * symtab.c (lookup_language_this): Update call to
2340 language_defn::name.
2341
2342 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2343
2344 * ada-lang.c (ada_language_data): Remove la_name_of_this
2345 initializer.
2346 * ax-gdb.c (gen_expr): Update call to name_of_this.
2347 * c-exp.y (classify_name): Likewise.
2348 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2349 (cplus_language_data): Likewise.
2350 (cplus_language::name_of_this): New member function.
2351 (asm_language_data): Remove la_name_of_this initializer.
2352 (minimal_language_data): Likewise.
2353 * d-lang.c (d_language_data): Likewise.
2354 (d_language::name_of_this): New member function.
2355 * expprint.c (print_subexp_standard): Update call to name_of_this.
2356 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2357 * go-lang.c (go_language_data): Likewise.
2358 * language.c (unknown_language_data): Likewise.
2359 (unknown_language::name_of_this): New member function.
2360 (auto_language_data): Remove la_name_of_this initializer.
2361 (auto_language::name_of_this): New member function.
2362 * language.h (language_data): Delete la_name_of_this member
2363 variable.
2364 (language_defn::name_of_this): New member function.
2365 * m2-lang.c (m2_language_data): Remove la_name_of_this
2366 initializer.
2367 * objc-lang.c (objc_language_data): Likewise.
2368 (objc_language::name_of_this): New member function.
2369 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2370 initializer.
2371 * p-lang.c (pascal_language_data): Likewise.
2372 (pascal_language::name_of_this): New member function.
2373 * rust-lang.c (rust_language_data): Remove la_name_of_this
2374 initializer.
2375 * symtab.c (lookup_language_this): Update call to name_of_this.
2376 (lookup_symbol_aux): Likewise.
2377 * valops.c (value_of_this): Likewise.
2378
2379 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * ada-lang.c (ada_language_data): Remove
2382 la_struct_too_deep_ellipsis initializer.
2383 (ada_language::struct_too_deep_ellipsis): New member function.
2384 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2385 initializer.
2386 (cplus_language_data): Likewise.
2387 (asm_language_data): Likewise.
2388 (minimal_language_data): Likewise.
2389 * cp-valprint.c (cp_print_value): Update call to
2390 struct_too_deep_ellipsis.
2391 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2392 initializer.
2393 * f-lang.c (f_language_data): Likewise.
2394 (f_language::struct_too_deep_ellipsis): New member function.
2395 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2396 initializer.
2397 * language.c (unknown_language_data): Likewise.
2398 (auto_language_data): Likewise.
2399 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2400 member variable.
2401 (language_defn::struct_too_deep_ellipsis): New member function.
2402 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2403 initializer.Q
2404 * objc-lang.c (objc_language_data): Likewise.
2405 * opencl-lang.c (opencl_language_data): Likewise.
2406 * p-lang.c (pascal_language_data): Likewise.
2407 * rust-lang.c (rust_language_data): Likewise.
2408 * valprint.c (val_print_check_max_depth): Update call to
2409 struct_too_deep_ellipsis.
2410
2411 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2412
2413 * MAINTAINERS (Write After Approval): Add myself.
2414
2415 2020-09-15 Tom Tromey <tom@tromey.com>
2416
2417 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2418 Remove.
2419
2420 2020-09-15 Tom Tromey <tom@tromey.com>
2421
2422 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2423 and TYPE_CODE_METHODPTR cases.
2424 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2425 (c_value_print_inner): Update.
2426 * valprint.c (generic_value_print_memberptr): New function, from
2427 c_value_print_memberptr.
2428 (generic_value_print): Use it. Call cplus_print_method_ptr.
2429
2430 2020-09-15 Tom Tromey <tromey@adacore.com>
2431
2432 * python/python-internal.h (PyInt_FromLong): Remove define.
2433 * python/py-value.c (convert_value_from_python): Use
2434 gdb_py_object_from_longest.
2435 * python/py-type.c (typy_get_code): Use
2436 gdb_py_object_from_longest.
2437 * python/py-symtab.c (salpy_get_line): Use
2438 gdb_py_object_from_longest.
2439 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2440 gdb_py_object_from_longest.
2441 * python/py-record.c (recpy_gap_reason_code): Use
2442 gdb_py_object_from_longest.
2443 * python/py-record-btrace.c (recpy_bt_insn_size)
2444 (recpy_bt_func_level, btpy_list_count): Use
2445 gdb_py_object_from_longest.
2446 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2447 gdb_py_object_from_longest. Fix error handling.
2448 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2449 gdb_py_object_from_longest.
2450 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2451 gdb_py_object_from_longest.
2452 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2453 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2454 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2455
2456 2020-09-15 Tom Tromey <tromey@adacore.com>
2457
2458 * python/python.c (gdbpy_parameter_value): Use
2459 gdb_py_object_from_ulongest.
2460
2461 2020-09-15 Tom Tromey <tromey@adacore.com>
2462
2463 * python/py-infevents.c (create_register_changed_event_object):
2464 Use gdb_py_object_from_longest.
2465 * python/py-exitedevent.c (create_exited_event_object): Use
2466 gdb_py_object_from_longest.
2467
2468 2020-09-15 Tom Tromey <tromey@adacore.com>
2469
2470 * python/python.c (gdbpy_parameter_value): Use
2471 gdb_py_object_from_longest.
2472 * python/py-type.c (convert_field, typy_range): Use
2473 gdb_py_object_from_longest.
2474 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2475 gdb_py_object_from_longest.
2476 * python/py-lazy-string.c (stpy_get_length): Use
2477 gdb_py_object_from_longest.
2478 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2479 gdb_py_object_from_longest.
2480 * python/py-infevents.c (create_memory_changed_event_object): Use
2481 gdb_py_object_from_longest.
2482 * python/py-inferior.c (infpy_get_num): Use
2483 gdb_py_object_from_longest.
2484 (infpy_get_pid): Likewise.
2485
2486 2020-09-15 Tom Tromey <tromey@adacore.com>
2487
2488 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2489 defines.
2490 * python/py-value.c (valpy_long): Use
2491 gdb_py_object_from_ulongest.
2492 * python/py-symtab.c (salpy_get_pc): Use
2493 gdb_py_object_from_ulongest.
2494 (salpy_get_last): Likewise.
2495 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2496 gdb_py_object_from_ulongest.
2497 * python/py-lazy-string.c (stpy_get_address): Use
2498 gdb_py_object_from_ulongest.
2499 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2500 * python/py-arch.c (archpy_disassemble): Use
2501 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2502 error handling.
2503
2504 2020-09-15 Tom Tromey <tromey@adacore.com>
2505
2506 * python/python-internal.h (gdb_py_long_from_longest): Remove
2507 defines.
2508 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2509 * python/py-type.c (convert_field, typy_get_sizeof): Use
2510 gdb_py_object_from_longest.
2511 * python/py-record-btrace.c (btpy_list_index): Use
2512 gdb_py_object_from_longest.
2513
2514 2020-09-15 Tom Tromey <tromey@adacore.com>
2515
2516 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2517 * python/py-record.c (recpy_element_number): Use
2518 gdb_py_object_from_longest.
2519 (recpy_gap_number): Likewise.
2520
2521 2020-09-15 Tom Tromey <tromey@adacore.com>
2522
2523 * top.c (ui::ui): Update.
2524 (highest_ui_num): Remove.
2525 * top.h (struct ui) <num>: Remove.
2526
2527 2020-09-15 Tom Tromey <tromey@adacore.com>
2528
2529 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2530 * ui-style.c (ansi_regex_text): Now array.
2531 * rust-exp.y (number_regex_text): Now array.
2532 * linespec.c (linespec_quote_characters): Now array.
2533 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2534 Now arrays.
2535
2536 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * debuginfod-support.c (debuginfod_client_deleter): New.
2539 (debuginfod_client_up): New.
2540 (debuginfod_init): Return debuginfod_client_up.
2541 (debuginfod_source_query): Adjust.
2542 (debuginfod_debuginfo_query): Adjust.
2543
2544 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * debuginfod-support.c (debuginfod_source_query): Use
2547 make_unique_xstrdup.
2548
2549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2552 with `type::instance_flags`.
2553
2554 2020-09-14 Michael Mullin <masmullin@gmail.com>
2555
2556 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2557 Remove baton parameter.
2558
2559 2020-09-14 Pedro Alves <pedro@palves.net>
2560
2561 * Makefile.in (SELFTESTS_SRCS): Add
2562 unittests/enum-flags-selftests.c.
2563 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2564 btrace_function_flags instead of enum btrace_function_flag.
2565 * compile/compile-c-types.c (convert_qualified): Use
2566 enum_flags::raw.
2567 * compile/compile-cplus-symbols.c (convert_one_symbol)
2568 (convert_symbol_bmsym):
2569 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2570 (compile_cplus_convert_struct_or_union_methods)
2571 (compile_cplus_instance::convert_qualified_base):
2572 * go-exp.y (parse_string_or_char): Add cast to int.
2573 * unittests/enum-flags-selftests.c: New file.
2574 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2575 type to btrace_thread_flags from btrace_thread_flag.
2576 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2577 local's type to btrace_thread_flags from btrace_thread_flag. Add
2578 cast in DEBUG call.
2579
2580 2020-09-14 Pedro Alves <pedro@palves.net>
2581
2582 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2583 * gdbtypes.c (address_space_name_to_int): Rename to ...
2584 (address_space_name_to_type_instance_flags): ... this.
2585 (address_space_int_to_name): Rename to ...
2586 (address_space_type_instance_flags_to_name): ... this.
2587 * gdbtypes.h (address_space_name_to_int): Rename to ...
2588 (address_space_name_to_type_instance_flags): ... this.
2589 (address_space_int_to_name): Rename to ...
2590 (address_space_type_instance_flags_to_name): ... this.
2591 * type-stack.c (type_stack::insert): Adjust to rename.
2592 * type-stack.h (type_stack::insert): Likewise.
2593
2594 2020-09-14 Pedro Alves <pedro@palves.net>
2595 Andrew Burgess <andrew.burgess@embecosm.com>
2596
2597 * avr-tdep.c (avr_address_class_type_flags): Return
2598 type_instance_flags.
2599 (avr_address_class_type_flags_to_name): Take a
2600 type_instance_flags.
2601 (avr_address_class_name_to_type_flags): Return bool and take a
2602 type_instance_flags.
2603 * d-lang.c (build_d_types): Use type::set_instance_flags.
2604 * ft32-tdep.c (ft32_address_class_type_flags): Return
2605 type_instance_flags.
2606 (ft32_address_class_type_flags_to_name): Take a
2607 type_instance_flags.
2608 (ft32_address_class_name_to_type_flags): Return bool and take a
2609 type_instance_flags.
2610 (ft32_gdbarch_init): Use type::set_instance_flags.
2611 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2612 * gdbarch.h, gdbarch.c: Regenerate.
2613 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2614 (address_class_name_to_type_flags): Use type_instance_flags and
2615 bool.
2616 * gdbtypes.c (address_space_name_to_int)
2617 (address_space_int_to_name, make_qualified_type): Use
2618 type_instance_flags.
2619 (make_qualified_type): Use type_instance_flags and
2620 type::set_instance_flags.
2621 (make_type_with_address_space, make_cv_type, make_vector_type)
2622 (check_typedef): Use type_instance_flags.
2623 (recursive_dump_type): Cast type_instance_flags to unsigned for
2624 printing.
2625 (copy_type_recursive): Use type::set_instance_flags.
2626 (gdbtypes_post_init): Use type::set_instance_flags.
2627 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2628 <m_instance_flags>: ... this.
2629 <instance_flags, set_instance_flags>: New methods.
2630 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2631 (SET_TYPE_INSTANCE_FLAGS): New.
2632 (address_space_name_to_int, address_space_int_to_name)
2633 (make_type_with_address_space): Pass flags using
2634 type_instance_flags instead of int.
2635 * stabsread.c (cleanup_undefined_types_noname): Use
2636 type::set_instance_flags.
2637 * s390-tdep.c (s390_address_class_type_flags): Return
2638 type_instance_flags.
2639 (s390_address_class_type_flags_to_name): Take a
2640 type_instance_flags.
2641 (s390_address_class_name_to_type_flags): Return bool and take a
2642 type_instance_flags.
2643 * type-stack.c (type_stack::follow_types): Use
2644 type_instance_flags.
2645 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2646
2647 2020-09-14 Tom Tromey <tromey@adacore.com>
2648
2649 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2650 * x86-tdep.c (x86_is_thunk_register_name)
2651 (x86_in_indirect_branch_thunk): Update.
2652 * sparc64-tdep.c (sparc64_fpu_register_names)
2653 (sparc64_cp0_register_names, sparc64_register_names)
2654 (sparc64_pseudo_register_names): Now const.
2655 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2656 cp0_registers_num>: Now const.
2657 * sparc-tdep.c (sparc_core_register_names)
2658 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2659 (sparc32_pseudo_register_names): Now const.
2660 (validate_tdesc_registers): Update.
2661 * rust-lang.c (rust_extensions): Now const.
2662 * p-lang.c (p_extensions): Now const.
2663 * objc-lang.c (objc_extensions): Now const.
2664 * nto-tdep.c (nto_thread_state_str): Now const.
2665 * moxie-tdep.c (moxie_register_names): Now const.
2666 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2667 Now const.
2668 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2669 (mips_linux_reg_names): Now const.
2670 (mips_gdbarch_init): Update.
2671 * microblaze-tdep.c (microblaze_register_names): Now const.
2672 * m68k-tdep.c (m68k_register_names): Now const.
2673 * m32r-tdep.c (m32r_register_names): Now const.
2674 * ia64-tdep.c (ia64_register_names): Now const.
2675 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2676 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2677 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2678 ymm_avx512_register_names, pkeys_register_names>: Now const.
2679 * i386-tdep.c (i386_register_names, i386_zmm_names)
2680 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2681 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2682 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2683 * f-lang.c (f_extensions): Now const.
2684 * d-lang.c (d_extensions): Now const.
2685 * csky-tdep.c (csky_register_names): Now const.
2686 * charset.c (default_charset_names, charset_enum): Now const.
2687 (_initialize_charset): Update.
2688 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2689 const.
2690 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2691 (bsd_uthread_solib_loaded): Update.
2692 (bsd_uthread_state): Now const.
2693 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2694 (amd64_ymm_avx512_names, amd64_ymmh_names)
2695 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2696 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2697 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2698 (amd64_dword_names): Now const.
2699 * agent.c (can_use_agent_enum): Now const.
2700 * ada-tasks.c (task_states, long_task_states): Now const.
2701 * ada-lang.c (known_runtime_file_name_patterns)
2702 (known_auxiliary_function_name_patterns, attribute_names)
2703 (standard_exc, ada_extensions): Now const.
2704
2705 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * bcache.h (struct bcache) <bcache>: Remove constructor.
2708 <m_hash_function, m_compare_function>: Remove.
2709 <~bcache>: Make virtual.
2710 <compare>: Remove static method, introduce virtual method.
2711 <default_hash>: Remove.
2712 <hash>: New virtual method.
2713 * bcache.c (bcache::expand_hash_table): Update.
2714 (bcache::insert): Update.
2715 (bcache::hash): New.
2716 (bcache::compare): Update comment and parameter names.
2717 * gdbtypes.c (types_deeply_equal): Update.
2718 * psymtab.h (struct psymbol_bcache): New struct.
2719 (class psymtab_storage) <psymtab_storage>: Make default.
2720 <psymbol_cache>: Change type to psymbol_bcache.
2721 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2722 (psymbol_hash): Change to...
2723 (psymbol_bcache::hash): ... this.
2724 (psymbol_compare): Change to...
2725 (psymbol_bcache::compare): ... this.
2726
2727 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2730 checking for initial lwp.
2731
2732 2020-09-14 Tom Tromey <tromey@adacore.com>
2733
2734 * m68k-tdep.c (m68k_extract_return_value): Use
2735 pointer_result_regnum.
2736 (m68k_store_return_value): Likewise.
2737 (m68k_reg_struct_return_p): Handle vectors and arrays.
2738 (m68k_return_value): Handle arrays.
2739 (m68k_svr4_return_value): Fix single-element aggregate handling.
2740 Handle long double. Adjust for embedded ABI.
2741 (m68k_svr4_init_abi): Set pointer_result_regnum.
2742 (m68k_embedded_init_abi): New function.
2743 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2744 (m68k_osabi_sniffer): New function.
2745 (_initialize_m68k_tdep): Register osabi sniffer.
2746 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2747 member.
2748
2749 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2752 with gdb::unique_xmalloc_ptr<char>.
2753
2754 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2755
2756 * xml-support.h (xml_fetch_another): Change type to be a
2757 function_view.
2758 (xml_process_xincludes): Remove baton parameter.
2759 (xml_fetch_content_from_file): Change baton parameter to
2760 dirname.
2761 * xml-support.c (struct xinclude_parsing_data)
2762 <xinclude_parsing_data>: Remove baton parameter.
2763 <fetcher_baton>: Remove.
2764 (xinclude_start_include): Adjust.
2765 (xml_process_xincludes): Adjust.
2766 (xml_fetch_content_from_file): Replace baton parameter with
2767 dirname.
2768 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2769 (xml_init_syscalls_info): Use a lambda.
2770 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2771 (file_read_description_xml): Use a lambda.
2772 (fetch_available_features_from_target): Change baton parameter
2773 to target_ops.
2774 (target_read_description_xml): Use a lambda.
2775 (target_fetch_description_xml): Use a lambda.
2776 (string_read_description_xml): Update.
2777
2778 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2781 uses with type::endianity_is_not_default.
2782
2783 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * gdbtypes.h (struct type) <endianity_is_not_default,
2786 set_endianity_is_not_default>: New methods.
2787 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2788 type::endianity_is_not_default, change all write call sites to
2789 use type::set_endianity_is_not_default.
2790
2791 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2792
2793 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2794 uses with type::is_fixed_instance.
2795
2796 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * gdbtypes.h (struct type) <is_fixed_instance,
2799 set_is_fixed_instance>: New methods.
2800 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2801 write call sites to use type::set_is_fixed_instance.
2802
2803 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2806 uses with type::is_gnu_ifunc.
2807
2808 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2809
2810 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2811 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2812 use type::set_is_gnu_ifunc.
2813
2814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2817 uses with type::stub_is_supported.
2818
2819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2822 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2823 use type::set_stub_is_supported.
2824
2825 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2828 uses with type::is_vector.
2829
2830 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2833 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2834 use type::set_is_vector.
2835
2836 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2839 uses with type::has_varargs.
2840
2841 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2844 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2845 use type::set_has_varargs.
2846
2847 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2850 uses with type::is_prototyped.
2851
2852 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2855 New methods.
2856 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2857 call sites to use type::set_is_prototyped.
2858
2859 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2862 uses with type::target_is_stub.
2863
2864 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2867 New methods.
2868 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2869 sites to use type::set_target_is_stub.
2870
2871 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * gdbtypes.h (TYPE_STUB): Remove, replace all
2874 uses with type::is_stub.
2875
2876 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2879 (TYPE_STUB): Use type::is_stub, change all write call sites to
2880 use type::set_is_stub.
2881
2882 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2883
2884 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2885 type::has_no_signedness.
2886
2887 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2888
2889 * gdbtypes.h (struct type) <has_no_signedness,
2890 set_has_no_signedness>: New methods.
2891 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2892 call sites to use type::set_has_no_signedness.
2893
2894 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2895
2896 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2897 type::is_unsigned.
2898
2899 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2900
2901 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2902 methods.
2903 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2904 sites to use type::set_is_unsigned.
2905
2906 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2907 Adam Renquinha <arenquinha@cimeq.qc.ca>
2908
2909 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2910 pointer and stack frame offset when unwinding.
2911
2912 2020-09-13 Pedro Alves <pedro@palves.net>
2913
2914 * NEWS: Document "-break-insert --qualified".
2915 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2916
2917 2020-09-13 Pedro Alves <pedro@palves.net>
2918
2919 * linespec.c (classify_mtype, compare_msyms): Delete.
2920 (search_minsyms_for_name): Remove classification logic. Instead
2921 filter out trampoline symbols if we also found an external
2922 function of the same name.
2923
2924 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2925
2926 * NEWS: Create a new section for the next release branch.
2927 Rename the section of the current branch, now that it has
2928 been cut.
2929
2930 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2931
2932 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2933 * version.in: Bump version to 11.0.50.DATE-git.
2934
2935 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2936
2937 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2938
2939 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2940 Felix Willgerodt <Felix.Willgerodt@intel.com>
2941
2942 * gdbarch.sh: Added bfloat16 type.
2943 * gdbarch.c: Regenerated.
2944 * gdbarch.h: Regenerated.
2945 * gdbtypes.c (floatformats_bfloat16): New struct.
2946 (gdbtypes_post_init): Add builtin_bfloat16.
2947 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2948 (floatformats_bfloat16): New struct.
2949 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2950 (i386_ymm_type): Add field "v16_bfloat16"
2951 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2952 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2953 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2954 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2955 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2956 * features/i386/64bit-avx512.c: Regenerated.
2957 * features/i386/64bit-sse.xml: Add bfloat16 type.
2958 * features/i386/64bit-sse.c: Regenerated.
2959
2960 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2961
2962 * i386-tdep.c (i386_zmm_type): Fix field names.
2963 (i386_ymm_type): Fix field names.
2964
2965 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2966
2967 * breakpoint.c: Fix typo in the help message of the
2968 "set breakpoint condition-evaluation" command.
2969
2970 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2971
2972 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2973 * (nbsd_nat_target::pid_to_exec_file)
2974 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2975 (nbsd_nat_target::post_startup_inferior)
2976 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2977 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2978 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2979 * (nbsd_thread_lister): Remove.
2980
2981 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2982
2983 * fork-inferior.c (startup_inferior): Avoid double free.
2984
2985 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2986
2987 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2988 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2989
2990 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2991
2992 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2993 * netbsd-nat.c: Include <sys/ptrace.h>.
2994 * (netbsd_nat::enable_proc_events): Add.
2995
2996 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2997
2998 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2999 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3000 (netbsd_nat::for_each_thread): Add.
3001 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3002 "gdbsupport/common-debug.h".
3003 * (netbsd_nat::netbsd_thread_lister)
3004 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3005 (netbsd_nat::for_each_thread): Add.
3006
3007 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3008
3009 * netbsd-nat.h: Include <unistd.h>.
3010 * (netbsd_nat::pid_to_exec_file): Add.
3011 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3012 * (netbsd_nat::pid_to_exec_file) Add.
3013
3014 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3015
3016 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3017
3018 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3019
3020 * netbsd-nat.h: New file.
3021 * netbsd-nat.c: Likewise.
3022
3023 2020-09-09 Tom Tromey <tromey@adacore.com>
3024
3025 * ada-lang.c (remove_extra_symbols): Do not increment when
3026 removing an element
3027
3028 2020-09-08 Tom Tromey <tromey@adacore.com>
3029
3030 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3031
3032 2020-09-08 Tom Tromey <tromey@adacore.com>
3033
3034 PR win32/25302:
3035 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3036 (gdb_bfd_init_data): New function.
3037 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3038
3039 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 * infrun.c (fetch_inferior_event): Use
3042 `switch_to_target_no_thread` to switch the target.
3043
3044 2020-09-06 Tom Tromey <tom@tromey.com>
3045
3046 * symfile.h (dwarf2_free_objfile): Don't declare.
3047
3048 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3049
3050 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3051 to match 16 byte real/complex type generated by Flang compiler.
3052
3053 2020-09-03 Tom de Vries <tdevries@suse.de>
3054
3055 PR breakpoint/26546
3056 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3057 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3058
3059 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * maint.c (index_digits): New function.
3062 (struct maint_print_section_data): Remove.
3063 (print_bfd_section_info): Remove print_data parameter, add arg
3064 and index_digits.
3065 (print_objfile_section_info): Likewise.
3066 (print_bfd_section_info_maybe_relocated): Likewise (plus
3067 objfile).
3068 (maintenance_info_sections): Adjust calls.
3069
3070 2020-09-02 Tom Tromey <tromey@adacore.com>
3071
3072 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3073 for null pointers.
3074 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3075
3076 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3077
3078 * bcache.h (struct bcache) <insert>: Change type of `added` to
3079 pointer to bool.
3080 * bcache.c (bcache::insert): Likewise.
3081 * gdbtypes.c (check_types_worklist): Adjust.
3082 * psymtab.c (add_psymbol_to_bcache): Adjust.
3083
3084 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3085
3086 * corelow.c (unordered_set): Include.
3087 (class core_target): Add field 'm_core_unavailable_mappings'.
3088 (core_target::build_file_mappings): Print only one warning
3089 per inaccessible file. Add unavailable/broken mappings
3090 to m_core_unavailable_mappings.
3091 (core_target::xfer_partial): Call...
3092 (core_target::xfer_memory_via_mappings): New method.
3093
3094 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3097 type to bool.
3098
3099 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3100
3101 * dwarf2/read.c (struct field_info): Fix indentation.
3102
3103 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3106 ordering in comment.
3107 * frame.c (frame_id_eq): Fix indentation.
3108
3109 2020-08-31 Scott Linder <scott@scottlinder.com>
3110 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3113 inline frame ids in outer frame.
3114
3115 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3118 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3119 (outer_frame_id): Use FID_STACK_OUTER instead of
3120 FID_STACK_INVALID.
3121 (frame_id_p): Don't check for outer_frame_id.
3122
3123 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3126 regnum/frame in value. Call allocate_value_lazy.
3127 * frame.c (frame_unwind_register_value): Use
3128 val_print_not_saved.
3129
3130 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3131
3132 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3133
3134 2020-08-29 Pedro Alves <pedro@palves.net>
3135
3136 * progspace.c (print_program_space): Use all_inferiors. Switch to
3137 the inferior before calling target_pid_to_str.
3138
3139 2020-08-28 Tom Tromey <tom@tromey.com>
3140
3141 * xcoffread.c (xcoff_end_psymtab): Update comment.
3142 * dbxread.c (dbx_end_psymtab): Update comment.
3143
3144 2020-08-28 Tom de Vries <tdevries@suse.de>
3145
3146 PR breakpoint/26544
3147 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3148 event_location.
3149 (create_breakpoint): Same.
3150 (base_breakpoint_decode_location): Same.
3151 (bkpt_create_sals_from_location): Same.
3152 (bkpt_decode_location): Same.
3153 (bkpt_probe_create_sals_from_location): Same.
3154 (bkpt_probe_decode_location): Same.
3155 (tracepoint_create_sals_from_location): Same.
3156 (tracepoint_decode_location): Same.
3157 (tracepoint_probe_decode_location): Same.
3158 (strace_marker_create_sals_from_location): Same.
3159 (strace_marker_decode_location): Same.
3160 (create_sals_from_location_default): Same.
3161 (decode_location_default): Same.
3162 * breakpoint.h (struct breakpoint_ops): Same.
3163 (create_breakpoint): Same.
3164 * linespec.h (decode_line_full): Same.
3165 * linespec.c (decode_line_full): Same. Throw error if
3166 result.size () == 0.
3167
3168 2020-08-27 Pedro Alves <pedro@palves.net>
3169
3170 PR gdb/26524
3171 * breakpoint.c (until_break_fsm) <location_breakpoint,
3172 caller_breakpoint>: Delete fields.
3173 <breakpoints>: New field.
3174 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3175 two individual breakpoints.
3176 (until_break_fsm::should_stop): Loop over breakpoints in the
3177 breakpoint vector.
3178 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3179 vector.
3180 (until_break_command): Handle location expanding into multiple
3181 sals.
3182
3183 2020-08-27 Pedro Alves <pedro@palves.net>
3184
3185 PR gdb/26523
3186 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3187 bp_until breakpoints user-specified locations. Update intro
3188 comment.
3189
3190 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3193 gdb_bfd_sections): New.
3194 * maint.c (print_bfd_section_info): Change param type to
3195 maint_print_section_data.
3196 (print_objfile_section_info): Likewise.
3197 (print_bfd_section_info_maybe_relocated): Likewise.
3198 (maintenance_info_sections): Use gdb_bfd_sections.
3199
3200 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3201
3202 * MAINTAINERS: Add ARC target and maintainer.
3203
3204 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3205
3206 * configure.tgt: ARC support for GNU/Linux.
3207 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3208 * arc-linux-tdep.c: New file.
3209 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3210 * arc-tdep.c (arc_write_pc): Use it.
3211
3212 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3213
3214 * arc-tdep.c (arc_check_for_hardware_loop): New.
3215 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3216
3217 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3218
3219 * arc-tdep.h: Include "gdbarch.h".
3220
3221 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3222
3223 * arch/arc.h
3224 (arc_gdbarch_features): New class to stir the selection of target XML.
3225 (arc_create_target_description): Use FEATURES to choose XML target.
3226 (arc_lookup_target_description): Use arc_create_target_description
3227 to create _new_ target descriptions or return the already created
3228 ones if the FEATURES is the same.
3229 * arch/arc.c: Implementation of prototypes described above.
3230 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3231 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3232 * arc-tdep.c (*_feature_name): Make feature names consistent.
3233 (arc_register_feature): A new struct to hold information about
3234 registers of a particular target/feature.
3235 (arc_check_tdesc_feature): Check if XML provides registers in
3236 compliance with ARC_REGISTER_FEATURE structs.
3237 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3238 (determine_*_reg_feature_set): Which feature name to look for.
3239 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3240 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3241 to expected ISA enums to be used in arc_gdbarch_features structs.
3242 * features/Makefile (FEATURE_XMLFILES): Add new files.
3243 * gdb/features/arc/v1-aux.c: New file.
3244 * gdb/features/arc/v1-aux.xml: Likewise.
3245 * gdb/features/arc/v1-core.c: Likewise.
3246 * gdb/features/arc/v1-core.xml: Likewise.
3247 * gdb/features/arc/v2-aux.c: Likewise.
3248 * gdb/features/arc/v2-aux.xml: Likewise.
3249 * gdb/features/arc/v2-core.c: Likewise.
3250 * gdb/features/arc/v2-core.xml: Likewise.
3251 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3252
3253 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3254 Andrew Burgess <andrew.burgess@embecosm.com>
3255
3256 PR m2/26372
3257 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3258 an assert. Remove single element array indexing pattern as the
3259 MULTI_SUBSCRIPT support will handle this case too.
3260
3261 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * value.h (valprint_check_validity): Move declaration from
3264 here...
3265 * valprint.h (valprint_check_validity): ... to here.
3266
3267 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * debug.h: New file.
3270 * debug.c (debug_prefixed_vprintf): New function.
3271 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3272 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3273
3274 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * infrun.h (infrun_debug_printf_1): New function declaration.
3277 (infrun_debug_printf): New macro.
3278 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3279 throughout.
3280 (infrun_debug_printf): New function.
3281 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3282 (handle_jit_event): Likewise.
3283
3284 2020-08-21 Mark Wielaard <mark@klomp.org>
3285
3286 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3287
3288 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * frame.c (enum class frame_id_status): New.
3291 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3292 (fprintf_frame): Update.
3293 (compute_frame_id): Set frame id status to "computing" on entry.
3294 Set it back to "not_computed" on failure and to "computed" on
3295 success.
3296 (get_frame_id): Assert the frame id is not being computed.
3297 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3298 (create_new_frame): Likewise.
3299 (frame_cleanup_after_sniffer): Update assert.
3300
3301 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * regcache.c (pid_ptid_regcache_map): New type.
3304 (target_ptid_regcache_map): Remove.
3305 (target_pid_ptid_regcache_map): New type.
3306 (regcaches): Change type to target_pid_ptid_regcache_map.
3307 (get_thread_arch_aspace_regcache): Update.
3308 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3309 case.
3310 (regcaches_size): Update.
3311 (regcache_count): Update.
3312 (registers_changed_ptid_target_pid_test): New.
3313 (_initialize_regcache): Register new test.
3314
3315 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 * regcache.c (regcache_count): New.
3318 (struct regcache_test_data): New.
3319 (regcache_test_data_up): New.
3320 (populate_regcaches_for_test): New.
3321 (regcaches_test): Remove.
3322 (get_thread_arch_aspace_regcache_test): New.
3323 (registers_changed_ptid_all_test): New.
3324 (registers_changed_ptid_target_test): New.
3325 (registers_changed_ptid_target_ptid_test): New.
3326 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3327 (_initialize_regcache): Register new tests.
3328
3329 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3330
3331 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3332 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3333 gdbarch and aspace parameter. Use current inferior's aspace.
3334 Validate regcache's arch value.
3335 (regcaches_test): Update.
3336
3337 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * regcache.c (regcaches_test): Call registers_changed.
3340
3341 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3342
3343 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3344
3345 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3346
3347 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3348 to find the end of prologue for flang compiled binaries.
3349 * arm-tdep.c (arm_skip_prologue): Likewise.
3350 * i386-tdep.c (i386_skip_prologue): Likewise.
3351 * producer.c (producer_is_llvm): New function.
3352 (producer_parsing_tests): Added new tests for clang/flang.
3353 * producer.h (producer_is_llvm): New declaration.
3354
3355 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3356
3357 * linux-nat.c (linux_nat_debug_printf): New function.
3358 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3359
3360 2020-08-18 Aaron Merey <amerey@redhat.com>
3361
3362 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3363 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3364 (CLIBS): Add DEBUGINFOD_LIBS.
3365
3366 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3367
3368 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3369 'gdbarch_num_regs'.
3370
3371 2020-08-17 Tom Tromey <tromey@adacore.com>
3372
3373 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3374 ada_get_decoded_value returns NULL.
3375
3376 2020-08-17 Tom Tromey <tromey@adacore.com>
3377
3378 * python/py-inferior.c (infpy_search_memory): Use
3379 gdb_py_object_from_ulongest.
3380 * python/py-infevents.c (create_inferior_call_event_object)
3381 (create_memory_changed_event_object): Use
3382 gdb_py_object_from_ulongest.
3383 * python/py-linetable.c (ltpy_entry_get_pc): Use
3384 gdb_py_object_from_ulongest.
3385
3386 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3387
3388 * loc.c (class symbol_needs_eval_context): Fix indentation.
3389
3390 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3391
3392 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3393 bool.
3394
3395 2020-08-17 Tom de Vries <tdevries@suse.de>
3396
3397 PR gdb/26393
3398 * gdbtypes.c (dump_dynamic_prop): New function.
3399 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3400
3401 2020-08-15 Tom de Vries <tdevries@suse.de>
3402
3403 PR backtrace/26390
3404 * stack.c (print_frame_args): Temporarily set the selected
3405 frame to FRAME while printing the frame's arguments.
3406
3407 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3408
3409 PR breakpoints/26385
3410 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3411 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3412
3413 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3414
3415 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3416 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3417 and >= to check return value instead of == -1 and != -1.
3418
3419 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3420
3421 * utils.h (class gdb_argv) <as_array_view>: New method.
3422 * utils.c (gdb_argv_as_array_view_test): New.
3423 (_initialize_utils): Register selftest.
3424 * maint.c (maintenance_selftest): Use the new method.
3425
3426 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3427
3428 * target.h (supports_dumpcore, dumpcore): New
3429 function declarations.
3430 * target.c (supports_dumpcore, dumpcore): New
3431 functions.
3432 * target-delegates.c: Rebuild.
3433 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3434 and target_dumpcore ().
3435
3436 2020-08-13 Aaron Merey <amerey@redhat.com>
3437
3438 * debuginfod-support.c: Replace global variables with user_data.
3439
3440 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * maint.c (maintenance_selftest): Split args and pass array_view
3443 to run_tests.
3444
3445 2020-08-12 Luis Machado <luis.machado@linaro.org>
3446
3447 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3448 type's length.
3449 Use %s and pulongest to print the length.
3450
3451 2020-08-12 Pedro Alves <palves@redhat.com>
3452
3453 * NEWS: Move "Multi-target debugging support" item to the
3454 "Changes since GDB 9" section.
3455
3456 2020-08-12 Pedro Alves <palves@redhat.com>
3457
3458 PR gdb/26336
3459 * progspace.c (program_space::remove_objfile): Invalidate the
3460 frame cache.
3461
3462 2020-08-11 Tom de Vries <tdevries@suse.de>
3463
3464 * MAINTAINERS: Mark ms1 as deleted.
3465
3466 2020-08-10 Luis Machado <luis.machado@linaro.org>
3467
3468 PR gdb/26310
3469
3470 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3471 act accordingly.
3472 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3473 movz/str/stur/stp skipping behavior.
3474
3475 2020-08-10 Luis Machado <luis.machado@linaro.org>
3476
3477 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3478 struct user_sve_header instead of struct sve_context.
3479
3480 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3481
3482 * read.h (dwarf2_fetch_die_loc_sect_off,
3483 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3484 `void *` parameter with function_view.
3485 * read.c (dwarf2_fetch_die_loc_sect_off,
3486 dwarf2_fetch_die_loc_cu_off): Likewise.
3487 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3488 (per_cu_dwarf_call): Adjust.
3489 (get_frame_address_in_block_wrapper): Remove.
3490 (indirect_synthetic_pointer): Adjust.
3491 (get_ax_pc): Remove.
3492 (dwarf2_compile_expr_to_ax): Adjust.
3493
3494 2020-08-08 Tom de Vries <tdevries@suse.de>
3495
3496 PR build/26344
3497 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3498 constructor.
3499 * regcache.c (get_thread_arch_aspace_regcache): Same.
3500
3501 2020-08-07 Tom Tromey <tromey@adacore.com>
3502
3503 * ravenscar-thread.c
3504 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3505 New method.
3506 (ravenscar_thread_target::wait): Check
3507 runtime_initialized.
3508 (ravenscar_thread_target::prepare_to_store)
3509 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3510 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3511 (ravenscar_thread_target::stopped_by_watchpoint)
3512 (ravenscar_thread_target::stopped_data_address)
3513 (ravenscar_thread_target::core_of_thread): Use
3514 scoped_restore_current_thread and
3515 set_base_thread_from_ravenscar_task.
3516
3517 2020-08-07 Tom Tromey <tromey@adacore.com>
3518
3519 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3520
3521 2020-08-07 Tom Tromey <tromey@adacore.com>
3522
3523 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3524 update_inferior_ptid before update_thread_list.
3525 (temporarily_change_regcache_ptid): New class.
3526 (ravenscar_thread_target::fetch_registers)
3527 (ravenscar_thread_target::store_registers)
3528 (ravenscar_thread_target::prepare_to_store): Use base thread when
3529 forwarding operation.
3530
3531 2020-08-07 Tom Tromey <tromey@adacore.com>
3532
3533 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3534 "is_pid" case.
3535
3536 2020-08-07 Tom Tromey <tromey@adacore.com>
3537
3538 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3539 New methods.
3540 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3541 first.
3542 (ravenscar_thread_target::add_thread): Rename from
3543 ravenscar_add_thread.
3544 (ravenscar_thread_target::update_thread_list): Use a lambda.
3545 (ravenscar_thread_target::xfer_partial): New method.
3546
3547 2020-08-07 Tom Tromey <tromey@adacore.com>
3548
3549 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3550 gdb::function_view.
3551 (iterate_over_live_ada_tasks): Change type of argument.
3552 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3553 of argument.
3554
3555 2020-08-07 Tom Tromey <tromey@adacore.com>
3556
3557 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3558 Remove.
3559 (ravenscar_thread_target::extra_thread_info): Remove.
3560 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3561 defer to target beneath for non-Ravenscar threads.
3562
3563 2020-08-07 Tom Tromey <tromey@adacore.com>
3564
3565 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3566 get_base_thread_from_ravenscar_task>: Now methods.
3567 <m_cpu_map>: New member.
3568 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3569 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3570 (ravenscar_thread_target::task_is_currently_active): Update.
3571 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3572 Now a method.
3573 (ravenscar_thread_target::add_active_thread): Put initial thread
3574 into the m_cpu_map.
3575
3576 2020-08-07 Tom Tromey <tromey@adacore.com>
3577
3578 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3579 event_ptid.
3580
3581 2020-08-07 Tom Tromey <tromey@adacore.com>
3582
3583 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3584 runtime_initialized.
3585
3586 2020-08-07 Tom Tromey <tromey@adacore.com>
3587
3588 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3589 add_active_thread.
3590 (ravenscar_thread_target::add_active_thread): Now public.
3591 (ravenscar_inferior_created): Call add_active_thread after pushing
3592 the target.
3593
3594 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * regcache.c (ptid_regcache_map): New type.
3597 (target_ptid_regcache_map): New type.
3598 (regcaches): Change type to target_ptid_regcache_map.
3599 (get_thread_arch_aspace_regcache): Update to regcaches' new
3600 type.
3601 (regcache_thread_ptid_changed): Likewise.
3602 (registers_changed_ptid): Likewise.
3603 (regcaches_size): Likewise.
3604 (regcaches_test): Update.
3605 (regcache_thread_ptid_changed): Update.
3606 * regcache.h (regcache_up): New type.
3607 * gdbsupport/ptid.h (hash_ptid): New struct.
3608
3609 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3610
3611 * observable.h (thread_ptid_changed): Add parameter
3612 `process_stratum_target *`.
3613 * infrun.c (infrun_thread_ptid_changed): Add parameter
3614 `process_stratum_target *` and use it.
3615 (selftests): New namespace.
3616 (infrun_thread_ptid_changed): New function.
3617 (_initialize_infrun): Register selftest.
3618 * regcache.c (regcache_thread_ptid_changed): Add parameter
3619 `process_stratum_target *` and use it.
3620 (regcache_thread_ptid_changed): New function.
3621 (_initialize_regcache): Register selftest.
3622 * thread.c (thread_change_ptid): Pass target to
3623 thread_ptid_changed observable.
3624
3625 2020-08-06 Caroline Tice <cmtice@google.com>
3626
3627 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3628 (struct dwp_sections): Update field comments. Add loclists and
3629 rnglists fields.
3630 (struct virtual_v2_dwo_sections): Rename struct to
3631 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3632 size & offset fields for loclists and rnglists.
3633 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3634 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3635 skipping dummy type units.
3636 (create_dwp_hash_table): Update the large comment above the function to
3637 discuss Version 5 DWP files as well, with references. Update all the
3638 version checks in the function to check for version 5 as well. Add new
3639 section at the end to create dwp hash table for version 5.
3640 (create_dwp_v2_section): Rename function to
3641 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3642 Add V5 to error message text.
3643 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3644 into calls to create_dwp_v2_or_v5_section.
3645 (create_dwo_unit_in_dwp_v5): New function.
3646 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3647 check for version2; add else clause to handle version 5.
3648 (open_and_init_dwo_file): Add code to check dwarf version & only call
3649 create_debug_types_hash_table (with sections.types) if version is not 5;
3650 else call create_debug_type_hash_table, with sections.info.
3651 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3652 version 5.
3653 (dwarf2_locate_v5_dwp_sections): New function.
3654 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3655 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3656
3657 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * regcache.h (class regcache): Remove friend
3660 registers_changed_ptid.
3661 <regcache_thread_ptid_changed>: Remove.
3662 <regcaches>: Remove.
3663 * regcache.c (regcache::regcaches): Rename to...
3664 (regcaches): ... this. Make static.
3665 (get_thread_arch_aspace_regcache): Update.
3666 (regcache::regcache_thread_ptid_changed): Rename to...
3667 (regcache_thread_ptid_changed): ... this. Update.
3668 (class regcache_access): Remove.
3669 (regcaches_test): Update.
3670 (_initialize_regcache): Update.
3671 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3672 <forward_list>.
3673
3674 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * regcache.h (class regcache) <current_regcache>: Rename to...
3677 <regcaches>: ... this. Move doc here.
3678 * regcache.c (regcache::current_regcache) Rename to...
3679 (regcache::regcaches): ... this. Move doc to header.
3680 (get_thread_arch_aspace_regcache): Update.
3681 (regcache::regcache_thread_ptid_changed): Update.
3682 (registers_changed_ptid): Update.
3683 (class regcache_access) <current_regcache_size>: Rename to...
3684 <regcaches_size>: ... this.
3685 (current_regcache_test): Rename to...
3686 (regcaches_test): ... this.
3687 (_initialize_regcache): Update.
3688
3689 2020-08-06 Victor Collod <vcollod@nvidia.com>
3690
3691 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3692
3693 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3694
3695 * corelow.c (core_target::build_file_mappings): Don't output
3696 null pathname in warning.
3697
3698 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3699
3700 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3701 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3702 gdb.dwarf2/dw2-single-line-discriminators.exp,
3703 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3704
3705 2020-08-05 Tom Tromey <tromey@adacore.com>
3706
3707 PR rust/26197:
3708 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3709 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3710 Fix off-by-one and type size errors in ordinary case.
3711
3712 2020-08-05 Tom de Vries <tdevries@suse.de>
3713
3714 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3715 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3716
3717 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * frame.h (frame_id_p): Return bool.
3720 (frame_id_artificial_p): Return bool.
3721 (frame_id_eq): Return bool.
3722 (has_stack_frames): Return bool.
3723 (get_selected_frame): Fix typo in comment.
3724 (get_frame_pc_if_available): Return bool.
3725 (get_frame_address_in_block_if_available): Return bool.
3726 (get_frame_func_if_available): Return bool.
3727 (read_frame_register_unsigned): Return bool.
3728 (get_frame_register_bytes): Return bool.
3729 (safe_frame_unwind_memory): Return bool.
3730 (deprecated_frame_register_read): Return bool.
3731 (frame_unwinder_is): Return bool.
3732 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3733 bool.
3734 <this_id::p>: Likewise.
3735 <prev_p>: Likewise.
3736 (frame_stash_add): Return bool.
3737 (get_frame_id): Use bool.
3738 (frame_id_build_special) Use bool.
3739 (frame_id_build_unavailable_stack): Use bool.
3740 (frame_id_build): Use bool.
3741 (frame_id_p): Return bool, use true/false instead of 1/0.
3742 (frame_id_artificial_p): Likewise.
3743 (frame_id_eq): Likewise.
3744 (frame_id_inner): Likewise.
3745 (get_frame_func_if_available): Likewise.
3746 (read_frame_register_unsigned): Likewise.
3747 (deprecated_frame_register_read): Likewise.
3748 (get_frame_register_bytes): Likewise.
3749 (has_stack_frames): Likewise.
3750 (inside_main_func): Likewise.
3751 (inside_entry_func): Likewise.
3752 (get_frame_pc_if_available): Likewise.
3753 (get_frame_address_in_block_if_available): Likewise.
3754 (frame_unwinder_is): Likewise.
3755 (safe_frame_unwind_memory): Likewise.
3756 (frame_unwind_arch): Likewise.
3757
3758 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3761 type to cached_copy_status.
3762 (fprintf_frame): Adjust.
3763 (get_frame_func_if_available): Adjust.
3764 (frame_cleanup_after_sniffer): Adjust.
3765
3766 2020-08-04 Mark Wielaard <mark@klomp.org>
3767
3768 * MAINTAINERS (Write After Approval): Update email address.
3769
3770 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3771
3772 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3773 dynamic_prop::const_val.
3774
3775 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3778 dynamic_prop::kind.
3779
3780 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3781
3782 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3783
3784 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3785
3786 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3787
3788 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3789 Jose E. Marchesi <jose.marchesi@oracle.com>
3790
3791 * configure.tgt: Add entry for bpf-*-*.
3792 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3793 (ALLDEPFILES): Add bpf-tdep.c.
3794 * bpf-tdep.c: New file.
3795 * MAINTAINERS: Add bpf target and maintainer.
3796 * NEWS: Mention the support for the new target.
3797
3798 2020-08-04 Tom de Vries <tdevries@suse.de>
3799
3800 PR symtab/23270
3801 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3802 Error.
3803
3804 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3805
3806 * syscalls/freebsd.xml: Regenerate.
3807
3808 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3809
3810 * syscalls/update-freebsd.sh: Fix usage and year range.
3811
3812 2020-08-03 Tom de Vries <tdevries@suse.de>
3813
3814 PR symtab/26333
3815 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3816 DW_LNE_lo_user/DW_LNE_hi_user range.
3817
3818 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3819
3820 PR ada/26318
3821 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3822 kind.
3823
3824 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825
3826 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3827
3828 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829
3830 * breakpoint.c (set_breakpoint_condition): Update the condition
3831 expressions after checking that the input condition string parses
3832 successfully and does not contain junk at the end.
3833
3834 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3835
3836 * breakpoint.c (set_breakpoint_condition): Update the
3837 condition string after parsing the new condition successfully.
3838
3839 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3840
3841 * proc-api.c (_STRUCTURED_PROC): Don't define.
3842 * proc-events.c: Likewise.
3843 * proc-flags.c: Likewise.
3844 * proc-why.c: Likewise.
3845 * procfs.c: Likewise.
3846
3847 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3848 * configure, config.in: Regenerate.
3849
3850 2020-07-30 Tom de Vries <tdevries@suse.de>
3851
3852 PR build/26320
3853 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3854 m_red/m_green/m_blue in a union.
3855
3856 2020-07-29 Tom de Vries <tdevries@suse.de>
3857
3858 PR tdep/26280
3859 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3860
3861 2020-07-28 Tom Tromey <tromey@adacore.com>
3862
3863 PR symtab/26270:
3864 * symtab.h (find_pc_partial_function_sym): Declare.
3865 * cli/cli-cmds.c (disassemble_command): Use
3866 find_pc_partial_function_sym. Check asm_demangle.
3867 * blockframe.c (cache_pc_function_sym): New global.
3868 (cache_pc_function_name): Remove.
3869 (clear_pc_function_cache): Update.
3870 (find_pc_partial_function_sym): New function, from
3871 find_pc_partial_function.
3872 (find_pc_partial_function): Rewrite using
3873 find_pc_partial_function_sym.
3874
3875 2020-07-28 Tom Tromey <tromey@adacore.com>
3876
3877 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3878 help. Add usage.
3879
3880 2020-07-28 Tom Tromey <tromey@adacore.com>
3881
3882 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3883 <DW_OP_GNU_variable_value>: Cast to address type.
3884
3885 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3886
3887 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3888 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3889 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3890 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3891 (nbsd_get_siginfo_type): New.
3892 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3893 (_initialize_nbsd_tdep): New.
3894
3895 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3896
3897 PR binutils/26301
3898 * configure: Regenerated.
3899
3900 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3901
3902 PR binutils/26301
3903 * configure: Regenerated.
3904
3905 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * python/py-frame.c: Remove 'user-regs.h' include.
3908 (frapy_read_register): Rewrite to make use of
3909 gdbpy_parse_register_id.
3910 * python/py-registers.c (gdbpy_parse_register_id): New function,
3911 moved here from python/py-unwind.c. Updated the return type, and
3912 also accepts register descriptor objects.
3913 * python/py-unwind.c: Remove 'user-regs.h' include.
3914 (pyuw_parse_register_id): Moved to python/py-registers.c.
3915 (unwind_infopy_add_saved_register): Update to use
3916 gdbpy_parse_register_id.
3917 (pending_framepy_read_register): Likewise.
3918 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3919
3920 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * python/py-registers.c: Add 'user-regs.h' include.
3923 (register_descriptor_iter_find): New function.
3924 (register_descriptor_iterator_object_methods): New static global
3925 methods array.
3926 (register_descriptor_iterator_object_type): Add pointer to methods
3927 array.
3928
3929 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3930
3931 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3932 for all architectures on FreeBSD 11.3 and later.
3933
3934 2020-07-27 Tom Tromey <tromey@adacore.com>
3935
3936 * gcore.h (load_corefile): Don't declare.
3937
3938 2020-07-27 Tom de Vries <tdevries@suse.de>
3939
3940 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3941 * config.in: Regenerate.
3942 * configure: Regenerate.
3943
3944 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3945
3946 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3947 ws2tcpip.h. When checking whether socklen_t type is defined, use
3948 ws2tcpip.h if it is available and sys/socket.h isn't.
3949 * configure: Regenerate.
3950 * config.in: Regenerate.
3951
3952 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 PR fortran/23051
3955 PR fortran/26139
3956 * valops.c (value_ind): Pass address to
3957 readjust_indirect_value_type.
3958 * value.c (readjust_indirect_value_type): Make parameter
3959 non-const, and add extra address parameter. Resolve original type
3960 before using it.
3961 * value.h (readjust_indirect_value_type): Update function
3962 signature and comment.
3963
3964 2020-07-25 Tom de Vries <tdevries@suse.de>
3965
3966 PR symtab/26243
3967 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3968 entries.
3969
3970 2020-07-24 Aaron Merey <amerey@redhat.com>
3971
3972 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3973 * configure: Rebuild.
3974
3975 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3976
3977 PR corefiles/26294
3978 * corelow.c (_initialize_corelow): Add period to help text
3979 for "maintenance print core-file-backed-mappings".
3980
3981 2020-07-23 Pedro Alves <pedro@palves.net>
3982
3983 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3984 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3985 meanwhile.
3986 * frame.c (frame_cache_generation, get_frame_cache_generation):
3987 New.
3988 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3989 (get_prev_frame_if_no_cycle): On exception, don't touch
3990 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3991 * frame.h (get_frame_cache_generation): Declare.
3992
3993 2020-07-23 Tom de Vries <tdevries@suse.de>
3994
3995 PR tui/26282
3996 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3997 New default constructor.
3998
3999 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4000
4001 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4002 exclude non-statement entries.
4003
4004 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4005
4006 * NEWS (New commands): Mention new command
4007 "maintenance print core-file-backed-mappings".
4008
4009 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4010
4011 * corelow.c (gdbcmd.h): Include.
4012 (core_target::info_proc_mappings): New method.
4013 (get_current_core_target): New function.
4014 (maintenance_print_core_file_backed_mappings): New function.
4015 (_initialize_corelow): Add core-file-backed-mappings to
4016 "maint print" commands.
4017
4018 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4019
4020 * linux-tdep.c (dump_note_entry_p): New function.
4021 (linux_dump_mapping_p_ftype): New typedef.
4022 (linux_find_memory_regions_full): Add new parameter,
4023 should_dump_mapping_p.
4024 (linux_find_memory_regions): Adjust call to
4025 linux_find_memory_regions_full.
4026 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4027 call to linux_find_memory_regions_full.
4028
4029 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4030
4031 * corelow.c (solist.h, unordered_map): Include.
4032 (class core_target): Add field m_core_file_mappings and
4033 method build_file_mappings.
4034 (core_target::core_target): Call build_file_mappings.
4035 (core_target::~core_target): Free memory associated with
4036 m_core_file_mappings.
4037 (core_target::build_file_mappings): New method.
4038 (core_target::xfer_partial): Use m_core_file_mappings
4039 for memory transfers.
4040 * linux-tdep.c (linux_read_core_file_mappings): New
4041 function.
4042 (linux_core_info_proc_mappings): Rewrite to use
4043 linux_read_core_file_mappings.
4044 (linux_init_abi): Register linux_read_core_file_mappings.
4045
4046 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4047
4048 * arch-utils.c (default_read_core_file_mappings): New function.
4049 * arch-utils.c (default_read_core_file_mappings): Declare.
4050 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4051 * gdbarch.h, gdbarch.c: Regenerate.
4052
4053 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4054
4055 PR corefiles/25631
4056 * corelow.c (core_target:xfer_partial): Revise
4057 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4058 case after first checking the stratum beneath the core
4059 target.
4060 (has_all_memory): Return true.
4061 * target.c (raw_memory_xfer_partial): Revise comment
4062 regarding use of has_all_memory.
4063
4064 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4065
4066 * exec.h (section_table_xfer_memory): Revise declaration,
4067 replacing section name parameter with an optional callback
4068 predicate.
4069 * exec.c (section_table_xfer_memory): Likewise.
4070 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4071 of section_table_xfer_memory.
4072
4073 2020-07-22 Tom Tromey <tromey@adacore.com>
4074
4075 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4076 lookup_symbol_search_name.
4077
4078 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4081 redundant local variable.
4082 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4083 reference, not pointer, update code accordingly.
4084
4085 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4086 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4087
4088 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4089 * jit.c (jit_breakpoint_re_set_internal): Use the
4090 `skip_jit_symbol_lookup` field.
4091
4092 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4093 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094
4095 * jit.c (jit_read_descriptor): Define the descriptor address once,
4096 use twice.
4097 (jit_breakpoint_deleted): Move the declaration of the loop variable
4098 `iter` into the loop header.
4099 (jit_breakpoint_re_set_internal): Move the declaration of the local
4100 variable `objf_data` to the first point of definition.
4101 (jit_event_handler): Move the declaration of local variables
4102 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4103 Rename `objf` to `jited`.
4104
4105 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4106
4107 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4108 Remove.
4109 * jit.c (get_jiter_objfile_data): Update.
4110
4111 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112 Simon Marchi <simon.marchi@polymtl.ca>
4113
4114 * jit.c (struct jit_program_space_data): Remove.
4115 (jit_program_space_key): Remove.
4116 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4117 stuff.
4118 (get_jit_program_space_data): Remove.
4119 (jit_breakpoint_deleted): Iterate on all of the program space's
4120 objfiles.
4121 (jit_inferior_init): Likewise.
4122 (jit_breakpoint_re_set_internal): Likewise. Also change return
4123 type to void.
4124 (jit_breakpoint_re_set): Pass current_program_space to
4125 jit_breakpoint_re_set_internal.
4126
4127 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4128
4129 * jit.h (struct jiter_objfile_data) <cached_code_address,
4130 jit_breakpoint>: Move to here from ...
4131 * jit.c (jit_program_space_data): ... here.
4132 (jiter_objfile_data::~jiter_objfile_data): Update.
4133 (jit_breakpoint_deleted): Update.
4134 (jit_breakpoint_re_set_internal): Update.
4135
4136 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4137
4138 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4139 checks.
4140 (jit_read_descriptor): Remove NULL check.
4141 (jit_event_handler): Add an assertion.
4142
4143 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4144
4145 * jit.h (struct jit_objfile_data): Split into...
4146 (struct jiter_objfile_data): ... this ...
4147 (struct jited_objfile_data): ... and this.
4148 * objfiles.h (struct objfile) <jit_data>: Remove.
4149 <jiter_data, jited_data>: New fields.
4150 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4151 (jiter_objfile_data::~jiter_objfile_data): ... this.
4152 (get_jit_objfile_data): Rename to ...
4153 (get_jiter_objfile_data): ... this.
4154 (add_objfile_entry): Update.
4155 (jit_read_descriptor): Use get_jiter_objfile_data.
4156 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4157 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4158 (jit_inferior_exit_hook): Use objfile's jited_data field.
4159
4160 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * jit.h: Forward-declare `struct minimal_symbol`.
4163 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4164 constructor, destructor, and an objfile* field.
4165 * jit.c (jit_objfile_data): Remove.
4166 (struct jit_objfile_data): Migrate from here to jit.h.
4167 (jit_objfile_data::~jit_objfile_data): New destructor
4168 implementation with code moved from free_objfile_data.
4169 (free_objfile_data): Delete.
4170 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4171 (jit_find_objf_with_entry_addr): Ditto.
4172 (jit_inferior_exit_hook): Ditto.
4173 (_initialize_jit): Remove the call to
4174 register_objfile_data_with_cleanup.
4175 * objfiles.h (struct objfile) <jit_data>: New field.
4176
4177 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4178
4179 * jit.h: Forward-declare `struct objfile`.
4180 (jit_event_handler): Add a second parameter, the JITer objfile.
4181 * jit.c (jit_read_descriptor): Change the signature to take the
4182 JITer objfile as an argument instead of the jit_program_space_data.
4183 (jit_inferior_init): Update the call to jit_read_descriptor.
4184 (jit_event_handler): Use the new JITer objfile argument when calling
4185 jit_read_descriptor.
4186 * breakpoint.c (handle_jit_event): Update the call to
4187 jit_event_handler to pass the JITer objfile.
4188
4189 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4190
4191 * gdbarch.c: Regenerate.
4192 * gdbarch.h: Regenerate.
4193 * gdbarch.sh (handle_segmentation_fault): Remove method.
4194 * infrun.c (handle_segmentation_fault): Remove.
4195 (print_signal_received_reason): Remove call to
4196 handle_segmentation_fault.
4197
4198 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4199
4200 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4201 Rename to sparc64_linux_report_signal_info and add siggnal
4202 argument.
4203 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4204 instead of sparc64_linux_handle_segmentation_fault.
4205
4206 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4207
4208 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4209 i386_linux_report_signal_info instead of
4210 i386_linux_handle_segmentation_fault.
4211 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4212 to i386_linux_report_signal_info and add siggnal argument.
4213 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4214 of i386_linux_handle_segmentation_fault.
4215 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4216 to i386_linux_report_signal_info and add siggnal argument.
4217
4218 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4219
4220 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4221 hook if present.
4222
4223 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4224
4225 * gdbarch.c: Regenerate.
4226 * gdbarch.h: Regenerate.
4227 * gdbarch.sh (report_signal_info): New method.
4228 * infrun.c (print_signal_received_reason): Invoke gdbarch
4229 report_signal_info hook if present.
4230
4231 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * python/py-registers.c : Add 'unordered_map' include.
4234 (gdbpy_new_reggroup): Renamed to...
4235 (gdbpy_get_reggroup): ...this. Update to only create register
4236 group descriptors when needed.
4237 (gdbpy_reggroup_iter_next): Update.
4238
4239 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * python/py-registers.c (gdbpy_register_object_data): New static
4242 global.
4243 (gdbpy_register_object_data_init): New function.
4244 (gdbpy_new_register_descriptor): Renamed to...
4245 (gdbpy_get_register_descriptor): ...this, and update to reuse
4246 existing register descriptors where possible.
4247 (gdbpy_register_descriptor_iter_next): Update.
4248 (gdbpy_initialize_registers): Register new gdbarch data.
4249
4250 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * linux-nat.c (stopped_pids): Make static.
4253
4254 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 PR ada/26235
4257 * gdbtypes.c (ada_discrete_type_low_bound,
4258 ada_discrete_type_high_bound): Handle undefined bounds.
4259
4260 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4261
4262 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4263 declaration.
4264 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4265 function.
4266
4267 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4268
4269 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4270 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4271 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4272 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4273 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4274 method.
4275
4276 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4277
4278 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4279 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4280 which are deprecated in Guile 3.0.
4281 * configure.ac (try_guile_versions): Add "guile-3.0".
4282 * configure (try_guile_versions): Regenerate.
4283 * NEWS: Update entry.
4284
4285 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4286 Doug Evans <dje@google.com>
4287
4288 PR gdb/21104
4289 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4290 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4291 USING_GUILE_BEFORE_2_2.
4292 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4293 Change type to 'scm_t_port_type *'.
4294 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4295 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4296 parameter and honor it. Update callers.
4297 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4298 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4299 functions.
4300 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4301 USING_GUILE_BEFORE_2_2.
4302 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4303 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4304 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4305 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4306 and 'SCM_PORT_TYPE'.
4307 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4308 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4309 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4310 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4311 [!USING_GUILE_BEFORE_2_2]: New functions.
4312 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4313 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4314 'gdbscm_memory_port_read'.
4315 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4316 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4317 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4318 function.
4319 (ioscm_init_memory_port): Remove.
4320 (ioscm_init_memory_port_stream): New function
4321 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4322 function.
4323 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4324 Return scm_from_uint (0).
4325 (gdbscm_set_memory_port_read_buffer_size_x)
4326 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4327 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4328 Return scm_from_uint (0).
4329 (gdbscm_set_memory_port_write_buffer_size_x)
4330 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4331 * configure.ac (try_guile_versions): Add "guile-2.2".
4332 * configure: Regenerate.
4333 * NEWS: Add entry.
4334
4335 2020-07-18 Tom Tromey <tom@tromey.com>
4336
4337 * linux-nat.c (linux_multi_process): Remove.
4338 (linux_nat_target::supports_multi_process): Return true.
4339
4340 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4341
4342 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4343 (riscv_lookup_target_description): Return pointer out of
4344 unique_ptr.
4345 * target-descriptions.c (allocate_target_description): Add
4346 comment.
4347 (target_desc_deleter::operator()): Likewise.
4348 * target-descriptions.h (struct target_desc_deleter): Moved to
4349 gdbsupport/tdesc.h.
4350 (target_desc_up): Likewise.
4351
4352 2020-07-17 Tom Tromey <tromey@adacore.com>
4353
4354 * linux-nat.c (linux_nat_target::supports_non_stop)
4355 (linux_nat_target::always_non_stop_p): Use "true".
4356 (linux_nat_target::supports_disable_randomization): Use "true" and
4357 "false".
4358
4359 2020-07-16 Caroline Tice <cmtice@google.com>
4360
4361 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4362 (RNGLIST_HEADER_SIZE64): New constant definition.
4363 (struct dwop_section_names): Add rnglists_dwo.
4364 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4365 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4366 (struct dwo_sections): Add rnglists field.
4367 (read_attribut_reprocess): Add tag parameter.
4368 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4369 (cu_debug_rnglists_section): New function (decl & definition).
4370 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4371 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4372 die whose range is being checked; get rnglist section from
4373 cu_debug_rnglists_section, to get from either objfile or dwo file as
4374 appropriate. Add cases for DW_RLE_base_addressx,
4375 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4376 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4377 test inside if-condition and updating complaint message.
4378 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4379 dwarf2_rnglists_process.
4380 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4381 dwarf2_ranges_process.
4382 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4383 need_ranges_base and update comment appropriately. Also pass die tag
4384 to dwarf2_ranges_read.
4385 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4386 need_ranges_base and update comment appropriately. Also pass die tag
4387 to dwarf2_ranges_process.
4388 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4389 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4390 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4391 need_ranges_base and update comment appropriately. Also pass die tag
4392 to read_attribute_reprocess and dwarf2_ranges_read.
4393 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4394 and update function comment appropriately.
4395 (read_loclist_index): Call read_loclists_rnglists_header instead of
4396 read_loclist_header.
4397 (read_rnglist_index): New function.
4398 (read_attribute_reprocess): Add tag parameter. Add code for
4399 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4400 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4401
4402 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4403
4404 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4405 being resolved.
4406
4407 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4408
4409 * arch-utils.c (show_architecture): Update formatting of messages.
4410
4411 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * gdbtypes.h (struct type) <bounds>: Handle array and string
4414 types.
4415 * ada-lang.c (assign_aggregate): Use type::bounds on
4416 array/string type.
4417 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4418 * c-varobj.c (c_number_of_children): Likewise.
4419 (c_describe_child): Likewise.
4420 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4421 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4422 (f_type_print_base): Likewise.
4423 * f-valprint.c (f77_array_offset_tbl): Likewise.
4424 (f77_get_upperbound): Likewise.
4425 (f77_print_array_1): Likewise.
4426 * guile/scm-type.c (gdbscm_type_range): Likewise.
4427 * m2-typeprint.c (m2_array): Likewise.
4428 (m2_is_long_set_of_type): Likewise.
4429 * m2-valprint.c (get_long_set_bounds): Likewise.
4430 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4431 * python/py-type.c (typy_range): Likewise.
4432 * rust-lang.c (rust_internal_print_type): Likewise.
4433 * type-stack.c (type_stack::follow_types): Likewise.
4434 * valarith.c (value_subscripted_rvalue): Likewise.
4435 * valops.c (value_cast): Likewise.
4436
4437 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4438
4439 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4440 callers to use the equivalent accessor methods.
4441
4442 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4445 (struct type) <bit_stride>: New method.
4446 (TYPE_BIT_STRIDE): Remove.
4447 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4448
4449 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4452 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4453 callers to use the equivalent accessor methods instead.
4454
4455 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4458 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4459 callers to use the equivalent accessor methods instead.
4460
4461 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4464 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4465 to use dynamic_prop::kind.
4466
4467 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4470 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4471 to get the bound property's kind and check against
4472 PROP_UNDEFINED.
4473
4474 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4477 all callers to use type::range_bounds followed by
4478 dynamic_prop::{low,high}.
4479
4480 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4481
4482 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4483 const_val, set_const_val, baton, set_locexpr, set_loclist,
4484 set_addr_offset, variant_parts, set_variant_parts,
4485 original_type, set_original_type>: New methods.
4486 <kind>: Rename to...
4487 <m_kind>: ... this. Update all users to use the new methods
4488 instead.
4489 <data>: Rename to...
4490 <m_data>: ... this. Update all users to use the new methods
4491 instead.
4492
4493 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * gdbtypes.c (get_discrete_bounds): Return failure if
4496 the range type's bounds are not both defined and constant
4497 values.
4498 (get_array_bounds): Update comment. Remove undefined bound check.
4499
4500 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4501
4502 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4503 the type::bounds method directly.
4504
4505 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4508 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4509 are used to set the range type's bounds to use set_bounds.
4510
4511 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4512
4513 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4514
4515 2020-07-10 Pedro Alves <pedro@palves.net>
4516
4517 * gdbthread.h (inferior_ref): Define.
4518 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4519 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4520 * thread.c
4521 (scoped_restore_current_thread::restore):
4522 Adjust to gdb::ref_ptr.
4523 (scoped_restore_current_thread::~scoped_restore_current_thread):
4524 Remove manual decref handling.
4525 (scoped_restore_current_thread::scoped_restore_current_thread):
4526 Adjust to use
4527 inferior_ref::new_reference/thread_info_ref::new_reference.
4528 Incref the thread before calling get_frame_id instead of after.
4529 Let TARGET_CLOSE_ERROR propagate.
4530
4531 2020-07-10 Pedro Alves <pedro@palves.net>
4532
4533 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4534 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4535 NOT_AVAILABLE_ERROR.
4536 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4537 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4538
4539 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4540 Pedro Alves <pedro@palves.net>
4541
4542 PR gdb/26199
4543 * infrun.c (threads_are_resumed_pending_p): Delete.
4544 (do_target_wait): Remove threads_are_executing and
4545 threads_are_resumed_pending_p checks from the inferior_matches
4546 lambda. Update comments.
4547
4548 2020-07-10 Pedro Alves <pedro@palves.net>
4549
4550 PR gdb/26199
4551 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4552 executing threads.
4553
4554 2020-07-10 Pedro Alves <pedro@palves.net>
4555
4556 PR gdb/26199
4557 * infrun.c (handle_no_resumed): Handle multiple targets.
4558
4559 2020-07-10 Pedro Alves <pedro@palves.net>
4560
4561 PR gdb/26199
4562 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4563 target_is_async_p.
4564
4565 2020-07-10 Pedro Alves <pedro@palves.net>
4566
4567 PR gdb/26199
4568 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4569 threads, not all threads.
4570
4571 2020-07-10 Pedro Alves <pedro@palves.net>
4572
4573 PR gdb/26199
4574 * remote.c (remote_target::open_1): Pass remote target pointer as
4575 data to create_async_event_handler.
4576 (remote_async_inferior_event_handler): Mark async event handler
4577 before returning if the remote target still has either pending
4578 events or unacknowledged notifications.
4579
4580 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4581
4582 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4583 declaration.
4584 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4585 function.
4586
4587 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4588
4589 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4590 inferior_ptid.
4591
4592 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4593
4594 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4595 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4596 AT_FREEBSD_PS_STRINGS.
4597
4598 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4599
4600 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4601 of debugfile path on Windows.
4602
4603 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4604
4605 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4606 argument to 'data'.
4607
4608 2020-07-08 Tom Tromey <tromey@adacore.com>
4609
4610 * ada-lang.c (ada_exception_message_1): Use read_memory.
4611
4612 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 PR python/22748
4615 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4616 special handling for inline frames.
4617 * findvar.c (value_of_register_lazy): Skip inline frames when
4618 creating lazy register values.
4619 * frame.c (frame_id_computed_p): Delete definition.
4620 * frame.h (frame_id_computed_p): Delete declaration.
4621
4622 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4623
4624 * NEWS: Mention additions to Python API.
4625 * python/py-arch.c (archpy_register_groups): New function.
4626 (arch_object_methods): Add 'register_groups' method.
4627 * python/py-registers.c (reggroup_iterator_object): New struct.
4628 (reggroup_object): New struct.
4629 (gdbpy_new_reggroup): New function.
4630 (gdbpy_reggroup_to_string): New function.
4631 (gdbpy_reggroup_name): New function.
4632 (gdbpy_reggroup_iter): New function.
4633 (gdbpy_reggroup_iter_next): New function.
4634 (gdbpy_new_reggroup_iterator): New function
4635 (gdbpy_initialize_registers): Register new types.
4636 (reggroup_iterator_object_type): Define new Python type.
4637 (gdbpy_reggroup_getset): New static global.
4638 (reggroup_object_type): Define new Python type.
4639 * python/python-internal.h
4640
4641 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4644 * python/py-arch.c (archpy_registers): New function.
4645 (arch_object_methods): Add 'registers' method.
4646 * python/py-registers.c: New file.
4647 * python/python-internal.h
4648 (gdbpy_new_register_descriptor_iterator): Declare.
4649 (gdbpy_initialize_registers): Declare.
4650 * python/python.c (do_start_initialization): Call
4651 gdbpy_initialize_registers.
4652 * NEWS: Mention additions to the Python API.
4653
4654 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * NEWS: Mention new Python API method.
4657 * python/py-unwind.c (pending_framepy_architecture): New function.
4658 (pending_frame_object_methods): Add architecture method.
4659
4660 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4661
4662 * gdbarch.c: Regenerate.
4663 * gdbarch.h: Regenerate.
4664 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4665 (gdbarch_data): Use internal_error for the case where
4666 deprecated_set_gdbarch_data was originally needed.
4667 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4668 and use passed in obstack.
4669 (libunwind_frame_set_descr): Should no longer get back NULL from
4670 gdbarch_data.
4671 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4672 type.
4673 * user-regs.c (user_regs_init): Update parameters, and use passed
4674 in obstack.
4675 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4676 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4677
4678 2020-07-06 Tom de Vries <tdevries@suse.de>
4679
4680 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4681 End-Of-Sequence in lte_is_less_than.
4682 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4683 "gdb: Don't reorder line table entries too much when sorting".
4684
4685 2020-07-06 Tom de Vries <tdevries@suse.de>
4686
4687 PR tui/26205
4688 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4689
4690 2020-07-05 Tom de Vries <tdevries@suse.de>
4691
4692 PR build/26187
4693 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4694 std::uncaught_exceptions instead of deprecated
4695 std::uncaught_exception.
4696
4697 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4698
4699 * macroexp.h (macro_stringify): Return
4700 gdb::unique_xmalloc_ptr<char>.
4701 * macroexp.c (macro_stringify): Likewise.
4702 * macrotab.c (fixup_definition): Update.
4703
4704 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4707 (lex_one_token): Update.
4708 * macroexp.c (struct macro_buffer) <release>: Return
4709 gdb::unique_xmalloc_ptr<char>.
4710 (macro_stringify): Update.
4711 (macro_expand): Update.
4712 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4713 * macroexp.h (macro_expand_next): Likewise.
4714
4715 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * macroexp.h (macro_lookup_ftype): Remove.
4718 (macro_expand, macro_expand_once, macro_expand_next): Remove
4719 lookup function parameters, add scope parameter.
4720 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4721 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4722 * macroscope.h (standard_macro_lookup): Change parameter type
4723 to macro_scope.
4724 * macroscope.c (standard_macro_lookup): Likewise.
4725 * c-exp.y (lex_one_token): Update.
4726 * macrocmd.c (macro_expand_command): Likewise.
4727 (macro_expand_once_command): Likewise.
4728
4729 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4730
4731 * inf-loop.c (inferior_event_handler): Remove client_data param.
4732 * inf-loop.h (inferior_event_handler): Likewise.
4733 * infcmd.c (step_1): Adjust.
4734 * infrun.c (proceed): Adjust.
4735 (fetch_inferior_event): Remove client_data param.
4736 (infrun_async_inferior_event_handler): Adjust.
4737 * infrun.h (fetch_inferior_event): Remove `void *` param.
4738 * linux-nat.c (handle_target_event): Adjust.
4739 * record-btrace.c (record_btrace_handle_async_inferior_event):
4740 Adjust.
4741 * record-full.c (record_full_async_inferior_event_handler):
4742 Adjust.
4743 * remote.c (remote_async_inferior_event_handler): Adjust.
4744
4745 2020-07-01 Tom Tromey <tom@tromey.com>
4746
4747 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4748 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4749
4750 2020-07-01 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4753 tui_gen_win_info.
4754 (tui_win_info::make_window): Merge with
4755 tui_gen_win_info::make_window.
4756 (tui_win_info::make_visible): Move from tui_gen_win_info.
4757 * tui/tui-win.c (tui_win_info::max_width): Move from
4758 tui_gen_win_info.
4759 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4760 type.
4761 <window_factory>: Likewise.
4762 * tui/tui-layout.c (tui_win_info::resize): Move from
4763 tui_gen_win_info.
4764 (make_standard_window): Change return type.
4765 (get_locator_window, tui_get_window_by_name): Likewise.
4766 (tui_layout_window::apply): Remove a cast.
4767 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4768 (struct tui_win_info): Merge with tui_gen_win_info.
4769 (struct tui_gen_win_info): Remove.
4770
4771 2020-07-01 Tom Tromey <tom@tromey.com>
4772
4773 * tui/tui-stack.h (struct tui_locator_window): Derive from
4774 tui_win_info.
4775 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4776 <can_box>: New method.
4777
4778 2020-07-01 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4781
4782 2020-07-01 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-regs.c (tui_data_window::display_registers_from)
4785 (tui_data_window::display_registers_from)
4786 (tui_data_window::first_data_item_displayed)
4787 (tui_data_window::delete_data_content_windows): Update.
4788 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4789 Remove.
4790 (tui_data_window::check_register_values): Update.
4791 (tui_data_item_window::rerender): Add parameters. Update.
4792 (tui_data_item_window::refresh_window): Remove.
4793 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4794 virtual.
4795 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4796 tui_gen_win_info.
4797 <refresh_window, max_height, min_height>: Remove.
4798 <rerender>: Add parameters.
4799 <x, y, visible>: New members.
4800 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4801 <m_item_width>: New member.
4802
4803 2020-07-01 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-regs.c (tui_data_window::show_register_group)
4806 (tui_data_window::check_register_values): Update.
4807 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4808 from item_no.
4809
4810 2020-07-01 Tom Tromey <tom@tromey.com>
4811
4812 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4813 useless "if".
4814
4815 2020-07-01 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4818 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4819
4820 2020-07-01 Tom Tromey <tom@tromey.com>
4821
4822 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4823 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4824 (struct tui_line_or_address): Move from tui-data.h.
4825 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4826 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4827 (tui_cmd_window, tui_source_window_base, tui_source_window)
4828 (tui_disasm_window): Don't declare.
4829 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4830 to tui-winsource.h.
4831 (SINGLE_KEY): Move to tui-stack.c.
4832
4833 2020-07-01 Tom Tromey <tom@tromey.com>
4834
4835 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4836 std::string.
4837 * tui/tui-regs.c (class tab_expansion_file): New.
4838 (tab_expansion_file::write): New method.
4839 (tui_register_format): Change return type. Use
4840 tab_expansion_file.
4841 (tui_get_register, tui_data_window::display_registers_from)
4842 (tui_data_item_window::rerender): Update.
4843 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4844 * tui/tui-io.c (tui_expand_tabs): Remove.
4845
4846 2020-07-01 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4849
4850 2020-07-01 Fangrui Song <maskray@google.com>
4851
4852 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4853
4854 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4855
4856 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4857 forms for DW_AT_associated and DW_AT_allocated attributes,
4858 which is already checked in function attr_to_dynamic_prop.
4859
4860 2020-06-30 Tom Tromey <tromey@adacore.com>
4861
4862 * dwarf2/read.c (quirk_rust_enum): Correctly call
4863 alloc_rust_variant for default-less enum.
4864
4865 2020-06-30 Tom Tromey <tromey@adacore.com>
4866
4867 PR build/26183:
4868 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4869 gdb::to_string.
4870
4871 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4874 * gdbarch.h: Re-generate.
4875
4876 2020-06-28 Tom Tromey <tom@tromey.com>
4877
4878 * command.h (cmd_types): Remove.
4879 (cmd_type): Don't declare.
4880 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4881 typedef.
4882 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4883 * cli/cli-decode.c (cmd_type): Remove.
4884
4885 2020-06-27 Pedro Alves <palves@redhat.com>
4886
4887 * fork-child.c (prefork_hook): Adjust.
4888 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4889 Delete.
4890 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4891 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4892 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4893 Remove declarations.
4894 (struct inferior) <set_tty, tty>: New methods.
4895 (struct inferior) <terminal>: Rename to ...
4896 (struct inferior) <m_terminal>: ... this and make private.
4897 * main.c (captured_main_1): Adjust.
4898 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4899 (mi_cmd_inferior_tty_show): Adjust.
4900 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4901 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4902
4903 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4904
4905 * configure.ac: Add --enable-libctf: handle --disable-static
4906 properly.
4907 * acinclude.m4: sinclude ../config/enable.m4.
4908 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4909 (LIBCTF): Substitute in.
4910 (CTF_DEPS): New, likewise.
4911 (CLIBS): libctf needs symbols from libbfd: move earlier.
4912 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4913 flags.
4914 * ctfread.c: Surround in ENABLE_LIBCTF.
4915 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4916 * configure: Regenerate.
4917 * config.in: Likewise.
4918
4919 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4922
4923 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * inferior.h (struct inferior) <terminal>: Change type to
4926 gdb::unique_xmalloc_ptr<char>.
4927 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4928 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4929 field, adjust to unique pointer.
4930 (get_inferior_io_terminal): Adjust to unique pointer.
4931
4932 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4933
4934 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4935 registers, not just the known core set of registers.
4936
4937 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4938
4939 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4940 fflags, frm, and fcsr registers.
4941 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4942 restore groups.
4943 (riscv_tdesc_unknown_reg): New function.
4944 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4945 tdesc_use_registers.
4946 * riscv-tdep.h (struct gdbarch_tdep): Add
4947 unknown_csrs_first_regnum, unknown_csrs_count,
4948 duplicate_fflags_regnum, duplicate_frm_regnum, and
4949 duplicate_fcsr_regnum fields.
4950
4951 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4954 callback, use the callback (when not null) to help number unknown
4955 registers.
4956 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4957 (tdesc_use_registers): Add extra parameter to declaration.
4958
4959 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4960
4961 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4962 in the file.
4963 (class riscv_pending_register_alias): Likewise.
4964 (riscv_register_feature::register_info): Change 'required_p' field
4965 to 'required', and change its type. Add 'check' member function.
4966 (riscv_register_feature::register_info::check): Define new member
4967 function.
4968 (riscv_xreg_feature): Change initialisation of 'required' field.
4969 (riscv_freg_feature): Likewise.
4970 (riscv_virtual_feature): Likewise.
4971 (riscv_csr_feature): Likewise.
4972 (riscv_check_tdesc_feature): Take extra parameter, the csr
4973 tdesc_feature, rewrite the function to use the new
4974 riscv_register_feature::register_info::check function.
4975 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4976
4977 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * features/Makefile: Remove all references to the deleted files
4980 below.
4981 * features/riscv/32bit-csr.c: Deleted.
4982 * features/riscv/32bit-csr.xml: Deleted.
4983 * features/riscv/64bit-csr.c: Deleted.
4984 * features/riscv/64bit-csr.xml: Deleted.
4985 * features/riscv/rebuild-csr-xml.sh: Deleted.
4986
4987 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4990 whitespace error for declaration of names member variable.
4991 (struct riscv_register_feature): Add new prefer_first_name member
4992 variable, and fix whitespace error in declaration of registers.
4993 (riscv_xreg_feature): Initialize prefer_first_name field.
4994 (riscv_freg_feature): Likewise.
4995 (riscv_virtual_feature): Likewise.
4996 (riscv_csr_feature): Likewise.
4997 (riscv_register_name): Expand on comments. Remove register name
4998 modifications for CSR and virtual registers.
4999
5000 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5003 errors.
5004
5005 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5008 riscv-opc.h.
5009 (class riscv_pending_register_alias): New class.
5010 (riscv_check_tdesc_feature): Take vector of pending aliases and
5011 populate it as appropriate.
5012 (riscv_setup_register_aliases): Delete.
5013 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5014 to riscv_check_tdesc_feature in all cases. Use the vector to
5015 create the register aliases.
5016
5017 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5018
5019 * sol2-tdep.c (sol2_static_transform_name): Remove.
5020 (sol2_init_abi): Don't register it.
5021 * gdbarch.sh (static_transform_name): Remove.
5022 * gdbarch.c, gdbarch.h: Regenerate.
5023
5024 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5025 gdbarch_static_transform_name.
5026 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5027 * stabsread.c (define_symbol) <'X'>: Remove.
5028 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5029 handling.
5030 <'V'>: Likewise.
5031 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5032 <'S'>: Remove call to gdbarch_static_transform_name.
5033
5034 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5035
5036 * procfs.c (procfs_pre_trace): New function.
5037 (procfs_target::create_inferior): Pass it to fork_inferior.
5038
5039 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5040
5041 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5042 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5043 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5044 sol2-tdep.o, sparc-sol2-tdep.o.
5045 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5046 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5047 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5048 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5049
5050 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5051
5052 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5053 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5054 Call sol2_init_abi.
5055 Remove calls to set_gdbarch_skip_solib_resolver,
5056 set_gdbarch_core_pid_to_str.
5057 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5058 (i386_sol2_static_transform_name): Remove.
5059 (i386_sol2_init_abi): Call sol2_init_abi.
5060 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5061 set_gdbarch_static_transform_name,
5062 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5063 Use sol2_sigtramp_p.
5064 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5065 (sol2_sigtramp_p): New function.
5066 (sol2_static_transform_name): New function.
5067 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5068 (sol2_init_abi): New function.
5069 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5070 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5071 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5072 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5073 (sparc_sol2_static_transform_name): Remove.
5074 (sparc32_sol2_init_abi): Call sol2_init_abi.
5075 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5076 set_gdbarch_static_transform_name,
5077 set_gdbarch_skip_solib_resolver,
5078 set_gdbarch_core_pid_to_str.
5079 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5080 (sparc_sol2_static_transform_name): Remove
5081 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5082 call sol2_sigtramp_p.
5083 (sparc64_sol2_init_abi): Call sol2_init_abi.
5084 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5085 set_gdbarch_static_transform_name,
5086 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5087
5088 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5089
5090 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5091 * exec.c (validate_exec_file): If from_tty, set both
5092 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5093 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5094 and from_tty, unconditionally ask a confirmation.
5095
5096 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5097
5098 * target-descriptions.c (tdesc_architecture_name): Protect against
5099 NULL pointer dereference.
5100 (maint_print_xml_tdesc_cmd): New function.
5101 (_initialize_target_descriptions): Register new 'maint print
5102 xml-tdesc' command and give it the filename completer.
5103 * NEWS: Mention new 'maint print xml-tdesc' command.
5104
5105 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5106
5107 * target-descriptions.c (class tdesc_compatible_info): New class.
5108 (struct target_desc): Change type of compatible vector.
5109 (tdesc_compatible_p): Update for change in type of
5110 target_desc::compatible.
5111 (tdesc_compatible_info_list): New function.
5112 (tdesc_compatible_info_arch_name): New function.
5113 (tdesc_add_compatible): Update for change in type of
5114 target_desc::compatible.
5115 (print_c_tdesc::visit_pre): Likewise.
5116
5117 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5120 whitespace to underscore.
5121 (maint_print_c_tdesc_cmd): Use fake filename for target
5122 descriptions that came from the target.
5123 (_initialize_target_descriptions): Add filename command completion
5124 for 'maint print c-tdesc'.
5125
5126 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5129 lines.
5130
5131 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5134 lines.
5135 (dwarf2_find_location_expression): Likewise.
5136 (call_site_parameter_matches): Likewise.
5137 (dwarf2_compile_expr_to_ax): Likewise.
5138 (disassemble_dwarf_expression): Likewise.
5139 (loclist_describe_location): Likewise.
5140
5141 2020-06-23 Pedro Alves <palves@redhat.com>
5142
5143 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5144 progspace-and-thread.h. Include scoped-mock-context.h instead.
5145 (register_to_value_test): Use scoped_mock_context.
5146 * regcache.c: Include "scoped-mock-context.h".
5147 (cooked_read_test): Don't error out if a target is already pushed.
5148 Use scoped_mock_context. Adjust.
5149 * scoped-mock-context.h: New file.
5150
5151 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5154 initializer.
5155 (ada_language::is_string_type_p): New member function.
5156 * c-lang.c (c_language_data): Delete la_is_string_type_p
5157 initializer.
5158 (cplus_language_data): Likewise.
5159 (asm_language_data): Likewise.
5160 (minimal_language_data): Likewise.
5161 * d-lang.c (d_language_data): Likewise.
5162 * f-lang.c (f_is_string_type_p): Delete function, implementation
5163 moved to f_language::is_string_type_p.
5164 (f_language_data): Delete la_is_string_type_p initializer.
5165 (f_language::is_string_type_p): New member function,
5166 implementation from f_is_string_type_p.
5167 * go-lang.c (go_is_string_type_p): Delete function, implementation
5168 moved to go_language::is_string_type_p.
5169 (go_language_data): Delete la_is_string_type_p initializer.
5170 (go_language::is_string_type_p): New member function,
5171 implementation from go_is_string_type_p.
5172 * language.c (language_defn::is_string_type_p): Define new member
5173 function.
5174 (default_is_string_type_p): Make static, add comment copied from
5175 header file.
5176 (unknown_language_data): Delete la_is_string_type_p initializer.
5177 (unknown_language::is_string_type_p): New member function.
5178 (auto_language_data): Delete la_is_string_type_p initializer.
5179 (auto_language::is_string_type_p): New member function.
5180 * language.h (language_data): Delete la_is_string_type_p field.
5181 (language_defn::is_string_type_p): Declare new function.
5182 (default_is_string_type_p): Delete desclaration, move comment to
5183 definition.
5184 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5185 moved to m2_language::is_string_type_p.
5186 (m2_language_data): Delete la_is_string_type_p initializer.
5187 (m2_language::is_string_type_p): New member function,
5188 implementation from m2_is_string_type_p.
5189 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5190 initializer.
5191 * opencl-lang.c (opencl_language_data): Likewise.
5192 * p-lang.c (pascal_is_string_type_p): Delete function,
5193 implementation moved to pascal_language::is_string_type_p.
5194 (pascal_language_data): Delete la_is_string_type_p initializer.
5195 (pascal_language::is_string_type_p): New member function,
5196 implementation from pascal_is_string_type_p.
5197 * rust-lang.c (rust_is_string_type_p): Delete function,
5198 implementation moved to rust_language::is_string_type_p.
5199 (rust_language_data): Delete la_is_string_type_p initializer.
5200 (rust_language::is_string_type_p): New member function,
5201 implementation from rust_is_string_type_p.
5202 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5203 is_string_type_p.
5204
5205 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5206
5207 * ada-lang.c (ada_language_data): Delete la_print_typedef
5208 initializer.
5209 (ada_language::print_typedef): New member function.
5210 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5211 (cplus_language_data): Likewise.
5212 (asm_language_data): Likewise.
5213 (minimal_language_data): Likewise.
5214 * d-lang.c (d_language_data): Likewise.
5215 * f-lang.c (f_language_data): Likewise.
5216 (f_language::print_typedef): New member function.
5217 * go-lang.c (go_language_data): Delete la_print_typedef
5218 initializer.
5219 * language.c (language_defn::print_typedef): Define member
5220 function.
5221 (unknown_language_data): Delete la_print_typedef initializer.
5222 (unknown_language::print_typedef): New member function.
5223 (auto_language_data): Delete la_print_typedef initializer.
5224 (auto_language::print_typedef): New member function.
5225 * language.h (language_data): Delete la_print_typedef field.
5226 (language_defn::print_typedef): Declare new member function.
5227 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5228 (default_print_typedef): Delete declaration.
5229 * m2-lang.c (m2_language_data): Delete la_print_typedef
5230 initializer.
5231 (m2_language::print_typedef): New member function.
5232 * objc-lang.c (objc_language_data): Delete la_print_typedef
5233 initializer.
5234 * opencl-lang.c (opencl_language_data): Likewise.
5235 * p-lang.c (pascal_language_data): Likewise.
5236 (pascal_language::print_typedef): New member function.
5237 * rust-lang.c (rust_print_typedef): Delete function,
5238 implementation moved to rust_language::print_typedef.
5239 (rust_language): Delete la_print_typedef initializer.
5240 (rust_language::print_typedef): New member function,
5241 implementation from rust_print_typedef.
5242 * typeprint.c (default_print_typedef): Delete.
5243
5244 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5245
5246 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5247 (ada_language::printstr): New member function.
5248 * c-lang.c (c_language_data): Delete la_printstr initializer.
5249 (cplus_language_data): Likewise.
5250 (asm_language_data): Likewise.
5251 (minimal_language_data): Likewise.
5252 * d-lang.c (d_language_data): Likewise.
5253 * f-lang.c (f_printstr): Rename to f_language::printstr.
5254 (f_language_data): Delete la_printstr initializer.
5255 (f_language::printstr): New member function, implementation from
5256 f_printstr.
5257 * go-lang.c (go_language_data): Delete la_printstr initializer.
5258 * language.c (language_defn::printstr): Define new member
5259 function.
5260 (unk_lang_printstr): Delete.
5261 (unknown_language_data): Delete la_printstr initializer.
5262 (unknown_language::printstr): New member function.
5263 (auto_language_data): Delete la_printstr initializer.
5264 (auto_language::printstr): New member function.
5265 * language.h (language_data): Delete la_printstr field.
5266 (language_defn::printstr): Declare new member function.
5267 (LA_PRINT_STRING): Update call to printstr.
5268 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5269 (m2_language_data): Delete la_printstr initializer.
5270 (m2_language::printstr): New member function, implementation from
5271 m2_printstr.
5272 * objc-lang.c (objc_language_data): Delete la_printstr
5273 initializer.
5274 * opencl-lang.c (opencl_language_data): Likewise.
5275 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5276 (pascal_language_data): Delete la_printstr initializer.
5277 (pascal_language::printstr): New member function, implementation
5278 from pascal_printstr.
5279 * p-lang.h (pascal_printstr): Delete declaration.
5280 * rust-lang.c (rust_printstr): Update header comment.
5281 (rust_language_data): Delete la_printstr initializer.
5282 (rust_language::printstr): New member function.
5283
5284 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5287 (ada_language::printchar): New member function.
5288 * c-lang.c (c_language_data): Delete la_printchar initializer.
5289 (cplus_language_data): Likewise.
5290 (asm_language_data): Likewise.
5291 (minimal_language_data): Likewise.
5292 * d-lang.c (d_language_data): Likewise.
5293 * f-lang.c (f_printchar): Rename to f_language::printchar.
5294 (f_language_data): Delete la_printchar initializer.
5295 (f_language::printchar): New member function, implementation from
5296 f_printchar.
5297 * go-lang.c (go_language_data): Delete la_printchar initializer.
5298 * language.c (unk_lang_printchar): Delete.
5299 (language_defn::printchar): Define new member function.
5300 (unknown_language_data): Delete la_printchar initializer.
5301 (unknown_language::printchar): New member function.
5302 (auto_language_data): Delete la_printchar initializer.
5303 (auto_language::printchar): New member function.
5304 * language.h (language_data): Delete la_printchar field.
5305 (language_defn::printchar): Declare new member function.
5306 (LA_PRINT_CHAR): Update call to printchar.
5307 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5308 (m2_language::printchar): New member function.
5309 * objc-lang.c (objc_language_data): Delete la_printchar
5310 initializer.
5311 * opencl-lang.c (opencl_language_data): Likewise.
5312 * p-lang.c (pascal_language_data): Delete la_printchar
5313 initializer.
5314 (pascal_language::printchar): New member function.
5315 * rust-lang.c (rust_printchar): Rename to
5316 rust_language::printchar.
5317 (rust_language_data): Delete la_printchar initializer.
5318 (rust_language::printchar): New member function, implementation
5319 from rust_printchar.
5320
5321 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5322
5323 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5324 (ada_language_data): Delete la_emitchar initializer.
5325 (ada_language::emitchar): New member function, implementation from
5326 emit_char.
5327 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5328 (cplus_language_data): Likewise.
5329 (asm_language_data): Likewise.
5330 (minimal_language_data): Likewise.
5331 * d-lang.c (d_language_data): Likewise.
5332 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5333 (f_language_data): Delete la_emitchar initializer.
5334 (f_language::emitchar): New member function, implementation from
5335 f_emit_char.
5336 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5337 * language.c (unk_lang_emit_char): Delete.
5338 (language_defn::emitchar): New member function definition.
5339 (unknown_language_data): Delete la_emitchar initializer.
5340 (unknown_language::emitchar): New member function.
5341 (auto_language_data): Delete la_emitchar initializer.
5342 (auto_language::emitchar): New member function.
5343 * language.h (language_data): Delete la_emitchar field.
5344 (language_defn::emitchar): New member field declaration.
5345 (LA_EMIT_CHAR): Update call to emitchar.
5346 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5347 (m2_language_data): Delete la_emitchar initializer.
5348 (m2_language::emitchar): New member function, implementation from
5349 m2_emit_char.
5350 * objc-lang.c (objc_language_data): Delete la_emitchar
5351 initializer.
5352 * opencl-lang.c (opencl_language_data): Likewise.
5353 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5354 (pascal_language_data): Delete la_emitchar initializer.
5355 (pascal_language::emitchar): New member function, implementation
5356 from pascal_emit_char.
5357 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5358 (rust_language_data): Delete la_emitchar initializer.
5359 (rust_language::emitchar): New member function, implementation
5360 from rust_emitchar.
5361
5362 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5363
5364 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5365 (ada_language_data): Delete la_post_parser initializer.
5366 (ada_language::post_parser): New member function.
5367 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5368 (cplus_language_data): Likewise.
5369 (asm_language_data): Likewise.
5370 (minimal_language_data): Likewise.
5371 * d-lang.c (d_language_data): Likewise.
5372 * f-lang.c (f_language_data): Likewise.
5373 * go-lang.c (go_language_data): Likewise.
5374 * language.c (unknown_language_data): Likewise.
5375 (auto_language_data): Likewise.
5376 * language.h (language_data): Delete la_post_parser field.
5377 (language_defn::post_parser): New member function.
5378 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5379 * objc-lang.c (objc_language_data): Likewise.
5380 * opencl-lang.c (opencl_language_data): Likewise.
5381 * p-lang.c (pascal_language_data): Likewise.
5382 * parse.c (parse_exp_in_context): Update call to post_parser.
5383 (null_post_parser): Delete definition.
5384 * parser-defs.h (null_post_parser): Delete declaration.
5385 * rust-lang.c (rust_language_data): Delete la_post_parser
5386 initializer.
5387
5388 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5389
5390 * ada-lang.c (parse): Rename to ada_language::parser.
5391 (ada_language_data): Delete la_parser initializer.
5392 (ada_language::parser): New member function, implementation from
5393 parse.
5394 * c-lang.c (c_language_data): Delete la_parser initializer.
5395 (cplus_language_data): Likewise.
5396 (asm_language_data): Likewise.
5397 (minimal_language_data): Likewise.
5398 * d-lang.c (d_language_data): Likewise.
5399 (d_language::parser): New member function.
5400 * f-lang.c (f_language_data): Delete la_parser initializer.
5401 (f_language::parser): New member function.
5402 * go-lang.c (go_language_data): Delete la_parser initializer.
5403 (go_language::parser): New member function.
5404 * language.c (unk_lang_parser): Delete.
5405 (language_defn::parser): Define new member function.
5406 (unknown_language_data): Delete la_parser initializer.
5407 (unknown_language::parser): New member function.
5408 (auto_language_data): Delete la_parser initializer.
5409 (auto_language::parser): New member function.
5410 * language.h (language_data): Delete la_parser field.
5411 (language_defn::parser): Declare new member function.
5412 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5413 (m2_language::parser): New member function.
5414 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5415 * opencl-lang.c (opencl_language_data): Likewise.
5416 * p-lang.c (pascal_language_data): Likewise.
5417 (pascal_language::parser): New member function.
5418 * parse.c (parse_exp_in_context): Update call to parser.
5419 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5420 (rust_language::parser): New member function.
5421
5422 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5423
5424 * top.c (print_gdb_configuration): Print --with-python-libdir
5425 configuration value.
5426
5427 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5428
5429 * NEWS: Mention change to the alias command.
5430
5431 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5432
5433 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5434 (alias_command_completer)
5435 (make_alias_options_def_group): New functions.
5436 (alias_opts, alias_option_defs): New struct and array.
5437 (alias_usage_error): Update usage.
5438 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5439 Use option framework.
5440 (_initialize_cli_cmds): Update alias command help.
5441 Update aliases command help.
5442 (show_user):
5443 Add NULL for new default_args lookup_cmd argument.
5444 (valid_command_p): Rename to validate_aliased_command.
5445 Add NULL for new default_args lookup_cmd argument. Verify that the
5446 aliased_command has no default args.
5447 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5448 (lookup_cmd_1, lookup_cmd): New argument default_args.
5449 (add_alias_cmd):
5450 Add NULL for new default_args lookup_cmd argument.
5451 (print_help_for_command): Show default args under the layout
5452 alias some_alias = some_aliased_cmd some_alias_default_arg.
5453 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5454 xfree default_args in destructor.
5455 * cli/cli-script.c (process_next_line, do_define_command):
5456 Add NULL for new default_args lookup_cmd argument.
5457 * command.h: Declare new default_args argument in lookup_cmd
5458 and lookup_cmd_1.
5459 * completer.c (complete_line_internal_1):
5460 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5461 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5462 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5463 Likewise.
5464 * infcmd.c (_initialize_infcmd): Likewise.
5465 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5466 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5467 * python/py-param.c (add_setshow_generic): Likewise.
5468 * remote.c (_initialize_remote): Likewise.
5469 * top.c (execute_command): Prepend default_args if command has some.
5470 (set_verbose):
5471 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5472 * tracepoint.c (validate_actionline, encode_actions_1):
5473 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5474
5475 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5476
5477 * jit.c (jit_read_descriptor): Use bool as the return type.
5478 (jit_breakpoint_re_set_internal): Use bool as the return type.
5479 Invert the return value logic; return true if the jit breakpoint
5480 has been successfully initialized.
5481 (jit_inferior_init): Update the call to
5482 jit_breakpoint_re_set_internal.
5483
5484 2020-06-22 Pedro Alves <palves@redhat.com>
5485
5486 PR gdb/25939
5487 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5488 Use the current inferior instead. Don't return
5489 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5490 wait again.
5491 * sol-thread.c (sol_thread_target::wait): Don't reference
5492 inferior_ptid.
5493 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5494 (sol_update_thread_list_callback): Use the current inferior's pid
5495 instead of inferior_ptid.
5496
5497 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5498
5499 * procfs.c: Cleanup many comments.
5500
5501 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5502 (AFTER_WATCHFLAG): Replace by value.
5503
5504 (MAIN_PROC_NAME_FORMAT): Inline ...
5505 (create_procinfo): ... here.
5506
5507 (procfs_debug_inferior): Remove SYS_exec handling.
5508 (syscall_is_exec): Likewise.
5509 (procfs_set_exec_trap): Likewise.
5510
5511 (syscall_is_lwp_exit): Inline in callers.
5512 (syscall_is_exit): Likewise.
5513 (syscall_is_exec): Likewise.
5514 (syscall_is_lwp_create): Likewise.
5515
5516 (invalidate_cache): Remove #if 0 code.
5517
5518 (make_signal_thread_runnable): Remove.
5519 (procfs_target::resume): Remove #if 0 code.
5520
5521 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5522
5523 PR gdb/25939
5524 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5525 call ...
5526 (procfs_target::create_inferior): ... here.
5527
5528 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5529
5530 * exec.c (validate_exec_file): Ensure the build-id is up to
5531 date by calling reopen_exec_file (that checks file timestamp
5532 to decide to re-read the file).
5533
5534 2020-06-18 Pedro Alves <palves@redhat.com>
5535
5536 PR gdb/25412
5537 * gdbthread.h (delete_thread, delete_thread_silent)
5538 (find_thread_ptid): Update comments.
5539 * thread.c (current_thread_): New global.
5540 (is_current_thread): Move higher, and reimplement.
5541 (inferior_thread): Reimplement.
5542 (set_thread_exited): Use bool. Add assertions.
5543 (add_thread_silent): Simplify thread-reuse handling by always
5544 calling delete_thread.
5545 (delete_thread): Remove intro comment.
5546 (find_thread_ptid): Skip exited threads.
5547 (switch_to_thread_no_regs): Write to current_thread_.
5548 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5549 INFERIOR_PTID. Clear current_thread_.
5550
5551 2020-06-18 Pedro Alves <palves@redhat.com>
5552
5553 * aix-thread.c (pd_update): Use switch_to_thread.
5554
5555 2020-06-18 Pedro Alves <palves@redhat.com>
5556
5557 * ravenscar-thread.c (ravenscar_thread_target): Update.
5558 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5559 (ravenscar_thread_target::add_active_thread): ... this. Don't
5560 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5561 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5562
5563 2020-06-18 Pedro Alves <palves@redhat.com>
5564
5565 * nat/windows-nat.c (current_windows_thread): Remove.
5566 * nat/windows-nat.h (current_windows_thread): Remove.
5567 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5568 Adjust.
5569 (display_selectors): Adjust to fetch the current
5570 windows_thread_info based on inferior_ptid.
5571 (fake_create_process): No longer write to current_windows_thread.
5572 (windows_nat_target::get_windows_debug_event):
5573 Don't set inferior_ptid or current_windows_thread.
5574 (windows_nat_target::wait): Adjust to not rely on
5575 current_windows_thread.
5576 (do_initial_windows_stuff): Now a method of windows_nat_target.
5577 Switch to the last_ptid thread.
5578 (windows_nat_target::attach): Adjust.
5579 (windows_nat_target::detach): Use switch_to_no_thread instead of
5580 writing to inferior_ptid directly.
5581 (windows_nat_target::create_inferior): Adjust.
5582
5583 2020-06-18 Pedro Alves <palves@redhat.com>
5584
5585 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5586
5587 2020-06-18 Pedro Alves <palves@redhat.com>
5588
5589 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5590 after creating it, instead of writing to inferior_ptid. Don't
5591 write to inferior_ptid.
5592
5593 2020-06-18 Pedro Alves <palves@redhat.com>
5594
5595 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5596
5597 2020-06-18 Pedro Alves <palves@redhat.com>
5598
5599 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5600 it, instead of writing to inferior_ptid.
5601
5602 2020-06-18 Pedro Alves <palves@redhat.com>
5603
5604 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5605 to inferior_ptid.
5606
5607 2020-06-18 Pedro Alves <palves@redhat.com>
5608
5609 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5610 instead of writing to inferior_ptid directly.
5611
5612 2020-06-18 Pedro Alves <palves@redhat.com>
5613
5614 * corelow.c (core_target::close): Use switch_to_no_thread instead
5615 of writing to inferior_ptid directly.
5616 (add_to_thread_list, core_target_open): Use switch_to_thread
5617 instead of writing to inferior_ptid directly.
5618
5619 2020-06-18 Pedro Alves <palves@redhat.com>
5620
5621 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5622 inferior_ptid.
5623 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5624 inferior_ptid.
5625 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5626 inferior_ptid directly.
5627 (darwin_nat_target::init_thread_list): Switch to thread, instead
5628 of writing to inferior_ptid.
5629 (darwin_nat_target::attach): Don't write to inferior_ptid.
5630 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5631
5632 2020-06-18 Pedro Alves <palves@redhat.com>
5633
5634 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5635 thread.
5636 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5637 Instead use switch_to_thread.
5638 (gnu_nat_target::detach): Use switch_to_no_thread
5639 instead of writing to inferior_ptid directly. Used passed-in
5640 inferior instead of looking up the inferior by pid.
5641
5642 2020-06-18 Pedro Alves <palves@redhat.com>
5643
5644 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5645 inferior_ptid.
5646
5647 2020-06-18 Pedro Alves <palves@redhat.com>
5648
5649 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5650 inferior_ptid.
5651 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5652 thread.
5653 (nto_procfs_target::detach): Avoid referencing
5654 inferior_ptid. Use switch_to_no_thread instead of writing to
5655 inferior_ptid directly.
5656 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5657 instead of writing to inferior_ptid directly.
5658 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5659 to thread.
5660
5661 2020-06-18 Pedro Alves <palves@redhat.com>
5662
5663 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5664 after creating it, instead of writing to inferior_ptid.
5665 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5666 to inferior_ptid directly.
5667 (gdbsim_target::wait): Don't write to inferior_ptid.
5668
5669 2020-06-18 Pedro Alves <palves@redhat.com>
5670
5671 * remote.c (remote_target::remote_notice_new_inferior): Use
5672 switch_to_thread instead of writing to inferior_ptid directly.
5673 (remote_target::add_current_inferior_and_thread): Use
5674 switch_to_no_thread instead of writing to inferior_ptid directly.
5675 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5676 and switch_to_thread instead of using set_current_inferior or
5677 writing to inferior_ptid directly.
5678
5679 2020-06-18 Pedro Alves <palves@redhat.com>
5680
5681 * tracectf.c (ctf_target_open): Switch to added thread instead of
5682 writing to inferior_ptid directly.
5683 (ctf_target::close): Use switch_to_no_thread instead of writing to
5684 inferior_ptid directly.
5685
5686 2020-06-18 Pedro Alves <palves@redhat.com>
5687
5688 * tracefile-tfile.c (tfile_target_open): Don't write to
5689 inferior_ptid directly, instead switch to added thread.
5690 (tfile_target::close): Use switch_to_no_thread instead of writing
5691 to inferior_ptid directly.
5692
5693 2020-06-18 Pedro Alves <palves@redhat.com>
5694
5695 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5696 (procfs_target::detach): Use switch_to_no_thread
5697 instead of writing to inferior_ptid directly.
5698 (do_attach): Change return type to void. Switch to the added
5699 thread.
5700 (procfs_target::create_inferior): Switch to the added thread.
5701 (procfs_do_thread_registers): Don't write to inferior_ptid.
5702
5703 2020-06-18 Pedro Alves <palves@redhat.com>
5704
5705 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5706 of writing to inferior_ptid.
5707 (scoped_restore_exited_inferior): Delete.
5708 (handle_vfork_child_exec_or_exit): Simplify using
5709 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5710 instead of writing to inferior_ptid.
5711 (THREAD_STOPPED_BY): Delete.
5712 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5713 (thread_stopped_by_hw_breakpoint): Delete.
5714 (save_waitstatus): Use
5715 scoped_restore_current_thread+switch_to_thread, and call
5716 target_stopped_by_watchpoint instead of
5717 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5718 instead of thread_stopped_by_sw_breakpoint, and
5719 target_stopped_by_hw_breakpoint instead of
5720 thread_stopped_by_hw_breakpoint.
5721 (handle_inferior_event)
5722 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5723 inferior_ptid directly, nor
5724 set_current_inferior/set_current_program_space. Use
5725 switch_to_thread / switch_to_inferior_no_thread instead.
5726
5727 2020-06-18 Pedro Alves <palves@redhat.com>
5728
5729 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5730 instead of writing to inferior_ptid.
5731
5732 2020-06-18 Pedro Alves <palves@redhat.com>
5733
5734 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5735 added thread.
5736 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5737 to the added thread.
5738 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5739 instead of writing to inferior_ptid.
5740
5741 2020-06-18 Pedro Alves <palves@redhat.com>
5742
5743 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5744 (register_to_value_test): Mock a program_space too. Heap-allocate
5745 the address space. Don't write to inferior_ptid. Use
5746 switch_to_thread instead.
5747
5748 2020-06-18 Pedro Alves <palves@redhat.com>
5749
5750 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5751 Delete.
5752 (find_signalled_thread()): New, factored out from
5753 linux_make_corefile_notes and adjusted to handle exited threads.
5754 (linux_make_corefile_notes): Adjust to use the new
5755 find_signalled_thread.
5756
5757 2020-06-18 Pedro Alves <palves@redhat.com>
5758
5759 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5760 of saving/restoring inferior_ptid.
5761
5762 2020-06-17 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5765 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5766 declare.
5767 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5768
5769 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5770
5771 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5772 of partial symtabs.
5773
5774 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * regformats/reg-arm.dat: Remove.
5777 * regformats/reg-bfin.dat: Remove.
5778 * regformats/reg-cris.dat: Remove.
5779 * regformats/reg-crisv32.dat: Remove.
5780 * regformats/reg-m32r.dat: Remove.
5781 * regformats/reg-tilegx.dat: Remove.
5782 * regformats/reg-tilegx32.dat: Remove.
5783
5784 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * features/Makefile (WHICH): Remove arm files.
5787 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5788 * regformats/arm/arm-with-neon.dat: Remove.
5789 * regformats/arm/arm-with-vfpv2.dat: Remove.
5790 * regformats/arm/arm-with-vfpv3.dat: Remove.
5791
5792 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * features/Makefile (XMLTOC): Remove rx.xml.
5795
5796 2020-06-17 Pedro Alves <palves@redhat.com>
5797
5798 * gdbthread.h (thread_control_state) <trap_expected> Update
5799 comments.
5800
5801 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5802
5803 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5804 ada_language::lookup_symbol_nonlocal.
5805 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5806 (ada_language::lookup_symbol_nonlocal): New member function,
5807 implementation from ada_lookup_symbol_nonlocal.
5808 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5809 initializer.
5810 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5811 initializer.
5812 (cplus_language::lookup_symbol_nonlocal): New member function.
5813 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5814 (minimal_language_data) Likewise.
5815 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5816 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5817 initializer.
5818 (d_language::lookup_symbol_nonlocal): New member function.
5819 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5820 initializer.
5821 (f_language::lookup_symbol_nonlocal): New member function.
5822 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5823 initializer.
5824 * language.c (unknown_language_data): Likewise.
5825 (auto_language_data): Likewise.
5826 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5827 field.
5828 (language_defn::lookup_symbol_nonlocal): New member function.
5829 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5830 initializer.
5831 * objc-lang.c (objc_language_data): Likewise.
5832 * opencl-lang.c (opencl_language_data): Likewise.
5833 * p-lang.c (pascal_language_data): Likewise.
5834 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5835 rust_language::lookup_symbol_nonlocal.
5836 (rust_language_data): Delete la_lookup_symbol_nonlocal
5837 initializer.
5838 (rust_language::lookup_symbol_nonlocal): New member function,
5839 implementation from rust_lookup_symbol_nonlocal.
5840 * symtab.c (lookup_symbol_aux): Update call to
5841 lookup_symbol_nonlocal.
5842 (basic_lookup_symbol_nonlocal): Rename to...
5843 (language_defn::lookup_symbol_nonlocal): ...this, and update
5844 header comment. Remove language_defn parameter, and replace with
5845 uses of `this'.
5846 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5847
5848 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5849
5850 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5851 initializer.
5852 (ada_language::value_print_inner): New member function.
5853 * c-lang.c (c_language_data): Delete la_value_print_inner
5854 initializer.
5855 (cplus_language_data): Likewise.
5856 (asm_language_data): Likewise.
5857 (minimal_language_data): Likewise.
5858 * d-lang.c (d_language_data): Likewise.
5859 (d_language::value_print_inner): New member function.
5860 * f-lang.c (f_language_data): Delete la_value_print_inner
5861 initializer.
5862 (f_language::value_print_inner): New member function.
5863 * f-lang.h (f_value_print_innner): Rename to...
5864 (f_value_print_inner): ...this (note spelling of 'inner').
5865 * f-valprint.c (f_value_print_innner): Rename to...
5866 (f_value_print_inner): ...this (note spelling of 'inner').
5867 * go-lang.c (go_language_data): Delete la_value_print_inner
5868 initializer.
5869 (go_language::value_print_inner): New member function.
5870 * language.c (language_defn::value_print_inner): Define new member
5871 function.
5872 (unk_lang_value_print_inner): Delete.
5873 (unknown_language_data): Delete la_value_print_inner initializer.
5874 (unknown_language::value_print_inner): New member function.
5875 (auto_language_data): Delete la_value_print_inner initializer.
5876 (auto_language::value_print_inner): New member function.
5877 * language.h (language_data): Delete la_value_print_inner field.
5878 (language_defn::value_print_inner): Delcare new member function.
5879 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5880 initializer.
5881 (m2_language::value_print_inner): New member function.
5882 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5883 initializer.
5884 * opencl-lang.c (opencl_language_data): Likewise.
5885 * p-lang.c (pascal_language_data): Likewise.
5886 (pascal_language::value_print_inner): New member function.
5887 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5888 initializer.
5889 (rust_language::value_print_inner): New member function.
5890 * valprint.c (do_val_print): Update call to value_print_inner.
5891
5892 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5893
5894 * ada-lang.c (ada_language_data): Delete la_value_print
5895 initializer.
5896 (ada_language::value_print): New member function.
5897 * c-lang.c (c_language_data): Delete la_value_print initializer.
5898 (cplus_language_data): Likewise.
5899 (asm_language_data): Likewise.
5900 (minimal_language_data): Likewise.
5901 * d-lang.c (d_language_data): Likewise.
5902 * f-lang.c (f_language_data): Likewise.
5903 * go-lang.c (go_language_data): Likewise.
5904 * language.c (unk_lang_value_print): Delete.
5905 (language_defn::value_print): Define new member function.
5906 (unknown_language_data): Delete la_value_print initializer.
5907 (unknown_language::value_print): New member function.
5908 (auto_language_data): Delete la_value_print initializer.
5909 (auto_language::value_print): New member function.
5910 * language.h (language_data): Delete la_value_print field.
5911 (language_defn::value_print): Declare new member function.
5912 (LA_VALUE_PRINT): Update call to value_print.
5913 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
5918 * rust-lang.c (rust_language_data): Delete la_value_print
5919 initializer.
5920
5921 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5922
5923 * ada-lang.c (ada_watch_location_expression): Rename to
5924 ada_language::watch_location_expression.
5925 (ada_language_data): Delete la_watch_location_expression
5926 initializer.
5927 (ada_language::watch_location_expression): New member function,
5928 implementation from ada_watch_location_expression.
5929 * breakpoint.c (watch_command_1): Update call to
5930 watch_location_expression.
5931 * c-lang.c (c_watch_location_expression): Rename to
5932 language_defn::watch_location_expression.
5933 (c_language_data): Delete la_watch_location_expression
5934 initializer.
5935 (cplus_language_data): Likewise.
5936 (asm_language_data): Likewise.
5937 (minimal_language_data): Likewise.
5938 * c-lang.h (c_watch_location_expression): Delete declaration.
5939 * d-lang.c (d_language_data): Delete la_watch_location_expression
5940 initializer.
5941 * f-lang.c (f_language_data): Likewise.
5942 * go-lang.c (go_language_data): Likewise.
5943 * language.c (language_defn::watch_location_expression): Member
5944 function implementation from c_watch_location_expression.
5945 (unknown_language_data): Delete la_watch_location_expression
5946 initializer.
5947 (auto_language_data): Likewise.
5948 * language.h (language_data): Delete la_watch_location_expression
5949 field.
5950 (language_defn::watch_location_expression): Declare new member
5951 function.
5952 * m2-lang.c (m2_language_data): Delete
5953 la_watch_location_expression initializer.
5954 * objc-lang.c (objc_language_data): Likewise.
5955 * opencl-lang.c (opencl_language_data): Likewise.
5956 * p-lang.c (pascal_language_data): Likewise.
5957 * rust-lang.c (rust_watch_location_expression): Rename to
5958 rust_language::watch_location_expression.
5959 (rust_language_data): Delete la_watch_location_expression
5960 initializer.
5961 (rust_language::watch_location_expression): New member function,
5962 implementation from rust_watch_location_expression.
5963
5964 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5967 ada_language::collect_symbol_completion_matches.
5968 (ada_language_data): Delete la_collect_symbol_completion_matches
5969 initializer.
5970 (ada_language::collect_symbol_completion_matches): New member
5971 function, implementation from
5972 ada_collect_symbol_completion_matches.
5973 * c-lang.c (c_language_data): Delete
5974 la_collect_symbol_completion_matches initializer.
5975 (cplus_language_data): Likewise.
5976 (asm_language_data): Likewise.
5977 (minimal_language_data): Likewise.
5978 * d-lang.c (d_language_data): Likewise.
5979 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5980 f_language::collect_symbol_completion_matches.
5981 (f_language_data): Delete la_collect_symbol_completion_matches
5982 initializer.
5983 (f_language::collect_symbol_completion_matches) New member
5984 function, implementation from f_collect_symbol_completion_matches.
5985 * go-lang.c (go_language_data): Delete
5986 la_collect_symbol_completion_matches initializer.
5987 * language.c (unknown_language_data): Likewise.
5988 (auto_language_data): Likewise.
5989 * language.h (language_data): Delete
5990 la_collect_symbol_completion_matches field.
5991 (language_defn::collect_symbol_completion_matches): New member
5992 function.
5993 * m2-lang.c (m2_language_data): Delete
5994 la_collect_symbol_completion_matches initializer.
5995 * objc-lang.c (objc_language_data): Likewise.
5996 * opencl-lang.c (opencl_language_data): Likewise.
5997 * p-lang.c (pascal_language_data): Likewise.
5998 * rust-lang.c (rust_language_data): Likewise.
5999 * symtab.c (default_collect_symbol_completion_matches): Delete.
6000 (collect_symbol_completion_matches): Update call to
6001 collect_symbol_completion_matches.
6002 (collect_symbol_completion_matches_type): Likewise.
6003 * symtab.h (default_collect_symbol_completion_matches): Delete
6004 declaration.
6005
6006 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6009 (ada_language_data): Delete la_word_break_characters initializer.
6010 (ada_language::word_break_characters): New member function.
6011 * c-lang.c (c_language_data): Delete la_word_break_characters
6012 initializer.
6013 (cplus_language_data): Likewise.
6014 (asm_language_data): Likewise.
6015 (minimal_language_data): Likewise.
6016 * completer.c: Update global comment.
6017 (advance_to_expression_complete_word_point): Update call to
6018 word_break_characters.
6019 (complete_files_symbols): Likewise.
6020 (complete_line_internal_1): Likewise.
6021 (default_completer_handle_brkchars): Likewise.
6022 (skip_quoted_chars): Likewise.
6023 * d-lang.c (d_language_data): Delete la_word_break_characters
6024 initializer.
6025 * f-lang.c (f_word_break_characters): Delete.
6026 (f_language_data): Delete la_word_break_characters initializer.
6027 (f_language::word_break_characters): New member function.
6028 * go-lang.c (go_language_data): Delete la_word_break_characters
6029 initializer.
6030 * language.c (unknown_language_data): Likewise.
6031 (auto_language_data): Likewise.
6032 * language.h (default_word_break_characters): Move declaration to
6033 earlier in the file.
6034 (language_data): Delete la_word_break_characters field.
6035 (language_defn::word_break_characters): New member function.
6036 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6037 initializer.
6038 * objc-lang.c (objc_language_data): Likewise.
6039 * opencl-lang.c (opencl_language_data): Likewise.
6040 * p-lang.c (pascal_language_data): Likewise.
6041 * rust-lang.c (rust_language_data): Likewise.
6042
6043 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6044
6045 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6046 (ada_language_data): Delete la_get_symbol_name_matcher
6047 initializer.
6048 (language_defn::get_symbol_name_matcher_inner): New member
6049 function.
6050 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6051 initializer.
6052 (cplus_language_data): Likewise.
6053 (cplus_language::get_symbol_name_matcher_inner): New member
6054 function.
6055 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6056 (minimal_language_data): Likewise.
6057 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6058 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6059 initializer.
6060 * dictionary.c (iter_match_first_hashed): Update call to
6061 get_symbol_name_matcher.
6062 (iter_match_next_hashed): Likewise.
6063 (iter_match_next_linear): Likewise.
6064 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6065 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6066 initializer.
6067 (f_language::get_symbol_name_matcher_inner): New member function.
6068 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6069 initializer.
6070 * language.c (default_symbol_name_matcher): Update header comment,
6071 make static.
6072 (language_defn::get_symbol_name_matcher): New definition.
6073 (language_defn::get_symbol_name_matcher_inner): Likewise.
6074 (get_symbol_name_matcher): Delete.
6075 (unknown_language_data): Delete la_get_symbol_name_matcher
6076 initializer.
6077 (auto_language_data): Likewise.
6078 * language.h (language_data): Delete la_get_symbol_name_matcher
6079 field.
6080 (language_defn::get_symbol_name_matcher): New member function.
6081 (language_defn::get_symbol_name_matcher_inner): Likewise.
6082 (default_symbol_name_matcher): Delete declaration.
6083 * linespec.c (find_methods): Update call to
6084 get_symbol_name_matcher.
6085 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6086 initializer.
6087 * minsyms.c (lookup_minimal_symbol): Update call to
6088 get_symbol_name_matcher.
6089 (iterate_over_minimal_symbols): Likewise.
6090 * objc-lang.c (objc_language_data): Delete
6091 la_get_symbol_name_matcher initializer.
6092 * opencl-lang.c (opencl_language_data): Likewise.
6093 * p-lang.c (pascal_language_data): Likewise.
6094 * psymtab.c (psymbol_name_matches): Update call to
6095 get_symbol_name_matcher.
6096 * rust-lang.c (rust_language_data): Delete
6097 la_get_symbol_name_matcher initializer.
6098 * symtab.c (symbol_matches_search_name): Update call to
6099 get_symbol_name_matcher.
6100 (compare_symbol_name): Likewise.
6101
6102 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * ada-lang.c (ada_language_data): Delete la_compute_program
6105 initializer.
6106 * c-lang.c (c_language_data): Likewise.
6107 (c_language::compute_program): New member function.
6108 (cplus_language_data): Delete la_compute_program initializer.
6109 (cplus_language::compute_program): New member function.
6110 (asm_language_data): Delete la_compute_program initializer.
6111 (minimal_language_data): Likewise.
6112 * c-lang.h (c_compute_program): Update comment.
6113 (cplus_compute_program): Likewise.
6114 * compile/compile-c-support.c (c_compute_program): Likewise.
6115 (cplus_compute_program): Likewise.
6116 * compile/compile.c (compile_to_object): Update call to
6117 la_compute_program.
6118 * d-lang.c (d_language_data): Delete la_compute_program
6119 initializer.
6120 * f-lang.c (f_language_data): Likewise.
6121 * go-lang.c (go_language_data): Likewise.
6122 * language.c (unknown_language_data): Likewise.
6123 (auto_language_data): Likewise.
6124 * language.h (language_data): Delete la_compute_program field.
6125 (language_defn::compute_program): New member function.
6126 * m2-lang.c (m2_language_data): Delete la_compute_program
6127 initializer.
6128 * objc-lang.c (objc_language_data): Likewise.
6129 * opencl-lang.c (opencl_language_data): Likewise.
6130 * p-lang.c (pascal_language_data): Likewise.
6131 * rust-lang.c (rust_language_data): Likewise.
6132
6133 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6134
6135 * ada-lang.c (ada_language_data) Delete
6136 la_class_name_from_physname initializer.
6137 * c-lang.c (c_language_data): Likewise.
6138 (cplus_language_data): Likewise.
6139 (cplus_language::class_name_from_physname): New member function.
6140 (asm_language_data): Delete la_class_name_from_physname
6141 initializer.
6142 (minimal_language_data): Likewise.
6143 * d-lang.c (d_language_data): Likewise.
6144 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6145 method on language_defn class.
6146 (guess_full_die_structure_name): Likewise.
6147 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6148 initializer.
6149 * go-lang.c (go_language_data): Likewise.
6150 * language.c (language_class_name_from_physname): Delete.
6151 (unk_lang_class_name): Delete.
6152 (unknown_language_data): Delete la_class_name_from_physname
6153 initializer.
6154 (auto_language_data): Likewise.
6155 * language.h (language_data): Delete la_class_name_from_physname
6156 field.
6157 (language_defn::class_name_from_physname): New function.
6158 (language_class_name_from_physname): Delete declaration.
6159 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6160 initializer.
6161 * objc-lang.c (objc_language_data): Likewise.
6162 * opencl-lang.c (opencl_language_data): Likewise.
6163 * p-lang.c (pascal_language_data): Likewise.
6164 * rust-lang.c (rust_language_data): Likewise.
6165
6166 2020-06-16 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-data.h (STATUS_NAME): New macro.
6169 * tui/tui-layout.c (tui_remove_some_windows)
6170 (initialize_known_windows, tui_register_window)
6171 (tui_layout_split::remove_windows, initialize_layouts)
6172 (tui_new_layout_command): Don't use hard-coded window names.
6173
6174 2020-06-16 Tom Tromey <tom@tromey.com>
6175
6176 PR tui/25348:
6177 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6178 tui_initialize_readline. Only run once. Call rl_initialize.
6179 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6180 tui_initialize_readline.
6181 * tui/tui-io.c (tui_setup_io): Call
6182 tui_ensure_readline_initialized.
6183 * tui/tui-interp.c (tui_interp::init): Update.
6184
6185 2020-06-16 Tom Tromey <tom@tromey.com>
6186
6187 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6188 Also preserve the status window.
6189
6190 2020-06-16 Tom Tromey <tom@tromey.com>
6191
6192 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6193 where m_window==nullptr.
6194
6195 2020-06-15 Tom Tromey <tromey@adacore.com>
6196
6197 * windows-nat.c (windows_nat::handle_output_debug_string):
6198 Update.
6199 (windows_nat::handle_ms_vc_exception): Update.
6200 * target.h (target_read_string): Change API.
6201 * target.c (target_read_string): Change API.
6202 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6203 Update.
6204 * solib-frv.c (frv_current_sos): Update.
6205 * solib-dsbt.c (dsbt_current_sos): Update.
6206 * solib-darwin.c (darwin_current_sos): Update.
6207 * linux-thread-db.c (inferior_has_bug): Update.
6208 * expprint.c (print_subexp_standard): Update.
6209 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6210 (ada_exception_message_1): Update.
6211
6212 2020-06-15 Tom Tromey <tromey@adacore.com>
6213
6214 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6215
6216 2020-06-15 Tom Tromey <tromey@adacore.com>
6217
6218 * valprint.c (read_string): Update comment.
6219 * target.c (MIN): Remove.
6220 (target_read_string): Rewrite.
6221
6222 2020-06-15 Tom Tromey <tromey@adacore.com>
6223
6224 * corefile.c (read_memory_string): Remove.
6225 * ada-valprint.c (ada_value_print_ptr): Update.
6226 * ada-lang.h (ada_tag_name): Change return type.
6227 * ada-lang.c (type_from_tag): Update.
6228 (ada_tag_name_from_tsd): Change return type. Use
6229 target_read_string.
6230 (ada_tag_name): Likewise.
6231 * gdbcore.h (read_memory_string): Don't declare.
6232
6233 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6234
6235 * symtab.c (rbreak_command): Ignore Windows drive colon.
6236
6237 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * NEWS: Mention removed GDBserver host support.
6240
6241 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6242
6243 * features/riscv/rebuild-csr-xml.sh: Updated.
6244
6245 2020-06-11 Tom Tromey <tom@tromey.com>
6246
6247 PR gdb/18318:
6248 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6249
6250 2020-06-09 Jonny Grant <jg@jguk.org>
6251 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * main.c (captured_main_1): Don't print new line after help.
6254 (print_gdb_help): add mailing list and IRC channel information
6255 to --help. Add new lines between items in the footer. Remove
6256 quotes around bug url.
6257
6258 2020-06-11 Keith Seitz <keiths@redhat.com>
6259
6260 PR gdb/21356
6261 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6262 Resolve typedefs for type length calculations.
6263
6264 2020-06-10 Tom de Vries <tdevries@suse.de>
6265
6266 PR ada/24713
6267 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6268 (write_psymbols): Enable .gdb_index for ada.
6269 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6270 ada.
6271
6272 2020-06-10 Tom de Vries <tdevries@suse.de>
6273
6274 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6275 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6276 namei" instead of "const char *name" argument.
6277 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6278 dw2_symtab_iter_init.
6279
6280 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6283 to use type::field and field::type instead.
6284
6285 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6288 to use field::type instead.
6289
6290 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * gdbtypes.h (struct field) <type, set_type>: New methods.
6293 Rename `type` field to...
6294 <m_type>: ... this. Change references throughout to use type or
6295 set_type methods.
6296 (FIELD_TYPE): Use field::type. Change call sites that modify
6297 the field's type to use field::set_type instead.
6298
6299 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6302 to use type::index_type instead.
6303
6304 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6305
6306 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6307 methods.
6308 (TYPE_INDEX_TYPE): Use type::index_type.
6309 * gdbtypes.c (create_array_type_with_stride): Likewise.
6310
6311 2020-06-07 Tom Tromey <tom@tromey.com>
6312
6313 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6314 parameter.
6315 (generic_value_print): Update.
6316
6317 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6318
6319 Revert commit 982a38f60b0.
6320 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6321
6322 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6325 avoid use after free.
6326
6327 2020-06-05 Tom de Vries <tdevries@suse.de>
6328
6329 * NEWS: Fix typos.
6330
6331 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6334 the per_bfd object.
6335 (dwarf2_read_debug_names): Likewise.
6336 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6337 object when re-using a per_bfd object with an index.
6338
6339 2020-06-03 Tom de Vries <tdevries@suse.de>
6340
6341 PR symtab/26046
6342 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6343 children for C++.
6344 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6345 DW_TAG_subprogram.
6346
6347 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 * ada-lang.c (ada_language_data): Delete skip_trampoline
6350 initializer.
6351 * c-lang.c (c_language_data): Likewise.
6352 (cplus_language_data): Likewise.
6353 (cplus_language::skip_trampoline): New member function.
6354 (asm_language_data): Delete skip_trampoline initializer.
6355 (minimal_language_data): Likewise.
6356 * d-lang.c (d_language_data): Likewise.
6357 * f-lang.c (f_language_data): Likewise.
6358 * go-lang.c (go_language_data): Likewise.
6359 * language.c (unk_lang_trampoline): Delete function.
6360 (skip_language_trampoline): Update.
6361 (unknown_language_data): Delete skip_trampoline initializer.
6362 (auto_language_data): Likewise.
6363 * language.h (language_data): Delete skip_trampoline field.
6364 (language_defn::skip_trampoline): New function.
6365 * m2-lang.c (m2_language_data): Delete skip_trampoline
6366 initializer.
6367 * objc-lang.c (objc_skip_trampoline): Delete function, move
6368 implementation to objc_language::skip_trampoline.
6369 (objc_language_data): Delete skip_trampoline initializer.
6370 (objc_language::skip_trampoline): New member function with
6371 implementation from objc_skip_trampoline.
6372 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6373 initializer.
6374 * p-lang.c (pascal_language_data): Likewise.
6375 * rust-lang.c (rust_language_data): Likewise.
6376
6377 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6380 (ada_language::demangle): New member function.
6381 * c-lang.c (c_language_data): Delete la_demangle initializer.
6382 (cplus_language_data): Delete la_demangle initializer.
6383 (cplus_language::demangle): New member function.
6384 (asm_language_data): Delete la_demangle initializer.
6385 (minimal_language_data): Delete la_demangle initializer.
6386 * d-lang.c (d_language_data): Delete la_demangle initializer.
6387 (d_language::demangle): New member function.
6388 * f-lang.c (f_language_data): Delete la_demangle initializer.
6389 (f_language::demangle): New member function.
6390 * go-lang.c (go_language_data): Delete la_demangle initializer.
6391 (go_language::demangle): New member function.
6392 * language.c (language_demangle): Update.
6393 (unk_lang_demangle): Delete.
6394 (unknown_language_data): Delete la_demangle initializer.
6395 (unknown_language::demangle): New member function.
6396 (auto_language_data): Delete la_demangle initializer.
6397 (auto_language::demangle): New member function.
6398 * language.h (language_data): Delete la_demangle field.
6399 (language_defn::demangle): New function.
6400 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6401 * objc-lang.c (objc_language_data): Delete la_demangle
6402 initializer.
6403 (objc_language::demangle): New member function.
6404 * opencl-lang.c (opencl_language_data): Delete la_demangle
6405 initializer.
6406 * p-lang.c (pascal_language_data): Likewise.
6407 * rust-lang.c (rust_language_data): Likewise.
6408 (rust_language::demangle): New member function.
6409
6410 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6411
6412 * ada-lang.c (ada_language_data): Delete la_print_type
6413 initializer.
6414 (ada_language::print_type): New member function.
6415 * c-lang.c (c_language_data): Delete la_print_type initializer.
6416 (c_language::print_type): New member function.
6417 (cplus_language_data): Delete la_print_type initializer.
6418 (cplus_language::print_type): New member function.
6419 (asm_language_data): Delete la_print_type initializer.
6420 (asm_language::print_type): New member function.
6421 (minimal_language_data): Delete la_print_type initializer.
6422 (minimal_language::print_type): New member function.
6423 * d-lang.c (d_language_data): Delete la_print_type initializer.
6424 (d_language::print_type): New member function.
6425 * f-lang.c (f_language_data): Delete la_print_type initializer.
6426 (f_language::print_type): New member function.
6427 * go-lang.c (go_language_data): Delete la_print_type initializer.
6428 (go_language::print_type): New member function.
6429 * language.c (unk_lang_print_type): Delete.
6430 (unknown_language_data): Delete la_print_type initializer.
6431 (unknown_language::print_type): New member function.
6432 (auto_language_data): Delete la_print_type initializer.
6433 (auto_language::print_type): New member function.
6434 * language.h (language_data): Delete la_print_type field.
6435 (language_defn::print_type): New function.
6436 (LA_PRINT_TYPE): Update.
6437 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6438 (m2_language::print_type): New member function.
6439 * objc-lang.c (objc_language_data): Delete la_print_type
6440 initializer.
6441 (objc_language::print_type): New member function.
6442 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6443 to opencl_language::print_type.
6444 (opencl_language_data): Delete la_print_type initializer.
6445 (opencl_language::print_type): New member function, implementation
6446 from opencl_print_type.
6447 * p-lang.c (pascal_language_data): Delete la_print_type
6448 initializer.
6449 (pascal_language::print_type): New member function.
6450 * rust-lang.c (rust_print_type): Delete, implementation moved to
6451 rust_language::print_type.
6452 (rust_language_data): Delete la_print_type initializer.
6453 (rust_language::print_type): New member function, implementation
6454 from rust_print_type.
6455
6456 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6459 implementation moves to...
6460 (ada_language::sniff_from_mangled_name): ...here. Update return
6461 type.
6462 (ada_language_data): Delete la_sniff_from_mangled_name
6463 initializer.
6464 * c-lang.c (c_language_data): Likewise.
6465 (cplus_language_data): Likewise.
6466 (cplus_language::sniff_from_mangled_name): New member function,
6467 implementation taken from gdb_sniff_from_mangled_name.
6468 (asm_language_data): Delete la_sniff_from_mangled_name
6469 initializer.
6470 (minimal_language_data): Likewise.
6471 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6472 implementation moves to cplus_language::sniff_from_mangled_name.
6473 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6474 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6475 moves to...
6476 (d_language::sniff_from_mangled_name): ...here.
6477 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6478 * f-lang.c (f_language_data): Likewise.
6479 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6480 moves to...
6481 (go_language::sniff_from_mangled_name): ...here.
6482 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6483 * language.c (language_sniff_from_mangled_name): Delete.
6484 (unknown_language_data): Delete la_sniff_from_mangled_name
6485 initializer.
6486 (auto_language_data): Likewise.
6487 * language.h (language_data): Delete la_sniff_from_mangled_name
6488 field.
6489 (language_defn::sniff_from_mangled_name): New function.
6490 (language_sniff_from_mangled_name): Delete declaration.
6491 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6492 field.
6493 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6494 implementation moves to...
6495 (objc_language::sniff_from_mangled_name): ...here.
6496 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6497 * opencl-lang.c (opencl_language_data): Likewise.
6498 * p-lang.c (pascal_language_data): Likewise.
6499 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6500 implementation moves to...
6501 (rust_language::sniff_from_mangled_name): ...here.
6502 (rust_language_data): Delete la_sniff_from_mangled_name
6503 initializer.
6504 * symtab.c (symbol_find_demangled_name): Call
6505 sniff_from_mangled_name member function.
6506
6507 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6510 initializer.
6511 * c-lang.c (c_language_data): Likewise.
6512 (cplus_language_data): Likewise.
6513 (cplus_language::search_name_hash): New member function.
6514 (asm_language_data): Delete la_search_name_hash initializer.
6515 (minimal_language_data): Likewise.
6516 * d-lang.c (d_language_data): Likewise.
6517 * dictionary.c (default_search_name_hash): Rename to...
6518 (language_defn::search_name_hash): ...this.
6519 * f-lang.c (f_language_data): Likewise.
6520 (f_language::search_name_hash): New member function.
6521 * go-lang.c (go_language_data): Delete la_search_name_hash
6522 initializer.
6523 * language.c (unknown_language_data): Likewise.
6524 (auto_language_data): Likewise.
6525 * language.h (struct language_data): Delete la_search_name_hash
6526 field.
6527 (language_defn::search_name_hash): Declare new member function.
6528 (default_search_name_hash): Delete declaration.
6529 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6530 initializer.
6531 * objc-lang.c (objc_language_data): Likewise.
6532 * opencl-lang.c (opencl_language_data): Likewise.
6533 * p-lang.c (pascal_language_data): Likewise.
6534 * rust-lang.c (rust_language_data): Likewise.
6535 * symtab.c (search_name_hash): Update call.
6536
6537 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6538
6539 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6540 initializer.
6541 * c-lang.c (class compile_instance): Declare.
6542 (c_language_data): Delete la_get_compile_instance initializer.
6543 (c_language::get_compile_instance): New member function.
6544 (cplus_language_data): Delete la_get_compile_instance initializer.
6545 (cplus_language::get_compile_instance): New member function.
6546 (asm_language_data): Delete la_get_compile_instance initializer.
6547 (minimal_language_data): Likewise.
6548 * c-lang.h (c_get_compile_context): Update comment.
6549 (cplus_get_compile_context): Update comment.
6550 * compile/compile.c (compile_to_object): Update calls, don't rely
6551 on function pointer being NULL.
6552 * d-lang.c (d_language_data): Delete la_get_compile_instance
6553 initializer.
6554 * f-lang.c (f_language_data): Likewise.
6555 * go-lang.c (go_language_data): Likewise.
6556 * language.c (unknown_language_data): Likewise.
6557 (auto_language_data): Likewise.
6558 * language.h (language_data): Delete la_get_compile_instance field.
6559 (language_defn::get_compile_instance): New member function.
6560 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6561 initializer.
6562 * objc-lang.c (objc_language_data): Likewise.
6563 * opencl-lang.c (opencl_language_data): Likewise.
6564 * p-lang.c (pascal_language_data): Likewise.
6565 * rust-lang.c (rust_language_data): Likewise.
6566
6567 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6568
6569 * ada-lang.c (ada_add_all_symbols): Update comment.
6570 (ada_iterate_over_symbols): Delete, move implementation to...
6571 (ada_language::iterate_over_symbols): ...here, a new member
6572 function, rewrite to use range based for loop.
6573 (ada_language_data): Delete la_iterate_over_symbols initializer.
6574 * c-lang.c (c_language_data): Likewise.
6575 (cplus_language_data): Likewise.
6576 (asm_language_data): Likewise.
6577 (minimal_language_data): Likewise.
6578 * d-lang.c (d_language_data): Likewise.
6579 * f-lang.c (f_language_data): Likewise.
6580 * go-lang.c (go_language_data): Likewise.
6581 * language.c (unknown_language_data): Likewise.
6582 (auto_language_data): Likewise.
6583 * language.h (language_data): Delete la_iterate_over_symbols field.
6584 (language_defn::iterate_over_symbols): New member function.
6585 (LA_ITERATE_OVER_SYMBOLS): Update.
6586 * linespec.c (iterate_over_all_matching_symtabs): Update.
6587 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6588 initializer.
6589 * objc-lang.c (objc_language_data): Likewise.
6590 * opencl-lang.c (opencl_language_data): Likewise.
6591 * p-lang.c (pascal_language_data): Likewise.
6592 * rust-lang.c (rust_language_data): Likewise.
6593
6594 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * ada-lang.c (ada_language_data): Delete
6597 la_lookup_transparent_type initializer.
6598 * c-lang.c (c_language_data): Likewise.
6599 (cplus_language_data): Likewise.
6600 (cplus_language::lookup_transparent_type): New member function.
6601 (asm_language_data): Delete la_lookup_transparent_type
6602 initializer.
6603 (minimal_language_data): Likewise.
6604 * d-lang.c (d_language_data): Likewise.
6605 * f-lang.c (f_language_data): Likewise.
6606 * go-lang.c (go_language_data): Likewise.
6607 * language.c (unknown_language_data): Likewise.
6608 (auto_language_data): Likewise.
6609 * language.h (struct language_data): Delete
6610 la_lookup_transparent_type field.
6611 (language_defn::lookup_transparent_type): New member function.
6612 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6613 initializer.
6614 * objc-lang.c (objc_language_data): Likewise.
6615 * opencl-lang.c (opencl_language_data): Likewise.
6616 * p-lang.c (pascal_language_data): Likewise.
6617 * rust-lang.c (rust_language_data): Likewise.
6618 * symtab.c (symbol_matches_domain): Update call.
6619
6620 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * ada-lang.c (ada_language_arch_info): Delete function, move
6623 implementation to...
6624 (ada_language::language_arch_info): ...here, a new member
6625 function.
6626 (ada_language_data): Delete la_language_arch_info.
6627 * c-lang.c (c_language_data): Likewise.
6628 (c_language::language_arch_info): New member function.
6629 (cplus_language_arch_info): Delete function, move
6630 implementation to...
6631 (cplus_language::language_arch_info): ...here, a new member
6632 function.
6633 (cplus_language_data): Delete la_language_arch_info.
6634 (asm_language_data): Likewise.
6635 (asm_language::language_arch_info): New member function.
6636 (minimal_language_data): Delete la_language_arch_info.
6637 (minimal_language::language_arch_info): New member function.
6638 * d-lang.c (d_language_arch_info): Delete function, move
6639 implementation to...
6640 (d_language::language_arch_info): ...here, a new member
6641 function.
6642 (d_language_data): Delete la_language_arch_info.
6643 * f-lang.c (f_language_arch_info): Delete function, move
6644 implementation to...
6645 (f_language::language_arch_info): ...here, a new member
6646 function.
6647 (f_language_data): Delete la_language_arch_info.
6648 * go-lang.c (go_language_arch_info): Delete function, move
6649 implementation to...
6650 (go_language::language_arch_info): ...here, a new member
6651 function.
6652 (go_language_data): Delete la_language_arch_info.
6653 * language.c (unknown_language_data): Likewise.
6654 (unknown_language::language_arch_info): New member function.
6655 (auto_language_data): Delete la_language_arch_info.
6656 (auto_language::language_arch_info): New member function.
6657 (language_gdbarch_post_init): Update call to
6658 la_language_arch_info.
6659 * language.h (language_data): Delete la_language_arch_info
6660 function pointer.
6661 (language_defn::language_arch_info): New function.
6662 * m2-lang.c (m2_language_arch_info): Delete function, move
6663 implementation to...
6664 (m2_language::language_arch_info): ...here, a new member
6665 function.
6666 (m2_language_data): Delete la_language_arch_info.
6667 * objc-lang.c (objc_language_arch_info): Delete function, move
6668 implementation to...
6669 (objc_language::language_arch_info): ...here, a new member
6670 function.
6671 (objc_language_data): Delete la_language_arch_info.
6672 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6673 implementation to...
6674 (opencl_language::language_arch_info): ...here, a new member
6675 function.
6676 (opencl_language_data): Delete la_language_arch_info.
6677 * p-lang.c (pascal_language_arch_info): Delete function, move
6678 implementation to...
6679 (pascal_language::language_arch_info): ...here, a new member
6680 function.
6681 (pascal_language_data): Delete la_language_arch_info.
6682 * rust-lang.c (rust_language_arch_info): Delete function, move
6683 implementation to...
6684 (rust_language::language_arch_info): ...here, a new member
6685 function.
6686 (rust_language_data): Delete la_language_arch_info.
6687
6688 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6691 initializer.
6692 * c-lang.c (c_language_data): Likewise.
6693 (cplus_language_data): Likewise.
6694 (cplus_language::pass_by_reference_info): New method.
6695 (asm_language_data): Delete la_pass_by_reference initializer.
6696 (minimal_language_data): Likewise.
6697 * cp-abi.c (cp_pass_by_reference): Remove use of
6698 default_pass_by_reference.
6699 * d-lang.c (d_language_data): Likewise.
6700 * f-lang.c (f_language_data): Likewise.
6701 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6702 default_pass_by_reference.
6703 * go-lang.c (go_language_data): Likewise.
6704 * language.c (language_pass_by_reference): Update.
6705 (default_pass_by_reference): Delete.
6706 (unknown_language_data): Delete la_pass_by_reference
6707 initializer.
6708 (auto_language_data): Likewise.
6709 * language.h (struct language_data): Delete la_pass_by_reference
6710 field.
6711 (language_defn::pass_by_reference_info): New member function.
6712 (default_pass_by_reference): Delete declaration.
6713 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6714 initializer.
6715 * objc-lang.c (objc_language_data): Likewise.
6716 * opencl-lang.c (opencl_language_data): Likewise.
6717 * p-lang.c (pascal_language_data): Likewise.
6718 * rust-lang.c (rust_language_data): Likewise.
6719
6720 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * ada-lang.c (ada_read_var_value): Delete function, move
6723 implementation to...
6724 (ada_language::read_var_value): ...here.
6725 (ada_language_data): Delete la_read_var_value initializer.
6726 * c-lang.c (c_language_data): Likewise.
6727 (cplus_language_data): Likewise.
6728 (minimal_language_data): Likewise.
6729 * d-lang.c (d_language_data): Likewise.
6730 * f-lang.c (f_language_data): Likewise.
6731 * findvar.c (default_read_var_value): Rename to...
6732 (language_defn::read_var_value): ...this.
6733 * findvar.c (read_var_value): Update header comment, and change to
6734 call member function instead of function pointer.
6735 * go-lang.c (go_language_data): Likewise.
6736 * language.c (unknown_language_data): Delete la_read_var_value
6737 initializer.
6738 (auto_language_data): Likewise.
6739 * language.h (struct language_data): Delete la_read_var_value
6740 field.
6741 (language_defn::read_var_value): New member function.
6742 (default_read_var_value): Delete declaration.
6743 * m2-lang.c (m2_language_data): Delete la_read_var_value
6744 initializer.
6745 * objc-lang.c (objc_language_data): Likewise.
6746 * opencl-lang.c (opencl_language_data): Likewise.
6747 * p-lang.c (pascal_language_data): Likewise.
6748 * rust-lang.c (rust_language_data): Likewise.
6749 * value.h (default_read_var_value): Delete declaration.
6750
6751 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6752
6753 * ada-lang.c (ada_print_array_index): Delete function, move
6754 implementation to...
6755 (ada_language::print_array_index): ...here.
6756 (ada_language_data): Delete la_print_array_index initializer.
6757 * c-lang.c (c_language_data): Likewise.
6758 (cplus_language_data): Likewise.
6759 (minimal_language_data): Likewise.
6760 * d-lang.c (d_language_data): Likewise.
6761 * f-lang.c (f_language_data): Likewise.
6762 * go-lang.c (go_language_data): Likewise.
6763 * language.c (default_print_array_index): Delete function, move
6764 implementation to...
6765 (language_defn::print_array_index): ...here.
6766 (unknown_language_data): Delete la_print_array_index initializer.
6767 (auto_language_data): Likewise.
6768 * language.h (struct language_data): Delete la_print_array_index
6769 field.
6770 (language_defn::print_array_index): New member function.
6771 (LA_PRINT_ARRAY_INDEX): Update.
6772 (default_print_array_index): Delete declaration.
6773 * m2-lang.c (m2_language_data): Delete la_print_array_index
6774 initializer.
6775 * objc-lang.c (objc_language_data): Likewise.
6776 * opencl-lang.c (opencl_language_data): Likewise.
6777 * p-lang.c (pascal_language_data): Likewise.
6778 * rust-lang.c (rust_language_data): Likewise.
6779
6780 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * gdb/ada-lang.c (ada_language_defn): Convert to...
6783 (ada_language_data): ...this.
6784 (class ada_language): New class.
6785 (ada_language_defn): New static global.
6786 * gdb/c-lang.c (c_language_defn): Convert to...
6787 (c_language_data): ...this.
6788 (class c_language): New class.
6789 (c_language_defn): New static global.
6790 (cplus_language_defn): Convert to...
6791 (cplus_language_data): ...this.
6792 (class cplus_language): New class.
6793 (cplus_language_defn): New static global.
6794 (asm_language_defn): Convert to...
6795 (asm_language_data): ...this.
6796 (class asm_language): New class.
6797 (asm_language_defn): New static global.
6798 (minimal_language_defn): Convert to...
6799 (minimal_language_data): ...this.
6800 (class minimal_language): New class.
6801 (minimal_language_defn): New static global.
6802 * gdb/d-lang.c (d_language_defn): Convert to...
6803 (d_language_data): ...this.
6804 (class d_language): New class.
6805 (d_language_defn): New static global.
6806 * gdb/f-lang.c (f_language_defn): Convert to...
6807 (f_language_data): ...this.
6808 (class f_language): New class.
6809 (f_language_defn): New static global.
6810 * gdb/go-lang.c (go_language_defn): Convert to...
6811 (go_language_data): ...this.
6812 (class go_language): New class.
6813 (go_language_defn): New static global.
6814 * gdb/language.c (unknown_language_defn): Remove declaration.
6815 (current_language): Initialize to nullptr, real initialization is
6816 moved to _initialize_language.
6817 (languages): Delete global.
6818 (language_defn::languages): Define.
6819 (set_language_command): Use language_defn::languages.
6820 (set_language): Likewise.
6821 (range_error): Likewise.
6822 (language_enum): Likewise.
6823 (language_def): Likewise.
6824 (add_set_language_command): Use language_def::languages for the
6825 language list, and language_def to lookup language pointers.
6826 (skip_language_trampoline): Use language_defn::languages.
6827 (unknown_language_defn): Convert to...
6828 (unknown_language_data): ...this.
6829 (class unknown_language): New class.
6830 (unknown_language_defn): New static global.
6831 (auto_language_defn): Convert to...
6832 (auto_language_data): ...this.
6833 (class auto_language): New class.
6834 (auto_language_defn): New static global.
6835 (language_gdbarch_post_init): Use language_defn::languages.
6836 (_initialize_language): Initialize current_language.
6837 * gdb/language.h (struct language_defn): Rename to...
6838 (struct language_data): ...this.
6839 (struct language_defn): New.
6840 (auto_language_defn): Delete.
6841 (unknown_language_defn): Delete.
6842 (minimal_language_defn): Delete.
6843 (ada_language_defn): Delete.
6844 (asm_language_defn): Delete.
6845 (c_language_defn): Delete.
6846 (cplus_language_defn): Delete.
6847 (d_language_defn): Delete.
6848 (f_language_defn): Delete.
6849 (go_language_defn): Delete.
6850 (m2_language_defn): Delete.
6851 (objc_language_defn): Delete.
6852 (opencl_language_defn): Delete.
6853 (pascal_language_defn): Delete.
6854 (rust_language_defn): Delete.
6855 * gdb/m2-lang.c (m2_language_defn): Convert to...
6856 (m2_language_data): ...this.
6857 (class m2_language): New class.
6858 (m2_language_defn): New static global.
6859 * gdb/objc-lang.c (objc_language_defn): Convert to...
6860 (objc_language_data): ...this.
6861 (class objc_language): New class.
6862 (objc_language_defn): New static global.
6863 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6864 (opencl_language_data): ...this.
6865 (class opencl_language): New class.
6866 (opencl_language_defn): New static global.
6867 * gdb/p-lang.c (pascal_language_defn): Convert to...
6868 (pascal_language_data): ...this.
6869 (class pascal_language): New class.
6870 (pascal_language_defn): New static global.
6871 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6872 language pointer, update comment format.
6873 * gdb/rust-lang.c (rust_language_defn): Convert to...
6874 (rust_language_data): ...this.
6875 (class rust_language): New class.
6876 (rust_language_defn): New static global.
6877
6878 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6881 member variable.
6882 <m_stmt_at_address>: New member variable.
6883 (lnp_state_machine::record_line): Don't record some lines, update
6884 tracking of is_stmt at the same address.
6885 (lnp_state_machine::lnp_state_machine): Initialise new member
6886 variables.
6887
6888 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6889
6890 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6891 "-include gnu-nat-mig.h".
6892 * gnu-nat-mig.h: New file.
6893 * gnu-nat.c: Include "gnu-nat-mig.h".
6894 (exc_server, msg_reply_server, notify_server,
6895 process_reply_server): Remove declarations.
6896
6897 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6898
6899 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6900 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6901 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6902 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6903 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6904 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6905 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6906 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6907 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6908 to gnu_nat_target class.
6909 * gnu-nat.c: Likewise.
6910 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6911 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6912 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6913 object.
6914 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6915 instead of `gnu_target'.
6916
6917 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6918
6919 * i386-gnu-tdep.c: Include "gdbcore.h"
6920 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6921 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6922 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6923 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6924 i386_gnu_sigcontext_addr): New functions
6925 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6926 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6927 tdep.
6928
6929 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6930
6931 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6932 before fork_inferior call. Avoid calling it if target_is_pushed returns
6933 true.
6934
6935 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6936
6937 * gnu-nat.h (gnu_target): New variable declaration.
6938 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6939 gnu_target.
6940 * gnu-nat.c (gnu_target): New variable.
6941 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6942 add_thread_silent, and add_thread calls.
6943 (gnu_nat_target::create_inferior): Pass gnu_target to
6944 add_thread_silent, thread_change_ptid call.
6945 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6946 call.
6947
6948 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6949
6950 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6951 (gnu_nat_target::find_memory_regions): Remove unused
6952 `old_address' variable.
6953
6954 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6955
6956 * gnu-nat.c: Include "gdbarch.h".
6957
6958 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6959
6960 * reply_mig_hack.awk (Error return): Cast function through
6961 void *, to bypass compiler function call check.
6962
6963 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6964
6965 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6966 $(srcdir)/reply_mig_hack.awk.
6967
6968 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6969
6970 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6971
6972 2020-05-30 Jonny Grant <jg@jguk.org>
6973
6974 * configure.ac (ACX_BUGURL): change bug URL to https.
6975
6976 2020-05-30 Pedro Alves <palves@redhat.com>
6977
6978 * cp-support.c (replace_typedefs_template): New.
6979 (replace_typedefs_qualified_name): Handle
6980 DEMANGLE_COMPONENT_TEMPLATE.
6981
6982 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6985 dwarf2/index-cache.h, dwarf2/index-write.c,
6986 dwarf2/index-write.h, dwarf2/line-header.c,
6987 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6988 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6989 variables and fields from `dwarf2_per_objfile` to just
6990 `per_objfile` throughout.
6991
6992 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6993
6994 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6995 <push_dwarf_reg_entry_value>: Add comment.
6996
6997 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6998 Keith Seitz <keiths@redhat.com>
6999
7000 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7001 instead of PyEval_ReleaseLock.
7002 (class gdbpy_gil): Move to earlier in file.
7003 (finalize_python): Set gdb_python_initialized.
7004 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7005 when not initialized.
7006
7007 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7010 <push_dwarf_reg_entry_value>: Remove assert. Override
7011 per_objfile with caller_per_objfile.
7012
7013 2020-05-28 Tom de Vries <tdevries@suse.de>
7014
7015 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7016 PR gold/15646 workaround to symbol kind "type".
7017
7018 2020-05-27 Tom Tromey <tromey@adacore.com>
7019
7020 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7021
7022 2020-05-27 Tom Tromey <tromey@adacore.com>
7023
7024 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7025 Use htab_find_with_hash.
7026 <add_abbrev>: Remove "abbrev_number" parameter.
7027 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7028 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7029 (hash_abbrev): Add comment.
7030 (abbrev_table::lookup_abbrev): Move to header file.
7031 (abbrev_table::read): Update.
7032
7033 2020-05-27 Tom Tromey <tromey@adacore.com>
7034
7035 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7036 method.
7037 <canonical_name>: New member.
7038 <raw_name>: Rename from "name".
7039 (partial_die_info): Initialize canonical_name.
7040 (scan_partial_symbols): Check raw_name.
7041 (partial_die_parent_scope, partial_die_full_name)
7042 (add_partial_symbol, add_partial_subprogram)
7043 (add_partial_enumeration, load_partial_dies): Use "name" method.
7044 (partial_die_info::name): New method.
7045 (partial_die_info::read, guess_partial_die_structure_name)
7046 (partial_die_info::fixup): Update.
7047
7048 2020-05-27 Tom Tromey <tromey@adacore.com>
7049
7050 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7051 <get_ref_die_offset>: Inline.
7052 <get_ref_die_offset_complaint>: New method.
7053 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7054 (attribute::get_ref_die_offset_complaint): Rename from
7055 get_ref_die_offset. Just issue complaint.
7056
7057 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7058
7059 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7060
7061 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7062
7063 * exec.c (exec_file_attach): Use errno value of first openp failure.
7064
7065 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7066
7067 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7068 Don't close thread handle.
7069
7070 2020-05-27 Tom Tromey <tom@tromey.com>
7071 Simon Marchi <simon.marchi@efficios.com>
7072
7073 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7074 shared_ptr.
7075 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7076 member.
7077 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7078 dwarf2_per_bfd_objfile_data_key>: New globals.
7079 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7080 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7081 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7082 shared.
7083 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7084 short-circuit when sharing.
7085 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7086 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7087
7088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7089
7090 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7091 to...
7092 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7093 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7094
7095 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7096
7097 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7098 build_name_components, find_name_components_bounds>:
7099 Add per_objfile parameter.
7100 (struct mapped_index) <symbol_name_at>: Likewise.
7101 (struct mapped_debug_names): Remove constructor.
7102 <dwarf2_per_objfile>: Remove field.
7103 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7104 (mapped_index_base::find_name_components_bounds,
7105 mapped_index_base::build_name_components,
7106 dw2_expand_symtabs_matching_symbol): Likewise.
7107 (class mock_mapped_index) <symbol_name_at>: Likewise.
7108 (check_match): Likewise.
7109 (check_find_bounds_finds): Likewise.
7110 (test_mapped_index_find_name_component_bounds): Update.
7111 (CHECK_MATCH): Update.
7112 (dw2_expand_symtabs_matching): Update.
7113 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7114 per_objfile parameter.
7115 <find_vec_in_debug_names>: Likewise.
7116 <m_per_objfile>: New field.
7117 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7118 parameter.
7119 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7120 (dw2_debug_names_iterator::next): Update.
7121 (dw2_debug_names_lookup_symbol): Update.
7122 (dw2_debug_names_expand_symtabs_for_function): Update.
7123 (dw2_debug_names_map_matching_symbols): Update.
7124 (dw2_debug_names_expand_symtabs_matching): Update.
7125 (dwarf2_read_debug_names): Update.
7126
7127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7128
7129 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7130 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7131 move to dwarf2_per_objfile.
7132 <read_in_chain>: Remove.
7133 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7134 remove_all_cus, age_comp_units>: New methods.
7135 <m_dwarf2_cus>: New member.
7136 (struct dwarf2_per_cu_data) <cu>: Remove.
7137 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7138 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7139 moved to methods of dwarf2_per_objfile.
7140 (dwarf2_clear_marks): Remove.
7141 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7142 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7143 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7144 (dwarf2_per_objfile::remove_all_cus): New.
7145 (class free_cached_comp_units) <~free_cached_comp_units>:
7146 Update.
7147 (load_cu): Update.
7148 (dw2_do_instantiate_symtab): Adjust.
7149 (fill_in_sig_entry_from_dwo_entry): Adjust.
7150 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7151 (cutu_reader::cutu_reader): Likewise.
7152 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7153 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7154 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7155 and dwarf2_per_objfile::age_comp_units.
7156 (load_partial_comp_unit): Update.
7157 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7158 (process_queue): Likewise.
7159 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7160 backlink.
7161 (dwarf2_read_addr_index): Likewise.
7162 (follow_die_offset): Likewise.
7163 (dwarf2_fetch_die_loc_sect_off): Likewise.
7164 (dwarf2_fetch_constant_bytes): Likewise.
7165 (dwarf2_fetch_die_type_sect_off): Likewise.
7166 (follow_die_sig_1): Likewise.
7167 (load_full_type_unit): Likewise.
7168 (read_signatured_type): Likewise.
7169 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7170 (dwarf2_cu::~dwarf2_cu): Remove.
7171 (dwarf2_per_objfile::get_cu): New.
7172 (dwarf2_per_objfile::set_cu): New.
7173 (age_cached_comp_units): Rename to...
7174 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7175 to std::unordered_map.
7176 (free_one_cached_comp_unit): Rename to...
7177 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7178 to std::unordered_map.
7179 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7180 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7181 a dwarf2_per_objfile in data.
7182 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7183 (dwarf2_clear_marks): Remove.
7184
7185 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7188 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7189 (init_tu_and_read_dwo_dies): Likewise.
7190 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7191 (cutu_reader::cutu_reader): Likewise.
7192 (load_partial_comp_unit): Likewise.
7193 (process_psymtab_comp_unit): Update.
7194 (build_type_psymtabs_1): Update.
7195 (process_skeletonless_type_unit): Update.
7196 (load_full_comp_unit): Update.
7197 (find_partial_die): Update.
7198 (dwarf2_read_addr_index): Update.
7199 (read_signatured_type): Update.
7200
7201 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7202
7203 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7204 m_header_read_in>: New fields.
7205 <get_header>: New method.
7206 * dwarf2/read.c (per_cu_header_read_in): Remove.
7207 (dwarf2_per_cu_data::get_header): New.
7208 (dwarf2_per_cu_data::addr_size): Update.
7209 (dwarf2_per_cu_data::offset_size): Update.
7210 (dwarf2_per_cu_data::ref_addr_size): Update.
7211
7212 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7213
7214 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7215 (dw2_do_instantiate_symtab): Update.
7216 (queue_and_load_all_dwo_tus): Change parameter from
7217 dwarf2_per_cu_data to dwarf2_cu.
7218 (dwarf2_fetch_die_loc_sect_off): Update.
7219 (dwarf2_fetch_constant_bytes): Update.
7220 (dwarf2_fetch_die_type_sect_off): Update.
7221
7222 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7223
7224 * dwarf2/read.c (process_full_comp_unit,
7225 process_full_type_unit): Remove per_cu, per_objfile paramters.
7226 Add dwarf2_cu parameter.
7227 (process_queue): Update.
7228
7229 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7230
7231 * dwarf2/read.c (create_cu_from_index_list): Replace
7232 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7233 (create_cus_from_index_list): Likewise.
7234 (create_cus_from_index): Likewise.
7235 (create_signatured_type_table_from_index): Likewise.
7236 (create_cus_from_debug_names_list): Likewise.
7237 (create_cus_from_debug_names): Likewise.
7238 (dwarf2_read_gdb_index): Update.
7239 (dwarf2_read_debug_names): Update.
7240
7241 2020-05-27 Tom Tromey <tom@tromey.com>
7242 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * dwarf2/read.h (struct dwarf2_per_objfile)
7245 <get_type_for_signatured_type, set_type_for_signatured_type>:
7246 New methods.
7247 <m_type_map>: New member.
7248 (struct signatured_type) <type>: Remove.
7249 * dwarf2/read.c
7250 (dwarf2_per_objfile::get_type_for_signatured_type,
7251 dwarf2_per_objfile::set_type_for_signatured_type): New.
7252 (get_signatured_type): Use new methods.
7253
7254 2020-05-27 Tom Tromey <tom@tromey.com>
7255 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7258 (struct dwarf2_per_objfile) <type_units>: New member.
7259 <get_type_unit_group_unshareable>: New method.
7260 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7261 num_symtabs, symtabs>: Remove; move to
7262 type_unit_group_unshareable.
7263 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7264 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7265 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7266
7267 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * dwarf2/read.h (struct dwarf2_per_cu_data):
7270 <dwarf2_per_objfile>: Remove.
7271 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7272 dwarf2_per_objfile.
7273 (create_signatured_type_table_from_index): Likewise.
7274 (create_signatured_type_table_from_debug_names): Likewise.
7275 (create_debug_type_hash_table): Likewise.
7276 (fill_in_sig_entry_from_dwo_entry): Likewise.
7277 (create_type_unit_group): Likewise.
7278 (read_comp_units_from_section): Likewise.
7279 (create_cus_hash_table): Likewise.
7280
7281 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7284 dwarf2_per_cu_data::dwarf2_per_objfile.
7285 (compute_compunit_symtab_includes): Likewise.
7286 (dwarf2_cu::start_symtab): Likewise.
7287
7288 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7289
7290 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7291 parameter.
7292 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7293 (read_namespace_alias): Update.
7294 (lookup_die_type): Update.
7295 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7296 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7297 Update.
7298 (disassemble_dwarf_expression): Update.
7299
7300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7301
7302 * dwarf2/read.h (struct dwarf2_queue_item): Add
7303 dwarf2_per_objfile parameter, assign new parameter.
7304 <per_objfile>: New field.
7305 * dwarf2/read.c (free_one_cached_comp_unit): Add
7306 dwarf2_per_objfile parameter.
7307 (queue_comp_unit): Likewise.
7308 (dw2_do_instantiate_symtab): Update.
7309 (process_psymtab_comp_unit): Update.
7310 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7311 (process_imported_unit_die): Update.
7312 (queue_and_load_dwo_tu): Update.
7313 (follow_die_offset): Update.
7314 (follow_die_sig_1): Update.
7315
7316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7317
7318 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7319 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7320 (read_call_site_scope): Assign per_objfile.
7321 (dwarf2_per_cu_data::objfile): Remove.
7322 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7323 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7324 dwarf2_per_objfile parameter.
7325 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7326 dwarf2_per_objfile parameter.
7327 (dwarf_expr_reg_to_entry_parameter): Add output
7328 dwarf2_per_objfile parameter.
7329 (locexpr_get_frame_base): Update.
7330 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7331 <push_dwarf_reg_entry_value>: Update.
7332 <call_site_to_target_addr>: Update.
7333 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7334 parameter.
7335 (value_of_dwarf_reg_entry): Update.
7336 (rw_pieced_value): Update.
7337 (indirect_synthetic_pointer): Update.
7338 (dwarf2_evaluate_property): Update.
7339 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7340 parameter.
7341 (locexpr_read_variable): Update.
7342 (locexpr_get_symbol_read_needs): Update.
7343 (loclist_read_variable): Update.
7344
7345 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7346
7347 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7348 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7349 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7350 parameter.
7351 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7352 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7353 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7354 parameter.
7355 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7356 sect_variable_value): Add dwarf2_per_objfile parameter.
7357 (class dwarf_evaluate_loc_desc) <dwarf_call,
7358 dwarf_variable_value>: Update.
7359 (fetch_const_value_from_synthetic_pointer): Add
7360 dwarf2_per_objfile parameter.
7361 (fetch_const_value_from_synthetic_pointer): Update.
7362 (coerced_pieced_ref): Update.
7363 (class symbol_needs_eval_context) <dwarf_call,
7364 dwarf_variable_value>: Update.
7365 (dwarf2_compile_expr_to_ax): Update.
7366
7367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7368
7369 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7370 parameter.
7371 (dwarf2_evaluate_loc_desc_full): Update.
7372
7373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7374
7375 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7376 parameter.
7377 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7378 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7379 dwarf2_per_objfile parameter.
7380 (decode_debug_loc_dwo_addresses): Likewise.
7381 (dwarf2_find_location_expression): Update.
7382 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7383 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7384 parameter.
7385 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7386 parameter.
7387 (locexpr_describe_location_1): Likewise.
7388 (locexpr_describe_location): Update.
7389
7390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7393 Remove.
7394 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7395 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7396 (dwarf2_compile_property_to_c): Update.
7397 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7398 use text offset from objfile.
7399 (locexpr_tracepoint_var_ref): Update.
7400 (locexpr_generate_c_location): Update.
7401 (loclist_describe_location): Update.
7402 (loclist_tracepoint_var_ref): Update.
7403 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7404 dwarf2_per_objfile parameter.
7405 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7406 use text offset from objfile.
7407 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7408
7409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7410
7411 * dwarf2/expr.h (struct dwarf_expr_context)
7412 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7413 <offset>: Remove.
7414 <per_objfile>: New member.
7415 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7416 dwarf2_per_objfile parameter. Don't set offset, set
7417 per_objfile.
7418 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7419 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7420 a dwarf2_per_objfile object instead of an offset.
7421 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7422 constructor.
7423 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7424 to dwarf2_expr_executor constructor. Don't set offset.
7425 (dwarf2_fetch_cfa_info): Update.
7426 (struct dwarf2_frame_cache) <text_offset>: Remove.
7427 <per_objfile>: New field.
7428 (dwarf2_frame_cache): Update.
7429 (dwarf2_frame_prev_register): Update.
7430 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7431 <dwarf_evaluate_loc_desc>: Add constructor.
7432 (dwarf2_evaluate_loc_desc_full): Update.
7433 (dwarf2_locexpr_baton_eval): Update.
7434 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7435 Add constructor.
7436 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7437
7438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7439
7440 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7441 addr_sized_int_type>: Move to dwarf2_cu.
7442 <int_type>: Move to dwarf2_per_objfile.
7443 (struct dwarf2_per_objfile) <int_type>: Move here.
7444 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7445 addr_sized_int_type>: Move here.
7446 (read_func_scope): Update.
7447 (read_array_type): Update.
7448 (read_tag_string_type): Update.
7449 (attr_to_dynamic_prop): Update.
7450 (dwarf2_per_cu_data::int_type): Rename to...
7451 (dwarf2_per_objfile::int_type): ... this.
7452 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7453 (dwarf2_cu::addr_sized_int_type): ... this.
7454 (read_subrange_type): Update.
7455 (dwarf2_per_cu_data::addr_type): Rename to...
7456 (dwarf2_cu::addr_type): ... this.
7457 (set_die_type): Update.
7458
7459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7462 data through per_cu->cu.
7463
7464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7467 dwarf2_per_cu_data parameter fo dwarf2_cu.
7468 (lookup_dwo_type_unit): Likewise.
7469 (read_cutu_die_from_dwo): Likewise.
7470 (lookup_dwo_unit): Likewise.
7471 (open_and_init_dwo_file): Likewise.
7472 (lookup_dwo_cutu): Likewise.
7473 (lookup_dwo_comp_unit): Likewise.
7474 (lookup_dwo_type_unit): Likewise.
7475 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7476 (cutu_reader::cutu_reader): Update.
7477
7478 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7481 parameter.
7482 (process_full_type_unit): Likewise.
7483 (process_queue): Update.
7484
7485 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7486
7487 * dwarf2/read.c (recursively_compute_inclusions): Add
7488 dwarf2_per_objfile parameter.
7489 (compute_compunit_symtab_includes): Likewise.
7490 (process_cu_includes): Update.
7491
7492 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7495 parameter.
7496 (create_type_unit_group): Update.
7497 (process_psymtab_comp_unit_reader): Update.
7498 (build_type_psymtabs_reader): Update.
7499
7500 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7503 object through m_this_cu->cu.
7504
7505 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7506
7507 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7508 the info parameter.
7509 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7510
7511 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7512
7513 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7514 per_objfile parameter.
7515 (load_full_type_unit): Add per_objfile parameter.
7516 (read_signatured_type): Likewise.
7517 (load_full_comp_unit): Likewise.
7518 (load_cu): Likewise.
7519 (dw2_do_instantiate_symtab): Likewise.
7520 (dw2_get_file_names): Likewise.
7521 (dw2_map_symtabs_matching_filename): Update.
7522 (dw_expand_symtabs_matching_file_matcher): Update.
7523 (dw2_map_symbol_filenames): Update.
7524 (process_psymtab_comp_unit): Add per_objfile parameter.
7525 (build_type_psymtabs_1): Update.
7526 (process_skeletonless_type_unit): Update.
7527 (dwarf2_build_psymtabs_hard): Update.
7528 (load_partial_comp_unit): Add per_objfile parameter.
7529 (scan_partial_symbols): Update.
7530 (load_full_comp_unit): Add per_objfile parameter.
7531 (process_imported_unit_die): Update.
7532 (create_cus_hash_table): Update.
7533 (find_partial_die): Update.
7534 (dwarf2_read_addr_index): Update.
7535 (follow_die_offset): Update.
7536 (dwarf2_fetch_die_loc_sect_off): Update.
7537 (dwarf2_fetch_constant_bytes): Update.
7538 (dwarf2_fetch_die_type_sect_off): Update.
7539 (follow_die_sig_1): Update.
7540 (load_full_type_unit): Add per_objfile parameter.
7541 (read_signatured_type): Likewise.
7542
7543 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7546 of objfile_name.
7547
7548 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7551 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7552 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7553 field.
7554 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7555 (create_cus_from_index): Update.
7556 (dwarf2_read_gdb_index): Update.
7557 (create_cus_from_debug_names): Update.
7558 (dwarf2_read_debug_names): Update.
7559 (get_abbrev_section_for_cu): Update.
7560 (create_all_comp_units): Update.
7561 (read_attribute_value): Update.
7562 (get_debug_line_section): Update.
7563 * dwarf2/index-cache.c (index_cache::store): Update.
7564 * dwarf2/index-write.c (save_gdb_index_command): Update.
7565 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7566
7567 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7568
7569 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7570 member.
7571 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7572 dwarf2_per_cu_data::per_bfd.
7573 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7574 (create_type_unit_group): Likewise.
7575 (queue_comp_unit): Remove reference to
7576 per_cu->dwarf2_per_objfile.
7577 (maybe_queue_comp_unit): Likewise.
7578 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7579 (create_cus_hash_table): Assign new field.
7580
7581 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * dwarf2/read.c: Replace
7584 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7585 dwarf2_cu->per_objfile throughout.
7586
7587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7588
7589 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7590 parameter, don't use per_cu->dwarf2_per_objfile.
7591 (dw2_instantiate_symtab): Likewise.
7592 (dw2_find_last_source_symtab): Update.
7593 (dw2_map_expand_apply): Update.
7594 (dw2_lookup_symbol): Update.
7595 (dw2_expand_symtabs_for_function): Update.
7596 (dw2_expand_all_symtabs): Update.
7597 (dw2_expand_symtabs_with_fullname): Update.
7598 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7599 don't use per_cu->dwarf2_per_objfile.
7600 (dw2_expand_marked_cus): Update.
7601 (dw2_find_pc_sect_compunit_symtab): Update.
7602 (dw2_debug_names_lookup_symbol): Update.
7603 (dw2_debug_names_expand_symtabs_for_function): Update.
7604 (dw2_debug_names_map_matching_symbols): Update.
7605 (dwarf2_psymtab::expand_psymtab): Update.
7606
7607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7608
7609 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7610 <per_objfile>: New member.
7611 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7612 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7613 call to dwarf2_cu.
7614 (cutu_reader::cutu_reader): Update.
7615 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7616
7617 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7618
7619 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7620 struct dwarf2_per_objfile.
7621 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7622 dwarf2_per_bfd.
7623 * dwarf2/read.c (set_die_type): Update.
7624 (get_die_type_at_offset): Update.
7625
7626 2020-05-27 Tom Tromey <tom@tromey.com>
7627 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7630 method.
7631 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7632 get_symtab, set_symtab>: New methods.
7633 <m_symtabs>: New field.
7634 (struct dwarf2_psymtab): Derive from partial_symtab.
7635 <readin_p, get_compunit_symtab>: Declare methods.
7636 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7637 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7638 New methods.
7639 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7640 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7641 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7642 (dw2_symtab_iter_next, dw2_print_stats)
7643 (dw2_expand_symtabs_with_fullname)
7644 (dw2_expand_symtabs_matching_one)
7645 (dw_expand_symtabs_matching_file_matcher)
7646 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7647 (dw2_debug_names_iterator::next)
7648 (dw2_debug_names_map_matching_symbols)
7649 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7650 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7651 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7652 New methods.
7653 (get_compunit_symtab, process_full_comp_unit)
7654 (process_full_type_unit): Update.
7655 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7656
7657 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7658
7659 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7660 then introduce a new dwarf2_per_objfile type.
7661 <read_line_string>: Move to the new dwarf2_per_objfile type.
7662 <objfile>: Likewise.
7663 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7664 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7665 dwarf2_per_objfile->per_bfd.
7666 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7667 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7668 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7669 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7670 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7671 (dwarf2_per_objfile::locate_sections): Rename to...
7672 (dwarf2_per_bfd::locate_sections): ... this.
7673 (dwarf2_per_objfile::get_cutu): Rename to...
7674 (dwarf2_per_bfd::get_cutu): ... this.
7675 (dwarf2_per_objfile::get_cu): Rename to...
7676 (dwarf2_per_bfd::get_cu): ... this.
7677 (dwarf2_per_objfile::get_tu): Rename to...
7678 (dwarf2_per_bfd::get_tu): ... this.
7679 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7680 (dwarf2_per_bfd::allocate_per_cu): ... this.
7681 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7682 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7683 (get_gdb_index_contents_ftype): Change parameter from
7684 dwarf2_per_objfile to dwarf2_per_bfd.
7685 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7686 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7687
7688 2020-05-27 Tom Tromey <tom@tromey.com>
7689 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7692 (allocate_piece_closure): Set "per_objfile" member.
7693 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7694 (locexpr_describe_location, loclist_describe_location): Use new
7695 member.
7696 * dwarf2/read.c (read_call_site_scope)
7697 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7698 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7699 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7700 handle_data_member_location): Set per_objfile member.
7701 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7702 member.
7703 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7704
7705 2020-05-27 Tom Tromey <tom@tromey.com>
7706
7707 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7708 allocate_signatured_type>: Declare new methods.
7709 <m_num_psymtabs>: New member.
7710 (struct dwarf2_per_cu_data) <index>: New member.
7711 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7712 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7713 (create_cu_from_index_list): Use allocate_per_cu.
7714 (create_signatured_type_table_from_index)
7715 (create_signatured_type_table_from_debug_names)
7716 (create_debug_type_hash_table, add_type_unit)
7717 (read_comp_units_from_section): Use allocate_signatured_type.
7718
7719 2020-05-27 Tom Tromey <tom@tromey.com>
7720
7721 * psymtab.c (partial_map_expand_apply)
7722 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7723 (psym_lookup_global_symbol_language)
7724 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7725 (psym_print_stats, psym_expand_symtabs_for_function)
7726 (psym_map_symbol_filenames, psym_map_matching_symbols)
7727 (psym_expand_symtabs_matching)
7728 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7729 (maintenance_check_psymtabs): Update.
7730 * psympriv.h (struct partial_symtab) <readin_p,
7731 get_compunit_symtab>: Add objfile parameter.
7732 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7733 Likewise.
7734 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7735 get_compunit_symtab>: Likewise.
7736 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7737
7738 2020-05-27 Tom Tromey <tom@tromey.com>
7739
7740 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7741 member.
7742 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7743 (create_cu_from_index_list)
7744 (create_signatured_type_table_from_index)
7745 (create_signatured_type_table_from_debug_names)
7746 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7747 (dwarf2_create_include_psymtab)
7748 (create_debug_type_hash_table, add_type_unit)
7749 (create_type_unit_group, read_comp_units_from_section)
7750 (dwarf2_compute_name, create_cus_hash_table)
7751 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7752 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7753 obstack.
7754 (dw2_get_real_path): Likewise. Change argument to
7755 dwarf2_per_objfile.
7756
7757 2020-05-27 Luis Machado <luis.machado@linaro.org>
7758
7759 PR tdep/26000
7760 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7761 for ldrd (immediate).
7762
7763 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7764
7765 * command.h: Add comment giving the name of class_tui.
7766 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7767 create the fake command for the help for class_tui.
7768
7769 2020-05-26 Tom Tromey <tromey@adacore.com>
7770
7771 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7772 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7773 (val_atr): New function.
7774 (value_val_atr): Use it.
7775 * ada-valprint.c (print_optional_low_bound): Change low bound
7776 handling for enums.
7777 (val_print_packed_array_elements): Don't call discrete_position.
7778 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7779 discrete_position for enum types.
7780 * language.c (default_print_array_index): Change type.
7781 * language.h (struct language_defn) <la_print_array_index>: Add
7782 index_type parameter, change type of index_value.
7783 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7784 (default_print_array_index): Update.
7785 * valprint.c (maybe_print_array_index): Don't call
7786 value_from_longest. Update.
7787 (value_print_array_elements): Don't call discrete_position.
7788
7789 2020-05-26 Tom Tromey <tromey@adacore.com>
7790
7791 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7792 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7793
7794 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7795
7796 PR gdb/13519
7797 * avr-tdep.c (avr_integer_to_address): Return data or code
7798 address accordingly to the second 'type' argument of the
7799 function.
7800
7801 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7802
7803 * infcmd.c, inferior.h: (construct_inferior_arguments):
7804 Moved function from here to gdbsupport/common-inferior.{h,cc}
7805
7806 2020-05-23 Tom Tromey <tom@tromey.com>
7807
7808 Revert commit eca1f90c:
7809 * NEWS: Remove entry for completion styling.
7810 * completer.c (_rl_completion_prefix_display_length): Move
7811 declaration later.
7812 (gdb_fnprint): Revert.
7813 (gdb_display_match_list_1): Likewise.
7814 * cli/cli-style.c (completion_prefix_style)
7815 (completion_difference_style, completion_suffix_style): Remove.
7816 (_initialize_cli_style): Revert.
7817 * cli/cli-style.h (completion_prefix_style)
7818 (completion_difference_style, completion_suffix_style): Don't
7819 declare.
7820
7821 2020-05-24 Pedro Alves <palves@redhat.com>
7822
7823 * symtab.c (completion_list_add_name): Return boolean indication
7824 of whether the symbol matched.
7825 (completion_list_add_symbol): Don't try to remove C++ aliases if
7826 the symbol didn't match in the first place.
7827 * symtab.h (completion_list_add_name): Return bool.
7828
7829 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7832 type::field.
7833
7834 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7835
7836 GDB 9.2 released.
7837
7838 2020-05-23 Tom Tromey <tom@tromey.com>
7839
7840 * NEWS: Add entry for completion styling.
7841 * completer.c (_rl_completion_prefix_display_length): Move
7842 declaration earlier.
7843 (gdb_fnprint): Use completion_style.
7844 (gdb_display_match_list_1): Likewise.
7845 * cli/cli-style.c (completion_prefix_style)
7846 (completion_difference_style, completion_suffix_style): New
7847 globals.
7848 (_initialize_cli_style): Register new globals.
7849 * cli/cli-style.h (completion_prefix_style)
7850 (completion_difference_style, completion_suffix_style): Declare.
7851
7852 2020-05-23 Pedro Alves <palves@redhat.com>
7853
7854 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7855 (parse_escape): Use ISDIGIT instead of isdigit.
7856 (puts_debug): Use gdb_isprint instead of isprint.
7857 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7858 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7859 ISSPACE instead of isspace.
7860 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7861 instead of isspace.
7862 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7863 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7864 instead of isxdigit and ISDIGIT instead of isdigit.
7865
7866 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7867
7868 * gdbtypes.h (struct type) <field>: New method.
7869 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7870 or type::field.
7871
7872 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7875 (TYPE_FIELDS): Use type::fields. Change all call sites that
7876 modify the propery to use type::set_fields instead.
7877
7878 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7881 type::num_fields instead.
7882
7883 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7884
7885 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7886 methods.
7887 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7888 that modify the number of fields to use type::set_num_fields
7889 instead.
7890
7891 2020-05-22 Tom Tromey <tromey@adacore.com>
7892
7893 * compile/compile-object-load.h (munmap_list_free): Don't
7894 declare.
7895
7896 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * annotate.c (annotate_source_line): Update return type, add call
7899 to update current symtab and line.
7900 * annotate.h (annotate_source_line): Update return type, and
7901 extend header comment.
7902 * source.c (info_line_command): Check annotation_level before
7903 calling annotate_source_line.
7904 * stack.c (print_frame_info): If calling annotate_source_line
7905 returns true, then don't print any other source line information.
7906
7907 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7908
7909 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7910
7911 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * coffread.c (patch_type): Remove NULL check before xfree.
7914 * corefile.c (set_gnutarget): Likewise.
7915 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7916 * exec.c (build_section_table): Likewise.
7917 * remote.c (remote_target::pass_signals): Likewise.
7918 * utils.c (n_spaces): Likewise.
7919 * cli/cli-script.c (document_command): Likewise.
7920 * i386-windows-tdep.c (core_process_module_section): Likewise.
7921 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7922
7923 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * symfile.c (reread_symbols): Clear objfile's section_offsets
7926 vector and section indices, re-compute them by calling
7927 sym_offsets.
7928
7929 2020-05-20 Tom Tromey <tromey@adacore.com>
7930
7931 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7932 (desc_one_bound, desc_index_type): Compute field name.
7933
7934 2020-05-20 Tom de Vries <tdevries@suse.de>
7935
7936 PR symtab/25833
7937 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7938
7939 2020-05-20 Alan Modra <amodra@gmail.com>
7940
7941 PR 25993
7942 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7943 bfd_set_filename.
7944 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7945 passed to bfd_set_filename.
7946 * symfile-mem.c (add_vsyscall_page): Likewise for string
7947 passed to symbol_file_add_from_memory.
7948 (symbol_file_add_from_memory): Make name param a const char* and
7949 don't strdup.
7950
7951 2020-05-20 Alan Modra <amodra@gmail.com>
7952
7953 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7954 rather than accessing bfd->filename directly.
7955 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7956 and use bfd_section_name.
7957 * dwarf2/frame.c (decode_frame_entry): Likewise.
7958 * exec.c (exec_set_section_address): Likewise.
7959 * solib-aix.c (solib_aix_bfd_open): Likewise.
7960 * stap-probe.c (get_stap_base_address): Likewise.
7961 * symfile.c (reread_symbols): Likewise.
7962
7963 2020-05-19 Tom Tromey <tromey@adacore.com>
7964
7965 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7966
7967 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7970
7971 2020-05-19 Pedro Alves <palves@redhat.com>
7972
7973 * NEWS (set exec-file-mismatch): Adjust entry.
7974 * exec.c: Include "build-id.h".
7975 (validate_exec_file): Try to match build IDs instead of filenames.
7976 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7977 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7978 and pass down 'warn_if_slow'.
7979 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7980 gdb_bfd_open_closure to pass it down.
7981 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7982
7983 2020-05-19 Pedro Alves <palves@redhat.com>
7984
7985 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7986 * target.c (target_fileio_open_1): Rename to target_fileio_open
7987 and make extern. Use bool.
7988 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7989 (target_fileio_read_alloc_1): Adjust.
7990 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7991 (target_fileio_open_warn_if_slow): Delete declaration.
7992
7993 2020-05-19 Pedro Alves <palves@redhat.com>
7994
7995 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7996 Adjust all callers.
7997
7998 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7999
8000 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8001 whether disp is negative.
8002
8003 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8004
8005 * symfile.h (struct symfile_segment_data)
8006 <~symfile_segment_data>: Remove.
8007 <segment_info>: Change to std::vector.
8008 * symfile.c (default_symfile_segments): Update.
8009 * elfread.c (elf_symfile_segments): Update.
8010
8011 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8012
8013 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8014 <segments>: New.
8015 <segment_bases, segment_sizes>: Remove.
8016 * symfile.c (default_symfile_segments): Update.
8017 * elfread.c (elf_symfile_segments): Update.
8018 * remote.c (remote_target::get_offsets): Update.
8019 * solib-target.c (solib_target_relocate_section_addresses):
8020 Update.
8021
8022 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * symfile.h (struct symfile_segment_data): Initialize fields.
8025 <~symfile_segment_data>: Add.
8026 (symfile_segment_data_up): New.
8027 (struct sym_fns) <sym_segments>: Return a
8028 symfile_segment_data_up.
8029 (default_symfile_segments): Return a symfile_segment_data_up.
8030 (free_symfile_segment_data): Remove.
8031 (get_symfile_segment_data): Return a symfile_segment_data_up.
8032 * symfile.c (default_symfile_segments): Likewise.
8033 (get_symfile_segment_data): Likewise.
8034 (free_symfile_segment_data): Remove.
8035 (symfile_find_segment_sections): Update.
8036 * elfread.c (elf_symfile_segments): Return a
8037 symfile_segment_data_up.
8038 * remote.c (remote_target::get_offsets): Update.
8039 * solib-target.c (solib_target_relocate_section_addresses):
8040 Update.
8041 * symfile-debug.c (debug_sym_segments): Return a
8042 symfile_segment_data_up.
8043
8044 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8045
8046 PR build/25981
8047 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8048 Hardcode register numbers.
8049
8050 PR build/25981
8051 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8052 procfs_find_LDT_entry): Remove.
8053 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8054 procfs_find_LDT_entry): Remove.
8055 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8056 Remove.
8057
8058 2020-05-17 Pedro Alves <palves@redhat.com>
8059 Andrew Burgess <andrew.burgess@embecosm.com>
8060 Keno Fischer <keno@juliacomputing.com>
8061
8062 PR gdb/25741
8063 * breakpoint.c (build_target_condition_list): Update comments.
8064 (build_target_command_list): Update comments and skip matching
8065 locations.
8066 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8067 a separate function. Simplify "set breakpoint auto-hw off"
8068 handling.
8069 (insert_breakpoints): Update comment.
8070 (tracepoint_locations_match): New parameter. For breakpoints,
8071 compare location types too, if the caller wants to.
8072 (handle_automatic_hardware_breakpoints): New functions.
8073 (bp_location_is_less_than): Also sort by location type and
8074 hardware breakpoint length.
8075 (update_global_location_list): Handle "set breakpoint auto-hw on"
8076 here.
8077 (update_breakpoint_locations): Ask breakpoint_locations_match to
8078 ignore location types.
8079
8080 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8083 type::name instead.
8084
8085 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * gdbtypes.h (struct type) <name, set_name>: New methods.
8088 (TYPE_CODE): Use type::name. Change all call sites used to set
8089 the name to use type::set_name instead.
8090
8091 2020-05-16 Tom Tromey <tom@tromey.com>
8092
8093 * top.c (quit_force): Update.
8094 * infrun.c (handle_no_resumed): Update.
8095 * top.h (all_uis): New function.
8096 (ALL_UIS): Remove.
8097
8098 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8101
8102 2020-05-16 Pedro Alves <palves@redhat.com>
8103
8104 * ia64-linux-nat.c
8105 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8106 Declare method.
8107 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8108
8109 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8112 (sparc64_adi_info): Likewise.
8113
8114 2020-05-15 Tom Tromey <tom@tromey.com>
8115
8116 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8117 block_objfile.
8118 (lookup_objfile_from_block): Remove.
8119 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8120 (lookup_global_symbol): Use block_objfile.
8121 * symtab.h (lookup_objfile_from_block): Don't declare.
8122 * printcmd.c (clear_dangling_display_expressions): Use
8123 block_objfile.
8124 * parse.c (operator_check_standard): Use block_objfile.
8125
8126 2020-05-15 Tom Tromey <tom@tromey.com>
8127
8128 * language.c (language_alloc_type_symbol): Set
8129 SYMBOL_SECTION.
8130 * symtab.c (initialize_objfile_symbol): Remove.
8131 (allocate_symbol): Remove.
8132 (allocate_template_symbol): Remove.
8133 * dwarf2/read.c (fixup_go_packaging): Use "new".
8134 (new_symbol): Use "new".
8135 (read_variable): Don't call initialize_objfile_symbol. Use
8136 "new".
8137 (read_func_scope): Use "new".
8138 * xcoffread.c (process_xcoff_symbol): Don't call
8139 initialize_objfile_symbol.
8140 (SYMBOL_DUP): Remove.
8141 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8142 "new".
8143 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8144 (allocate_template_symbol): Don't declare.
8145 (struct symbol): Add copy constructor. Change defaults.
8146 * jit.c (finalize_symtab): Use "new".
8147 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8148 Use "new".
8149 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8150 (common_block_end): Use "new".
8151 * mdebugread.c (parse_symbol): Use "new".
8152 (new_symbol): Likewise.
8153
8154 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8155
8156 * NEWS: Mention changes to help and apropos.
8157
8158 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * command.h (enum command_class): Improve comments, document
8161 that class_alias is for user-defined aliases, give the class
8162 name for each class, remove unused class_xdb.
8163 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8164 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8165 by a precise class.
8166 * infcmd.c (_initialize_infcmd): Likewise.
8167 * reverse.c (_initialize_reverse): Likewise.
8168 * stack.c (_initialize_stack): Likewise.
8169 * symfile.c (_initialize_symfile): Likewise.
8170 * tracepoint.c (_initialize_tracepoint): Likewise.
8171
8172 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8173
8174 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8175 when their aliased command is traversed.
8176 (help_cmd): Add fput_command_names_styled call to
8177 output command name and aliases when command has an alias.
8178
8179 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8180
8181 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8182 * cli/cli-decode.c (help_cmd_list): Declare as static,
8183 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8184 a command together with the command.
8185 (fput_command_name_styled, fput_command_names_styled): New functions.
8186 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8187 fput_command_name_styled.
8188 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8189 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8190
8191 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8192
8193 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8194 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8195 * command.h (cmd_show_list): Likewise.
8196 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8197 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8198
8199 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8200
8201 * unittests/command-def-selftests.c (traverse_command_structure):
8202 Verify all commands of a list have the same prefix command and
8203 that only the top cmdlist commands have a null prefix.
8204
8205 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8206
8207 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8208 as prefix, not one of its aliases.
8209 (set_cmd_prefix): Remove.
8210 (do_add_cmd): Centralize the setting of the prefix of a command, when
8211 command is defined after its full chain of prefix commands.
8212 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8213 (add_setshow_cmd_full): Likewise.
8214 (update_prefix_field_of_prefixed_commands): New function.
8215 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8216 update_prefix_field_of_prefixed_commands.
8217 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8218 addresses of remote_set_cmdlist and remote_show_cmdlist given
8219 as argument, not the address of an argument.
8220 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8221 * gdb/remote.c (_initialize_remote): Likewise.
8222
8223 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8224
8225 * cli/cli-cmds.c (alias_command): Check for an existing alias
8226 using lookup_cmd_composition, as valid_command_p is too strict
8227 and forbids aliases that are the prefix of an existing alias
8228 or command.
8229 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8230 command is properly recognised as a valid command.
8231
8232 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8233
8234 * unittests/help-doc-selftests.c: Rename to
8235 unittests/command-def-selftests.c
8236 * unittests/command-def-selftests.c (help_doc_tests): Update some
8237 comments.
8238 (command_structure_tests, traverse_command_structure): New namespace
8239 and function.
8240 (command_structure_invariants_tests): New function.
8241 (_initialize_command_def_selftests) Renamed from
8242 _initialize_help_doc_selftests, register command_structure_invariants
8243 selftest.
8244
8245 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8246
8247 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8248 an alias of 'show'.
8249
8250 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8251
8252 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8253 ada_is_fixed_point_type. Update all callers.
8254 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8255 all callers.
8256 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8257 Update all callers.
8258 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8259 print_fixed_point_type. Update all callers.
8260 * ada-valprint.c (ada_value_print_num): Replace call to
8261 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8262
8263 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8264
8265 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8266 processors.
8267 (cpu_supports_bts): Add CV_AMD case.
8268
8269 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8270 Simon Marchi <simon.marchi@efficios.com>
8271
8272 * infrun.c (stop_all_threads): Collect multiple wait events at
8273 each pass.
8274
8275 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8278 type::code instead.
8279
8280 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8281
8282 * gdbtypes.h (struct type) <code, set_code>: New methods.
8283 (TYPE_CODE): Use type::code. Change all call sites used to set
8284 the code to use type::set_code instead.
8285
8286 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8287 Tom de Vries <tdevries@suse.de>
8288 Pedro Alves <palves@redhat.com>
8289
8290 PR threads/25478
8291 * infrun.c (stop_all_threads): Do NOT ignore
8292 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8293 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8294 received.
8295 (handle_no_resumed): Remove code handling a live inferior with no
8296 threads.
8297 * remote.c (has_single_non_exited_thread): New.
8298 (remote_target::update_thread_list): Do not delete a thread if is
8299 the last thread of the process.
8300 * thread.c (thread_select): Call delete_exited_threads instead of
8301 prune_threads.
8302
8303 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8304
8305 * infrun.c (stop_all_threads): Enable/disable thread events of all
8306 targets. Move a debug message denoting the end of the function
8307 into the SCOPED_EXIT block.
8308
8309 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8310
8311 * process-stratum-target.h: Include <set>.
8312 (all_non_exited_process_targets, switch_to_target_no_thread): New
8313 function declarations.
8314 * process-stratum-target.c (all_non_exited_process_targets)
8315 (switch_to_target_no_thread): New function implementations.
8316
8317 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8318
8319 * infrun.c (handle_inferior_event): Extract out a piece of code
8320 into...
8321 (mark_non_executing_threads): ...this new function.
8322
8323 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8324
8325 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8326 use.
8327
8328 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8329
8330 * regcache.c (regcache_read_pc_protected): New function
8331 implementation that returns 0 if the PC cannot read via
8332 'regcache_read_pc'.
8333 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8334 instead of 'regcache_read_pc'.
8335 (keep_going_pass_signal): Ditto.
8336
8337 2020-05-13 Tom Tromey <tromey@adacore.com>
8338
8339 * ada-lang.c (align_value): Remove.
8340 (ada_template_to_fixed_record_type_1): Use align_up.
8341
8342 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8343
8344 * async-event.c: Update the copyright year.
8345 * async-event.h: Update the copyright year.
8346
8347 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * objfiles.h (is_addr_in_objfile,
8350 shared_objfile_contains_address_p): Return bool.
8351 * objfile.c (is_addr_in_objfile,
8352 shared_objfile_contains_address_p): Return bool.
8353
8354 2020-05-11 Tom Tromey <tromey@adacore.com>
8355
8356 * cli/cli-cmds.c (info_command): Restore.
8357 (_initialize_cli_cmds): Use add_prefix_command for "info".
8358 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8359
8360 2020-05-11 Tom Tromey <tromey@adacore.com>
8361
8362 * ada-lang.c (ada_value_primitive_field): Now public.
8363 * ada-lang.h (ada_value_primitive_field): Declare.
8364 * ada-valprint.c (print_field_values): Use
8365 ada_value_primitive_field for wrapper fields.
8366
8367 2020-05-11 Tom de Vries <tdevries@suse.de>
8368
8369 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8370 MODULE_DOMAIN.
8371
8372 2020-05-11 Tom de Vries <tdevries@suse.de>
8373
8374 PR symtab/25941
8375 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8376 with length 0, if not gdb-produced.
8377 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8378
8379 2020-05-09 Tom de Vries <tdevries@suse.de>
8380
8381 PR gdb/25955
8382 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8383 calculation.
8384
8385 2020-05-09 Tom Tromey <tom@tromey.com>
8386
8387 * top.c (server_command): Now bool.
8388 * top.h (server_command): Now bool.
8389
8390 2020-05-08 Tom Tromey <tromey@adacore.com>
8391
8392 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8393 already being processed.
8394
8395 2020-05-08 Tom Tromey <tom@tromey.com>
8396
8397 * printcmd.c (struct display) <next>: Remove.
8398 <display>: New constructor.
8399 <exp_string>: Now a std::string.
8400 <enabled_p>: Now a bool.
8401 (display_number): Move definition earlier.
8402 (displays): Rename from display_chain. Now a std::vector.
8403 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8404 (display_command): Update.
8405 (do_one_display, disable_display)
8406 (enable_disable_display_command, do_enable_disable_display):
8407 Update.
8408 (free_display): Remove.
8409 (clear_displays): Rewrite.
8410 (delete_display): Update.
8411 (map_display_numbers): Use function_view. Remove "data"
8412 parameter. Update.
8413 (do_delete_display): Remove.
8414 (undisplay_command): Update.
8415 (do_one_display, do_displays, disable_display)
8416 (info_display_command): Update.
8417 (do_enable_disable_display): Remove.
8418 (enable_disable_display_command)
8419 (clear_dangling_display_expressions): Update.
8420
8421 2020-05-08 Tom Tromey <tom@tromey.com>
8422
8423 * symtab.c (set_symbol_cache_size)
8424 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8425 (maintenance_print_symbol_cache_statistics): Update.
8426 * symmisc.c (print_symbol_bcache_statistics)
8427 (print_objfile_statistics, maintenance_print_objfiles)
8428 (maintenance_info_symtabs, maintenance_check_symtabs)
8429 (maintenance_expand_symtabs, maintenance_info_line_tables):
8430 Update.
8431 * symfile-debug.c (set_debug_symfile): Update.
8432 * source.c (forget_cached_source_info): Update.
8433 * python/python.c (gdbpy_progspaces): Update.
8434 * psymtab.c (maintenance_info_psymtabs): Update.
8435 * probe.c (parse_probes): Update.
8436 * linespec.c (iterate_over_all_matching_symtabs)
8437 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8438 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8439 * exec.c (exec_target::close): Update.
8440 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8441 * breakpoint.c (print_one_breakpoint_location)
8442 (create_longjmp_master_breakpoint)
8443 (create_std_terminate_master_breakpoint): Update.
8444 * progspace.c (program_spaces): Now a std::vector.
8445 (maybe_new_address_space): Update.
8446 (add_program_space): Remove.
8447 (program_space::program_space): Update.
8448 (remove_program_space): Update.
8449 (number_of_program_spaces): Remove.
8450 (print_program_space, update_address_spaces): Update.
8451 * progspace.h (program_spaces): Change type.
8452 (ALL_PSPACES): Remove.
8453 (number_of_program_spaces): Don't declare.
8454 (struct program_space) <next>: Remove.
8455
8456 2020-05-08 Tom Tromey <tom@tromey.com>
8457
8458 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8459 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8460 (enable_break): Update.
8461 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8462 (frv_fdpic_find_canonical_descriptor): Update.
8463 (frv_fetch_objfile_link_map): Update.
8464 * progspace.c (program_space::free_all_objfiles): Update.
8465 (program_space::solibs): New method.
8466 * progspace.h (struct program_space) <solibs>: New method.
8467 * solist.h (master_so_list): Don't declare.
8468 (ALL_SO_LIBS): Remove.
8469 * solib.h (so_list_head): Remove.
8470 (update_solib_list): Update comment.
8471 * solib.c (master_so_list): Remove.
8472 (solib_used, update_solib_list, solib_add)
8473 (info_sharedlibrary_command, clear_solib)
8474 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8475
8476 2020-05-08 Tom Tromey <tom@tromey.com>
8477
8478 * extension.c (extension_languages): Now a std::array.
8479 (ALL_EXTENSION_LANGUAGES): Remove.
8480 (get_ext_lang_defn, get_ext_lang_of_file)
8481 (eval_ext_lang_from_control_command): Update.
8482 (finish_ext_lang_initialization)
8483 (auto_load_ext_lang_scripts_for_objfile)
8484 (ext_lang_type_printers::ext_lang_type_printers)
8485 (apply_ext_lang_type_printers)
8486 (ext_lang_type_printers::~ext_lang_type_printers)
8487 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8488 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8489 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8490 (get_matching_xmethod_workers, ext_lang_colorize)
8491 (ext_lang_before_prompt): Update.
8492 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8493
8494 2020-05-08 Tom Tromey <tom@tromey.com>
8495
8496 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8497 overload.
8498 <swap_string, m_string>: Remove.
8499 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8500 Update.
8501 * stabsread.c (define_symbol, read_type): Update.
8502 * linespec.c (find_linespec_symbols): Update.
8503 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8504 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8505 * dbxread.c (read_dbx_symtab): Update.
8506 * cp-support.h (cp_canonicalize_string_full)
8507 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8508 Return unique_xmalloc_ptr.
8509 * cp-support.c (inspect_type): Update.
8510 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8511 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8512 Likewise.
8513 * c-typeprint.c (print_name_maybe_canonical): Update.
8514 * break-catch-throw.c (check_status_exception_catchpoint):
8515 Update.
8516
8517 2020-05-08 Tom de Vries <tdevries@suse.de>
8518
8519 * infrun.c (follow_fork): Copy current_line and current_symtab to
8520 child thread.
8521
8522 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * async-event.c (struct async_signal_handler, struct
8525 async_event_handler): Reformat, remove typedef.
8526
8527 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8530 access thistype->main_type->dyn_prop_list directly.
8531
8532 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8533
8534 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8535 (remove_dyn_prop): Remove. Update all users to use
8536 type::remove_dyn_prop.
8537 * gdbtypes.c (remove_dyn_prop): Rename to...
8538 (type::remove_dyn_prop): ... this.
8539
8540 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8541
8542 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8543 (add_dyn_prop): Remove. Update all users to use
8544 type::add_dyn_prop.
8545 * gdbtypes.c (add_dyn_prop): Rename to...
8546 (type::add_dyn_prop): ... this.
8547
8548 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8549
8550 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8551 (get_dyn_prop): Remove. Update all users to use
8552 type::dyn_prop.
8553 * gdbtypes.c (get_dyn_prop): Rename to...
8554 (type::dyn_prop): ... this.
8555
8556 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8559
8560 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8563 instruction, skip it if it's there.
8564
8565 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8568
8569 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8572 * gdbtypes.c (recursive_dump_type): Remove use of
8573 TYPE_INCOMPLETE.
8574
8575 2020-05-03 Tom Tromey <tom@tromey.com>
8576
8577 * breakpoint.c (catch_command, tcatch_command): Remove.
8578 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8579 add_show_prefix_cmd.
8580 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8581 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8582 Remove.
8583 (add_internal_problem_command): Use add_basic_prefix_cmd,
8584 add_show_prefix_cmd.
8585 * mips-tdep.c (set_mipsfpu_command): Remove.
8586 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8587 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8588 (_initialize_index_cache): Use add_basic_prefix_cmd.
8589 * memattr.c (dummy_cmd): Remove.
8590 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8591 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8592 (_initialize_tui_win): Use add_basic_prefix_cmd,
8593 add_show_prefix_cmd.
8594 * cli/cli-logging.c (set_logging_command): Remove.
8595 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8596 add_show_prefix_cmd.
8597 (show_logging_command): Remove.
8598 * target.c (target_command): Remove.
8599 (add_target): Use add_basic_prefix_cmd.
8600
8601 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8602
8603 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8604
8605 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8606
8607 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8608 info_command.
8609
8610 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8611
8612 * nbsd-nat.c (nbsd_enable_proc_events)
8613 (nbsd_nat_target::post_startup_inferior): Add.
8614 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8615 (nbsd_nat_target::update_thread_list): Rewrite.
8616 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8617 "PTRACE_LWP_CREATE".
8618 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8619
8620 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8621
8622 * stack.c (_initialize_stack): Remove duplicated creation
8623 of "frame" command and "f" alias.
8624
8625 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8626
8627 PR gdb/18706
8628 * gdbtypes.c (check_typedef): Calculate size of array of
8629 stubbed type.
8630
8631 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8632
8633 PR gdb/15559
8634 * i386-tdep.c (i386_push_dummy_call): Call
8635 i386_thiscall_push_dummy_call.
8636 (i386_thiscall_push_dummy_call): New function.
8637 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8638 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8639 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8640
8641 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * gdbarch.sh (do_read): Add shellcheck disable directive for
8644 warning SC2162.
8645
8646 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8649 "referenced but not assigned" warning.
8650
8651 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * gdbarch.sh: Remove code that sets fallbackdefault.
8654
8655 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8656
8657 * gdbarch.sh: Use shell operators && and || instead of
8658 -a and -o.
8659
8660 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8661
8662 * gdbarch.sh: Use $(...) instead of `...`.
8663
8664 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * gdbarch.sh: Use double quotes around variables.
8667
8668 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * gdbarch.sh: Use %s with printf, instead of variables in the
8671 format string.
8672
8673 2020-04-29 Tom Tromey <tromey@adacore.com>
8674
8675 PR ada/25875:
8676 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8677 type fields here.
8678 (read_enumeration_type): Call
8679 update_enumeration_type_from_children later. Update comments.
8680 (process_enumeration_scope): Don't create type fields.
8681
8682 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8683
8684 * nbsd-tdep.c: Include "xml-syscall.h".
8685 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8686
8687 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8688
8689 * nbsd-nat.c: Include "sys/wait.h".
8690 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8691 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8692 (nbsd_nat_target::remove_exec_catchpoint)
8693 (nbsd_nat_target::set_syscall_catchpoint): Add.
8694 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8695 (nbsd_nat_target::insert_exec_catchpoint)
8696 (nbsd_nat_target::remove_exec_catchpoint)
8697 (nbsd_nat_target::set_syscall_catchpoint): Add.
8698 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8699 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8700 `nbsd_get_syscall_number'.
8701
8702 2020-04-29 Tom Tromey <tom@tromey.com>
8703
8704 * stack.c (print_block_frame_labels): Remove.
8705
8706 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8707
8708 PR gdb/17320
8709 * ada-valprint.c (val_print_packed_array_elements): Move array
8710 end bracket to new line.
8711 (ada_val_print_string): Remove extra spaces before first array
8712 element.
8713 * c-valprint.c (c_value_print_array): Likewise.
8714 * m2-valprint.c (m2_print_array_contents): Likewise.
8715 (m2_value_print_inner): Likewise.
8716 * p-valprint.c (pascal_value_print_inner): Likewise.
8717 * valprint.c (generic_val_print_array): Likewise.
8718 (value_print_array_elements): Move first array element and array
8719 end bracket to new line.
8720
8721 2020-04-29 Tom de Vries <tdevries@suse.de>
8722
8723 PR symtab/25889
8724 * linespec.c (find_method): Fix ix calculation.
8725
8726 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8727
8728 * syscalls/update-netbsd.sh: New file.
8729 * syscalls/netbsd.xml: Regenerate.
8730 * data-directory/Makefile.in: Register `netbsd.xml' in
8731 `SYSCALLS_FILES'.
8732
8733 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * syscalls/update-freebsd.sh: Add double quotes.
8736
8737 2020-04-28 Tom Tromey <tom@tromey.com>
8738
8739 * NEWS: Update.
8740 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8741 (cmdpy_init): Allow class_tui.
8742
8743 2020-04-28 Mark Williams <mark@myosotissp.com>
8744
8745 PR gdb/24480
8746 * dwarf2read.c: Add missing assingments to list_in_scope when
8747 start_symtab was already called.
8748
8749 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8750
8751 PR gdb/25881
8752 * dwarf2/read.c (offset_map_type): Use
8753 gdb:hash_enum<sect_offset> as hash function.
8754
8755 2020-04-28 Tom de Vries <tdevries@suse.de>
8756
8757 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8758 with DW_AT_signature.
8759
8760 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * configure.ac: Remove check for fs_base/gs_base in
8763 user_regs_struct.
8764 * configure: Re-generate.
8765 * config.in: Re-generate.
8766 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8767 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8768 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8769
8770 2020-04-27 Luis Machado <luis.machado@linaro.org>
8771
8772 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8773 problematic inline frame unwinding situation.
8774 * frame.c (frame_id_computed_p): New function.
8775 * frame.h (frame_id_computed_p): New prototype.
8776
8777 2020-04-26 Tom Tromey <tom@tromey.com>
8778
8779 * command.h (enum command_class) <class_pseudo>: Remove.
8780
8781 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8782
8783 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8784 and whitespace.
8785
8786 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8787
8788 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8789 `PT_GET_PROCESS_STATE' block.
8790
8791 2020-04-24 Tom Tromey <tom@tromey.com>
8792
8793 * symtab.h (symbol_get_demangled_name): Don't declare.
8794 * symtab.c (symbol_get_demangled_name): Remove.
8795 (general_symbol_info::natural_name)
8796 (general_symbol_info::demangled_name): Update.
8797
8798 2020-04-24 Tom Tromey <tom@tromey.com>
8799
8800 PR rust/25025:
8801 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8802
8803 2020-04-24 Tom Tromey <tom@tromey.com>
8804
8805 PR symtab/12707:
8806 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8807 exists.
8808 (new_symbol): Likewise.
8809 * compile/compile-object-load.c (get_out_value_type): Use
8810 symbol_matches_search_name.
8811
8812 2020-04-24 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/read.c (add_partial_symbol): Do not call
8815 compute_and_set_names.
8816
8817 2020-04-24 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8820 overload.
8821
8822 2020-04-24 Tom Tromey <tom@tromey.com>
8823
8824 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8825 (add_psymbol_to_list): New overload. Make old overload call new
8826 one.
8827 * psympriv.h (add_psymbol_to_list): New overload.
8828
8829 2020-04-24 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/read.c (partial_die_info::read) <case
8832 DW_AT_linkage_name>: Use value_as_string.
8833 (dwarf2_string_attr): Use value_as_string.
8834 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8835 method.
8836 * dwarf2/attribute.c (attribute::value_as_string): New method.
8837
8838 2020-04-24 Tom Tromey <tom@tromey.com>
8839
8840 * symtab.c (general_symbol_info::natural_name)
8841 (general_symbol_info::demangled_name): Check for language_rust.
8842
8843 2020-04-24 Tom Tromey <tom@tromey.com>
8844
8845 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8846 (dwarf2_physname): ... from here.
8847 (partial_die_info::read): Add Rust "{" hack.
8848
8849 2020-04-24 Tom Tromey <tom@tromey.com>
8850
8851 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8852 method.
8853 (symbol_set_demangled_name): Don't declare.
8854 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8855 symbol_set_demangled_name.
8856 (general_symbol_info::set_language)
8857 (general_symbol_info::compute_and_set_names): Update.
8858 * minsyms.c (minimal_symbol_reader::install): Update.
8859 * dwarf2/read.c (new_symbol): Update.
8860
8861 2020-04-24 Tom Tromey <tromey@adacore.com>
8862
8863 PR python/23662:
8864 * python/py-type.c (convert_field): Handle
8865 FIELD_LOC_KIND_DWARF_BLOCK.
8866 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8867 (typy_get_dynamic): Nw function.
8868 (type_object_getset): Add "dynamic".
8869 * NEWS: Add entry.
8870
8871 2020-04-24 Tom Tromey <tromey@adacore.com>
8872
8873 * ada-typeprint.c (print_choices, print_variant_part)
8874 (print_record_field_types_dynamic): New functions.
8875 (print_record_field_types): Use print_record_field_types_dynamic.
8876
8877 2020-04-24 Tom Tromey <tromey@adacore.com>
8878
8879 * dwarf2/read.c (handle_data_member_location): New overload.
8880 (dwarf2_add_field): Use it.
8881 (decode_locdesc): Add "computed" parameter. Update comment.
8882 * gdbtypes.c (is_dynamic_type_internal): Also look for
8883 FIELD_LOC_KIND_DWARF_BLOCK.
8884 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8885 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8886 virtual base classes.
8887 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8888 FIELD_LOC_KIND_DWARF_BLOCK.
8889
8890 2020-04-24 Tom Tromey <tromey@adacore.com>
8891
8892 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8893 * gdbtypes.c (is_dynamic_type_internal): Check
8894 TYPE_HAS_DYNAMIC_LENGTH.
8895 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8896 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8897 New macros.
8898 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8899 constant.
8900
8901 2020-04-24 Tom Tromey <tromey@adacore.com>
8902
8903 * dwarf2/read.c (struct variant_field): Rewrite.
8904 (struct variant_part_builder): New.
8905 (struct nextfield): Remove "variant" field. Add "offset".
8906 (struct field_info): Add "current_variant_part" and
8907 "variant_parts".
8908 (alloc_discriminant_info): Remove.
8909 (alloc_rust_variant): New function.
8910 (quirk_rust_enum): Update.
8911 (dwarf2_add_field): Set "offset" member. Don't handle
8912 DW_TAG_variant_part.
8913 (offset_map_type): New typedef.
8914 (convert_variant_range, create_one_variant)
8915 (create_one_variant_part, create_variant_parts)
8916 (add_variant_property): New functions.
8917 (dwarf2_attach_fields_to_type): Call add_variant_property.
8918 (read_structure_type): Don't handle DW_TAG_variant_part.
8919 (handle_variant_part, handle_variant): New functions.
8920 (handle_struct_member_die): Use them.
8921 (process_structure_scope): Don't handle variant parts.
8922 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8923 (struct discriminant_info): Remove.
8924 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8925 (struct main_type) <flag_discriminated_union>: Remove.
8926 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8927 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8928 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8929 Update.
8930 * valops.c (value_union_variant): Remove.
8931 * value.h (value_union_variant): Don't declare.
8932
8933 2020-04-24 Tom Tromey <tromey@adacore.com>
8934
8935 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8936 (ada_value_primitive_packed_val): Update.
8937 * ada-valprint.c (ada_value_print_1): Update.
8938 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8939 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8940 just an address. Use evaluate_for_locexpr_baton.
8941 (dwarf2_evaluate_property): Update.
8942 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8943 array_view.
8944 * findvar.c (default_read_var_value): Update.
8945 * gdbtypes.c (compute_variant_fields_inner)
8946 (resolve_dynamic_type_internal): Update.
8947 (resolve_dynamic_type): Change type of valaddr parameter.
8948 * gdbtypes.h (resolve_dynamic_type): Update.
8949 * valarith.c (value_subscripted_rvalue): Update.
8950 * value.c (value_from_contents_and_address): Update.
8951
8952 2020-04-24 Tom Tromey <tromey@adacore.com>
8953
8954 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8955 "push_initial_value" parameter.
8956 (dwarf2_evaluate_property): Likewise.
8957 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8958
8959 2020-04-24 Tom Tromey <tromey@adacore.com>
8960
8961 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8962 (variant::matches, compute_variant_fields_recurse)
8963 (compute_variant_fields_inner, compute_variant_fields): New
8964 functions.
8965 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8966 Use resolved_type after type is made.
8967 (operator==): Add new cases.
8968 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8969 (struct discriminant_range, struct variant, struct variant_part):
8970 New.
8971 (union dynamic_prop_data) <variant_parts, original_type>: New
8972 members.
8973 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8974 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8975 constants.
8976 * value.c (unpack_bits_as_long): Now public.
8977 * value.h (unpack_bits_as_long): Declare.
8978
8979 2020-04-24 Tom Tromey <tromey@adacore.com>
8980
8981 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8982 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8983
8984 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8985
8986 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8987
8988 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8989
8990 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8991 (remove_fork_catchpoint, post_startup_inferior)
8992 (post_attach): Move...
8993 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8994 (remove_fork_catchpoint, post_startup_inferior)
8995 (post_attach): ...here.
8996 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8997 (remove_fork_catchpoint, post_startup_inferior)
8998 (post_attach): Move...
8999 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9000 (remove_fork_catchpoint, post_startup_inferior)
9001 (post_attach): ...here.
9002
9003 2020-04-24 Tom Tromey <tromey@adacore.com>
9004
9005 * nat/windows-nat.h (struct windows_thread_info)
9006 <pc_adjusted>: New member.
9007 * windows-nat.c (windows_fetch_one_register): Check
9008 pc_adjusted.
9009 (windows_nat_target::get_windows_debug_event)
9010 (windows_nat_target::wait): Set pc_adjusted.
9011
9012 2020-04-24 Tom de Vries <tdevries@suse.de>
9013
9014 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9015 Run gdb-add-index inside temp dir.
9016
9017 2020-04-23 Tom Tromey <tromey@adacore.com>
9018
9019 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9020 in loop.
9021
9022 2020-04-23 Luis Machado <luis.machado@linaro.org>
9023
9024 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9025 get_frame_register instead of gdbarch_unwind_pc.
9026
9027 2020-04-23 Tom de Vries <tdevries@suse.de>
9028
9029 * symtab.c (lookup_global_symbol): Prefer def over decl.
9030
9031 2020-04-23 Tom de Vries <tdevries@suse.de>
9032
9033 PR symtab/25807
9034 * block.c (best_symbol, better_symbol): Promote to external.
9035 * block.h (best_symbol, better_symbol): Declare.
9036 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9037 decl.
9038
9039 2020-04-23 Tom Tromey <tromey@adacore.com>
9040
9041 PR ada/25837:
9042 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9043 "const char *", not a "const std::string &".
9044 <name_and_matcher::operator==>: Update.
9045 * unittests/lookup_name_info-selftests.c: Change type of
9046 "result".
9047
9048 2020-04-23 Tom Tromey <tom@tromey.com>
9049
9050 * inferior.h (iterate_over_inferiors): Don't declare.
9051 * inferior.c (iterate_over_inferiors): Remove.
9052 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9053 Remove.
9054 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9055 use iterate_over_inferiors.
9056 (darwin_resume_inferior_it)
9057 (struct resume_inferior_threads_param)
9058 (darwin_resume_inferior_threads_it): Remove.
9059 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9060
9061 2020-04-23 Tom de Vries <tdevries@suse.de>
9062
9063 * blockframe.c (find_pc_partial_function): Use
9064 find_pc_sect_compunit_symtab rather than
9065 objfile->sf->qf->find_pc_sect_compunit_symtab.
9066
9067 2020-04-22 Tom de Vries <tdevries@suse.de>
9068
9069 PR symtab/25764
9070 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9071 in psymtabs.
9072
9073 2020-04-22 Tom de Vries <tdevries@suse.de>
9074
9075 PR symtab/25801
9076 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9077 symtabs.
9078
9079 2020-04-22 Tom de Vries <tdevries@suse.de>
9080
9081 PR symtab/25700
9082 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9083 CU if already created.
9084
9085 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9086
9087 * infrun.c (displaced_step_fixup): Switch to the event_thread
9088 before calling displaced_step_restore, not after.
9089
9090 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9091
9092 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9093 its inferior is not recorded by us.
9094 (record_btrace_target_open): Replace call to
9095 all_non_exited_threads () with call to current_inferior
9096 ()->non_exited_threads ().
9097 (record_btrace_target::stop_recording): Likewise.
9098 (record_btrace_target::close): Likewise.
9099 (record_btrace_target::wait): Likewise.
9100 (record_btrace_target::record_stop_replaying): Likewise.
9101
9102 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9103
9104 * btrace.c (btrace_enable): Throw an error on double enables and
9105 when enabling recording fails.
9106 (btrace_disable): Throw an error if the thread is not recorded.
9107
9108 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9109
9110 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9111 request if we do not have a thread_info.
9112
9113 2020-04-21 Tom de Vries <tdevries@suse.de>
9114
9115 PR gdb/25471
9116 * thread.c
9117 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9118 exception in get_frame_id.
9119
9120 2020-04-20 Tom Tromey <tromey@adacore.com>
9121
9122 * python/python.c (struct gdbpy_event): Mark move constructor as
9123 noexcept.
9124 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9125 constructor as noexcept.
9126 * completer.h (struct completion_result): Mark move constructor as
9127 noexcept.
9128 * completer.c (completion_result::completion_result): Use
9129 initialization style. Don't call reset_match_list.
9130
9131 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9132
9133 * MAINTAINERS (Write After Approval): Add myself.
9134
9135 2020-04-18 Tom Tromey <tom@tromey.com>
9136
9137 * windows-tdep.c (init_w32_command_list)
9138 (w32_prefix_command_valid): Restore.
9139 (_initialize_windows_tdep): Call init_w32_command_list.
9140
9141 2020-04-18 Tom Tromey <tom@tromey.com>
9142
9143 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9144 * value.c (value_fn_field): Update.
9145 * valops.c (find_function_in_inferior)
9146 (value_allocate_space_in_inferior): Update.
9147 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9148 Update.
9149 * tui/tui-source.c (tui_source_window::set_contents): Update.
9150 * symtab.c (lookup_global_or_static_symbol)
9151 (find_function_start_sal_1, skip_prologue_sal)
9152 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9153 * symmisc.c (dump_msymbols, dump_symtab_1)
9154 (maintenance_print_one_line_table): Update.
9155 * symfile.c (init_entry_point_info, section_is_mapped)
9156 (list_overlays_command, simple_read_overlay_table)
9157 (simple_overlay_update_1): Update.
9158 * stap-probe.c (handle_stap_probe): Update.
9159 * stabsread.c (dbx_init_float_type, define_symbol)
9160 (read_one_struct_field, read_enum_type, read_range_type): Update.
9161 * source.c (info_line_command): Update.
9162 * python/python.c (gdbpy_source_objfile_script)
9163 (gdbpy_execute_objfile_script): Update.
9164 * python/py-type.c (save_objfile_types): Update.
9165 * python/py-objfile.c (py_free_objfile): Update.
9166 * python/py-inferior.c (python_new_objfile): Update.
9167 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9168 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9169 (maintenance_check_psymtabs): Update.
9170 * printcmd.c (info_address_command): Update.
9171 * objfiles.h (struct objfile) <arch>: New method, from
9172 get_objfile_arch.
9173 (get_objfile_arch): Don't declare.
9174 * objfiles.c (get_objfile_arch): Remove.
9175 (filter_overlapping_sections): Update.
9176 * minsyms.c (msymbol_is_function): Update.
9177 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9178 (output_nondebug_symbol): Update.
9179 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9180 (mdebug_expand_psymtab): Update.
9181 * machoread.c (macho_add_oso_symfile): Update.
9182 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9183 Update.
9184 * linux-fork.c (checkpoint_command): Update.
9185 * linespec.c (convert_linespec_to_sals): Update.
9186 * jit.c (finalize_symtab): Update.
9187 * infrun.c (insert_exception_resume_from_probe): Update.
9188 * ia64-tdep.c (ia64_find_unwind_table): Update.
9189 * hppa-tdep.c (internalize_unwinds): Update.
9190 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9191 Update.
9192 * gcore.c (call_target_sbrk): Update.
9193 * elfread.c (record_minimal_symbol, elf_symtab_read)
9194 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9195 (elf_gnu_ifunc_resolve_by_got): Update.
9196 * dwarf2/read.c (create_addrmap_from_index)
9197 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9198 (read_debug_names_from_section)
9199 (process_psymtab_comp_unit_reader, add_partial_symbol)
9200 (add_partial_subprogram, process_full_comp_unit)
9201 (read_file_scope, read_func_scope, read_lexical_block_scope)
9202 (read_call_site_scope, dwarf2_ranges_read)
9203 (dwarf2_record_block_ranges, dwarf2_add_field)
9204 (mark_common_block_symbol_computed, read_tag_pointer_type)
9205 (read_tag_string_type, dwarf2_init_float_type)
9206 (dwarf2_init_complex_target_type, read_base_type)
9207 (partial_die_info::read, partial_die_info::read)
9208 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9209 (dwarf2_fetch_die_loc_sect_off): Update.
9210 * dwarf2/loc.c (dwarf2_find_location_expression)
9211 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9212 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9213 (dwarf2_loc_desc_get_symbol_read_needs)
9214 (locexpr_describe_location_piece, locexpr_describe_location_1)
9215 (loclist_describe_location): Update.
9216 * dwarf2/index-write.c (write_debug_names): Update.
9217 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9218 * dtrace-probe.c (dtrace_process_dof): Update.
9219 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9220 (process_one_symbol): Update.
9221 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9222 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9223 (coff_read_enum_type): Update.
9224 * cli/cli-cmds.c (edit_command, list_command): Update.
9225 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9226 * breakpoint.c (create_overlay_event_breakpoint)
9227 (create_longjmp_master_breakpoint)
9228 (create_std_terminate_master_breakpoint)
9229 (create_exception_master_breakpoint, get_sal_arch): Update.
9230 * block.c (block_gdbarch): Update.
9231 * annotate.c (annotate_source_line): Update.
9232
9233 2020-04-17 Tom Tromey <tromey@adacore.com>
9234
9235 * auto-load.c (show_auto_load_cmd): Remove.
9236 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9237 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9238 (maintenance_print_arc_command): Remove.
9239 * tui/tui-win.c (tui_command): Remove.
9240 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9241 * tui/tui-layout.c (tui_layout_command): Remove.
9242 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9243 * python/python.c (user_set_python, user_show_python): Remove.
9244 (_initialize_python): Use add_basic_prefix_cmd,
9245 add_show_prefix_cmd.
9246 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9247 (install_gdb_commands): Use add_basic_prefix_cmd,
9248 add_show_prefix_cmd.
9249 (info_guile_command): Remove.
9250 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9251 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9252 add_show_prefix_cmd.
9253 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9254 Remove do_set and do_show parameters.
9255 * cli/cli-style.c (set_style, show_style): Remove.
9256 (_initialize_cli_style): Use add_basic_prefix_cmd,
9257 add_show_prefix_cmd.
9258 (cli_style_option::add_setshow_commands): Remove do_set and
9259 do_show parameters.
9260 (cli_style_option::add_setshow_commands): Use
9261 add_basic_prefix_cmd, add_show_prefix_cmd.
9262 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9263 (set_style_name): Remove.
9264 * cli/cli-dump.c (dump_command, append_command): Remove.
9265 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9266 (tekhex_dump_command, binary_dump_command)
9267 (binary_append_command): Remove.
9268 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9269 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9270 (init_w32_command_list): Remove; move into ...
9271 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9272 * valprint.c (set_print, show_print, set_print_raw)
9273 (show_print_raw): Remove.
9274 (_initialize_valprint): Use add_basic_prefix_cmd,
9275 add_show_prefix_cmd.
9276 * typeprint.c (set_print_type, show_print_type): Remove.
9277 (_initialize_typeprint): Use add_basic_prefix_cmd,
9278 add_show_prefix_cmd.
9279 * record.c (set_record_command, show_record_command): Remove.
9280 (_initialize_record): Use add_basic_prefix_cmd,
9281 add_show_prefix_cmd.
9282 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9283 add_show_prefix_cmd.
9284 (info_command, show_command, set_debug, show_debug): Remove.
9285 * top.h (set_history, show_history): Don't declare.
9286 * top.c (set_history, show_history): Remove.
9287 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9288 (unset_tdesc_cmd): Remove.
9289 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9290 add_show_prefix_cmd.
9291 * symtab.c (info_module_command): Remove.
9292 (_initialize_symtab): Use add_basic_prefix_cmd.
9293 * symfile.c (overlay_command): Remove.
9294 (_initialize_symfile): Use add_basic_prefix_cmd.
9295 * sparc64-tdep.c (info_adi_command): Remove.
9296 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9297 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9298 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9299 add_show_prefix_cmd.
9300 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9301 (_initialize_serial): Use add_basic_prefix_cmd,
9302 add_show_prefix_cmd.
9303 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9304 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9305 add_show_prefix_cmd.
9306 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9307 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9308 add_show_prefix_cmd.
9309 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9310 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9311 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9312 add_show_prefix_cmd.
9313 * remote.c (remote_command, set_remote_cmd): Remove.
9314 (_initialize_remote): Use add_basic_prefix_cmd.
9315 * record-full.c (set_record_full_command)
9316 (show_record_full_command): Remove.
9317 (_initialize_record_full): Use add_basic_prefix_cmd,
9318 add_show_prefix_cmd.
9319 * record-btrace.c (cmd_set_record_btrace)
9320 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9321 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9322 (cmd_show_record_btrace_pt): Remove.
9323 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9324 add_show_prefix_cmd.
9325 * ravenscar-thread.c (set_ravenscar_command)
9326 (show_ravenscar_command): Remove.
9327 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9328 add_show_prefix_cmd.
9329 * mips-tdep.c (show_mips_command, set_mips_command)
9330 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9331 add_show_prefix_cmd.
9332 * maint.c (maintenance_command, maintenance_info_command)
9333 (maintenance_check_command, maintenance_print_command)
9334 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9335 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9336 add_show_prefix_cmd.
9337 (show_per_command_cmd): Remove.
9338 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9339 Remove.
9340 (maintenance_show_test_settings_cmd): Remove.
9341 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9342 add_show_prefix_cmd.
9343 * maint-test-options.c (maintenance_test_options_command):
9344 Remove.
9345 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9346 * macrocmd.c (macro_command): Remove
9347 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9348 * language.c (set_check, show_check): Remove.
9349 (_initialize_language): Use add_basic_prefix_cmd,
9350 add_show_prefix_cmd.
9351 * infcmd.c (unset_command): Remove.
9352 (_initialize_infcmd): Use add_basic_prefix_cmd.
9353 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9354 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9355 add_show_prefix_cmd.
9356 * go32-nat.c (go32_info_dos_command): Remove.
9357 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9358 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9359 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9360 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9361 (_initialize_frame): Use add_basic_prefix_cmd,
9362 add_show_prefix_cmd.
9363 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9364 (_initialize_dcache): Use add_basic_prefix_cmd,
9365 add_show_prefix_cmd.
9366 * cp-support.c (maint_cplus_command): Remove.
9367 (_initialize_cp_support): Use add_basic_prefix_cmd.
9368 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9369 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9370 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9371 add_basic_prefix_cmd, add_show_prefix_cmd.
9372 * breakpoint.c (save_command): Remove.
9373 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9374 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9375 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9376 add_show_prefix_cmd.
9377 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9378 (set_ada_command, show_ada_command): Remove.
9379 (_initialize_ada_language): Use add_basic_prefix_cmd,
9380 add_show_prefix_cmd.
9381 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9382
9383 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9384
9385 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9386 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9387
9388 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9389
9390 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9391 warning messages.
9392
9393 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9394
9395 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9396 import table is not at beginning of .idata section.
9397
9398 2020-04-16 Pedro Alves <palves@redhat.com>
9399
9400 * inferior.c (delete_inferior): Use delete operator directly
9401 instead of delete_program_space.
9402 * progspace.c (add_program_space): New, factored out from
9403 program_space::program_space.
9404 (remove_program_space): New, factored out from
9405 delete_program_space.
9406 (program_space::program_space): Remove intro comment. Rewrite.
9407 (program_space::~program_space): Remove intro comment. Call
9408 remove_program_space.
9409 (delete_program_space): Delete.
9410 * progspace.h (program_space::program_space): Make explicit. Move
9411 intro comment here, adjusted.
9412 (program_space::~program_space): Move intro comment here,
9413 adjusted.
9414 (delete_program_space): Remove.
9415
9416 2020-04-16 Tom Tromey <tromey@adacore.com>
9417
9418 * windows-nat.c (windows_nat::handle_access_violation): New
9419 function.
9420 * nat/windows-nat.h (handle_access_violation): Declare.
9421 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9422 windows-nat.c. Call handle_access_violation.
9423
9424 2020-04-16 Tom de Vries <tdevries@suse.de>
9425
9426 PR symtab/25791
9427 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9428 CUs without psymtab.
9429
9430 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9431
9432 * python/python.c (do_start_initialization): Don't call
9433 PyEval_InitThreads for Python 3.9 and beyond.
9434
9435 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9436
9437 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9438 thread functions.
9439 (obsd_nat_target::wait): Likewise.
9440
9441 2020-04-15 Tom Tromey <tromey@adacore.com>
9442
9443 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9444 (DEBUG_EXCEPT): Use debug_printf.
9445
9446 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9447
9448 * completer.c (class completion_tracker::completion_hash_entry)
9449 <hash_name>: New member function.
9450 (completion_tracker::discard_completions): New callback to hash a
9451 completion_hash_entry, pass this to htab_create_alloc.
9452
9453 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9454
9455 * windows-nat.c (windows_make_so): Warn rather than stopping with
9456 an error if realpath() fails.
9457
9458 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9459
9460 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9461 (nbsd_nat_target::info_proc): Add do_status.
9462
9463 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9464 Tom de Vries <tdevries@suse.de>
9465
9466 PR symtab/25718
9467 * psympriv.h (struct partial_symtab::read_symtab)
9468 (struct partial_symtab::expand_psymtab)
9469 (struct partial_symtab::read_dependencies): Update comments.
9470 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9471 read_symtab for includer.
9472 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9473 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9474 (struct dwarf2_include_psymtab::m_readin): Remove.
9475 (struct dwarf2_include_psymtab::includer): New member function.
9476 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9477
9478 2020-04-14 Tom de Vries <tdevries@suse.de>
9479
9480 PR symtab/25720
9481 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9482 with NULL symbol_matcher and lookup_name.
9483 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9484 and lookup_name.
9485 * dwarf2/read.c (dw2_expand_symtabs_matching)
9486 (dw2_debug_names_expand_symtabs_matching): Same.
9487 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9488 Make lookup_name a pointer. Update comment.
9489 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9490 lookup_name being a pointer.
9491 * symfile.c (expand_symtabs_matching): Same.
9492 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9493 * linespec.c (iterate_over_all_matching_symtabs): Same.
9494
9495 2020-04-13 Tom Tromey <tom@tromey.com>
9496
9497 * run-on-main-thread.c: Update include.
9498 * unittests/main-thread-selftests.c: Update include.
9499 * tui/tui-win.c: Update include.
9500 * tui/tui-io.c: Update include.
9501 * tui/tui-interp.c: Update include.
9502 * tui/tui-hooks.c: Update include.
9503 * top.h: Update include.
9504 * top.c: Update include.
9505 * ser-base.c: Update include.
9506 * remote.c: Update include.
9507 * remote-notif.c: Update include.
9508 * remote-fileio.c: Update include.
9509 * record-full.c: Update include.
9510 * record-btrace.c: Update include.
9511 * python/python.c: Update include.
9512 * posix-hdep.c: Update include.
9513 * mingw-hdep.c: Update include.
9514 * mi/mi-main.c: Update include.
9515 * mi/mi-interp.c: Update include.
9516 * main.c: Update include.
9517 * linux-nat.c: Update include.
9518 * interps.c: Update include.
9519 * infrun.c: Update include.
9520 * inf-loop.c: Update include.
9521 * event-top.c: Update include.
9522 * event-loop.c: Move to ../gdbsupport/.
9523 * event-loop.h: Move to ../gdbsupport/.
9524 * async-event.h: Update include.
9525 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9526
9527 2020-04-13 Tom Tromey <tom@tromey.com>
9528
9529 * tui/tui-win.c: Include async-event.h.
9530 * remote.c: Include async-event.h.
9531 * remote-notif.c: Include async-event.h.
9532 * record-full.c: Include async-event.h.
9533 * record-btrace.c: Include async-event.h.
9534 * infrun.c: Include async-event.h.
9535 * event-top.c: Include async-event.h.
9536 * event-loop.h: Move some declarations to async-event.h.
9537 * event-loop.c: Don't include ser-event.h or top.h. Move some
9538 code to async-event.c.
9539 * async-event.h: New file.
9540 * async-event.c: New file.
9541 * Makefile.in (COMMON_SFILES): Add async-event.c.
9542 (HFILES_NO_SRCDIR): Add async-event.h.
9543
9544 2020-04-13 Tom Tromey <tom@tromey.com>
9545
9546 * utils.c (flush_streams): New function.
9547 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9548
9549 2020-04-13 Tom Tromey <tom@tromey.com>
9550
9551 * event-loop.c (handle_file_event): Use warning, not
9552 printf_unfiltered.
9553
9554 2020-04-13 Tom Tromey <tom@tromey.com>
9555
9556 * event-loop.c: Include <chrono>.
9557
9558 2020-04-13 Tom Tromey <tom@tromey.com>
9559
9560 * gdb_select.h: Move to ../gdbsupport/.
9561 * event-loop.c: Update include path.
9562 * top.c: Update include path.
9563 * ser-base.c: Update include path.
9564 * ui-file.c: Update include path.
9565 * ser-tcp.c: Update include path.
9566 * guile/scm-ports.c: Update include path.
9567 * posix-hdep.c: Update include path.
9568 * ser-unix.c: Update include path.
9569 * gdb_usleep.c: Update include path.
9570 * mingw-hdep.c: Update include path.
9571 * inflow.c: Update include path.
9572 * infrun.c: Update include path.
9573 * event-top.c: Update include path.
9574
9575 2020-04-13 Tom Tromey <tom@tromey.com>
9576
9577 * configure: Rebuild.
9578 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9579
9580 2020-04-13 Tom Tromey <tom@tromey.com>
9581
9582 * event-loop.h (start_event_loop): Don't declare.
9583 * event-loop.c (start_event_loop): Move...
9584 * main.c (start_event_loop): ...here. Now static.
9585
9586 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9587
9588 * MAINTAINERS: Update my email address.
9589
9590 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9591
9592 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9593 IP_ALL.
9594
9595 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9596
9597 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9598 (nbsd_nat_target::info_proc): Add do_cmdline.
9599
9600 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9601
9602 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9603 (nbsd_nat_target::info_proc): Add do_cwd.
9604
9605 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9606
9607 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9608
9609 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9610
9611 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9612 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9613 (nbsd_nat_target::info_proc): New functions.
9614 * nbsd-nat.c (kinfo_get_vmmap): New function.
9615 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9616 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9617 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9618 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9619 functions.
9620 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9621 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9622 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9623 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9624 (KINFO_VME_FLAG_GROWS_DOWN): New.
9625
9626 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9627
9628 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9629 bit shift.
9630
9631 2020-04-10 Tom Tromey <tromey@adacore.com>
9632
9633 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9634
9635 2020-04-10 Tom Tromey <tromey@adacore.com>
9636
9637 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9638 separate debug files.
9639
9640 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9641
9642 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9643 Move to...
9644 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9645 ... here.
9646 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9647 Check for STATUS_WX86_BREAKPOINT.
9648 (windows_nat_target::wait): Same.
9649
9650 2020-04-10 Tom de Vries <tdevries@suse.de>
9651
9652 PR cli/25808
9653 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9654
9655 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9656
9657 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9658 (Write After Approval): Remove Tom de Vries.
9659
9660 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9661
9662 revert partially:
9663 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9664
9665 * buildsym.c (record_line): Fix undefined behavior and preserve
9666 lines at eof.
9667
9668 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9669
9670 * auxv.h (svr4_auxv_parse): New.
9671 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9672 and generic_auxv_parse.
9673 (svr4_auxv_parse): Add.
9674 * obsd-tdep.c: Include "auxv.h".
9675 (obsd_auxv_parse): Remove.
9676 (obsd_init_abi): Remove comment.
9677 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9678 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9679 * nbsd-tdep.c: Include "auxv.h".
9680 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9681
9682 2020-04-08 Tom Tromey <tromey@adacore.com>
9683
9684 * nat/windows-nat.h (last_wait_event): Don't declare.
9685 (wait_for_debug_event): Update comment.
9686 * nat/windows-nat.c (last_wait_event): Now static.
9687
9688 2020-04-08 Tom Tromey <tromey@adacore.com>
9689
9690 * windows-nat.c (wait_for_debug_event): Move to
9691 nat/windows-nat.c.
9692 * nat/windows-nat.h (wait_for_debug_event): Declare.
9693 * nat/windows-nat.c (wait_for_debug_event): Move from
9694 windows-nat.c. No longer static.
9695
9696 2020-04-08 Tom Tromey <tromey@adacore.com>
9697
9698 * windows-nat.c (get_windows_debug_event): Use
9699 fetch_pending_stop.
9700 * nat/windows-nat.h (fetch_pending_stop): Declare.
9701 * nat/windows-nat.c (fetch_pending_stop): New function.
9702
9703 2020-04-08 Tom Tromey <tromey@adacore.com>
9704
9705 * windows-nat.c (windows_continue): Use matching_pending_stop and
9706 continue_last_debug_event.
9707 * nat/windows-nat.h (matching_pending_stop)
9708 (continue_last_debug_event): Declare.
9709 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9710 (matching_pending_stop, continue_last_debug_event): New
9711 functions.
9712
9713 2020-04-08 Tom Tromey <tromey@adacore.com>
9714
9715 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9716 (handle_exception_result): Move to nat/windows-nat.h.
9717 (DEBUG_EXCEPTION_SIMPLE): Remove.
9718 (windows_nat::handle_ms_vc_exception): New function.
9719 (handle_exception): Move to nat/windows-nat.c.
9720 (get_windows_debug_event): Update.
9721 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9722 nat/windows-nat.c.
9723 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9724 (handle_exception_result): Move from windows-nat.c.
9725 (handle_exception): Declare.
9726 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9727 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9728 windows-nat.c.
9729
9730 2020-04-08 Tom Tromey <tromey@adacore.com>
9731
9732 * windows-nat.c (exception_count, event_count): Remove.
9733 (handle_exception, get_windows_debug_event)
9734 (do_initial_windows_stuff): Update.
9735
9736 2020-04-08 Tom Tromey <tromey@adacore.com>
9737
9738 * windows-nat.c (windows_nat::handle_load_dll)
9739 (windows_nat::handle_unload_dll): Rename. No longer static.
9740 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9741 Declare.
9742
9743 2020-04-08 Tom Tromey <tromey@adacore.com>
9744
9745 * complaints.h (stop_whining): Declare at top-level.
9746 (complaint): Don't declare stop_whining.
9747
9748 2020-04-08 Tom Tromey <tromey@adacore.com>
9749
9750 * windows-nat.c (windows_nat::handle_output_debug_string):
9751 Rename. No longer static.
9752 * nat/windows-nat.h (handle_output_debug_string): Declare.
9753
9754 2020-04-08 Tom Tromey <tromey@adacore.com>
9755
9756 * windows-nat.c (current_process_handle, current_process_id)
9757 (main_thread_id, last_sig, current_event, last_wait_event)
9758 (current_windows_thread, desired_stop_thread_id, pending_stops)
9759 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9760 (display_selectors, fake_create_process)
9761 (get_windows_debug_event): Update.
9762 * nat/windows-nat.h (current_process_handle, current_process_id)
9763 (main_thread_id, last_sig, current_event, last_wait_event)
9764 (current_windows_thread, desired_stop_thread_id, pending_stops)
9765 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9766 * nat/windows-nat.c (current_process_handle, current_process_id)
9767 (main_thread_id, last_sig, current_event, last_wait_event)
9768 (current_windows_thread, desired_stop_thread_id, pending_stops)
9769 (siginfo_er): New globals. Move from windows-nat.c.
9770
9771 2020-04-08 Tom Tromey <tromey@adacore.com>
9772
9773 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9774 (handle_load_dll): Update.
9775 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9776
9777 2020-04-08 Tom Tromey <tromey@adacore.com>
9778
9779 * windows-nat.c (enum thread_disposition_type): Move to
9780 nat/windows-nat.h.
9781 (windows_nat::thread_rec): Rename from thread_rec. No longer
9782 static.
9783 (windows_add_thread, windows_nat_target::fetch_registers)
9784 (windows_nat_target::store_registers, handle_exception)
9785 (windows_nat_target::resume, get_windows_debug_event)
9786 (windows_nat_target::get_tib_address)
9787 (windows_nat_target::thread_name)
9788 (windows_nat_target::thread_alive): Update.
9789 * nat/windows-nat.h (enum thread_disposition_type): Move from
9790 windows-nat.c.
9791 (thread_rec): Declare.
9792
9793 2020-04-08 Tom Tromey <tromey@adacore.com>
9794
9795 * windows-nat.c: Add "using namespace".
9796 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9797 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9798
9799 2020-04-08 Tom Tromey <tromey@adacore.com>
9800
9801 * nat/windows-nat.h (struct windows_thread_info): Declare
9802 destructor.
9803 * nat/windows-nat.c (~windows_thread_info): New.
9804
9805 2020-04-08 Tom Tromey <tromey@adacore.com>
9806
9807 PR gdb/22992
9808 * windows-nat.c (current_event): Update comment.
9809 (last_wait_event, desired_stop_thread_id): New globals.
9810 (struct pending_stop): New.
9811 (pending_stops): New global.
9812 (windows_nat_target) <stopped_by_sw_breakpoint>
9813 <supports_stopped_by_sw_breakpoint>: New methods.
9814 (windows_fetch_one_register): Add assertions. Adjust PC.
9815 (windows_continue): Handle pending stops. Suspend other threads
9816 when stepping. Use last_wait_event
9817 (wait_for_debug_event): New function.
9818 (get_windows_debug_event): Use wait_for_debug_event. Handle
9819 pending stops. Queue spurious stops.
9820 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9821 (windows_nat_target::kill): Use wait_for_debug_event.
9822 * nat/windows-nat.h (struct windows_thread_info)
9823 <stopped_at_software_breakpoint>: New field.
9824 * nat/windows-nat.c (windows_thread_info::resume): Clear
9825 stopped_at_software_breakpoint.
9826
9827 2020-04-08 Tom Tromey <tromey@adacore.com>
9828
9829 * windows-nat.c (enum thread_disposition_type): New.
9830 (thread_rec): Replace "get_context" parameter with "disposition";
9831 change type.
9832 (windows_add_thread, windows_nat_target::fetch_registers)
9833 (windows_nat_target::store_registers, handle_exception)
9834 (windows_nat_target::resume, get_windows_debug_event)
9835 (windows_nat_target::get_tib_address)
9836 (windows_nat_target::thread_name)
9837 (windows_nat_target::thread_alive): Update.
9838
9839 2020-04-08 Tom Tromey <tromey@adacore.com>
9840
9841 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9842 (windows_continue): Use windows_continue::resume.
9843 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9844 resume>: Declare new methods.
9845 * nat/windows-nat.c: New file.
9846 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9847
9848 2020-04-08 Tom Tromey <tromey@adacore.com>
9849
9850 * windows-nat.c (windows_add_thread, windows_delete_thread)
9851 (windows_nat_target::fetch_registers)
9852 (windows_nat_target::store_registers, fake_create_process)
9853 (windows_nat_target::resume, windows_nat_target::resume)
9854 (get_windows_debug_event, windows_nat_target::wait)
9855 (windows_nat_target::pid_to_str)
9856 (windows_nat_target::get_tib_address)
9857 (windows_nat_target::get_ada_task_ptid)
9858 (windows_nat_target::thread_name)
9859 (windows_nat_target::thread_alive): Use lwp, not tid.
9860
9861 2020-04-08 Tom Tromey <tromey@adacore.com>
9862
9863 * windows-nat.c (handle_exception)
9864 (windows_nat_target::thread_name): Update.
9865 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9866 <name>: Now unique_xmalloc_ptr.
9867
9868 2020-04-08 Tom Tromey <tromey@adacore.com>
9869
9870 * windows-nat.c (thread_rec)
9871 (windows_nat_target::fetch_registers): Update.
9872 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9873 Update comment.
9874 <debug_registers_changed, reload_context>: Now bool.
9875
9876 2020-04-08 Tom Tromey <tromey@adacore.com>
9877
9878 * windows-nat.c (windows_add_thread): Use new.
9879 (windows_init_thread_list, windows_delete_thread): Use delete.
9880 (get_windows_debug_event): Update.
9881 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9882 destructor, and initializers.
9883
9884 2020-04-08 Tom Tromey <tromey@adacore.com>
9885
9886 * windows-nat.c (struct windows_thread_info): Remove.
9887 * nat/windows-nat.h: New file.
9888
9889 2020-04-08 Tom Tromey <tromey@adacore.com>
9890
9891 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9892 (thread_rec, windows_add_thread, windows_delete_thread)
9893 (windows_continue): Update.
9894
9895 2020-04-08 Tom Tromey <tromey@adacore.com>
9896
9897 * windows-nat.c (struct windows_thread_info): Remove typedef.
9898 (thread_head): Remove.
9899 (thread_list): New global.
9900 (thread_rec, windows_add_thread, windows_init_thread_list)
9901 (windows_delete_thread, windows_continue): Update.
9902
9903 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9904
9905 * windows-tdep.h (windows_init_abi): Add comment.
9906 (cygwin_init_abi): New declaration.
9907 * windows-tdep.c: Split signal enumeration in two, one for
9908 Windows and one for Cygwin.
9909 (windows_gdb_signal_to_target): Only deal with signal of the
9910 Windows OS ABI.
9911 (cygwin_gdb_signal_to_target): New function.
9912 (windows_init_abi): Rename to windows_init_abi_common, don't set
9913 gdb_signal_to_target gdbarch method. Add new new function with
9914 this name.
9915 (cygwin_init_abi): New function.
9916 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9917 comment. Don't call windows_init_abi.
9918 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9919 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9920 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9921 i386_windows_init_abi_common, don't call windows_init_abi. Add
9922 a new function of this name.
9923 (i386_cygwin_init_abi): New function.
9924 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9925 OS ABI Cygwin.
9926
9927 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9930 parameter.c.
9931 (dwarf2_read_gdb_index): Update.
9932
9933 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9934
9935 * nbsd-tdep.c: Include "objfiles.h".
9936 (nbsd_skip_solib_resolver): New.
9937 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9938
9939 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9940
9941 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9942 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9943 with DW_LLE_base_addressx are being emitted in DWARFv5.
9944 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9945 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9946 unsigned integer.
9947
9948 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9949
9950 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9951 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9952 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9953 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9954 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9955 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9956 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9957
9958
9959 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9960
9961 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9962 (read_loclist_index): New function definition.
9963 (lookup_loclist_base): New function definition.
9964 (read_loclist_header): New function definition.
9965 (dwarf2_cu): Add loclist_base and loclist_header field.
9966 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9967 (read_full_die_1): Read the value of DW_AT_loclists_base.
9968 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9969 (read_attribute_value): Handle DW_FORM_loclistx.
9970 (skip_one_die): Handle DW_FORM_loclistx.
9971 (loclist_header): New structure declaration.
9972 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9973
9974 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9975
9976 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9977 constructor. Remove `addr` parameter from other constructor and
9978 add `per_cu` parameter.
9979 * dwarf2/read.c (create_partial_symtab): Update.
9980
9981 2020-04-07 Tom de Vries <tdevries@suse.de>
9982
9983 PR symtab/25796
9984 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9985 (partial_die_info::fixup): Inherit has_const_value.
9986
9987 2020-04-07 Tom de Vries <tdevries@suse.de>
9988
9989 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9990 symbols without address.
9991
9992 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9993
9994 * nbsd-nat.h (struct thread_info): Add forward declaration.
9995 (nbsd_nat_target::thread_alive): Add.
9996 (nbsd_nat_target::thread_name): Likewise.
9997 (nbsd_nat_target::update_thread_list): Likewise.
9998 (update_thread_list::post_attach): Likewise.
9999 (post_attach::pid_to_str): Likewise.
10000 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10001 (nbsd_thread_lister): Add.
10002 (nbsd_nat_target::thread_alive): Likewise.
10003 (nbsd_nat_target::thread_name): Likewise.
10004 (nbsd_add_threads): Likewise.
10005 (update_thread_list::post_attach): Likewise.
10006 (nbsd_nat_target::update_thread_list): Likewise.
10007 (post_attach::pid_to_str): Likewise.
10008
10009 2020-04-06 Tom Tromey <tromey@adacore.com>
10010
10011 * ada-valprint.c (print_variant_part): Extract the variant field.
10012 (print_field_values): Use the field as the outer value when
10013 recursing.
10014
10015 2020-04-06 Tom Tromey <tromey@adacore.com>
10016
10017 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10018 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10019 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10020 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10021 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10022
10023 2020-04-06 Tom Tromey <tromey@adacore.com>
10024
10025 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10026 TYPE_CODE_ERROR.
10027
10028 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10029
10030 * nbsd-tdep.c: Include "gdbarch.h".
10031 Define enum with NetBSD signal numbers.
10032 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10033 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10034 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10035 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10036 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10037 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10038 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10039 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10040 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10041 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10042 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10043 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10044
10045 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10046
10047 PR gdb/25325
10048 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10049
10050 2020-04-03 Tom Tromey <tromey@adacore.com>
10051
10052 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10053 Read constant block.
10054
10055 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10056
10057 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10058 (gdb_bfd_get_full_section_contents): New declaration.
10059 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10060 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10061 gdb_bfd_get_full_section_contents.
10062
10063 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10064
10065 * exec.c (build_section_table): Replace internal_error with
10066 gdb_assert.
10067 (section_table_xfer_memory_partial): Likewise.
10068 * mdebugread.c (parse_partial_symbols): Likewise.
10069 * psymtab.c (lookup_partial_symbol): Likewise.
10070 * utils.c (wrap_here): Likewise.
10071
10072 2020-04-02 Tom Tromey <tromey@adacore.com>
10073
10074 * f-lang.c (build_fortran_types): Use arch_type to initialize
10075 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10076
10077 2020-04-02 Tom Tromey <tromey@adacore.com>
10078
10079 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10080 of attributes.
10081
10082 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10083 Bernd Edlinger <bernd.edlinger@hotmail.de>
10084 Tom Tromey <tromey@adacore.com>
10085
10086 * buildsym.c (buildsym_compunit::record_line): Remove
10087 deduplication code.
10088
10089 2020-04-02 Tom de Vries <tdevries@suse.de>
10090
10091 PR ada/24671
10092 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10093
10094 2020-04-02 Tom de Vries <tdevries@suse.de>
10095
10096 * dwarf2/read.c (dwarf2_gdb_index_functions,
10097 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10098 NULL.
10099 * psymtab.c (psym_lookup_global_symbol_language): New function.
10100 (psym_functions): Init psym_lookup_global_symbol_language with
10101 psym_lookup_global_symbol_language.
10102 * symfile-debug.c (debug_sym_quick_functions): Init
10103 lookup_global_symbol_language with NULL.
10104 * symfile.c (set_initial_language): Remove fixme comment.
10105 * symfile.h (struct quick_symbol_functions): Add
10106 lookup_global_symbol_language.
10107 * symtab.c (find_quick_global_symbol_language): New function.
10108 (find_main_name): Use find_quick_global_symbol_language.
10109
10110 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10111
10112 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10113
10114 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10115
10116 * buildsym.c (record_line): Fix undefined behavior and preserve
10117 lines at eof.
10118
10119 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10120
10121 * buildsym.c (record_line): Fix the resizing condition.
10122
10123 2020-04-01 Tom Tromey <tom@tromey.com>
10124
10125 * value.h (value_literal_complex): Add comment.
10126 * valops.c (value_literal_complex): Refer to value.h.
10127
10128 2020-04-01 Tom Tromey <tom@tromey.com>
10129
10130 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10131 (scalar_type): New rule, from typebase.
10132 (typebase): Use scalar_type. Recognize complex types.
10133 (field_name): Handle FLOAT_KEYWORD.
10134 (ident_tokens): Add _Complex and __complex__.
10135
10136 2020-04-01 Tom Tromey <tom@tromey.com>
10137
10138 PR exp/25299:
10139 * valarith.c (promotion_type, complex_binop): New functions.
10140 (scalar_binop): Handle complex numbers. Use promotion_type.
10141 (value_pos, value_neg, value_complement): Handle complex numbers.
10142
10143 2020-04-01 Tom Tromey <tom@tromey.com>
10144
10145 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10146 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10147 (parse_number): Handle complex numbers.
10148
10149 2020-04-01 Tom Tromey <tom@tromey.com>
10150
10151 * c-valprint.c (c_decorations): Change complex suffix to "i".
10152
10153 2020-04-01 Tom Tromey <tom@tromey.com>
10154
10155 * valprint.c (generic_value_print_complex): Use accessors.
10156 * value.h (value_real_part, value_imaginary_part): Declare.
10157 * valops.c (value_real_part, value_imaginary_part): New
10158 functions.
10159 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10160
10161 2020-04-01 Tom Tromey <tom@tromey.com>
10162
10163 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10164 (read_range_type): Update.
10165 * mdebugread.c (basic_type): Update.
10166 * go-lang.c (build_go_types): Use init_complex_type.
10167 * gdbtypes.h (struct main_type) <complex_type>: New member.
10168 (init_complex_type): Update.
10169 (arch_complex_type): Don't declare.
10170 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10171 Make name if none given. Use alloc_type_copy. Look for cached
10172 complex type.
10173 (arch_complex_type): Remove.
10174 (gdbtypes_post_init): Use init_complex_type.
10175 * f-lang.c (build_fortran_types): Use init_complex_type.
10176 * dwarf2/read.c (read_base_type): Update.
10177 * d-lang.c (build_d_types): Use init_complex_type.
10178 * ctfread.c (read_base_type): Update.
10179
10180 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10181
10182 * infrun.c (stop_all_threads): Update assertion, plus when
10183 stopping threads, take into account that we might be trying
10184 to stop an all-stop target.
10185 (stop_waiting): Call 'stop_all_threads' if there exists a
10186 non-stop target.
10187
10188 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10189
10190 * target.h (exists_non_stop_target): New function declaration.
10191 * target.c (exists_non_stop_target): New function.
10192
10193 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10194
10195 PR gdb/24789
10196 * eval.c (is_integral_or_integral_reference): New function.
10197 (evaluate_subexp_standard): Allow integer references in
10198 pointer arithmetic.
10199
10200 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10201
10202 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10203 check for no ptid in the stop reply when the target is non-stop.
10204
10205 2020-04-01 Tom Tromey <tromey@adacore.com>
10206
10207 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10208 "name" parameter to rvalue reference. Initialize m_name_holder.
10209 <lookup_name_info>: New overloads.
10210 <name>: Return gdb::string_view.
10211 <c_str>: New method.
10212 <make_ignore_params>: Update.
10213 <search_name_hash>: Update.
10214 <language_lookup_name>: Return const char *.
10215 <m_name>: Change type.
10216 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10217 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10218 (lookup_name_info::match_any): Update.
10219 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10220 Update.
10221 * minsyms.c (linkage_name_str): Update.
10222 * language.c (default_symbol_name_matcher): Update.
10223 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10224 Update.
10225 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10226 (ada_lookup_name_info::ada_lookup_name_info): Update.
10227 (literal_symbol_name_matcher): Update.
10228
10229 2020-04-01 Tom Tromey <tromey@adacore.com>
10230
10231 * psymtab.c (psymtab_search_name): Remove function.
10232 (psym_lookup_symbol): Create search name and lookup name here.
10233 (lookup_partial_symbol): Remove "name" parameter; add
10234 lookup_name.
10235 (psym_expand_symtabs_for_function): Update.
10236
10237 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10238
10239 PR tui/25597:
10240 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10241
10242 2020-03-31 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10245 memcpy.
10246
10247 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10248
10249 * features/riscv/32bit-csr.xml: Regenerated.
10250 * features/riscv/64bit-csr.xml: Regenerated.
10251
10252 2020-03-30 Tom Tromey <tromey@adacore.com>
10253
10254 * ada-valprint.c (print_variant_part): Update.
10255 * ada-lang.h (ada_which_variant_applies): Update.
10256 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10257 outer_valaddr parameters; replace with "outer" value parameter.
10258 (to_fixed_variant_branch_type): Update.
10259
10260 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10261
10262 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10263 <list>. Remove inclusion of observable.h.
10264 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10265 (struct arch_lwp_info): New struct.
10266 (class ppc_linux_dreg_interface): New class.
10267 (struct ppc_linux_process_info): New struct.
10268 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10269 <low_new_clone, low_forget_process, low_prepare_to_resume>
10270 <copy_thread_dreg_state, mark_thread_stale>
10271 <mark_debug_registers_changed, register_hw_breakpoint>
10272 <clear_hw_breakpoint, register_wp, clear_wp>
10273 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10274 <num_memory_accesses, get_trigger_type>
10275 <create_watchpoint_request, hwdebug_point_cmp>
10276 <init_arch_lwp_info, get_arch_lwp_info>
10277 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10278 methods.
10279 <struct ptid_hash>: New inner struct.
10280 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10281 members.
10282 (saved_dabr_value, hwdebug_info, max_slots_number)
10283 (struct hw_break_tuple, struct thread_points, ppc_threads)
10284 (have_ptrace_hwdebug_interface)
10285 (hwdebug_find_thread_points_by_tid)
10286 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10287 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10288 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10289 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10290 use m_dreg_interface.
10291 (hwdebug_point_cmp): Change to...
10292 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10293 reference arguments instead of pointers.
10294 (ppc_linux_nat_target::ranged_break_num_registers): Use
10295 m_dreg_interface.
10296 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10297 m_dreg_interface. Call register_hw_breakpoint.
10298 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10299 m_dreg_interface. Call clear_hw_breakpoint.
10300 (get_trigger_type): Change to...
10301 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10302 comment.
10303 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10304 use m_dreg_interface. Call register_hw_breakpoint.
10305 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10306 use m_dreg_interface. Call clear_hw_breakpoint.
10307 (can_use_watchpoint_cond_accel): Change to...
10308 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10309 method. Update comment, use m_dreg_interface and
10310 m_process_info.
10311 (calculate_dvc): Change to...
10312 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10313 m_dreg_interface.
10314 (num_memory_accesses): Change to...
10315 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10316 (check_condition): Change to...
10317 (ppc_linux_nat_target::check_condition): ...this method.
10318 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10319 comment, use m_dreg_interface.
10320 (create_watchpoint_request): Change to...
10321 (ppc_linux_nat_target::create_watchpoint_request): ...this
10322 method. Use m_dreg_interface.
10323 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10324 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10325 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10326 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10327 (ppc_linux_nat_target::low_forget_process)
10328 (ppc_linux_nat_target::low_new_fork)
10329 (ppc_linux_nat_target::low_new_clone)
10330 (ppc_linux_nat_target::low_delete_thread)
10331 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10332 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10333 only call mark_thread_stale.
10334 (ppc_linux_thread_exit): Remove.
10335 (ppc_linux_nat_target::stopped_data_address): Change to...
10336 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10337 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10338 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10339 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10340 comment. Call low_stopped_data_address.
10341 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10342 m_dreg_interface.
10343 (ppc_linux_nat_target::masked_watch_num_registers): Use
10344 m_dreg_interface.
10345 (ppc_linux_nat_target::copy_thread_dreg_state)
10346 (ppc_linux_nat_target::mark_thread_stale)
10347 (ppc_linux_nat_target::mark_debug_registers_changed)
10348 (ppc_linux_nat_target::register_hw_breakpoint)
10349 (ppc_linux_nat_target::clear_hw_breakpoint)
10350 (ppc_linux_nat_target::register_wp)
10351 (ppc_linux_nat_target::clear_wp)
10352 (ppc_linux_nat_target::init_arch_lwp_info)
10353 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10354 (_initialize_ppc_linux_nat): Remove observer callback.
10355
10356 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10357
10358 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10359 (ppc_linux_nat_target::auxv_parse)
10360 (ppc_linux_nat_target::read_description)
10361 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10362 Move up.
10363
10364 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10365
10366 * linux-nat.h (low_new_clone): New method.
10367 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10368
10369 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10372 (dbx_expand_psymtab): ... this.
10373 (start_psymtab): Update.
10374 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10375 (mdebug_expand_psymtab): ... this.
10376 (parse_partial_symbols): Update.
10377 (new_psymtab): Update.
10378 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10379 (xcoff_expand_psymtab): ... this.
10380 (xcoff_start_psymtab): Update.
10381
10382 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10383
10384 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10385 <expand_dependencies>: ... this.
10386 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10387 (partial_symtab::expand_dependencies): ... this.
10388 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10389 Update.
10390 (dwarf2_psymtab::expand_psymtab): Update.
10391 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10392 * mdebugread.c (psymtab_to_symtab_1): Update.
10393 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10394
10395 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10396
10397 * psympriv.h (discard_psymtab): Remove.
10398 * dbxread.c (dbx_end_psymtab): Update.
10399 * xcoffread.c (xcoff_end_psymtab): Update.
10400
10401 2020-03-28 Tom Tromey <tom@tromey.com>
10402
10403 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10404 comment.
10405
10406 2020-03-28 Tom Tromey <tom@tromey.com>
10407
10408 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10409
10410 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10411
10412 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10413
10414 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10415
10416 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10417
10418 2020-03-26 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10421 (mark_common_block_symbol_computed, read_tag_string_type)
10422 (attr_to_dynamic_prop, read_subrange_type): Update.
10423 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10424 to be methods on struct attribute.
10425 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10426 (read_call_site_scope, partial_die_info::read)
10427 (partial_die_info::read, lookup_die_type, follow_die_ref):
10428 Update.
10429 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10430 from dwarf2_get_ref_die_offset.
10431 (attribute::constant_value): New method, from
10432 dwarf2_get_attr_constant_value.
10433 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10434 Declare method.
10435 <constant_value>: New method.
10436
10437 2020-03-26 Tom Tromey <tom@tromey.com>
10438
10439 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10440 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10441 (dwarf_type_encoding_name): Move to stringify.c.
10442 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10443 * dwarf2/stringify.c: New file.
10444 * dwarf2/stringify.h: New file.
10445
10446 2020-03-26 Tom Tromey <tom@tromey.com>
10447
10448 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10449 Rewrite.
10450
10451 2020-03-26 Tom Tromey <tom@tromey.com>
10452
10453 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10454 methods.
10455 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10456 (lookup_ranges_base): Likewise.
10457 (read_cutu_die_from_dwo, read_full_die_1): Update.
10458
10459 2020-03-26 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/read.c (read_import_statement, read_file_scope)
10462 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10463 (read_lexical_block_scope, read_call_site_scope)
10464 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10465 (handle_struct_member_die, process_structure_scope)
10466 (update_enumeration_type_from_children)
10467 (process_enumeration_scope, read_array_type, read_common_block)
10468 (read_namespace, read_module, read_subroutine_type): Update.
10469 (sibling_die): Remove.
10470
10471 2020-03-26 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10474 (build_type_psymtabs_reader, read_structure_type)
10475 (read_enumeration_type, read_full_die_1): Update.
10476 (dwarf2_attr_no_follow): Move to die.h.
10477 * dwarf2/die.h (struct die_info) <attr>: New method.
10478
10479 2020-03-26 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10482 <base_address>: Now an optional.
10483 (dwarf2_find_base_address, dwarf2_rnglists_process)
10484 (dwarf2_ranges_process, fill_in_loclist_baton)
10485 (dwarf2_symbol_mark_computed): Update.
10486
10487 2020-03-26 Tom Tromey <tom@tromey.com>
10488
10489 * dwarf2/read.c (struct die_info): Move to die.h.
10490 * dwarf2/die.h: New file.
10491
10492 2020-03-26 Tom Tromey <tom@tromey.com>
10493
10494 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10495 * dwarf2/read.c
10496 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10497 Move to line-header.c.
10498 (read_checked_initial_length_and_offset, read_formatted_entries):
10499 Likewise.
10500 (dwarf_decode_line_header): Split into two.
10501 * dwarf2/line-header.c
10502 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10503 Move from read.c.
10504 (read_checked_initial_length_and_offset, read_formatted_entries):
10505 Likewise.
10506 (dwarf_decode_line_header): New function, split from read.c.
10507
10508 2020-03-26 Tom Tromey <tom@tromey.com>
10509
10510 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10511 Declare method.
10512 * dwarf2/read.c (read_attribute_value): Update.
10513 (dwarf2_per_objfile::read_line_string): Rename from
10514 read_indirect_line_string.
10515 (read_formatted_entries): Update.
10516
10517 2020-03-26 Tom Tromey <tom@tromey.com>
10518
10519 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10520 variable.
10521
10522 2020-03-26 Tom Tromey <tom@tromey.com>
10523
10524 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10525 const.
10526 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10527 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10528 parameter const.
10529
10530 2020-03-26 Tom Tromey <tom@tromey.com>
10531
10532 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10533 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10534 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10535 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10536
10537 2020-03-26 Tom Tromey <tom@tromey.com>
10538
10539 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10540 file_names_size, file_full_name, file_file_name>: Use const.
10541 <file_name_at, file_names>: Add const overload.
10542 * dwarf2/line-header.c (line_header::file_file_name)
10543 (line_header::file_full_name): Update.
10544
10545 2020-03-26 Tom Tromey <tom@tromey.com>
10546
10547 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10548 (macro_start_file, consume_improper_spaces)
10549 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10550 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10551 (dwarf_decode_macros): Move to macro.c.
10552 * dwarf2/macro.c: New file.
10553 * dwarf2/macro.h: New file.
10554 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10555
10556 2020-03-26 Tom Tromey <tom@tromey.com>
10557
10558 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10559 method.
10560 * dwarf2/section.c: New method. From
10561 read_indirect_string_at_offset_from.
10562 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10563 (read_indirect_string_at_offset_from): Move to section.c.
10564 (read_indirect_string_at_offset): Rewrite.
10565 (read_indirect_line_string_at_offset): Remove.
10566 (read_indirect_string, read_indirect_line_string)
10567 (dwarf_decode_macro_bytes): Update.
10568
10569 2020-03-26 Tom Tromey <tom@tromey.com>
10570
10571 * dwarf2/section.h (struct dwarf2_section_info)
10572 <overload_complaint>: Declare.
10573 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10574 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10575 Rename from dwarf2_section_buffer_overflow_complaint.
10576 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10577 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10578
10579 2020-03-26 Tom Tromey <tom@tromey.com>
10580
10581 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10582 Declare.
10583 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10584 Move from read.c.
10585 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10586 to section.c.
10587
10588 2020-03-26 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10591
10592 2020-03-26 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10595 "builder".
10596 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10597 parameter.
10598 (dwarf_decode_macros): Update.
10599
10600 2020-03-26 Tom Tromey <tom@tromey.com>
10601
10602 * dwarf2/read.c (read_attribute_value): Update.
10603 (read_indirect_string_from_dwz): Move to dwz.c; change into
10604 method.
10605 (dwarf_decode_macro_bytes): Update.
10606 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10607 * dwarf2/dwz.c: New file.
10608 * Makefile.in (COMMON_SFILES): Add dwz.c.
10609
10610 2020-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10613 * dwarf2/read.c: Add include.
10614 * dwarf2/index-write.c: Add include.
10615 * dwarf2/index-cache.c: Add include.
10616 * dwarf2/dwz.h: New file.
10617
10618 2020-03-25 Tom Tromey <tom@tromey.com>
10619
10620 * compile/compile-object-load.c (get_out_value_type): Mention
10621 correct symbol name in error message.
10622
10623 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10624
10625 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10626
10627 2020-03-25 Tom de Vries <tdevries@suse.de>
10628
10629 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10630 * symmisc.c (dump_symtab_1): Print user and includes fields.
10631 (maintenance_info_symtabs): Same.
10632
10633 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 PR gdb/25534
10636 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10637 (riscv_regcache_cooked_write): New function.
10638 (riscv_push_dummy_call): Use new function.
10639 (riscv_return_value): Likewise.
10640
10641 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10642
10643 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10644 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10645 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10646 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10647 * infrun.c (follow_fork): Likewise.
10648 (follow_fork_inferior): Likewise.
10649 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10650 * linux-nat.h (class linux_nat_target): Likewise.
10651 * remote.c (class remote_target) <follow_fork>: Likewise.
10652 (remote_target::follow_fork): Likewise.
10653 * target-delegates.c: Re-generate.
10654 * target.c (default_follow_fork): Likewise.
10655 (target_follow_fork): Likewise.
10656 * target.h (struct target_ops) <follow_fork>: Likewise.
10657 (target_follow_fork): Likewise.
10658
10659 2020-03-24 Tom de Vries <tdevries@suse.de>
10660
10661 * psymtab.c (maintenance_info_psymtabs): Print user field.
10662
10663 2020-03-20 Tom Tromey <tromey@adacore.com>
10664
10665 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10666 const.
10667 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10668 const.
10669
10670 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10671
10672 * ptrace.m4: Don't check for ptrace declaration.
10673 * config.in: Re-generate.
10674 * configure: Re-generate.
10675 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10676 not defined.
10677
10678 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10679
10680 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10681 `PTRACE_TYPE_RET'.
10682 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10683 * sparc-nat.c (gdb_ptrace): Likewise.
10684 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10685
10686 2020-03-20 Tom Tromey <tromey@adacore.com>
10687
10688 * c-exp.y (lex_one_token): Fix assert.
10689
10690 2020-03-20 Tom Tromey <tromey@adacore.com>
10691
10692 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10693 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10694 strncpy call.
10695
10696 2020-03-20 Tom Tromey <tromey@adacore.com>
10697
10698 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10699
10700 2020-03-20 Tom Tromey <tromey@adacore.com>
10701
10702 * ada-valprint.c (print_variant_part): Remove parameters; switch
10703 to value-based API.
10704 (print_field_values): Likewise.
10705 (ada_val_print_struct_union): Likewise.
10706 (ada_value_print_1): Update.
10707
10708 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10709
10710 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10711 nbsd_nat_target instead of inf_ptrace_target.
10712 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10713 nbsd_nat_target.
10714
10715 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10716
10717 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10718 it to the ptrace call.
10719 * (store_registers): Likewise.
10720
10721 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10722
10723 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10724 it to the ptrace call.
10725 * (store_registers): Likewise.
10726
10727 2020-03-19 Luis Machado <luis.machado@linaro.org>
10728
10729 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10730 valid, fetch vg value from ptrace.
10731
10732 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10733 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10734 * inf-ptrace.c: Likewise.
10735 * (gdb_ptrace): Add.
10736 * (inf_ptrace_target::resume): Update.
10737 * (inf_ptrace_target::xfer_partial): Likewise.
10738 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10739 * (inf_ptrace_peek_poke): Update.
10740
10741 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10742
10743 * x86-bsd-nat.c (gdb_ptrace): New.
10744 * (x86bsd_dr_set): Add new argument `ptid'.
10745 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10746 x86bsd_dr_set_addr): Update.
10747
10748 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * remote.c (remote_target::process_stop_reply): Handle events for
10751 all threads differently.
10752
10753 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * completer.c (completion_tracker::remove_completion): Define new
10756 function.
10757 * completer.h (completion_tracker::remove_completion): Declare new
10758 function.
10759 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10760 when adding a C++ function symbol.
10761
10762 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10763
10764 * completer.c (completion_tracker::completion_hash_entry): Define
10765 new class.
10766 (advance_to_filename_complete_word_point): Call
10767 recompute_lowest_common_denominator.
10768 (completion_tracker::completion_tracker): Call discard_completions
10769 to setup the hash table.
10770 (completion_tracker::discard_completions): Allow for being called
10771 from the constructor, pass new equal function, and element deleter
10772 when constructing the hash table. Initialise new class member
10773 variables.
10774 (completion_tracker::maybe_add_completion): Remove use of
10775 m_entries_vec, and store more information into m_entries_hash.
10776 (completion_tracker::recompute_lcd_visitor): New function, most
10777 content taken from...
10778 (completion_tracker::recompute_lowest_common_denominator):
10779 ...here, this now just visits each item in the hash calling the
10780 above visitor.
10781 (completion_tracker::build_completion_result): Remove use of
10782 m_entries_vec, call recompute_lowest_common_denominator.
10783 * completer.h (completion_tracker::have_completions): Remove use
10784 of m_entries_vec.
10785 (completion_tracker::completion_hash_entry): Declare new class.
10786 (completion_tracker::recompute_lowest_common_denominator): Change
10787 function signature.
10788 (completion_tracker::recompute_lcd_visitor): Declare new function.
10789 (completion_tracker::m_entries_vec): Delete.
10790 (completion_tracker::m_entries_hash): Initialize to NULL.
10791 (completion_tracker::m_lowest_common_denominator_valid): New
10792 member variable.
10793 (completion_tracker::m_lowest_common_denominator_max_length): New
10794 member variable.
10795
10796 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10797
10798 * regformats/regdef.h: Put reg in gdb namespace.
10799
10800 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10801
10802 * i386-bsd-nat.c (gdb_ptrace): New.
10803 * (i386bsd_fetch_inferior_registers,
10804 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10805 * (i386bsd_fetch_inferior_registers,
10806 i386bsd_store_inferior_registers) Use gdb_ptrace.
10807
10808 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10809
10810 * amd64-bsd-nat.c (gdb_ptrace): New.
10811 * (amd64bsd_fetch_inferior_registers,
10812 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10813 * (amd64bsd_fetch_inferior_registers,
10814 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10815
10816 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10817
10818 * user-regs.c (user_reg::read): Rename to...
10819 (user_reg::xread): ...this.
10820 * (append_user_reg): Rename argument `read' to `xread'.
10821 * (user_reg_add_builtin): Likewise.
10822 * (user_reg_add): Likewise.
10823 * (value_of_user_reg): Likewise.
10824
10825 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10826
10827 * sparc-nat.c (gdb_ptrace): New.
10828 * sparc-nat.c (sparc_fetch_inferior_registers)
10829 (sparc_store_inferior_registers) Remove obsolete comment.
10830 * sparc-nat.c (sparc_fetch_inferior_registers)
10831 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10832 * sparc-nat.c (sparc_fetch_inferior_registers)
10833 (sparc_store_inferior_registers) Use gdb_ptrace.
10834
10835 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10836
10837 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10838 it to the ptrace call.
10839 * sh-nbsd-nat.c (store_registers): Likewise.
10840
10841 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10842
10843 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10844 nbsd_nat_target instead of inf_ptrace_target.
10845 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10846 nbsd_nat_target.
10847
10848 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10849
10850 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10851
10852 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10853
10854 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10855 <sys/sysctl.h>.
10856 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10857
10858 2020-03-17 Tom de Vries <tdevries@suse.de>
10859
10860 PR gdb/23710
10861 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10862 fields.
10863 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10864 fields.
10865 (process_imported_unit_die): Skip import of c++ CUs.
10866
10867 2020-03-16 Tom Tromey <tom@tromey.com>
10868
10869 * p-valprint.c (pascal_object_print_value): Initialize
10870 base_value.
10871
10872 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10873 Shahab Vahedi <shahab@synopsys.com>
10874
10875 * Makefile.in: Add arch/arc.o
10876 * configure.tgt: Likewise.
10877 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10878 (_initialize_arc_tdep): Don't initialize old target descriptions.
10879 (arc_read_description): New function to cache target descriptions.
10880 * arc-tdep.h (arc_read_description): Add proto type.
10881 * arch/arc.c: New file.
10882 * arch/arc.h: Likewise.
10883 * features/Makefile: Replace old target descriptions with new.
10884 * features/arc-arcompact.c: Remove.
10885 * features/arc-arcompact.xml: Likewise.
10886 * features/arc-v2.c: Likewise
10887 * features/arc-v2.xml: Likewise
10888 * features/arc/aux-arcompact.xml: New file.
10889 * features/arc/aux-v2.xml: Likewise.
10890 * features/arc/core-arcompact.xml: Likewise.
10891 * features/arc/core-v2.xml: Likewise.
10892 * features/arc/aux-arcompact.c: Generate.
10893 * features/arc/aux-v2.c: Likewise.
10894 * features/arc/core-arcompact.c: Likewise.
10895 * features/arc/core-v2.c: Likewise.
10896 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10897
10898 2020-03-16 Tom Tromey <tromey@adacore.com>
10899
10900 PR gdb/25663:
10901 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10902 putting value into bcache.
10903
10904 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10905
10906 PR gdb/21500
10907 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10908 to...
10909 (amd64_windows_init_abi_common): ... this. Don't set size of
10910 long type.
10911 (amd64_windows_init_abi): New function.
10912 (amd64_cygwin_init_abi): New function.
10913 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10914 the Cygwin OS ABI.
10915 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10916 comment.
10917
10918 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10919
10920 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10921 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10922 (pe_import_directory_entry): New struct type.
10923 (is_linked_with_cygwin_dll): New function.
10924 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10925 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10926 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10927
10928 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10929
10930 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10931 i386_cygwin_core_osabi_sniffer.
10932
10933 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10934
10935 * i386-cygwin-tdep.c: Rename to...
10936 * i386-windows-tdep.c: ... this.
10937 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10938 i386-windows-tdep.c.
10939 * configure.tgt: Likewise.
10940
10941 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10944 * osabi.c (gdb_osabi_names): Add "Windows".
10945 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10946 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10947 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10948 i386_cygwin_osabi_sniffer.
10949 (_initialize_i386_cygwin_tdep): Register OS ABI
10950 GDB_OSABI_WINDOWS for i386.
10951 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10952 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10953 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10954 for x86-64.
10955 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10956 when the target matches '*-*-mingw*'.
10957
10958 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10959
10960 * defs.h (enum gdb_osabi): Move to...
10961 * osabi.h (enum gdb_osabi): ... here.
10962 * gdbarch.sh: Include osabi.h in gdbarch.h.
10963 * gdbarch.h: Re-generate.
10964
10965 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10968 function.
10969 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10970
10971 2020-03-14 Tom Tromey <tom@tromey.com>
10972
10973 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10974 for C++.
10975 (c_type_print_modifier): Likewise. Add "language" parameter.
10976 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10977 (c_type_print_base_1): Update.
10978 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10979 constants.
10980 * type-stack.c (type_stack::insert): Handle tp_atomic and
10981 tp_restrict.
10982 (type_stack::follow_type_instance_flags): Likewise.
10983 (type_stack::follow_types): Likewise. Merge type-following code.
10984 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10985 (space_identifier, cv_with_space_id)
10986 (const_or_volatile_or_space_identifier_noopt)
10987 (const_or_volatile_or_space_identifier): Remove.
10988 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10989 rules.
10990 (ptr_operator, typebase): Update.
10991 (enum token_flag) <FLAG_C>: New constant.
10992 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10993 "_Atomic".
10994 (lex_one_token): Handle FLAG_C.
10995
10996 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10997
10998 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10999 it to the ptrace call.
11000 * m68k-bsd-nat.c (store_registers): Likewise.
11001
11002 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11003
11004 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11005 gdb_byte *.
11006 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11007 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11008 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11009
11010 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11011
11012 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11013 nbsd_nat_target instead of inf_ptrace_target.
11014 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11015 nbsd_nat_target.
11016
11017 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11018
11019 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11020 register_t.
11021
11022 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11023
11024 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11025 it to the ptrace call.
11026 * alpha-bsd-nat.c (store_registers): Likewise.
11027
11028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11029
11030 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11031 includes.
11032 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11033 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11034 fill_fpregset): Likewise.
11035
11036 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11037
11038 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11039 nbsd_nat_target instead of inf_ptrace_target.
11040 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11041 nbsd_nat_target.
11042
11043 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11044
11045 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11046 register_t.
11047
11048 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11049
11050 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11051 it to the ptrace call.
11052 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11053 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11054 * arm-nbsd-nat.c (store_register): Likewise.
11055 * arm-nbsd-nat.c (store_regs): Likewise.
11056 * arm-nbsd-nat.c (store_fp_register): Likewise.
11057 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11058
11059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11060
11061 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11062 nbsd_nat_target instead of inf_ptrace_target.
11063 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11064 nbsd_nat_target.
11065
11066 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11067
11068 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11069 it to the ptrace call.
11070 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11071
11072 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11073
11074 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11075 it to the ptrace call.
11076 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11077
11078 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11079
11080 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11081 gdb_byte *.
11082 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11083
11084 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11085
11086 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11087 instead of inf_ptrace_target.
11088 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11089 nbsd_nat_target.
11090
11091 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11092
11093 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11094 register_t.
11095
11096 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11097
11098 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11099 register_t.
11100
11101 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11102
11103 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11104 register_t.
11105
11106 2020-03-13 Tom Tromey <tom@tromey.com>
11107
11108 * value.h (val_print): Don't declare.
11109 * valprint.h (val_print_array_elements)
11110 (val_print_scalar_formatted, generic_val_print): Don't declare.
11111 * valprint.c (generic_val_print_array): Take a struct value.
11112 (generic_val_print_ptr, generic_val_print_memberptr)
11113 (generic_val_print_bool, generic_val_print_int)
11114 (generic_val_print_char, generic_val_print_complex)
11115 (generic_val_print): Remove.
11116 (generic_value_print): Update.
11117 (do_val_print): Remove unused parameters. Don't call
11118 la_val_print.
11119 (val_print): Remove.
11120 (common_val_print): Update. Don't call value_check_printable.
11121 (val_print_scalar_formatted, val_print_array_elements): Remove.
11122 * rust-lang.c (rust_val_print): Remove.
11123 (rust_language_defn): Update.
11124 * p-valprint.c (pascal_val_print): Remove.
11125 (pascal_value_print_inner): Update.
11126 (pascal_object_print_val_fields, pascal_object_print_val):
11127 Remove.
11128 (pascal_object_print_static_field): Update.
11129 * p-lang.h (pascal_val_print): Don't declare.
11130 * p-lang.c (pascal_language_defn): Update.
11131 * opencl-lang.c (opencl_language_defn): Update.
11132 * objc-lang.c (objc_language_defn): Update.
11133 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11134 * m2-lang.h (m2_val_print): Don't declare.
11135 * m2-lang.c (m2_language_defn): Update.
11136 * language.h (struct language_defn) <la_val_print>: Remove.
11137 * language.c (unk_lang_value_print_inner): Rename. Change
11138 argument types.
11139 (unknown_language_defn, auto_language_defn): Update.
11140 * go-valprint.c (go_val_print): Remove.
11141 * go-lang.h (go_val_print): Don't declare.
11142 * go-lang.c (go_language_defn): Update.
11143 * f-valprint.c (f_val_print): Remove.
11144 * f-lang.h (f_value_print): Don't declare.
11145 * f-lang.c (f_language_defn): Update.
11146 * d-valprint.c (d_val_print): Remove.
11147 * d-lang.h (d_value_print): Don't declare.
11148 * d-lang.c (d_language_defn): Update.
11149 * cp-valprint.c (cp_print_value_fields)
11150 (cp_print_value_fields_rtti, cp_print_value): Remove.
11151 (cp_print_static_field): Update.
11152 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11153 (c_val_print_struct, c_val_print_union, c_val_print_int)
11154 (c_val_print_memberptr, c_val_print): Remove.
11155 * c-lang.h (c_val_print_array, cp_print_value_fields)
11156 (cp_print_value_fields_rtti): Don't declare.
11157 * c-lang.c (c_language_defn, cplus_language_defn)
11158 (asm_language_defn, minimal_language_defn): Update.
11159 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11160 (ada_val_print_enum): Take a struct value.
11161 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11162 (ada_val_print): Remove.
11163 (ada_value_print_1): Update.
11164 (printable_val_type): Remove.
11165 * ada-lang.h (ada_val_print): Don't declare.
11166 * ada-lang.c (ada_language_defn): Update.
11167
11168 2020-03-13 Tom Tromey <tom@tromey.com>
11169
11170 * valprint.c (do_val_print): Update.
11171 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11172 a struct value.
11173 (value_to_value_object_no_release): Declare.
11174 * python/py-value.c (value_to_value_object_no_release): New
11175 function.
11176 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11177 struct value.
11178 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11179 function.
11180 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11181 a struct value.
11182 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11183 Declare.
11184 (gdbscm_apply_val_pretty_printer): Take a struct value.
11185 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11186 value.
11187 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11188 value.
11189 * extension-priv.h (struct extension_language_ops)
11190 <apply_val_pretty_printer>: Take a struct value.
11191 * cp-valprint.c (cp_print_value): Create a struct value.
11192 (cp_print_value): Update.
11193
11194 2020-03-13 Tom Tromey <tom@tromey.com>
11195
11196 * ada-valprint.c (print_field_values): Call common_val_print.
11197
11198 2020-03-13 Tom Tromey <tom@tromey.com>
11199
11200 * ada-valprint.c (val_print_packed_array_elements): Remove
11201 bitoffset and val parameters. Call common_val_print.
11202 (ada_val_print_string): Remove offset, address, and original_value
11203 parameters.
11204 (ada_val_print_array): Update.
11205 (ada_value_print_array): New function.
11206 (ada_value_print_1): Call it.
11207
11208 2020-03-13 Tom Tromey <tom@tromey.com>
11209
11210 * ada-valprint.c (ada_value_print): Use common_val_print.
11211
11212 2020-03-13 Tom Tromey <tom@tromey.com>
11213
11214 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11215
11216 2020-03-13 Tom Tromey <tom@tromey.com>
11217
11218 * ada-valprint.c (ada_value_print_num): New function.
11219 (ada_value_print_1): Use it.
11220
11221 2020-03-13 Tom Tromey <tom@tromey.com>
11222
11223 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11224
11225 2020-03-13 Tom Tromey <tom@tromey.com>
11226
11227 * ada-valprint.c (ada_value_print_ptr): New function.
11228 (ada_value_print_1): Use it.
11229
11230 2020-03-13 Tom Tromey <tom@tromey.com>
11231
11232 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11233 call common_val_print.
11234 (ada_val_print_1): Update.
11235 (ada_value_print_1): New function.
11236 (ada_value_print_inner): Rewrite.
11237
11238 2020-03-13 Tom Tromey <tom@tromey.com>
11239
11240 * cp-valprint.c (cp_print_value_fields): Update.
11241 (cp_print_value): New function.
11242
11243 2020-03-13 Tom Tromey <tom@tromey.com>
11244
11245 * m2-valprint.c (m2_value_print_inner): Use
11246 cp_print_value_fields.
11247 * cp-valprint.c (cp_print_value_fields): New function.
11248 * c-valprint.c (c_value_print_struct): New function.
11249 (c_value_print_inner): Use c_value_print_struct.
11250 * c-lang.h (cp_print_value_fields): Declare.
11251
11252 2020-03-13 Tom Tromey <tom@tromey.com>
11253
11254 * c-valprint.c (c_value_print_array): New function.
11255 (c_value_print_inner): Use it.
11256
11257 2020-03-13 Tom Tromey <tom@tromey.com>
11258
11259 * c-valprint.c (c_value_print_memberptr): New function.
11260 (c_value_print_inner): Use it.
11261
11262 2020-03-13 Tom Tromey <tom@tromey.com>
11263
11264 * c-valprint.c (c_value_print_int): New function.
11265 (c_value_print_inner): Use it.
11266
11267 2020-03-13 Tom Tromey <tom@tromey.com>
11268
11269 * c-valprint.c (c_value_print_ptr): New function.
11270 (c_value_print_inner): Use it.
11271
11272 2020-03-13 Tom Tromey <tom@tromey.com>
11273
11274 * c-valprint.c (c_value_print_inner): Rewrite.
11275
11276 2020-03-13 Tom Tromey <tom@tromey.com>
11277
11278 * valprint.c (generic_value_print_complex): New function.
11279 (generic_value_print): Use it.
11280
11281 2020-03-13 Tom Tromey <tom@tromey.com>
11282
11283 * valprint.c (generic_val_print_float): Don't call
11284 val_print_scalar_formatted.
11285 (generic_val_print, generic_value_print): Update.
11286
11287 2020-03-13 Tom Tromey <tom@tromey.com>
11288
11289 * valprint.c (generic_value_print_char): New function
11290 (generic_value_print): Use it.
11291
11292 2020-03-13 Tom Tromey <tom@tromey.com>
11293
11294 * valprint.c (generic_value_print_int): New function.
11295 (generic_value_print): Use it.
11296
11297 2020-03-13 Tom Tromey <tom@tromey.com>
11298
11299 * valprint.c (generic_value_print_bool): New function.
11300 (generic_value_print): Use it.
11301
11302 2020-03-13 Tom Tromey <tom@tromey.com>
11303
11304 * valprint.c (generic_val_print_func): Simplify.
11305 (generic_val_print, generic_value_print): Update.
11306
11307 2020-03-13 Tom Tromey <tom@tromey.com>
11308
11309 * valprint.c (generic_val_print_flags): Remove.
11310 (generic_val_print, generic_value_print): Update.
11311 (val_print_type_code_flags): Add original_value parameter.
11312
11313 2020-03-13 Tom Tromey <tom@tromey.com>
11314
11315 * valprint.c (generic_val_print): Update.
11316 (generic_value_print): Update.
11317 * valprint.c (generic_val_print_enum): Don't call
11318 val_print_scalar_formatted.
11319
11320 2020-03-13 Tom Tromey <tom@tromey.com>
11321
11322 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11323 * valprint.c (generic_value_print_ptr): New function.
11324
11325 2020-03-13 Tom Tromey <tom@tromey.com>
11326
11327 * valprint.c (generic_value_print): Rewrite.
11328
11329 2020-03-13 Tom Tromey <tom@tromey.com>
11330
11331 * p-valprint.c (pascal_object_print_value_fields)
11332 (pascal_object_print_value): New functions.
11333
11334 2020-03-13 Tom Tromey <tom@tromey.com>
11335
11336 * p-valprint.c (pascal_value_print_inner): Rewrite.
11337
11338 2020-03-13 Tom Tromey <tom@tromey.com>
11339
11340 * f-valprint.c (f_value_print_innner): Rewrite.
11341
11342 2020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * m2-valprint.c (m2_print_unbounded_array): New overload.
11345 (m2_print_unbounded_array): Update.
11346 (m2_print_array_contents): Take a struct value.
11347 (m2_value_print_inner): Rewrite.
11348
11349 2020-03-13 Tom Tromey <tom@tromey.com>
11350
11351 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11352 (d_value_print_inner): New function.
11353 * d-lang.h (d_value_print_inner): Declare.
11354 * d-lang.c (d_language_defn): Use d_value_print_inner.
11355
11356 2020-03-13 Tom Tromey <tom@tromey.com>
11357
11358 * go-valprint.c (go_value_print_inner): New function.
11359 * go-lang.h (go_value_print_inner): Declare.
11360 * go-lang.c (go_language_defn): Use go_value_print_inner.
11361
11362 2020-03-13 Tom Tromey <tom@tromey.com>
11363
11364 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11365 API.
11366 (rust_val_print): Rewrite.
11367 (rust_value_print_inner): New function, from rust_val_print.
11368 (rust_language_defn): Use rust_value_print_inner.
11369
11370 2020-03-13 Tom Tromey <tom@tromey.com>
11371
11372 * ada-valprint.c (ada_value_print_inner): New function.
11373 * ada-lang.h (ada_value_print_inner): Declare.
11374 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11375
11376 2020-03-13 Tom Tromey <tom@tromey.com>
11377
11378 * f-valprint.c (f_value_print_innner): New function.
11379 * f-lang.h (f_value_print_innner): Declare.
11380 * f-lang.c (f_language_defn): Use f_value_print_innner.
11381
11382 2020-03-13 Tom Tromey <tom@tromey.com>
11383
11384 * p-valprint.c (pascal_value_print_inner): New function.
11385 * p-lang.h (pascal_value_print_inner): Declare.
11386 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11387
11388 2020-03-13 Tom Tromey <tom@tromey.com>
11389
11390 * m2-valprint.c (m2_value_print_inner): New function.
11391 * m2-lang.h (m2_value_print_inner): Declare.
11392 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11393
11394 2020-03-13 Tom Tromey <tom@tromey.com>
11395
11396 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11397 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11398 * c-valprint.c (c_value_print_inner): New function.
11399 * c-lang.h (c_value_print_inner): Declare.
11400 * c-lang.c (c_language_defn, cplus_language_defn)
11401 (asm_language_defn, minimal_language_defn): Use
11402 c_value_print_inner.
11403
11404 2020-03-13 Tom Tromey <tom@tromey.com>
11405
11406 * p-valprint.c (pascal_object_print_value_fields): Now static.
11407 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11408
11409 2020-03-13 Tom Tromey <tom@tromey.com>
11410
11411 * c-valprint.c (c_val_print_array): Simplify.
11412
11413 2020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * valprint.c (value_print_array_elements): New function.
11416 * valprint.h (value_print_array_elements): Declare.
11417
11418 2020-03-13 Tom Tromey <tom@tromey.com>
11419
11420 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11421 * mips-tdep.c (mips_print_register): Use
11422 value_print_scalar_formatted.
11423
11424 2020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * valprint.h (value_print_scalar_formatted): Declare.
11427 * valprint.c (value_print_scalar_formatted): New function.
11428
11429 2020-03-13 Tom Tromey <tom@tromey.com>
11430
11431 * valprint.h (generic_value_print): Declare.
11432 * valprint.c (generic_value_print): New function.
11433
11434 2020-03-13 Tom Tromey <tom@tromey.com>
11435
11436 * valprint.c (do_val_print): Call la_value_print_inner, if
11437 available.
11438 * rust-lang.c (rust_language_defn): Update.
11439 * p-lang.c (pascal_language_defn): Update.
11440 * opencl-lang.c (opencl_language_defn): Update.
11441 * objc-lang.c (objc_language_defn): Update.
11442 * m2-lang.c (m2_language_defn): Update.
11443 * language.h (struct language_defn) <la_value_print_inner>: New
11444 member.
11445 * language.c (unknown_language_defn, auto_language_defn): Update.
11446 * go-lang.c (go_language_defn): Update.
11447 * f-lang.c (f_language_defn): Update.
11448 * d-lang.c (d_language_defn): Update.
11449 * c-lang.c (c_language_defn, cplus_language_defn)
11450 (asm_language_defn, minimal_language_defn): Update.
11451 * ada-lang.c (ada_language_defn): Update.
11452
11453 2020-03-13 Tom Tromey <tom@tromey.com>
11454
11455 * c-valprint.c (c_value_print): Use common_val_print.
11456
11457 2020-03-13 Tom Tromey <tom@tromey.com>
11458
11459 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11460
11461 2020-03-13 Tom Tromey <tom@tromey.com>
11462
11463 * f-valprint.c (f77_print_array_1, f_val_print): Use
11464 common_val_print.
11465
11466 2020-03-13 Tom Tromey <tom@tromey.com>
11467
11468 * riscv-tdep.c (riscv_print_one_register_info): Use
11469 common_val_print.
11470
11471 2020-03-13 Tom Tromey <tom@tromey.com>
11472
11473 * mi/mi-main.c (output_register): Use common_val_print.
11474
11475 2020-03-13 Tom Tromey <tom@tromey.com>
11476
11477 * infcmd.c (default_print_one_register_info): Use
11478 common_val_print.
11479
11480 2020-03-13 Tom Tromey <tom@tromey.com>
11481
11482 * valprint.h (common_val_print_checked): Declare.
11483 * valprint.c (common_val_print_checked): New function.
11484 * stack.c (print_frame_arg): Use common_val_print_checked.
11485
11486 2020-03-13 Tom Tromey <tom@tromey.com>
11487
11488 * valprint.c (do_val_print): New function, from val_print.
11489 (val_print): Use do_val_print.
11490 (common_val_print): Use do_val_print.
11491
11492 2020-03-13 Tom Tromey <tom@tromey.com>
11493
11494 * valprint.c (value_print): Use scoped_value_mark.
11495
11496 2020-03-13 Tom de Vries <tdevries@suse.de>
11497
11498 PR symtab/25646
11499 * psymtab.c (partial_symtab::partial_symtab): Don't set
11500 globals_offset and statics_offset. Push element onto
11501 current_global_psymbols and current_static_psymbols stacks.
11502 (concat): New function.
11503 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11504 element from current_global_psymbols and current_static_psymbols
11505 stacks. Concat popped elements to global_psymbols and
11506 static_symbols.
11507 (add_psymbol_to_list): Use current_global_psymbols and
11508 current_static_psymbols stacks.
11509 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11510 current_static_psymbols fields.
11511
11512 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11513
11514 * corelow.c (sniff_core_bfd): Remove.
11515 (class core_target) <m_core_vec>: Remove.
11516 (core_target::core_target): Update.
11517 (core_file_fns): Remove.
11518 (deprecated_add_core_fns): Remove.
11519 (default_core_sniffer): Remove.
11520 (sniff_core_bfd): Remove.
11521 (default_check_format): Remove.
11522 (gdb_check_format): Remove.
11523 (core_target_open): Update.
11524 (core_target::get_core_register_section): Update.
11525 (get_core_registers_cb): Update.
11526 (core_target::fetch_registers): Update.
11527 * gdbcore.h (struct core_fns): Remove.
11528 (deprecated_add_core_fns): Remove.
11529 (default_core_sniffer): Remove.
11530 (default_check_format): Remove.
11531
11532 2020-03-12 Tom Tromey <tom@tromey.com>
11533
11534 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11535 CORE_ADDR.
11536 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11537
11538 2020-03-12 Tom Tromey <tom@tromey.com>
11539
11540 * remote.c (remote_target::download_tracepoint)
11541 (remote_target::enable_tracepoint)
11542 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11543 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11544 sprintf_vma.
11545
11546 2020-03-12 Tom Tromey <tom@tromey.com>
11547
11548 * symfile-mem.c: Update CORE_ADDR size assert.
11549
11550 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * selftest.m4: Move to gdbsupport/.
11553 * acinclude.m4: Update path to selftest.m4.
11554
11555 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11556
11557 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11558 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11559 gdbarch-selfselftests.c and selftest-arch.c.
11560 (SUBDIR_UNITTESTS_OBS): Rename to...
11561 (SELFTESTS_OBS): ... this.
11562 (COMMON_SFILES): Remove disasm-selftests.c and
11563 gdbarch-selftests.c.
11564 * configure.ac: Don't add selftest-arch.{c,o} to
11565 CONFIG_{SRCS,OBS}.
11566 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11567 preprocessor conditions.
11568
11569 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11570
11571 * configure.ac: Don't source bfd/development.sh.
11572 * selftest.m4: Modify comment.
11573 * configure: Re-generate.
11574
11575 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11578 not "true" or "false".
11579 * configure: Re-generate.
11580
11581 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11582
11583 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11584 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11585 renamed to arm_nbsd_supply_gregset.
11586 (fetch_register): Update to call arm_nbsd_supply_gregset.
11587 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11588 (arm_netbsd_nat_target::fetch_registers): Update.
11589 (fetch_elfcore_registers): Removed.
11590 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11591 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11592 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11593 not require NetBSD system headers.
11594 (arm_nbsd_regset): New struct.
11595 (arm_nbsd_iterate_over_regset_sections): New function.
11596 (arm_netbsd_init_abi_common): Updated to call
11597 set_gdbarch_iterate_over_regset_sections.
11598 * arm-nbsd-tdep.h: New file.
11599
11600 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11601
11602 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11603 recursion.
11604
11605 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11606
11607 * configure: Re-generate.
11608
11609 2020-03-11 Tom Tromey <tromey@adacore.com>
11610
11611 * ada-typeprint.c (print_choices): Fix comment.
11612
11613 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11614
11615 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11616 previous item in the list, when the list has no items.
11617
11618 2020-03-11 Tom de Vries <tdevries@suse.de>
11619
11620 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11621 PROP_LOCLIST handling code.
11622
11623 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11624
11625 * buildsym-legacy.c (record_line): Pass extra parameter to
11626 record_line.
11627 * buildsym.c (buildsym_compunit::record_line): Take an extra
11628 parameter, reduce duplication in the line table, and record the
11629 is_stmt flag in the line table.
11630 * buildsym.h (buildsym_compunit::record_line): Add extra
11631 parameter.
11632 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11633 non-statement lines.
11634 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11635 this to the symtab builder.
11636 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11637 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11638 through to dwarf_record_line_1.
11639 * infrun.c (process_event_stop_test): When stepping, don't stop at
11640 a non-statement instruction, and only refresh the step info when
11641 we land in the middle of a line's range. Also add an extra
11642 comment.
11643 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11644 field.
11645 * record-btrace.c (btrace_find_line_range): Only record lines
11646 marked as is-statement.
11647 * stack.c (frame_show_address): Show the frame address if we are
11648 in a non-statement sal.
11649 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11650 (maintenance_print_one_line_table): Print a header for the is_stmt
11651 column, and include is_stmt information in the output.
11652 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11653 preference to non-statements.
11654 (find_pcs_for_symtab_line): Prefer is-statement entries.
11655 (find_line_common): Likewise.
11656 * symtab.h (struct linetable_entry): Add is_stmt field.
11657 (struct symtab_and_line): Likewise.
11658 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11659 arranging the line table.
11660
11661 2020-03-07 Tom de Vries <tdevries@suse.de>
11662
11663 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11664 DIE.
11665
11666 2020-03-07 Tom Tromey <tom@tromey.com>
11667
11668 * valops.c (value_literal_complex): Remove obsolete comment.
11669 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11670 comment.
11671
11672 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11673
11674 * infrun.h: Forward-declare thread_info.
11675 (set_step_info): Add thread_info parameter, add doc.
11676 * infrun.c (set_step_info): Add thread_info parameter, move doc
11677 to header.
11678 * infrun.c (process_event_stop_test): Pass thread to
11679 set_step_info call.
11680 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11681 set_step_info.
11682 (prepare_one_step): Add thread_info parameter, pass it to
11683 set_step_frame and prepare_one_step (recursive) call.
11684 (step_1): Pass thread to prepare_one_step call.
11685 (step_command_fsm::should_stop): Pass thread to
11686 prepare_one_step.
11687 (until_next_fsm): Pass thread to set_step_frame call.
11688 (finish_command): Pass thread to set_step_info call.
11689
11690 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11691
11692 * windows-tdep.c (windows_solib_create_inferior_hook):
11693 Check if inferior is running.
11694
11695 2020-03-06 Tom de Vries <tdevries@suse.de>
11696
11697 * NEWS: Fix "the the".
11698 * ctfread.c: Same.
11699
11700 2020-03-06 Tom de Vries <tdevries@suse.de>
11701
11702 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11703
11704 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11705
11706 * .dir-locals.el: Add a comment referencing the other copies of
11707 this file.
11708
11709 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11710
11711 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11712 psargs.
11713
11714 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11715
11716 * .gitattributes: New file.
11717
11718 2020-03-04 Tom Tromey <tom@tromey.com>
11719
11720 * symmisc.c (print_symbol_bcache_statistics)
11721 (print_objfile_statistics): Update.
11722 * symfile.c (allocate_symtab): Use intern.
11723 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11724 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11725 macro_cache>: Remove.
11726 <string_cache>: New member.
11727 (struct objfile) <intern>: New methods.
11728 * elfread.c (elf_symtab_read): Use intern.
11729 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11730 (dwarf2_compute_name, dwarf2_physname)
11731 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11732 names.
11733 (guess_partial_die_structure_name): Update.
11734 (partial_die_info::fixup): Intern name.
11735 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11736 name.
11737 (dwarf2_name): Intern name. Update.
11738 * buildsym.c (buildsym_compunit::get_macro_table): Use
11739 string_cache.
11740
11741 2020-03-04 Tom Tromey <tom@tromey.com>
11742
11743 * jit.c (bfd_open_from_target_memory): Make "target" const.
11744 * corefile.c (gnutarget): Now const.
11745 * gdbcore.h (gnutarget): Now const.
11746
11747 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11748
11749 * NEWS: Mention support for WOW64 processes.
11750 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11751 (amd64_windows_segment_register_p): Remove static.
11752 (_initialize_amd64_windows_nat): Update.
11753 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11754 * i386-windows-nat.c (context_offset): Update.
11755 (i386_mappings): Rename and remove static.
11756 (i386_windows_segment_register_p): Remove static.
11757 (_initialize_i386_windows_nat): Update.
11758 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11759 (STATUS_WX86_SINGLE_STEP): New macro.
11760 (EnumProcessModulesEx): New macro.
11761 (Wow64SuspendThread): New macro.
11762 (Wow64GetThreadContext): New macro.
11763 (Wow64SetThreadContext): New macro.
11764 (Wow64GetThreadSelectorEntry): New macro.
11765 (windows_set_context_register_offsets): Add static.
11766 (windows_set_segment_register_p): Likewise.
11767 (windows_add_thread): Adapt for WOW64 processes.
11768 (windows_fetch_one_register): Likewise.
11769 (windows_nat_target::fetch_registers): Likewise.
11770 (windows_store_one_register): Likewise.
11771 (display_selector): Likewise.
11772 (display_selectors): Likewise.
11773 (handle_exception): Likewise.
11774 (windows_continue): Likewise.
11775 (windows_nat_target::resume): Likewise.
11776 (windows_add_all_dlls): Likewise.
11777 (do_initial_windows_stuff): Likewise.
11778 (windows_nat_target::attach): Likewise.
11779 (windows_get_exec_module_filename): Likewise.
11780 (windows_nat_target::create_inferior): Likewise.
11781 (windows_xfer_siginfo): Likewise.
11782 (_initialize_loadable): Initialize Wow64SuspendThread,
11783 Wow64GetThreadContext, Wow64SetThreadContext,
11784 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11785 * windows-nat.h (windows_set_context_register_offsets):
11786 Remove declaration.
11787 (windows_set_segment_register_p): Likewise.
11788 (i386_windows_segment_register_p): Add declaration.
11789 (amd64_windows_segment_register_p): Likewise.
11790
11791 2020-03-04 Luis Machado <luis.machado@linaro.org>
11792
11793 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11794 in "info registers" for AArch64/ARM.
11795
11796 The change caused "info registers" to not print GPR's.
11797
11798 gdb/ChangeLog:
11799
11800 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11801
11802 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11803 when reg->group is empty and reggroup is not.
11804
11805 2020-03-03 Tom Tromey <tromey@adacore.com>
11806
11807 * dwarf2/frame.c (struct dwarf2_frame_cache)
11808 <checked_tailcall_bottom, entry_cfa_sp_offset,
11809 entry_cfa_sp_offset_p>: Remove members.
11810 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11811 (dwarf2_frame_prev_register): Don't call
11812 dwarf2_tailcall_sniffer_first.
11813 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11814 * frame-unwind.c (add_unwinder): New fuction.
11815 (frame_unwind_init): Use it. Add tailcall unwinder.
11816
11817 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11818 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11819
11820 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11821 value should be printed as true.
11822
11823 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11824
11825 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11826 (windows_init_abi): Set and use windows_so_ops.
11827
11828 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11829
11830 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11831 when verifying if dealing with a convenience variable.
11832
11833 2020-03-03 Luis Machado <luis.machado@linaro.org>
11834
11835 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11836
11837 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11838
11839 * infrun.c (gdbarch_supports_displaced_stepping): New.
11840 (use_displaced_stepping): Break up conditions in smaller pieces.
11841 Use gdbarch_supports_displaced_stepping.
11842 (displaced_step_prepare_throw): Use
11843 gdbarch_supports_displaced_stepping.
11844
11845 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11846
11847 * NEWS: Mention new behaviour of the history filename.
11848 * top.c (write_history_p): Add comment.
11849 (show_write_history_p): Add header comment, give a different
11850 message when history writing is on, but the history filename is
11851 empty.
11852 (history_filename): Add comment.
11853 (history_filename_empty): New function.
11854 (show_history_filename): Add header comment, give a different
11855 message when the filename is empty.
11856 (init_history): Compare history_filename against nullptr, and only
11857 read history if the filename is not empty.
11858 (set_history_filename): Add header comment, and only make
11859 non-empty filenames absolute.
11860 (init_main): Make the filename argument to 'set history filename'
11861 optional.
11862
11863 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11864
11865 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11866 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11867 (fetch_fp_register): Update.
11868 (fetch_fp_regs): Update.
11869 (store_fp_register): Update.
11870 (store_fp_regs): Update.
11871 (arm_netbsd_nat_target::read_description): New function.
11872 (fetch_elfcore_registers): Update.
11873
11874 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11875
11876 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11877 general_thread if the stop reply is missing a thread-id.
11878 (remote_target::process_stop_reply): Use the first non-exited
11879 thread if the target didn't pass a thread-id.
11880 * infrun.c (do_target_wait): Move call to
11881 switch_to_inferior_no_thread to ....
11882 (do_target_wait_1): ... here.
11883
11884 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11885
11886 * debuginfod-support.c: Include defs.h first.
11887
11888 2020-02-28 Tom de Vries <tdevries@suse.de>
11889
11890 * symfile.c (set_initial_language): Use default language for lookup.
11891
11892 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11893
11894 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11895 reader variable, pass `this` to read_cutu_die_from_dwo.
11896
11897 2020-02-27 Aaron Merey <amerey@redhat.com>
11898
11899 * source.c (open_source_file): Check for nullptr when computing
11900 srcpath.
11901
11902 2020-02-27 Tom Tromey <tromey@adacore.com>
11903
11904 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11905 member.
11906 (dwarf2_add_field): Don't update nfields.
11907 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11908
11909 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11910
11911 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11912 abs.
11913
11914 2020-02-26 Tom Tromey <tom@tromey.com>
11915
11916 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11917 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11918 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11919 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11920 per_cu_data.
11921
11922 2020-02-26 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/index-write.c (psym_index_map): Change type.
11925 (add_address_entry_worker, write_one_signatured_type)
11926 (recursively_count_psymbols, recursively_write_psymbols)
11927 (class debug_names, psyms_seen_size, write_gdbindex)
11928 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11929
11930 2020-02-26 Aaron Merey <amerey@redhat.com>
11931
11932 * Makefile.in: Handle optional debuginfod support.
11933 * NEWS: Update.
11934 * README: Add --with-debuginfod summary.
11935 * config.in: Regenerate.
11936 * configure: Regenerate.
11937 * configure.ac: Handle optional debuginfod support.
11938 * debuginfod-support.c: debuginfod helper functions.
11939 * debuginfod-support.h: Ditto.
11940 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11941 summary.
11942 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11943 when a dwz file cannot be found.
11944 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11945 debuginfo file cannot be found.
11946 * source.c (open_source_file): Query debuginfod servers when a
11947 source file cannot be found.
11948 * top.c (print_gdb_configuration): Include
11949 --{with,without}-debuginfod in the output.
11950
11951 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11952
11953 * thread.c (thr_try_catch_cmd): Print thread name.
11954
11955 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11956
11957 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11958 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11959 dwarf2_fetch_die_type_sect_off): Move to...
11960 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11961 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11962 dwarf2_fetch_die_type_sect_off): ... here.
11963 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11964 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11965 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11966
11967 2020-02-26 Tom de Vries <tdevries@suse.de>
11968
11969 PR gdb/25603
11970 * symfile.c (set_initial_language): Exit-early if
11971 language_mode == language_mode_manual.
11972
11973 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11974
11975 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11976 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11977 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11978
11979 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11980
11981 * gdbtypes.c (create_array_type_with_stride): Handle negative
11982 array strides.
11983 * valarith.c (value_subscripted_rvalue): Likewise.
11984
11985 2020-02-25 Luis Machado <luis.machado@linaro.org>
11986
11987 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11988
11989 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * loc.h (dwarf2_get_die_type): Move to...
11992 * read.h (dwarf2_get_die_type): ... here.
11993 * read.c (dwarf2_get_die_type): Move doc to header.
11994
11995 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11996
11997 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11998 'gnulib/Makefile.in' to the list.
11999
12000 2020-02-24 Tom Tromey <tom@tromey.com>
12001
12002 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12003 Remove.
12004 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12005 XOBNEWVEC.
12006
12007 2020-02-24 Tom Tromey <tom@tromey.com>
12008
12009 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12010 New method.
12011 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12012 (dw2_do_instantiate_symtab, dw2_get_file_names)
12013 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12014
12015 2020-02-24 Tom Tromey <tom@tromey.com>
12016
12017 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12018 make_scoped_restore.
12019 (dwarf2_psymtab::read_symtab): Don't clear
12020 reading_partial_symbols.
12021
12022 2020-02-24 Tom de Vries <tdevries@suse.de>
12023
12024 PR gdb/25592
12025 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12026
12027 2020-02-24 Tom de Vries <tdevries@suse.de>
12028
12029 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12030 commands layout next/prev/regs.
12031
12032 2020-02-22 Tom Tromey <tom@tromey.com>
12033
12034 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12035 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12036
12037 2020-02-22 Tom Tromey <tom@tromey.com>
12038
12039 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12040
12041 2020-02-22 Tom Tromey <tom@tromey.com>
12042
12043 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12044 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12045 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12046 * tui/tui.c (_initialize_tui): Add usage text.
12047
12048 2020-02-22 Tom Tromey <tom@tromey.com>
12049
12050 * tui/tui-win.c (tui_set_focus_command)
12051 (tui_set_win_height_command): Use error_no_arg.
12052 (_initialize_tui_win): Update help text.
12053 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12054
12055 2020-02-22 Tom Tromey <tom@tromey.com>
12056
12057 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12058 * tui/tui-disasm.h (struct tui_disasm_window)
12059 <display_start_addr>: Declare.
12060 * tui/tui-source.h (struct tui_source_window)
12061 <display_start_addr>: Declare.
12062 * tui/tui-winsource.h (struct tui_source_window_base)
12063 <show_source_line, display_start_addr>: New methods.
12064 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12065 Rename and move to protected section.
12066 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12067 (tui_source_window_base::do_erase_source_content): Update.
12068 (tui_source_window_base::show_source_line): Now a method.
12069 (tui_source_window_base::show_source_content)
12070 (tui_source_window_base::tui_source_window_base)
12071 (tui_source_window_base::rerender)
12072 (tui_source_window_base::refill)
12073 (tui_source_window_base::do_scroll_horizontal)
12074 (tui_source_window_base::set_is_exec_point_at)
12075 (tui_source_window_base::update_breakpoint_info)
12076 (tui_source_window_base::update_exec_info): Update.
12077 * tui/tui-source.c (tui_source_window::set_contents)
12078 (tui_source_window::showing_source_p)
12079 (tui_source_window::do_scroll_vertical)
12080 (tui_source_window::location_matches_p)
12081 (tui_source_window::line_is_displayed): Update.
12082 (tui_source_window::display_start_addr): New method.
12083 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12084 (tui_disasm_window::do_scroll_vertical)
12085 (tui_disasm_window::location_matches_p): Update.
12086 (tui_disasm_window::display_start_addr): New method.
12087
12088 2020-02-22 Tom Tromey <tom@tromey.com>
12089
12090 * NEWS: Add entry for gdb.register_window_type.
12091 * tui/tui-layout.h (window_factory): New typedef.
12092 (tui_register_window): Declare.
12093 * tui/tui-layout.c (saved_tui_windows): New global.
12094 (tui_apply_current_layout): Use it.
12095 (tui_register_window): New function.
12096 * python/python.c (do_start_initialization): Call
12097 gdbpy_initialize_tui.
12098 (python_GdbMethods): Add "register_window_type" function.
12099 * python/python-internal.h (gdbpy_register_tui_window)
12100 (gdbpy_initialize_tui): Declare.
12101 * python/py-tui.c: New file.
12102 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12103
12104 2020-02-22 Tom Tromey <tom@tromey.com>
12105
12106 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12107
12108 2020-02-22 Tom Tromey <tom@tromey.com>
12109
12110 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12111 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12112 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12113 (tui_set_win_focus_to): Move from tui-win.c.
12114
12115 2020-02-22 Tom Tromey <tom@tromey.com>
12116
12117 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12118 functions.
12119 (known_window_types): New global.
12120 (tui_get_window_by_name): Reimplement.
12121 (initialize_known_windows): New function.
12122 (validate_window_name): Rewrite.
12123 (_initialize_tui_layout): Call initialize_known_windows.
12124
12125 2020-02-22 Tom Tromey <tom@tromey.com>
12126
12127 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12128 Remove constants.
12129 * tui/tui-winsource.h (struct tui_source_window_base)
12130 <tui_source_window_base>: Remove parameter.
12131 * tui/tui-winsource.c
12132 (tui_source_window_base::tui_source_window_base): Remove
12133 parameter.
12134 (tui_source_window_base::refill): Update.
12135 * tui/tui-stack.h (struct tui_locator_window)
12136 <tui_locator_window>: Update.
12137 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12138 Default the constructor.
12139 * tui/tui-regs.h (struct tui_data_item_window)
12140 <tui_data_item_window>: Default the constructor.
12141 (struct tui_data_window) <tui_data_window>: Likewise.
12142 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12143 Default the constructor.
12144 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12145 Default the constructor.
12146 <type>: Remove.
12147 (struct tui_win_info) <tui_win_info>: Default the constructor.
12148 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12149 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12150 Default the constructor.
12151
12152 2020-02-22 Tom Tromey <tom@tromey.com>
12153
12154 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12155 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12156 * tui/tui-win.c (tui_resize_all): Don't call
12157 tui_delete_invisible_windows.
12158 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12159 done.
12160 (tui_set_layout): Update.
12161 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12162 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12163 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12164
12165 2020-02-22 Tom Tromey <tom@tromey.com>
12166
12167 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12168 correctly.
12169
12170 2020-02-22 Tom Tromey <tom@tromey.com>
12171
12172 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12173
12174 2020-02-22 Tom Tromey <tom@tromey.com>
12175
12176 * tui/tui-winsource.h (struct tui_source_window_iterator)
12177 <inner_iterator>: New etytypedef.
12178 <tui_source_window_iterator>: Take "end" parameter.
12179 <tui_source_window_iterator>: Take iterator.
12180 <operator*, advance>: Update.
12181 <m_iter>: Change type.
12182 <m_end>: New field.
12183 (struct tui_source_windows) <begin, end>: Update.
12184 * tui/tui-layout.c (tui_windows): New global.
12185 (tui_apply_current_layout): Clear tui_windows.
12186 (tui_layout_window::apply): Update tui_windows.
12187 * tui/tui-data.h (tui_windows): Declare.
12188 (all_tui_windows): Now inline function.
12189 (class tui_window_iterator, struct all_tui_windows): Remove.
12190
12191 2020-02-22 Tom Tromey <tom@tromey.com>
12192
12193 PR tui/17850:
12194 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12195 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12196 "height" argument.
12197 (class tui_layout_window) <get_sizes>: Likewise.
12198 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12199 argument.
12200 <get_sizes>: Add "height" argument.
12201 <m_vertical>: New field.
12202 * tui/tui-layout.c (tui_layout_split::clone): Update.
12203 (tui_layout_split::get_sizes): Add "height" argument.
12204 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12205 (tui_new_layout_command): Parse "-horizontal".
12206 (_initialize_tui_layout): Update help string.
12207 (tui_layout_split::specification): Add "-horizontal" when needed.
12208 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12209 argument.
12210 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12211 New methods.
12212
12213 2020-02-22 Tom Tromey <tom@tromey.com>
12214
12215 * tui/tui-layout.h (enum tui_adjust_result): New.
12216 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12217 (class tui_layout_window) <adjust_size>: Return
12218 tui_adjust_result. Rewrite.
12219 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12220 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12221
12222 2020-02-22 Tom Tromey <tom@tromey.com>
12223
12224 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12225 parameter and return types.
12226 (class tui_layout_base) <specification>: Add "depth".
12227 (class tui_layout_window) <specification>: Add "depth".
12228 (class tui_layout_split) <specification>: Add "depth".
12229 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12230 and return types.
12231 (tui_new_layout_command): Parse sub-layouts.
12232 (_initialize_tui_layout): Update help string.
12233 (tui_layout_window::specification): Add "depth".
12234 (add_layout_command): Update.
12235
12236 2020-02-22 Tom Tromey <tom@tromey.com>
12237
12238 * NEWS: Add "tui new-layout" item.
12239 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12240 Add new-layout command to help text.
12241 (validate_window_name): New function.
12242 (tui_new_layout_command): New function.
12243 (_initialize_tui_layout): Register "new-layout".
12244 (tui_layout_window::specification): New method.
12245 (tui_layout_window::specification): New method.
12246 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12247 method.
12248 (class tui_layout_window) <specification>: New method.
12249 (class tui_layout_split) <specification>: New method.
12250
12251 2020-02-22 Tom Tromey <tom@tromey.com>
12252
12253 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12254 * tui/tui-win.c (window_name_completer): Update comment.
12255 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12256 Declare method.
12257 (class tui_layout_window) <replace_window>: Likewise.
12258 (class tui_layout_split) <replace_window>: Likewise.
12259 (tui_set_layout): Don't declare.
12260 (tui_set_initial_layout): Declare function.
12261 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12262 (asm_regs_layout): New globals.
12263 (tui_current_layout, show_layout): Remove.
12264 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12265 (find_layout, tui_apply_layout): New function.
12266 (layout_completer): Remove.
12267 (tui_next_layout): Reimplement.
12268 (tui_next_layout_command): New function.
12269 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12270 (tui_regs_layout): Reimplement.
12271 (tui_regs_layout_command): New function.
12272 (extract_display_start_addr): Rewrite.
12273 (next_layout, prev_layout): Remove.
12274 (tui_layout_window::replace_window): New method.
12275 (tui_layout_split::replace_window): New method.
12276 (destroy_layout): New function.
12277 (layout_list): New global.
12278 (add_layout_command): New function.
12279 (initialize_layouts): Update.
12280 (tui_layout_command): New function.
12281 (_initialize_tui_layout): Install "layout" commands.
12282 * tui/tui-data.h (enum tui_layout_type): Remove.
12283 (tui_current_layout): Don't declare.
12284
12285 2020-02-22 Tom Tromey <tom@tromey.com>
12286
12287 * tui/tui-regs.c (tui_reg_layout): Remove.
12288 (tui_reg_command): Use tui_regs_layout.
12289 * tui/tui-layout.h (tui_reg_command): Declare.
12290 * tui/tui-layout.c (tui_reg_command): New function.
12291
12292 2020-02-22 Tom Tromey <tom@tromey.com>
12293
12294 * tui/tui.c (tui_rl_delete_other_windows): Call
12295 tui_remove_some_windows.
12296 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12297 Declare method.
12298 (class tui_layout_window) <remove_windows>: New method.
12299 (class tui_layout_split) <remove_windows>: Declare.
12300 (tui_remove_some_windows): Declare.
12301 * tui/tui-layout.c (tui_remove_some_windows): New function.
12302 (tui_layout_split::remove_windows): New method.
12303
12304 2020-02-22 Tom Tromey <tom@tromey.com>
12305
12306 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12307 * tui/tui-layout.h (tui_next_layout): Declare.
12308 * tui/tui-layout.c (tui_next_layout): New function.
12309
12310 2020-02-22 Tom Tromey <tom@tromey.com>
12311
12312 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12313 correct coordinates.
12314
12315 2020-02-22 Tom Tromey <tom@tromey.com>
12316
12317 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12318 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12319 DATA_WIN case.
12320
12321 2020-02-22 Tom Tromey <tom@tromey.com>
12322
12323 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12324 TUI_DISASM_WIN, not tui_win_list.
12325
12326 2020-02-22 Tom Tromey <tom@tromey.com>
12327
12328 * valprint.c (generic_val_print_enum_1)
12329 (val_print_type_code_flags): Style member names.
12330 * rust-lang.c (val_print_struct, rust_print_enum)
12331 (rust_print_struct_def, rust_internal_print_type): Style member
12332 names.
12333 * p-valprint.c (pascal_object_print_value_fields): Style member
12334 names. Only call fprintf_symbol_filtered for static members.
12335 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12336 * f-valprint.c (f_val_print): Style member names.
12337 * f-typeprint.c (f_type_print_base): Style member names.
12338 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12339 call fprintf_symbol_filtered for static members.
12340 (cp_print_class_member): Style member names.
12341 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12342 member names.
12343 * ada-valprint.c (ada_print_scalar): Style enum names.
12344 (ada_val_print_enum): Likewise.
12345 * ada-typeprint.c (print_enum_type): Style enum names.
12346
12347 2020-02-21 Tom Tromey <tom@tromey.com>
12348
12349 * psympriv.h (struct partial_symtab): Update comment.
12350
12351 2020-02-21 Tom Tromey <tromey@adacore.com>
12352
12353 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12354 type is CORE_ADDR.
12355
12356 2020-02-21 Tom de Vries <tdevries@suse.de>
12357
12358 PR gdb/25534
12359 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12360 if dependencies[i]->user != NULL.
12361
12362 2020-02-21 Ali Tamur <tamur@google.com>
12363
12364 * dwarf2/read.c (dwarf2_name): Add null check.
12365
12366 2020-02-20 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12369 ">=", in binary search.
12370 (dwarf2_find_containing_comp_unit): New overload.
12371 (run_test): New self-test.
12372 (_initialize_dwarf2_read): Register new test.
12373
12374 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12375
12376 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12377 * riscv-tdep.h: Likewise.
12378 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12379 rv32-only CSR.
12380 * features/riscv/64bit-csr.xml: Regenerated.
12381
12382 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12383 Tom Tromey <tom@tromey.com>
12384
12385 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12386 of 'fputc_unfiltered'.
12387 (putchar_unfiltered): Call 'fputc_unfiltered'.
12388 (fputc_unfiltered): Call 'fputs_unfiltered'.
12389
12390 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * config.in: Regenerate.
12393 * configure: Regenerate.
12394 * configure.ac: Add --with-python-libdir option.
12395 * main.c: Use WITH_PYTHON_LIBDIR.
12396
12397 2020-02-19 Tom Tromey <tom@tromey.com>
12398
12399 * symtab.c (general_symbol_info::compute_and_set_names): Use
12400 obstack_strndup. Simplify call to symbol_set_demangled_name.
12401
12402 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12403
12404 * dwarf2/read.c (allocate_signatured_type_table,
12405 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12406 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12407 Remove objfile parameter, update all callers.
12408
12409 2020-02-19 Doug Evans <dje@google.com>
12410
12411 PR rust/25535
12412 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12413 rust_enum_variant calculation.
12414
12415 2020-02-19 Tom Tromey <tromey@adacore.com>
12416
12417 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12418
12419 2020-02-19 Tom Tromey <tromey@adacore.com>
12420
12421 * ada-lang.c (cache_symbol): Use obstack_strdup.
12422
12423 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12424
12425 * configure: Regenerate.
12426
12427 2020-02-19 Tom Tromey <tromey@adacore.com>
12428
12429 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12430 NULL check.
12431
12432 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12433
12434 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12435
12436 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12437
12438 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12439 if GDBSERVER is not defined.
12440 (riscv_tdesc_cache): Likewise, also store const target_desc.
12441 (STATIC_IN_GDB): Define.
12442 (riscv_create_target_description): Update declaration with
12443 STATIC_IN_GDB.
12444 (riscv_lookup_target_description): New function, only define if
12445 GDBSERVER is not defined.
12446 * arch/riscv.h (riscv_create_target_description): Declare only
12447 when GDBSERVER is defined.
12448 (riscv_lookup_target_description): New declaration when GDBSERVER
12449 is not defined.
12450 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12451 (riscv_linux_read_features): ...this, and return
12452 riscv_gdbarch_features instead of target_desc.
12453 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12454 (riscv_linux_read_description): Rename to...
12455 (riscv_linux_read_features): ...this.
12456 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12457 Update to use riscv_gdbarch_features and
12458 riscv_lookup_target_description.
12459 * riscv-tdep.c (riscv_find_default_target_description): Use
12460 riscv_lookup_target_description instead of
12461 riscv_create_target_description.
12462
12463 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12464
12465 * valprint.c (generic_val_print_enum_1): When printing a flag
12466 enum with value 0 and there is no enumerator with value 0, print
12467 just "0" instead of "(unknown: 0x0)".
12468
12469 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * valprint.c (generic_val_print_enum_1): Print unknown part of
12472 flag enum in hex.
12473
12474 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12475
12476 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12477 flag enums to contain duplicate enumerators.
12478 * valprint.c (generic_val_print_enum_1): Update comment.
12479
12480 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12481
12482 * dwarf2/read.c: Include "count-one-bits.h".
12483 (update_enumeration_type_from_children): If an enumerator has
12484 multiple bits set, don't treat the enumeration as a "flag enum".
12485 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12486 of flag enums have 0 or 1 bit set.
12487
12488 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12489
12490 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12491 conversion.
12492 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12493 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12494 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12495 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12496 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12497
12498 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12499
12500 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12501
12502 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12505 displaced_step_closure_up.
12506 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12507 (struct displaced_step_closure_up):
12508 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12509 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12510 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12511 Likewise.
12512 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12513 * gdbarch.c, gdbarch.h: Re-generate.
12514 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12515 displaced_step_closure_up.
12516 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12517 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12518 * infrun.h (displaced_step_closure_up): New type alias.
12519 (struct displaced_step_inferior_state) <step_closure>: Change
12520 type to displaced_step_closure_up.
12521 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12522 displaced_step_closure_up.
12523 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12524
12525 2020-02-14 Tom Tromey <tom@tromey.com>
12526
12527 * minidebug.c (gnu_debug_key): New global.
12528 (find_separate_debug_file_in_section): Use it.
12529
12530 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12531
12532 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12533 std::unique_ptr.
12534 * gdbarch.c: Re-generate.
12535 * gdbarch.h: Re-generate.
12536 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12537 change.
12538 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12539 type to std::unique_ptr.
12540 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12541 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12542 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12543 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12544 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12545 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12546 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12547 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12548 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12549
12550 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12551
12552 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12553 std::unique_ptr.
12554 (displaced_step_clear): Rename to...
12555 (displaced_step_reset): ... this. Just call displaced->reset ().
12556 (displaced_step_clear_cleanup): Rename to...
12557 (displaced_step_reset_cleanup): ... this.
12558 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12559 (displaced_step_fixup): Likewise.
12560 (resume_1): Likewise.
12561 (handle_inferior_event): Restore child's memory before calling
12562 displaced_step_fixup on the parent.
12563 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12564 to std::unique_ptr.
12565 <step_closure>: Change type to std::unique_ptr.
12566
12567 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12568
12569 * arm-tdep.c: Include count-one-bits.h.
12570 (cleanup_block_store_pc): Use count_one_bits.
12571 (cleanup_block_load_pc): Use count_one_bits.
12572 (arm_copy_block_xfer): Use count_one_bits.
12573 (thumb2_copy_block_xfer): Use count_one_bits.
12574 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12575 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12576 (thumb_get_next_pcs_raw): Use count_one_bits.
12577 (arm_get_next_pcs_raw): Use count_one_bits_l.
12578 * arch/arm.c (bitcount): Remove.
12579 * arch/arm.h (bitcount): Remove.
12580
12581 2020-02-14 Tom Tromey <tromey@adacore.com>
12582
12583 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12584 Update.
12585 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12586 * dwarf2/loc.c (call_site_find_chain_1): Return
12587 unique_xmalloc_ptr.
12588 (call_site_find_chain): Likewise.
12589
12590 2020-02-14 Richard Biener <rguenther@suse.de>
12591
12592 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12593 on expression with division operators.
12594
12595 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12596
12597 * MAINTAINERS (Write After Approval): Adding myself.
12598
12599 2020-02-12 Tom Tromey <tom@tromey.com>
12600
12601 * event-loop.c (event_data, gdb_event, event_handler_func):
12602 Remove.
12603
12604 2020-02-12 Tom Tromey <tom@tromey.com>
12605
12606 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12607 (dwarf2_frame_objfile_data): Add comment.
12608 (find_comp_unit, set_comp_unit): New functions.
12609 (dwarf2_frame_find_fde): Use find_comp_unit.
12610 (dwarf2_build_frame_info): Use set_comp_unit.
12611
12612 2020-02-12 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12615 (comp_unit): Don't initialize objfile.
12616 (execute_cfa_program): Add text_offset parameter.
12617 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12618 (dwarf2_frame_cache): Update.
12619 (dwarf2_build_frame_info): Don't set "objfile" member.
12620
12621 2020-02-12 Tom Tromey <tom@tromey.com>
12622
12623 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12624 (decode_frame_entry): Likewise.
12625 (dwarf2_build_frame_info): Update.
12626
12627 2020-02-12 Tom Tromey <tom@tromey.com>
12628
12629 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12630 (decode_frame_entry_1): Use the comp_unit obstack.
12631
12632 2020-02-12 Tom Tromey <tom@tromey.com>
12633
12634 * dwarf2/frame.c (struct comp_unit): Add initializers and
12635 constructor.
12636 (dwarf2_frame_objfile_data): Store a comp_unit.
12637 (dwarf2_frame_find_fde): Update.
12638 (dwarf2_build_frame_info): Use "new".
12639
12640 2020-02-12 Tom Tromey <tom@tromey.com>
12641
12642 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12643 (dwarf2_fde_table): Typedef for std::vector.
12644 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12645 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12646 (decode_frame_entry): Update.
12647 (dwarf2_build_frame_info): Use "new".
12648
12649 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12650
12651 * arm-tdep.c (arm_gdbarch_init): Update.
12652 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12653 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12654 have_neon, is_m>: Change to bool.
12655
12656 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12657
12658 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12659
12660 2020-02-12 Tom Tromey <tom@tromey.com>
12661
12662 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12663
12664 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12665
12666 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12667 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12668
12669 2020-02-11 Tom Tromey <tom@tromey.com>
12670
12671 * psymtab.h: Update comment.
12672
12673 2020-02-11 Tom Tromey <tom@tromey.com>
12674
12675 * gdb_obstack.h (struct auto_obstack): Use
12676 DISABLE_COPY_AND_ASSIGN.
12677
12678 2020-02-11 Tom Tromey <tom@tromey.com>
12679
12680 * dwarf2/frame.h (struct objfile): Don't forward declare.
12681
12682 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12683
12684 * cris-tdep.c (cris_supply_gregset): Change signature to match
12685 what struct regset expects.
12686 (cris_regset): New struct.
12687 (fetch_core_registers): Remove.
12688 (cris_iterate_over_regset_sections): New function.
12689 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12690 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12691
12692 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12693
12694 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12695 registers.
12696
12697 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12698
12699 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12700
12701 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * configure: Re-generate.
12704
12705 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * configure: Re-generate.
12708
12709 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * acinclude: Update warning.m4 path.
12712 * warning.m4: Move to gdbsupport.
12713
12714 2020-02-11 Tom Tromey <tromey@adacore.com>
12715
12716 * remote.c (remote_console_output): Update.
12717 * printcmd.c (printf_command): Update.
12718 * event-loop.c (gdb_wait_for_event): Update.
12719 * linux-nat.c (sigchld_handler): Update.
12720 * remote-sim.c (gdb_os_write_stdout): Update.
12721 (gdb_os_flush_stdout): Update.
12722 (gdb_os_flush_stderr): Update.
12723 (gdb_os_write_stderr): Update.
12724 * exceptions.c (print_exception): Update.
12725 * remote-fileio.c (remote_fileio_func_read): Update.
12726 (remote_fileio_func_write): Update.
12727 * tui/tui.c (tui_enable): Update.
12728 * tui/tui-interp.c (tui_interp::init): Update.
12729 * utils.c (init_page_info): Update.
12730 (putchar_unfiltered, fputc_unfiltered): Update.
12731 (gdb_flush): Update.
12732 (emit_style_escape): Update.
12733 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12734 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12735 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12736 (stderr_file::write): Update.
12737 (stderr_file::puts): Update.
12738 * ui-file.h (ui_file_isatty, ui_file_write)
12739 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12740 (ui_file_puts): Don't declare.
12741
12742 2020-02-10 Tom de Vries <tdevries@suse.de>
12743
12744 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12745 sentinel to char *.
12746
12747 2020-02-09 Tom de Vries <tdevries@suse.de>
12748
12749 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12750 filename if it matches "<artificial>".
12751
12752 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12753
12754 * windows-tdep.c (struct enum_value_name): New struct.
12755 (create_enum): New function.
12756 (windows_get_siginfo_type): Create and use enum types.
12757
12758 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12759
12760 * NEWS: Mention $_siginfo support for Windows.
12761 * windows-nat.c (handle_exception): Set siginfo_er.
12762 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12763 (windows_xfer_siginfo): New function.
12764 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12765 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12766 (init_windows_gdbarch_data): New function.
12767 (get_windows_gdbarch_data): New function.
12768 (windows_get_siginfo_type): New function.
12769 (windows_init_abi): Register windows_get_siginfo_type.
12770 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12771
12772 2020-02-08 Tom Tromey <tom@tromey.com>
12773
12774 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12775 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12776 <keep>: Declare method.
12777 <m_keep>: Remove member.
12778 <~cutu_reader>: Remove.
12779 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12780 (cutu_reader::cutu_reader): Update.
12781 (cutu_reader::keep): Rename from ~cutu_reader.
12782 (process_psymtab_comp_unit, build_type_psymtabs_1)
12783 (process_skeletonless_type_unit, load_partial_comp_unit)
12784 (load_full_comp_unit, dwarf2_read_addr_index)
12785 (read_signatured_type): Update.
12786
12787 2020-02-08 Tom Tromey <tom@tromey.com>
12788
12789 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12790 "want_partial_unit" parameter.
12791 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12792 Inline check for DW_TAG_partial_unit.
12793 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12794
12795 2020-02-08 Tom Tromey <tom@tromey.com>
12796
12797 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12798 read.c.
12799 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12800 read.c.
12801
12802 2020-02-08 Tom Tromey <tom@tromey.com>
12803
12804 * dwarf2/read.c (read_address): Move to comp-unit.c.
12805 (dwarf2_rnglists_process, dwarf2_ranges_process)
12806 (read_attribute_value, dwarf_decode_lines_1)
12807 (var_decode_location, decode_locdesc): Update.
12808 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12809 read.c. Remove "cu" parameter.
12810 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12811 method.
12812
12813 2020-02-08 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12816 (read_indirect_line_string): Update.
12817 * dwarf2/comp-unit.c (read_offset): Remove.
12818 (read_comp_unit_head): Update.
12819 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12820 method.
12821 (read_offset): Don't declare.
12822
12823 2020-02-08 Tom Tromey <tom@tromey.com>
12824
12825 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12826 * dwarf2/read.c (struct comp_unit_head): Move to
12827 dwarf2/comp-unit.h.
12828 (enum class rcuh_kind): Move to comp-unit.h.
12829 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12830 (read_comp_unit_head, error_check_comp_unit_head)
12831 (read_and_check_comp_unit_head): Move to comp-unit.c.
12832 (read_offset, dwarf_unit_type_name): Likewise.
12833 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12834 (cutu_reader::cutu_reader, read_call_site_scope)
12835 (find_partial_die, follow_die_offset): Update.
12836 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12837
12838 2020-02-08 Tom Tromey <tom@tromey.com>
12839
12840 * dwarf2/read.c (read_offset_1): Move to leb.c.
12841 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12842 (dwarf_decode_macro_bytes): Update.
12843 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12844 * dwarf2/leb.h (read_offset): Declare.
12845
12846 2020-02-08 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (dwarf2_section_size): Remove.
12849 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12850 Update.
12851 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12852
12853 2020-02-08 Tom Tromey <tom@tromey.com>
12854
12855 * dwarf2/read.c (read_initial_length): Move to leb.c.
12856 * dwarf2/leb.h (read_initial_length): Declare.
12857 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12858 handle_nonstd parameter.
12859 * dwarf2/frame.c (read_initial_length): Remove.
12860 (decode_frame_entry_1): Update.
12861
12862 2020-02-08 Tom Tromey <tom@tromey.com>
12863
12864 * dwarf2/loc.c (dwarf2_find_location_expression)
12865 (dwarf_evaluate_loc_desc::get_tls_address)
12866 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12867 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12868 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12869 (dwarf2_compile_property_to_c)
12870 (dwarf2_loc_desc_get_symbol_read_needs)
12871 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12872 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12873 (loclist_describe_location, loclist_tracepoint_var_ref)
12874 (loclist_generate_c_location): Update.
12875 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12876 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12877 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12878 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12879 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12880 (dwarf2_per_cu_data::addr_size)
12881 (dwarf2_per_cu_data::ref_addr_size)
12882 (dwarf2_per_cu_data::text_offset)
12883 (dwarf2_per_cu_data::addr_type): Now methods.
12884 (per_cu_header_read_in): Make per_cu "const".
12885 (dwarf2_version): Remove.
12886 (dwarf2_per_cu_data::int_type): Now a method.
12887 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12888 (set_die_type, read_array_type, read_subrange_index_type)
12889 (read_tag_string_type, read_subrange_type): Update.
12890 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12891 offset_size, ref_addr_size, text_offset, addr_type, version,
12892 objfile, int_type, addr_sized_int_type>: Declare methods.
12893
12894 2020-02-08 Tom Tromey <tom@tromey.com>
12895
12896 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12897 Move earlier.
12898
12899 2020-02-08 Tom Tromey <tom@tromey.com>
12900
12901 * dwarf2/read.h (dwarf_line_debug): Declare.
12902 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12903 * dwarf2/read.c: Move line_header code to new files.
12904 (dwarf_line_debug): No longer static.
12905 * dwarf2/line-header.c: New file.
12906 * dwarf2/line-header.h: New file.
12907
12908 2020-02-08 Tom Tromey <tom@tromey.com>
12909
12910 * dwarf2/read.c (struct line_header) <file_full_name,
12911 file_file_name>: Return unique_xmalloc_ptr.
12912 (line_header::file_file_name): Update.
12913 (line_header::file_full_name): Update.
12914 (dw2_get_file_names_reader): Update.
12915 (macro_start_file): Update.
12916
12917 2020-02-08 Tom Tromey <tom@tromey.com>
12918
12919 * dwarf2/read.c (struct line_header) <file_full_name,
12920 file_file_name>: Declare methods.
12921 (dw2_get_file_names_reader): Update.
12922 (file_file_name): Now a method.
12923 (file_full_name): Likewise.
12924 (macro_start_file): Update.
12925
12926 2020-02-08 Tom Tromey <tom@tromey.com>
12927
12928 * dwarf2/read.c (dwarf_always_disassemble)
12929 (show_dwarf_always_disassemble): Move to loc.c.
12930 (_initialize_dwarf2_read): Move "always-disassemble" registration
12931 to loc.c.
12932 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12933 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12934 static.
12935 (show_dwarf_always_disassemble): Move from read.c.
12936 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12937
12938 2020-02-08 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12941 (create_quick_file_names_table): Return htab_up.
12942 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12943 Update.
12944 * dwarf2/read.h (struct dwarf2_per_objfile)
12945 <quick_file_names_table>: Now htab_up.
12946
12947 2020-02-08 Tom Tromey <tom@tromey.com>
12948
12949 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12950
12951 2020-02-08 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12954 Rewrite.
12955 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12956 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12957 (abbrev_table::abbrev_table): No longer inline.
12958 (ABBREV_HASH_SIZE): Remove.
12959 (abbrev_table::m_abbrevs): Now an htab_up.
12960
12961 2020-02-08 Tom Tromey <tom@tromey.com>
12962
12963 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12964 (cutu_reader): Update.
12965 (build_type_psymtabs_1): Update.
12966 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12967 (abbrev_table::alloc_abbrev): Update.
12968 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12969 (abbrev_table::read): New static method, renamed from
12970 abbrev_table_read_table.
12971 (abbrev_table::alloc_abbrev)
12972 (abbrev_table::add_abbrev): Now private.
12973 (abbrev_table::abbrev_table): Now private.
12974 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12975
12976 2020-02-08 Tom Tromey <tom@tromey.com>
12977
12978 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12979 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12980 htab_up.
12981
12982 2020-02-08 Tom Tromey <tom@tromey.com>
12983
12984 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12985 htab_up.
12986 (lookup_dwo_unit_in_dwp): Update.
12987 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12988 on obstack.
12989
12990 2020-02-08 Tom Tromey <tom@tromey.com>
12991
12992 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12993 obstack.
12994
12995 2020-02-08 Tom Tromey <tom@tromey.com>
12996
12997 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12998 line_header_hash.
12999 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13000 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13001 Change type to htab_up.
13002
13003 2020-02-08 Tom Tromey <tom@tromey.com>
13004
13005 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13006 htab_up. Don't allocate on obstack.
13007 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13008 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13009 Change type to htab_up.
13010
13011 2020-02-08 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13014 Change type to htab_up.
13015 * dwarf2/read.c (create_signatured_type_table_from_index)
13016 (create_signatured_type_table_from_debug_names)
13017 (create_all_type_units, add_type_unit)
13018 (lookup_dwo_signatured_type, lookup_signatured_type)
13019 (process_skeletonless_type_unit): Update.
13020 (create_debug_type_hash_table, create_debug_types_hash_table):
13021 Change type of types_htab.
13022 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13023 htab_up. Don't allocate on obstack.
13024 (create_cus_hash_table): Change type of cus_htab parameter.
13025 (struct dwo_file) <cus, tus>: Now htab_up.
13026 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13027 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13028 (queue_and_load_all_dwo_tus): Update.
13029 * dwarf2/index-write.c (write_gdbindex): Update.
13030 (write_debug_names): Update.
13031
13032 2020-02-08 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13035 dwarf2/read.c. Remove "next" member. Add constructor ntad
13036 destructor.
13037 (struct dwarf2_per_objfile) <queue>: New member.
13038 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13039 dwarf2/read.h.
13040 (dwarf2_queue, dwarf2_queue_tail): Remove.
13041 (class dwarf2_queue_guard): Add parameter to constructor. Use
13042 DISABLE_COPY_AND_ASSIGN.
13043 <m_per_objfile>: New member.
13044 <~dwarf2_queue_guard>: Rewrite.
13045 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13046 Update.
13047 (~dwarf2_queue_item): New.
13048
13049 2020-02-08 Tom Tromey <tom@tromey.com>
13050
13051 * dwarf2/read.c (struct die_info) <has_children>: New member.
13052 (dw2_get_file_names_reader): Remove has_children.
13053 (dw2_get_file_names): Update.
13054 (read_cutu_die_from_dwo): Remove has_children.
13055 (cutu_reader::init_tu_and_read_dwo_dies)
13056 (cutu_reader::cutu_reader): Update.
13057 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13058 Remove has_children.
13059 (build_type_psymtabs_1, process_skeletonless_type_unit)
13060 (load_partial_comp_unit, load_full_comp_unit): Update.
13061 (create_dwo_cu_reader): Remove has_children.
13062 (create_cus_hash_table, read_die_and_children): Update.
13063 (read_full_die_1,read_full_die): Remove has_children.
13064 (read_signatured_type): Update.
13065 (class cutu_reader) <has_children>: Remove.
13066
13067 2020-02-08 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/expr.c: Rename from dwarf2expr.c.
13070 * dwarf2/expr.h: Rename from dwarf2expr.h.
13071 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13072 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13073 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13074 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13075 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13076 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13077 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13078 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13079 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13080 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13081 * dwarf2/loc.c: Rename from dwarf2loc.c.
13082 * dwarf2/loc.h: Rename from dwarf2loc.h.
13083 * dwarf2/read.c: Rename from dwarf2read.c.
13084 * dwarf2/read.h: Rename from dwarf2read.h.
13085 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13086 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13087 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13088 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13089 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13090 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13091 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13092 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13093 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13094 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13095 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13096 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13097 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13098 Update.
13099 * Makefile.in (COMMON_SFILES): Update.
13100 (HFILES_NO_SRCDIR): Update.
13101
13102 2020-02-08 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13105 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13106
13107 2020-02-08 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2read.h (struct die_info): Don't declare.
13110
13111 2020-02-08 Tom Tromey <tom@tromey.com>
13112
13113 * dwarf2read.h (die_info_ptr): Remove typedef.
13114
13115 2020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.c (read_call_site_scope)
13118 (handle_data_member_location, dwarf2_add_member_fn)
13119 (mark_common_block_symbol_computed, read_common_block)
13120 (attr_to_dynamic_prop, partial_die_info::read)
13121 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13122 (dwarf2_symbol_mark_computed, set_die_type): Update.
13123 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13124 method.
13125 (attr_form_is_block): Don't declare.
13126 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13127
13128 2020-02-08 Tom Tromey <tom@tromey.com>
13129
13130 * dwarf2read.c (dwarf2_find_base_address, )
13131 (read_call_site_scope, rust_containing_type)
13132 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13133 (handle_data_member_location, dwarf2_add_member_fn)
13134 (get_alignment, read_structure_type, process_structure_scope)
13135 (mark_common_block_symbol_computed, read_common_block)
13136 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13137 (partial_die_info::read, read_attribute_value, new_symbol)
13138 (lookup_die_type, dwarf2_get_ref_die_offset)
13139 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13140 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13141 (dwarf2_symbol_mark_computed): Update.
13142 * dwarf2/attribute.h (struct attribute) <value_as_address,
13143 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13144 methods.
13145 (value_as_address, attr_form_is_section_offset)
13146 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13147 * dwarf2/attribute.c (attribute::value_as_address)
13148 (attribute::form_is_section_offset, attribute::form_is_constant)
13149 (attribute::form_is_ref): Now methods.
13150
13151 2020-02-08 Tom Tromey <tom@tromey.com>
13152
13153 * dwarf2read.c (struct attribute, DW_STRING)
13154 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13155 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13156 (attr_form_is_block, attr_form_is_section_offset)
13157 (attr_form_is_constant, attr_form_is_ref): Move.
13158 * dwarf2/attribute.h: New file.
13159 * dwarf2/attribute.c: New file, from dwarf2read.c.
13160 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13161
13162 2020-02-08 Tom Tromey <tom@tromey.com>
13163
13164 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13165 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13166 Move.
13167 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13168 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13169 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13170 abbrev.c.
13171 * dwarf2/abbrev.h: New file.
13172 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13173 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13174
13175 2020-02-08 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13178 (dwarf2_section_size, dwarf2_get_section_info)
13179 (create_signatured_type_table_from_debug_names)
13180 (create_addrmap_from_aranges, read_debug_names_from_section)
13181 (get_gdb_index_contents_from_section, read_comp_unit_head)
13182 (error_check_comp_unit_head, read_abbrev_offset)
13183 (create_debug_type_hash_table, init_cu_die_reader)
13184 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13185 (read_comp_units_from_section, create_cus_hash_table)
13186 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13187 (create_dwp_v2_section, dwarf2_rnglists_process)
13188 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13189 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13190 (read_indirect_string_from_dwz, read_addr_index_1)
13191 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13192 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13193 (fill_in_loclist_baton): Update.
13194 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13195 get_containing_section, get_bfd_owner, get_bfd_section,
13196 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13197 (dwarf2_read_section, get_section_name, get_section_file_name)
13198 (get_containing_section, get_section_bfd_owner)
13199 (get_section_bfd_section, get_section_name, get_section_file_name)
13200 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13201 declare.
13202 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13203 (dwarf2_section_info::get_bfd_owner)
13204 (dwarf2_section_info::get_bfd_section)
13205 (dwarf2_section_info::get_name)
13206 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13207 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13208 (dwarf2_section_info::read): Now methods.
13209 * dwarf-index-write.c (class debug_names): Update.
13210
13211 2020-02-08 Tom Tromey <tom@tromey.com>
13212
13213 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13214 Move to dwarf2/section.h.
13215 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13216 (get_section_bfd_section, get_section_name)
13217 (get_section_file_name, get_section_id, get_section_flags)
13218 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13219 dwarf2/section.c.
13220 * dwarf2/section.h: New file.
13221 * dwarf2/section.c: New file, from dwarf2read.c.
13222 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13223
13224 2020-02-08 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13227 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13228 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13229 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13230 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13231 * dwarf2/leb.h: New file, from dwarf2read.c.
13232 * dwarf2/leb.c: New file, from dwarf2read.c.
13233 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13234 Remove.
13235 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13236 (COMMON_SFILES): Add dwarf2/leb.c.
13237
13238 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13239
13240 GDB 9.1 released.
13241
13242 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13243
13244 PR gdb/25190:
13245 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13246 * gdb/remote.c (remote_console_output): Update.
13247 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13248 (ui_file_puts): ...this.
13249 * gdb/ui-file.h (ui_file_puts): Add declaration.
13250 * gdb/utils.c (emit_style_escape): Update.
13251 (flush_wrap_buffer): Update.
13252 (fputs_maybe_filtered): Update.
13253 (fputs_unfiltered): Add function.
13254
13255 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13256
13257 * gdb/event-loop.c (gdb_wait_for_event): Update.
13258 * gdb/printcmd.c (printf_command): Update.
13259 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13260 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13261 (gdb_os_flush_stderr): Update.
13262 * gdb/remote.c (remote_console_output): Update.
13263 * gdb/ui-file.c (gdb_flush): Rename to...
13264 (ui_file_flush): ...this.
13265 (stderr_file::write): Update.
13266 (stderr_file::puts): Update.
13267 * gdb/ui-file.h (gdb_flush): Rename to...
13268 (ui_file_flush): ...this.
13269 * gdb/utils.c (gdb_flush): Add function.
13270 * gdb/utils.h (gdb_flush): Add declaration.
13271
13272 2020-02-07 Tom Tromey <tromey@adacore.com>
13273
13274 PR breakpoints/24915:
13275 * source.c (find_and_open_source): Do not check basenames_may_differ.
13276
13277 2020-02-07 Tom Tromey <tom@tromey.com>
13278
13279 * README: Update gdbserver documentation.
13280 * gdbserver: Move to top level.
13281 * configure.tgt (build_gdbserver): Remove.
13282 * configure.ac: Remove --enable-gdbserver.
13283 * configure: Rebuild.
13284 * Makefile.in (distclean): Don't mention gdbserver.
13285
13286 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13287
13288 * source-cache.c (source_cache::ensure): Surround
13289 get_plain_source_lines with a try/catch.
13290 (source_cache::get_line_charpos): Get rid of try/catch
13291 and only check for the return value of "ensure".
13292 * tui/tui-source.c (tui_source_window::set_contents):
13293 Simplify "nlines" calculation.
13294
13295 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13296
13297 * MAINTAINERS (Write After Approval): Add myself.
13298
13299 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13300
13301 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13302 function call.
13303
13304 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13305
13306 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13307
13308 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13309
13310 * nat/riscv-linux-tdesc.h: New file.
13311 * nat/riscv-linux-tdesc.c: New file, taking code from...
13312 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13313 ... here.
13314 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13315 NATDEPFILES.
13316
13317 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13318
13319 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13320 we don't set the fake simulator ptid to the null_ptid.
13321
13322 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13323
13324 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13325 * gdbthread.h (class thread_info) <resumed>: Likewise.
13326 * infrun.c (resume_1): Likewise.
13327 (proceed): Likewise.
13328 (infrun_thread_stop_requested): Likewise.
13329 (stop_all_threads): Likewise.
13330 (handle_inferior_event): Likewise.
13331 (restart_threads): Likewise.
13332 (finish_step_over): Likewise.
13333 (keep_going_stepped_thread): Likewise.
13334 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13335 (linux_handle_extended_wait): Likewise.
13336 * record-btrace.c (get_thread_current_frame_id): Likewise.
13337 * record-full.c (record_full_wait_1): Likewise.
13338 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13339 * target.c (target_resume): Likewise.
13340 * thread.c (set_running_thread): Likewise.
13341
13342 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13343
13344 * f-valprint.c (f77_print_array_1): Changed datatype of index
13345 variable to LONGEST from int to enable it to contain bound
13346 values correctly.
13347
13348 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13349
13350 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13351 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13352 offsets according to FLEN determined.
13353 (riscv_linux_nat_target::read_description): Determine FLEN
13354 dynamically.
13355 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13356 according to FLEN determined.
13357 (riscv_linux_nat_target::store_registers): Likewise.
13358
13359 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13360
13361 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13362 when reg->group is empty and reggroup is not.
13363
13364 2020-01-31 Tom Tromey <tromey@adacore.com>
13365
13366 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13367 Call beneath target's mourn_inferior after unpushing.
13368
13369 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13370
13371 PR tui/9765
13372 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13373 have enough lines to fill the screen, still return the lowest
13374 address we found.
13375
13376 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13379 '-', '<', and '>' commands.
13380
13381 2020-01-29 Pedro Alves <palves@redhat.com>
13382 Sergio Durigan Junior <sergiodj@redhat.com>
13383
13384 * infcmd.c (construct_inferior_arguments): Assert that
13385 'argc' is greater than 0.
13386
13387 2020-01-29 Luis Machado <luis.machado@linaro.org>
13388
13389 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13390 (BRK_INSN_MASK): Define to 0xd4200000.
13391 (aarch64_program_breakpoint_here_p): New function.
13392 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13393 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13394 breakpoint.c.
13395 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13396 breakpoint.h
13397 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13398 call gdbarch_program_breakpoint_here_p.
13399 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13400 default_program_breakpoint_here_p, changed return type to bool and
13401 simplified.
13402 * breakpoint.h (program_breakpoint_here): Moved prototype to
13403 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13404 return type to bool.
13405 * gdbarch.c: Regenerate.
13406 * gdbarch.h: Regenerate.
13407 * gdbarch.sh (program_breakpoint_here_p): New method.
13408 * infrun.c (handle_signal_stop): Call
13409 gdbarch_program_breakpoint_here_p.
13410
13411 2020-01-26 Tom Tromey <tom@tromey.com>
13412
13413 * ctfread.c (struct ctf_fp_info): Reindent.
13414 (_initialize_ctfread): Remove.
13415
13416 2020-01-26 Tom Tromey <tom@tromey.com>
13417
13418 * psymtab.c (partial_map_expand_apply)
13419 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13420 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13421 (psym_print_stats, psym_expand_symtabs_for_function)
13422 (psym_map_symbol_filenames, psym_map_matching_symbols)
13423 (psym_expand_symtabs_matching)
13424 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13425 (maintenance_check_psymtabs): Use new methods.
13426 * psympriv.h (struct partial_symtab) <readin_p,
13427 get_compunit_symtab>: New methods.
13428 <readin, compunit_symtab>: Remove members.
13429 (struct standard_psymtab): New.
13430 (struct legacy_psymtab): Derive from standard_psymtab.
13431 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13432 standard_psymtab.
13433 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13434
13435 2020-01-26 Tom Tromey <tom@tromey.com>
13436
13437 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13438 read_dependencies. Add assert.
13439 * psymtab.c (partial_symtab::read_dependencies): New method.
13440 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13441 method.
13442 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13443 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13444 read_dependencies.
13445 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13446 Add assert.
13447
13448 2020-01-26 Tom Tromey <tom@tromey.com>
13449
13450 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13451 Call expand_psymtab.
13452 (xcoff_read_symtab): Call expand_psymtab.
13453 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13454 legacy_expand_psymtab.
13455 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13456 method.
13457 (struct legacy_psymtab) <expand_psymtab>: Implement.
13458 <legacy_expand_psymtab>: New member.
13459 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13460 (parse_partial_symbols): Set legacy_expand_psymtab.
13461 (psymtab_to_symtab_1): Change argument order. Call
13462 expand_psymtab.
13463 (new_psymtab): Set legacy_expand_psymtab.
13464 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13465 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13466 expand_psymtab.
13467 (dwarf2_psymtab::expand_psymtab): Rename from
13468 psymtab_to_symtab_1. Call expand_psymtab.
13469 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13470 (dbx_end_psymtab): Likewise.
13471 (dbx_psymtab_to_symtab_1): Change argument order. Call
13472 expand_psymtab.
13473 (dbx_read_symtab): Call expand_psymtab.
13474 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13475 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13476 (ctf_psymtab::read_symtab): Call expand_psymtab.
13477
13478 2020-01-26 Tom Tromey <tom@tromey.com>
13479
13480 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13481 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13482 messages.
13483 * mdebugread.c (mdebug_read_symtab): Remove prints.
13484 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13485 assert.
13486 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13487
13488 2020-01-26 Tom Tromey <tom@tromey.com>
13489
13490 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13491 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13492 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13493 legacy_symtab.
13494 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13495 * psymtab.c (psymtab_to_symtab): Call method.
13496 (dump_psymtab): Update.
13497 * psympriv.h (struct partial_symtab): Add virtual destructor.
13498 <read_symtab>: New method.
13499 (struct legacy_symtab): New.
13500 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13501 (struct pst_map) <pst>: Now a legacy_psymtab.
13502 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13503 (new_psymtab): Use legacy_psymtab.
13504 * dwarf2read.h (struct dwarf2_psymtab): New.
13505 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13506 * dwarf2read.c (dwarf2_create_include_psymtab)
13507 (dwarf2_build_include_psymtabs, create_type_unit_group)
13508 (create_partial_symtab, process_psymtab_comp_unit_reader)
13509 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13510 (set_partial_user): Use dwarf2_psymtab.
13511 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13512 (psymtab_to_symtab_1, process_full_comp_unit)
13513 (process_full_type_unit, dwarf2_ranges_read)
13514 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13515 (dwarf_decode_lines): Use dwarf2_psymtab.
13516 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13517 (add_address_entry_worker, write_one_signatured_type)
13518 (recursively_count_psymbols, recursively_write_psymbols)
13519 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13520 (write_debug_names): Likewise.
13521 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13522 <pst>: Now a legacy_psymtab.
13523 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13524 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13525 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13526 * ctfread.c (struct ctf_psymtab): New.
13527 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13528 ctf_psymtab.
13529 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13530 (create_partial_symtab): Return a ctf_psymtab.
13531 (scan_partial_symbols): Update.
13532
13533 2020-01-26 Tom Tromey <tom@tromey.com>
13534
13535 * xcoffread.c (xcoff_start_psymtab): Use new.
13536 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13537 renamed from start_psymtab_common.
13538 * psympriv.h (struct partial_symtab): Add new constructor.
13539 (start_psymtab_common): Don't declare.
13540 * mdebugread.c (parse_partial_symbols): Use new.
13541 * dwarf2read.c (create_partial_symtab): Use new.
13542 * dbxread.c (start_psymtab): Use new.
13543 * ctfread.c (create_partial_symtab): Use new.
13544
13545 2020-01-26 Tom Tromey <tom@tromey.com>
13546
13547 * xcoffread.c (xcoff_end_psymtab): Use new.
13548 * psymtab.c (start_psymtab_common): Use new.
13549 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13550 Update.
13551 * psympriv.h (struct partial_symtab): Add parameters to
13552 constructor. Don't inline.
13553 (allocate_psymtab): Don't declare.
13554 * mdebugread.c (new_psymtab): Use new.
13555 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13556 * dbxread.c (dbx_end_psymtab): Use new.
13557
13558 2020-01-26 Tom Tromey <tom@tromey.com>
13559
13560 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13561 allocate_psymtab. Update documentation.
13562 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13563 allocate_psymtab. Do not use new.
13564 (allocate_psymtab): Use new. Update.
13565
13566 2020-01-26 Tom Tromey <tom@tromey.com>
13567
13568 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13569 * psymtab.c (psym_print_stats): Update.
13570 * psympriv.h (struct partial_symtab) <readin,
13571 psymtabs_addrmap_supported, anonymous>: Now bool.
13572 * mdebugread.c (psymtab_to_symtab_1): Update.
13573 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13574 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13575 (process_full_comp_unit, process_full_type_unit): Update.
13576 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13577 * ctfread.c (psymtab_to_symtab): Update.
13578
13579 2020-01-26 Tom Tromey <tom@tromey.com>
13580
13581 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13582 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13583 * psymtab.c (psymtab_storage): Delete psymtabs.
13584 (psymtab_storage::allocate_psymtab): Use new.
13585 (psymtab_storage::discard_psymtab): Use delete.
13586 * psympriv.h (struct partial_symtab): Add constructor and
13587 initializers.
13588
13589 2020-01-26 Tom Tromey <tom@tromey.com>
13590
13591 * machoread.c: Do not include psympriv.h.
13592
13593 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13594
13595 * NEWS: Mention the new option and the set/show commands.
13596
13597 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13598
13599 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13600 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13601 (validate_exec_file): New variables, enums, functions.
13602 (exec_file_locate_attach, print_section_info): Style the filenames.
13603 (_initialize_exec): Install show_exec_file_mismatch_command and
13604 set_exec_file_mismatch_command.
13605 * gdbcore.h (validate_exec_file): Declare.
13606 * infcmd.c (attach_command): Call validate_exec_file.
13607 * remote.c ( remote_target::remote_add_inferior): Likewise.
13608
13609 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13610
13611 * frame.c (find_frame_sal): Move call to get_next_frame into more
13612 inner scope.
13613 * inline-frame.c (inilne_state) <inline_state>: Update argument
13614 types.
13615 (inilne_state) <skipped_symbol>: Rename to...
13616 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13617 (skip_inline_frames): Build vector of skipped symbols and use this
13618 to reate the inline_state.
13619 (inline_skipped_symbol): Add a comment and some assertions, fetch
13620 skipped symbol from the list.
13621
13622 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13623
13624 * buildsym.c (lte_is_less_than): Delete.
13625 (buildsym_compunit::end_symtab_with_blockvector): Create local
13626 lambda function to sort line table entries, and use
13627 std::stable_sort instead of std::sort.
13628 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13629 markers when looking for a previous line.
13630
13631 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13632
13633 * dwarf2read.c (lnp_state_machine::record_line): Include
13634 end_sequence parameter in debug print out. Record the line if we
13635 are at an end_sequence marker even if it's not the start of a
13636 statement.
13637 * symmisc.c (maintenance_print_one_line_table): Print end of
13638 sequence markers with 'END' not '0'.
13639
13640 2020-01-24 Pedro Alves <palves@redhat.com>
13641
13642 PR gdb/25410
13643 * thread.c (scoped_restore_current_thread::restore): Use
13644 switch_to_inferior_no_thread.
13645 * exec.c: Include "progspace-and-thread.h".
13646 (add_target_sections, remove_target_sections):
13647 scoped_restore_current_pspace_and_thread instead of
13648 scoped_restore_current_thread.
13649 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13650 and aspace to the inferior before calling clone_program_space.
13651 Remove stale comment.
13652
13653 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13654
13655 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13656 (arm_netbsd_nat_target::fetch_registers): ...this.
13657 (arm_nbsd_nat_target::store_registers): Rename to...
13658 (arm_netbsd_nat_target::store_registers): ...this.
13659
13660 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13661
13662 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13663 register_t.
13664
13665 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13666
13667 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13668 Update comment.
13669 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13670 Likewise.
13671 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13672 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13673 the correct replacement (iterate_over_regset_sections).
13674 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13675 Update comment.
13676
13677 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13678
13679 PR gdb/23718
13680 * gdb/python/python.c (execute_gdb_command): Call
13681 async_enable_stdin in catch block.
13682
13683 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13684
13685 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13686 SWITCH_THRU_ALL_UIS.
13687
13688 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13689
13690 PR tui/9765
13691 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13692 comment, add extra parameter, and update to store previous symbol
13693 when appropriate.
13694 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13695 add extra parameter.
13696 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13697 remove unneeded parameter, add try/catch around gdb_print_insn,
13698 rewrite to add items to asm_lines vector.
13699 (tui_find_backward_disassembly_start_address): New function.
13700 (tui_find_disassembly_address): Updated throughout.
13701 (tui_disasm_window::set_contents): Update for changes to
13702 tui_disassemble.
13703 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13704 number of lines to scroll.
13705
13706 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13707
13708 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13709 (SECT_OFF_DATA): Likewise.
13710 (SECT_OFF_RODATA): Likewise.
13711 (SECT_OFF_TEXT): Likewise.
13712 (SECT_OFF_BSS): Likewise.
13713 (struct objfile) <text_section_offset, data_section_offset>: New
13714 methods.
13715 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13716 objfile::text_section_offset.
13717 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13718 * coffread.c (coff_symtab_read): Likewise.
13719 (enter_linenos): Likewise.
13720 (process_coff_symbol): Likewise.
13721 * ctfread.c (get_objfile_text_range): Likewise.
13722 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13723 Use objfile::data_section_offset.
13724 * dwarf2-frame.c (execute_cfa_program): Use
13725 objfile::text_section_offset.
13726 (dwarf2_frame_find_fde): Likewise.
13727 * dwarf2read.c (create_addrmap_from_index): Likewise.
13728 (create_addrmap_from_aranges): Likewise.
13729 (dw2_find_pc_sect_compunit_symtab): Likewise.
13730 (process_psymtab_comp_unit_reader): Likewise.
13731 (add_partial_symbol): Likewise.
13732 (add_partial_subprogram): Likewise.
13733 (process_full_comp_unit): Likewise.
13734 (read_file_scope): Likewise.
13735 (read_func_scope): Likewise.
13736 (read_lexical_block_scope): Likewise.
13737 (read_call_site_scope): Likewise.
13738 (dwarf2_rnglists_process): Likewise.
13739 (dwarf2_ranges_process): Likewise.
13740 (dwarf2_ranges_read): Likewise.
13741 (dwarf_decode_lines_1): Likewise.
13742 (new_symbol): Likewise.
13743 (dwarf2_fetch_die_loc_sect_off): Likewise.
13744 (dwarf2_per_cu_text_offset): Likewise.
13745 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13746 * hppa-tdep.c (read_unwind_info): Likewise.
13747 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13748 * psympriv.h (struct partial_symtab): Likewise.
13749 * psymtab.c (find_pc_sect_psymtab): Likewise.
13750 * solib-svr4.c (enable_break): Likewise.
13751 * stap-probe.c (relocate_address): Use
13752 objfile::data_section_offset.
13753 * xcoffread.c (enter_line_range): Use
13754 objfile::text_section_offset.
13755 (read_xcoff_symtab): Likewise.
13756
13757 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13758
13759 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13760 declaration to narrower scopes.
13761
13762 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13763
13764 * darwin-nat.h (struct darwin_exception_msg, enum
13765 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13766 Move up.
13767 (class darwin_nat_target) <wait_1, check_new_threads,
13768 decode_exception_message, decode_message, stop_inferior,
13769 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13770 * darwin-nat.c (darwin_check_new_threads): Rename to...
13771 (darwin_nat_target::check_new_threads): ... this.
13772 (darwin_suspend_inferior_it): Remove.
13773 (darwin_decode_exception_message): Rename to...
13774 (darwin_nat_target::decode_exception_message): ... this.
13775 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13776 (darwin_decode_message): Rename to...
13777 (darwin_nat_target::decode_message): ... this.
13778 (cancel_breakpoint): Rename to...
13779 (darwin_nat_target::cancel_breakpoint): ... this.
13780 (darwin_wait): Rename to...
13781 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13782 instead of iterate_over_inferiors.
13783 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13784 (darwin_stop_inferior): Rename to...
13785 (darwin_nat_target::stop_inferior): ... this.
13786 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13787 (darwin_init_thread_list): Rename to...
13788 (darwin_nat_target::init_thread_list): ... this.
13789 (darwin_ptrace_him): Rename to...
13790 (darwin_nat_target::ptrace_him): ... this.
13791 (darwin_nat_target::create_inferior): Pass lambda function to
13792 fork_inferior.
13793 (darwin_nat_target::detach): Call stop_inferior instead of
13794 darwin_stop_inferior.
13795 * fork-inferior.h (fork_inferior): Change init_trace_fun
13796 parameter to gdb::function_view.
13797 * fork-inferior.c (fork_inferior): Likewise.
13798
13799 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13800
13801 * i386-cygwin-tdep.c (core_process_module_section): Update.
13802 * windows-nat.c (struct lm_info_windows): Add text_offset.
13803 (windows_xfer_shared_libraries): Update.
13804 * windows-tdep.c (windows_xfer_shared_library):
13805 Add text_offset_cached argument.
13806 * windows-tdep.h (windows_xfer_shared_library): Update.
13807
13808 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13809
13810 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13811
13812 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13813
13814 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13815 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13816 replace with range-based for.
13817 (gdbsim_interrupt_inferior): Remove.
13818 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13819 with a range-based for. Inline code from
13820 gdbsim_interrupt_inferior.
13821
13822 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13823
13824 * infrun.c (proceed): Fix indentation.
13825
13826 2020-01-21 Tom Tromey <tromey@adacore.com>
13827
13828 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13829 * python/python.c (python_extension_ops): Update.
13830 (gdbpy_colorize): New function.
13831 * python/lib/gdb/__init__.py (colorize): New function.
13832 * extension.h (ext_lang_colorize): Declare.
13833 * extension.c (ext_lang_colorize): New function.
13834 * extension-priv.h (struct extension_language_ops) <colorize>: New
13835 member.
13836 * cli/cli-style.c (_initialize_cli_style): Update help text.
13837
13838 2020-01-21 Luis Machado <luis.machado@linaro.org>
13839
13840 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13841 <cond>: Change type to bool.
13842 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13843 (aarch64_displaced_step_cb): Likewise.
13844 (aarch64_displaced_step_tb): Likewise.
13845
13846 2020-01-21 Luis Machado <luis.machado@linaro.org>
13847
13848 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13849 output.
13850
13851 2020-01-21 Luis Machado <luis.machado@linaro.org>
13852
13853 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13854 <pc_adjust>: Adjust the documentation.
13855 (aarch64_displaced_step_fixup): Check if PC really moved before
13856 adjusting it.
13857
13858 2020-01-19 Tom Tromey <tom@tromey.com>
13859
13860 * disasm.c (~gdb_disassembler): New destructor.
13861 (gdb_buffered_insn_length): Call disassemble_free_target.
13862 * disasm.h (class gdb_disassembler): Declare destructor. Use
13863 DISABLE_COPY_AND_ASSIGN.
13864
13865 2020-01-19 Tom Tromey <tom@tromey.com>
13866
13867 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13868 (die_reader_func_ftype): Remove.
13869 (cutu_reader): New class.
13870 (dw2_get_file_names_reader): Remove "data" parameter.
13871 (dw2_get_file_names): Use cutu_reader.
13872 (create_debug_type_hash_table): Update.
13873 (read_cutu_die_from_dwo): Update comment.
13874 (lookup_dwo_unit): Add dwo_name parameter.
13875 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13876 die_reader_func_ftype and data parameters.
13877 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13878 Remove die_reader_func_ftype and data parameters.
13879 (~cutu_reader): New; from init_cutu_and_read_dies.
13880 (cutu_reader::cutu_reader): Rename from
13881 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13882 and data parameters.
13883 (init_cutu_and_read_dies_simple): Remove.
13884 (struct process_psymtab_comp_unit_data): Remove.
13885 (process_psymtab_comp_unit_reader): Remove data parameter; add
13886 want_partial_unit and pretend_language parameters.
13887 (process_psymtab_comp_unit): Use cutu_reader.
13888 (build_type_psymtabs_reader): Remove data parameter.
13889 (build_type_psymtabs_1): Use cutu_reader.
13890 (process_skeletonless_type_unit): Likewise.
13891 (load_partial_comp_unit_reader): Remove.
13892 (load_partial_comp_unit): Use cutu_reader.
13893 (load_full_comp_unit_reader): Remove.
13894 (load_full_comp_unit): Use cutu_reader.
13895 (struct create_dwo_cu_data): Remove.
13896 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13897 dwo_unit parameters.
13898 (create_cus_hash_table): Use cutu_reader.
13899 (struct dwarf2_read_addr_index_data): Remove.
13900 (dwarf2_read_addr_index_reader): Remove.
13901 (dwarf2_read_addr_index): Use cutu_reader.
13902 (read_signatured_type_reader): Remove.
13903 (read_signatured_type): Use cutu_reader.
13904
13905 2020-01-19 Tom Tromey <tom@tromey.com>
13906
13907 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13908 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13909 (tui_wrefresh): Declare.
13910 * tui/tui-wingeneral.c (suppress_output): New global.
13911 (tui_suppress_output, ~tui_suppress_output): New constructor and
13912 destructor.
13913 (tui_wrefresh): New function.
13914 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13915 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13916 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13917 method.
13918 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13919 tui_wrefresh.
13920 (tui_data_window::no_refresh): New method.
13921 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13922 (tui_reg_command): Use tui_suppress_output
13923 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13924 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13925 method.
13926 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13927
13928 2020-01-19 Tom Tromey <tom@tromey.com>
13929
13930 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13931 Handle case where symtab is null.
13932
13933 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13934
13935 * linux-fork.c (one_fork_p): Simplify.
13936
13937 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13938
13939 * top.c (struct qt_args): Remove.
13940 (kill_or_detach): Change return type to void, replace `void *`
13941 parameter with a proper one.
13942 (print_inferior_quit_action): Likewise.
13943 (quit_confirm): Use range-based for loop to iterate over inferiors.
13944 (quit_force): Likewise.
13945
13946 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13947
13948 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13949 `void *` parameter with proper parameters.
13950 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13951 (print_one_inferior): Change return type to void, replace `void *`
13952 parameter with proper parameters.
13953 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13954 inferiors.
13955 (get_other_inferior): Remove.
13956 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13957 inferiors.
13958
13959 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13960
13961 * mi/mi-interp.c (report_initial_inferior): Remove.
13962 (mi_interp::init): Use range-based for to iterate over inferiors.
13963
13964 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * python/py-inferior.c (build_inferior_list): Remove.
13967 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13968
13969 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13970
13971 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13972 (btrace_stitch_trace): Likewise.
13973 * charset.c (intermediate_encoding): Likewise (vaild).
13974 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13975 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13976 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13977
13978 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13979
13980 * windows-tdep.c (windows_get_tlb_type):
13981 Add rtl_user_process_parameters type.
13982
13983 2020-01-16 Pedro Alves <palves@redhat.com>
13984 Norbert Lange <nolange79@gmail.com>
13985
13986 PR build/24805
13987 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13988 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13989 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13990 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13991 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13992 (ps_plog): Redeclare exported functions with default visibility.
13993
13994 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13995
13996 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13997 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13998
13999 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14000
14001 * infcmd.c (post_create_inferior): Use get_thread_regcache
14002 instead of get_current_regcache.
14003
14004 2020-01-14 Tom Tromey <tom@tromey.com>
14005
14006 PR symtab/12535:
14007 * python/python.c (gdbpy_decode_line): Treat empty string the same
14008 as no argument.
14009
14010 2020-01-14 Tom Tromey <tom@tromey.com>
14011
14012 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14013
14014 2020-01-14 Tom Tromey <tom@tromey.com>
14015
14016 * nat/linux-btrace.c: Don't include <config.h>.
14017 * nat/linux-ptrace.c: Don't include <config.h>.
14018 * nat/x86-linux-dregs.c: Don't include <config.h>.
14019
14020 2020-01-14 Tom Tromey <tom@tromey.com>
14021
14022 * configure: Rebuild.
14023 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14024
14025 2020-01-14 Tom Tromey <tom@tromey.com>
14026
14027 * nat/x86-linux-dregs.c: Include configh.h.
14028 * nat/linux-ptrace.c: Include configh.h.
14029 * nat/linux-btrace.c: Include configh.h.
14030 * defs.h: Include config.h, bfd.h.
14031 * configure.ac: Don't source common.host.
14032 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14033 * configure: Rebuild.
14034 * acinclude.m4: Update path.
14035 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14036 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14037 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14038 (CLIBS): Add LIBSUPPORT.
14039 (CDEPS): Likewise.
14040 (COMMON_SFILES): Remove gdbsupport files.
14041 (HFILES_NO_SRCDIR): Likewise.
14042 (stamp-version): Update path to create-version.sh.
14043 (ALLDEPFILES): Remove gdbsupport files.
14044
14045 2020-01-14 Tom Tromey <tom@tromey.com>
14046
14047 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14048 USE_WIN32API when needed.
14049 * configure.ac (USE_WIN32API): Don't define.
14050 (WIN32LIBS): Use WIN32APILIBS.
14051 * configure: Rebuild.
14052
14053 2020-01-14 Tom Tromey <tom@tromey.com>
14054
14055 * configure: Rebuild.
14056 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14057
14058 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14059
14060 * skip.c (skip_function_command): Make skip w/o arguments use the
14061 name of the inlined function if pc is inside any inlined function.
14062
14063 2020-01-14 Luis Machado <luis.machado@linaro.org>
14064
14065 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14066 * infrun.c (resume_1): Likewise.
14067 (handle_inferior_event): Remove stale comment.
14068 * linux-nat.c (linux_nat_target::resume): Update comments.
14069 (save_stop_reason): Likewise.
14070 (linux_nat_filter_event): Likewise.
14071 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14072
14073 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14074
14075 * elfread.c (record_minimal_symbol): Set section index to 0 for
14076 non-allocatable sections.
14077
14078
14079 2020-01-13 Ali Tamur <tamur@google.com>
14080
14081 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14082 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14083 to gdb::optional. Update comments.
14084 (dwo_file): Update comments.
14085 (read_attribute): Update API to take an additional out parameter,
14086 need_reprocess. This is used to mark attributes that need other
14087 attributes (e.g. str_offsets_base) for correct computation which may not
14088 have been read yet.
14089 (read_attribute_reprocess): New function declaration.
14090 (read_addr_index): Likewise.
14091 (read_dwo_str_index): Likewise.
14092 (read_stub_str_index): Likewise.
14093 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14094 (lookup_addr_base): New function definition.
14095 (lookup_ranges_base): Likewise.
14096 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14097 lookup_ranges_base.
14098 (init_cutu_and_read_dies): Update comments.
14099 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14100 unit. This is used to inherit parent's str_offsets_base and addr_base.
14101 Update comments.
14102 (init_cutu_and_read_dies_simple): Reflect API changes.
14103 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14104 (create_cus_hash_table): Change API to take parent compile unit.
14105 Reflect API changes.
14106 (open_and_init_dwo_file): Reflect API changes.
14107 (dwarf2_get_pc_bounds): Update comments.
14108 (dwarf2_record_block_ranges): Likewise.
14109 (read_full_die_1): Change implementation to reprocess attributes that
14110 need str_offsets_base and addr_base.
14111 (partial_die_info::read): Likewise.
14112 (read_attribute_reprocess): New function definition.
14113 (read_attribute_value): Change API to take an additional out parameter,
14114 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14115 when a non-dwo compile unit has index based attributes.
14116 (read_attribute): Reflect API changes.
14117 (read_addr_index_1): Reflect API changes. Update comments.
14118 (dwarf2_read_addr_index_data): Reflect API changes.
14119 (dwarf2_read_addr_index): Likewise.
14120 (read_str_index): Change API and implementation. This becomes a helper
14121 to be used by the new string index related methods. Update error
14122 message and comments.
14123 (read_dwo_str_index): New function definition.
14124 (read_stub_str_index): Likewise.
14125 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14126 * symfile.h (dwarf2_debug_sections): Likewise.
14127 * xcoffread.c (dwarf2_debug_sections): Likewise.
14128
14129 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14130
14131 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14132 core_reg_sect type to gdb_byte *.
14133 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14134 * cris-tdep.c (fetch_core_registers): Likewise.
14135 * corelow.c (core_target::get_core_register_section): Change
14136 type of `contents` to gdb::byte_vector.
14137
14138 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14139
14140 * tui/tui-wingeneral.c (box_win): Position the title in the center
14141 of the border.
14142
14143 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14144
14145 * corelow.c (core_target::get_core_register_section): Use
14146 std::vector instead of alloca.
14147
14148 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * warning.m4: Add -Wmissing-declarations to build_warnings.
14151 * configure: Re-generate.
14152
14153 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14154
14155 * python/python.c (init__gdb_module): Add declaration.
14156
14157 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14160 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14161 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14162 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14163 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14164 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14165 * ada-exp.y (_initialize_ada_exp): Add declaration.
14166 * ada-lang.c (_initialize_ada_language): Add declaration.
14167 * ada-tasks.c (_initialize_tasks): Add declaration.
14168 * agent.c (_initialize_agent): Add declaration.
14169 * aix-thread.c (_initialize_aix_thread): Add declaration.
14170 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14171 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14172 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14173 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14174 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14175 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14176 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14177 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14178 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14179 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14180 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14181 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14182 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14183 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14184 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14185 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14186 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14187 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14188 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14189 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14190 * annotate.c (_initialize_annotate): Add declaration.
14191 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14192 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14193 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14194 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14195 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14196 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14197 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14198 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14199 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14200 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14201 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14202 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14203 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14204 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14205 * auto-load.c (_initialize_auto_load): Add declaration.
14206 * auxv.c (_initialize_auxv): Add declaration.
14207 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14208 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14209 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14210 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14211 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14212 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14213 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14214 * breakpoint.c (_initialize_breakpoint): Add declaration.
14215 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14216 * btrace.c (_initialize_btrace): Add declaration.
14217 * charset.c (_initialize_charset): Add declaration.
14218 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14219 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14220 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14221 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14222 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14223 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14224 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14225 * coffread.c (_initialize_coffread): Add declaration.
14226 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14227 * compile/compile.c (_initialize_compile): Add declaration.
14228 * complaints.c (_initialize_complaints): Add declaration.
14229 * completer.c (_initialize_completer): Add declaration.
14230 * copying.c (_initialize_copying): Add declaration.
14231 * corefile.c (_initialize_core): Add declaration.
14232 * corelow.c (_initialize_corelow): Add declaration.
14233 * cp-abi.c (_initialize_cp_abi): Add declaration.
14234 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14235 * cp-support.c (_initialize_cp_support): Add declaration.
14236 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14237 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14238 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14239 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14240 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14241 * ctfread.c (_initialize_ctfread): Add declaration.
14242 * d-lang.c (_initialize_d_language): Add declaration.
14243 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14244 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14245 * dbxread.c (_initialize_dbxread): Add declaration.
14246 * dcache.c (_initialize_dcache): Add declaration.
14247 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14248 * disasm.c (_initialize_disasm): Add declaration.
14249 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14250 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14251 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14252 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14253 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14254 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14255 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14256 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14257 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14258 * elfread.c (_initialize_elfread): Add declaration.
14259 * exec.c (_initialize_exec): Add declaration.
14260 * extension.c (_initialize_extension): Add declaration.
14261 * f-lang.c (_initialize_f_language): Add declaration.
14262 * f-valprint.c (_initialize_f_valprint): Add declaration.
14263 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14264 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14265 * filesystem.c (_initialize_filesystem): Add declaration.
14266 * findcmd.c (_initialize_mem_search): Add declaration.
14267 * findvar.c (_initialize_findvar): Add declaration.
14268 * fork-child.c (_initialize_fork_child): Add declaration.
14269 * frame-base.c (_initialize_frame_base): Add declaration.
14270 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14271 * frame.c (_initialize_frame): Add declaration.
14272 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14273 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14274 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14275 * gcore.c (_initialize_gcore): Add declaration.
14276 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14277 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14278 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14279 * gdbarch.c (_initialize_gdbarch): Add declaration.
14280 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14281 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14282 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14283 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14284 * go-lang.c (_initialize_go_language): Add declaration.
14285 * go32-nat.c (_initialize_go32_nat): Add declaration.
14286 * guile/guile.c (_initialize_guile): Add declaration.
14287 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14288 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14289 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14290 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14291 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14292 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14293 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14294 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14295 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14296 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14297 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14298 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14299 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14300 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14301 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14302 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14303 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14304 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14305 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14306 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14307 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14308 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14309 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14310 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14311 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14312 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14313 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14314 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14315 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14316 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14317 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14318 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14319 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14320 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14321 * infcall.c (_initialize_infcall): Add declaration.
14322 * infcmd.c (_initialize_infcmd): Add declaration.
14323 * inflow.c (_initialize_inflow): Add declaration.
14324 * infrun.c (_initialize_infrun): Add declaration.
14325 * interps.c (_initialize_interpreter): Add declaration.
14326 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14327 * jit.c (_initialize_jit): Add declaration.
14328 * language.c (_initialize_language): Add declaration.
14329 * linux-fork.c (_initialize_linux_fork): Add declaration.
14330 * linux-nat.c (_initialize_linux_nat): Add declaration.
14331 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14332 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14333 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14334 * m2-lang.c (_initialize_m2_language): Add declaration.
14335 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14336 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14337 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14338 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14339 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14340 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14341 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14342 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14343 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14344 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14345 * machoread.c (_initialize_machoread): Add declaration.
14346 * macrocmd.c (_initialize_macrocmd): Add declaration.
14347 * macroscope.c (_initialize_macroscope): Add declaration.
14348 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14349 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14350 * maint.c (_initialize_maint_cmds): Add declaration.
14351 * mdebugread.c (_initialize_mdebugread): Add declaration.
14352 * memattr.c (_initialize_mem): Add declaration.
14353 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14354 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14355 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14356 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14357 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14358 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14359 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14360 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14361 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14362 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14363 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14364 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14365 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14366 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14367 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14368 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14369 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14370 * mipsread.c (_initialize_mipsread): Add declaration.
14371 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14372 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14373 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14374 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14375 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14376 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14377 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14378 * nto-procfs.c (_initialize_procfs): Add declaration.
14379 * objc-lang.c (_initialize_objc_language): Add declaration.
14380 * observable.c (_initialize_observer): Add declaration.
14381 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14382 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14383 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14384 * osabi.c (_initialize_gdb_osabi): Add declaration.
14385 * osdata.c (_initialize_osdata): Add declaration.
14386 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14387 * parse.c (_initialize_parse): Add declaration.
14388 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14389 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14390 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14391 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14392 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14393 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14394 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14395 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14396 * printcmd.c (_initialize_printcmd): Add declaration.
14397 * probe.c (_initialize_probe): Add declaration.
14398 * proc-api.c (_initialize_proc_api): Add declaration.
14399 * proc-events.c (_initialize_proc_events): Add declaration.
14400 * proc-service.c (_initialize_proc_service): Add declaration.
14401 * procfs.c (_initialize_procfs): Add declaration.
14402 * producer.c (_initialize_producer): Add declaration.
14403 * psymtab.c (_initialize_psymtab): Add declaration.
14404 * python/python.c (_initialize_python): Add declaration.
14405 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14406 * record-btrace.c (_initialize_record_btrace): Add declaration.
14407 * record-full.c (_initialize_record_full): Add declaration.
14408 * record.c (_initialize_record): Add declaration.
14409 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14410 * regcache.c (_initialize_regcache): Add declaration.
14411 * reggroups.c (_initialize_reggroup): Add declaration.
14412 * remote-notif.c (_initialize_notif): Add declaration.
14413 * remote-sim.c (_initialize_remote_sim): Add declaration.
14414 * remote.c (_initialize_remote): Add declaration.
14415 * reverse.c (_initialize_reverse): Add declaration.
14416 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14417 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14418 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14419 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14420 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14421 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14422 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14423 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14424 Add declaration.
14425 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14426 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14427 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14428 * rust-exp.y (_initialize_rust_exp): Add declaration.
14429 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14430 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14431 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14432 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14433 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14434 * score-tdep.c (_initialize_score_tdep): Add declaration.
14435 * ser-go32.c (_initialize_ser_dos): Add declaration.
14436 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14437 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14438 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14439 * ser-uds.c (_initialize_ser_socket): Add declaration.
14440 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14441 * serial.c (_initialize_serial): Add declaration.
14442 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14443 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14444 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14445 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14446 * skip.c (_initialize_step_skip): Add declaration.
14447 * sol-thread.c (_initialize_sol_thread): Add declaration.
14448 * solib-aix.c (_initialize_solib_aix): Add declaration.
14449 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14450 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14451 * solib-frv.c (_initialize_frv_solib): Add declaration.
14452 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14453 * solib-target.c (_initialize_solib_target): Add declaration.
14454 * solib.c (_initialize_solib): Add declaration.
14455 * source-cache.c (_initialize_source_cache): Add declaration.
14456 * source.c (_initialize_source): Add declaration.
14457 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14458 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14459 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14460 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14461 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14462 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14463 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14464 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14465 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14466 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14467 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14468 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14469 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14470 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14471 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14472 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14473 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14474 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14475 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14476 * stabsread.c (_initialize_stabsread): Add declaration.
14477 * stack.c (_initialize_stack): Add declaration.
14478 * stap-probe.c (_initialize_stap_probe): Add declaration.
14479 * std-regs.c (_initialize_frame_reg): Add declaration.
14480 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14481 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14482 * symfile.c (_initialize_symfile): Add declaration.
14483 * symmisc.c (_initialize_symmisc): Add declaration.
14484 * symtab.c (_initialize_symtab): Add declaration.
14485 * target.c (_initialize_target): Add declaration.
14486 * target-connection.c (_initialize_target_connection): Add
14487 declaration.
14488 * target-dcache.c (_initialize_target_dcache): Add declaration.
14489 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14490 * thread.c (_initialize_thread): Add declaration.
14491 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14492 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14493 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14494 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14495 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14496 * tracectf.c (_initialize_ctf): Add declaration.
14497 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14498 * tracefile.c (_initialize_tracefile): Add declaration.
14499 * tracepoint.c (_initialize_tracepoint): Add declaration.
14500 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14501 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14502 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14503 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14504 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14505 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14506 * tui/tui.c (_initialize_tui): Add declaration.
14507 * typeprint.c (_initialize_typeprint): Add declaration.
14508 * ui-style.c (_initialize_ui_style): Add declaration.
14509 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14510 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14511 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14512 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14513 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14514 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14515 * unittests/filtered_iterator-selftests.c
14516 (_initialize_filtered_iterator_selftests): Add declaration.
14517 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14518 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14519 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14520 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14521 * unittests/main-thread-selftests.c
14522 (_initialize_main_thread_selftests): Add declaration.
14523 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14524 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14525 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14526 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14527 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14528 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14529 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14530 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14531 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14532 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14533 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14534 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14535 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14536 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14537 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14538 declaration.
14539 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14540 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14541 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14542 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14543 * user-regs.c (_initialize_user_regs): Add declaration.
14544 * utils.c (_initialize_utils): Add declaration.
14545 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14546 * valops.c (_initialize_valops): Add declaration.
14547 * valprint.c (_initialize_valprint): Add declaration.
14548 * value.c (_initialize_values): Add declaration.
14549 * varobj.c (_initialize_varobj): Add declaration.
14550 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14551 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14552 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14553 * windows-nat.c (_initialize_windows_nat): Add declaration.
14554 (_initialize_check_for_gdb_ini): Add declaration.
14555 (_initialize_loadable): Add declaration.
14556 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14557 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14558 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14559 * xcoffread.c (_initialize_xcoffread): Add declaration.
14560 * xml-support.c (_initialize_xml_support): Add declaration.
14561 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14562 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14563 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14564 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14565
14566 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14567
14568 * regformats/regdat.sh: Generate declaration for init function.
14569
14570 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14571
14572 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14573 up.
14574 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14575 close_one_inferior>: New methods.
14576 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14577 pass down target to find_inferior_pid.
14578 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14579 Pass down target to find_inferior_ptid.
14580 (gdbsim_target::create_inferior): Pass down target to
14581 add_thread_silent.
14582 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14583 target down to find_inferior_ptid and switch_to_thread.
14584 (gdbsim_target::close): Update to call close_one_inferior.
14585 (struct resume_data): Remove.
14586 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14587 directly, rather than through a void pointer.
14588 (gdbsim_target::resume): Update to call resume_one_inferior.
14589
14590 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14591
14592 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14593
14594 2020-01-12 Pedro Alves <palves@redhat.com>
14595
14596 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14597 directly for the current inferior instead of
14598 discard_all_inferiors.
14599 (discard_all_inferiors): Delete.
14600
14601 2020-01-11 Tom Tromey <tom@tromey.com>
14602
14603 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14604 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14605 deprecated_safe_get_selected_frame.
14606
14607 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14608
14609 * inferior.c (print_inferior): Switch inferior before printing it.
14610
14611 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14612 Pedro Alves <palves@redhat.com>
14613
14614 * progspace-and-thread.c (switch_to_program_space_and_thread):
14615 Assert there's an inferior for PSPACE. Use
14616 switch_to_inferior_no_thread to switch the inferior too.
14617 * progspace.c (program_space::~program_space): Call
14618 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14619 (program_space::free_all_objfiles): Don't call clear_symtab_users
14620 here.
14621 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14622
14623 2020-01-10 Pedro Alves <palves@redhat.com>
14624
14625 * NEWS: Mention multi-target debugging, "info connections", and
14626 "add-inferior -no-connection".
14627
14628 2020-01-10 Pedro Alves <palves@redhat.com>
14629
14630 * infrun.c: Include "target-connection.h".
14631 (check_multi_target_resumption): New.
14632 (proceed): Call it.
14633 * target-connection.c (make_target_connection_string): Make
14634 extern.
14635 * target-connection.h (make_target_connection_string): Declare.
14636
14637 2020-01-10 Pedro Alves <palves@redhat.com>
14638
14639 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14640 * inferior.c (uiout_field_connection): New function.
14641 (print_inferior): Add new "connection-id" column.
14642 (add_inferior_command): Show connection number/string of added
14643 inferior.
14644 * process-stratum-target.h
14645 (process_stratum_target::connection_string): New virtual method.
14646 (process_stratum_target::connection_number): New field.
14647 * remote.c (remote_target::connection_string): New override.
14648 * target-connection.c: New file.
14649 * target-connection.h: New file.
14650 * target.c (decref_target): Remove process_stratum targets from
14651 the connection list.
14652 (target_stack::push): Add process_stratum targets to the
14653 connection list.
14654
14655 2020-01-10 Pedro Alves <palves@redhat.com>
14656
14657 Revert:
14658 2016-04-12 Pedro Alves <palves@redhat.com>
14659 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14660 Remove references to name.
14661 * serial.h (struct serial) <name>: Delete.
14662
14663 2020-01-10 Pedro Alves <palves@redhat.com>
14664
14665 * gdbarch-selftests.c (register_to_value_test): Remove "target
14666 already pushed" check.
14667
14668 2020-01-10 Pedro Alves <palves@redhat.com>
14669 John Baldwin <jhb@FreeBSD.org>
14670
14671 * aarch64-linux-nat.c
14672 (aarch64_linux_nat_target::thread_architecture): Adjust.
14673 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14674 (task_command_1): Likewise.
14675 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14676 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14677 (aix_thread_target::store_registers)
14678 (aix_thread_target::thread_alive): Adjust.
14679 * amd64-fbsd-tdep.c: Include "inferior.h".
14680 (amd64fbsd_get_thread_local_address): Pass down target.
14681 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14682 thread's gdbarch instead of target_gdbarch.
14683 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14684 get_last_target_status.
14685 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14686 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14687 inferiors.
14688 (update_inserted_breakpoint_locations): Skip if inferiors with no
14689 execution.
14690 (update_global_location_list): When handling moribund locations,
14691 find representative inferior for location's pspace, and use thread
14692 count of its process_stratum target.
14693 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14694 * bsd-uthread.c (bsd_uthread_target::wait): Use
14695 as_process_stratum_target and adjust thread_change_ptid and
14696 add_thread calls.
14697 (bsd_uthread_target::update_thread_list): Use
14698 as_process_stratum_target and adjust find_thread_ptid,
14699 thread_change_ptid and add_thread calls.
14700 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14701 find_thread_ptid call.
14702 * corelow.c (add_to_thread_list): Adjust add_thread call.
14703 (core_target_open): Adjust add_thread_silent and thread_count
14704 calls.
14705 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14706 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14707 * event-top.c (async_disconnect): Pop targets from all inferiors.
14708 * exec.c (add_target_sections): Push exec target on all inferiors
14709 sharing the program space.
14710 (remove_target_sections): Remove the exec target from all
14711 inferiors sharing the program space.
14712 (exec_on_vfork): New.
14713 * exec.h (exec_on_vfork): Declare.
14714 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14715 Pass it down.
14716 (fbsd_nat_target::update_thread_list): Adjust.
14717 (fbsd_nat_target::resume): Adjust.
14718 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14719 down.
14720 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14721 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14722 get_thread_arch_regcache call.
14723 * fork-child.c (gdb_startup_inferior): Pass target down to
14724 startup_inferior and set_executing.
14725 * gdbthread.h (struct process_stratum_target): Forward declare.
14726 (add_thread, add_thread_silent, add_thread_with_info)
14727 (in_thread_list): Add process_stratum_target parameter.
14728 (find_thread_ptid(inferior*, ptid_t)): New overload.
14729 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14730 parameter.
14731 (all_threads()): Delete overload.
14732 (all_threads, all_non_exited_threads): Add process_stratum_target
14733 parameter.
14734 (all_threads_safe): Use brace initialization.
14735 (thread_count): Add process_stratum_target parameter.
14736 (set_resumed, set_running, set_stop_requested, set_executing)
14737 (threads_are_executing, finish_thread_state): Add
14738 process_stratum_target parameter.
14739 (switch_to_thread): Use is_current_thread.
14740 * i386-fbsd-tdep.c: Include "inferior.h".
14741 (i386fbsd_get_thread_local_address): Pass down target.
14742 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14743 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14744 have_inferiors check.
14745 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14746 (inf_ptrace_target::attach): Adjust.
14747 * infcall.c (run_inferior_call): Adjust.
14748 * infcmd.c (run_command_1): Pass target to
14749 scoped_finish_thread_state.
14750 (proceed_thread_callback): Skip inferiors with no execution.
14751 (continue_command): Rename 'all_threads' local to avoid hiding
14752 'all_threads' function. Adjust get_last_target_status call.
14753 (prepare_one_step): Adjust set_running call.
14754 (signal_command): Use user_visible_resume_target. Compare thread
14755 pointers instead of inferior_ptid.
14756 (info_program_command): Adjust to pass down target.
14757 (attach_command): Mark target's 'thread_executing' flag.
14758 (stop_current_target_threads_ns): New, factored out from ...
14759 (interrupt_target_1): ... this. Switch inferior before making
14760 target calls.
14761 * inferior-iter.h
14762 (struct all_inferiors_iterator, struct all_inferiors_range)
14763 (struct all_inferiors_safe_range)
14764 (struct all_non_exited_inferiors_range): Filter on
14765 process_stratum_target too. Remove explicit.
14766 * inferior.c (inferior::inferior): Push dummy target on target
14767 stack.
14768 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14769 Add process_stratum_target parameter, and pass it down.
14770 (have_live_inferiors): Adjust.
14771 (switch_to_inferior_and_push_target): New.
14772 (add_inferior_command, clone_inferior_command): Handle
14773 "-no-connection" parameter. Use
14774 switch_to_inferior_and_push_target.
14775 (_initialize_inferior): Mention "-no-connection" option in
14776 the help of "add-inferior" and "clone-inferior" commands.
14777 * inferior.h: Include "process-stratum-target.h".
14778 (interrupt_target_1): Use bool.
14779 (struct inferior) <push_target, unpush_target, target_is_pushed,
14780 find_target_beneath, top_target, process_target, target_at,
14781 m_stack>: New.
14782 (discard_all_inferiors): Delete.
14783 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14784 (all_inferiors, all_non_exited_inferiors): Add
14785 process_stratum_target parameter.
14786 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14787 (target_last_proc_target): New global.
14788 (follow_fork_inferior): Push target on new inferior. Pass target
14789 to add_thread_silent. Call exec_on_vfork. Handle target's
14790 reference count.
14791 (follow_fork): Adjust get_last_target_status call. Also consider
14792 target.
14793 (follow_exec): Push target on new inferior.
14794 (struct execution_control_state) <target>: New field.
14795 (user_visible_resume_target): New.
14796 (do_target_resume): Call target_async.
14797 (resume_1): Set target's threads_executing flag. Consider resume
14798 target.
14799 (commit_resume_all_targets): New.
14800 (proceed): Also consider resume target. Skip threads of inferiors
14801 with no execution. Commit resumtion in all targets.
14802 (start_remote): Pass current inferior to wait_for_inferior.
14803 (infrun_thread_stop_requested): Consider target as well. Pass
14804 thread_info pointer to clear_inline_frame_state instead of ptid.
14805 (infrun_thread_thread_exit): Consider target as well.
14806 (random_pending_event_thread): New inferior parameter. Use it.
14807 (do_target_wait): Rename to ...
14808 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14809 down.
14810 (threads_are_resumed_pending_p, do_target_wait): New.
14811 (prepare_for_detach): Adjust calls.
14812 (wait_for_inferior): New inferior parameter. Handle it. Use
14813 do_target_wait_1 instead of do_target_wait.
14814 (fetch_inferior_event): Adjust. Switch to representative
14815 inferior. Pass target down.
14816 (set_last_target_status): Add process_stratum_target parameter.
14817 Save target in global.
14818 (get_last_target_status): Add process_stratum_target parameter and
14819 handle it.
14820 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14821 (context_switch): Check inferior_ptid == null_ptid before calling
14822 inferior_thread().
14823 (get_inferior_stop_soon): Pass down target.
14824 (wait_one): Rename to ...
14825 (poll_one_curr_target): ... this.
14826 (struct wait_one_event): New.
14827 (wait_one): New.
14828 (stop_all_threads): Adjust.
14829 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14830 event's target.
14831 (switch_back_to_stepped_thread): Also consider target.
14832 (print_stop_event): Update.
14833 (normal_stop): Update. Also consider the resume target.
14834 * infrun.h (wait_for_inferior): Remove declaration.
14835 (user_visible_resume_target): New declaration.
14836 (get_last_target_status, set_last_target_status): New
14837 process_stratum_target parameter.
14838 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14839 process_stratum_target parameter, and use it.
14840 (clear_inline_frame_state (thread_info*)): New.
14841 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14842 process_stratum_target parameter.
14843 (clear_inline_frame_state (thread_info*)): Declare.
14844 * linux-fork.c (delete_checkpoint_command): Pass target down to
14845 find_thread_ptid.
14846 (checkpoint_command): Adjust.
14847 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14848 instead of just tweaking inferior_ptid.
14849 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14850 (exit_lwp): Pass target down to find_thread_ptid.
14851 (attach_proc_task_lwp_callback): Pass target down to
14852 add_thread/set_running/set_executing.
14853 (linux_nat_target::attach): Pass target down to
14854 thread_change_ptid.
14855 (get_detach_signal): Pass target down to find_thread_ptid.
14856 Consider last target status's target.
14857 (linux_resume_one_lwp_throw, resume_lwp)
14858 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14859 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14860 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14861 (linux_nat_target::async_wait_fd): New.
14862 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14863 target down.
14864 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14865 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14866 * linux-thread-db.c (struct thread_db_info::process_target): New
14867 field.
14868 (add_thread_db_info): Save target.
14869 (get_thread_db_info): New process_stratum_target parameter. Also
14870 match target.
14871 (delete_thread_db_info): New process_stratum_target parameter.
14872 Also match target.
14873 (thread_from_lwp): Adjust to pass down target.
14874 (thread_db_notice_clone): Pass down target.
14875 (check_thread_db_callback): Pass down target.
14876 (try_thread_db_load_1): Always push the thread_db target.
14877 (try_thread_db_load, record_thread): Pass target down.
14878 (thread_db_target::detach): Pass target down. Always unpush the
14879 thread_db target.
14880 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14881 target down. Always unpush the thread_db target.
14882 (find_new_threads_callback, thread_db_find_new_threads_2)
14883 (thread_db_target::update_thread_list): Pass target down.
14884 (thread_db_target::pid_to_str): Pass current inferior down.
14885 (thread_db_target::get_thread_local_address): Pass target down.
14886 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14887 target down.
14888 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14889 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14890 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14891 (procfs_init_inferior): Rename to ...
14892 (procfs_target::procfs_init_inferior): ... this and adjust.
14893 (procfs_target::create_inferior, procfs_notice_thread)
14894 (procfs_do_thread_registers): Adjust.
14895 * ppc-fbsd-tdep.c: Include "inferior.h".
14896 (ppcfbsd_get_thread_local_address): Pass down target.
14897 * proc-service.c (ps_xfer_memory): Switch current inferior and
14898 program space as well.
14899 (get_ps_regcache): Pass target down.
14900 * process-stratum-target.c
14901 (process_stratum_target::thread_address_space)
14902 (process_stratum_target::thread_architecture): Pass target down.
14903 * process-stratum-target.h
14904 (process_stratum_target::threads_executing): New field.
14905 (as_process_stratum_target): New.
14906 * ravenscar-thread.c
14907 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14908 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14909 down.
14910 * record-btrace.c (record_btrace_target::info_record): Adjust.
14911 (record_btrace_target::record_method)
14912 (record_btrace_target::record_is_replaying)
14913 (record_btrace_target::fetch_registers)
14914 (get_thread_current_frame_id, record_btrace_target::resume)
14915 (record_btrace_target::wait, record_btrace_target::stop): Pass
14916 target down.
14917 * record-full.c (record_full_wait_1): Switch to event thread.
14918 Pass target down.
14919 * regcache.c (regcache::regcache)
14920 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14921 process_stratum_target parameter and handle it.
14922 (current_thread_target): New global.
14923 (get_thread_regcache): Add process_stratum_target parameter and
14924 handle it. Switch inferior before calling target method.
14925 (get_thread_regcache): Pass target down.
14926 (get_thread_regcache_for_ptid): Pass target down.
14927 (registers_changed_ptid): Add process_stratum_target parameter and
14928 handle it.
14929 (registers_changed_thread, registers_changed): Pass target down.
14930 (test_get_thread_arch_aspace_regcache): New.
14931 (current_regcache_test): Define a couple local test_target_ops
14932 instances and use them for testing.
14933 (readwrite_regcache): Pass process_stratum_target parameter.
14934 (cooked_read_test, cooked_write_test): Pass mock_target down.
14935 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14936 (get_thread_arch_aspace_regcache): Add process_stratum_target
14937 parameter.
14938 (regcache::target): New method.
14939 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14940 (regcache::registers_changed_ptid): Add process_stratum_target
14941 parameter.
14942 (regcache::m_target): New field.
14943 (registers_changed_ptid): Add process_stratum_target parameter.
14944 * remote.c (remote_state::supports_vCont_probed): New field.
14945 (remote_target::async_wait_fd): New method.
14946 (remote_unpush_and_throw): Add remote_target parameter.
14947 (get_current_remote_target): Adjust.
14948 (remote_target::remote_add_inferior): Push target.
14949 (remote_target::remote_add_thread)
14950 (remote_target::remote_notice_new_inferior)
14951 (get_remote_thread_info): Pass target down.
14952 (remote_target::update_thread_list): Skip threads of inferiors
14953 bound to other targets. (remote_target::close): Don't discard
14954 inferiors. (remote_target::add_current_inferior_and_thread)
14955 (remote_target::process_initial_stop_replies)
14956 (remote_target::start_remote)
14957 (remote_target::remote_serial_quit_handler): Pass down target.
14958 (remote_target::remote_unpush_target): New remote_target
14959 parameter. Unpush the target from all inferiors.
14960 (remote_target::remote_unpush_and_throw): New remote_target
14961 parameter. Pass it down.
14962 (remote_target::open_1): Check whether the current inferior has
14963 execution instead of checking whether any inferior is live. Pass
14964 target down.
14965 (remote_target::remote_detach_1): Pass down target. Use
14966 remote_unpush_target.
14967 (extended_remote_target::attach): Pass down target.
14968 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14969 (remote_target::append_resumption): Pass down target.
14970 (remote_target::append_pending_thread_resumptions)
14971 (remote_target::remote_resume_with_hc, remote_target::resume)
14972 (remote_target::commit_resume): Pass down target.
14973 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14974 (remote_target::interrupt_query)
14975 (remote_target::remove_new_fork_children)
14976 (remote_target::check_pending_events_prevent_wildcard_vcont)
14977 (remote_target::remote_parse_stop_reply)
14978 (remote_target::process_stop_reply): Pass down target.
14979 (first_remote_resumed_thread): New remote_target parameter. Pass
14980 it down.
14981 (remote_target::wait_as): Pass down target.
14982 (unpush_and_perror): New remote_target parameter. Pass it down.
14983 (remote_target::readchar, remote_target::remote_serial_write)
14984 (remote_target::getpkt_or_notif_sane_1)
14985 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14986 down target.
14987 (remote_target::mourn_inferior): Pass down target. Use
14988 remote_unpush_target.
14989 (remote_target::core_of_thread)
14990 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14991 (remote_target::pid_to_exec_file)
14992 (remote_target::thread_handle_to_thread_info): Pass down target.
14993 (remote_target::async_wait_fd): New.
14994 * riscv-fbsd-tdep.c: Include "inferior.h".
14995 (riscv_fbsd_get_thread_local_address): Pass down target.
14996 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14997 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14998 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14999 Adjust.
15000 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15001 * solib-svr4.c (enable_break): Pass down target.
15002 * spu-multiarch.c (parse_spufs_run): Pass down target.
15003 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15004 * target-delegates.c: Regenerate.
15005 * target.c (g_target_stack): Delete.
15006 (current_top_target): Return the current inferior's top target.
15007 (target_has_execution_1): Refer to the passed-in inferior's top
15008 target.
15009 (target_supports_terminal_ours): Check whether the initial
15010 inferior was already created.
15011 (decref_target): New.
15012 (target_stack::push): Incref/decref the target.
15013 (push_target, push_target, unpush_target): Adjust.
15014 (target_stack::unpush): Defref target.
15015 (target_is_pushed): Return bool. Adjust to refer to the current
15016 inferior's target stack.
15017 (dispose_inferior): Delete, and inline parts ...
15018 (target_preopen): ... here. Only dispose of the current inferior.
15019 (target_detach): Hold strong target reference while detaching.
15020 Pass target down.
15021 (target_thread_name): Add assertion.
15022 (target_resume): Pass down target.
15023 (target_ops::beneath, find_target_at): Adjust to refer to the
15024 current inferior's target stack.
15025 (get_dummy_target): New.
15026 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15027 has a thread running.
15028 (initialize_targets): Rename to ...
15029 (_initialize_target): ... this.
15030 * target.h: Include "gdbsupport/refcounted-object.h".
15031 (struct target_ops): Inherit refcounted_object.
15032 (target_ops::shortname, target_ops::longname): Make const.
15033 (target_ops::async_wait_fd): New method.
15034 (decref_target): Declare.
15035 (struct target_ops_ref_policy): New.
15036 (target_ops_ref): New typedef.
15037 (get_dummy_target): Declare function.
15038 (target_is_pushed): Return bool.
15039 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15040 (all_matching_threads_iterator::all_matching_threads_iterator):
15041 Handle filter target.
15042 * thread-iter.h (struct all_matching_threads_iterator, struct
15043 all_matching_threads_range, class all_non_exited_threads_range):
15044 Filter by target too. Remove explicit.
15045 * thread.c (threads_executing): Delete.
15046 (inferior_thread): Pass down current inferior.
15047 (clear_thread_inferior_resources): Pass down thread pointer
15048 instead of ptid_t.
15049 (add_thread_silent, add_thread_with_info, add_thread): Add
15050 process_stratum_target parameter. Use it for thread and inferior
15051 searches.
15052 (is_current_thread): New.
15053 (thread_info::deletable): Use it.
15054 (find_thread_ptid, thread_count, in_thread_list)
15055 (thread_change_ptid, set_resumed, set_running): New
15056 process_stratum_target parameter. Pass it down.
15057 (set_executing): New process_stratum_target parameter. Pass it
15058 down. Adjust reference to 'threads_executing'.
15059 (threads_are_executing): New process_stratum_target parameter.
15060 Adjust reference to 'threads_executing'.
15061 (set_stop_requested, finish_thread_state): New
15062 process_stratum_target parameter. Pass it down.
15063 (switch_to_thread): Also match inferior.
15064 (switch_to_thread): New process_stratum_target parameter. Pass it
15065 down.
15066 (update_threads_executing): Reimplement.
15067 * top.c (quit_force): Pop targets from all inferior.
15068 (gdb_init): Don't call initialize_targets.
15069 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15070 Declare.
15071 (windows_add_thread, windows_delete_thread): Adjust.
15072 (get_windows_debug_event): Rename to ...
15073 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15074 * tracefile-tfile.c (tfile_target_open): Pass down target.
15075 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15076 Forward declare.
15077 (switch_to_thread): Add process_stratum_target parameter.
15078 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15079 parameter. Use it.
15080 (mi_on_resume): Pass target down.
15081 * nat/fork-inferior.c (startup_inferior): Add
15082 process_stratum_target parameter. Pass it down.
15083 * nat/fork-inferior.h (startup_inferior): Add
15084 process_stratum_target parameter.
15085 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15086
15087 2020-01-10 Pedro Alves <palves@redhat.com>
15088
15089 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15090 directly. Instead find the first thread in the thread list and
15091 use switch_to_thread.
15092
15093 2020-01-10 Pedro Alves <palves@redhat.com>
15094
15095 * remote.c (remote_target::remote_add_inferior): Don't bind a
15096 process to the current inferior if the current inferior is already
15097 bound to a process.
15098
15099 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15100 Pedro Alves <palves@redhat.com>
15101
15102 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15103 If no process is specified, return null_ptid instead of
15104 inferior_ptid.
15105 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15106 TARGET_WAITKIND_SIGNALLED with no pid.
15107
15108 2020-01-10 Pedro Alves <palves@redhat.com>
15109
15110 * remote.c (first_remote_resumed_thread): New.
15111 (remote_target::wait_as): Use it as default event_ptid instead of
15112 inferior_ptid.
15113
15114 2020-01-10 Pedro Alves <palves@redhat.com>
15115
15116 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15117
15118 2020-01-10 Pedro Alves <palves@redhat.com>
15119
15120 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15121 not -1.
15122
15123 2020-01-10 Pedro Alves <palves@redhat.com>
15124
15125 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15126 ptid to get_last_target_status.
15127 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15128 ptid to get_last_target_status.
15129 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15130 get_last_target_status.
15131 (info_program_command): Don't pass a target_waitstatus to
15132 get_last_target_status.
15133 * infrun.c (init_wait_for_inferior): Use
15134 nullify_last_target_wait_ptid.
15135 (get_last_target_status): Handle nullptr arguments.
15136 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15137 (print_stop_event): Don't pass a ptid to get_last_target_status.
15138 (normal_stop): Don't pass a ptid to get_last_target_status.
15139 * infrun.h (get_last_target_status, set_last_target_status): Move
15140 comments here and update.
15141 (nullify_last_target_wait_ptid): Declare.
15142 * linux-fork.c (fork_load_infrun_state): Remove local extern
15143 declaration of nullify_last_target_wait_ptid.
15144 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15145 to get_last_target_status.
15146
15147 2020-01-10 Pedro Alves <palves@redhat.com>
15148
15149 * gdbthread.h (scoped_restore_current_thread)
15150 <dont_restore, restore, m_dont_restore>: Declare.
15151 * thread.c (thread_alive): Add assertion. Return bool.
15152 (switch_to_thread_if_alive): New.
15153 (prune_threads): Switch inferior/thread.
15154 (print_thread_info_1): Switch thread before calling target methods.
15155 (scoped_restore_current_thread::restore): New, factored out from
15156 ...
15157 (scoped_restore_current_thread::~scoped_restore_current_thread):
15158 ... this.
15159 (scoped_restore_current_thread::scoped_restore_current_thread):
15160 Add assertion.
15161 (thread_apply_all_command, thread_select): Use
15162 switch_to_thread_if_alive.
15163 * infrun.c (proceed, restart_threads, handle_signal_stop)
15164 (switch_back_to_stepped_thread): Switch current thread before
15165 calling target methods.
15166
15167 2020-01-10 Pedro Alves <palves@redhat.com>
15168
15169 * inferior.c (switch_to_inferior_no_thread): New function,
15170 factored out from ...
15171 (inferior_command): ... here.
15172 * inferior.h (switch_to_inferior_no_thread): Declare.
15173 * mi/mi-main.c (run_one_inferior): Use
15174 switch_to_inferior_no_thread.
15175
15176 2020-01-10 Pedro Alves <palves@redhat.com>
15177
15178 * infcmd.c (kill_command): Remove dead code.
15179
15180 2020-01-10 Pedro Alves <palves@redhat.com>
15181
15182 * remote.c (remote_target::mourn_inferior): No longer check
15183 whether the target is running.
15184
15185 2020-01-10 Pedro Alves <palves@redhat.com>
15186
15187 * corelow.c (core_target::has_execution): Change parameter type to
15188 inferior pointer.
15189 * inferior.c (number_of_live_inferiors): Use
15190 inferior::has_execution instead of target_has_execution_1.
15191 * inferior.h (inferior::has_execution): New.
15192 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15193 inferior::has_execution instead of target_has_execution_1.
15194 * process-stratum-target.c
15195 (process_stratum_target::has_execution): Change parameter type to
15196 inferior pointer. Check the inferior's PID instead of
15197 inferior_ptid.
15198 * process-stratum-target.h
15199 (process_stratum_target::has_execution): Change parameter type to
15200 inferior pointer.
15201 * record-full.c (record_full_core_target::has_execution): Change
15202 parameter type to inferior pointer.
15203 * target.c (target_has_execution_1): Change parameter type to
15204 inferior pointer.
15205 (target_has_execution_current): Adjust.
15206 * target.h (target_ops::has_execution): Change parameter type to
15207 inferior pointer.
15208 (target_has_execution_1): Change parameter type to inferior
15209 pointer. Change return type to bool.
15210 * tracefile.h (tracefile_target::has_execution): Change parameter
15211 type to inferior pointer.
15212
15213 2020-01-10 Pedro Alves <palves@redhat.com>
15214
15215 * exceptions.c (print_flush): Remove current_top_target() check.
15216
15217 2020-01-10 Pedro Alves <palves@redhat.com>
15218
15219 * remote.c (show_remote_exec_file): Show the current inferior's
15220 exec-file instead of the command variable's value.
15221
15222 2020-01-10 Pedro Alves <palves@redhat.com>
15223
15224 * record-full.c (record_full_resume_ptid): New global.
15225 (record_full_target::resume): Set it.
15226 (record_full_wait_1): Use record_full_resume_ptid instead of
15227 inferior_ptid.
15228
15229 2020-01-10 Pedro Alves <palves@redhat.com>
15230
15231 * gdbthread.h (scoped_restore_current_thread)
15232 <dont_restore, restore, m_dont_restore>: Declare.
15233 * thread.c (thread_alive): Add assertion. Return bool.
15234 (switch_to_thread_if_alive): New.
15235 (prune_threads): Switch inferior/thread.
15236 (print_thread_info_1): Switch thread before calling target methods.
15237 (scoped_restore_current_thread::restore): New, factored out from
15238 ...
15239 (scoped_restore_current_thread::~scoped_restore_current_thread):
15240 ... this.
15241 (scoped_restore_current_thread::scoped_restore_current_thread):
15242 Add assertion.
15243 (thread_apply_all_command, thread_select): Use
15244 switch_to_thread_if_alive.
15245
15246 2020-01-10 George Barrett <bob@bob131.so>
15247
15248 * stap-probe.c (stap_modify_semaphore): Don't check for null
15249 semaphores.
15250 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15251 for null semaphores.
15252
15253 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15254
15255 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15256 all source windows, and maintain horizontal scroll status while
15257 doing so.
15258
15259 2020-01-09 Tom Tromey <tom@tromey.com>
15260
15261 PR tui/18932:
15262 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15263 update_source_window, not print_source_lines.
15264
15265 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15266
15267 * tui/tui.c (tui_enable): Register tui hooks after calling
15268 tui_display_main.
15269
15270 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15271
15272 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15273
15274 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15275
15276 * thread.c (print_thread_info_1): Fix indentation.
15277
15278 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15279
15280 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15281 unique_xmalloc_ptr outside the if to always free the demangled name.
15282
15283 2020-01-08 Tom Tromey <tromey@adacore.com>
15284
15285 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15286 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15287 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15288 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15289 Remove.
15290 (section_offsets): New typedef.
15291 * symtab.c (fixup_section, get_msymbol_address): Update.
15292 * symmisc.c (dump_msymbols): Update.
15293 * symfile.h (relative_addr_info_to_section_offsets)
15294 (symfile_map_offsets_to_segments): Update.
15295 * symfile.c (build_section_addr_info_from_objfile)
15296 (init_objfile_sect_indices): Update.
15297 (struct place_section_arg): Change type of "offsets".
15298 (place_section): Update.
15299 (relative_addr_info_to_section_offsets): Change type of
15300 "section_offsets". Remove "num_sections" parameter.
15301 (default_symfile_offsets, syms_from_objfile_1)
15302 (set_objfile_default_section_offset): Update.
15303 (reread_symbols): No need to preserve section offsets by hand.
15304 (symfile_map_offsets_to_segments): Change type of "offsets".
15305 * stap-probe.c (relocate_address): Update.
15306 * stabsread.h (process_one_symbol): Update.
15307 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15308 (solib_target_relocate_section_addresses): Update.
15309 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15310 Update.
15311 * solib-frv.c (frv_relocate_main_executable): Update.
15312 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15313 * solib-aix.c (solib_aix_get_section_offsets): Change return
15314 type.
15315 (solib_aix_solib_create_inferior_hook): Update.
15316 * remote.c (remote_target::get_offsets): Update.
15317 * psymtab.c (find_pc_sect_psymtab): Update.
15318 * psympriv.h (struct partial_symbol) <address, text_low,
15319 text_high>: Update.
15320 * objfiles.h (obj_section_offset): Update.
15321 (struct objfile) <section_offsets>: Change type.
15322 <num_sections>: Remove.
15323 (objfile_relocate): Update.
15324 * objfiles.c (entry_point_address_query): Update
15325 (relocate_one_symbol): Change type of "section_offsets".
15326 (objfile_relocate1, objfile_relocate1): Change type of
15327 "new_offsets".
15328 (objfile_rebase1): Update.
15329 * mipsread.c (mipscoff_symfile_read): Update.
15330 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15331 parameter.
15332 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15333 (parse_external, psymtab_to_symtab_1): Update.
15334 * machoread.c (macho_symfile_offsets): Update.
15335 * ia64-tdep.c (ia64_find_unwind_table): Update.
15336 * hppa-tdep.c (read_unwind_info): Update.
15337 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15338 * dwarf2read.c (create_addrmap_from_index)
15339 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15340 (process_psymtab_comp_unit_reader, add_partial_symbol)
15341 (add_partial_subprogram, process_full_comp_unit)
15342 (read_file_scope, read_func_scope, read_lexical_block_scope)
15343 (read_call_site_scope, dwarf2_rnglists_process)
15344 (dwarf2_ranges_process, dwarf2_ranges_read)
15345 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15346 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15347 Update.
15348 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15349 Update.
15350 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15351 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15352 (process_one_symbol): Change type of "section_offsets".
15353 * ctfread.c (get_objfile_text_range): Update.
15354 * coffread.c (coff_symtab_read, enter_linenos)
15355 (process_coff_symbol): Update.
15356 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15357 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15358
15359 2020-01-08 Tom Tromey <tromey@adacore.com>
15360
15361 * dwarf2read.c (parse_macro_definition): Use std::string.
15362 (parse_macro_definition): Likewise.
15363
15364 2020-01-08 Tom Tromey <tromey@adacore.com>
15365
15366 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15367 (ATTR_ALLOC_CHUNK): Remove.
15368
15369 2020-01-08 Tom Tromey <tromey@adacore.com>
15370
15371 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15372
15373 2020-01-08 Tom Tromey <tromey@adacore.com>
15374
15375 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15376 (dwarf2_compute_name, open_dwo_file): Likewise.
15377 (process_enumeration_scope): Use std::vector.
15378 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15379 (partial_die_info::fixup, dwarf2_start_subfile)
15380 (guess_full_die_structure_name, dwarf2_name): Likewise.
15381 (determine_prefix): Update.
15382 (guess_full_die_structure_name): Make return type const.
15383 (partial_die_full_name): Return unique_xmalloc_ptr.
15384 (DW_FIELD_ALLOC_CHUNK): Remove.
15385
15386 2020-01-07 Tom Tromey <tromey@adacore.com>
15387
15388 PR build/24937:
15389 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15390
15391 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15392
15393 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15394
15395 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15396
15397 * stack.c (print_frame_info): Move disassemble_next_line code
15398 inside source_print block.
15399
15400 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15401
15402 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15403 gdb/signals.h, as we are now using native signal symbols.
15404
15405 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15406
15407 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15408 overflow by an early check of content vs threshold.
15409 * tui/tui-source.c (tui_source_window::line_is_displayed):
15410 Likewise.
15411
15412 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15413
15414 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15415
15416 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15417
15418 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15419 export table if no section contains it's RVA.
15420
15421 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15422
15423 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15424
15425 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15426
15427 * source.c (print_source_lines_base): Set last_line_listed.
15428
15429 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15430
15431 * tui/tui-disasm.c: Remove trailing spaces.
15432
15433 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15434 Pedro Alves <palves@redhat.com>
15435
15436 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15437 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15438 (windows_gdb_signal_to_target): New function, uses the above
15439 enumeration to convert GDB internal signal codes to equivalent
15440 Windows codes.
15441 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15442 * windows-nat.c: Include "gdb_wait.h".
15443 (get_windows_debug_event): Extract the fatal exception from the
15444 exit status and convert to the equivalent Posix signal number.
15445 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15446 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15447 * gdbsupport/gdb_wait.c: New file, implements
15448 windows_status_to_termsig.
15449 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15450 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15451
15452 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15453
15454 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15455 show_layout.
15456
15457 2020-01-05 Luis Machado <luis.machado@linaro.org>
15458
15459 * aarch64-linux-nat.c
15460 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15461 and bfd_mach_aarch64.
15462
15463 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15464
15465 * ui-file.c (stdio_file::can_emit_style_escape)
15466 (tee_file::can_emit_style_escape): Ensure style is used also on
15467 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15468 to gdb_stdout.
15469 * main.c (set_gdb_data_directory): Use file style to output the
15470 warning that the given pathname is not a directory.
15471 * top.c (show_history_filename, gdb_safe_append_history)
15472 (show_gdb_datadir): Use file style.
15473
15474 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15475
15476 * solib-target.c (struct lm_info_target):
15477 Change offsets to be a unique_xmalloc_ptr.
15478 (solib_target_relocate_section_addresses): Update.
15479
15480 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15481
15482 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15483
15484 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15485
15486 * MAINTAINERS (Write After Approval): Add myself.
15487
15488 2020-01-02 Luis Machado <luis.machado@linaro.org>
15489
15490 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15491 Cell BE architecture.
15492 * target.h (struct target_ops) <thread_architecture>: Likewise.
15493
15494 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15495
15496 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15497
15498 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15499
15500 * MAINTAINERS (Write After Approval): Add myself.
15501
15502 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15503
15504 * gdbarch.sh: Update copyright year range of generated files.
15505
15506 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15507
15508 Update copyright year range in all GDB files.
15509
15510 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15511
15512 * copyright.py: Convert to Python 3.
15513
15514 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15515
15516 * copyright.py: Adapt after move of gnulib directory from gdb
15517 directory to toplevel directory.
15518
15519 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15520
15521 * copyright.py (main): Exit if run from the wrong directory.
15522
15523 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15524
15525 * top.c (print_gdb_version): Change copyright year to 2020.
15526
15527 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15528
15529 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15530
15531 For older changes see ChangeLog-2019.
15532 \f
15533 Local Variables:
15534 mode: change-log
15535 left-margin: 8
15536 fill-column: 74
15537 version-control: never
15538 coding: utf-8
15539 End:
This page took 0.334131 seconds and 5 git commands to generate.