Have stamp-init depend on config.status
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-30 Tom Tromey <tromey@adacore.com>
2
3 * Makefile.in (stamp-init): Depend on config.status.
4
5 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6
7 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
8
9 2020-10-30 Pedro Alves <pedro@palves.net>
10
11 * thread.c (lookup_selected_frame): Move ...
12 * frame.c (lookup_selected_frame): ... here.
13
14 2020-10-30 Pedro Alves <pedro@palves.net>
15
16 * blockframe.c (block_innermost_frame): Use get_selected_frame.
17 * frame.c
18 (scoped_restore_selected_frame::scoped_restore_selected_frame):
19 Use save_selected_frame. Save language as well.
20 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
21 Use restore_selected_frame, and restore language as well.
22 (selected_frame_id, selected_frame_level): New.
23 (selected_frame): Update comments.
24 (save_selected_frame, restore_selected_frame): New.
25 (get_selected_frame): Use lookup_selected_frame.
26 (get_selected_frame_if_set): Delete.
27 (select_frame): Record selected_frame_level and selected_frame_id.
28 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
29 fields.
30 (get_selected_frame): Make 'message' parameter optional.
31 (get_selected_frame_if_set): Delete declaration.
32 (select_frame): Update comments.
33 (save_selected_frame, restore_selected_frame)
34 (lookup_selected_frame): Declare.
35 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
36 * infrun.c (struct infcall_control_state) <selected_frame_level>:
37 New field.
38 (save_infcall_control_state): Use save_selected_frame.
39 (restore_selected_frame): Delete.
40 (restore_infcall_control_state): Use restore_selected_frame.
41 * stack.c (select_frame_command_core, frame_command_core): Use
42 get_selected_frame.
43 * thread.c (restore_selected_frame): Rename to ...
44 (lookup_selected_frame): ... this and make extern. Select the
45 current frame if the frame level is -1.
46 (scoped_restore_current_thread::restore): Also restore the
47 language.
48 (scoped_restore_current_thread::~scoped_restore_current_thread):
49 Don't try/catch.
50 (scoped_restore_current_thread::scoped_restore_current_thread):
51 Save the language as well. Use save_selected_frame.
52
53 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
56 documentation.
57 * gdbarch.h: Re-generate.
58
59 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
62 parameter.
63 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
64 Likewise.
65 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
66 Likewise.
67 * arch-utils.c (default_displaced_step_hw_singlestep):
68 Likewise.
69 * arch-utils.h (default_displaced_step_hw_singlestep):
70 Likewise.
71 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
72 Likewise.
73 * s390-tdep.c (s390_displaced_step_hw_singlestep):
74 Likewise.
75 * gdbarch.c: Re-generate.
76 * gdbarch.h: Re-generate.
77 * infrun.c (resume_1): Adjust.
78
79 2020-10-29 Tom Tromey <tom@tromey.com>
80
81 * progspace.c (program_space::~program_space): Don't call
82 exec_close.
83
84 2020-10-29 Tom Tromey <tom@tromey.com>
85
86 * exec.c (exec_target::close): Don't change current program
87 space.
88
89 2020-10-29 Tom Tromey <tom@tromey.com>
90
91 * symfile.c (add_symbol_file_command): Update.
92 * exec.c (program_space::add_target_sections): Rename.
93 * symfile-mem.c (symbol_file_add_from_memory): Update.
94 * progspace.h (struct program_space) <add_target_sections>:
95 Declare new overload.
96 * exec.h (add_target_sections_of_objfile): Don't declare.
97
98 2020-10-29 Tom Tromey <tom@tromey.com>
99
100 * solib.c (solib_map_sections): Update.
101 * exec.c (program_space::add_target_sections): Now a method.
102 (exec_file_attach): Update.
103 * exec.h (add_target_sections): Don't declare.
104 * progspace.h (struct program_space) <add_target_sections>:
105 Declare.
106
107 2020-10-29 Tom Tromey <tom@tromey.com>
108
109 * progspace.h (struct program_space) <remove_target_sections>:
110 Declare.
111 * exec.c (program_space::remove_target_sections): Now a method.
112 * exec.h (remove_target_sections): Don't declare.
113
114 2020-10-29 Tom Tromey <tom@tromey.com>
115
116 * inferior.c (delete_inferior): Update.
117 * progspace.c (program_space::empty): Rename from
118 program_space_empty_p. Return bool.
119 * progspace.h (struct program_space) <empty>: New method.
120 (program_space_empty_p): Don't declare.
121
122 2020-10-29 Tom Tromey <tom@tromey.com>
123
124 * progspace.c (program_space::~program_space): Don't call
125 clear_program_space_solib_cache.
126 (program_space::clear_solib_cache): Rename from
127 clear_solib_cache.
128 * solib.c (handle_solib_event): Update.
129 * progspace.h (struct program_space) <clear_solib_cache>: New
130 method.
131 (clear_program_space_solib_cache): Don't declare.
132
133 2020-10-29 Tom Tromey <tom@tromey.com>
134
135 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
136 * target.c (info_target_command): Update.
137 * symfile.c (syms_from_objfile_1, finish_new_objfile)
138 (symbol_file_clear, reread_symbols): Update.
139 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
140 * stabsread.c (scan_file_globals): Update.
141 * solib.c (update_solib_list): Update.
142 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
143 (svr4_fetch_objfile_link_map, enable_break)
144 (svr4_relocate_main_executable)
145 (svr4_iterate_over_objfiles_in_search_order): Update.
146 * solib-frv.c (lm_base, enable_break)
147 (frv_relocate_main_executable): Update.
148 (main_got, frv_fdpic_find_canonical_descriptor): Update.
149 (frv_fetch_objfile_link_map): Update.
150 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
151 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
152 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
153 * remote.c (remote_target::get_offsets): Update.
154 (remote_target::start_remote)
155 (extended_remote_target::post_attach): Update.
156 * objfiles.c (entry_point_address_query): Update.
157 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
158 * minsyms.c (get_symbol_leading_char): Update.
159 * frame.c (inside_main_func): Update.
160 * progspace.h (symfile_objfile): Remove macro.
161
162 2020-10-29 Tom Tromey <tom@tromey.com>
163
164 * exec.c (exec_file_attach): Update.
165 * progspace.c (program_space::exec_close): Update.
166 * progspace.h (struct program_space) <ebfd>: Now a
167 gdb_bfd_ref_ptr.
168 <set_exec_bfd>: Change argument type.
169 <exec_bfd>: Update.
170
171 2020-10-29 Tom Tromey <tom@tromey.com>
172
173 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
174 * symfile.c (reread_symbols): Update.
175 * symfile-mem.c (add_symbol_file_from_memory_command)
176 (add_vsyscall_page): Update.
177 * source-cache.c (source_cache::get_plain_source_lines): Update.
178 * solib-svr4.c (find_program_interpreter, elf_locate_base)
179 (svr4_current_sos_direct, svr4_exec_displacement)
180 (svr4_relocate_main_executable): Update.
181 (svr4_iterate_over_objfiles_in_search_order): Update.
182 * solib-frv.c (enable_break2, enable_break): Update.
183 * solib-dsbt.c (lm_base, enable_break): Update.
184 * solib-darwin.c (find_program_interpreter)
185 (darwin_solib_create_inferior_hook): Update.
186 * sol-thread.c (rw_common, ps_pdmodel): Update.
187 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
188 * remote.c (compare_sections_command)
189 (remote_target::trace_set_readonly_regions): Update.
190 * remote-sim.c (get_sim_inferior_data)
191 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
192 (gdbsim_target_open, gdbsim_target::files_info): Update.
193 * exec.h (exec_bfd): Remove macro.
194 * progspace.c (initialize_progspace): Update.
195 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
196 Update.
197 * nto-procfs.c (nto_procfs_target::post_attach)
198 (nto_procfs_target::create_inferior): Update.
199 * maint.c (maintenance_info_sections): Update.
200 * linux-thread-db.c (thread_db_target::get_thread_local_address):
201 Update.
202 * infcmd.c (post_create_inferior): Update.
203 * gcore.c (default_gcore_arch, default_gcore_target): Update.
204 (objfile_find_memory_regions): Update.
205 * exec.c (validate_exec_file, exec_file_attach)
206 (exec_read_partial_read_only, print_section_info): Update.
207 * corelow.c (core_target_open): Update.
208 * corefile.c (reopen_exec_file, validate_files): Update.
209 * arm-tdep.c (gdb_print_insn_arm): Update.
210 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
211 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
212 methods.
213
214 2020-10-29 Tom Tromey <tom@tromey.com>
215
216 * progspace.h (current_target_sections): Remove macro.
217 * solib-svr4.c (scan_dyntag): Update.
218 * solib-dsbt.c (scan_dyntag): Update.
219 * exec.c (exec_target::close): Update.
220 (add_target_sections, add_target_sections_of_objfile)
221 (remove_target_sections, exec_target::get_section_table)
222 (exec_target::files_info, set_section_command)
223 (exec_set_section_address, exec_target::has_memory)
224 (exec_target::has_memory): Update.
225
226 2020-10-29 Tom Tromey <tom@tromey.com>
227
228 * source-cache.c (source_cache::get_plain_source_lines): Use
229 current_program_space.
230 * corefile.c (reopen_exec_file): Use current_program_space.
231 * exec.c (exec_file_attach): Use current_program_space.
232 * exec.h (exec_bfd_mtime): Remove.
233
234 2020-10-29 Tom Tromey <tom@tromey.com>
235
236 * gcore.c (default_gcore_mach): Remove.
237 (create_gcore_bfd): Update.
238
239 2020-10-29 Tom Tromey <tom@tromey.com>
240
241 * progspace.c (program_space::exec_close): New method, from
242 exec_close in exec.c.
243 * exec.c (exec_close): Move to progspace.c.
244 (exec_target::close, exec_file_attach): Update.
245 * progspace.h (struct program_space) <exec_close>: Declare
246 method.
247
248 2020-10-29 Tom Tromey <tom@tromey.com>
249
250 * progspace.h (struct program_space) <exec_filename>: Rename from
251 pspace_exec_filename. Now a unique_xmalloc_ptr.
252 * inferior.c (print_selected_inferior): Update.
253 (print_inferior): Update.
254 * mi/mi-main.c (print_one_inferior): Update.
255 * exec.h (exec_filename): Remove macro.
256 * corefile.c (get_exec_file): Update.
257 * exec.c (exec_close): Update.
258 (exec_file_attach): Update.
259 * progspace.c (clone_program_space): Update.
260 (print_program_space): Update.
261
262 2020-10-29 Tom Tromey <tom@tromey.com>
263
264 * target-section.h (struct target_section): Add constructor.
265 * exec.c (build_section_table, add_target_sections_of_objfile):
266 Update.
267 * corelow.c (core_target::build_file_mappings): Update.
268
269 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
270
271 PR gdb/19318
272 * inferior.c (detach_inferior_command): Restore the current thread.
273 (kill_inferior_command): Ditto.
274
275 2020-10-28 Tom de Vries <tdevries@suse.de>
276
277 PR symtab/26772
278 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
279 map, check it in the "best match" loop.
280
281 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * m32c-tdep.c: Remove unused includes.
284
285 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
286
287 * xtensa-tdep.c: Remove includes.
288
289 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
290
291 * breakpoint.c (struct condition_command_opts): New struct.
292 (condition_command_option_defs): New static global.
293 (make_condition_command_options_def_group): New function.
294 (condition_completer): Update to consider the '-force' flag.
295 (condition_command): Use gdb::option for the '-force' flag.
296
297 2020-10-27 Tom de Vries <tdevries@suse.de>
298
299 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
300 symbols in section check.
301
302 2020-10-27 Tom de Vries <tdevries@suse.de>
303
304 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
305
306 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
307
308 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
309 * breakpoint.c: Update the help text of the 'condition' and 'break'
310 commands.
311 (set_breakpoint_condition): Take a new bool parameter
312 to control whether condition definition should be forced even when
313 the condition expression is invalid in all of the current locations.
314 (condition_command): Update the call to 'set_breakpoint_condition'.
315 (find_condition_and_thread): Take the "-force-condition" flag into
316 account.
317 * linespec.c (linespec_keywords): Add "-force-condition" as an
318 element.
319 (FORCE_KEYWORD_INDEX): New #define.
320 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
321 as a keyword.
322 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
323 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
324 * python/py-breakpoint.c (bppy_set_condition): Ditto.
325 * NEWS: Mention the changes to the 'break' and 'condition' commands.
326
327 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
328
329 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
330 * breakpoint.c (set_breakpoint_location_condition): New function.
331 (set_breakpoint_condition): Disable a breakpoint location if parsing
332 the condition string gives an error.
333 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
334 (build_target_condition_list): Ditto.
335 (build_target_command_list): Ditto.
336 (build_bpstat_chain): Ditto.
337 (print_one_breakpoint_location): Ditto.
338 (print_one_breakpoint): Ditto.
339 (breakpoint_1): Ditto.
340 (bp_location::bp_location): Ditto.
341 (locations_are_equal): Ditto.
342 (update_breakpoint_locations): Ditto.
343 (enable_disable_bp_num_loc): Ditto.
344 (init_breakpoint_sal): Use set_breakpoint_location_condition.
345 (find_condition_and_thread_for_sals): New static function.
346 (create_breakpoint): Call find_condition_and_thread_for_sals.
347 (location_to_sals): Call find_condition_and_thread_for_sals instead
348 of find_condition_and_thread.
349
350 2020-10-26 Tom de Vries <tdevries@suse.de>
351
352 * dwarf2/read.c (process_full_comp_unit): Call
353 dwarf2_find_base_address.
354
355 2020-10-26 Tom Tromey <tromey@adacore.com>
356
357 * gdbtypes.c (create_range_type): Revert previous patch. Add
358 comment.
359
360 2020-10-26 Pedro Alves <pedro@palves.net>
361
362 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
363 (my_waitpid): Use gdb::handle_eintr.
364
365 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * acinclude.m4: Update ptrace.m4 path.
368 * ptrace.m4: Moved to gdbsupport.
369
370 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
373 instead of target_gdbarch.
374
375 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * jit.c (jit_reader_load_command): Pass current inferior.
378 (jit_inferior_init): Change parameter type to inferior, use it.
379 (jit_inferior_created): Remove.
380 (jit_inferior_created_hook): Pass inferior parameter down.
381 (_initialize_jit): Use jit_inferior_created_hook instead of
382 jit_inferior_created.
383 * jit.h (jit_inferior_created_hook): Add inferior parameter.
384 * infrun.c (follow_exec): Pass inferior to
385 jit_inferior_created_hook.
386
387 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
388
389 * linux-thread-db.c (check_pid_namespace_match): Add inferior
390 parameter and use it.
391 (thread_db_inferior_created): Pass inferior argument.
392
393 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
394
395 * aix-thread.c (aix_thread_inferior_created): Add inferior
396 parameter.
397 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
398 * dummy-frame.c (cleanup_dummy_frames): Likewise.
399 * jit.c (jit_inferior_created): Likewise.
400 * linux-thread-db.c (thread_db_inferior_created): Likewise.
401 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
402 * observable.h (inferior_created): Likewise.
403 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
404 * symfile-mem.c (add_vsyscall_page): Likewise.
405 * infcmd.c (post_create_inferior): Pass inferior argument.
406
407 2020-10-24 Joel Brobecker <brobecker@adacore.com>
408
409 GDB 10.1 released.
410
411 2020-10-23 Joel Brobecker <brobecker@adacore.com>
412
413 * ada-typeprint.c (ada_print_type): Remove superfluous second call
414 to ada_check_typedef.
415
416 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * f-exp.y (f_parse): Rename to...
419 (f_language::parser): ...this.
420 * f-lang.c (f_get_encoding): Rename to...
421 (f_language::get_encoding): ...this.
422 (f_op_print_tab): Rename to...
423 (f_language::op_print_tab): ...this.
424 (exp_descriptor_f): Rename to...
425 (f_language::exp_descriptor_tab): ...this.
426 (class f_language): Moved to f-lang.h.
427 (f_language::language_arch_info): New function, moved out of class
428 declaration.
429 (f_language::search_name_hash): Likewise.
430 (f_language::lookup_symbol_nonlocal): Likewise.
431 (f_language::get_symbol_name_matcher_inner): Likewise.
432 * f-lang.h: Add 'valprint.h' include.
433 (class f_language): Moved here from f-lang.c.
434 * f-typeprint.c (f_type_print_args): Delete commented out
435 declaration.
436 (f_print_typedef): Rename to...
437 (f_language::print_typedef): ...this.
438 (f_print_type): Rename to...
439 (f_language::print_type): ...this.
440 (f_type_print_varspec_prefix): Delete declaration and rename to...
441 (f_language::f_type_print_varspec_prefix): ...this.
442 (f_type_print_varspec_suffix): Delete declaration and rename to...
443 (f_language::f_type_print_varspec_suffix): ...this.
444 (f_type_print_base): Delete declaration and rename to...
445 (f_language::f_type_print_base): ...this.
446 * f-valprint.c (f_value_print_inner): Rename to...
447 (f_language::value_print_inner): ...this.
448 * parse.c: Delete 'f-lang.h' include.
449
450 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * language.h (language_defn::print_type): Add variable names in
453 declaration, and update header comment.
454
455 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * ada-lang.c (ada_language::demangle): Rename to...
458 (ada_language::demangle_symbol): ...this.
459 * c-lang.c (cplus_language::demangle): Rename to...
460 (cplus_language::demangle_symbol): ...this.
461 * d-lang.c (d_language::demangle): Rename to...
462 (d_language::demangle_symbol): ...this.
463 * f-lang.c (f_language::demangle): Rename to...
464 (f_language::demangle_symbol): ...this.
465 * go-lang.c (go_language::demangle): Rename to...
466 (go_language::demangle_symbol): ...this.
467 * language.c (language_demangle): Update call to demangle_symbol.
468 (auto_or_unknown_language::demangle): Rename to...
469 (auto_or_unknown_language::demangle_symbol): ...this.
470 * language.h (language_defn::demangle): Rename to...
471 (language_defn::demangle_symbol): ...this.
472 * objc-lang.c (objc_language::demangle): Rename to...
473 (objc_language::demangle_symbol): ...this.
474 * rust-lang.c (rust_language::demangle): Rename to...
475 (rust_language::demangle_symbol): ...this.
476
477 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
480 (iterate_over_file_blocks): Replace use of macro with the macros
481 definition.
482
483 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
486 * valprint.c (maybe_print_array_index): Replace use of macro with
487 the macros definition.
488
489 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * ada-lang.c (ada_language::print_array_index): Call value_print
492 directly.
493 * language.c (language_defn::print_array_index): Likewise.
494 * language.h (LA_VALUE_PRINT): Delete.
495 * valprint.c (value_print): Call value_print on the
496 current_language directly.
497
498 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * language.h (LA_PRINT_TYPEDEF): Delete.
501 * typeprint.c (typedef_print): Call print_typedef directly on the
502 current_language object.
503
504 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
505
506 * m2-exp.y (m2_parse): Rename to...
507 (m2_language::parser): ...this. Update function signature.
508 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
509 (m2_op_print): Rename to...
510 (m2_language::op_print_tab): ...this, and make const.
511 (exp_descriptor_modula2): Rename to...
512 (m2_language::exp_descriptor_modula2): ...this.
513 (class m2_language): Move to m2-lang.h.
514 (m2_language::language_arch_info): New function, moved out of
515 class declaration.
516 (m2_language::printchar): New function, body from m2_printchar.
517 (m2_language::printstr): New function, moved out of class
518 declaration.
519 (m2_language::emitchar): Likewise.
520 * m2-lang.h (m2_parse): Delete declaration.
521 (m2_print_typedef): Delete declaration.
522 (m2_value_print_inner): Delete declaration.
523 (class m2_language): Class declaration moved from m2-lang.c,
524 larger functions are left in m2-lang.c.
525 * m2-typeprint.c (m2_print_typedef): Rename to...
526 (m2_language::print_typedef): ...this, and update function
527 signature.
528 * m2-valprint.c (m2_value_print_inner): Rename to...
529 (m2_language::value_print_inner): ...this, replace use of
530 LA_PRINT_STRING with a direct call to printstr member function,
531 and update recursive call.
532
533 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * language.c (default_is_string_type_p): Delete, implementation
536 moved into auto_or_unknown_language::is_string_type_p.
537 (unk_op_print_tab): Moved into
538 auto_or_unknown_language::opcode_print_table.
539 (unknown_language_arch_info): Delete, implementation moved into
540 auto_or_unknown_language::language_arch_info.
541 (class auto_or_unknown_language): New class, member functions
542 copied from unknown_language class, with some updates.
543 (class unknown_language): Most member functions moved into
544 auto_or_unknown_language class. Inherit from
545 auto_or_unknown_language class.
546 (class auto_language): Inherit from auto_or_unknown_language.
547 Delete most member functions.
548
549 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
550
551 * stabsread.c (read_member_functions): Remove gdb_assert.
552
553 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
554
555 * gdbtypes.c (init_complex_type): Check target type name.
556
557 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * target-debug.h (target_debug_print_struct_target_ops_p):
560 Remove.
561 (target_debug_print_async_callback_ftype_p): Remove.
562 (target_debug_print_struct_trace_state_variable_p): Remove.
563 (target_debug_print_struct_traceframe_info_p): Remove.
564 (target_debug_print_VEC__btrace_block_s__pp): Remove.
565 (target_debug_print_enum_btrace_format): Remove.
566 (target_debug_print_enum_info_proc_what): Remove.
567 (target_debug_print_thread_info_pp): Remove.
568
569 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
570
571 * target.h (struct target_ops) <make_corefile_notes>:
572 Change return type to unique pointer.
573 * target.c (dummy_make_corefile_notes): Likewise.
574 * exec.c (struct exec_target) <make_corefile_notes>:
575 Likewise.
576 (exec_target::make_corefile_notes): Likewise.
577 * procfs.c (class procfs_target) <make_corefile_notes>:
578 Likewise.
579 (procfs_do_thread_registers): Adjust to unique pointer.
580 (struct procfs_corefile_thread_data): Add constructor.
581 <note_data>: Change type to unique pointer.
582 (procfs_corefile_thread_callback): Adjust to unique pointer.
583 (procfs_target::make_corefile_notes): Change return type to
584 unique pointer.
585 * target-delegates.c: Re-generate.
586 * gcore.c (write_gcore_file_1): Adjust.
587 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
588 New.
589
590 2020-10-22 Tom de Vries <tdevries@suse.de>
591
592 * block.c (find_block_in_blockvector): Make sure the returned block
593 contains pc.
594
595 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
596
597 PR gdb/26693
598 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
599 parameter.
600 (load_cu): Pass existing CU.
601 (process_imported_unit_die): Likewise.
602 (follow_die_offset): Likewise.
603
604 2020-10-22 Luis Machado <luis.machado@linaro.org>
605
606 * corelow.c (core_target::xfer_partial): Also check for an empty
607 m_core_unavailable_mappings vector.
608
609 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
610
611 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
612 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
613 * f-exp.y (arglist): Allow for a series of subranges.
614 (subrange): Add cases for subranges with strides.
615 * f-lang.c (value_f90_subarray): Catch use of array strides and
616 throw an error.
617 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
618
619 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * expprint.c (print_subexp_standard): Change enum range_type to
622 range_flag and rename variables to match.
623 (dump_subexp_body_standard): Likewise.
624 * expression.h (enum range_type): Rename to...
625 (enum range_flag): ...this.
626 (range_types): Rename to...
627 (range_flags): ...this.
628 * f-lang.c (value_f90_subarray): Change enum range_type to
629 range_flag and rename variables to match.
630 * parse.c (operator_length_standard): Likewise.
631 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
632 range_type to range_flag.
633 * rust-lang.c (rust_evaluate_funcall): Likewise.
634 (rust_range): Likewise.
635 (rust_compute_range): Likewise.
636 (rust_subscript): Likewise.
637
638 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
639
640 * expprint.c (print_subexp_standard): Update to reflect changes to
641 enum range_type.
642 (dump_subexp_body_standard): Likewise.
643 * expression.h (enum range_type): Convert to a bit field enum, and
644 make the enum unsigned.
645 * f-exp.y (subrange): Update to reflect changes to enum
646 range_type.
647 * f-lang.c (value_f90_subarray): Likewise.
648 * parse.c (operator_length_standard): Likewise.
649 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
650 * rust-lang.c (rust_range): Likewise.
651 (rust_compute_range): Likewise.
652 (rust_subscript): Likewise.
653
654 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
655
656 * infrun.c (displaced_step_in_progress_thread): Fix comment.
657 (displaced_step_in_progress): Fix comment.
658
659 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * gdbarch.sh (make_corefile_notes): Return unique pointer.
662 * gdbarch.c: Re-generate.
663 * gdbarch.h: Re-generate.
664 * gcore.c (write_gcore_file_1): Adjust.
665 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
666 constructor.
667 <note_data>: Change type to unique pointer.
668 <abort_iteration>: Change type to bool.
669 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
670 (fbsd_collect_thread_registers): Return void, adjust.
671 (struct fbsd_corefile_thread_data): Add construtor.
672 <note_data>: Change type to unique pointer.
673 (fbsd_corefile_thread): Adjust.
674 (fbsd_make_corefile_notes): Return unique pointer, adjust.
675 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
676 to unique pointer, adjust.
677 (struct linux_collect_regset_section_cb_data): Add constructor.
678 <note_data>: Change type to unique pointer.
679 <abort_iteration>: Change type to bool.
680 (linux_collect_thread_registers): Return void, adjust.
681 (struct linux_corefile_thread_data): Add constructor.
682 <note_data>: Change type to unique pointer.
683 (linux_corefile_thread): Adjust.
684 (linux_make_corefile_notes): Return unique pointer, adjust.
685
686 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
689 * gdbarch.c: Re-generate.
690 * gdbarch.h: Re-generate.
691 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
692 bool.
693 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
694 Likewise.
695 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
696 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
697 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
698 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
699
700 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * gdbarch.sh: Make generated predicates return bool.
703 * gdbarch.c: Re-generate.
704 * gdbarch.h: Re-generate.
705
706 2020-10-20 Tom Tromey <tom@tromey.com>
707
708 * varobj-iter.h (struct varobj_item): Remove typedef.
709
710 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * infrun.c (currently_stepping): Change int to bool
713 (maybe_software_singlestep): Likewise.
714 (show_stop_on_solib_events): Likewise.
715 (stepping_past_nonsteppable_watchpoint): Likewise.
716 (displaced_step_in_progress_any_inferior): Likewise.
717 (displaced_step_in_progress_thread): Likewise.
718 (keep_going_stepped_thread): Likewise.
719 (thread_still_needs_step_over): Likewise.
720 (start_step_over): Likewise.
721 (do_target_resume): Likewise.
722 (resume_1): Likewise.
723 (clear_proceed_status): Likewise.
724 (thread_still_needs_step_over_bp): Likewise.
725 (proceed): Likewise.
726 (switch_back_to_stepped_thread): Likewise.
727 (adjust_pc_after_break): Likewise.
728 (stepped_in_from): Likewise.
729 (handle_stop_requested): Likewise.
730 (handle_syscall_event): Likewise.
731 (handle_no_resumed): Likewise.
732 (handle_inferior_event): Likewise.
733 (finish_step_over): Likewise.
734 (handle_signal_stop): Likewise.
735 (process_event_stop_test): Likewise.
736
737 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * infrun.c (get_displaced_stepping_state): Fix comment.
740
741 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
742
743 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
744
745 2020-10-19 Tom Tromey <tromey@adacore.com>
746
747 PR tui/26719
748 * tui/tui-winsource.h (struct tui_source_window_base)
749 <refresh_window>: Rename from refresh_pad.
750 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
751 Rename from refresh_pad.
752 (tui_source_window_base::show_source_content)
753 (tui_source_window_base::do_scroll_horizontal): Update.
754
755 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
756
757 * thread.c (_initialize_thread): Fine-tune the help text of
758 'info threads'.
759
760 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
761
762 * frame.c: Remove the unused 'uinteger_option_def' type alias.
763
764 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
765
766 * breakpoint.c (handle_jit_event): Add an argument, change how
767 `jit_event_handler` is called.
768
769 2020-10-17 Tom Tromey <tom@tromey.com>
770
771 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
772 (scan_xcoff_symtab): Update.
773 * psymtab.h (class psymtab_storage) <global_psymbols,
774 static_psymbols, current_global_psymbols,
775 current_static_psymbols>: Remove.
776 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
777 (match_partial_symbol, lookup_partial_symbol): Update.
778 (print_partial_symbols): Change parameters.
779 (dump_psymtab, recursively_search_psymtabs)
780 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
781 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
782 (concat): Remove.
783 (end_psymtab_common): Simplify.
784 (append_psymbol_to_list): Change parameters.
785 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
786 (init_psymbol_list): Simplify.
787 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
788 * psympriv.h (struct partial_symtab) <empty>: New method.
789 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
790 Remove.
791 <global_psymbols, static_psymbols>: New members.
792 <add_psymbol>: New methods.
793 (add_psymbol_to_list): Don't declare.
794 (psymbol_placement): Move earlier.
795 * mdebugread.c (parse_partial_symbols): Update.
796 (handle_psymbol_enumerators): Change parameters.
797 (mdebug_expand_psymtab): Update.
798 * dwarf2/read.c (process_psymtab_comp_unit_reader)
799 (add_partial_symbol): Update.
800 * dwarf2/index-write.c (write_psymbols): Change parameters.
801 (write_one_signatured_type): Update.
802 (recursively_count_psymbols): Update.
803 (recursively_write_psymbols): Update.
804 (class debug_names) <recursively_write_psymbols>: Update.
805 <write_psymbols>: Change parameters.
806 <write_one_signatured_type>: Update.
807 * dbxread.c (read_dbx_symtab): Update.
808 (dbx_end_psymtab): Use partial_symtab::empty.
809 * ctfread.c (struct ctf_context) <pst>: New member.
810 (create_partial_symtab): Set it.
811 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
812 (scan_partial_symbols): Use the psymtab's context. Update.
813
814 2020-10-17 Tom Tromey <tom@tromey.com>
815
816 * valprint.c (generic_value_print): Remove comment.
817 * m2-valprint.c (m2_value_print_inner): Remove comment.
818 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
819 type.
820
821 2020-10-17 Tom de Vries <tdevries@suse.de>
822
823 PR symtab/26317
824 * source.c (select_source_symtab): Handling sal.symtab == NULL for
825 symbol main.
826
827 2020-10-14 Tom de Vries <tdevries@suse.de>
828
829 PR gdb/26733
830 * solib.c (solib_contains_address_p): Handle
831 'solib->sections == nullptr'.
832
833 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
834
835 PR gdb/26642
836 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
837 target can't do async.
838 * target.c (target_wait): Assert that we don't pass
839 TARGET_WNOHANG to a target that can't async.
840
841 2020-10-13 Kamil Rytarowski <n54@gmx.com>
842
843 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
844 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
845 * alpha-bsd-nat.c: Adjust include.
846 * alpha-bsd-tdep.h: Adjust comment.
847 * alpha-nbsd-tdep.c: Rename to ...
848 * alpha-netbsd-tdep.c: ... this, adjust include.
849 * amd64-nbsd-nat.c: Rename to ...
850 * amd64-netbsd-nat.c: ... this, adjust include.
851 * amd64-nbsd-tdep.c: Rename to ...
852 * amd64-netbsd-tdep.c: ... this, adjust include.
853 * amd64-tdep.h: Adjust include.
854 * arm-nbsd-nat.c: Rename to ...
855 * arm-netbsd-nat.c: ... this, adjust include.
856 * arm-nbsd-tdep.c: Rename to ...
857 * arm-netbsd-tdep.c: ... this, adjust include.
858 * arm-nbsd-tdep.h: Rename to ...
859 * arm-netbsd-tdep.h: ... this, adjust include.
860 * configure.nat: Adjust file lists.
861 * configure.tgt: Likewise.
862 * hppa-nbsd-nat.c: Rename to ...
863 * hppa-netbsd-nat.c: ... this, adjust include.
864 * hppa-nbsd-tdep.c: Rename to ...
865 * hppa-netbsd-tdep.c: ... this, adjust include.
866 * i386-nbsd-nat.c: Rename to ...
867 * i386-netbsd-nat.c: ... this, adjust include.
868 * i386-nbsd-tdep.c: Rename to ...
869 * i386-netbsd-tdep.c: ... this, adjust include.
870 * m68k-bsd-nat.c: Adjust include.
871 * mips-nbsd-nat.c: Rename to ...
872 * mips-netbsd-nat.c: ... this, adjust include.
873 * mips-nbsd-tdep.c: Rename to ...
874 * mips-netbsd-tdep.c: ... this, adjust include.
875 * mips-nbsd-tdep.h: Rename to ...
876 * mips-netbsd-tdep.h: ... this.
877 * nbsd-nat.c: Rename to ...
878 * netbsd-nat.c: ... this, adjust include.
879 * nbsd-nat.h: Rename to ...
880 * netbsd-nat.h: ... this, adjust include.
881 * nbsd-tdep.c: Rename to ...
882 * netbsd-tdep.c: ... this, adjust include.
883 * nbsd-tdep.h: Rename to ...
884 * netbsd-tdep.h: ... this.
885 * ppc-nbsd-nat.c: Rename to ...
886 * ppc-netbsd-nat.c: ... this, adjust include.
887 * ppc-nbsd-tdep.c: Rename to ...
888 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
889 * ppc-nbsd-tdep.h: Rename to ...
890 * ppc-netbsd-tdep.h: ... this.
891 * sh-nbsd-nat.c: Rename to ...
892 * sh-netbsd-nat.c: ... this, adjust include.
893 * sh-nbsd-tdep.c: Rename to ...
894 * sh-netbsd-tdep.c: ... this, adjust include.
895 * sparc-nbsd-nat.c: Rename to ...
896 * sparc-netbsd-nat.c: ... this.
897 * sparc-nbsd-tdep.c: Rename to ...
898 * sparc-netbsd-tdep.c: ... this, adjust include.
899 * sparc64-nbsd-nat.c: Rename to ...
900 * sparc64-netbsd-nat.c: ... this.
901 * sparc64-nbsd-tdep.c: Rename to ...
902 * sparc64-netbsd-tdep.c: ... this, adjust include.
903 * sparc64-tdep.h: Adjust comment.
904 * vax-bsd-nat.c: Adjust include.
905 * vax-nbsd-tdep.c: Rename to ...
906 * vax-netbsd-tdep.c: ... this, adjust include.
907
908 2020-10-12 Tom Tromey <tom@tromey.com>
909
910 * target.h (struct target_ops) <get_section_table>: Update.
911 (target_get_section_table): Update.
912 * target.c (target_get_section_table, target_section_by_addr)
913 (memory_xfer_partial_1): Update.
914 * target-section.h (target_section_table): Now an alias.
915 * target-delegates.c: Rebuild.
916 * target-debug.h (target_debug_print_target_section_table_p):
917 Rename from target_debug_print_struct_target_section_table_p.
918 * symfile.c (build_section_addr_info_from_section_table): Update.
919 * solib.c (solib_map_sections, solib_contains_address_p): Update.
920 * solib-svr4.c (scan_dyntag): Update.
921 * solib-dsbt.c (scan_dyntag): Update.
922 * remote.c (remote_target::remote_xfer_live_readonly_partial):
923 Update.
924 * record-full.c (record_full_core_target::xfer_partial): Update.
925 * progspace.h (struct program_space) <target_sections>: Update.
926 * exec.h (print_section_info): Update.
927 * exec.c (exec_target::close, build_section_table)
928 (add_target_sections, add_target_sections_of_objfile)
929 (remove_target_sections, exec_on_vfork)
930 (section_table_available_memory)
931 (section_table_xfer_memory_partial)
932 (exec_target::get_section_table, exec_target::xfer_partial)
933 (print_section_info, set_section_command)
934 (exec_set_section_address, exec_target::has_memory): Update.
935 * corelow.c (core_target::build_file_mappings)
936 (core_target::xfer_partial, core_target::info_proc_mappings)
937 (core_target::info_proc_mappings): Update.
938 * bfd-target.c (class target_bfd): Update
939
940 2020-10-12 Tom Tromey <tom@tromey.com>
941
942 * progspace.c (program_space::~program_space): Don't call
943 clear_section_table.
944 * exec.h (clear_section_table): Don't declare.
945 * exec.c (exec_target::close): Update.
946 (clear_section_table): Remove.
947
948 2020-10-12 Tom Tromey <tom@tromey.com>
949
950 * exec.c (add_target_sections_of_objfile): Simplify.
951
952 2020-10-12 Tom Tromey <tom@tromey.com>
953
954 * solib.c (solib_map_sections): Update.
955 * record-full.c (record_full_core_open_1): Update.
956 * exec.h (build_section_table): Return a target_section_table.
957 * exec.c (exec_file_attach): Update.
958 (build_section_table): Return a target_section_table.
959 * corelow.c (core_target::core_target): Update.
960 * bfd-target.c (target_bfd::target_bfd): Update.
961
962 2020-10-12 Tom Tromey <tom@tromey.com>
963
964 * target.c (target_section_by_addr, memory_xfer_partial_1):
965 Update.
966 * target-section.h (struct target_section_table): Use
967 std::vector.
968 * symfile.h (build_section_addr_info_from_section_table): Take a
969 target_section_table.
970 * symfile.c (build_section_addr_info_from_section_table): Take a
971 target_section_table.
972 * solist.h (struct so_list) <sections>: Change type.
973 <sections_end>: Remove.
974 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
975 (solib_contains_address_p): Update.
976 * solib-svr4.c (scan_dyntag): Update.
977 * solib-dsbt.c (scan_dyntag): Update.
978 * remote.c (remote_target::remote_xfer_live_readonly_partial):
979 Update.
980 * record-full.c (record_full_core_start, record_full_core_end):
981 Remove.
982 (record_full_core_sections): New global.
983 (record_full_core_open_1, record_full_core_target::xfer_partial):
984 Update.
985 * exec.h (build_section_table, section_table_xfer_memory_partial)
986 (add_target_sections): Take a target_section_table.
987 * exec.c (exec_file_attach, clear_section_table): Update.
988 (resize_section_table): Remove.
989 (build_section_table, add_target_sections): Take a
990 target_section_table.
991 (add_target_sections_of_objfile, remove_target_sections)
992 (exec_on_vfork): Update.
993 (section_table_available_memory): Take a target_section_table.
994 (section_table_read_available_memory): Update.
995 (section_table_xfer_memory_partial): Take a target_section_table.
996 (print_section_info, set_section_command)
997 (exec_set_section_address, exec_target::has_memory): Update.
998 * corelow.c (class core_target) <m_core_section_table,
999 m_core_file_mappings>: Remove braces.
1000 <~core_target>: Remove.
1001 (core_target::core_target): Update.
1002 (core_target::~core_target): Remove.
1003 (core_target::build_file_mappings)
1004 (core_target::xfer_memory_via_mappings)
1005 (core_target::xfer_partial, core_target::info_proc_mappings):
1006 Update.
1007 * bfd-target.c (target_bfd::xfer_partial): Update.
1008 (target_bfd::target_bfd): Update.
1009 (target_bfd::~target_bfd): Remove.
1010
1011 2020-10-12 Tom Tromey <tom@tromey.com>
1012
1013 * target.h (struct target_section, struct target_section_table):
1014 Move to target-section.h.
1015 * target-section.h: New file.
1016
1017 2020-10-12 Pedro Alves <pedro@palves.net>
1018
1019 PR exp/26602
1020 * valops.c (struct struct_field_searcher): New.
1021 (update_search_result): Rename to ...
1022 (struct_field_searcher::update_result): ... this. Simplify
1023 prototype. Record all found fields.
1024 (do_search_struct_field): Rename to ...
1025 (struct_field_searcher::search): ... this. Simplify prototype.
1026 Maintain stack of visited baseclass path. Call update_result for
1027 fields too. Keep searching fields in baseclasses instead of
1028 stopping at the first found field.
1029 (search_struct_field): Use struct_field_searcher. When looking
1030 for fields, report ambiguous access attempts.
1031
1032 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * frame.c (inside_main_func): Check full symbols as well as
1035 minimal symbols.
1036
1037 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1038
1039 * ada-lang.c (advance_wild_match): Rewrite the function's
1040 description. Change the type of target0, t0 and t1 to char.
1041
1042 2020-10-09 Tom Tromey <tromey@adacore.com>
1043
1044 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1045
1046 2020-10-09 Tom Tromey <tromey@adacore.com>
1047
1048 * ada-lang.h (ada_encode): Return std::string.
1049 * ada-lang.c (ada_encode_1): Return std::string.
1050 (ada_encode): Likewise.
1051 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1052 Update.
1053 * ada-exp.y (block_lookup, write_var_or_type): Update.
1054
1055 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1056
1057 PR exp/26714
1058 * printcmd.c (print_formatted): Handle void results as
1059 unformatted prints.
1060
1061 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * arch/aarch32.c (aarch32_create_target_description): Release the
1064 target_desc_up as late as possible.
1065 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1066 * arch/amd64.c (amd64_create_target_description): Likewise.
1067 * arch/arc.c (arc_create_target_description): Return a
1068 target_desc_up, don't release it.
1069 * arch/arc.h (arc_create_target_description): Update declaration.
1070 (arc_lookup_target_description): Move target_desc_up into the
1071 cache, and return a borrowed pointer.
1072 * arch/arm.c (arm_create_target_description): Release the
1073 target_desc_up as late as possible.
1074 * arch/i386.c (i386_create_target_description): Likewise.
1075 * arch/riscv.h (riscv_create_target_description): Update
1076 declaration to match definition.
1077 * arch/tic6x.c (tic6x_create_target_description): Release the
1078 target_desc_up as late as possible.
1079
1080 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1083 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1084
1085 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1086
1087 * source.c (directory_command): Notify observers that "directories"
1088 parameter has changed.
1089
1090 2020-10-08 Tom Tromey <tom@tromey.com>
1091
1092 * cli/cli-cmds.c (print_disassembly): Style function name and
1093 addresses. Add _() wrappers.
1094
1095 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1096
1097 * NEWS: Mention ARC support in GDBserver.
1098
1099 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * arch/aarch32.c (aarch32_create_target_description): Release
1102 unique_ptr returned from allocate_target_description.
1103 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1104 * arch/amd64.c (amd64_create_target_description): Likewise.
1105 * arch/arc.c (arc_create_target_description): Likewise.
1106 * arch/arm.c (arm_create_target_description): Likewise.
1107 * arch/i386.c (i386_create_target_description): Likewise.
1108 * arch/riscv.c (riscv_create_target_description): Update return
1109 type. Handle allocate_target_description returning a unique_ptr.
1110 (riscv_lookup_target_description): Update to handle unique_ptr.
1111 * arch/tic6x.c (tic6x_create_target_description): Release
1112 unique_ptr returned from allocate_target_description.
1113 * features/microblaze-with-stack-protect.c: Regenerate.
1114 * features/microblaze.c: Regenerate.
1115 * features/mips-dsp-linux.c: Regenerate.
1116 * features/mips-linux.c: Regenerate.
1117 * features/mips64-dsp-linux.c: Regenerate.
1118 * features/mips64-linux.c: Regenerate.
1119 * features/nds32.c: Regenerate.
1120 * features/nios2.c: Regenerate.
1121 * features/or1k.c: Regenerate.
1122 * features/rs6000/powerpc-32.c: Regenerate.
1123 * features/rs6000/powerpc-32l.c: Regenerate.
1124 * features/rs6000/powerpc-403.c: Regenerate.
1125 * features/rs6000/powerpc-403gc.c: Regenerate.
1126 * features/rs6000/powerpc-405.c: Regenerate.
1127 * features/rs6000/powerpc-505.c: Regenerate.
1128 * features/rs6000/powerpc-601.c: Regenerate.
1129 * features/rs6000/powerpc-602.c: Regenerate.
1130 * features/rs6000/powerpc-603.c: Regenerate.
1131 * features/rs6000/powerpc-604.c: Regenerate.
1132 * features/rs6000/powerpc-64.c: Regenerate.
1133 * features/rs6000/powerpc-64l.c: Regenerate.
1134 * features/rs6000/powerpc-7400.c: Regenerate.
1135 * features/rs6000/powerpc-750.c: Regenerate.
1136 * features/rs6000/powerpc-860.c: Regenerate.
1137 * features/rs6000/powerpc-altivec32.c: Regenerate.
1138 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1139 * features/rs6000/powerpc-altivec64.c: Regenerate.
1140 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1141 * features/rs6000/powerpc-e500.c: Regenerate.
1142 * features/rs6000/powerpc-e500l.c: Regenerate.
1143 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1144 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1145 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1146 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1147 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1148 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1149 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1150 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1151 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1152 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1153 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1154 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1155 * features/rs6000/powerpc-vsx32.c: Regenerate.
1156 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1157 * features/rs6000/powerpc-vsx64.c: Regenerate.
1158 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1159 * features/rs6000/rs6000.c: Regenerate.
1160 * features/rx.c: Regenerate.
1161 * features/s390-gs-linux64.c: Regenerate.
1162 * features/s390-linux32.c: Regenerate.
1163 * features/s390-linux32v1.c: Regenerate.
1164 * features/s390-linux32v2.c: Regenerate.
1165 * features/s390-linux64.c: Regenerate.
1166 * features/s390-linux64v1.c: Regenerate.
1167 * features/s390-linux64v2.c: Regenerate.
1168 * features/s390-te-linux64.c: Regenerate.
1169 * features/s390-tevx-linux64.c: Regenerate.
1170 * features/s390-vx-linux64.c: Regenerate.
1171 * features/s390x-gs-linux64.c: Regenerate.
1172 * features/s390x-linux64.c: Regenerate.
1173 * features/s390x-linux64v1.c: Regenerate.
1174 * features/s390x-linux64v2.c: Regenerate.
1175 * features/s390x-te-linux64.c: Regenerate.
1176 * features/s390x-tevx-linux64.c: Regenerate.
1177 * features/s390x-vx-linux64.c: Regenerate.
1178 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1179 from allocate_target_description.
1180 * target-descriptions.c (allocate_target_description): Update
1181 return type.
1182 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1183 allocate_target_description.
1184
1185 2020-10-07 Tom Tromey <tromey@adacore.com>
1186
1187 * unittests/search-memory-selftests.c: New file.
1188 * Makefile.in (SELFTESTS_SRCS): Add
1189 unittests/search-memory-selftests.c.
1190
1191 2020-10-07 Tom Tromey <tromey@adacore.com>
1192
1193 PR gdb/16930:
1194 * findcmd.c (_initialize_mem_search): Mention that the range is
1195 inclusive.
1196
1197 2020-10-07 Tom Tromey <tromey@adacore.com>
1198
1199 * target.h (simple_search_memory): Don't declare.
1200 * target.c (simple_search_memory): Move to gdbsupport.
1201 (default_search_memory): Update.
1202 * remote.c (remote_target::search_memory): Update.
1203
1204 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * Makefile.in (COMPILE): Add CXXFLAGS.
1207 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1208 (check-headers): Add CXXFLAGS.
1209
1210 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1211
1212 * arc-linux-tdep.h: New file.
1213 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1214 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1215 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1216 arc_linux_gregset, arc_linux_v2_regset,
1217 arc_linux_iterate_over_regset_sections,
1218 arc_linux_core_read_description): Implement.
1219 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1220 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1221 (arc_gdbarch_features_create): Add.
1222 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1223
1224 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1225
1226 * arch/arc.h: Rename "arc_gdbarch_features" to
1227 "arc_arch_features".
1228 * arc-tdep.h: Likewise.
1229 * arc-tdep.c: Likewise.
1230
1231 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1232
1233 * infcmd.c (attach_command): Remove the redundant call to
1234 `clear_proceed_status`.
1235
1236 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1237
1238 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1239
1240 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1241
1242 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1243 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1244 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1245
1246 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1249 (_initialize_break_catch_sig): Don't allocate array.
1250
1251 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * symtab.c (find_pc_line): Return unmapped addresses when the
1254 requested address is also unmapped.
1255
1256 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1259 tui/tui-out.h.
1260
1261 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1264 type::is_vector instead of TYPE_VECTOR.
1265
1266 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 * auto-load.c (auto_load_objfile_script_1): Don't use
1269 debugfile_holder as temporary variable when stripping drive
1270 letter.
1271
1272 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1273
1274 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1275 Add TYPE_CODE_COMPLEX.
1276 (amd64_windows_return_value): Fix types returned via XMM0.
1277
1278 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1279
1280 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1281 AArch64/ARM maintainers.
1282
1283 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1284
1285 * NEWS: Mention set/show debug event-loop.
1286
1287 2020-10-02 Tom Tromey <tromey@adacore.com>
1288
1289 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1290 REG_EXTENDED.
1291
1292 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1293
1294 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1295 * procfs.c (procfs_inferior_created): Remove.
1296 (_initialize_procfs): Don't register procfs_inferior_created.
1297
1298 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * async-event.c (invoke_async_signal_handlers): Add debug
1301 print.
1302 (check_async_event_handlers): Likewise.
1303 * event-top.c (show_debug_event_loop): New function.
1304 (_initialize_event_top): Register "set debug event-loop"
1305 setting.
1306
1307 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1310 * debug.h: Remove.
1311 * infrun.c: Include gdbsupport/common-debug.h.
1312 * linux-nat.c: Likewise.
1313
1314 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * async-event.h (create_async_signal_handler): Add name
1317 parameter.
1318 (create_async_event_handler): Likewise.
1319 * async-event.c (struct async_signal_handler) <name>: New field.
1320 (struct async_event_handler) <name>: New field.
1321 (create_async_signal_handler): Assign name.
1322 (create_async_event_handler): Assign name.
1323 * event-top.c (async_init_signals): Pass name when creating
1324 handler.
1325 * infrun.c (_initialize_infrun): Likewise.
1326 * record-btrace.c (record_btrace_push_target): Likewise.
1327 * record-full.c (record_full_open): Likewise.
1328 * remote-notif.c (remote_notif_state_allocate): Likewise.
1329 * remote.c (remote_target::open_1): Likewise.
1330 * tui/tui-win.c (tui_initialize_win): Likewise.
1331
1332 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * async-event.c (initialize_async_signal_handlers): Pass name to
1335 add_file_handler
1336 * event-top.c (ui_register_input_event_handler): Likewise.
1337 * linux-nat.c (linux_nat_target::async): Likewise.
1338 * run-on-main-thread.c (_initialize_run_on_main_thread):
1339 Likewise
1340 * ser-base.c (reschedule): Likewise.
1341 (ser_base_async): Likewise.
1342 * tui/tui-io.c: Likewise.
1343 * top.h (struct ui) <num>: New field.
1344 * top.c (highest_ui_num): New variable.
1345 (ui::ui): Initialize num.
1346
1347 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * observable.h <inferior_created>: Remove parameters. Update all
1350 listeners.
1351 * inferior.h (post_create_inferior): Remove target parameter.
1352 Update all callers.
1353
1354 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1355
1356 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1357 and DW_MACRO_undef_strx.
1358 (dwarf_decode_macros): Likewise
1359 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1360 which is the value of DW_AT_str_offsets_base.
1361 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1362 str_offsets_base.
1363
1364 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1365
1366 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1367
1368 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1369
1370 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1371 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1372
1373 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1374
1375 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1376
1377 2020-09-30 Tom de Vries <tdevries@suse.de>
1378
1379 PR symtab/26683
1380 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1381
1382 2020-09-30 Tom Tromey <tromey@adacore.com>
1383
1384 * dwarf2/read.c (handle_variant): Use constant_value.
1385
1386 2020-09-29 Tom Tromey <tom@tromey.com>
1387
1388 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1389 (read_file_scope, dwarf2_get_pc_bounds)
1390 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1391 (read_structure_type, handle_struct_member_die)
1392 (read_enumeration_type, read_array_type, read_set_type)
1393 (read_tag_pointer_type, read_tag_reference_type)
1394 (read_subroutine_type, read_base_type, read_subrange_type)
1395 (read_full_die_1, partial_die_info::read)
1396 (partial_die_info::read, by, new_symbol)
1397 (dwarf2_const_value_data, dwarf2_const_value_attr)
1398 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1399 (prepare_one_comp_unit): Update.
1400 * dwarf2/attribute.h (DW_UNSND): Remove.
1401
1402 2020-09-29 Tom Tromey <tom@tromey.com>
1403
1404 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1405 (read_subroutine_type, partial_die_info::read)
1406 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1407 (dwarf2_add_member_fn): Update.
1408 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1409 * dwarf2/attribute.c (attribute::as_boolean): New method.
1410
1411 2020-09-29 Tom Tromey <tom@tromey.com>
1412
1413 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1414 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1415 method.
1416 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1417
1418 2020-09-29 Tom Tromey <tom@tromey.com>
1419
1420 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1421 the attribute's form.
1422
1423 2020-09-29 Tom Tromey <tom@tromey.com>
1424
1425 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1426 (dwarf2_add_member_fn): Update.
1427 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1428 * dwarf2/attribute.c (attribute::defaulted): New method, from
1429 is_valid_DW_AT_defaulted.
1430
1431 2020-09-29 Tom Tromey <tom@tromey.com>
1432
1433 * dwarf2/read.c (dw2_get_file_names_reader)
1434 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1435 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1436 (dwarf2_symbol_mark_computed): Use as_unsigned.
1437 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1438 method.
1439 <form_is_section_offset>: Update comment.
1440
1441 2020-09-29 Tom Tromey <tom@tromey.com>
1442
1443 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1444 dwarf2_default_access_attribute. Look up attribute.
1445 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1446 Update.
1447
1448 2020-09-29 Tom Tromey <tom@tromey.com>
1449
1450 * dwarf2/read.c (skip_one_die): Update.
1451 (read_full_die_1): Change how reprocessing is done.
1452 (partial_die_info::read): Update.
1453 (read_attribute_value): Remove need_reprocess parameter.
1454 (read_attribute): Likewise.
1455 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1456 New method.
1457
1458 2020-09-29 Tom Tromey <tom@tromey.com>
1459
1460 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1461 (dwarf2_const_value_attr, dump_die_shallow)
1462 (dwarf2_fetch_constant_bytes): Update.
1463 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1464 comment.
1465 <set_address>: New method.
1466 (DW_ADDR): Remove.
1467 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1468 (attribute::as_string, attribute::as_address): Add assert.
1469
1470 2020-09-29 Tom Tromey <tom@tromey.com>
1471
1472 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1473 (read_attribute_reprocess, read_attribute_value): Update.
1474 (read_attribute): Clear requires_reprocessing.
1475 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1476 form_requires_reprocessing>: New methods.
1477 <string_init>: Clear requires_reprocessing.
1478 <set_unsigned_reprocess>: New method.
1479 <name>: Shrink by one bit.
1480 <requires_reprocessing>: New member.
1481 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1482 method.
1483
1484 2020-09-29 Tom Tromey <tom@tromey.com>
1485
1486 * dwarf2/read.c (read_attribute_value): Update.
1487 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1488 set_unsigned>: New methods.
1489 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1490
1491 2020-09-29 Tom Tromey <tom@tromey.com>
1492
1493 * dwarf2/read.c (get_alignment, read_array_order)
1494 (read_attribute_value, dwarf2_const_value_attr)
1495 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1496 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1497 New methods.
1498 (DW_SND): Remove.
1499
1500 2020-09-29 Tom Tromey <tom@tromey.com>
1501
1502 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1503 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1504 Update.
1505 * dwarf2/attribute.h (struct attribute) <as_signature,
1506 set_signature>: New methods.
1507 (DW_SIGNATURE): Remove.
1508
1509 2020-09-29 Tom Tromey <tom@tromey.com>
1510
1511 * dwarf2/read.c (read_call_site_scope)
1512 (handle_data_member_location, dwarf2_add_member_fn)
1513 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1514 (partial_die_info::read, read_attribute_value)
1515 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1516 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1517 (dwarf2_symbol_mark_computed): Update.
1518 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1519 methods.
1520 (DW_BLOCK): Remove.
1521 * dwarf2/attribute.c (attribute::form_is_block): Add
1522 DW_FORM_data16.
1523
1524 2020-09-29 Tom Tromey <tom@tromey.com>
1525
1526 * dwarf2/read.c (read_cutu_die_from_dwo)
1527 (read_attribute_reprocess, read_attribute_value, read_attribute)
1528 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1529 (dwarf2_fetch_constant_bytes): Update.
1530 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1531 <set_string_noncanonical, set_string_canonical>: New methods.
1532 <string_is_canonical>: Update comment.
1533 <canonical_string_p>: Add assert.
1534 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1535 * dwarf2/attribute.c (attribute::form_is_string): New method.
1536 (attribute::string): Use it.
1537
1538 2020-09-29 Tom Tromey <tom@tromey.com>
1539
1540 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1541 (dump_die_shallow): Use canonical_string_p.
1542 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1543 method.
1544
1545 2020-09-29 Tom Tromey <tom@tromey.com>
1546
1547 * dwarf2/read.c (partial_die_info::read)
1548 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1549 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1550 attribute::as_string.
1551
1552 2020-09-29 Tom Tromey <tom@tromey.com>
1553
1554 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1555 DW_ADDR.
1556 (attribute::string): Don't use DW_STRING.
1557 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1558 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1559
1560 2020-09-29 Tom Tromey <tom@tromey.com>
1561
1562 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1563 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1564 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1565 * dwarf2/attribute.h (struct attribute): Rename methods.
1566 * dwarf2/attribute.c (attribute::as_address): Rename from
1567 value_as_address.
1568 (attribute::as_string): Rename from value_as_string.
1569
1570 2020-09-29 Tom Tromey <tom@tromey.com>
1571
1572 * dwarf2/read.c (partial_die_info::read) <case
1573 DW_AT_linkage_name>: Use value_as_string.
1574 (dwarf2_string_attr): Use value_as_string.
1575 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1576 method.
1577 * dwarf2/attribute.c (attribute::value_as_string): New method.
1578
1579 2020-09-29 Pedro Alves <pedro@palves.net>
1580
1581 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1582 defined before using '#pragma GCC diagnostic' instead of checking
1583 __clang__.
1584
1585 2020-09-28 Tom Tromey <tom@tromey.com>
1586
1587 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1588 (handle_signal_stop): Update.
1589 * procfs.c (procfs_target::insert_watchpoint): Update.
1590 * target.h (target_have_steppable_watchpoint): Now a function.
1591
1592 2020-09-28 Tom Tromey <tom@tromey.com>
1593
1594 * infrun.c (set_schedlock_func): Update.
1595 * target.h (target_can_lock_scheduler): Now a function.
1596
1597 2020-09-28 Tom Tromey <tom@tromey.com>
1598
1599 * inferior.h (class inferior) <has_execution>: Update.
1600 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1601 * valops.c (find_function_in_inferior)
1602 (value_allocate_space_in_inferior): Update.
1603 * top.c (kill_or_detach): Update.
1604 * target.c (target_preopen, set_target_permissions): Update.
1605 (target_has_execution_current): Remove.
1606 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1607 Update.
1608 * solib.c (update_solib_list, reload_shared_libraries): Update.
1609 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1610 * solib-dsbt.c (enable_break): Update.
1611 * score-tdep.c (score7_fetch_inst): Update.
1612 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1613 Update.
1614 * remote.c (remote_target::start_remote)
1615 (remote_target::remote_check_symbols, remote_target::open_1)
1616 (remote_target::remote_detach_1, remote_target::verify_memory)
1617 (remote_target::xfer_partial, remote_target::read_description)
1618 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1619 * record-full.c (record_full_open_1): Update.
1620 * record-btrace.c (record_btrace_target_open): Update.
1621 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1622 (value_nsstring): Update.
1623 * linux-thread-db.c (add_thread_db_info)
1624 (thread_db_find_new_threads_silently, check_thread_db_callback)
1625 (try_thread_db_load_1, record_thread): Update.
1626 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1627 Update.
1628 * linux-fork.c (checkpoint_command): Update.
1629 * infrun.c (set_non_stop, set_observer_mode)
1630 (check_multi_target_resumption, for_each_just_stopped_thread)
1631 (maybe_remove_breakpoints, normal_stop)
1632 (class infcall_suspend_state): Update.
1633 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1634 (info_program_command, attach_command): Update.
1635 * infcall.c (call_function_by_hand_dummy): Update.
1636 * inf-loop.c (inferior_event_handler): Update.
1637 * gcore.c (gcore_command, derive_heap_segment): Update.
1638 * exec.c (exec_file_command): Update.
1639 * eval.c (evaluate_subexp): Update.
1640 * compile/compile.c (compile_to_object): Update.
1641 * cli/cli-dump.c (restore_command): Update.
1642 * breakpoint.c (update_watchpoint)
1643 (update_inserted_breakpoint_locations)
1644 (insert_breakpoint_locations, get_bpstat_thread): Update.
1645 * target.h (target_has_execution): Remove macro.
1646 (target_has_execution_current): Don't declare.
1647 (target_has_execution): Rename from target_has_execution_1. Add
1648 argument default.
1649
1650 2020-09-28 Tom Tromey <tom@tromey.com>
1651
1652 * mi/mi-main.c (exec_reverse_continue)
1653 (mi_cmd_list_target_features): Update.
1654 * infrun.c (set_exec_direction_func): Update.
1655 * target.c (default_execution_direction): Update.
1656 * reverse.c (exec_reverse_once): Update.
1657 * target.h (target_can_execute_reverse): Now a function.
1658
1659 2020-09-28 Tom Tromey <tom@tromey.com>
1660
1661 * tui/tui-regs.c (tui_get_register)
1662 (tui_data_window::show_registers): Update.
1663 * thread.c (scoped_restore_current_thread::restore)
1664 (scoped_restore_current_thread::scoped_restore_current_thread):
1665 Update.
1666 * regcache-dump.c (regcache_print): Update.
1667 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1668 Update.
1669 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1670 * mep-tdep.c (current_me_module, current_options): Update.
1671 * linux-thread-db.c (thread_db_load): Update.
1672 * infcmd.c (registers_info, info_vector_command)
1673 (info_float_command): Update.
1674 * ia64-tdep.c (ia64_frame_prev_register)
1675 (ia64_sigtramp_frame_prev_register): Update.
1676 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1677 * gcore.c (derive_stack_segment): Update.
1678 * frame.c (get_current_frame, has_stack_frames): Update.
1679 * findvar.c (language_defn::read_var_value): Update.
1680 * arm-tdep.c (arm_pc_is_thumb): Update.
1681 * target.c (target_has_registers): Rename from
1682 target_has_registers_1.
1683 * target.h (target_has_registers): Remove macro.
1684 (target_has_registers): Rename from target_has_registers_1.
1685
1686 2020-09-28 Tom Tromey <tom@tromey.com>
1687
1688 * windows-tdep.c (tlb_make_value): Update.
1689 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1690 * thread.c (scoped_restore_current_thread::restore)
1691 (scoped_restore_current_thread::scoped_restore_current_thread)
1692 (thread_command): Update.
1693 * stack.c (backtrace_command_1, frame_apply_level_command)
1694 (frame_apply_all_command, frame_apply_command): Update.
1695 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1696 Update.
1697 * gcore.c (derive_stack_segment): Update.
1698 * frame.c (get_current_frame, has_stack_frames): Update.
1699 * auxv.c (info_auxv_command): Update.
1700 * ada-tasks.c (ada_build_task_list): Update.
1701 * target.c (target_has_stack): Rename from target_has_stack_1.
1702 * target.h (target_has_stack): Remove macro.
1703 (target_has_stack): Rename from target_has_stack_1.
1704
1705 2020-09-28 Tom Tromey <tom@tromey.com>
1706
1707 * target.c (target_has_memory): Rename from target_has_memory_1.
1708 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1709 * thread.c (scoped_restore_current_thread::restore)
1710 (scoped_restore_current_thread::scoped_restore_current_thread):
1711 Update.
1712 * frame.c (get_current_frame, has_stack_frames): Update.
1713 * target.h (target_has_memory): Remove macro.
1714 (target_has_memory): Rename from target_has_memory_1.
1715
1716 2020-09-28 Tom Tromey <tom@tromey.com>
1717
1718 * target.c (target_has_all_memory_1): Remove.
1719 * target.h (target_has_all_memory): Remove define.
1720 (target_has_all_memory_1): Don't declare.
1721
1722 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1723
1724 * ser-base.c: Adjust comments formatting.
1725
1726 2020-09-27 Tom Tromey <tom@tromey.com>
1727
1728 PR tui/25342:
1729 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1730
1731 2020-09-27 Tom Tromey <tom@tromey.com>
1732
1733 PR tui/25342:
1734 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1735
1736 2020-09-27 Tom Tromey <tom@tromey.com>
1737
1738 * unittests/tui-selftests.c: Update.
1739 * tui/tui-winsource.h (struct tui_source_window_base)
1740 <extra_margin, show_line_number, refresh_pad>: New methods.
1741 <m_max_length, m_pad>: New members.
1742 (tui_copy_source_line): Update.
1743 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1744 first_col, line_width, ndigits parameters. Add length.
1745 (tui_source_window_base::show_source_line): Write to pad. Line
1746 number now 0-based.
1747 (tui_source_window_base::refresh_pad): New method.
1748 (tui_source_window_base::show_source_content): Write to pad. Call
1749 refresh_pad.
1750 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1751 not refill.
1752 (tui_source_window_base::update_exec_info): Call
1753 show_line_number.
1754 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1755 method.
1756 <m_digits>: New member.
1757 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1758 and m_max_length.
1759 (tui_source_window::show_line_number): New method.
1760 * tui/tui-io.h (tui_puts): Fix comment.
1761 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1762 m_max_length.
1763
1764 2020-09-27 Tom Tromey <tom@tromey.com>
1765
1766 * tui/tui-winsource.c
1767 (tui_source_window_base::set_is_exec_point_at): Don't call
1768 show_source_line.
1769
1770 2020-09-27 Tom Tromey <tom@tromey.com>
1771
1772 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1773 method.
1774 <erase>: Update.
1775 <cursor_x, cursor_y>: Remove.
1776 <m_inner_window>: New member.
1777 (tui_py_window::rerender): Create inner window.
1778 (tui_py_window::output): Write to inner window.
1779
1780 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1781
1782 PR python/26586
1783 * cli/cli-script.c (execute_control_commands): don't set
1784 instream to nullptr here as this breaks the from_tty argument
1785 to gdb.execute in Python.
1786 (execute_user_command): set instream to nullptr here instead.
1787
1788 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1789
1790 * infrun.h (infrun_debug_printf): Fix formatting.
1791 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1792
1793 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1794
1795 * compile/compile-object-load.h (struct munmap_list): Add
1796 explicitly-defined move constructor.
1797
1798 2020-09-24 Tom Tromey <tromey@adacore.com>
1799
1800 PR tui/26638:
1801 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1802 method.
1803 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1804 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1805 (tui_prev_win): Rewrite.
1806
1807 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1808
1809 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1810 in WOW64 processes as SIGINT.
1811 * nat/windows-nat.h: Make wow64_process a shared variable.
1812 * windows-nat.c: Remove static wow64_process variable.
1813
1814 2020-09-23 Tom Tromey <tom@tromey.com>
1815
1816 PR symtab/25470:
1817 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1818 offset and bit size.
1819 * printcmd.c (print_scalar_formatted): Handle zero-length
1820 integer.
1821 (print_scalar_formatted): Use bit_size_differs_p.
1822 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1823 constant.
1824 (union type_specific): <int_stuff>: New member.
1825 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1826 methods.
1827 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1828 TYPE_SPECIFIC_FIELD.
1829 (recursive_dump_type, copy_type_recursive): Update.
1830 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1831 DW_AT_data_bit_offset.
1832
1833 2020-09-23 Tom Tromey <tom@tromey.com>
1834
1835 * utils.h (class gdb_argv): Add move operators.
1836 <append>: New methods.
1837 * compile/compile.c (build_argc_argv): Remove.
1838 (compile_args_argc): Remove.
1839 (compile_args_argv): Change type.
1840 (set_compile_args): Simplify.
1841 (append_args): Remove.
1842 (filter_args): Remove argcp parameter.
1843 (get_args): Return gdb_argv. Simplify.
1844 (compile_to_object): Update.
1845
1846 2020-09-23 Tom Tromey <tom@tromey.com>
1847
1848 * compile/compile-object-run.c (do_module_cleanup)
1849 <~do_module_cleanup> :Remove.
1850 (do_module_cleanup): Update.
1851 * compile/compile-object-load.h (struct munmap_list): Add move
1852 assignment operator.
1853 <source_file>: Now a std::string.
1854 <munmap_list>: Rename. No longer a pointer.
1855 * compile/compile-object-load.c (struct setup_sections_data): Add
1856 constructor.
1857 <setup_one_section>: Declare.
1858 <munmap_list>: Move earlier.
1859 <m_bfd>: New member.
1860 <m_last_size, m_last_section_first, m_last_prot,
1861 m_last_max_alignment>: Rename, add initializers where needed.
1862 (setup_sections_data::setup_one_section): Rename from
1863 setup_sections. Update.
1864 (compile_object_load): Update. Don't use bfd_map_over_sections.
1865
1866 2020-09-23 Tom Tromey <tom@tromey.com>
1867
1868 * compile/compile-object-run.c (struct do_module_cleanup): Add
1869 parameters to constructor. Update destructor.
1870 <source_file, scope, scope_data, out_value_type, out_value_addr,
1871 munmap_list_head, objfile_name_string>: Remove.
1872 <module>: New member.
1873 (do_module_cleanup): Update.
1874 (compile_object_run): Update.
1875
1876 2020-09-23 Tom Tromey <tom@tromey.com>
1877
1878 * compile/compile.c (eval_compile_command): Update.
1879 * compile/compile-object-run.h (compile_object_run): Take a
1880 compile_module_up.
1881 * compile/compile-object-run.c (compile_object_run): Take a
1882 compile_module_up.
1883 * compile/compile-object-load.h (struct compile_module): Add
1884 constructor, destructor.
1885 (compile_module_up): New typedef.
1886 (compile_object_load): Return compile_object_up.
1887 * compile/compile-object-load.c (compile_object_load): Return
1888 compile_module_up.
1889
1890 2020-09-23 Tom Tromey <tom@tromey.com>
1891
1892 * compile/compile-object-run.c (struct do_module_cleanup): Add
1893 constructor, destructor.
1894 <objfile_name_string>: Don't use struct hack.
1895 (do_module_cleanup): Use delete.
1896 (compile_object_run): Use new.
1897
1898 2020-09-23 Tom Tromey <tom@tromey.com>
1899
1900 * compile/compile-cplus-types.c
1901 (compile_cplus_convert_struct_or_union): Use std::vector.
1902 (compile_cplus_convert_func): Likewise.
1903 * compile/compile-c-types.c (convert_func): Use std::vector.
1904
1905 2020-09-21 Tom Tromey <tromey@adacore.com>
1906
1907 * sparc-tdep.c (sparc32_skip_prologue): Use
1908 skip_prologue_using_sal.
1909
1910 2020-09-19 Tom Tromey <tom@tromey.com>
1911
1912 * symfile.c (add_section_size_callback): Remove.
1913 (load_one_section): Rename from load_section_callback. Change
1914 parameters.
1915 (generic_load): Use foreach.
1916
1917 2020-09-19 Tom Tromey <tom@tromey.com>
1918
1919 * exec.c (add_to_section_table): Remove.
1920 (build_section_table): Use foreach.
1921
1922 2020-09-19 Tom Tromey <tom@tromey.com>
1923
1924 * elfread.c (elf_locate_sections): Change parameters.
1925 (elf_symfile_read): Use foreach.
1926
1927 2020-09-19 Tom Tromey <tom@tromey.com>
1928
1929 * cli/cli-dump.c (struct callback_data): Remove.
1930 (restore_one_section): Rename from restore_section_callback.
1931 Change parameters.
1932 (restore_binary_file): Change parameters.
1933 (restore_command): Use foreach.
1934
1935 2020-09-19 Tom Tromey <tom@tromey.com>
1936
1937 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1938 (gcore_copy_callback): Likewise.
1939 (gcore_memory_sections): Use foreach.
1940
1941 2020-09-19 Tom Tromey <tom@tromey.com>
1942
1943 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1944 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1945 parameters.
1946 (generic_elf_osabi_sniffer): Use foreach.
1947 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1948 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1949
1950 2020-09-19 Tom Tromey <tom@tromey.com>
1951
1952 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1953 (dwarf2_get_dwz_file): Use foreach.
1954 (dwarf2_locate_dwo_sections): Change parameters.
1955 (open_and_init_dwo_file): Use foreach.
1956 (dwarf2_locate_common_dwp_sections): Change parameters.
1957 (open_and_init_dwp_file): Use foreach.
1958
1959 2020-09-19 Tom Tromey <tom@tromey.com>
1960
1961 * symfile.h: (find_lowest_section): Don't declare.
1962 * symfile.c (find_lowest_section): Now static. Change
1963 parameters.
1964 (struct place_section_arg): Remove.
1965 (place_section): Change parameters.
1966 (addr_info_make_relative): Use foreach.
1967 (symfile_dummy_outputs): Remove.
1968 (default_symfile_relocate): Use foreach.
1969
1970 2020-09-19 Tom Tromey <tom@tromey.com>
1971
1972 * objfiles.c (add_to_objfile_sections): Rename from
1973 add_to_objfile_sections_full.
1974 (add_to_objfile_sections): Remove.
1975 (build_objfile_section_table): Use foreach.
1976
1977 2020-09-19 Tom Tromey <tom@tromey.com>
1978
1979 * stap-probe.c (get_stap_base_address_1): Remove.
1980 (get_stap_base_address): Use foreach.
1981
1982 2020-09-19 Tom Tromey <tom@tromey.com>
1983
1984 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1985 parameters.
1986 (gdb_bfd_close_or_warn): Use foreach.
1987
1988 2020-09-19 Tom Tromey <tom@tromey.com>
1989
1990 * corelow.c (add_to_thread_list): Change parameters.
1991 (core_target_open): Use foreach.
1992
1993 2020-09-19 Tom Tromey <tom@tromey.com>
1994
1995 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1996 existing function.
1997
1998 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2001 for arrays.
2002
2003 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * eval.c: Remove 'f-lang.h' include.
2006 (value_f90_subarray): Moved to f-lang.c.
2007 (eval_call): Renamed to...
2008 (evaluate_subexp_do_call): ...this, is no longer static, header
2009 comment moved into header file.
2010 (evaluate_funcall): Update call to eval_call.
2011 (skip_undetermined_arglist): Moved to f-lang.c.
2012 (fortran_value_subarray): Likewise.
2013 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2014 moved to evaluate_subexp_f.
2015 (calc_f77_array_dims): Moved to f-lang.c
2016 * expprint.c (print_subexp_funcall): New function.
2017 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2018 moved to print_subexp_f, OP_FUNCALL uses new function.
2019 (dump_subexp_body_funcall): New function.
2020 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2021 moved to dump_subexp_f, OP_FUNCALL uses new function.
2022 * expression.h (evaluate_subexp_do_call): Declare.
2023 * f-lang.c (value_f90_subarray): Moved from eval.c.
2024 (skip_undetermined_arglist): Likewise.
2025 (calc_f77_array_dims): Likewise.
2026 (fortran_value_subarray): Likewise.
2027 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2028 (operator_length_f): Likewise.
2029 (print_subexp_f): Likewise.
2030 (dump_subexp_body_f): Likewise.
2031 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2032 declaration of this operation to here.
2033 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2034 support moved to operator_length_f.
2035 * parser-defs.h (dump_subexp_body_funcall): Declare.
2036 (print_subexp_funcall): Declare.
2037 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2038 fortran-operator.def.
2039
2040 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * eval.c (fortran_value_subarray): New function, content is taken
2043 from...
2044 (evaluate_subexp_standard): ...here, in two places. Now arrays
2045 and strings both call the new function.
2046 (calc_f77_array_dims): Add header comment, handle strings.
2047
2048 2020-09-18 Victor Collod <vcollod@nvidia.com>
2049
2050 PR gdb/26635
2051 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2052 (i386_analyze_prologue): Call i386_skip_endbr.
2053
2054 2020-09-18 Tom Tromey <tromey@adacore.com>
2055
2056 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2057 (windows_nat_target::wait): Update.
2058 * target/wait.h (enum target_wait_flag): New. Use
2059 DEF_ENUM_FLAGS_TYPE.
2060 * target/target.h (target_wait): Change type of options.
2061 * target.h (target_options_to_string, default_target_wait):
2062 Update.
2063 (struct target_ops) <wait>: Change type of options.
2064 * target.c (target_wait, default_target_wait, do_option): Change
2065 type of "options".
2066 (target_options_to_string): Likewise.
2067 * target-delegates.c: Rebuild.
2068 * target-debug.h (target_debug_print_target_wait_flags): Rename
2069 from target_debug_print_options.
2070 * sol-thread.c (class sol_thread_target) <wait>: Update.
2071 (sol_thread_target::wait): Update.
2072 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2073 (rs6000_nat_target::wait): Update.
2074 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2075 Update.
2076 (remote_target::wait_ns, remote_target::wait_as): Change type of
2077 "options".
2078 (remote_target::wait): Update.
2079 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2080 (gdbsim_target::wait): Update.
2081 * record-full.c (class record_full_base_target) <wait>: Update.
2082 (record_full_wait_1): Change type of "options".
2083 (record_full_base_target::wait): Update.
2084 * record-btrace.c (class record_btrace_target) <wait>: Update.
2085 (record_btrace_target::wait): Update.
2086 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2087 Update.
2088 (ravenscar_thread_target::wait): Update.
2089 * procfs.c (class procfs_target) <wait>: Update.
2090 (procfs_target::wait): Update.
2091 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2092 * obsd-nat.c (obsd_nat_target::wait): Update.
2093 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2094 (nto_procfs_target::wait): Update.
2095 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2096 * nbsd-nat.c (nbsd_wait): Change type of "options".
2097 (nbsd_nat_target::wait): Update.
2098 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2099 (thread_db_target::wait): Update.
2100 * linux-nat.h (class linux_nat_target) <wait>: Update.
2101 * linux-nat.c (linux_nat_target::wait): Update.
2102 (linux_nat_wait_1): Update.
2103 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2104 "options".
2105 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2106 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2107 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2108 (go32_nat_target::wait): Update.
2109 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2110 * gnu-nat.c (gnu_nat_target::wait): Update.
2111 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2112 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2113 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2114 * darwin-nat.c (darwin_nat_target::wait): Update.
2115 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2116 (bsd_uthread_target::wait): Update.
2117 * aix-thread.c (class aix_thread_target) <wait>: Update.
2118 (aix_thread_target::wait): Update.
2119
2120 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * compile/compile-object-run.c (create_copied_type_recursive): New
2123 function.
2124 (compile_object_run): Use new function.
2125
2126 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2127
2128 * NEWS: Mention x86_64 Cygwin core file support.
2129
2130 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2131
2132 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2133 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2134
2135 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2136
2137 * windows-tdep.h: Add prototypes.
2138 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2139 (i386_windows_core_pid_to_str): Move and rename ...
2140 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2141 (windows_core_pid_to_str): ... and here.
2142 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2143
2144 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2145 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2146 (amd64_windows_init_abi_common): ... and register.
2147
2148 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2149
2150 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2151 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2152
2153 2020-09-18 Pedro Alves <pedro@palves.net>
2154
2155 PR gdb/26631
2156 * thread.c (thread_find_command): Switch inferior before calling
2157 target methods.
2158
2159 2020-09-17 Tom Tromey <tromey@adacore.com>
2160
2161 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2162 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2163 (tdesc_arch_data_up): New typedef.
2164 (tdesc_use_registers, tdesc_data_alloc): Update.
2165 (tdesc_data_cleanup): Don't declare.
2166 * target-descriptions.c (tdesc_data_alloc): Return a
2167 tdesc_arch_data_up.
2168 (tdesc_arch_data_deleter::operator()): Rename from
2169 tdesc_data_cleanup. Change argument type.
2170 (tdesc_use_registers): Change early_data to an rvalue reference.
2171 (tdesc_use_registers): Don't use delete.
2172 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2173 * s390-tdep.c (s390_gdbarch_init): Update.
2174 * rx-tdep.c (rx_gdbarch_init): Update.
2175 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2176 * riscv-tdep.c (riscv_gdbarch_init): Update.
2177 * or1k-tdep.c (or1k_gdbarch_init): Update.
2178 * nios2-tdep.c (nios2_gdbarch_init): Update.
2179 * nds32-tdep.c (nds32_gdbarch_init): Update.
2180 * mips-tdep.c (mips_gdbarch_init): Update.
2181 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2182 * m68k-tdep.c (m68k_gdbarch_init): Update.
2183 * i386-tdep.c (i386_gdbarch_init): Update.
2184 * arm-tdep.c (arm_gdbarch_init): Update.
2185 * arc-tdep.c (arc_tdesc_init): Update.
2186 (arc_gdbarch_init): Update.
2187 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2188
2189 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2190
2191 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2192 for WOW64 processes.
2193
2194 2020-09-17 Tom Tromey <tom@tromey.com>
2195
2196 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2197
2198 2020-09-17 Tom Tromey <tom@tromey.com>
2199
2200 * value.c (preserve_values): Update.
2201 * python/py-type.c (save_objfile_types): Update.
2202 * guile/scm-type.c (save_objfile_types): Update.
2203 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2204 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2205 * compile/compile-object-run.c (compile_object_run): Update.
2206
2207 2020-09-17 Tom Tromey <tom@tromey.com>
2208
2209 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2210 Remove.
2211 <m_table>: Now htab_up.
2212 * typeprint.c (typedef_hash_table::recursively_update)
2213 (typedef_hash_table::add_template_parameters)
2214 (typedef_hash_table::typedef_hash_table): Update.
2215 (typedef_hash_table::~typedef_hash_table): Remove.
2216 (typedef_hash_table::typedef_hash_table)
2217 (typedef_hash_table::find_global_typedef)
2218 (typedef_hash_table::find_typedef): Update.
2219
2220 2020-09-17 Tom Tromey <tom@tromey.com>
2221
2222 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2223
2224 2020-09-17 Tom Tromey <tom@tromey.com>
2225
2226 * linespec.c (class decode_compound_collector)
2227 <~decode_compound_collector>: Remove.
2228 <m_unique_syms>: Now htab_up.
2229 (decode_compound_collector::operator ()): Update.
2230 (class symtab_collector) <~symtab_collector>: Remove.
2231 <m_symtab_table>: Now htab_up.
2232 (symtab_collector::operator ()): Update.
2233
2234 2020-09-17 Tom Tromey <tom@tromey.com>
2235
2236 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2237 (filename_seen_cache::clear): Update.
2238 (~filename_seen_cache): Remove.
2239 (filename_seen_cache::seen): Update.
2240 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2241 htab_up.
2242 <~filename_seen_cache>: Remove.
2243 <traverse>: Update.
2244
2245 2020-09-17 Tom Tromey <tom@tromey.com>
2246
2247 * completer.c (completion_tracker::discard_completions)
2248 (completion_tracker::~completion_tracker)
2249 (completion_tracker::maybe_add_completion)
2250 (completion_tracker::remove_completion)
2251 (completion_tracker::recompute_lowest_common_denominator)
2252 (completion_tracker::build_completion_result): Update.
2253 * completer.h (class completion_tracker) <have_completions>:
2254 Update.
2255 <m_entries_hash>: Now htab_up.
2256
2257 2020-09-17 Tom Tromey <tom@tromey.com>
2258
2259 * breakpoint.c (ambiguous_names_p): Use htab_up.
2260
2261 2020-09-17 Tom Tromey <tom@tromey.com>
2262
2263 * auto-load.c (struct auto_load_pspace_info)
2264 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2265 <loaded_script_files, loaded_script_texts>: Change type to
2266 htab_up.
2267 (~auto_load_pspace_info) Remove.
2268 (init_loaded_scripts_info, maybe_add_script_file)
2269 (maybe_add_script_text, auto_load_info_scripts): Update.
2270
2271 2020-09-17 Tom Tromey <tromey@adacore.com>
2272
2273 * c-exp.y (name_obstack): Now static.
2274
2275 2020-09-17 Chungyi Chi <demonic@csie.io>
2276
2277 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2278
2279 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2282 (add_solib_catchpoint): Likewise.
2283 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2284 to bool.
2285 (add_solib_catchpoint): Change int parameter/variable to bool.
2286 (catch_load_or_unload): Likewise.
2287 (init_catchpoint): Likewise.
2288 (create_fork_vfork_event_catchpoint): Likewise.
2289 (catch_fork_command_1): Likewise.
2290 (catch_exec_command_1): Likewise.
2291
2292 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2295 Change instance_flags to m_instance_flags.
2296
2297 2020-09-16 Tom Tromey <tromey@adacore.com>
2298
2299 PR gdb/26598:
2300 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2301
2302 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2303
2304 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2305 PL_FLAG_EXEC.
2306 (fbsd_nat_target::insert_exec_catchpoint)
2307 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2308 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2309 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2310
2311 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2312
2313 * configure.ac: Remove check for kinfo_getvmmap().
2314 * configure, config.in: Regenerate.
2315 * fbsd-nat.c (fbsd_read_mapping): Remove
2316 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2317 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2318 kinfo_get_vmmap() are always present.
2319
2320 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2321
2322 * fbsd-nat.c: Always include support for
2323 TARGET_OBJECT_SIGNAL_INFO.
2324
2325 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2326
2327 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2328 sysctl and remove procfs fallback.
2329
2330 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2331
2332 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2333 * fbsd-nat.h: Likewise.
2334
2335 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2336
2337 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2338 argument.
2339
2340 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2341
2342 * ada-lang.c (ada_language_data): Delete.
2343 (ada_language): Remove references to ada_language_data.
2344 * c-lang.c (c_language_data): Delete.
2345 (c_language): Remove references to c_language_data.
2346 (cplus_language_data): Delete.
2347 (cplus_language): Remove references to cplus_language_data.
2348 (asm_language_data): Delete.
2349 (asm_language): Remove references to asm_language_data.
2350 (minimal_language_data): Delete.
2351 (minimal_language): Remove references to minimal_language_data.
2352 * d-lang.c (d_language_data): Delete.
2353 (d_language): Remove references to d_language_data.
2354 * f-lang.c (f_language_data): Delete.
2355 (f_language): Remove references to f_language_data.
2356 * go-lang.c (go_language_data): Delete.
2357 (go_language): Remove references to go_language_data.
2358 * language.c (unknown_language_data): Delete.
2359 (unknown_language): Remove references to unknown_language_data.
2360 (auto_language_data): Delete.
2361 (auto_language): Remove references to auto_language_data.
2362 * language.h (language_data): Delete struct.
2363 (language_defn): No longer inherit from language_data.
2364 * m2-lang.c (m2_language_data): Delete.
2365 (m2_language): Remove references to m2_language_data.
2366 * objc-lang.c (objc_language_data): Delete.
2367 (objc_language): Remove references to objc_language_data.
2368 * opencl-lang.c (opencl_language_data): Delete.
2369 (opencl_language): Remove references to opencl_language_data.
2370 * p-lang.c (pascal_language_data): Delete.
2371 (pascal_language): Remove references to pascal_language_data.
2372 * rust-lang.c (rust_language_data): Delete.
2373 (rust_language): Remove references to rust_language_data.
2374
2375 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2378 initializer.
2379 (ada_language::opcode_print_table): New member function.
2380 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2381 (c_language::opcode_print_table): New member function.
2382 (cplus_language_data): Remove la_op_print_tab initializer.
2383 (cplus_language::opcode_print_table): New member function.
2384 (asm_language_data): Remove la_op_print_tab initializer.
2385 (asm_language::opcode_print_table): New member function.
2386 (minimal_language_data): Remove la_op_print_tab initializer.
2387 (minimal_language::opcode_print_table): New member function.
2388 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2389 (d_language::opcode_print_table): New member function.
2390 * expprint.c (print_subexp_standard): Update call to
2391 opcode_print_table.
2392 (op_string): Likewise.
2393 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2394 (f_language::opcode_print_table): New member function.
2395 * go-lang.c (go_language_data): Remove la_op_print_tab
2396 initializer.
2397 (go_language::opcode_print_table): New member function.
2398 * language.c (unknown_language_data): Remove la_op_print_tab
2399 initializer.
2400 (unknown_language::opcode_print_table): New member function.
2401 (auto_language_data): Remove la_op_print_tab initializer.
2402 (auto_language::opcode_print_table): New member function.
2403 * language.h (language_data): Remove la_op_print_tab field.
2404 (language_defn::opcode_print_table): Declare new member function.
2405 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2406 initializer.
2407 (m2_language::opcode_print_table): New member function.
2408 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2409 initializer.
2410 (objc_language::opcode_print_table): New member function.
2411 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2412 initializer.
2413 (opencl_language::opcode_print_table): New member function.
2414 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2415 initializer.
2416 (pascal_language::opcode_print_table): New member function.
2417 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2418 initializer.
2419 (rust_language::opcode_print_table): New member function.
2420
2421 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2424 (ada_language::expression_ops): New member function.
2425 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2426 (c_language::expression_ops): New member function.
2427 (cplus_language_data): Remove la_exp_desc initializer.
2428 (cplus_language::expression_ops): New member function.
2429 (asm_language_data): Remove la_exp_desc initializer.
2430 (asm_language::expression_ops): New member function.
2431 (minimal_language_data): Remove la_exp_desc initializer.
2432 (minimal_language::expression_ops): New member function.
2433 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2434 (d_language::expression_ops): New member function.
2435 * eval.c (evaluate_subexp): Update call to expression_ops.
2436 * expprint.c (print_subexp): Likewise.
2437 (op_name): Likewise.
2438 (dump_subexp_body): Likewise.
2439 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2440 (f_language::expression_ops): New member function.
2441 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2442 (go_language::expression_ops): New member function.
2443 * language.c (language_defn::expression_ops): New function.
2444 (unknown_language_data): Remove la_exp_desc initializer.
2445 (auto_language_data): Likewise.
2446 * language.h (language_data): Remove la_exp_desc field.
2447 (language_defn::expression_ops): Declare new member function.
2448 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2449 (m2_language::expression_ops): New member function.
2450 * objc-lang.c (objc_language_data): Remove la_exp_desc
2451 initializer.
2452 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2453 initializer.
2454 (opencl_language::expression_ops): New member function.
2455 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2456 * parse.c (operator_length): Update call to expression_ops.
2457 (exp_iterate): Likewise.
2458 * rust-lang.c (rust_language_data): Remove la_exp_desc
2459 initializer.
2460 (ruse_language::expression_ops): New member function.
2461
2462 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2463
2464 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2465 initializer.
2466 (ada_language::varobj_ops): New member function.
2467 * c-lang.c (c_language_data): Remove la_varobj_ops
2468 initializer.
2469 (cplus_language_data): Likewise.
2470 (cplus_language::varobj_ops): New member function.
2471 (asm_language_data): Remove la_varobj_ops initializer.
2472 (minimal_language_data): Likewise.
2473 * d-lang.c (d_language_data): Likewise.
2474 * f-lang.c (f_language_data): Likewise.
2475 * go-lang.c (go_language_data): Likewise.
2476 * language.c (language_defn::varobj_ops): New function.
2477 (unknown_language_data): Remove la_varobj_ops
2478 initializer.
2479 (auto_language_data): Likewise.
2480 * language.h (language_data): Remove la_varobj_ops field.
2481 (language_defn::varobj_ops): Declare new member function.
2482 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2483 * objc-lang.c (objc_language_data): Likewise.
2484 * opencl-lang.c (opencl_language_data): Likewise.
2485 * p-lang.c (pascal_language_data): Likewise.
2486 * rust-lang.c (rust_language_data): Likewise.
2487 * varobj.c (varobj_create): Update call to varobj_ops.
2488 * varobj.h (default_varobj_ops): Delete define.
2489
2490 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2491
2492 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2493 initializer.
2494 * c-lang.c (c_language_data): Likewise.
2495 (c_language::macro_expansion): New member function.
2496 (cplus_language_data): Likewise.
2497 (cplus_language::macro_expansion): New member function.
2498 (asm_language_data): Likewise.
2499 (asm_language::macro_expansion): New member function.
2500 (minimal_language_data): Likewise.
2501 (minimal_language::macro_expansion): New member function.
2502 * d-lang.c (d_language_data): Remove la_macro_expansion
2503 initializer.
2504 * f-lang.c (f_language_data): Likewise.
2505 * go-lang.c (go_language_data): Likewise.
2506 * language.c (unknown_language_data): Likewise.
2507 (auto_language_data): Likewise.
2508 * language.h (language_data): Remove la_macro_expansion field.
2509 (language_defn::macro_expansion): New member function.
2510 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2511 initializer.
2512 * objc-lang.c (objc_language_data): Likewise.
2513 (objc_language::macro_expansion): New member function.
2514 * opencl-lang.c (opencl_language_data): Likewise.
2515 (opencl_language::macro_expansion): New member function.
2516 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2517 initializer.
2518 * rust-lang.c (rust_language_data): Likewise.
2519 * symtab.c (default_collect_symbol_completion_matches_break_on):
2520 Update call to macro_expansion.
2521
2522 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (ada_language_data): Remove la_array_ordering
2525 initializer.
2526 * c-lang.c (c_language_data): Likewise.
2527 (cplus_language_data): Likewise.
2528 (asm_language_data): Likewise.
2529 (minimal_language_data): Likewise.
2530 * d-lang.c (d_language_data): Likewise.
2531 * dwarf2/read.c (read_array_order): Update for call to
2532 array_ordering.
2533 * f-lang.c (f_language_data): Remove la_array_ordering
2534 initializer.
2535 (f_language::array_ordering): New member function.
2536 * go-lang.c (go_language_data): Remove la_array_ordering
2537 initializer.
2538 * language.c (unknown_language_data): Likewise.
2539 (auto_language_data): Likewise.
2540 * language.h (language_data): Delete la_array_ordering field.
2541 (language_defn::array_ordering): New member function.
2542 * m2-lang.c (m2_language_data): Remove la_array_ordering
2543 initializer.
2544 * objc-lang.c (objc_language_data): Likewise.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_language_data): Likewise.
2547 * rust-lang.c (rust_language_data): Likewise.
2548
2549 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2552 initializer.
2553 * c-lang.c (c_language_data): Likewise.
2554 (cplus_language_data): Likewise.
2555 (asm_language_data): Likewise.
2556 (minimal_language_data): Likewise.
2557 * d-lang.c (d_language_data): Likewise.
2558 * f-lang.c (f_language_data): Likewise.
2559 (f_language::case_sensitivity): New member function.
2560 * go-lang.c (go_language_data): Remove la_case_sensitivity
2561 initializer.
2562 * language.c (enum case_mode): Moved here from language.h.
2563 (case_mode): Make static.
2564 (show_case_command): Update for case_sensitivity being a method.
2565 (set_case_command): Likewise.
2566 (set_range_case): Likewise.
2567 (unknown_language_data): Remove la_case_sensitivity initializer.
2568 (auto_language_data): Likewise.
2569 * language.h (case_mode): Delete, move enum declaration to
2570 language.c.
2571 (language_data): Delete la_case_sensitivity field.
2572 (language_defn::case_sensitivity): New member function.
2573 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2574 initializer.
2575 * objc-lang.c (objc_language_data): Likewise.
2576 * opencl-lang.c (opencl_language_data): Likewise.
2577 * p-lang.c (pascal_language_data): Likewise.
2578 * rust-lang.c (rust_language_data): Likewise.
2579
2580 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * ada-lang.c (ada_language_data): Remove la_range_check
2583 initializer.
2584 * c-lang.c (c_language_data): Likewise.
2585 (cplus_language_data): Likewise.
2586 (asm_language_data): Likewise.
2587 (minimal_language_data): Likewise.
2588 * d-lang.c (d_language_data): Likewise.
2589 * f-lang.c (f_language_data): Likewise.
2590 (f_language::range_checking_on_by_default): New member function.
2591 * go-lang.c (go_language_data): Remove la_range_check initializer.
2592 * language.c (enum range_mode): Moved here from language.h.
2593 (range_mode): Made static.
2594 (show_range_command): Update to use
2595 range_checking_on_by_default.
2596 (set_range_command): Likewise.
2597 (set_range_case): Likewise.
2598 (unknown_language_data): Remove la_range_check initializer.
2599 (auto_language_data): Likewise.
2600 * language.h (range_mode): Delete. Enum definition moved to
2601 language.c.
2602 (language_data): Remove la_range_check field.
2603 (language_defn::range_checking_on_by_default): New member
2604 function.
2605 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2606 (m2_language::range_checking_on_by_default): New member function.
2607 * objc-lang.c (objc_language_data): Remove la_range_check
2608 initializer.
2609 * opencl-lang.c (opencl_language_data): Likewise.
2610 * p-lang.c (pascal_language_data): Likewise.
2611 (pascal_language::range_checking_on_by_default): New member
2612 function.
2613 * rust-lang.c (rust_language_data): Remove la_range_check
2614 initializer.
2615 (rust_language::range_checking_on_by_default): New member
2616 function.
2617
2618 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * dwarf2/read.c (dwarf2_physname): Remove special case for
2621 language_go.
2622 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2623 member function.
2624
2625 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_language_data): Remove
2628 la_store_sym_names_in_linkage_form_p initializer.
2629 (ada_language::store_sym_names_in_linkage_form_p): New member
2630 function.
2631 * c-lang.c (c_language_data): Remove
2632 la_store_sym_names_in_linkage_form_p initializer.
2633 (c_language::store_sym_names_in_linkage_form_p): New member
2634 function.
2635 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2636 initializer.
2637 (asm_language_data): Likewise.
2638 (asm_language::store_sym_names_in_linkage_form_p): New member
2639 function.
2640 (minimal_language_data): Remove
2641 la_store_sym_names_in_linkage_form_p initializer.
2642 (minimal_language::store_sym_names_in_linkage_form_p): New member
2643 function.
2644 * d-lang.c (d_language_data): Remove
2645 la_store_sym_names_in_linkage_form_p initializer.
2646 * dwarf2/read.c (dwarf2_physname): Update call to
2647 store_sym_names_in_linkage_form_p.
2648 * f-lang.c (f_language_data): Remove
2649 la_store_sym_names_in_linkage_form_p initializer.
2650 * go-lang.c (go_language_data): Remove
2651 la_store_sym_names_in_linkage_form_p initializer.
2652 * language.c (unknown_language_data): Remove
2653 la_store_sym_names_in_linkage_form_p initializer.
2654 (unknown_language::store_sym_names_in_linkage_form_p): New member
2655 function.
2656 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2657 initializer.
2658 (auto_language::store_sym_names_in_linkage_form_p): New member
2659 function.
2660 * language.h (language_data): Remove
2661 la_store_sym_names_in_linkage_form_p member variable.
2662 (language_defn::store_sym_names_in_linkage_form_p): New member
2663 function.
2664 * m2-lang.c (m2_language_data): Remove
2665 la_store_sym_names_in_linkage_form_p initializer.
2666 * objc-lang.c (objc_language_data): Likewise.
2667 * opencl-lang.c (opencl_language_data): Likewise.
2668 * p-lang.c (pascal_language_data): Likewise.
2669 * rust-lang.c (rust_language_data): Likewise.
2670
2671 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * ada-lang.c (ada_language_data): Remove string_lower_bound
2674 initializer.
2675 * c-lang.c (c_language_data): Likewise.
2676 (cplus_language_data): Likewise.
2677 (asm_language_data): Likewise.
2678 (minimal_language_data): Likewise.
2679 * d-lang.c (d_language_data): Likewise.
2680 * f-lang.c (f_language_data): Likewise.
2681 * go-lang.c (go_language_data): Likewise.
2682 * language.c (unknown_language_data): Likewise.
2683 (auto_language_data): Likewise.
2684 * language.h (language_data): Remove string_lower_bound field.
2685 (language_defn::string_lower_bound): New member function.
2686 * m2-lang.c (m2_language_data): Remove string_lower_bound
2687 initializer.
2688 (m2_language::string_lower_bound): New member function.
2689 * objc-lang.c (objc_language_data): Remove string_lower_bound
2690 initializer.
2691 * opencl-lang.c (opencl_language_data): Likewise.
2692 * p-lang.c (pascal_language_data): Likewise.
2693 * rust-lang.c (rust_language_data): Likewise.
2694 * valops.c (value_cstring): Update call to string_lower_bound.
2695 (value_string): Likewise.
2696 * value.c (allocate_repeated_value): Likewise.
2697
2698 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * valops.c (value_repeat): Fix incorrect argument name in comment.
2701
2702 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * ada-lang.c (ada_language_data): Remove c_style_arrays
2705 initializer.
2706 (ada_language::c_style_arrays_p): New member fuction.
2707 * c-lang.c (c_language_data): Remove c_style_arrays
2708 initializer.
2709 (cplus_language_data): Likewise.
2710 (asm_language_data): Likewise.
2711 (minimal_language_data): Likewise.
2712 * d-lang.c (d_language_data): Likewise.
2713 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2714 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2715 (f_language::c_style_arrays_p): New member function.
2716 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2717 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2718 * language.c (unknown_language_data): Remove c_style_arrays
2719 initializer.
2720 (auto_language_data): Likewise.
2721 * language.h (language_data): Remove c_style_arrays field.
2722 (language_defn::c_style_arrays_p): New member function.
2723 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2724 (m2_language::c_style_arrays_p): New member function.
2725 * objc-lang.c (objc_language_data): Remove c_style_arrays
2726 initializer.
2727 * opencl-lang.c (opencl_language_data): Likewise.
2728 * p-lang.c (pascal_language_data): Likewise.
2729 * rust-lang.c (rust_language_data): Likewise.
2730 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2731 and update local variable to a bool.
2732 * valops.c (value_cast): Update call to c_style_arrays_p.
2733 (value_array): Likewise.
2734 * value.c (coerce_array): Likewise.
2735
2736 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * ada-lang.c (ada_language_data): Remove la_language initializer.
2739 * c-lang.c (c_language_data): Likewise.
2740 (cplus_language_data): Likewise.
2741 (asm_language_data): Likewise.
2742 (minimal_language_data): Likewise.
2743 * d-lang.c (d_language_data): Likewise.
2744 * f-lang.c (f_language_data): Likewise.
2745 * go-lang.c (go_language_data): Likewise.
2746 * language.c (unknown_language_data): Likewise.
2747 (auto_language_data): Likewise.
2748 * language.h (language_data): Remove la_language field.
2749 (language_defn::language_defn): Initialise la_language field.
2750 (language_defn::la_language): New member variable.
2751 * m2-lang.c (m2_language_data): Remove la_language field.
2752 * objc-lang.c (objc_language_data): Likewise.
2753 * opencl-lang.c (opencl_language_data): Likewise.
2754 * p-lang.c (pascal_language_data): Likewise.
2755 * rust-lang.c (rust_language_data): Likewise.
2756
2757 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * ada-lang.c (ada_extensions): Delete, moved into
2760 ada_language::filename_extensions.
2761 (ada_language_data): Remove la_filename_extensions initializer.
2762 (ada_language::filename_extensions): New member function.
2763 * c-lang.c (c_extensions): Delete, moved into
2764 c_language::filename_extensions.
2765 (c_language_data): Remove la_filename_extensions initializer.
2766 (c_language::filename_extensions): New member function.
2767 (cplus_extensions): Delete, moved into
2768 cplus_language::filename_extensions.
2769 (cplus_language_data): Remove la_filename_extensions initializer.
2770 (cplus_language::filename_extensions): New member function.
2771 (asm_extensions): Delete, moved into
2772 asm_language::filename_extensions.
2773 (asm_language_data): Remove la_filename_extensions initializer.
2774 (asm_language::filename_extensions): New member function.
2775 (minimal_language_data): Remove la_filename_extensions
2776 initializer.
2777 * d-lang.c (d_extensions): Delete, moved into
2778 d_language::filename_extensions.
2779 (d_language_data): Remove la_filename_extensions initializer.
2780 (d_language::filename_extensions): New member function.
2781 * f-lang.c (f_extensions): Delete, moved into
2782 f_language::filename_extensions.
2783 (f_language_data): Remove la_filename_extensions initializer.
2784 (f_language::filename_extensions): New member function.
2785 * go-lang.c (go_language_data): Remove la_filename_extensions
2786 initializer.
2787 * language.c (add_set_language_command): Update now that
2788 filename_extensions returns a vector.
2789 (unknown_language_data): Remove la_filename_extensions
2790 initializer.
2791 (auto_language_data): Likewise.
2792 * language.h (language_data): Remove la_filename_extensions field.
2793 (language_defn::filename_extensions): New member function.
2794 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2795 initializer.
2796 * objc-lang.c (objc_extensions): Delete, moved into
2797 objc_language::filename_extensions.
2798 (objc_language_data): Remove la_filename_extensions initializer.
2799 (objc_language::filename_extensions): New member function.
2800 * opencl-lang.c (opencl_language_data): Remove
2801 la_filename_extensions initializer.
2802 * p-lang.c (pascal_extensions): Delete, moved into
2803 pascal_language::filename_extensions.
2804 (pascal_language_data): Remove la_filename_extensions initializer.
2805 (pascal_language::filename_extensions): New member function.
2806 * rust-lang.c (rust_extensions): Delete, moved into
2807 rust_language::filename_extensions.
2808 (rust_language_data): Remove la_filename_extensions initializer.
2809 (rust_language::filename_extensions): New member function.
2810 * symfile.c (add_filename_language): Add new assert.
2811
2812 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2813
2814 * ada-lang.c (ada_language_data): Remove la_name and
2815 la_natural_name initializers.
2816 (ada_language::name): New member function.
2817 (ada_language::natural_name): New member function.
2818 * c-lang.c (c_language_data): Remove la_name and
2819 la_natural_name initializers.
2820 (c_language::name): New member function.
2821 (c_language::natural_name): New member function.
2822 (cplus_language_data): Remove la_name and
2823 la_natural_name initializers.
2824 (cplus_language::name): New member function.
2825 (cplus_language::natural_name): New member function.
2826 (asm_language_data): Remove la_name and
2827 la_natural_name initializers.
2828 (asm_language::name): New member function.
2829 (asm_language::natural_name): New member function.
2830 (minimal_language_data): Remove la_name and
2831 la_natural_name initializers.
2832 (minimal_language::name): New member function.
2833 (minimal_language::natural_name): New member function.
2834 * compile/compile.c (compile_to_object): Update call to
2835 lanugage_defn::name.
2836 * d-lang.c (d_language_data): Remove la_name and
2837 la_natural_name initializers.
2838 (d_language::name): New member function.
2839 (d_language::natural_name): New member function.
2840 * expprint.c (print_subexp_standard): Update call to
2841 language_defn::name.
2842 (dump_raw_expression): Likewise
2843 (dump_prefix_expression): Likewise.
2844 * f-lang.c (f_language_data): Remove la_name and
2845 la_natural_name initializers.
2846 (f_language::name): New member function.
2847 (f_language::natural_name): New member function.
2848 * go-lang.c (go_language_data): Remove la_name and
2849 la_natural_name initializers.
2850 (go_language::name): New member function.
2851 (go_language::natural_name): New member function.
2852 * language.c (show_language_command): Update call to
2853 language_defn::name.
2854 (set_language_command): Likewise.
2855 (language_enum): Likewise.
2856 (language_str): Likewise.
2857 (add_set_language_command): Likewise, use
2858 language_defn::natural_name in the doc string.
2859 (unknown_language_data): Remove la_name and
2860 la_natural_name initializers.
2861 (unknown_language::name): New member function.
2862 (unknown_language::natural_name): New member function.
2863 (auto_language_data): Remove la_name and
2864 la_natural_name initializers.
2865 (auto_language::name): New member function.
2866 (auto_language::natural_name): New member function.
2867 (language_lookup_primitive_type_as_symbol): Update call to
2868 language_defn::name.
2869 * language.h (language_data): Remove la_name and la_natural_name
2870 member variables.
2871 (language_defn::name): New member function.
2872 (language_defn::natural_name): New member function.
2873 * m2-lang.c (m2_language_data): Remove la_name and
2874 la_natural_name initializers.
2875 (m2_language::name): New member function.
2876 (m2_language::natural_name): New member function.
2877 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2878 language_defn::natural_name.
2879 * objc-lang.c (objc_language_data): Remove la_name and
2880 la_natural_name initializers.
2881 (objc_language::name): New member function.
2882 (objc_language::natural_name): New member function.
2883 * opencl-lang.c (opencl_language_data): Remove la_name and
2884 la_natural_name initializers.
2885 (opencl_language::name): New member function.
2886 (opencl_language::natural_name): New member function.
2887 * p-lang.c (pascal_language_data): Remove la_name and
2888 la_natural_name initializers.
2889 (pascal_language::name): New member function.
2890 (pascal_language::natural_name): New member function.
2891 * rust-lang.c (rust_language_data): Remove la_name and
2892 la_natural_name initializers.
2893 (rust_language::name): New member function.
2894 (rust_language::natural_name): New member function.
2895 * symtab.c (lookup_language_this): Update call to
2896 language_defn::name.
2897
2898 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * ada-lang.c (ada_language_data): Remove la_name_of_this
2901 initializer.
2902 * ax-gdb.c (gen_expr): Update call to name_of_this.
2903 * c-exp.y (classify_name): Likewise.
2904 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2905 (cplus_language_data): Likewise.
2906 (cplus_language::name_of_this): New member function.
2907 (asm_language_data): Remove la_name_of_this initializer.
2908 (minimal_language_data): Likewise.
2909 * d-lang.c (d_language_data): Likewise.
2910 (d_language::name_of_this): New member function.
2911 * expprint.c (print_subexp_standard): Update call to name_of_this.
2912 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2913 * go-lang.c (go_language_data): Likewise.
2914 * language.c (unknown_language_data): Likewise.
2915 (unknown_language::name_of_this): New member function.
2916 (auto_language_data): Remove la_name_of_this initializer.
2917 (auto_language::name_of_this): New member function.
2918 * language.h (language_data): Delete la_name_of_this member
2919 variable.
2920 (language_defn::name_of_this): New member function.
2921 * m2-lang.c (m2_language_data): Remove la_name_of_this
2922 initializer.
2923 * objc-lang.c (objc_language_data): Likewise.
2924 (objc_language::name_of_this): New member function.
2925 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2926 initializer.
2927 * p-lang.c (pascal_language_data): Likewise.
2928 (pascal_language::name_of_this): New member function.
2929 * rust-lang.c (rust_language_data): Remove la_name_of_this
2930 initializer.
2931 * symtab.c (lookup_language_this): Update call to name_of_this.
2932 (lookup_symbol_aux): Likewise.
2933 * valops.c (value_of_this): Likewise.
2934
2935 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * ada-lang.c (ada_language_data): Remove
2938 la_struct_too_deep_ellipsis initializer.
2939 (ada_language::struct_too_deep_ellipsis): New member function.
2940 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2941 initializer.
2942 (cplus_language_data): Likewise.
2943 (asm_language_data): Likewise.
2944 (minimal_language_data): Likewise.
2945 * cp-valprint.c (cp_print_value): Update call to
2946 struct_too_deep_ellipsis.
2947 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2948 initializer.
2949 * f-lang.c (f_language_data): Likewise.
2950 (f_language::struct_too_deep_ellipsis): New member function.
2951 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2952 initializer.
2953 * language.c (unknown_language_data): Likewise.
2954 (auto_language_data): Likewise.
2955 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2956 member variable.
2957 (language_defn::struct_too_deep_ellipsis): New member function.
2958 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2959 initializer.Q
2960 * objc-lang.c (objc_language_data): Likewise.
2961 * opencl-lang.c (opencl_language_data): Likewise.
2962 * p-lang.c (pascal_language_data): Likewise.
2963 * rust-lang.c (rust_language_data): Likewise.
2964 * valprint.c (val_print_check_max_depth): Update call to
2965 struct_too_deep_ellipsis.
2966
2967 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2968
2969 * MAINTAINERS (Write After Approval): Add myself.
2970
2971 2020-09-15 Tom Tromey <tom@tromey.com>
2972
2973 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2974 Remove.
2975
2976 2020-09-15 Tom Tromey <tom@tromey.com>
2977
2978 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2979 and TYPE_CODE_METHODPTR cases.
2980 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2981 (c_value_print_inner): Update.
2982 * valprint.c (generic_value_print_memberptr): New function, from
2983 c_value_print_memberptr.
2984 (generic_value_print): Use it. Call cplus_print_method_ptr.
2985
2986 2020-09-15 Tom Tromey <tromey@adacore.com>
2987
2988 * python/python-internal.h (PyInt_FromLong): Remove define.
2989 * python/py-value.c (convert_value_from_python): Use
2990 gdb_py_object_from_longest.
2991 * python/py-type.c (typy_get_code): Use
2992 gdb_py_object_from_longest.
2993 * python/py-symtab.c (salpy_get_line): Use
2994 gdb_py_object_from_longest.
2995 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2996 gdb_py_object_from_longest.
2997 * python/py-record.c (recpy_gap_reason_code): Use
2998 gdb_py_object_from_longest.
2999 * python/py-record-btrace.c (recpy_bt_insn_size)
3000 (recpy_bt_func_level, btpy_list_count): Use
3001 gdb_py_object_from_longest.
3002 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3003 gdb_py_object_from_longest. Fix error handling.
3004 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3005 gdb_py_object_from_longest.
3006 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3007 gdb_py_object_from_longest.
3008 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3009 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3010 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3011
3012 2020-09-15 Tom Tromey <tromey@adacore.com>
3013
3014 * python/python.c (gdbpy_parameter_value): Use
3015 gdb_py_object_from_ulongest.
3016
3017 2020-09-15 Tom Tromey <tromey@adacore.com>
3018
3019 * python/py-infevents.c (create_register_changed_event_object):
3020 Use gdb_py_object_from_longest.
3021 * python/py-exitedevent.c (create_exited_event_object): Use
3022 gdb_py_object_from_longest.
3023
3024 2020-09-15 Tom Tromey <tromey@adacore.com>
3025
3026 * python/python.c (gdbpy_parameter_value): Use
3027 gdb_py_object_from_longest.
3028 * python/py-type.c (convert_field, typy_range): Use
3029 gdb_py_object_from_longest.
3030 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3031 gdb_py_object_from_longest.
3032 * python/py-lazy-string.c (stpy_get_length): Use
3033 gdb_py_object_from_longest.
3034 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3035 gdb_py_object_from_longest.
3036 * python/py-infevents.c (create_memory_changed_event_object): Use
3037 gdb_py_object_from_longest.
3038 * python/py-inferior.c (infpy_get_num): Use
3039 gdb_py_object_from_longest.
3040 (infpy_get_pid): Likewise.
3041
3042 2020-09-15 Tom Tromey <tromey@adacore.com>
3043
3044 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3045 defines.
3046 * python/py-value.c (valpy_long): Use
3047 gdb_py_object_from_ulongest.
3048 * python/py-symtab.c (salpy_get_pc): Use
3049 gdb_py_object_from_ulongest.
3050 (salpy_get_last): Likewise.
3051 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3052 gdb_py_object_from_ulongest.
3053 * python/py-lazy-string.c (stpy_get_address): Use
3054 gdb_py_object_from_ulongest.
3055 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3056 * python/py-arch.c (archpy_disassemble): Use
3057 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3058 error handling.
3059
3060 2020-09-15 Tom Tromey <tromey@adacore.com>
3061
3062 * python/python-internal.h (gdb_py_long_from_longest): Remove
3063 defines.
3064 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3065 * python/py-type.c (convert_field, typy_get_sizeof): Use
3066 gdb_py_object_from_longest.
3067 * python/py-record-btrace.c (btpy_list_index): Use
3068 gdb_py_object_from_longest.
3069
3070 2020-09-15 Tom Tromey <tromey@adacore.com>
3071
3072 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3073 * python/py-record.c (recpy_element_number): Use
3074 gdb_py_object_from_longest.
3075 (recpy_gap_number): Likewise.
3076
3077 2020-09-15 Tom Tromey <tromey@adacore.com>
3078
3079 * top.c (ui::ui): Update.
3080 (highest_ui_num): Remove.
3081 * top.h (struct ui) <num>: Remove.
3082
3083 2020-09-15 Tom Tromey <tromey@adacore.com>
3084
3085 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3086 * ui-style.c (ansi_regex_text): Now array.
3087 * rust-exp.y (number_regex_text): Now array.
3088 * linespec.c (linespec_quote_characters): Now array.
3089 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3090 Now arrays.
3091
3092 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3093
3094 * debuginfod-support.c (debuginfod_client_deleter): New.
3095 (debuginfod_client_up): New.
3096 (debuginfod_init): Return debuginfod_client_up.
3097 (debuginfod_source_query): Adjust.
3098 (debuginfod_debuginfo_query): Adjust.
3099
3100 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3101
3102 * debuginfod-support.c (debuginfod_source_query): Use
3103 make_unique_xstrdup.
3104
3105 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3106
3107 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3108 with `type::instance_flags`.
3109
3110 2020-09-14 Michael Mullin <masmullin@gmail.com>
3111
3112 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3113 Remove baton parameter.
3114
3115 2020-09-14 Pedro Alves <pedro@palves.net>
3116
3117 * Makefile.in (SELFTESTS_SRCS): Add
3118 unittests/enum-flags-selftests.c.
3119 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3120 btrace_function_flags instead of enum btrace_function_flag.
3121 * compile/compile-c-types.c (convert_qualified): Use
3122 enum_flags::raw.
3123 * compile/compile-cplus-symbols.c (convert_one_symbol)
3124 (convert_symbol_bmsym):
3125 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3126 (compile_cplus_convert_struct_or_union_methods)
3127 (compile_cplus_instance::convert_qualified_base):
3128 * go-exp.y (parse_string_or_char): Add cast to int.
3129 * unittests/enum-flags-selftests.c: New file.
3130 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3131 type to btrace_thread_flags from btrace_thread_flag.
3132 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3133 local's type to btrace_thread_flags from btrace_thread_flag. Add
3134 cast in DEBUG call.
3135
3136 2020-09-14 Pedro Alves <pedro@palves.net>
3137
3138 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3139 * gdbtypes.c (address_space_name_to_int): Rename to ...
3140 (address_space_name_to_type_instance_flags): ... this.
3141 (address_space_int_to_name): Rename to ...
3142 (address_space_type_instance_flags_to_name): ... this.
3143 * gdbtypes.h (address_space_name_to_int): Rename to ...
3144 (address_space_name_to_type_instance_flags): ... this.
3145 (address_space_int_to_name): Rename to ...
3146 (address_space_type_instance_flags_to_name): ... this.
3147 * type-stack.c (type_stack::insert): Adjust to rename.
3148 * type-stack.h (type_stack::insert): Likewise.
3149
3150 2020-09-14 Pedro Alves <pedro@palves.net>
3151 Andrew Burgess <andrew.burgess@embecosm.com>
3152
3153 * avr-tdep.c (avr_address_class_type_flags): Return
3154 type_instance_flags.
3155 (avr_address_class_type_flags_to_name): Take a
3156 type_instance_flags.
3157 (avr_address_class_name_to_type_flags): Return bool and take a
3158 type_instance_flags.
3159 * d-lang.c (build_d_types): Use type::set_instance_flags.
3160 * ft32-tdep.c (ft32_address_class_type_flags): Return
3161 type_instance_flags.
3162 (ft32_address_class_type_flags_to_name): Take a
3163 type_instance_flags.
3164 (ft32_address_class_name_to_type_flags): Return bool and take a
3165 type_instance_flags.
3166 (ft32_gdbarch_init): Use type::set_instance_flags.
3167 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3168 * gdbarch.h, gdbarch.c: Regenerate.
3169 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3170 (address_class_name_to_type_flags): Use type_instance_flags and
3171 bool.
3172 * gdbtypes.c (address_space_name_to_int)
3173 (address_space_int_to_name, make_qualified_type): Use
3174 type_instance_flags.
3175 (make_qualified_type): Use type_instance_flags and
3176 type::set_instance_flags.
3177 (make_type_with_address_space, make_cv_type, make_vector_type)
3178 (check_typedef): Use type_instance_flags.
3179 (recursive_dump_type): Cast type_instance_flags to unsigned for
3180 printing.
3181 (copy_type_recursive): Use type::set_instance_flags.
3182 (gdbtypes_post_init): Use type::set_instance_flags.
3183 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3184 <m_instance_flags>: ... this.
3185 <instance_flags, set_instance_flags>: New methods.
3186 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3187 (SET_TYPE_INSTANCE_FLAGS): New.
3188 (address_space_name_to_int, address_space_int_to_name)
3189 (make_type_with_address_space): Pass flags using
3190 type_instance_flags instead of int.
3191 * stabsread.c (cleanup_undefined_types_noname): Use
3192 type::set_instance_flags.
3193 * s390-tdep.c (s390_address_class_type_flags): Return
3194 type_instance_flags.
3195 (s390_address_class_type_flags_to_name): Take a
3196 type_instance_flags.
3197 (s390_address_class_name_to_type_flags): Return bool and take a
3198 type_instance_flags.
3199 * type-stack.c (type_stack::follow_types): Use
3200 type_instance_flags.
3201 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3202
3203 2020-09-14 Tom Tromey <tromey@adacore.com>
3204
3205 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3206 * x86-tdep.c (x86_is_thunk_register_name)
3207 (x86_in_indirect_branch_thunk): Update.
3208 * sparc64-tdep.c (sparc64_fpu_register_names)
3209 (sparc64_cp0_register_names, sparc64_register_names)
3210 (sparc64_pseudo_register_names): Now const.
3211 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3212 cp0_registers_num>: Now const.
3213 * sparc-tdep.c (sparc_core_register_names)
3214 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3215 (sparc32_pseudo_register_names): Now const.
3216 (validate_tdesc_registers): Update.
3217 * rust-lang.c (rust_extensions): Now const.
3218 * p-lang.c (p_extensions): Now const.
3219 * objc-lang.c (objc_extensions): Now const.
3220 * nto-tdep.c (nto_thread_state_str): Now const.
3221 * moxie-tdep.c (moxie_register_names): Now const.
3222 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3223 Now const.
3224 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3225 (mips_linux_reg_names): Now const.
3226 (mips_gdbarch_init): Update.
3227 * microblaze-tdep.c (microblaze_register_names): Now const.
3228 * m68k-tdep.c (m68k_register_names): Now const.
3229 * m32r-tdep.c (m32r_register_names): Now const.
3230 * ia64-tdep.c (ia64_register_names): Now const.
3231 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3232 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3233 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3234 ymm_avx512_register_names, pkeys_register_names>: Now const.
3235 * i386-tdep.c (i386_register_names, i386_zmm_names)
3236 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3237 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3238 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3239 * f-lang.c (f_extensions): Now const.
3240 * d-lang.c (d_extensions): Now const.
3241 * csky-tdep.c (csky_register_names): Now const.
3242 * charset.c (default_charset_names, charset_enum): Now const.
3243 (_initialize_charset): Update.
3244 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3245 const.
3246 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3247 (bsd_uthread_solib_loaded): Update.
3248 (bsd_uthread_state): Now const.
3249 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3250 (amd64_ymm_avx512_names, amd64_ymmh_names)
3251 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3252 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3253 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3254 (amd64_dword_names): Now const.
3255 * agent.c (can_use_agent_enum): Now const.
3256 * ada-tasks.c (task_states, long_task_states): Now const.
3257 * ada-lang.c (known_runtime_file_name_patterns)
3258 (known_auxiliary_function_name_patterns, attribute_names)
3259 (standard_exc, ada_extensions): Now const.
3260
3261 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * bcache.h (struct bcache) <bcache>: Remove constructor.
3264 <m_hash_function, m_compare_function>: Remove.
3265 <~bcache>: Make virtual.
3266 <compare>: Remove static method, introduce virtual method.
3267 <default_hash>: Remove.
3268 <hash>: New virtual method.
3269 * bcache.c (bcache::expand_hash_table): Update.
3270 (bcache::insert): Update.
3271 (bcache::hash): New.
3272 (bcache::compare): Update comment and parameter names.
3273 * gdbtypes.c (types_deeply_equal): Update.
3274 * psymtab.h (struct psymbol_bcache): New struct.
3275 (class psymtab_storage) <psymtab_storage>: Make default.
3276 <psymbol_cache>: Change type to psymbol_bcache.
3277 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3278 (psymbol_hash): Change to...
3279 (psymbol_bcache::hash): ... this.
3280 (psymbol_compare): Change to...
3281 (psymbol_bcache::compare): ... this.
3282
3283 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3286 checking for initial lwp.
3287
3288 2020-09-14 Tom Tromey <tromey@adacore.com>
3289
3290 * m68k-tdep.c (m68k_extract_return_value): Use
3291 pointer_result_regnum.
3292 (m68k_store_return_value): Likewise.
3293 (m68k_reg_struct_return_p): Handle vectors and arrays.
3294 (m68k_return_value): Handle arrays.
3295 (m68k_svr4_return_value): Fix single-element aggregate handling.
3296 Handle long double. Adjust for embedded ABI.
3297 (m68k_svr4_init_abi): Set pointer_result_regnum.
3298 (m68k_embedded_init_abi): New function.
3299 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3300 (m68k_osabi_sniffer): New function.
3301 (_initialize_m68k_tdep): Register osabi sniffer.
3302 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3303 member.
3304
3305 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3308 with gdb::unique_xmalloc_ptr<char>.
3309
3310 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * xml-support.h (xml_fetch_another): Change type to be a
3313 function_view.
3314 (xml_process_xincludes): Remove baton parameter.
3315 (xml_fetch_content_from_file): Change baton parameter to
3316 dirname.
3317 * xml-support.c (struct xinclude_parsing_data)
3318 <xinclude_parsing_data>: Remove baton parameter.
3319 <fetcher_baton>: Remove.
3320 (xinclude_start_include): Adjust.
3321 (xml_process_xincludes): Adjust.
3322 (xml_fetch_content_from_file): Replace baton parameter with
3323 dirname.
3324 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3325 (xml_init_syscalls_info): Use a lambda.
3326 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3327 (file_read_description_xml): Use a lambda.
3328 (fetch_available_features_from_target): Change baton parameter
3329 to target_ops.
3330 (target_read_description_xml): Use a lambda.
3331 (target_fetch_description_xml): Use a lambda.
3332 (string_read_description_xml): Update.
3333
3334 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3335
3336 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3337 uses with type::endianity_is_not_default.
3338
3339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * gdbtypes.h (struct type) <endianity_is_not_default,
3342 set_endianity_is_not_default>: New methods.
3343 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3344 type::endianity_is_not_default, change all write call sites to
3345 use type::set_endianity_is_not_default.
3346
3347 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3350 uses with type::is_fixed_instance.
3351
3352 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * gdbtypes.h (struct type) <is_fixed_instance,
3355 set_is_fixed_instance>: New methods.
3356 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3357 write call sites to use type::set_is_fixed_instance.
3358
3359 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3362 uses with type::is_gnu_ifunc.
3363
3364 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3365
3366 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3367 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3368 use type::set_is_gnu_ifunc.
3369
3370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3373 uses with type::stub_is_supported.
3374
3375 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3378 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3379 use type::set_stub_is_supported.
3380
3381 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3384 uses with type::is_vector.
3385
3386 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3387
3388 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3389 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3390 use type::set_is_vector.
3391
3392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3395 uses with type::has_varargs.
3396
3397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3400 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3401 use type::set_has_varargs.
3402
3403 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3404
3405 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3406 uses with type::is_prototyped.
3407
3408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3411 New methods.
3412 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3413 call sites to use type::set_is_prototyped.
3414
3415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3418 uses with type::target_is_stub.
3419
3420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3423 New methods.
3424 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3425 sites to use type::set_target_is_stub.
3426
3427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * gdbtypes.h (TYPE_STUB): Remove, replace all
3430 uses with type::is_stub.
3431
3432 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3435 (TYPE_STUB): Use type::is_stub, change all write call sites to
3436 use type::set_is_stub.
3437
3438 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3441 type::has_no_signedness.
3442
3443 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * gdbtypes.h (struct type) <has_no_signedness,
3446 set_has_no_signedness>: New methods.
3447 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3448 call sites to use type::set_has_no_signedness.
3449
3450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3451
3452 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3453 type::is_unsigned.
3454
3455 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3456
3457 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3458 methods.
3459 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3460 sites to use type::set_is_unsigned.
3461
3462 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3463 Adam Renquinha <arenquinha@cimeq.qc.ca>
3464
3465 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3466 pointer and stack frame offset when unwinding.
3467
3468 2020-09-13 Pedro Alves <pedro@palves.net>
3469
3470 * NEWS: Document "-break-insert --qualified".
3471 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3472
3473 2020-09-13 Pedro Alves <pedro@palves.net>
3474
3475 * linespec.c (classify_mtype, compare_msyms): Delete.
3476 (search_minsyms_for_name): Remove classification logic. Instead
3477 filter out trampoline symbols if we also found an external
3478 function of the same name.
3479
3480 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3481
3482 * NEWS: Create a new section for the next release branch.
3483 Rename the section of the current branch, now that it has
3484 been cut.
3485
3486 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3487
3488 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3489 * version.in: Bump version to 11.0.50.DATE-git.
3490
3491 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3492
3493 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3494
3495 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3496 Felix Willgerodt <Felix.Willgerodt@intel.com>
3497
3498 * gdbarch.sh: Added bfloat16 type.
3499 * gdbarch.c: Regenerated.
3500 * gdbarch.h: Regenerated.
3501 * gdbtypes.c (floatformats_bfloat16): New struct.
3502 (gdbtypes_post_init): Add builtin_bfloat16.
3503 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3504 (floatformats_bfloat16): New struct.
3505 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3506 (i386_ymm_type): Add field "v16_bfloat16"
3507 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3508 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3509 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3510 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3511 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3512 * features/i386/64bit-avx512.c: Regenerated.
3513 * features/i386/64bit-sse.xml: Add bfloat16 type.
3514 * features/i386/64bit-sse.c: Regenerated.
3515
3516 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3517
3518 * i386-tdep.c (i386_zmm_type): Fix field names.
3519 (i386_ymm_type): Fix field names.
3520
3521 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522
3523 * breakpoint.c: Fix typo in the help message of the
3524 "set breakpoint condition-evaluation" command.
3525
3526 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3527
3528 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3529 * (nbsd_nat_target::pid_to_exec_file)
3530 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3531 (nbsd_nat_target::post_startup_inferior)
3532 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3533 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3534 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3535 * (nbsd_thread_lister): Remove.
3536
3537 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3538
3539 * fork-inferior.c (startup_inferior): Avoid double free.
3540
3541 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3542
3543 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3544 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3545
3546 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3547
3548 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3549 * netbsd-nat.c: Include <sys/ptrace.h>.
3550 * (netbsd_nat::enable_proc_events): Add.
3551
3552 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3553
3554 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3555 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3556 (netbsd_nat::for_each_thread): Add.
3557 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3558 "gdbsupport/common-debug.h".
3559 * (netbsd_nat::netbsd_thread_lister)
3560 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3561 (netbsd_nat::for_each_thread): Add.
3562
3563 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3564
3565 * netbsd-nat.h: Include <unistd.h>.
3566 * (netbsd_nat::pid_to_exec_file): Add.
3567 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3568 * (netbsd_nat::pid_to_exec_file) Add.
3569
3570 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3571
3572 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3573
3574 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3575
3576 * netbsd-nat.h: New file.
3577 * netbsd-nat.c: Likewise.
3578
3579 2020-09-09 Tom Tromey <tromey@adacore.com>
3580
3581 * ada-lang.c (remove_extra_symbols): Do not increment when
3582 removing an element
3583
3584 2020-09-08 Tom Tromey <tromey@adacore.com>
3585
3586 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3587
3588 2020-09-08 Tom Tromey <tromey@adacore.com>
3589
3590 PR win32/25302:
3591 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3592 (gdb_bfd_init_data): New function.
3593 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3594
3595 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3596
3597 * infrun.c (fetch_inferior_event): Use
3598 `switch_to_target_no_thread` to switch the target.
3599
3600 2020-09-06 Tom Tromey <tom@tromey.com>
3601
3602 * symfile.h (dwarf2_free_objfile): Don't declare.
3603
3604 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3605
3606 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3607 to match 16 byte real/complex type generated by Flang compiler.
3608
3609 2020-09-03 Tom de Vries <tdevries@suse.de>
3610
3611 PR breakpoint/26546
3612 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3613 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3614
3615 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 * maint.c (index_digits): New function.
3618 (struct maint_print_section_data): Remove.
3619 (print_bfd_section_info): Remove print_data parameter, add arg
3620 and index_digits.
3621 (print_objfile_section_info): Likewise.
3622 (print_bfd_section_info_maybe_relocated): Likewise (plus
3623 objfile).
3624 (maintenance_info_sections): Adjust calls.
3625
3626 2020-09-02 Tom Tromey <tromey@adacore.com>
3627
3628 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3629 for null pointers.
3630 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3631
3632 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * bcache.h (struct bcache) <insert>: Change type of `added` to
3635 pointer to bool.
3636 * bcache.c (bcache::insert): Likewise.
3637 * gdbtypes.c (check_types_worklist): Adjust.
3638 * psymtab.c (add_psymbol_to_bcache): Adjust.
3639
3640 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3641
3642 * corelow.c (unordered_set): Include.
3643 (class core_target): Add field 'm_core_unavailable_mappings'.
3644 (core_target::build_file_mappings): Print only one warning
3645 per inaccessible file. Add unavailable/broken mappings
3646 to m_core_unavailable_mappings.
3647 (core_target::xfer_partial): Call...
3648 (core_target::xfer_memory_via_mappings): New method.
3649
3650 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3653 type to bool.
3654
3655 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 * dwarf2/read.c (struct field_info): Fix indentation.
3658
3659 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3662 ordering in comment.
3663 * frame.c (frame_id_eq): Fix indentation.
3664
3665 2020-08-31 Scott Linder <scott@scottlinder.com>
3666 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3669 inline frame ids in outer frame.
3670
3671 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3672
3673 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3674 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3675 (outer_frame_id): Use FID_STACK_OUTER instead of
3676 FID_STACK_INVALID.
3677 (frame_id_p): Don't check for outer_frame_id.
3678
3679 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3682 regnum/frame in value. Call allocate_value_lazy.
3683 * frame.c (frame_unwind_register_value): Use
3684 val_print_not_saved.
3685
3686 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3687
3688 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3689
3690 2020-08-29 Pedro Alves <pedro@palves.net>
3691
3692 * progspace.c (print_program_space): Use all_inferiors. Switch to
3693 the inferior before calling target_pid_to_str.
3694
3695 2020-08-28 Tom Tromey <tom@tromey.com>
3696
3697 * xcoffread.c (xcoff_end_psymtab): Update comment.
3698 * dbxread.c (dbx_end_psymtab): Update comment.
3699
3700 2020-08-28 Tom de Vries <tdevries@suse.de>
3701
3702 PR breakpoint/26544
3703 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3704 event_location.
3705 (create_breakpoint): Same.
3706 (base_breakpoint_decode_location): Same.
3707 (bkpt_create_sals_from_location): Same.
3708 (bkpt_decode_location): Same.
3709 (bkpt_probe_create_sals_from_location): Same.
3710 (bkpt_probe_decode_location): Same.
3711 (tracepoint_create_sals_from_location): Same.
3712 (tracepoint_decode_location): Same.
3713 (tracepoint_probe_decode_location): Same.
3714 (strace_marker_create_sals_from_location): Same.
3715 (strace_marker_decode_location): Same.
3716 (create_sals_from_location_default): Same.
3717 (decode_location_default): Same.
3718 * breakpoint.h (struct breakpoint_ops): Same.
3719 (create_breakpoint): Same.
3720 * linespec.h (decode_line_full): Same.
3721 * linespec.c (decode_line_full): Same. Throw error if
3722 result.size () == 0.
3723
3724 2020-08-27 Pedro Alves <pedro@palves.net>
3725
3726 PR gdb/26524
3727 * breakpoint.c (until_break_fsm) <location_breakpoint,
3728 caller_breakpoint>: Delete fields.
3729 <breakpoints>: New field.
3730 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3731 two individual breakpoints.
3732 (until_break_fsm::should_stop): Loop over breakpoints in the
3733 breakpoint vector.
3734 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3735 vector.
3736 (until_break_command): Handle location expanding into multiple
3737 sals.
3738
3739 2020-08-27 Pedro Alves <pedro@palves.net>
3740
3741 PR gdb/26523
3742 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3743 bp_until breakpoints user-specified locations. Update intro
3744 comment.
3745
3746 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3747
3748 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3749 gdb_bfd_sections): New.
3750 * maint.c (print_bfd_section_info): Change param type to
3751 maint_print_section_data.
3752 (print_objfile_section_info): Likewise.
3753 (print_bfd_section_info_maybe_relocated): Likewise.
3754 (maintenance_info_sections): Use gdb_bfd_sections.
3755
3756 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3757
3758 * MAINTAINERS: Add ARC target and maintainer.
3759
3760 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3761
3762 * configure.tgt: ARC support for GNU/Linux.
3763 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3764 * arc-linux-tdep.c: New file.
3765 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3766 * arc-tdep.c (arc_write_pc): Use it.
3767
3768 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3769
3770 * arc-tdep.c (arc_check_for_hardware_loop): New.
3771 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3772
3773 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3774
3775 * arc-tdep.h: Include "gdbarch.h".
3776
3777 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3778
3779 * arch/arc.h
3780 (arc_gdbarch_features): New class to stir the selection of target XML.
3781 (arc_create_target_description): Use FEATURES to choose XML target.
3782 (arc_lookup_target_description): Use arc_create_target_description
3783 to create _new_ target descriptions or return the already created
3784 ones if the FEATURES is the same.
3785 * arch/arc.c: Implementation of prototypes described above.
3786 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3787 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3788 * arc-tdep.c (*_feature_name): Make feature names consistent.
3789 (arc_register_feature): A new struct to hold information about
3790 registers of a particular target/feature.
3791 (arc_check_tdesc_feature): Check if XML provides registers in
3792 compliance with ARC_REGISTER_FEATURE structs.
3793 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3794 (determine_*_reg_feature_set): Which feature name to look for.
3795 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3796 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3797 to expected ISA enums to be used in arc_gdbarch_features structs.
3798 * features/Makefile (FEATURE_XMLFILES): Add new files.
3799 * gdb/features/arc/v1-aux.c: New file.
3800 * gdb/features/arc/v1-aux.xml: Likewise.
3801 * gdb/features/arc/v1-core.c: Likewise.
3802 * gdb/features/arc/v1-core.xml: Likewise.
3803 * gdb/features/arc/v2-aux.c: Likewise.
3804 * gdb/features/arc/v2-aux.xml: Likewise.
3805 * gdb/features/arc/v2-core.c: Likewise.
3806 * gdb/features/arc/v2-core.xml: Likewise.
3807 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3808
3809 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3810 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 PR m2/26372
3813 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3814 an assert. Remove single element array indexing pattern as the
3815 MULTI_SUBSCRIPT support will handle this case too.
3816
3817 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3818
3819 * value.h (valprint_check_validity): Move declaration from
3820 here...
3821 * valprint.h (valprint_check_validity): ... to here.
3822
3823 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * debug.h: New file.
3826 * debug.c (debug_prefixed_vprintf): New function.
3827 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3828 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3829
3830 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * infrun.h (infrun_debug_printf_1): New function declaration.
3833 (infrun_debug_printf): New macro.
3834 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3835 throughout.
3836 (infrun_debug_printf): New function.
3837 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3838 (handle_jit_event): Likewise.
3839
3840 2020-08-21 Mark Wielaard <mark@klomp.org>
3841
3842 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3843
3844 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * frame.c (enum class frame_id_status): New.
3847 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3848 (fprintf_frame): Update.
3849 (compute_frame_id): Set frame id status to "computing" on entry.
3850 Set it back to "not_computed" on failure and to "computed" on
3851 success.
3852 (get_frame_id): Assert the frame id is not being computed.
3853 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3854 (create_new_frame): Likewise.
3855 (frame_cleanup_after_sniffer): Update assert.
3856
3857 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * regcache.c (pid_ptid_regcache_map): New type.
3860 (target_ptid_regcache_map): Remove.
3861 (target_pid_ptid_regcache_map): New type.
3862 (regcaches): Change type to target_pid_ptid_regcache_map.
3863 (get_thread_arch_aspace_regcache): Update.
3864 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3865 case.
3866 (regcaches_size): Update.
3867 (regcache_count): Update.
3868 (registers_changed_ptid_target_pid_test): New.
3869 (_initialize_regcache): Register new test.
3870
3871 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3872
3873 * regcache.c (regcache_count): New.
3874 (struct regcache_test_data): New.
3875 (regcache_test_data_up): New.
3876 (populate_regcaches_for_test): New.
3877 (regcaches_test): Remove.
3878 (get_thread_arch_aspace_regcache_test): New.
3879 (registers_changed_ptid_all_test): New.
3880 (registers_changed_ptid_target_test): New.
3881 (registers_changed_ptid_target_ptid_test): New.
3882 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3883 (_initialize_regcache): Register new tests.
3884
3885 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3888 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3889 gdbarch and aspace parameter. Use current inferior's aspace.
3890 Validate regcache's arch value.
3891 (regcaches_test): Update.
3892
3893 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3894
3895 * regcache.c (regcaches_test): Call registers_changed.
3896
3897 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3898
3899 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3900
3901 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3902
3903 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3904 to find the end of prologue for flang compiled binaries.
3905 * arm-tdep.c (arm_skip_prologue): Likewise.
3906 * i386-tdep.c (i386_skip_prologue): Likewise.
3907 * producer.c (producer_is_llvm): New function.
3908 (producer_parsing_tests): Added new tests for clang/flang.
3909 * producer.h (producer_is_llvm): New declaration.
3910
3911 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * linux-nat.c (linux_nat_debug_printf): New function.
3914 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3915
3916 2020-08-18 Aaron Merey <amerey@redhat.com>
3917
3918 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3919 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3920 (CLIBS): Add DEBUGINFOD_LIBS.
3921
3922 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3923
3924 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3925 'gdbarch_num_regs'.
3926
3927 2020-08-17 Tom Tromey <tromey@adacore.com>
3928
3929 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3930 ada_get_decoded_value returns NULL.
3931
3932 2020-08-17 Tom Tromey <tromey@adacore.com>
3933
3934 * python/py-inferior.c (infpy_search_memory): Use
3935 gdb_py_object_from_ulongest.
3936 * python/py-infevents.c (create_inferior_call_event_object)
3937 (create_memory_changed_event_object): Use
3938 gdb_py_object_from_ulongest.
3939 * python/py-linetable.c (ltpy_entry_get_pc): Use
3940 gdb_py_object_from_ulongest.
3941
3942 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3943
3944 * loc.c (class symbol_needs_eval_context): Fix indentation.
3945
3946 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3949 bool.
3950
3951 2020-08-17 Tom de Vries <tdevries@suse.de>
3952
3953 PR gdb/26393
3954 * gdbtypes.c (dump_dynamic_prop): New function.
3955 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3956
3957 2020-08-15 Tom de Vries <tdevries@suse.de>
3958
3959 PR backtrace/26390
3960 * stack.c (print_frame_args): Temporarily set the selected
3961 frame to FRAME while printing the frame's arguments.
3962
3963 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3964
3965 PR breakpoints/26385
3966 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3967 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3968
3969 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3970
3971 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3972 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3973 and >= to check return value instead of == -1 and != -1.
3974
3975 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3976
3977 * utils.h (class gdb_argv) <as_array_view>: New method.
3978 * utils.c (gdb_argv_as_array_view_test): New.
3979 (_initialize_utils): Register selftest.
3980 * maint.c (maintenance_selftest): Use the new method.
3981
3982 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3983
3984 * target.h (supports_dumpcore, dumpcore): New
3985 function declarations.
3986 * target.c (supports_dumpcore, dumpcore): New
3987 functions.
3988 * target-delegates.c: Rebuild.
3989 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3990 and target_dumpcore ().
3991
3992 2020-08-13 Aaron Merey <amerey@redhat.com>
3993
3994 * debuginfod-support.c: Replace global variables with user_data.
3995
3996 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * maint.c (maintenance_selftest): Split args and pass array_view
3999 to run_tests.
4000
4001 2020-08-12 Luis Machado <luis.machado@linaro.org>
4002
4003 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4004 type's length.
4005 Use %s and pulongest to print the length.
4006
4007 2020-08-12 Pedro Alves <palves@redhat.com>
4008
4009 * NEWS: Move "Multi-target debugging support" item to the
4010 "Changes since GDB 9" section.
4011
4012 2020-08-12 Pedro Alves <palves@redhat.com>
4013
4014 PR gdb/26336
4015 * progspace.c (program_space::remove_objfile): Invalidate the
4016 frame cache.
4017
4018 2020-08-11 Tom de Vries <tdevries@suse.de>
4019
4020 * MAINTAINERS: Mark ms1 as deleted.
4021
4022 2020-08-10 Luis Machado <luis.machado@linaro.org>
4023
4024 PR gdb/26310
4025
4026 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4027 act accordingly.
4028 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4029 movz/str/stur/stp skipping behavior.
4030
4031 2020-08-10 Luis Machado <luis.machado@linaro.org>
4032
4033 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4034 struct user_sve_header instead of struct sve_context.
4035
4036 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4037
4038 * read.h (dwarf2_fetch_die_loc_sect_off,
4039 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4040 `void *` parameter with function_view.
4041 * read.c (dwarf2_fetch_die_loc_sect_off,
4042 dwarf2_fetch_die_loc_cu_off): Likewise.
4043 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4044 (per_cu_dwarf_call): Adjust.
4045 (get_frame_address_in_block_wrapper): Remove.
4046 (indirect_synthetic_pointer): Adjust.
4047 (get_ax_pc): Remove.
4048 (dwarf2_compile_expr_to_ax): Adjust.
4049
4050 2020-08-08 Tom de Vries <tdevries@suse.de>
4051
4052 PR build/26344
4053 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4054 constructor.
4055 * regcache.c (get_thread_arch_aspace_regcache): Same.
4056
4057 2020-08-07 Tom Tromey <tromey@adacore.com>
4058
4059 * ravenscar-thread.c
4060 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4061 New method.
4062 (ravenscar_thread_target::wait): Check
4063 runtime_initialized.
4064 (ravenscar_thread_target::prepare_to_store)
4065 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4066 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4067 (ravenscar_thread_target::stopped_by_watchpoint)
4068 (ravenscar_thread_target::stopped_data_address)
4069 (ravenscar_thread_target::core_of_thread): Use
4070 scoped_restore_current_thread and
4071 set_base_thread_from_ravenscar_task.
4072
4073 2020-08-07 Tom Tromey <tromey@adacore.com>
4074
4075 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4076
4077 2020-08-07 Tom Tromey <tromey@adacore.com>
4078
4079 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4080 update_inferior_ptid before update_thread_list.
4081 (temporarily_change_regcache_ptid): New class.
4082 (ravenscar_thread_target::fetch_registers)
4083 (ravenscar_thread_target::store_registers)
4084 (ravenscar_thread_target::prepare_to_store): Use base thread when
4085 forwarding operation.
4086
4087 2020-08-07 Tom Tromey <tromey@adacore.com>
4088
4089 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4090 "is_pid" case.
4091
4092 2020-08-07 Tom Tromey <tromey@adacore.com>
4093
4094 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4095 New methods.
4096 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4097 first.
4098 (ravenscar_thread_target::add_thread): Rename from
4099 ravenscar_add_thread.
4100 (ravenscar_thread_target::update_thread_list): Use a lambda.
4101 (ravenscar_thread_target::xfer_partial): New method.
4102
4103 2020-08-07 Tom Tromey <tromey@adacore.com>
4104
4105 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4106 gdb::function_view.
4107 (iterate_over_live_ada_tasks): Change type of argument.
4108 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4109 of argument.
4110
4111 2020-08-07 Tom Tromey <tromey@adacore.com>
4112
4113 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4114 Remove.
4115 (ravenscar_thread_target::extra_thread_info): Remove.
4116 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4117 defer to target beneath for non-Ravenscar threads.
4118
4119 2020-08-07 Tom Tromey <tromey@adacore.com>
4120
4121 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4122 get_base_thread_from_ravenscar_task>: Now methods.
4123 <m_cpu_map>: New member.
4124 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4125 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4126 (ravenscar_thread_target::task_is_currently_active): Update.
4127 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4128 Now a method.
4129 (ravenscar_thread_target::add_active_thread): Put initial thread
4130 into the m_cpu_map.
4131
4132 2020-08-07 Tom Tromey <tromey@adacore.com>
4133
4134 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4135 event_ptid.
4136
4137 2020-08-07 Tom Tromey <tromey@adacore.com>
4138
4139 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4140 runtime_initialized.
4141
4142 2020-08-07 Tom Tromey <tromey@adacore.com>
4143
4144 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4145 add_active_thread.
4146 (ravenscar_thread_target::add_active_thread): Now public.
4147 (ravenscar_inferior_created): Call add_active_thread after pushing
4148 the target.
4149
4150 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * regcache.c (ptid_regcache_map): New type.
4153 (target_ptid_regcache_map): New type.
4154 (regcaches): Change type to target_ptid_regcache_map.
4155 (get_thread_arch_aspace_regcache): Update to regcaches' new
4156 type.
4157 (regcache_thread_ptid_changed): Likewise.
4158 (registers_changed_ptid): Likewise.
4159 (regcaches_size): Likewise.
4160 (regcaches_test): Update.
4161 (regcache_thread_ptid_changed): Update.
4162 * regcache.h (regcache_up): New type.
4163 * gdbsupport/ptid.h (hash_ptid): New struct.
4164
4165 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4166
4167 * observable.h (thread_ptid_changed): Add parameter
4168 `process_stratum_target *`.
4169 * infrun.c (infrun_thread_ptid_changed): Add parameter
4170 `process_stratum_target *` and use it.
4171 (selftests): New namespace.
4172 (infrun_thread_ptid_changed): New function.
4173 (_initialize_infrun): Register selftest.
4174 * regcache.c (regcache_thread_ptid_changed): Add parameter
4175 `process_stratum_target *` and use it.
4176 (regcache_thread_ptid_changed): New function.
4177 (_initialize_regcache): Register selftest.
4178 * thread.c (thread_change_ptid): Pass target to
4179 thread_ptid_changed observable.
4180
4181 2020-08-06 Caroline Tice <cmtice@google.com>
4182
4183 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4184 (struct dwp_sections): Update field comments. Add loclists and
4185 rnglists fields.
4186 (struct virtual_v2_dwo_sections): Rename struct to
4187 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4188 size & offset fields for loclists and rnglists.
4189 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4190 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4191 skipping dummy type units.
4192 (create_dwp_hash_table): Update the large comment above the function to
4193 discuss Version 5 DWP files as well, with references. Update all the
4194 version checks in the function to check for version 5 as well. Add new
4195 section at the end to create dwp hash table for version 5.
4196 (create_dwp_v2_section): Rename function to
4197 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4198 Add V5 to error message text.
4199 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4200 into calls to create_dwp_v2_or_v5_section.
4201 (create_dwo_unit_in_dwp_v5): New function.
4202 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4203 check for version2; add else clause to handle version 5.
4204 (open_and_init_dwo_file): Add code to check dwarf version & only call
4205 create_debug_types_hash_table (with sections.types) if version is not 5;
4206 else call create_debug_type_hash_table, with sections.info.
4207 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4208 version 5.
4209 (dwarf2_locate_v5_dwp_sections): New function.
4210 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4211 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4212
4213 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4214
4215 * regcache.h (class regcache): Remove friend
4216 registers_changed_ptid.
4217 <regcache_thread_ptid_changed>: Remove.
4218 <regcaches>: Remove.
4219 * regcache.c (regcache::regcaches): Rename to...
4220 (regcaches): ... this. Make static.
4221 (get_thread_arch_aspace_regcache): Update.
4222 (regcache::regcache_thread_ptid_changed): Rename to...
4223 (regcache_thread_ptid_changed): ... this. Update.
4224 (class regcache_access): Remove.
4225 (regcaches_test): Update.
4226 (_initialize_regcache): Update.
4227 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4228 <forward_list>.
4229
4230 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * regcache.h (class regcache) <current_regcache>: Rename to...
4233 <regcaches>: ... this. Move doc here.
4234 * regcache.c (regcache::current_regcache) Rename to...
4235 (regcache::regcaches): ... this. Move doc to header.
4236 (get_thread_arch_aspace_regcache): Update.
4237 (regcache::regcache_thread_ptid_changed): Update.
4238 (registers_changed_ptid): Update.
4239 (class regcache_access) <current_regcache_size>: Rename to...
4240 <regcaches_size>: ... this.
4241 (current_regcache_test): Rename to...
4242 (regcaches_test): ... this.
4243 (_initialize_regcache): Update.
4244
4245 2020-08-06 Victor Collod <vcollod@nvidia.com>
4246
4247 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4248
4249 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4250
4251 * corelow.c (core_target::build_file_mappings): Don't output
4252 null pathname in warning.
4253
4254 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4257 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4258 gdb.dwarf2/dw2-single-line-discriminators.exp,
4259 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4260
4261 2020-08-05 Tom Tromey <tromey@adacore.com>
4262
4263 PR rust/26197:
4264 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4265 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4266 Fix off-by-one and type size errors in ordinary case.
4267
4268 2020-08-05 Tom de Vries <tdevries@suse.de>
4269
4270 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4271 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4272
4273 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * frame.h (frame_id_p): Return bool.
4276 (frame_id_artificial_p): Return bool.
4277 (frame_id_eq): Return bool.
4278 (has_stack_frames): Return bool.
4279 (get_selected_frame): Fix typo in comment.
4280 (get_frame_pc_if_available): Return bool.
4281 (get_frame_address_in_block_if_available): Return bool.
4282 (get_frame_func_if_available): Return bool.
4283 (read_frame_register_unsigned): Return bool.
4284 (get_frame_register_bytes): Return bool.
4285 (safe_frame_unwind_memory): Return bool.
4286 (deprecated_frame_register_read): Return bool.
4287 (frame_unwinder_is): Return bool.
4288 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4289 bool.
4290 <this_id::p>: Likewise.
4291 <prev_p>: Likewise.
4292 (frame_stash_add): Return bool.
4293 (get_frame_id): Use bool.
4294 (frame_id_build_special) Use bool.
4295 (frame_id_build_unavailable_stack): Use bool.
4296 (frame_id_build): Use bool.
4297 (frame_id_p): Return bool, use true/false instead of 1/0.
4298 (frame_id_artificial_p): Likewise.
4299 (frame_id_eq): Likewise.
4300 (frame_id_inner): Likewise.
4301 (get_frame_func_if_available): Likewise.
4302 (read_frame_register_unsigned): Likewise.
4303 (deprecated_frame_register_read): Likewise.
4304 (get_frame_register_bytes): Likewise.
4305 (has_stack_frames): Likewise.
4306 (inside_main_func): Likewise.
4307 (inside_entry_func): Likewise.
4308 (get_frame_pc_if_available): Likewise.
4309 (get_frame_address_in_block_if_available): Likewise.
4310 (frame_unwinder_is): Likewise.
4311 (safe_frame_unwind_memory): Likewise.
4312 (frame_unwind_arch): Likewise.
4313
4314 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4317 type to cached_copy_status.
4318 (fprintf_frame): Adjust.
4319 (get_frame_func_if_available): Adjust.
4320 (frame_cleanup_after_sniffer): Adjust.
4321
4322 2020-08-04 Mark Wielaard <mark@klomp.org>
4323
4324 * MAINTAINERS (Write After Approval): Update email address.
4325
4326 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4327
4328 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4329 dynamic_prop::const_val.
4330
4331 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4332
4333 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4334 dynamic_prop::kind.
4335
4336 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4337
4338 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4339
4340 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4341
4342 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4343
4344 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4345 Jose E. Marchesi <jose.marchesi@oracle.com>
4346
4347 * configure.tgt: Add entry for bpf-*-*.
4348 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4349 (ALLDEPFILES): Add bpf-tdep.c.
4350 * bpf-tdep.c: New file.
4351 * MAINTAINERS: Add bpf target and maintainer.
4352 * NEWS: Mention the support for the new target.
4353
4354 2020-08-04 Tom de Vries <tdevries@suse.de>
4355
4356 PR symtab/23270
4357 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4358 Error.
4359
4360 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4361
4362 * syscalls/freebsd.xml: Regenerate.
4363
4364 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4365
4366 * syscalls/update-freebsd.sh: Fix usage and year range.
4367
4368 2020-08-03 Tom de Vries <tdevries@suse.de>
4369
4370 PR symtab/26333
4371 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4372 DW_LNE_lo_user/DW_LNE_hi_user range.
4373
4374 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4375
4376 PR ada/26318
4377 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4378 kind.
4379
4380 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4381
4382 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4383
4384 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 * breakpoint.c (set_breakpoint_condition): Update the condition
4387 expressions after checking that the input condition string parses
4388 successfully and does not contain junk at the end.
4389
4390 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4391
4392 * breakpoint.c (set_breakpoint_condition): Update the
4393 condition string after parsing the new condition successfully.
4394
4395 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4396
4397 * proc-api.c (_STRUCTURED_PROC): Don't define.
4398 * proc-events.c: Likewise.
4399 * proc-flags.c: Likewise.
4400 * proc-why.c: Likewise.
4401 * procfs.c: Likewise.
4402
4403 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4404 * configure, config.in: Regenerate.
4405
4406 2020-07-30 Tom de Vries <tdevries@suse.de>
4407
4408 PR build/26320
4409 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4410 m_red/m_green/m_blue in a union.
4411
4412 2020-07-29 Tom de Vries <tdevries@suse.de>
4413
4414 PR tdep/26280
4415 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4416
4417 2020-07-28 Tom Tromey <tromey@adacore.com>
4418
4419 PR symtab/26270:
4420 * symtab.h (find_pc_partial_function_sym): Declare.
4421 * cli/cli-cmds.c (disassemble_command): Use
4422 find_pc_partial_function_sym. Check asm_demangle.
4423 * blockframe.c (cache_pc_function_sym): New global.
4424 (cache_pc_function_name): Remove.
4425 (clear_pc_function_cache): Update.
4426 (find_pc_partial_function_sym): New function, from
4427 find_pc_partial_function.
4428 (find_pc_partial_function): Rewrite using
4429 find_pc_partial_function_sym.
4430
4431 2020-07-28 Tom Tromey <tromey@adacore.com>
4432
4433 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4434 help. Add usage.
4435
4436 2020-07-28 Tom Tromey <tromey@adacore.com>
4437
4438 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4439 <DW_OP_GNU_variable_value>: Cast to address type.
4440
4441 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4442
4443 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4444 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4445 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4446 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4447 (nbsd_get_siginfo_type): New.
4448 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4449 (_initialize_nbsd_tdep): New.
4450
4451 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4452
4453 PR binutils/26301
4454 * configure: Regenerated.
4455
4456 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4457
4458 PR binutils/26301
4459 * configure: Regenerated.
4460
4461 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * python/py-frame.c: Remove 'user-regs.h' include.
4464 (frapy_read_register): Rewrite to make use of
4465 gdbpy_parse_register_id.
4466 * python/py-registers.c (gdbpy_parse_register_id): New function,
4467 moved here from python/py-unwind.c. Updated the return type, and
4468 also accepts register descriptor objects.
4469 * python/py-unwind.c: Remove 'user-regs.h' include.
4470 (pyuw_parse_register_id): Moved to python/py-registers.c.
4471 (unwind_infopy_add_saved_register): Update to use
4472 gdbpy_parse_register_id.
4473 (pending_framepy_read_register): Likewise.
4474 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4475
4476 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * python/py-registers.c: Add 'user-regs.h' include.
4479 (register_descriptor_iter_find): New function.
4480 (register_descriptor_iterator_object_methods): New static global
4481 methods array.
4482 (register_descriptor_iterator_object_type): Add pointer to methods
4483 array.
4484
4485 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4486
4487 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4488 for all architectures on FreeBSD 11.3 and later.
4489
4490 2020-07-27 Tom Tromey <tromey@adacore.com>
4491
4492 * gcore.h (load_corefile): Don't declare.
4493
4494 2020-07-27 Tom de Vries <tdevries@suse.de>
4495
4496 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4497 * config.in: Regenerate.
4498 * configure: Regenerate.
4499
4500 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4501
4502 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4503 ws2tcpip.h. When checking whether socklen_t type is defined, use
4504 ws2tcpip.h if it is available and sys/socket.h isn't.
4505 * configure: Regenerate.
4506 * config.in: Regenerate.
4507
4508 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4509
4510 PR fortran/23051
4511 PR fortran/26139
4512 * valops.c (value_ind): Pass address to
4513 readjust_indirect_value_type.
4514 * value.c (readjust_indirect_value_type): Make parameter
4515 non-const, and add extra address parameter. Resolve original type
4516 before using it.
4517 * value.h (readjust_indirect_value_type): Update function
4518 signature and comment.
4519
4520 2020-07-25 Tom de Vries <tdevries@suse.de>
4521
4522 PR symtab/26243
4523 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4524 entries.
4525
4526 2020-07-24 Aaron Merey <amerey@redhat.com>
4527
4528 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4529 * configure: Rebuild.
4530
4531 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4532
4533 PR corefiles/26294
4534 * corelow.c (_initialize_corelow): Add period to help text
4535 for "maintenance print core-file-backed-mappings".
4536
4537 2020-07-23 Pedro Alves <pedro@palves.net>
4538
4539 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4540 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4541 meanwhile.
4542 * frame.c (frame_cache_generation, get_frame_cache_generation):
4543 New.
4544 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4545 (get_prev_frame_if_no_cycle): On exception, don't touch
4546 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4547 * frame.h (get_frame_cache_generation): Declare.
4548
4549 2020-07-23 Tom de Vries <tdevries@suse.de>
4550
4551 PR tui/26282
4552 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4553 New default constructor.
4554
4555 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4558 exclude non-statement entries.
4559
4560 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4561
4562 * NEWS (New commands): Mention new command
4563 "maintenance print core-file-backed-mappings".
4564
4565 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4566
4567 * corelow.c (gdbcmd.h): Include.
4568 (core_target::info_proc_mappings): New method.
4569 (get_current_core_target): New function.
4570 (maintenance_print_core_file_backed_mappings): New function.
4571 (_initialize_corelow): Add core-file-backed-mappings to
4572 "maint print" commands.
4573
4574 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4575
4576 * linux-tdep.c (dump_note_entry_p): New function.
4577 (linux_dump_mapping_p_ftype): New typedef.
4578 (linux_find_memory_regions_full): Add new parameter,
4579 should_dump_mapping_p.
4580 (linux_find_memory_regions): Adjust call to
4581 linux_find_memory_regions_full.
4582 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4583 call to linux_find_memory_regions_full.
4584
4585 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4586
4587 * corelow.c (solist.h, unordered_map): Include.
4588 (class core_target): Add field m_core_file_mappings and
4589 method build_file_mappings.
4590 (core_target::core_target): Call build_file_mappings.
4591 (core_target::~core_target): Free memory associated with
4592 m_core_file_mappings.
4593 (core_target::build_file_mappings): New method.
4594 (core_target::xfer_partial): Use m_core_file_mappings
4595 for memory transfers.
4596 * linux-tdep.c (linux_read_core_file_mappings): New
4597 function.
4598 (linux_core_info_proc_mappings): Rewrite to use
4599 linux_read_core_file_mappings.
4600 (linux_init_abi): Register linux_read_core_file_mappings.
4601
4602 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4603
4604 * arch-utils.c (default_read_core_file_mappings): New function.
4605 * arch-utils.c (default_read_core_file_mappings): Declare.
4606 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4607 * gdbarch.h, gdbarch.c: Regenerate.
4608
4609 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4610
4611 PR corefiles/25631
4612 * corelow.c (core_target:xfer_partial): Revise
4613 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4614 case after first checking the stratum beneath the core
4615 target.
4616 (has_all_memory): Return true.
4617 * target.c (raw_memory_xfer_partial): Revise comment
4618 regarding use of has_all_memory.
4619
4620 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4621
4622 * exec.h (section_table_xfer_memory): Revise declaration,
4623 replacing section name parameter with an optional callback
4624 predicate.
4625 * exec.c (section_table_xfer_memory): Likewise.
4626 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4627 of section_table_xfer_memory.
4628
4629 2020-07-22 Tom Tromey <tromey@adacore.com>
4630
4631 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4632 lookup_symbol_search_name.
4633
4634 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4637 redundant local variable.
4638 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4639 reference, not pointer, update code accordingly.
4640
4641 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4642 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4643
4644 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4645 * jit.c (jit_breakpoint_re_set_internal): Use the
4646 `skip_jit_symbol_lookup` field.
4647
4648 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4649 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4650
4651 * jit.c (jit_read_descriptor): Define the descriptor address once,
4652 use twice.
4653 (jit_breakpoint_deleted): Move the declaration of the loop variable
4654 `iter` into the loop header.
4655 (jit_breakpoint_re_set_internal): Move the declaration of the local
4656 variable `objf_data` to the first point of definition.
4657 (jit_event_handler): Move the declaration of local variables
4658 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4659 Rename `objf` to `jited`.
4660
4661 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4662
4663 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4664 Remove.
4665 * jit.c (get_jiter_objfile_data): Update.
4666
4667 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4668 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * jit.c (struct jit_program_space_data): Remove.
4671 (jit_program_space_key): Remove.
4672 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4673 stuff.
4674 (get_jit_program_space_data): Remove.
4675 (jit_breakpoint_deleted): Iterate on all of the program space's
4676 objfiles.
4677 (jit_inferior_init): Likewise.
4678 (jit_breakpoint_re_set_internal): Likewise. Also change return
4679 type to void.
4680 (jit_breakpoint_re_set): Pass current_program_space to
4681 jit_breakpoint_re_set_internal.
4682
4683 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4684
4685 * jit.h (struct jiter_objfile_data) <cached_code_address,
4686 jit_breakpoint>: Move to here from ...
4687 * jit.c (jit_program_space_data): ... here.
4688 (jiter_objfile_data::~jiter_objfile_data): Update.
4689 (jit_breakpoint_deleted): Update.
4690 (jit_breakpoint_re_set_internal): Update.
4691
4692 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4695 checks.
4696 (jit_read_descriptor): Remove NULL check.
4697 (jit_event_handler): Add an assertion.
4698
4699 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * jit.h (struct jit_objfile_data): Split into...
4702 (struct jiter_objfile_data): ... this ...
4703 (struct jited_objfile_data): ... and this.
4704 * objfiles.h (struct objfile) <jit_data>: Remove.
4705 <jiter_data, jited_data>: New fields.
4706 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4707 (jiter_objfile_data::~jiter_objfile_data): ... this.
4708 (get_jit_objfile_data): Rename to ...
4709 (get_jiter_objfile_data): ... this.
4710 (add_objfile_entry): Update.
4711 (jit_read_descriptor): Use get_jiter_objfile_data.
4712 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4713 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4714 (jit_inferior_exit_hook): Use objfile's jited_data field.
4715
4716 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 * jit.h: Forward-declare `struct minimal_symbol`.
4719 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4720 constructor, destructor, and an objfile* field.
4721 * jit.c (jit_objfile_data): Remove.
4722 (struct jit_objfile_data): Migrate from here to jit.h.
4723 (jit_objfile_data::~jit_objfile_data): New destructor
4724 implementation with code moved from free_objfile_data.
4725 (free_objfile_data): Delete.
4726 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4727 (jit_find_objf_with_entry_addr): Ditto.
4728 (jit_inferior_exit_hook): Ditto.
4729 (_initialize_jit): Remove the call to
4730 register_objfile_data_with_cleanup.
4731 * objfiles.h (struct objfile) <jit_data>: New field.
4732
4733 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4734
4735 * jit.h: Forward-declare `struct objfile`.
4736 (jit_event_handler): Add a second parameter, the JITer objfile.
4737 * jit.c (jit_read_descriptor): Change the signature to take the
4738 JITer objfile as an argument instead of the jit_program_space_data.
4739 (jit_inferior_init): Update the call to jit_read_descriptor.
4740 (jit_event_handler): Use the new JITer objfile argument when calling
4741 jit_read_descriptor.
4742 * breakpoint.c (handle_jit_event): Update the call to
4743 jit_event_handler to pass the JITer objfile.
4744
4745 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4746
4747 * gdbarch.c: Regenerate.
4748 * gdbarch.h: Regenerate.
4749 * gdbarch.sh (handle_segmentation_fault): Remove method.
4750 * infrun.c (handle_segmentation_fault): Remove.
4751 (print_signal_received_reason): Remove call to
4752 handle_segmentation_fault.
4753
4754 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4755
4756 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4757 Rename to sparc64_linux_report_signal_info and add siggnal
4758 argument.
4759 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4760 instead of sparc64_linux_handle_segmentation_fault.
4761
4762 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4763
4764 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4765 i386_linux_report_signal_info instead of
4766 i386_linux_handle_segmentation_fault.
4767 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4768 to i386_linux_report_signal_info and add siggnal argument.
4769 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4770 of i386_linux_handle_segmentation_fault.
4771 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4772 to i386_linux_report_signal_info and add siggnal argument.
4773
4774 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4775
4776 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4777 hook if present.
4778
4779 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4780
4781 * gdbarch.c: Regenerate.
4782 * gdbarch.h: Regenerate.
4783 * gdbarch.sh (report_signal_info): New method.
4784 * infrun.c (print_signal_received_reason): Invoke gdbarch
4785 report_signal_info hook if present.
4786
4787 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4788
4789 * python/py-registers.c : Add 'unordered_map' include.
4790 (gdbpy_new_reggroup): Renamed to...
4791 (gdbpy_get_reggroup): ...this. Update to only create register
4792 group descriptors when needed.
4793 (gdbpy_reggroup_iter_next): Update.
4794
4795 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4796
4797 * python/py-registers.c (gdbpy_register_object_data): New static
4798 global.
4799 (gdbpy_register_object_data_init): New function.
4800 (gdbpy_new_register_descriptor): Renamed to...
4801 (gdbpy_get_register_descriptor): ...this, and update to reuse
4802 existing register descriptors where possible.
4803 (gdbpy_register_descriptor_iter_next): Update.
4804 (gdbpy_initialize_registers): Register new gdbarch data.
4805
4806 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * linux-nat.c (stopped_pids): Make static.
4809
4810 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 PR ada/26235
4813 * gdbtypes.c (ada_discrete_type_low_bound,
4814 ada_discrete_type_high_bound): Handle undefined bounds.
4815
4816 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4817
4818 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4819 declaration.
4820 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4821 function.
4822
4823 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4824
4825 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4826 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4827 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4828 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4829 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4830 method.
4831
4832 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4833
4834 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4835 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4836 which are deprecated in Guile 3.0.
4837 * configure.ac (try_guile_versions): Add "guile-3.0".
4838 * configure (try_guile_versions): Regenerate.
4839 * NEWS: Update entry.
4840
4841 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4842 Doug Evans <dje@google.com>
4843
4844 PR gdb/21104
4845 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4846 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4847 USING_GUILE_BEFORE_2_2.
4848 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4849 Change type to 'scm_t_port_type *'.
4850 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4851 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4852 parameter and honor it. Update callers.
4853 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4854 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4855 functions.
4856 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4857 USING_GUILE_BEFORE_2_2.
4858 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4859 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4860 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4861 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4862 and 'SCM_PORT_TYPE'.
4863 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4864 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4865 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4866 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4867 [!USING_GUILE_BEFORE_2_2]: New functions.
4868 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4869 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4870 'gdbscm_memory_port_read'.
4871 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4872 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4873 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4874 function.
4875 (ioscm_init_memory_port): Remove.
4876 (ioscm_init_memory_port_stream): New function
4877 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4878 function.
4879 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4880 Return scm_from_uint (0).
4881 (gdbscm_set_memory_port_read_buffer_size_x)
4882 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4883 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4884 Return scm_from_uint (0).
4885 (gdbscm_set_memory_port_write_buffer_size_x)
4886 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4887 * configure.ac (try_guile_versions): Add "guile-2.2".
4888 * configure: Regenerate.
4889 * NEWS: Add entry.
4890
4891 2020-07-18 Tom Tromey <tom@tromey.com>
4892
4893 * linux-nat.c (linux_multi_process): Remove.
4894 (linux_nat_target::supports_multi_process): Return true.
4895
4896 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4899 (riscv_lookup_target_description): Return pointer out of
4900 unique_ptr.
4901 * target-descriptions.c (allocate_target_description): Add
4902 comment.
4903 (target_desc_deleter::operator()): Likewise.
4904 * target-descriptions.h (struct target_desc_deleter): Moved to
4905 gdbsupport/tdesc.h.
4906 (target_desc_up): Likewise.
4907
4908 2020-07-17 Tom Tromey <tromey@adacore.com>
4909
4910 * linux-nat.c (linux_nat_target::supports_non_stop)
4911 (linux_nat_target::always_non_stop_p): Use "true".
4912 (linux_nat_target::supports_disable_randomization): Use "true" and
4913 "false".
4914
4915 2020-07-16 Caroline Tice <cmtice@google.com>
4916
4917 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4918 (RNGLIST_HEADER_SIZE64): New constant definition.
4919 (struct dwop_section_names): Add rnglists_dwo.
4920 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4921 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4922 (struct dwo_sections): Add rnglists field.
4923 (read_attribut_reprocess): Add tag parameter.
4924 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4925 (cu_debug_rnglists_section): New function (decl & definition).
4926 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4927 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4928 die whose range is being checked; get rnglist section from
4929 cu_debug_rnglists_section, to get from either objfile or dwo file as
4930 appropriate. Add cases for DW_RLE_base_addressx,
4931 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4932 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4933 test inside if-condition and updating complaint message.
4934 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4935 dwarf2_rnglists_process.
4936 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4937 dwarf2_ranges_process.
4938 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4939 need_ranges_base and update comment appropriately. Also pass die tag
4940 to dwarf2_ranges_read.
4941 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4942 need_ranges_base and update comment appropriately. Also pass die tag
4943 to dwarf2_ranges_process.
4944 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4945 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4946 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4947 need_ranges_base and update comment appropriately. Also pass die tag
4948 to read_attribute_reprocess and dwarf2_ranges_read.
4949 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4950 and update function comment appropriately.
4951 (read_loclist_index): Call read_loclists_rnglists_header instead of
4952 read_loclist_header.
4953 (read_rnglist_index): New function.
4954 (read_attribute_reprocess): Add tag parameter. Add code for
4955 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4956 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4957
4958 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4959
4960 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4961 being resolved.
4962
4963 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * arch-utils.c (show_architecture): Update formatting of messages.
4966
4967 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbtypes.h (struct type) <bounds>: Handle array and string
4970 types.
4971 * ada-lang.c (assign_aggregate): Use type::bounds on
4972 array/string type.
4973 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4974 * c-varobj.c (c_number_of_children): Likewise.
4975 (c_describe_child): Likewise.
4976 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4977 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4978 (f_type_print_base): Likewise.
4979 * f-valprint.c (f77_array_offset_tbl): Likewise.
4980 (f77_get_upperbound): Likewise.
4981 (f77_print_array_1): Likewise.
4982 * guile/scm-type.c (gdbscm_type_range): Likewise.
4983 * m2-typeprint.c (m2_array): Likewise.
4984 (m2_is_long_set_of_type): Likewise.
4985 * m2-valprint.c (get_long_set_bounds): Likewise.
4986 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4987 * python/py-type.c (typy_range): Likewise.
4988 * rust-lang.c (rust_internal_print_type): Likewise.
4989 * type-stack.c (type_stack::follow_types): Likewise.
4990 * valarith.c (value_subscripted_rvalue): Likewise.
4991 * valops.c (value_cast): Likewise.
4992
4993 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4994
4995 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4996 callers to use the equivalent accessor methods.
4997
4998 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4999
5000 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5001 (struct type) <bit_stride>: New method.
5002 (TYPE_BIT_STRIDE): Remove.
5003 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5004
5005 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5006
5007 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5008 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5009 callers to use the equivalent accessor methods instead.
5010
5011 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5014 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5015 callers to use the equivalent accessor methods instead.
5016
5017 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5020 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5021 to use dynamic_prop::kind.
5022
5023 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5026 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5027 to get the bound property's kind and check against
5028 PROP_UNDEFINED.
5029
5030 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5033 all callers to use type::range_bounds followed by
5034 dynamic_prop::{low,high}.
5035
5036 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5037
5038 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5039 const_val, set_const_val, baton, set_locexpr, set_loclist,
5040 set_addr_offset, variant_parts, set_variant_parts,
5041 original_type, set_original_type>: New methods.
5042 <kind>: Rename to...
5043 <m_kind>: ... this. Update all users to use the new methods
5044 instead.
5045 <data>: Rename to...
5046 <m_data>: ... this. Update all users to use the new methods
5047 instead.
5048
5049 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.c (get_discrete_bounds): Return failure if
5052 the range type's bounds are not both defined and constant
5053 values.
5054 (get_array_bounds): Update comment. Remove undefined bound check.
5055
5056 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5059 the type::bounds method directly.
5060
5061 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5064 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5065 are used to set the range type's bounds to use set_bounds.
5066
5067 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5068
5069 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5070
5071 2020-07-10 Pedro Alves <pedro@palves.net>
5072
5073 * gdbthread.h (inferior_ref): Define.
5074 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5075 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5076 * thread.c
5077 (scoped_restore_current_thread::restore):
5078 Adjust to gdb::ref_ptr.
5079 (scoped_restore_current_thread::~scoped_restore_current_thread):
5080 Remove manual decref handling.
5081 (scoped_restore_current_thread::scoped_restore_current_thread):
5082 Adjust to use
5083 inferior_ref::new_reference/thread_info_ref::new_reference.
5084 Incref the thread before calling get_frame_id instead of after.
5085 Let TARGET_CLOSE_ERROR propagate.
5086
5087 2020-07-10 Pedro Alves <pedro@palves.net>
5088
5089 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5090 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5091 NOT_AVAILABLE_ERROR.
5092 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5093 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5094
5095 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5096 Pedro Alves <pedro@palves.net>
5097
5098 PR gdb/26199
5099 * infrun.c (threads_are_resumed_pending_p): Delete.
5100 (do_target_wait): Remove threads_are_executing and
5101 threads_are_resumed_pending_p checks from the inferior_matches
5102 lambda. Update comments.
5103
5104 2020-07-10 Pedro Alves <pedro@palves.net>
5105
5106 PR gdb/26199
5107 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5108 executing threads.
5109
5110 2020-07-10 Pedro Alves <pedro@palves.net>
5111
5112 PR gdb/26199
5113 * infrun.c (handle_no_resumed): Handle multiple targets.
5114
5115 2020-07-10 Pedro Alves <pedro@palves.net>
5116
5117 PR gdb/26199
5118 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5119 target_is_async_p.
5120
5121 2020-07-10 Pedro Alves <pedro@palves.net>
5122
5123 PR gdb/26199
5124 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5125 threads, not all threads.
5126
5127 2020-07-10 Pedro Alves <pedro@palves.net>
5128
5129 PR gdb/26199
5130 * remote.c (remote_target::open_1): Pass remote target pointer as
5131 data to create_async_event_handler.
5132 (remote_async_inferior_event_handler): Mark async event handler
5133 before returning if the remote target still has either pending
5134 events or unacknowledged notifications.
5135
5136 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5137
5138 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5139 declaration.
5140 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5141 function.
5142
5143 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5144
5145 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5146 inferior_ptid.
5147
5148 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5149
5150 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5151 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5152 AT_FREEBSD_PS_STRINGS.
5153
5154 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5155
5156 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5157 of debugfile path on Windows.
5158
5159 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5160
5161 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5162 argument to 'data'.
5163
5164 2020-07-08 Tom Tromey <tromey@adacore.com>
5165
5166 * ada-lang.c (ada_exception_message_1): Use read_memory.
5167
5168 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 PR python/22748
5171 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5172 special handling for inline frames.
5173 * findvar.c (value_of_register_lazy): Skip inline frames when
5174 creating lazy register values.
5175 * frame.c (frame_id_computed_p): Delete definition.
5176 * frame.h (frame_id_computed_p): Delete declaration.
5177
5178 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * NEWS: Mention additions to Python API.
5181 * python/py-arch.c (archpy_register_groups): New function.
5182 (arch_object_methods): Add 'register_groups' method.
5183 * python/py-registers.c (reggroup_iterator_object): New struct.
5184 (reggroup_object): New struct.
5185 (gdbpy_new_reggroup): New function.
5186 (gdbpy_reggroup_to_string): New function.
5187 (gdbpy_reggroup_name): New function.
5188 (gdbpy_reggroup_iter): New function.
5189 (gdbpy_reggroup_iter_next): New function.
5190 (gdbpy_new_reggroup_iterator): New function
5191 (gdbpy_initialize_registers): Register new types.
5192 (reggroup_iterator_object_type): Define new Python type.
5193 (gdbpy_reggroup_getset): New static global.
5194 (reggroup_object_type): Define new Python type.
5195 * python/python-internal.h
5196
5197 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5200 * python/py-arch.c (archpy_registers): New function.
5201 (arch_object_methods): Add 'registers' method.
5202 * python/py-registers.c: New file.
5203 * python/python-internal.h
5204 (gdbpy_new_register_descriptor_iterator): Declare.
5205 (gdbpy_initialize_registers): Declare.
5206 * python/python.c (do_start_initialization): Call
5207 gdbpy_initialize_registers.
5208 * NEWS: Mention additions to the Python API.
5209
5210 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * NEWS: Mention new Python API method.
5213 * python/py-unwind.c (pending_framepy_architecture): New function.
5214 (pending_frame_object_methods): Add architecture method.
5215
5216 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5217
5218 * gdbarch.c: Regenerate.
5219 * gdbarch.h: Regenerate.
5220 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5221 (gdbarch_data): Use internal_error for the case where
5222 deprecated_set_gdbarch_data was originally needed.
5223 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5224 and use passed in obstack.
5225 (libunwind_frame_set_descr): Should no longer get back NULL from
5226 gdbarch_data.
5227 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5228 type.
5229 * user-regs.c (user_regs_init): Update parameters, and use passed
5230 in obstack.
5231 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5232 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5233
5234 2020-07-06 Tom de Vries <tdevries@suse.de>
5235
5236 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5237 End-Of-Sequence in lte_is_less_than.
5238 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5239 "gdb: Don't reorder line table entries too much when sorting".
5240
5241 2020-07-06 Tom de Vries <tdevries@suse.de>
5242
5243 PR tui/26205
5244 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5245
5246 2020-07-05 Tom de Vries <tdevries@suse.de>
5247
5248 PR build/26187
5249 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5250 std::uncaught_exceptions instead of deprecated
5251 std::uncaught_exception.
5252
5253 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 * macroexp.h (macro_stringify): Return
5256 gdb::unique_xmalloc_ptr<char>.
5257 * macroexp.c (macro_stringify): Likewise.
5258 * macrotab.c (fixup_definition): Update.
5259
5260 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5261
5262 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5263 (lex_one_token): Update.
5264 * macroexp.c (struct macro_buffer) <release>: Return
5265 gdb::unique_xmalloc_ptr<char>.
5266 (macro_stringify): Update.
5267 (macro_expand): Update.
5268 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5269 * macroexp.h (macro_expand_next): Likewise.
5270
5271 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5272
5273 * macroexp.h (macro_lookup_ftype): Remove.
5274 (macro_expand, macro_expand_once, macro_expand_next): Remove
5275 lookup function parameters, add scope parameter.
5276 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5277 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5278 * macroscope.h (standard_macro_lookup): Change parameter type
5279 to macro_scope.
5280 * macroscope.c (standard_macro_lookup): Likewise.
5281 * c-exp.y (lex_one_token): Update.
5282 * macrocmd.c (macro_expand_command): Likewise.
5283 (macro_expand_once_command): Likewise.
5284
5285 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * inf-loop.c (inferior_event_handler): Remove client_data param.
5288 * inf-loop.h (inferior_event_handler): Likewise.
5289 * infcmd.c (step_1): Adjust.
5290 * infrun.c (proceed): Adjust.
5291 (fetch_inferior_event): Remove client_data param.
5292 (infrun_async_inferior_event_handler): Adjust.
5293 * infrun.h (fetch_inferior_event): Remove `void *` param.
5294 * linux-nat.c (handle_target_event): Adjust.
5295 * record-btrace.c (record_btrace_handle_async_inferior_event):
5296 Adjust.
5297 * record-full.c (record_full_async_inferior_event_handler):
5298 Adjust.
5299 * remote.c (remote_async_inferior_event_handler): Adjust.
5300
5301 2020-07-01 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5304 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5305
5306 2020-07-01 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5309 tui_gen_win_info.
5310 (tui_win_info::make_window): Merge with
5311 tui_gen_win_info::make_window.
5312 (tui_win_info::make_visible): Move from tui_gen_win_info.
5313 * tui/tui-win.c (tui_win_info::max_width): Move from
5314 tui_gen_win_info.
5315 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5316 type.
5317 <window_factory>: Likewise.
5318 * tui/tui-layout.c (tui_win_info::resize): Move from
5319 tui_gen_win_info.
5320 (make_standard_window): Change return type.
5321 (get_locator_window, tui_get_window_by_name): Likewise.
5322 (tui_layout_window::apply): Remove a cast.
5323 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5324 (struct tui_win_info): Merge with tui_gen_win_info.
5325 (struct tui_gen_win_info): Remove.
5326
5327 2020-07-01 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-stack.h (struct tui_locator_window): Derive from
5330 tui_win_info.
5331 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5332 <can_box>: New method.
5333
5334 2020-07-01 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5337
5338 2020-07-01 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-regs.c (tui_data_window::display_registers_from)
5341 (tui_data_window::display_registers_from)
5342 (tui_data_window::first_data_item_displayed)
5343 (tui_data_window::delete_data_content_windows): Update.
5344 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5345 Remove.
5346 (tui_data_window::check_register_values): Update.
5347 (tui_data_item_window::rerender): Add parameters. Update.
5348 (tui_data_item_window::refresh_window): Remove.
5349 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5350 virtual.
5351 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5352 tui_gen_win_info.
5353 <refresh_window, max_height, min_height>: Remove.
5354 <rerender>: Add parameters.
5355 <x, y, visible>: New members.
5356 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5357 <m_item_width>: New member.
5358
5359 2020-07-01 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-regs.c (tui_data_window::show_register_group)
5362 (tui_data_window::check_register_values): Update.
5363 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5364 from item_no.
5365
5366 2020-07-01 Tom Tromey <tom@tromey.com>
5367
5368 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5369 useless "if".
5370
5371 2020-07-01 Tom Tromey <tom@tromey.com>
5372
5373 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5374 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5375
5376 2020-07-01 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5379 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5380 (struct tui_line_or_address): Move from tui-data.h.
5381 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5382 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5383 (tui_cmd_window, tui_source_window_base, tui_source_window)
5384 (tui_disasm_window): Don't declare.
5385 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5386 to tui-winsource.h.
5387 (SINGLE_KEY): Move to tui-stack.c.
5388
5389 2020-07-01 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5392 std::string.
5393 * tui/tui-regs.c (class tab_expansion_file): New.
5394 (tab_expansion_file::write): New method.
5395 (tui_register_format): Change return type. Use
5396 tab_expansion_file.
5397 (tui_get_register, tui_data_window::display_registers_from)
5398 (tui_data_item_window::rerender): Update.
5399 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5400 * tui/tui-io.c (tui_expand_tabs): Remove.
5401
5402 2020-07-01 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5405
5406 2020-07-01 Fangrui Song <maskray@google.com>
5407
5408 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5409
5410 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5411
5412 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5413 forms for DW_AT_associated and DW_AT_allocated attributes,
5414 which is already checked in function attr_to_dynamic_prop.
5415
5416 2020-06-30 Tom Tromey <tromey@adacore.com>
5417
5418 * dwarf2/read.c (quirk_rust_enum): Correctly call
5419 alloc_rust_variant for default-less enum.
5420
5421 2020-06-30 Tom Tromey <tromey@adacore.com>
5422
5423 PR build/26183:
5424 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5425 gdb::to_string.
5426
5427 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5430 * gdbarch.h: Re-generate.
5431
5432 2020-06-28 Tom Tromey <tom@tromey.com>
5433
5434 * command.h (cmd_types): Remove.
5435 (cmd_type): Don't declare.
5436 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5437 typedef.
5438 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5439 * cli/cli-decode.c (cmd_type): Remove.
5440
5441 2020-06-27 Pedro Alves <palves@redhat.com>
5442
5443 * fork-child.c (prefork_hook): Adjust.
5444 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5445 Delete.
5446 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5447 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5448 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5449 Remove declarations.
5450 (struct inferior) <set_tty, tty>: New methods.
5451 (struct inferior) <terminal>: Rename to ...
5452 (struct inferior) <m_terminal>: ... this and make private.
5453 * main.c (captured_main_1): Adjust.
5454 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5455 (mi_cmd_inferior_tty_show): Adjust.
5456 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5457 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5458
5459 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5460
5461 * configure.ac: Add --enable-libctf: handle --disable-static
5462 properly.
5463 * acinclude.m4: sinclude ../config/enable.m4.
5464 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5465 (LIBCTF): Substitute in.
5466 (CTF_DEPS): New, likewise.
5467 (CLIBS): libctf needs symbols from libbfd: move earlier.
5468 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5469 flags.
5470 * ctfread.c: Surround in ENABLE_LIBCTF.
5471 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5472 * configure: Regenerate.
5473 * config.in: Likewise.
5474
5475 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5478
5479 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * inferior.h (struct inferior) <terminal>: Change type to
5482 gdb::unique_xmalloc_ptr<char>.
5483 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5484 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5485 field, adjust to unique pointer.
5486 (get_inferior_io_terminal): Adjust to unique pointer.
5487
5488 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5489
5490 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5491 registers, not just the known core set of registers.
5492
5493 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5496 fflags, frm, and fcsr registers.
5497 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5498 restore groups.
5499 (riscv_tdesc_unknown_reg): New function.
5500 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5501 tdesc_use_registers.
5502 * riscv-tdep.h (struct gdbarch_tdep): Add
5503 unknown_csrs_first_regnum, unknown_csrs_count,
5504 duplicate_fflags_regnum, duplicate_frm_regnum, and
5505 duplicate_fcsr_regnum fields.
5506
5507 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5510 callback, use the callback (when not null) to help number unknown
5511 registers.
5512 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5513 (tdesc_use_registers): Add extra parameter to declaration.
5514
5515 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5516
5517 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5518 in the file.
5519 (class riscv_pending_register_alias): Likewise.
5520 (riscv_register_feature::register_info): Change 'required_p' field
5521 to 'required', and change its type. Add 'check' member function.
5522 (riscv_register_feature::register_info::check): Define new member
5523 function.
5524 (riscv_xreg_feature): Change initialisation of 'required' field.
5525 (riscv_freg_feature): Likewise.
5526 (riscv_virtual_feature): Likewise.
5527 (riscv_csr_feature): Likewise.
5528 (riscv_check_tdesc_feature): Take extra parameter, the csr
5529 tdesc_feature, rewrite the function to use the new
5530 riscv_register_feature::register_info::check function.
5531 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5532
5533 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5534
5535 * features/Makefile: Remove all references to the deleted files
5536 below.
5537 * features/riscv/32bit-csr.c: Deleted.
5538 * features/riscv/32bit-csr.xml: Deleted.
5539 * features/riscv/64bit-csr.c: Deleted.
5540 * features/riscv/64bit-csr.xml: Deleted.
5541 * features/riscv/rebuild-csr-xml.sh: Deleted.
5542
5543 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5544
5545 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5546 whitespace error for declaration of names member variable.
5547 (struct riscv_register_feature): Add new prefer_first_name member
5548 variable, and fix whitespace error in declaration of registers.
5549 (riscv_xreg_feature): Initialize prefer_first_name field.
5550 (riscv_freg_feature): Likewise.
5551 (riscv_virtual_feature): Likewise.
5552 (riscv_csr_feature): Likewise.
5553 (riscv_register_name): Expand on comments. Remove register name
5554 modifications for CSR and virtual registers.
5555
5556 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5559 errors.
5560
5561 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5562
5563 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5564 riscv-opc.h.
5565 (class riscv_pending_register_alias): New class.
5566 (riscv_check_tdesc_feature): Take vector of pending aliases and
5567 populate it as appropriate.
5568 (riscv_setup_register_aliases): Delete.
5569 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5570 to riscv_check_tdesc_feature in all cases. Use the vector to
5571 create the register aliases.
5572
5573 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5574
5575 * sol2-tdep.c (sol2_static_transform_name): Remove.
5576 (sol2_init_abi): Don't register it.
5577 * gdbarch.sh (static_transform_name): Remove.
5578 * gdbarch.c, gdbarch.h: Regenerate.
5579
5580 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5581 gdbarch_static_transform_name.
5582 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5583 * stabsread.c (define_symbol) <'X'>: Remove.
5584 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5585 handling.
5586 <'V'>: Likewise.
5587 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5588 <'S'>: Remove call to gdbarch_static_transform_name.
5589
5590 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5591
5592 * procfs.c (procfs_pre_trace): New function.
5593 (procfs_target::create_inferior): Pass it to fork_inferior.
5594
5595 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5596
5597 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5598 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5599 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5600 sol2-tdep.o, sparc-sol2-tdep.o.
5601 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5602 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5603 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5604 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5605
5606 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5607
5608 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5609 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5610 Call sol2_init_abi.
5611 Remove calls to set_gdbarch_skip_solib_resolver,
5612 set_gdbarch_core_pid_to_str.
5613 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5614 (i386_sol2_static_transform_name): Remove.
5615 (i386_sol2_init_abi): Call sol2_init_abi.
5616 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5617 set_gdbarch_static_transform_name,
5618 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5619 Use sol2_sigtramp_p.
5620 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5621 (sol2_sigtramp_p): New function.
5622 (sol2_static_transform_name): New function.
5623 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5624 (sol2_init_abi): New function.
5625 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5626 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5627 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5628 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5629 (sparc_sol2_static_transform_name): Remove.
5630 (sparc32_sol2_init_abi): Call sol2_init_abi.
5631 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5632 set_gdbarch_static_transform_name,
5633 set_gdbarch_skip_solib_resolver,
5634 set_gdbarch_core_pid_to_str.
5635 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5636 (sparc_sol2_static_transform_name): Remove
5637 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5638 call sol2_sigtramp_p.
5639 (sparc64_sol2_init_abi): Call sol2_init_abi.
5640 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5641 set_gdbarch_static_transform_name,
5642 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5643
5644 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5645
5646 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5647 * exec.c (validate_exec_file): If from_tty, set both
5648 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5649 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5650 and from_tty, unconditionally ask a confirmation.
5651
5652 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5653
5654 * target-descriptions.c (tdesc_architecture_name): Protect against
5655 NULL pointer dereference.
5656 (maint_print_xml_tdesc_cmd): New function.
5657 (_initialize_target_descriptions): Register new 'maint print
5658 xml-tdesc' command and give it the filename completer.
5659 * NEWS: Mention new 'maint print xml-tdesc' command.
5660
5661 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5662
5663 * target-descriptions.c (class tdesc_compatible_info): New class.
5664 (struct target_desc): Change type of compatible vector.
5665 (tdesc_compatible_p): Update for change in type of
5666 target_desc::compatible.
5667 (tdesc_compatible_info_list): New function.
5668 (tdesc_compatible_info_arch_name): New function.
5669 (tdesc_add_compatible): Update for change in type of
5670 target_desc::compatible.
5671 (print_c_tdesc::visit_pre): Likewise.
5672
5673 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5676 whitespace to underscore.
5677 (maint_print_c_tdesc_cmd): Use fake filename for target
5678 descriptions that came from the target.
5679 (_initialize_target_descriptions): Add filename command completion
5680 for 'maint print c-tdesc'.
5681
5682 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5685 lines.
5686
5687 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5690 lines.
5691 (dwarf2_find_location_expression): Likewise.
5692 (call_site_parameter_matches): Likewise.
5693 (dwarf2_compile_expr_to_ax): Likewise.
5694 (disassemble_dwarf_expression): Likewise.
5695 (loclist_describe_location): Likewise.
5696
5697 2020-06-23 Pedro Alves <palves@redhat.com>
5698
5699 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5700 progspace-and-thread.h. Include scoped-mock-context.h instead.
5701 (register_to_value_test): Use scoped_mock_context.
5702 * regcache.c: Include "scoped-mock-context.h".
5703 (cooked_read_test): Don't error out if a target is already pushed.
5704 Use scoped_mock_context. Adjust.
5705 * scoped-mock-context.h: New file.
5706
5707 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5708
5709 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5710 initializer.
5711 (ada_language::is_string_type_p): New member function.
5712 * c-lang.c (c_language_data): Delete la_is_string_type_p
5713 initializer.
5714 (cplus_language_data): Likewise.
5715 (asm_language_data): Likewise.
5716 (minimal_language_data): Likewise.
5717 * d-lang.c (d_language_data): Likewise.
5718 * f-lang.c (f_is_string_type_p): Delete function, implementation
5719 moved to f_language::is_string_type_p.
5720 (f_language_data): Delete la_is_string_type_p initializer.
5721 (f_language::is_string_type_p): New member function,
5722 implementation from f_is_string_type_p.
5723 * go-lang.c (go_is_string_type_p): Delete function, implementation
5724 moved to go_language::is_string_type_p.
5725 (go_language_data): Delete la_is_string_type_p initializer.
5726 (go_language::is_string_type_p): New member function,
5727 implementation from go_is_string_type_p.
5728 * language.c (language_defn::is_string_type_p): Define new member
5729 function.
5730 (default_is_string_type_p): Make static, add comment copied from
5731 header file.
5732 (unknown_language_data): Delete la_is_string_type_p initializer.
5733 (unknown_language::is_string_type_p): New member function.
5734 (auto_language_data): Delete la_is_string_type_p initializer.
5735 (auto_language::is_string_type_p): New member function.
5736 * language.h (language_data): Delete la_is_string_type_p field.
5737 (language_defn::is_string_type_p): Declare new function.
5738 (default_is_string_type_p): Delete desclaration, move comment to
5739 definition.
5740 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5741 moved to m2_language::is_string_type_p.
5742 (m2_language_data): Delete la_is_string_type_p initializer.
5743 (m2_language::is_string_type_p): New member function,
5744 implementation from m2_is_string_type_p.
5745 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5746 initializer.
5747 * opencl-lang.c (opencl_language_data): Likewise.
5748 * p-lang.c (pascal_is_string_type_p): Delete function,
5749 implementation moved to pascal_language::is_string_type_p.
5750 (pascal_language_data): Delete la_is_string_type_p initializer.
5751 (pascal_language::is_string_type_p): New member function,
5752 implementation from pascal_is_string_type_p.
5753 * rust-lang.c (rust_is_string_type_p): Delete function,
5754 implementation moved to rust_language::is_string_type_p.
5755 (rust_language_data): Delete la_is_string_type_p initializer.
5756 (rust_language::is_string_type_p): New member function,
5757 implementation from rust_is_string_type_p.
5758 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5759 is_string_type_p.
5760
5761 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * ada-lang.c (ada_language_data): Delete la_print_typedef
5764 initializer.
5765 (ada_language::print_typedef): New member function.
5766 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5767 (cplus_language_data): Likewise.
5768 (asm_language_data): Likewise.
5769 (minimal_language_data): Likewise.
5770 * d-lang.c (d_language_data): Likewise.
5771 * f-lang.c (f_language_data): Likewise.
5772 (f_language::print_typedef): New member function.
5773 * go-lang.c (go_language_data): Delete la_print_typedef
5774 initializer.
5775 * language.c (language_defn::print_typedef): Define member
5776 function.
5777 (unknown_language_data): Delete la_print_typedef initializer.
5778 (unknown_language::print_typedef): New member function.
5779 (auto_language_data): Delete la_print_typedef initializer.
5780 (auto_language::print_typedef): New member function.
5781 * language.h (language_data): Delete la_print_typedef field.
5782 (language_defn::print_typedef): Declare new member function.
5783 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5784 (default_print_typedef): Delete declaration.
5785 * m2-lang.c (m2_language_data): Delete la_print_typedef
5786 initializer.
5787 (m2_language::print_typedef): New member function.
5788 * objc-lang.c (objc_language_data): Delete la_print_typedef
5789 initializer.
5790 * opencl-lang.c (opencl_language_data): Likewise.
5791 * p-lang.c (pascal_language_data): Likewise.
5792 (pascal_language::print_typedef): New member function.
5793 * rust-lang.c (rust_print_typedef): Delete function,
5794 implementation moved to rust_language::print_typedef.
5795 (rust_language): Delete la_print_typedef initializer.
5796 (rust_language::print_typedef): New member function,
5797 implementation from rust_print_typedef.
5798 * typeprint.c (default_print_typedef): Delete.
5799
5800 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5801
5802 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5803 (ada_language::printstr): New member function.
5804 * c-lang.c (c_language_data): Delete la_printstr initializer.
5805 (cplus_language_data): Likewise.
5806 (asm_language_data): Likewise.
5807 (minimal_language_data): Likewise.
5808 * d-lang.c (d_language_data): Likewise.
5809 * f-lang.c (f_printstr): Rename to f_language::printstr.
5810 (f_language_data): Delete la_printstr initializer.
5811 (f_language::printstr): New member function, implementation from
5812 f_printstr.
5813 * go-lang.c (go_language_data): Delete la_printstr initializer.
5814 * language.c (language_defn::printstr): Define new member
5815 function.
5816 (unk_lang_printstr): Delete.
5817 (unknown_language_data): Delete la_printstr initializer.
5818 (unknown_language::printstr): New member function.
5819 (auto_language_data): Delete la_printstr initializer.
5820 (auto_language::printstr): New member function.
5821 * language.h (language_data): Delete la_printstr field.
5822 (language_defn::printstr): Declare new member function.
5823 (LA_PRINT_STRING): Update call to printstr.
5824 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5825 (m2_language_data): Delete la_printstr initializer.
5826 (m2_language::printstr): New member function, implementation from
5827 m2_printstr.
5828 * objc-lang.c (objc_language_data): Delete la_printstr
5829 initializer.
5830 * opencl-lang.c (opencl_language_data): Likewise.
5831 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5832 (pascal_language_data): Delete la_printstr initializer.
5833 (pascal_language::printstr): New member function, implementation
5834 from pascal_printstr.
5835 * p-lang.h (pascal_printstr): Delete declaration.
5836 * rust-lang.c (rust_printstr): Update header comment.
5837 (rust_language_data): Delete la_printstr initializer.
5838 (rust_language::printstr): New member function.
5839
5840 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5843 (ada_language::printchar): New member function.
5844 * c-lang.c (c_language_data): Delete la_printchar initializer.
5845 (cplus_language_data): Likewise.
5846 (asm_language_data): Likewise.
5847 (minimal_language_data): Likewise.
5848 * d-lang.c (d_language_data): Likewise.
5849 * f-lang.c (f_printchar): Rename to f_language::printchar.
5850 (f_language_data): Delete la_printchar initializer.
5851 (f_language::printchar): New member function, implementation from
5852 f_printchar.
5853 * go-lang.c (go_language_data): Delete la_printchar initializer.
5854 * language.c (unk_lang_printchar): Delete.
5855 (language_defn::printchar): Define new member function.
5856 (unknown_language_data): Delete la_printchar initializer.
5857 (unknown_language::printchar): New member function.
5858 (auto_language_data): Delete la_printchar initializer.
5859 (auto_language::printchar): New member function.
5860 * language.h (language_data): Delete la_printchar field.
5861 (language_defn::printchar): Declare new member function.
5862 (LA_PRINT_CHAR): Update call to printchar.
5863 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5864 (m2_language::printchar): New member function.
5865 * objc-lang.c (objc_language_data): Delete la_printchar
5866 initializer.
5867 * opencl-lang.c (opencl_language_data): Likewise.
5868 * p-lang.c (pascal_language_data): Delete la_printchar
5869 initializer.
5870 (pascal_language::printchar): New member function.
5871 * rust-lang.c (rust_printchar): Rename to
5872 rust_language::printchar.
5873 (rust_language_data): Delete la_printchar initializer.
5874 (rust_language::printchar): New member function, implementation
5875 from rust_printchar.
5876
5877 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5878
5879 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5880 (ada_language_data): Delete la_emitchar initializer.
5881 (ada_language::emitchar): New member function, implementation from
5882 emit_char.
5883 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5884 (cplus_language_data): Likewise.
5885 (asm_language_data): Likewise.
5886 (minimal_language_data): Likewise.
5887 * d-lang.c (d_language_data): Likewise.
5888 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5889 (f_language_data): Delete la_emitchar initializer.
5890 (f_language::emitchar): New member function, implementation from
5891 f_emit_char.
5892 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5893 * language.c (unk_lang_emit_char): Delete.
5894 (language_defn::emitchar): New member function definition.
5895 (unknown_language_data): Delete la_emitchar initializer.
5896 (unknown_language::emitchar): New member function.
5897 (auto_language_data): Delete la_emitchar initializer.
5898 (auto_language::emitchar): New member function.
5899 * language.h (language_data): Delete la_emitchar field.
5900 (language_defn::emitchar): New member field declaration.
5901 (LA_EMIT_CHAR): Update call to emitchar.
5902 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5903 (m2_language_data): Delete la_emitchar initializer.
5904 (m2_language::emitchar): New member function, implementation from
5905 m2_emit_char.
5906 * objc-lang.c (objc_language_data): Delete la_emitchar
5907 initializer.
5908 * opencl-lang.c (opencl_language_data): Likewise.
5909 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5910 (pascal_language_data): Delete la_emitchar initializer.
5911 (pascal_language::emitchar): New member function, implementation
5912 from pascal_emit_char.
5913 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5914 (rust_language_data): Delete la_emitchar initializer.
5915 (rust_language::emitchar): New member function, implementation
5916 from rust_emitchar.
5917
5918 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5921 (ada_language_data): Delete la_post_parser initializer.
5922 (ada_language::post_parser): New member function.
5923 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5924 (cplus_language_data): Likewise.
5925 (asm_language_data): Likewise.
5926 (minimal_language_data): Likewise.
5927 * d-lang.c (d_language_data): Likewise.
5928 * f-lang.c (f_language_data): Likewise.
5929 * go-lang.c (go_language_data): Likewise.
5930 * language.c (unknown_language_data): Likewise.
5931 (auto_language_data): Likewise.
5932 * language.h (language_data): Delete la_post_parser field.
5933 (language_defn::post_parser): New member function.
5934 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5935 * objc-lang.c (objc_language_data): Likewise.
5936 * opencl-lang.c (opencl_language_data): Likewise.
5937 * p-lang.c (pascal_language_data): Likewise.
5938 * parse.c (parse_exp_in_context): Update call to post_parser.
5939 (null_post_parser): Delete definition.
5940 * parser-defs.h (null_post_parser): Delete declaration.
5941 * rust-lang.c (rust_language_data): Delete la_post_parser
5942 initializer.
5943
5944 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5945
5946 * ada-lang.c (parse): Rename to ada_language::parser.
5947 (ada_language_data): Delete la_parser initializer.
5948 (ada_language::parser): New member function, implementation from
5949 parse.
5950 * c-lang.c (c_language_data): Delete la_parser initializer.
5951 (cplus_language_data): Likewise.
5952 (asm_language_data): Likewise.
5953 (minimal_language_data): Likewise.
5954 * d-lang.c (d_language_data): Likewise.
5955 (d_language::parser): New member function.
5956 * f-lang.c (f_language_data): Delete la_parser initializer.
5957 (f_language::parser): New member function.
5958 * go-lang.c (go_language_data): Delete la_parser initializer.
5959 (go_language::parser): New member function.
5960 * language.c (unk_lang_parser): Delete.
5961 (language_defn::parser): Define new member function.
5962 (unknown_language_data): Delete la_parser initializer.
5963 (unknown_language::parser): New member function.
5964 (auto_language_data): Delete la_parser initializer.
5965 (auto_language::parser): New member function.
5966 * language.h (language_data): Delete la_parser field.
5967 (language_defn::parser): Declare new member function.
5968 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5969 (m2_language::parser): New member function.
5970 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5971 * opencl-lang.c (opencl_language_data): Likewise.
5972 * p-lang.c (pascal_language_data): Likewise.
5973 (pascal_language::parser): New member function.
5974 * parse.c (parse_exp_in_context): Update call to parser.
5975 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5976 (rust_language::parser): New member function.
5977
5978 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5979
5980 * top.c (print_gdb_configuration): Print --with-python-libdir
5981 configuration value.
5982
5983 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5984
5985 * NEWS: Mention change to the alias command.
5986
5987 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5988
5989 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5990 (alias_command_completer)
5991 (make_alias_options_def_group): New functions.
5992 (alias_opts, alias_option_defs): New struct and array.
5993 (alias_usage_error): Update usage.
5994 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5995 Use option framework.
5996 (_initialize_cli_cmds): Update alias command help.
5997 Update aliases command help.
5998 (show_user):
5999 Add NULL for new default_args lookup_cmd argument.
6000 (valid_command_p): Rename to validate_aliased_command.
6001 Add NULL for new default_args lookup_cmd argument. Verify that the
6002 aliased_command has no default args.
6003 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6004 (lookup_cmd_1, lookup_cmd): New argument default_args.
6005 (add_alias_cmd):
6006 Add NULL for new default_args lookup_cmd argument.
6007 (print_help_for_command): Show default args under the layout
6008 alias some_alias = some_aliased_cmd some_alias_default_arg.
6009 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6010 xfree default_args in destructor.
6011 * cli/cli-script.c (process_next_line, do_define_command):
6012 Add NULL for new default_args lookup_cmd argument.
6013 * command.h: Declare new default_args argument in lookup_cmd
6014 and lookup_cmd_1.
6015 * completer.c (complete_line_internal_1):
6016 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6017 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6018 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6019 Likewise.
6020 * infcmd.c (_initialize_infcmd): Likewise.
6021 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6022 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6023 * python/py-param.c (add_setshow_generic): Likewise.
6024 * remote.c (_initialize_remote): Likewise.
6025 * top.c (execute_command): Prepend default_args if command has some.
6026 (set_verbose):
6027 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6028 * tracepoint.c (validate_actionline, encode_actions_1):
6029 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6030
6031 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6032
6033 * jit.c (jit_read_descriptor): Use bool as the return type.
6034 (jit_breakpoint_re_set_internal): Use bool as the return type.
6035 Invert the return value logic; return true if the jit breakpoint
6036 has been successfully initialized.
6037 (jit_inferior_init): Update the call to
6038 jit_breakpoint_re_set_internal.
6039
6040 2020-06-22 Pedro Alves <palves@redhat.com>
6041
6042 PR gdb/25939
6043 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6044 Use the current inferior instead. Don't return
6045 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6046 wait again.
6047 * sol-thread.c (sol_thread_target::wait): Don't reference
6048 inferior_ptid.
6049 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6050 (sol_update_thread_list_callback): Use the current inferior's pid
6051 instead of inferior_ptid.
6052
6053 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6054
6055 * procfs.c: Cleanup many comments.
6056
6057 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6058 (AFTER_WATCHFLAG): Replace by value.
6059
6060 (MAIN_PROC_NAME_FORMAT): Inline ...
6061 (create_procinfo): ... here.
6062
6063 (procfs_debug_inferior): Remove SYS_exec handling.
6064 (syscall_is_exec): Likewise.
6065 (procfs_set_exec_trap): Likewise.
6066
6067 (syscall_is_lwp_exit): Inline in callers.
6068 (syscall_is_exit): Likewise.
6069 (syscall_is_exec): Likewise.
6070 (syscall_is_lwp_create): Likewise.
6071
6072 (invalidate_cache): Remove #if 0 code.
6073
6074 (make_signal_thread_runnable): Remove.
6075 (procfs_target::resume): Remove #if 0 code.
6076
6077 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6078
6079 PR gdb/25939
6080 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6081 call ...
6082 (procfs_target::create_inferior): ... here.
6083
6084 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6085
6086 * exec.c (validate_exec_file): Ensure the build-id is up to
6087 date by calling reopen_exec_file (that checks file timestamp
6088 to decide to re-read the file).
6089
6090 2020-06-18 Pedro Alves <palves@redhat.com>
6091
6092 PR gdb/25412
6093 * gdbthread.h (delete_thread, delete_thread_silent)
6094 (find_thread_ptid): Update comments.
6095 * thread.c (current_thread_): New global.
6096 (is_current_thread): Move higher, and reimplement.
6097 (inferior_thread): Reimplement.
6098 (set_thread_exited): Use bool. Add assertions.
6099 (add_thread_silent): Simplify thread-reuse handling by always
6100 calling delete_thread.
6101 (delete_thread): Remove intro comment.
6102 (find_thread_ptid): Skip exited threads.
6103 (switch_to_thread_no_regs): Write to current_thread_.
6104 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6105 INFERIOR_PTID. Clear current_thread_.
6106
6107 2020-06-18 Pedro Alves <palves@redhat.com>
6108
6109 * aix-thread.c (pd_update): Use switch_to_thread.
6110
6111 2020-06-18 Pedro Alves <palves@redhat.com>
6112
6113 * ravenscar-thread.c (ravenscar_thread_target): Update.
6114 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6115 (ravenscar_thread_target::add_active_thread): ... this. Don't
6116 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6117 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6118
6119 2020-06-18 Pedro Alves <palves@redhat.com>
6120
6121 * nat/windows-nat.c (current_windows_thread): Remove.
6122 * nat/windows-nat.h (current_windows_thread): Remove.
6123 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6124 Adjust.
6125 (display_selectors): Adjust to fetch the current
6126 windows_thread_info based on inferior_ptid.
6127 (fake_create_process): No longer write to current_windows_thread.
6128 (windows_nat_target::get_windows_debug_event):
6129 Don't set inferior_ptid or current_windows_thread.
6130 (windows_nat_target::wait): Adjust to not rely on
6131 current_windows_thread.
6132 (do_initial_windows_stuff): Now a method of windows_nat_target.
6133 Switch to the last_ptid thread.
6134 (windows_nat_target::attach): Adjust.
6135 (windows_nat_target::detach): Use switch_to_no_thread instead of
6136 writing to inferior_ptid directly.
6137 (windows_nat_target::create_inferior): Adjust.
6138
6139 2020-06-18 Pedro Alves <palves@redhat.com>
6140
6141 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6142
6143 2020-06-18 Pedro Alves <palves@redhat.com>
6144
6145 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6146 after creating it, instead of writing to inferior_ptid. Don't
6147 write to inferior_ptid.
6148
6149 2020-06-18 Pedro Alves <palves@redhat.com>
6150
6151 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6152
6153 2020-06-18 Pedro Alves <palves@redhat.com>
6154
6155 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6156 it, instead of writing to inferior_ptid.
6157
6158 2020-06-18 Pedro Alves <palves@redhat.com>
6159
6160 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6161 to inferior_ptid.
6162
6163 2020-06-18 Pedro Alves <palves@redhat.com>
6164
6165 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6166 instead of writing to inferior_ptid directly.
6167
6168 2020-06-18 Pedro Alves <palves@redhat.com>
6169
6170 * corelow.c (core_target::close): Use switch_to_no_thread instead
6171 of writing to inferior_ptid directly.
6172 (add_to_thread_list, core_target_open): Use switch_to_thread
6173 instead of writing to inferior_ptid directly.
6174
6175 2020-06-18 Pedro Alves <palves@redhat.com>
6176
6177 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6178 inferior_ptid.
6179 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6180 inferior_ptid.
6181 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6182 inferior_ptid directly.
6183 (darwin_nat_target::init_thread_list): Switch to thread, instead
6184 of writing to inferior_ptid.
6185 (darwin_nat_target::attach): Don't write to inferior_ptid.
6186 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6187
6188 2020-06-18 Pedro Alves <palves@redhat.com>
6189
6190 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6191 thread.
6192 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6193 Instead use switch_to_thread.
6194 (gnu_nat_target::detach): Use switch_to_no_thread
6195 instead of writing to inferior_ptid directly. Used passed-in
6196 inferior instead of looking up the inferior by pid.
6197
6198 2020-06-18 Pedro Alves <palves@redhat.com>
6199
6200 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6201 inferior_ptid.
6202
6203 2020-06-18 Pedro Alves <palves@redhat.com>
6204
6205 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6206 inferior_ptid.
6207 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6208 thread.
6209 (nto_procfs_target::detach): Avoid referencing
6210 inferior_ptid. Use switch_to_no_thread instead of writing to
6211 inferior_ptid directly.
6212 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6213 instead of writing to inferior_ptid directly.
6214 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6215 to thread.
6216
6217 2020-06-18 Pedro Alves <palves@redhat.com>
6218
6219 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6220 after creating it, instead of writing to inferior_ptid.
6221 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6222 to inferior_ptid directly.
6223 (gdbsim_target::wait): Don't write to inferior_ptid.
6224
6225 2020-06-18 Pedro Alves <palves@redhat.com>
6226
6227 * remote.c (remote_target::remote_notice_new_inferior): Use
6228 switch_to_thread instead of writing to inferior_ptid directly.
6229 (remote_target::add_current_inferior_and_thread): Use
6230 switch_to_no_thread instead of writing to inferior_ptid directly.
6231 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6232 and switch_to_thread instead of using set_current_inferior or
6233 writing to inferior_ptid directly.
6234
6235 2020-06-18 Pedro Alves <palves@redhat.com>
6236
6237 * tracectf.c (ctf_target_open): Switch to added thread instead of
6238 writing to inferior_ptid directly.
6239 (ctf_target::close): Use switch_to_no_thread instead of writing to
6240 inferior_ptid directly.
6241
6242 2020-06-18 Pedro Alves <palves@redhat.com>
6243
6244 * tracefile-tfile.c (tfile_target_open): Don't write to
6245 inferior_ptid directly, instead switch to added thread.
6246 (tfile_target::close): Use switch_to_no_thread instead of writing
6247 to inferior_ptid directly.
6248
6249 2020-06-18 Pedro Alves <palves@redhat.com>
6250
6251 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6252 (procfs_target::detach): Use switch_to_no_thread
6253 instead of writing to inferior_ptid directly.
6254 (do_attach): Change return type to void. Switch to the added
6255 thread.
6256 (procfs_target::create_inferior): Switch to the added thread.
6257 (procfs_do_thread_registers): Don't write to inferior_ptid.
6258
6259 2020-06-18 Pedro Alves <palves@redhat.com>
6260
6261 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6262 of writing to inferior_ptid.
6263 (scoped_restore_exited_inferior): Delete.
6264 (handle_vfork_child_exec_or_exit): Simplify using
6265 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6266 instead of writing to inferior_ptid.
6267 (THREAD_STOPPED_BY): Delete.
6268 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6269 (thread_stopped_by_hw_breakpoint): Delete.
6270 (save_waitstatus): Use
6271 scoped_restore_current_thread+switch_to_thread, and call
6272 target_stopped_by_watchpoint instead of
6273 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6274 instead of thread_stopped_by_sw_breakpoint, and
6275 target_stopped_by_hw_breakpoint instead of
6276 thread_stopped_by_hw_breakpoint.
6277 (handle_inferior_event)
6278 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6279 inferior_ptid directly, nor
6280 set_current_inferior/set_current_program_space. Use
6281 switch_to_thread / switch_to_inferior_no_thread instead.
6282
6283 2020-06-18 Pedro Alves <palves@redhat.com>
6284
6285 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6286 instead of writing to inferior_ptid.
6287
6288 2020-06-18 Pedro Alves <palves@redhat.com>
6289
6290 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6291 added thread.
6292 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6293 to the added thread.
6294 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6295 instead of writing to inferior_ptid.
6296
6297 2020-06-18 Pedro Alves <palves@redhat.com>
6298
6299 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6300 (register_to_value_test): Mock a program_space too. Heap-allocate
6301 the address space. Don't write to inferior_ptid. Use
6302 switch_to_thread instead.
6303
6304 2020-06-18 Pedro Alves <palves@redhat.com>
6305
6306 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6307 Delete.
6308 (find_signalled_thread()): New, factored out from
6309 linux_make_corefile_notes and adjusted to handle exited threads.
6310 (linux_make_corefile_notes): Adjust to use the new
6311 find_signalled_thread.
6312
6313 2020-06-18 Pedro Alves <palves@redhat.com>
6314
6315 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6316 of saving/restoring inferior_ptid.
6317
6318 2020-06-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6321 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6322 declare.
6323 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6324
6325 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6326
6327 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6328 of partial symtabs.
6329
6330 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * regformats/reg-arm.dat: Remove.
6333 * regformats/reg-bfin.dat: Remove.
6334 * regformats/reg-cris.dat: Remove.
6335 * regformats/reg-crisv32.dat: Remove.
6336 * regformats/reg-m32r.dat: Remove.
6337 * regformats/reg-tilegx.dat: Remove.
6338 * regformats/reg-tilegx32.dat: Remove.
6339
6340 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * features/Makefile (WHICH): Remove arm files.
6343 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6344 * regformats/arm/arm-with-neon.dat: Remove.
6345 * regformats/arm/arm-with-vfpv2.dat: Remove.
6346 * regformats/arm/arm-with-vfpv3.dat: Remove.
6347
6348 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * features/Makefile (XMLTOC): Remove rx.xml.
6351
6352 2020-06-17 Pedro Alves <palves@redhat.com>
6353
6354 * gdbthread.h (thread_control_state) <trap_expected> Update
6355 comments.
6356
6357 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6358
6359 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6360 ada_language::lookup_symbol_nonlocal.
6361 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6362 (ada_language::lookup_symbol_nonlocal): New member function,
6363 implementation from ada_lookup_symbol_nonlocal.
6364 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6365 initializer.
6366 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6367 initializer.
6368 (cplus_language::lookup_symbol_nonlocal): New member function.
6369 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6370 (minimal_language_data) Likewise.
6371 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6372 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6373 initializer.
6374 (d_language::lookup_symbol_nonlocal): New member function.
6375 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6376 initializer.
6377 (f_language::lookup_symbol_nonlocal): New member function.
6378 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6379 initializer.
6380 * language.c (unknown_language_data): Likewise.
6381 (auto_language_data): Likewise.
6382 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6383 field.
6384 (language_defn::lookup_symbol_nonlocal): New member function.
6385 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6386 initializer.
6387 * objc-lang.c (objc_language_data): Likewise.
6388 * opencl-lang.c (opencl_language_data): Likewise.
6389 * p-lang.c (pascal_language_data): Likewise.
6390 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6391 rust_language::lookup_symbol_nonlocal.
6392 (rust_language_data): Delete la_lookup_symbol_nonlocal
6393 initializer.
6394 (rust_language::lookup_symbol_nonlocal): New member function,
6395 implementation from rust_lookup_symbol_nonlocal.
6396 * symtab.c (lookup_symbol_aux): Update call to
6397 lookup_symbol_nonlocal.
6398 (basic_lookup_symbol_nonlocal): Rename to...
6399 (language_defn::lookup_symbol_nonlocal): ...this, and update
6400 header comment. Remove language_defn parameter, and replace with
6401 uses of `this'.
6402 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6403
6404 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6407 initializer.
6408 (ada_language::value_print_inner): New member function.
6409 * c-lang.c (c_language_data): Delete la_value_print_inner
6410 initializer.
6411 (cplus_language_data): Likewise.
6412 (asm_language_data): Likewise.
6413 (minimal_language_data): Likewise.
6414 * d-lang.c (d_language_data): Likewise.
6415 (d_language::value_print_inner): New member function.
6416 * f-lang.c (f_language_data): Delete la_value_print_inner
6417 initializer.
6418 (f_language::value_print_inner): New member function.
6419 * f-lang.h (f_value_print_innner): Rename to...
6420 (f_value_print_inner): ...this (note spelling of 'inner').
6421 * f-valprint.c (f_value_print_innner): Rename to...
6422 (f_value_print_inner): ...this (note spelling of 'inner').
6423 * go-lang.c (go_language_data): Delete la_value_print_inner
6424 initializer.
6425 (go_language::value_print_inner): New member function.
6426 * language.c (language_defn::value_print_inner): Define new member
6427 function.
6428 (unk_lang_value_print_inner): Delete.
6429 (unknown_language_data): Delete la_value_print_inner initializer.
6430 (unknown_language::value_print_inner): New member function.
6431 (auto_language_data): Delete la_value_print_inner initializer.
6432 (auto_language::value_print_inner): New member function.
6433 * language.h (language_data): Delete la_value_print_inner field.
6434 (language_defn::value_print_inner): Delcare new member function.
6435 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6436 initializer.
6437 (m2_language::value_print_inner): New member function.
6438 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6439 initializer.
6440 * opencl-lang.c (opencl_language_data): Likewise.
6441 * p-lang.c (pascal_language_data): Likewise.
6442 (pascal_language::value_print_inner): New member function.
6443 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6444 initializer.
6445 (rust_language::value_print_inner): New member function.
6446 * valprint.c (do_val_print): Update call to value_print_inner.
6447
6448 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6449
6450 * ada-lang.c (ada_language_data): Delete la_value_print
6451 initializer.
6452 (ada_language::value_print): New member function.
6453 * c-lang.c (c_language_data): Delete la_value_print initializer.
6454 (cplus_language_data): Likewise.
6455 (asm_language_data): Likewise.
6456 (minimal_language_data): Likewise.
6457 * d-lang.c (d_language_data): Likewise.
6458 * f-lang.c (f_language_data): Likewise.
6459 * go-lang.c (go_language_data): Likewise.
6460 * language.c (unk_lang_value_print): Delete.
6461 (language_defn::value_print): Define new member function.
6462 (unknown_language_data): Delete la_value_print initializer.
6463 (unknown_language::value_print): New member function.
6464 (auto_language_data): Delete la_value_print initializer.
6465 (auto_language::value_print): New member function.
6466 * language.h (language_data): Delete la_value_print field.
6467 (language_defn::value_print): Declare new member function.
6468 (LA_VALUE_PRINT): Update call to value_print.
6469 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6470 * objc-lang.c (objc_language_data): Likewise.
6471 * opencl-lang.c (opencl_language_data): Likewise.
6472 * p-lang.c (pascal_language_data): Likewise.
6473 (pascal_language::value_print): New member function.
6474 * rust-lang.c (rust_language_data): Delete la_value_print
6475 initializer.
6476
6477 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6478
6479 * ada-lang.c (ada_watch_location_expression): Rename to
6480 ada_language::watch_location_expression.
6481 (ada_language_data): Delete la_watch_location_expression
6482 initializer.
6483 (ada_language::watch_location_expression): New member function,
6484 implementation from ada_watch_location_expression.
6485 * breakpoint.c (watch_command_1): Update call to
6486 watch_location_expression.
6487 * c-lang.c (c_watch_location_expression): Rename to
6488 language_defn::watch_location_expression.
6489 (c_language_data): Delete la_watch_location_expression
6490 initializer.
6491 (cplus_language_data): Likewise.
6492 (asm_language_data): Likewise.
6493 (minimal_language_data): Likewise.
6494 * c-lang.h (c_watch_location_expression): Delete declaration.
6495 * d-lang.c (d_language_data): Delete la_watch_location_expression
6496 initializer.
6497 * f-lang.c (f_language_data): Likewise.
6498 * go-lang.c (go_language_data): Likewise.
6499 * language.c (language_defn::watch_location_expression): Member
6500 function implementation from c_watch_location_expression.
6501 (unknown_language_data): Delete la_watch_location_expression
6502 initializer.
6503 (auto_language_data): Likewise.
6504 * language.h (language_data): Delete la_watch_location_expression
6505 field.
6506 (language_defn::watch_location_expression): Declare new member
6507 function.
6508 * m2-lang.c (m2_language_data): Delete
6509 la_watch_location_expression initializer.
6510 * objc-lang.c (objc_language_data): Likewise.
6511 * opencl-lang.c (opencl_language_data): Likewise.
6512 * p-lang.c (pascal_language_data): Likewise.
6513 * rust-lang.c (rust_watch_location_expression): Rename to
6514 rust_language::watch_location_expression.
6515 (rust_language_data): Delete la_watch_location_expression
6516 initializer.
6517 (rust_language::watch_location_expression): New member function,
6518 implementation from rust_watch_location_expression.
6519
6520 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6521
6522 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6523 ada_language::collect_symbol_completion_matches.
6524 (ada_language_data): Delete la_collect_symbol_completion_matches
6525 initializer.
6526 (ada_language::collect_symbol_completion_matches): New member
6527 function, implementation from
6528 ada_collect_symbol_completion_matches.
6529 * c-lang.c (c_language_data): Delete
6530 la_collect_symbol_completion_matches initializer.
6531 (cplus_language_data): Likewise.
6532 (asm_language_data): Likewise.
6533 (minimal_language_data): Likewise.
6534 * d-lang.c (d_language_data): Likewise.
6535 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6536 f_language::collect_symbol_completion_matches.
6537 (f_language_data): Delete la_collect_symbol_completion_matches
6538 initializer.
6539 (f_language::collect_symbol_completion_matches) New member
6540 function, implementation from f_collect_symbol_completion_matches.
6541 * go-lang.c (go_language_data): Delete
6542 la_collect_symbol_completion_matches initializer.
6543 * language.c (unknown_language_data): Likewise.
6544 (auto_language_data): Likewise.
6545 * language.h (language_data): Delete
6546 la_collect_symbol_completion_matches field.
6547 (language_defn::collect_symbol_completion_matches): New member
6548 function.
6549 * m2-lang.c (m2_language_data): Delete
6550 la_collect_symbol_completion_matches initializer.
6551 * objc-lang.c (objc_language_data): Likewise.
6552 * opencl-lang.c (opencl_language_data): Likewise.
6553 * p-lang.c (pascal_language_data): Likewise.
6554 * rust-lang.c (rust_language_data): Likewise.
6555 * symtab.c (default_collect_symbol_completion_matches): Delete.
6556 (collect_symbol_completion_matches): Update call to
6557 collect_symbol_completion_matches.
6558 (collect_symbol_completion_matches_type): Likewise.
6559 * symtab.h (default_collect_symbol_completion_matches): Delete
6560 declaration.
6561
6562 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6565 (ada_language_data): Delete la_word_break_characters initializer.
6566 (ada_language::word_break_characters): New member function.
6567 * c-lang.c (c_language_data): Delete la_word_break_characters
6568 initializer.
6569 (cplus_language_data): Likewise.
6570 (asm_language_data): Likewise.
6571 (minimal_language_data): Likewise.
6572 * completer.c: Update global comment.
6573 (advance_to_expression_complete_word_point): Update call to
6574 word_break_characters.
6575 (complete_files_symbols): Likewise.
6576 (complete_line_internal_1): Likewise.
6577 (default_completer_handle_brkchars): Likewise.
6578 (skip_quoted_chars): Likewise.
6579 * d-lang.c (d_language_data): Delete la_word_break_characters
6580 initializer.
6581 * f-lang.c (f_word_break_characters): Delete.
6582 (f_language_data): Delete la_word_break_characters initializer.
6583 (f_language::word_break_characters): New member function.
6584 * go-lang.c (go_language_data): Delete la_word_break_characters
6585 initializer.
6586 * language.c (unknown_language_data): Likewise.
6587 (auto_language_data): Likewise.
6588 * language.h (default_word_break_characters): Move declaration to
6589 earlier in the file.
6590 (language_data): Delete la_word_break_characters field.
6591 (language_defn::word_break_characters): New member function.
6592 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6593 initializer.
6594 * objc-lang.c (objc_language_data): Likewise.
6595 * opencl-lang.c (opencl_language_data): Likewise.
6596 * p-lang.c (pascal_language_data): Likewise.
6597 * rust-lang.c (rust_language_data): Likewise.
6598
6599 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6600
6601 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6602 (ada_language_data): Delete la_get_symbol_name_matcher
6603 initializer.
6604 (language_defn::get_symbol_name_matcher_inner): New member
6605 function.
6606 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6607 initializer.
6608 (cplus_language_data): Likewise.
6609 (cplus_language::get_symbol_name_matcher_inner): New member
6610 function.
6611 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6612 (minimal_language_data): Likewise.
6613 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6614 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6615 initializer.
6616 * dictionary.c (iter_match_first_hashed): Update call to
6617 get_symbol_name_matcher.
6618 (iter_match_next_hashed): Likewise.
6619 (iter_match_next_linear): Likewise.
6620 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6621 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6622 initializer.
6623 (f_language::get_symbol_name_matcher_inner): New member function.
6624 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6625 initializer.
6626 * language.c (default_symbol_name_matcher): Update header comment,
6627 make static.
6628 (language_defn::get_symbol_name_matcher): New definition.
6629 (language_defn::get_symbol_name_matcher_inner): Likewise.
6630 (get_symbol_name_matcher): Delete.
6631 (unknown_language_data): Delete la_get_symbol_name_matcher
6632 initializer.
6633 (auto_language_data): Likewise.
6634 * language.h (language_data): Delete la_get_symbol_name_matcher
6635 field.
6636 (language_defn::get_symbol_name_matcher): New member function.
6637 (language_defn::get_symbol_name_matcher_inner): Likewise.
6638 (default_symbol_name_matcher): Delete declaration.
6639 * linespec.c (find_methods): Update call to
6640 get_symbol_name_matcher.
6641 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6642 initializer.
6643 * minsyms.c (lookup_minimal_symbol): Update call to
6644 get_symbol_name_matcher.
6645 (iterate_over_minimal_symbols): Likewise.
6646 * objc-lang.c (objc_language_data): Delete
6647 la_get_symbol_name_matcher initializer.
6648 * opencl-lang.c (opencl_language_data): Likewise.
6649 * p-lang.c (pascal_language_data): Likewise.
6650 * psymtab.c (psymbol_name_matches): Update call to
6651 get_symbol_name_matcher.
6652 * rust-lang.c (rust_language_data): Delete
6653 la_get_symbol_name_matcher initializer.
6654 * symtab.c (symbol_matches_search_name): Update call to
6655 get_symbol_name_matcher.
6656 (compare_symbol_name): Likewise.
6657
6658 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6659
6660 * ada-lang.c (ada_language_data): Delete la_compute_program
6661 initializer.
6662 * c-lang.c (c_language_data): Likewise.
6663 (c_language::compute_program): New member function.
6664 (cplus_language_data): Delete la_compute_program initializer.
6665 (cplus_language::compute_program): New member function.
6666 (asm_language_data): Delete la_compute_program initializer.
6667 (minimal_language_data): Likewise.
6668 * c-lang.h (c_compute_program): Update comment.
6669 (cplus_compute_program): Likewise.
6670 * compile/compile-c-support.c (c_compute_program): Likewise.
6671 (cplus_compute_program): Likewise.
6672 * compile/compile.c (compile_to_object): Update call to
6673 la_compute_program.
6674 * d-lang.c (d_language_data): Delete la_compute_program
6675 initializer.
6676 * f-lang.c (f_language_data): Likewise.
6677 * go-lang.c (go_language_data): Likewise.
6678 * language.c (unknown_language_data): Likewise.
6679 (auto_language_data): Likewise.
6680 * language.h (language_data): Delete la_compute_program field.
6681 (language_defn::compute_program): New member function.
6682 * m2-lang.c (m2_language_data): Delete la_compute_program
6683 initializer.
6684 * objc-lang.c (objc_language_data): Likewise.
6685 * opencl-lang.c (opencl_language_data): Likewise.
6686 * p-lang.c (pascal_language_data): Likewise.
6687 * rust-lang.c (rust_language_data): Likewise.
6688
6689 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6690
6691 * ada-lang.c (ada_language_data) Delete
6692 la_class_name_from_physname initializer.
6693 * c-lang.c (c_language_data): Likewise.
6694 (cplus_language_data): Likewise.
6695 (cplus_language::class_name_from_physname): New member function.
6696 (asm_language_data): Delete la_class_name_from_physname
6697 initializer.
6698 (minimal_language_data): Likewise.
6699 * d-lang.c (d_language_data): Likewise.
6700 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6701 method on language_defn class.
6702 (guess_full_die_structure_name): Likewise.
6703 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6704 initializer.
6705 * go-lang.c (go_language_data): Likewise.
6706 * language.c (language_class_name_from_physname): Delete.
6707 (unk_lang_class_name): Delete.
6708 (unknown_language_data): Delete la_class_name_from_physname
6709 initializer.
6710 (auto_language_data): Likewise.
6711 * language.h (language_data): Delete la_class_name_from_physname
6712 field.
6713 (language_defn::class_name_from_physname): New function.
6714 (language_class_name_from_physname): Delete declaration.
6715 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6716 initializer.
6717 * objc-lang.c (objc_language_data): Likewise.
6718 * opencl-lang.c (opencl_language_data): Likewise.
6719 * p-lang.c (pascal_language_data): Likewise.
6720 * rust-lang.c (rust_language_data): Likewise.
6721
6722 2020-06-16 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-data.h (STATUS_NAME): New macro.
6725 * tui/tui-layout.c (tui_remove_some_windows)
6726 (initialize_known_windows, tui_register_window)
6727 (tui_layout_split::remove_windows, initialize_layouts)
6728 (tui_new_layout_command): Don't use hard-coded window names.
6729
6730 2020-06-16 Tom Tromey <tom@tromey.com>
6731
6732 PR tui/25348:
6733 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6734 tui_initialize_readline. Only run once. Call rl_initialize.
6735 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6736 tui_initialize_readline.
6737 * tui/tui-io.c (tui_setup_io): Call
6738 tui_ensure_readline_initialized.
6739 * tui/tui-interp.c (tui_interp::init): Update.
6740
6741 2020-06-16 Tom Tromey <tom@tromey.com>
6742
6743 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6744 Also preserve the status window.
6745
6746 2020-06-16 Tom Tromey <tom@tromey.com>
6747
6748 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6749 where m_window==nullptr.
6750
6751 2020-06-15 Tom Tromey <tromey@adacore.com>
6752
6753 * windows-nat.c (windows_nat::handle_output_debug_string):
6754 Update.
6755 (windows_nat::handle_ms_vc_exception): Update.
6756 * target.h (target_read_string): Change API.
6757 * target.c (target_read_string): Change API.
6758 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6759 Update.
6760 * solib-frv.c (frv_current_sos): Update.
6761 * solib-dsbt.c (dsbt_current_sos): Update.
6762 * solib-darwin.c (darwin_current_sos): Update.
6763 * linux-thread-db.c (inferior_has_bug): Update.
6764 * expprint.c (print_subexp_standard): Update.
6765 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6766 (ada_exception_message_1): Update.
6767
6768 2020-06-15 Tom Tromey <tromey@adacore.com>
6769
6770 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6771
6772 2020-06-15 Tom Tromey <tromey@adacore.com>
6773
6774 * valprint.c (read_string): Update comment.
6775 * target.c (MIN): Remove.
6776 (target_read_string): Rewrite.
6777
6778 2020-06-15 Tom Tromey <tromey@adacore.com>
6779
6780 * corefile.c (read_memory_string): Remove.
6781 * ada-valprint.c (ada_value_print_ptr): Update.
6782 * ada-lang.h (ada_tag_name): Change return type.
6783 * ada-lang.c (type_from_tag): Update.
6784 (ada_tag_name_from_tsd): Change return type. Use
6785 target_read_string.
6786 (ada_tag_name): Likewise.
6787 * gdbcore.h (read_memory_string): Don't declare.
6788
6789 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6790
6791 * symtab.c (rbreak_command): Ignore Windows drive colon.
6792
6793 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6794
6795 * NEWS: Mention removed GDBserver host support.
6796
6797 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6798
6799 * features/riscv/rebuild-csr-xml.sh: Updated.
6800
6801 2020-06-11 Tom Tromey <tom@tromey.com>
6802
6803 PR gdb/18318:
6804 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6805
6806 2020-06-09 Jonny Grant <jg@jguk.org>
6807 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * main.c (captured_main_1): Don't print new line after help.
6810 (print_gdb_help): add mailing list and IRC channel information
6811 to --help. Add new lines between items in the footer. Remove
6812 quotes around bug url.
6813
6814 2020-06-11 Keith Seitz <keiths@redhat.com>
6815
6816 PR gdb/21356
6817 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6818 Resolve typedefs for type length calculations.
6819
6820 2020-06-10 Tom de Vries <tdevries@suse.de>
6821
6822 PR ada/24713
6823 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6824 (write_psymbols): Enable .gdb_index for ada.
6825 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6826 ada.
6827
6828 2020-06-10 Tom de Vries <tdevries@suse.de>
6829
6830 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6831 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6832 namei" instead of "const char *name" argument.
6833 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6834 dw2_symtab_iter_init.
6835
6836 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6837
6838 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6839 to use type::field and field::type instead.
6840
6841 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6844 to use field::type instead.
6845
6846 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6847
6848 * gdbtypes.h (struct field) <type, set_type>: New methods.
6849 Rename `type` field to...
6850 <m_type>: ... this. Change references throughout to use type or
6851 set_type methods.
6852 (FIELD_TYPE): Use field::type. Change call sites that modify
6853 the field's type to use field::set_type instead.
6854
6855 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6858 to use type::index_type instead.
6859
6860 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6863 methods.
6864 (TYPE_INDEX_TYPE): Use type::index_type.
6865 * gdbtypes.c (create_array_type_with_stride): Likewise.
6866
6867 2020-06-07 Tom Tromey <tom@tromey.com>
6868
6869 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6870 parameter.
6871 (generic_value_print): Update.
6872
6873 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6874
6875 Revert commit 982a38f60b0.
6876 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6877
6878 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6881 avoid use after free.
6882
6883 2020-06-05 Tom de Vries <tdevries@suse.de>
6884
6885 * NEWS: Fix typos.
6886
6887 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6890 the per_bfd object.
6891 (dwarf2_read_debug_names): Likewise.
6892 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6893 object when re-using a per_bfd object with an index.
6894
6895 2020-06-03 Tom de Vries <tdevries@suse.de>
6896
6897 PR symtab/26046
6898 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6899 children for C++.
6900 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6901 DW_TAG_subprogram.
6902
6903 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6904
6905 * ada-lang.c (ada_language_data): Delete skip_trampoline
6906 initializer.
6907 * c-lang.c (c_language_data): Likewise.
6908 (cplus_language_data): Likewise.
6909 (cplus_language::skip_trampoline): New member function.
6910 (asm_language_data): Delete skip_trampoline initializer.
6911 (minimal_language_data): Likewise.
6912 * d-lang.c (d_language_data): Likewise.
6913 * f-lang.c (f_language_data): Likewise.
6914 * go-lang.c (go_language_data): Likewise.
6915 * language.c (unk_lang_trampoline): Delete function.
6916 (skip_language_trampoline): Update.
6917 (unknown_language_data): Delete skip_trampoline initializer.
6918 (auto_language_data): Likewise.
6919 * language.h (language_data): Delete skip_trampoline field.
6920 (language_defn::skip_trampoline): New function.
6921 * m2-lang.c (m2_language_data): Delete skip_trampoline
6922 initializer.
6923 * objc-lang.c (objc_skip_trampoline): Delete function, move
6924 implementation to objc_language::skip_trampoline.
6925 (objc_language_data): Delete skip_trampoline initializer.
6926 (objc_language::skip_trampoline): New member function with
6927 implementation from objc_skip_trampoline.
6928 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6929 initializer.
6930 * p-lang.c (pascal_language_data): Likewise.
6931 * rust-lang.c (rust_language_data): Likewise.
6932
6933 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6934
6935 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6936 (ada_language::demangle): New member function.
6937 * c-lang.c (c_language_data): Delete la_demangle initializer.
6938 (cplus_language_data): Delete la_demangle initializer.
6939 (cplus_language::demangle): New member function.
6940 (asm_language_data): Delete la_demangle initializer.
6941 (minimal_language_data): Delete la_demangle initializer.
6942 * d-lang.c (d_language_data): Delete la_demangle initializer.
6943 (d_language::demangle): New member function.
6944 * f-lang.c (f_language_data): Delete la_demangle initializer.
6945 (f_language::demangle): New member function.
6946 * go-lang.c (go_language_data): Delete la_demangle initializer.
6947 (go_language::demangle): New member function.
6948 * language.c (language_demangle): Update.
6949 (unk_lang_demangle): Delete.
6950 (unknown_language_data): Delete la_demangle initializer.
6951 (unknown_language::demangle): New member function.
6952 (auto_language_data): Delete la_demangle initializer.
6953 (auto_language::demangle): New member function.
6954 * language.h (language_data): Delete la_demangle field.
6955 (language_defn::demangle): New function.
6956 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6957 * objc-lang.c (objc_language_data): Delete la_demangle
6958 initializer.
6959 (objc_language::demangle): New member function.
6960 * opencl-lang.c (opencl_language_data): Delete la_demangle
6961 initializer.
6962 * p-lang.c (pascal_language_data): Likewise.
6963 * rust-lang.c (rust_language_data): Likewise.
6964 (rust_language::demangle): New member function.
6965
6966 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * ada-lang.c (ada_language_data): Delete la_print_type
6969 initializer.
6970 (ada_language::print_type): New member function.
6971 * c-lang.c (c_language_data): Delete la_print_type initializer.
6972 (c_language::print_type): New member function.
6973 (cplus_language_data): Delete la_print_type initializer.
6974 (cplus_language::print_type): New member function.
6975 (asm_language_data): Delete la_print_type initializer.
6976 (asm_language::print_type): New member function.
6977 (minimal_language_data): Delete la_print_type initializer.
6978 (minimal_language::print_type): New member function.
6979 * d-lang.c (d_language_data): Delete la_print_type initializer.
6980 (d_language::print_type): New member function.
6981 * f-lang.c (f_language_data): Delete la_print_type initializer.
6982 (f_language::print_type): New member function.
6983 * go-lang.c (go_language_data): Delete la_print_type initializer.
6984 (go_language::print_type): New member function.
6985 * language.c (unk_lang_print_type): Delete.
6986 (unknown_language_data): Delete la_print_type initializer.
6987 (unknown_language::print_type): New member function.
6988 (auto_language_data): Delete la_print_type initializer.
6989 (auto_language::print_type): New member function.
6990 * language.h (language_data): Delete la_print_type field.
6991 (language_defn::print_type): New function.
6992 (LA_PRINT_TYPE): Update.
6993 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6994 (m2_language::print_type): New member function.
6995 * objc-lang.c (objc_language_data): Delete la_print_type
6996 initializer.
6997 (objc_language::print_type): New member function.
6998 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6999 to opencl_language::print_type.
7000 (opencl_language_data): Delete la_print_type initializer.
7001 (opencl_language::print_type): New member function, implementation
7002 from opencl_print_type.
7003 * p-lang.c (pascal_language_data): Delete la_print_type
7004 initializer.
7005 (pascal_language::print_type): New member function.
7006 * rust-lang.c (rust_print_type): Delete, implementation moved to
7007 rust_language::print_type.
7008 (rust_language_data): Delete la_print_type initializer.
7009 (rust_language::print_type): New member function, implementation
7010 from rust_print_type.
7011
7012 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7013
7014 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7015 implementation moves to...
7016 (ada_language::sniff_from_mangled_name): ...here. Update return
7017 type.
7018 (ada_language_data): Delete la_sniff_from_mangled_name
7019 initializer.
7020 * c-lang.c (c_language_data): Likewise.
7021 (cplus_language_data): Likewise.
7022 (cplus_language::sniff_from_mangled_name): New member function,
7023 implementation taken from gdb_sniff_from_mangled_name.
7024 (asm_language_data): Delete la_sniff_from_mangled_name
7025 initializer.
7026 (minimal_language_data): Likewise.
7027 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7028 implementation moves to cplus_language::sniff_from_mangled_name.
7029 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7030 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7031 moves to...
7032 (d_language::sniff_from_mangled_name): ...here.
7033 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7034 * f-lang.c (f_language_data): Likewise.
7035 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7036 moves to...
7037 (go_language::sniff_from_mangled_name): ...here.
7038 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7039 * language.c (language_sniff_from_mangled_name): Delete.
7040 (unknown_language_data): Delete la_sniff_from_mangled_name
7041 initializer.
7042 (auto_language_data): Likewise.
7043 * language.h (language_data): Delete la_sniff_from_mangled_name
7044 field.
7045 (language_defn::sniff_from_mangled_name): New function.
7046 (language_sniff_from_mangled_name): Delete declaration.
7047 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7048 field.
7049 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7050 implementation moves to...
7051 (objc_language::sniff_from_mangled_name): ...here.
7052 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7053 * opencl-lang.c (opencl_language_data): Likewise.
7054 * p-lang.c (pascal_language_data): Likewise.
7055 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7056 implementation moves to...
7057 (rust_language::sniff_from_mangled_name): ...here.
7058 (rust_language_data): Delete la_sniff_from_mangled_name
7059 initializer.
7060 * symtab.c (symbol_find_demangled_name): Call
7061 sniff_from_mangled_name member function.
7062
7063 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7064
7065 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7066 initializer.
7067 * c-lang.c (c_language_data): Likewise.
7068 (cplus_language_data): Likewise.
7069 (cplus_language::search_name_hash): New member function.
7070 (asm_language_data): Delete la_search_name_hash initializer.
7071 (minimal_language_data): Likewise.
7072 * d-lang.c (d_language_data): Likewise.
7073 * dictionary.c (default_search_name_hash): Rename to...
7074 (language_defn::search_name_hash): ...this.
7075 * f-lang.c (f_language_data): Likewise.
7076 (f_language::search_name_hash): New member function.
7077 * go-lang.c (go_language_data): Delete la_search_name_hash
7078 initializer.
7079 * language.c (unknown_language_data): Likewise.
7080 (auto_language_data): Likewise.
7081 * language.h (struct language_data): Delete la_search_name_hash
7082 field.
7083 (language_defn::search_name_hash): Declare new member function.
7084 (default_search_name_hash): Delete declaration.
7085 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7086 initializer.
7087 * objc-lang.c (objc_language_data): Likewise.
7088 * opencl-lang.c (opencl_language_data): Likewise.
7089 * p-lang.c (pascal_language_data): Likewise.
7090 * rust-lang.c (rust_language_data): Likewise.
7091 * symtab.c (search_name_hash): Update call.
7092
7093 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7096 initializer.
7097 * c-lang.c (class compile_instance): Declare.
7098 (c_language_data): Delete la_get_compile_instance initializer.
7099 (c_language::get_compile_instance): New member function.
7100 (cplus_language_data): Delete la_get_compile_instance initializer.
7101 (cplus_language::get_compile_instance): New member function.
7102 (asm_language_data): Delete la_get_compile_instance initializer.
7103 (minimal_language_data): Likewise.
7104 * c-lang.h (c_get_compile_context): Update comment.
7105 (cplus_get_compile_context): Update comment.
7106 * compile/compile.c (compile_to_object): Update calls, don't rely
7107 on function pointer being NULL.
7108 * d-lang.c (d_language_data): Delete la_get_compile_instance
7109 initializer.
7110 * f-lang.c (f_language_data): Likewise.
7111 * go-lang.c (go_language_data): Likewise.
7112 * language.c (unknown_language_data): Likewise.
7113 (auto_language_data): Likewise.
7114 * language.h (language_data): Delete la_get_compile_instance field.
7115 (language_defn::get_compile_instance): New member function.
7116 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7117 initializer.
7118 * objc-lang.c (objc_language_data): Likewise.
7119 * opencl-lang.c (opencl_language_data): Likewise.
7120 * p-lang.c (pascal_language_data): Likewise.
7121 * rust-lang.c (rust_language_data): Likewise.
7122
7123 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * ada-lang.c (ada_add_all_symbols): Update comment.
7126 (ada_iterate_over_symbols): Delete, move implementation to...
7127 (ada_language::iterate_over_symbols): ...here, a new member
7128 function, rewrite to use range based for loop.
7129 (ada_language_data): Delete la_iterate_over_symbols initializer.
7130 * c-lang.c (c_language_data): Likewise.
7131 (cplus_language_data): Likewise.
7132 (asm_language_data): Likewise.
7133 (minimal_language_data): Likewise.
7134 * d-lang.c (d_language_data): Likewise.
7135 * f-lang.c (f_language_data): Likewise.
7136 * go-lang.c (go_language_data): Likewise.
7137 * language.c (unknown_language_data): Likewise.
7138 (auto_language_data): Likewise.
7139 * language.h (language_data): Delete la_iterate_over_symbols field.
7140 (language_defn::iterate_over_symbols): New member function.
7141 (LA_ITERATE_OVER_SYMBOLS): Update.
7142 * linespec.c (iterate_over_all_matching_symtabs): Update.
7143 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7144 initializer.
7145 * objc-lang.c (objc_language_data): Likewise.
7146 * opencl-lang.c (opencl_language_data): Likewise.
7147 * p-lang.c (pascal_language_data): Likewise.
7148 * rust-lang.c (rust_language_data): Likewise.
7149
7150 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * ada-lang.c (ada_language_data): Delete
7153 la_lookup_transparent_type initializer.
7154 * c-lang.c (c_language_data): Likewise.
7155 (cplus_language_data): Likewise.
7156 (cplus_language::lookup_transparent_type): New member function.
7157 (asm_language_data): Delete la_lookup_transparent_type
7158 initializer.
7159 (minimal_language_data): Likewise.
7160 * d-lang.c (d_language_data): Likewise.
7161 * f-lang.c (f_language_data): Likewise.
7162 * go-lang.c (go_language_data): Likewise.
7163 * language.c (unknown_language_data): Likewise.
7164 (auto_language_data): Likewise.
7165 * language.h (struct language_data): Delete
7166 la_lookup_transparent_type field.
7167 (language_defn::lookup_transparent_type): New member function.
7168 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7169 initializer.
7170 * objc-lang.c (objc_language_data): Likewise.
7171 * opencl-lang.c (opencl_language_data): Likewise.
7172 * p-lang.c (pascal_language_data): Likewise.
7173 * rust-lang.c (rust_language_data): Likewise.
7174 * symtab.c (symbol_matches_domain): Update call.
7175
7176 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7177
7178 * ada-lang.c (ada_language_arch_info): Delete function, move
7179 implementation to...
7180 (ada_language::language_arch_info): ...here, a new member
7181 function.
7182 (ada_language_data): Delete la_language_arch_info.
7183 * c-lang.c (c_language_data): Likewise.
7184 (c_language::language_arch_info): New member function.
7185 (cplus_language_arch_info): Delete function, move
7186 implementation to...
7187 (cplus_language::language_arch_info): ...here, a new member
7188 function.
7189 (cplus_language_data): Delete la_language_arch_info.
7190 (asm_language_data): Likewise.
7191 (asm_language::language_arch_info): New member function.
7192 (minimal_language_data): Delete la_language_arch_info.
7193 (minimal_language::language_arch_info): New member function.
7194 * d-lang.c (d_language_arch_info): Delete function, move
7195 implementation to...
7196 (d_language::language_arch_info): ...here, a new member
7197 function.
7198 (d_language_data): Delete la_language_arch_info.
7199 * f-lang.c (f_language_arch_info): Delete function, move
7200 implementation to...
7201 (f_language::language_arch_info): ...here, a new member
7202 function.
7203 (f_language_data): Delete la_language_arch_info.
7204 * go-lang.c (go_language_arch_info): Delete function, move
7205 implementation to...
7206 (go_language::language_arch_info): ...here, a new member
7207 function.
7208 (go_language_data): Delete la_language_arch_info.
7209 * language.c (unknown_language_data): Likewise.
7210 (unknown_language::language_arch_info): New member function.
7211 (auto_language_data): Delete la_language_arch_info.
7212 (auto_language::language_arch_info): New member function.
7213 (language_gdbarch_post_init): Update call to
7214 la_language_arch_info.
7215 * language.h (language_data): Delete la_language_arch_info
7216 function pointer.
7217 (language_defn::language_arch_info): New function.
7218 * m2-lang.c (m2_language_arch_info): Delete function, move
7219 implementation to...
7220 (m2_language::language_arch_info): ...here, a new member
7221 function.
7222 (m2_language_data): Delete la_language_arch_info.
7223 * objc-lang.c (objc_language_arch_info): Delete function, move
7224 implementation to...
7225 (objc_language::language_arch_info): ...here, a new member
7226 function.
7227 (objc_language_data): Delete la_language_arch_info.
7228 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7229 implementation to...
7230 (opencl_language::language_arch_info): ...here, a new member
7231 function.
7232 (opencl_language_data): Delete la_language_arch_info.
7233 * p-lang.c (pascal_language_arch_info): Delete function, move
7234 implementation to...
7235 (pascal_language::language_arch_info): ...here, a new member
7236 function.
7237 (pascal_language_data): Delete la_language_arch_info.
7238 * rust-lang.c (rust_language_arch_info): Delete function, move
7239 implementation to...
7240 (rust_language::language_arch_info): ...here, a new member
7241 function.
7242 (rust_language_data): Delete la_language_arch_info.
7243
7244 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7245
7246 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7247 initializer.
7248 * c-lang.c (c_language_data): Likewise.
7249 (cplus_language_data): Likewise.
7250 (cplus_language::pass_by_reference_info): New method.
7251 (asm_language_data): Delete la_pass_by_reference initializer.
7252 (minimal_language_data): Likewise.
7253 * cp-abi.c (cp_pass_by_reference): Remove use of
7254 default_pass_by_reference.
7255 * d-lang.c (d_language_data): Likewise.
7256 * f-lang.c (f_language_data): Likewise.
7257 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7258 default_pass_by_reference.
7259 * go-lang.c (go_language_data): Likewise.
7260 * language.c (language_pass_by_reference): Update.
7261 (default_pass_by_reference): Delete.
7262 (unknown_language_data): Delete la_pass_by_reference
7263 initializer.
7264 (auto_language_data): Likewise.
7265 * language.h (struct language_data): Delete la_pass_by_reference
7266 field.
7267 (language_defn::pass_by_reference_info): New member function.
7268 (default_pass_by_reference): Delete declaration.
7269 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7270 initializer.
7271 * objc-lang.c (objc_language_data): Likewise.
7272 * opencl-lang.c (opencl_language_data): Likewise.
7273 * p-lang.c (pascal_language_data): Likewise.
7274 * rust-lang.c (rust_language_data): Likewise.
7275
7276 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * ada-lang.c (ada_read_var_value): Delete function, move
7279 implementation to...
7280 (ada_language::read_var_value): ...here.
7281 (ada_language_data): Delete la_read_var_value initializer.
7282 * c-lang.c (c_language_data): Likewise.
7283 (cplus_language_data): Likewise.
7284 (minimal_language_data): Likewise.
7285 * d-lang.c (d_language_data): Likewise.
7286 * f-lang.c (f_language_data): Likewise.
7287 * findvar.c (default_read_var_value): Rename to...
7288 (language_defn::read_var_value): ...this.
7289 * findvar.c (read_var_value): Update header comment, and change to
7290 call member function instead of function pointer.
7291 * go-lang.c (go_language_data): Likewise.
7292 * language.c (unknown_language_data): Delete la_read_var_value
7293 initializer.
7294 (auto_language_data): Likewise.
7295 * language.h (struct language_data): Delete la_read_var_value
7296 field.
7297 (language_defn::read_var_value): New member function.
7298 (default_read_var_value): Delete declaration.
7299 * m2-lang.c (m2_language_data): Delete la_read_var_value
7300 initializer.
7301 * objc-lang.c (objc_language_data): Likewise.
7302 * opencl-lang.c (opencl_language_data): Likewise.
7303 * p-lang.c (pascal_language_data): Likewise.
7304 * rust-lang.c (rust_language_data): Likewise.
7305 * value.h (default_read_var_value): Delete declaration.
7306
7307 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7308
7309 * ada-lang.c (ada_print_array_index): Delete function, move
7310 implementation to...
7311 (ada_language::print_array_index): ...here.
7312 (ada_language_data): Delete la_print_array_index initializer.
7313 * c-lang.c (c_language_data): Likewise.
7314 (cplus_language_data): Likewise.
7315 (minimal_language_data): Likewise.
7316 * d-lang.c (d_language_data): Likewise.
7317 * f-lang.c (f_language_data): Likewise.
7318 * go-lang.c (go_language_data): Likewise.
7319 * language.c (default_print_array_index): Delete function, move
7320 implementation to...
7321 (language_defn::print_array_index): ...here.
7322 (unknown_language_data): Delete la_print_array_index initializer.
7323 (auto_language_data): Likewise.
7324 * language.h (struct language_data): Delete la_print_array_index
7325 field.
7326 (language_defn::print_array_index): New member function.
7327 (LA_PRINT_ARRAY_INDEX): Update.
7328 (default_print_array_index): Delete declaration.
7329 * m2-lang.c (m2_language_data): Delete la_print_array_index
7330 initializer.
7331 * objc-lang.c (objc_language_data): Likewise.
7332 * opencl-lang.c (opencl_language_data): Likewise.
7333 * p-lang.c (pascal_language_data): Likewise.
7334 * rust-lang.c (rust_language_data): Likewise.
7335
7336 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7337
7338 * gdb/ada-lang.c (ada_language_defn): Convert to...
7339 (ada_language_data): ...this.
7340 (class ada_language): New class.
7341 (ada_language_defn): New static global.
7342 * gdb/c-lang.c (c_language_defn): Convert to...
7343 (c_language_data): ...this.
7344 (class c_language): New class.
7345 (c_language_defn): New static global.
7346 (cplus_language_defn): Convert to...
7347 (cplus_language_data): ...this.
7348 (class cplus_language): New class.
7349 (cplus_language_defn): New static global.
7350 (asm_language_defn): Convert to...
7351 (asm_language_data): ...this.
7352 (class asm_language): New class.
7353 (asm_language_defn): New static global.
7354 (minimal_language_defn): Convert to...
7355 (minimal_language_data): ...this.
7356 (class minimal_language): New class.
7357 (minimal_language_defn): New static global.
7358 * gdb/d-lang.c (d_language_defn): Convert to...
7359 (d_language_data): ...this.
7360 (class d_language): New class.
7361 (d_language_defn): New static global.
7362 * gdb/f-lang.c (f_language_defn): Convert to...
7363 (f_language_data): ...this.
7364 (class f_language): New class.
7365 (f_language_defn): New static global.
7366 * gdb/go-lang.c (go_language_defn): Convert to...
7367 (go_language_data): ...this.
7368 (class go_language): New class.
7369 (go_language_defn): New static global.
7370 * gdb/language.c (unknown_language_defn): Remove declaration.
7371 (current_language): Initialize to nullptr, real initialization is
7372 moved to _initialize_language.
7373 (languages): Delete global.
7374 (language_defn::languages): Define.
7375 (set_language_command): Use language_defn::languages.
7376 (set_language): Likewise.
7377 (range_error): Likewise.
7378 (language_enum): Likewise.
7379 (language_def): Likewise.
7380 (add_set_language_command): Use language_def::languages for the
7381 language list, and language_def to lookup language pointers.
7382 (skip_language_trampoline): Use language_defn::languages.
7383 (unknown_language_defn): Convert to...
7384 (unknown_language_data): ...this.
7385 (class unknown_language): New class.
7386 (unknown_language_defn): New static global.
7387 (auto_language_defn): Convert to...
7388 (auto_language_data): ...this.
7389 (class auto_language): New class.
7390 (auto_language_defn): New static global.
7391 (language_gdbarch_post_init): Use language_defn::languages.
7392 (_initialize_language): Initialize current_language.
7393 * gdb/language.h (struct language_defn): Rename to...
7394 (struct language_data): ...this.
7395 (struct language_defn): New.
7396 (auto_language_defn): Delete.
7397 (unknown_language_defn): Delete.
7398 (minimal_language_defn): Delete.
7399 (ada_language_defn): Delete.
7400 (asm_language_defn): Delete.
7401 (c_language_defn): Delete.
7402 (cplus_language_defn): Delete.
7403 (d_language_defn): Delete.
7404 (f_language_defn): Delete.
7405 (go_language_defn): Delete.
7406 (m2_language_defn): Delete.
7407 (objc_language_defn): Delete.
7408 (opencl_language_defn): Delete.
7409 (pascal_language_defn): Delete.
7410 (rust_language_defn): Delete.
7411 * gdb/m2-lang.c (m2_language_defn): Convert to...
7412 (m2_language_data): ...this.
7413 (class m2_language): New class.
7414 (m2_language_defn): New static global.
7415 * gdb/objc-lang.c (objc_language_defn): Convert to...
7416 (objc_language_data): ...this.
7417 (class objc_language): New class.
7418 (objc_language_defn): New static global.
7419 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7420 (opencl_language_data): ...this.
7421 (class opencl_language): New class.
7422 (opencl_language_defn): New static global.
7423 * gdb/p-lang.c (pascal_language_defn): Convert to...
7424 (pascal_language_data): ...this.
7425 (class pascal_language): New class.
7426 (pascal_language_defn): New static global.
7427 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7428 language pointer, update comment format.
7429 * gdb/rust-lang.c (rust_language_defn): Convert to...
7430 (rust_language_data): ...this.
7431 (class rust_language): New class.
7432 (rust_language_defn): New static global.
7433
7434 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7437 member variable.
7438 <m_stmt_at_address>: New member variable.
7439 (lnp_state_machine::record_line): Don't record some lines, update
7440 tracking of is_stmt at the same address.
7441 (lnp_state_machine::lnp_state_machine): Initialise new member
7442 variables.
7443
7444 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7445
7446 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7447 "-include gnu-nat-mig.h".
7448 * gnu-nat-mig.h: New file.
7449 * gnu-nat.c: Include "gnu-nat-mig.h".
7450 (exc_server, msg_reply_server, notify_server,
7451 process_reply_server): Remove declarations.
7452
7453 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7454
7455 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7456 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7457 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7458 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7459 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7460 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7461 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7462 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7463 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7464 to gnu_nat_target class.
7465 * gnu-nat.c: Likewise.
7466 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7467 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7468 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7469 object.
7470 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7471 instead of `gnu_target'.
7472
7473 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7474
7475 * i386-gnu-tdep.c: Include "gdbcore.h"
7476 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7477 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7478 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7479 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7480 i386_gnu_sigcontext_addr): New functions
7481 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7482 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7483 tdep.
7484
7485 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7486
7487 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7488 before fork_inferior call. Avoid calling it if target_is_pushed returns
7489 true.
7490
7491 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7492
7493 * gnu-nat.h (gnu_target): New variable declaration.
7494 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7495 gnu_target.
7496 * gnu-nat.c (gnu_target): New variable.
7497 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7498 add_thread_silent, and add_thread calls.
7499 (gnu_nat_target::create_inferior): Pass gnu_target to
7500 add_thread_silent, thread_change_ptid call.
7501 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7502 call.
7503
7504 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7505
7506 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7507 (gnu_nat_target::find_memory_regions): Remove unused
7508 `old_address' variable.
7509
7510 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7511
7512 * gnu-nat.c: Include "gdbarch.h".
7513
7514 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7515
7516 * reply_mig_hack.awk (Error return): Cast function through
7517 void *, to bypass compiler function call check.
7518
7519 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7520
7521 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7522 $(srcdir)/reply_mig_hack.awk.
7523
7524 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7525
7526 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7527
7528 2020-05-30 Jonny Grant <jg@jguk.org>
7529
7530 * configure.ac (ACX_BUGURL): change bug URL to https.
7531
7532 2020-05-30 Pedro Alves <palves@redhat.com>
7533
7534 * cp-support.c (replace_typedefs_template): New.
7535 (replace_typedefs_qualified_name): Handle
7536 DEMANGLE_COMPONENT_TEMPLATE.
7537
7538 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7539
7540 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7541 dwarf2/index-cache.h, dwarf2/index-write.c,
7542 dwarf2/index-write.h, dwarf2/line-header.c,
7543 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7544 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7545 variables and fields from `dwarf2_per_objfile` to just
7546 `per_objfile` throughout.
7547
7548 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7551 <push_dwarf_reg_entry_value>: Add comment.
7552
7553 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7554 Keith Seitz <keiths@redhat.com>
7555
7556 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7557 instead of PyEval_ReleaseLock.
7558 (class gdbpy_gil): Move to earlier in file.
7559 (finalize_python): Set gdb_python_initialized.
7560 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7561 when not initialized.
7562
7563 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7564
7565 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7566 <push_dwarf_reg_entry_value>: Remove assert. Override
7567 per_objfile with caller_per_objfile.
7568
7569 2020-05-28 Tom de Vries <tdevries@suse.de>
7570
7571 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7572 PR gold/15646 workaround to symbol kind "type".
7573
7574 2020-05-27 Tom Tromey <tromey@adacore.com>
7575
7576 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7577
7578 2020-05-27 Tom Tromey <tromey@adacore.com>
7579
7580 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7581 Use htab_find_with_hash.
7582 <add_abbrev>: Remove "abbrev_number" parameter.
7583 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7584 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7585 (hash_abbrev): Add comment.
7586 (abbrev_table::lookup_abbrev): Move to header file.
7587 (abbrev_table::read): Update.
7588
7589 2020-05-27 Tom Tromey <tromey@adacore.com>
7590
7591 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7592 method.
7593 <canonical_name>: New member.
7594 <raw_name>: Rename from "name".
7595 (partial_die_info): Initialize canonical_name.
7596 (scan_partial_symbols): Check raw_name.
7597 (partial_die_parent_scope, partial_die_full_name)
7598 (add_partial_symbol, add_partial_subprogram)
7599 (add_partial_enumeration, load_partial_dies): Use "name" method.
7600 (partial_die_info::name): New method.
7601 (partial_die_info::read, guess_partial_die_structure_name)
7602 (partial_die_info::fixup): Update.
7603
7604 2020-05-27 Tom Tromey <tromey@adacore.com>
7605
7606 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7607 <get_ref_die_offset>: Inline.
7608 <get_ref_die_offset_complaint>: New method.
7609 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7610 (attribute::get_ref_die_offset_complaint): Rename from
7611 get_ref_die_offset. Just issue complaint.
7612
7613 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7614
7615 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7616
7617 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7618
7619 * exec.c (exec_file_attach): Use errno value of first openp failure.
7620
7621 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7622
7623 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7624 Don't close thread handle.
7625
7626 2020-05-27 Tom Tromey <tom@tromey.com>
7627 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7630 shared_ptr.
7631 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7632 member.
7633 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7634 dwarf2_per_bfd_objfile_data_key>: New globals.
7635 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7636 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7637 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7638 shared.
7639 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7640 short-circuit when sharing.
7641 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7642 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7643
7644 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7647 to...
7648 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7649 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7650
7651 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7654 build_name_components, find_name_components_bounds>:
7655 Add per_objfile parameter.
7656 (struct mapped_index) <symbol_name_at>: Likewise.
7657 (struct mapped_debug_names): Remove constructor.
7658 <dwarf2_per_objfile>: Remove field.
7659 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7660 (mapped_index_base::find_name_components_bounds,
7661 mapped_index_base::build_name_components,
7662 dw2_expand_symtabs_matching_symbol): Likewise.
7663 (class mock_mapped_index) <symbol_name_at>: Likewise.
7664 (check_match): Likewise.
7665 (check_find_bounds_finds): Likewise.
7666 (test_mapped_index_find_name_component_bounds): Update.
7667 (CHECK_MATCH): Update.
7668 (dw2_expand_symtabs_matching): Update.
7669 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7670 per_objfile parameter.
7671 <find_vec_in_debug_names>: Likewise.
7672 <m_per_objfile>: New field.
7673 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7674 parameter.
7675 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7676 (dw2_debug_names_iterator::next): Update.
7677 (dw2_debug_names_lookup_symbol): Update.
7678 (dw2_debug_names_expand_symtabs_for_function): Update.
7679 (dw2_debug_names_map_matching_symbols): Update.
7680 (dw2_debug_names_expand_symtabs_matching): Update.
7681 (dwarf2_read_debug_names): Update.
7682
7683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7684
7685 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7686 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7687 move to dwarf2_per_objfile.
7688 <read_in_chain>: Remove.
7689 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7690 remove_all_cus, age_comp_units>: New methods.
7691 <m_dwarf2_cus>: New member.
7692 (struct dwarf2_per_cu_data) <cu>: Remove.
7693 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7694 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7695 moved to methods of dwarf2_per_objfile.
7696 (dwarf2_clear_marks): Remove.
7697 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7698 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7699 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7700 (dwarf2_per_objfile::remove_all_cus): New.
7701 (class free_cached_comp_units) <~free_cached_comp_units>:
7702 Update.
7703 (load_cu): Update.
7704 (dw2_do_instantiate_symtab): Adjust.
7705 (fill_in_sig_entry_from_dwo_entry): Adjust.
7706 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7707 (cutu_reader::cutu_reader): Likewise.
7708 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7709 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7710 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7711 and dwarf2_per_objfile::age_comp_units.
7712 (load_partial_comp_unit): Update.
7713 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7714 (process_queue): Likewise.
7715 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7716 backlink.
7717 (dwarf2_read_addr_index): Likewise.
7718 (follow_die_offset): Likewise.
7719 (dwarf2_fetch_die_loc_sect_off): Likewise.
7720 (dwarf2_fetch_constant_bytes): Likewise.
7721 (dwarf2_fetch_die_type_sect_off): Likewise.
7722 (follow_die_sig_1): Likewise.
7723 (load_full_type_unit): Likewise.
7724 (read_signatured_type): Likewise.
7725 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7726 (dwarf2_cu::~dwarf2_cu): Remove.
7727 (dwarf2_per_objfile::get_cu): New.
7728 (dwarf2_per_objfile::set_cu): New.
7729 (age_cached_comp_units): Rename to...
7730 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7731 to std::unordered_map.
7732 (free_one_cached_comp_unit): Rename to...
7733 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7734 to std::unordered_map.
7735 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7736 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7737 a dwarf2_per_objfile in data.
7738 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7739 (dwarf2_clear_marks): Remove.
7740
7741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7744 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7745 (init_tu_and_read_dwo_dies): Likewise.
7746 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7747 (cutu_reader::cutu_reader): Likewise.
7748 (load_partial_comp_unit): Likewise.
7749 (process_psymtab_comp_unit): Update.
7750 (build_type_psymtabs_1): Update.
7751 (process_skeletonless_type_unit): Update.
7752 (load_full_comp_unit): Update.
7753 (find_partial_die): Update.
7754 (dwarf2_read_addr_index): Update.
7755 (read_signatured_type): Update.
7756
7757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7758
7759 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7760 m_header_read_in>: New fields.
7761 <get_header>: New method.
7762 * dwarf2/read.c (per_cu_header_read_in): Remove.
7763 (dwarf2_per_cu_data::get_header): New.
7764 (dwarf2_per_cu_data::addr_size): Update.
7765 (dwarf2_per_cu_data::offset_size): Update.
7766 (dwarf2_per_cu_data::ref_addr_size): Update.
7767
7768 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7769
7770 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7771 (dw2_do_instantiate_symtab): Update.
7772 (queue_and_load_all_dwo_tus): Change parameter from
7773 dwarf2_per_cu_data to dwarf2_cu.
7774 (dwarf2_fetch_die_loc_sect_off): Update.
7775 (dwarf2_fetch_constant_bytes): Update.
7776 (dwarf2_fetch_die_type_sect_off): Update.
7777
7778 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * dwarf2/read.c (process_full_comp_unit,
7781 process_full_type_unit): Remove per_cu, per_objfile paramters.
7782 Add dwarf2_cu parameter.
7783 (process_queue): Update.
7784
7785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7786
7787 * dwarf2/read.c (create_cu_from_index_list): Replace
7788 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7789 (create_cus_from_index_list): Likewise.
7790 (create_cus_from_index): Likewise.
7791 (create_signatured_type_table_from_index): Likewise.
7792 (create_cus_from_debug_names_list): Likewise.
7793 (create_cus_from_debug_names): Likewise.
7794 (dwarf2_read_gdb_index): Update.
7795 (dwarf2_read_debug_names): Update.
7796
7797 2020-05-27 Tom Tromey <tom@tromey.com>
7798 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * dwarf2/read.h (struct dwarf2_per_objfile)
7801 <get_type_for_signatured_type, set_type_for_signatured_type>:
7802 New methods.
7803 <m_type_map>: New member.
7804 (struct signatured_type) <type>: Remove.
7805 * dwarf2/read.c
7806 (dwarf2_per_objfile::get_type_for_signatured_type,
7807 dwarf2_per_objfile::set_type_for_signatured_type): New.
7808 (get_signatured_type): Use new methods.
7809
7810 2020-05-27 Tom Tromey <tom@tromey.com>
7811 Simon Marchi <simon.marchi@efficios.com>
7812
7813 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7814 (struct dwarf2_per_objfile) <type_units>: New member.
7815 <get_type_unit_group_unshareable>: New method.
7816 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7817 num_symtabs, symtabs>: Remove; move to
7818 type_unit_group_unshareable.
7819 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7820 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7821 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7822
7823 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * dwarf2/read.h (struct dwarf2_per_cu_data):
7826 <dwarf2_per_objfile>: Remove.
7827 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7828 dwarf2_per_objfile.
7829 (create_signatured_type_table_from_index): Likewise.
7830 (create_signatured_type_table_from_debug_names): Likewise.
7831 (create_debug_type_hash_table): Likewise.
7832 (fill_in_sig_entry_from_dwo_entry): Likewise.
7833 (create_type_unit_group): Likewise.
7834 (read_comp_units_from_section): Likewise.
7835 (create_cus_hash_table): Likewise.
7836
7837 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7838
7839 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7840 dwarf2_per_cu_data::dwarf2_per_objfile.
7841 (compute_compunit_symtab_includes): Likewise.
7842 (dwarf2_cu::start_symtab): Likewise.
7843
7844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7845
7846 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7847 parameter.
7848 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7849 (read_namespace_alias): Update.
7850 (lookup_die_type): Update.
7851 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7852 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7853 Update.
7854 (disassemble_dwarf_expression): Update.
7855
7856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7857
7858 * dwarf2/read.h (struct dwarf2_queue_item): Add
7859 dwarf2_per_objfile parameter, assign new parameter.
7860 <per_objfile>: New field.
7861 * dwarf2/read.c (free_one_cached_comp_unit): Add
7862 dwarf2_per_objfile parameter.
7863 (queue_comp_unit): Likewise.
7864 (dw2_do_instantiate_symtab): Update.
7865 (process_psymtab_comp_unit): Update.
7866 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7867 (process_imported_unit_die): Update.
7868 (queue_and_load_dwo_tu): Update.
7869 (follow_die_offset): Update.
7870 (follow_die_sig_1): Update.
7871
7872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7875 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7876 (read_call_site_scope): Assign per_objfile.
7877 (dwarf2_per_cu_data::objfile): Remove.
7878 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7879 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7880 dwarf2_per_objfile parameter.
7881 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7882 dwarf2_per_objfile parameter.
7883 (dwarf_expr_reg_to_entry_parameter): Add output
7884 dwarf2_per_objfile parameter.
7885 (locexpr_get_frame_base): Update.
7886 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7887 <push_dwarf_reg_entry_value>: Update.
7888 <call_site_to_target_addr>: Update.
7889 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7890 parameter.
7891 (value_of_dwarf_reg_entry): Update.
7892 (rw_pieced_value): Update.
7893 (indirect_synthetic_pointer): Update.
7894 (dwarf2_evaluate_property): Update.
7895 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7896 parameter.
7897 (locexpr_read_variable): Update.
7898 (locexpr_get_symbol_read_needs): Update.
7899 (loclist_read_variable): Update.
7900
7901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7904 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7905 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7906 parameter.
7907 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7908 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7909 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7910 parameter.
7911 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7912 sect_variable_value): Add dwarf2_per_objfile parameter.
7913 (class dwarf_evaluate_loc_desc) <dwarf_call,
7914 dwarf_variable_value>: Update.
7915 (fetch_const_value_from_synthetic_pointer): Add
7916 dwarf2_per_objfile parameter.
7917 (fetch_const_value_from_synthetic_pointer): Update.
7918 (coerced_pieced_ref): Update.
7919 (class symbol_needs_eval_context) <dwarf_call,
7920 dwarf_variable_value>: Update.
7921 (dwarf2_compile_expr_to_ax): Update.
7922
7923 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7924
7925 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7926 parameter.
7927 (dwarf2_evaluate_loc_desc_full): Update.
7928
7929 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7932 parameter.
7933 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7934 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7935 dwarf2_per_objfile parameter.
7936 (decode_debug_loc_dwo_addresses): Likewise.
7937 (dwarf2_find_location_expression): Update.
7938 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7939 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7940 parameter.
7941 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7942 parameter.
7943 (locexpr_describe_location_1): Likewise.
7944 (locexpr_describe_location): Update.
7945
7946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7949 Remove.
7950 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7951 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7952 (dwarf2_compile_property_to_c): Update.
7953 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7954 use text offset from objfile.
7955 (locexpr_tracepoint_var_ref): Update.
7956 (locexpr_generate_c_location): Update.
7957 (loclist_describe_location): Update.
7958 (loclist_tracepoint_var_ref): Update.
7959 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7960 dwarf2_per_objfile parameter.
7961 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7962 use text offset from objfile.
7963 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7964
7965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7966
7967 * dwarf2/expr.h (struct dwarf_expr_context)
7968 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7969 <offset>: Remove.
7970 <per_objfile>: New member.
7971 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7972 dwarf2_per_objfile parameter. Don't set offset, set
7973 per_objfile.
7974 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7975 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7976 a dwarf2_per_objfile object instead of an offset.
7977 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7978 constructor.
7979 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7980 to dwarf2_expr_executor constructor. Don't set offset.
7981 (dwarf2_fetch_cfa_info): Update.
7982 (struct dwarf2_frame_cache) <text_offset>: Remove.
7983 <per_objfile>: New field.
7984 (dwarf2_frame_cache): Update.
7985 (dwarf2_frame_prev_register): Update.
7986 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7987 <dwarf_evaluate_loc_desc>: Add constructor.
7988 (dwarf2_evaluate_loc_desc_full): Update.
7989 (dwarf2_locexpr_baton_eval): Update.
7990 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7991 Add constructor.
7992 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7993
7994 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7995
7996 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7997 addr_sized_int_type>: Move to dwarf2_cu.
7998 <int_type>: Move to dwarf2_per_objfile.
7999 (struct dwarf2_per_objfile) <int_type>: Move here.
8000 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8001 addr_sized_int_type>: Move here.
8002 (read_func_scope): Update.
8003 (read_array_type): Update.
8004 (read_tag_string_type): Update.
8005 (attr_to_dynamic_prop): Update.
8006 (dwarf2_per_cu_data::int_type): Rename to...
8007 (dwarf2_per_objfile::int_type): ... this.
8008 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8009 (dwarf2_cu::addr_sized_int_type): ... this.
8010 (read_subrange_type): Update.
8011 (dwarf2_per_cu_data::addr_type): Rename to...
8012 (dwarf2_cu::addr_type): ... this.
8013 (set_die_type): Update.
8014
8015 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8018 data through per_cu->cu.
8019
8020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8023 dwarf2_per_cu_data parameter fo dwarf2_cu.
8024 (lookup_dwo_type_unit): Likewise.
8025 (read_cutu_die_from_dwo): Likewise.
8026 (lookup_dwo_unit): Likewise.
8027 (open_and_init_dwo_file): Likewise.
8028 (lookup_dwo_cutu): Likewise.
8029 (lookup_dwo_comp_unit): Likewise.
8030 (lookup_dwo_type_unit): Likewise.
8031 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8032 (cutu_reader::cutu_reader): Update.
8033
8034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8037 parameter.
8038 (process_full_type_unit): Likewise.
8039 (process_queue): Update.
8040
8041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8042
8043 * dwarf2/read.c (recursively_compute_inclusions): Add
8044 dwarf2_per_objfile parameter.
8045 (compute_compunit_symtab_includes): Likewise.
8046 (process_cu_includes): Update.
8047
8048 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8051 parameter.
8052 (create_type_unit_group): Update.
8053 (process_psymtab_comp_unit_reader): Update.
8054 (build_type_psymtabs_reader): Update.
8055
8056 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8057
8058 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8059 object through m_this_cu->cu.
8060
8061 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8062
8063 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8064 the info parameter.
8065 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8066
8067 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8068
8069 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8070 per_objfile parameter.
8071 (load_full_type_unit): Add per_objfile parameter.
8072 (read_signatured_type): Likewise.
8073 (load_full_comp_unit): Likewise.
8074 (load_cu): Likewise.
8075 (dw2_do_instantiate_symtab): Likewise.
8076 (dw2_get_file_names): Likewise.
8077 (dw2_map_symtabs_matching_filename): Update.
8078 (dw_expand_symtabs_matching_file_matcher): Update.
8079 (dw2_map_symbol_filenames): Update.
8080 (process_psymtab_comp_unit): Add per_objfile parameter.
8081 (build_type_psymtabs_1): Update.
8082 (process_skeletonless_type_unit): Update.
8083 (dwarf2_build_psymtabs_hard): Update.
8084 (load_partial_comp_unit): Add per_objfile parameter.
8085 (scan_partial_symbols): Update.
8086 (load_full_comp_unit): Add per_objfile parameter.
8087 (process_imported_unit_die): Update.
8088 (create_cus_hash_table): Update.
8089 (find_partial_die): Update.
8090 (dwarf2_read_addr_index): Update.
8091 (follow_die_offset): Update.
8092 (dwarf2_fetch_die_loc_sect_off): Update.
8093 (dwarf2_fetch_constant_bytes): Update.
8094 (dwarf2_fetch_die_type_sect_off): Update.
8095 (follow_die_sig_1): Update.
8096 (load_full_type_unit): Add per_objfile parameter.
8097 (read_signatured_type): Likewise.
8098
8099 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8100
8101 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8102 of objfile_name.
8103
8104 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8105
8106 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8107 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8108 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8109 field.
8110 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8111 (create_cus_from_index): Update.
8112 (dwarf2_read_gdb_index): Update.
8113 (create_cus_from_debug_names): Update.
8114 (dwarf2_read_debug_names): Update.
8115 (get_abbrev_section_for_cu): Update.
8116 (create_all_comp_units): Update.
8117 (read_attribute_value): Update.
8118 (get_debug_line_section): Update.
8119 * dwarf2/index-cache.c (index_cache::store): Update.
8120 * dwarf2/index-write.c (save_gdb_index_command): Update.
8121 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8122
8123 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8124
8125 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8126 member.
8127 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8128 dwarf2_per_cu_data::per_bfd.
8129 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8130 (create_type_unit_group): Likewise.
8131 (queue_comp_unit): Remove reference to
8132 per_cu->dwarf2_per_objfile.
8133 (maybe_queue_comp_unit): Likewise.
8134 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8135 (create_cus_hash_table): Assign new field.
8136
8137 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * dwarf2/read.c: Replace
8140 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8141 dwarf2_cu->per_objfile throughout.
8142
8143 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8146 parameter, don't use per_cu->dwarf2_per_objfile.
8147 (dw2_instantiate_symtab): Likewise.
8148 (dw2_find_last_source_symtab): Update.
8149 (dw2_map_expand_apply): Update.
8150 (dw2_lookup_symbol): Update.
8151 (dw2_expand_symtabs_for_function): Update.
8152 (dw2_expand_all_symtabs): Update.
8153 (dw2_expand_symtabs_with_fullname): Update.
8154 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8155 don't use per_cu->dwarf2_per_objfile.
8156 (dw2_expand_marked_cus): Update.
8157 (dw2_find_pc_sect_compunit_symtab): Update.
8158 (dw2_debug_names_lookup_symbol): Update.
8159 (dw2_debug_names_expand_symtabs_for_function): Update.
8160 (dw2_debug_names_map_matching_symbols): Update.
8161 (dwarf2_psymtab::expand_psymtab): Update.
8162
8163 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8164
8165 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8166 <per_objfile>: New member.
8167 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8168 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8169 call to dwarf2_cu.
8170 (cutu_reader::cutu_reader): Update.
8171 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8172
8173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8174
8175 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8176 struct dwarf2_per_objfile.
8177 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8178 dwarf2_per_bfd.
8179 * dwarf2/read.c (set_die_type): Update.
8180 (get_die_type_at_offset): Update.
8181
8182 2020-05-27 Tom Tromey <tom@tromey.com>
8183 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8186 method.
8187 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8188 get_symtab, set_symtab>: New methods.
8189 <m_symtabs>: New field.
8190 (struct dwarf2_psymtab): Derive from partial_symtab.
8191 <readin_p, get_compunit_symtab>: Declare methods.
8192 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8193 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8194 New methods.
8195 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8196 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8197 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8198 (dw2_symtab_iter_next, dw2_print_stats)
8199 (dw2_expand_symtabs_with_fullname)
8200 (dw2_expand_symtabs_matching_one)
8201 (dw_expand_symtabs_matching_file_matcher)
8202 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8203 (dw2_debug_names_iterator::next)
8204 (dw2_debug_names_map_matching_symbols)
8205 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8206 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8207 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8208 New methods.
8209 (get_compunit_symtab, process_full_comp_unit)
8210 (process_full_type_unit): Update.
8211 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8212
8213 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8214
8215 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8216 then introduce a new dwarf2_per_objfile type.
8217 <read_line_string>: Move to the new dwarf2_per_objfile type.
8218 <objfile>: Likewise.
8219 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8220 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8221 dwarf2_per_objfile->per_bfd.
8222 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8223 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8224 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8225 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8226 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8227 (dwarf2_per_objfile::locate_sections): Rename to...
8228 (dwarf2_per_bfd::locate_sections): ... this.
8229 (dwarf2_per_objfile::get_cutu): Rename to...
8230 (dwarf2_per_bfd::get_cutu): ... this.
8231 (dwarf2_per_objfile::get_cu): Rename to...
8232 (dwarf2_per_bfd::get_cu): ... this.
8233 (dwarf2_per_objfile::get_tu): Rename to...
8234 (dwarf2_per_bfd::get_tu): ... this.
8235 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8236 (dwarf2_per_bfd::allocate_per_cu): ... this.
8237 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8238 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8239 (get_gdb_index_contents_ftype): Change parameter from
8240 dwarf2_per_objfile to dwarf2_per_bfd.
8241 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8242 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8243
8244 2020-05-27 Tom Tromey <tom@tromey.com>
8245 Simon Marchi <simon.marchi@efficios.com>
8246
8247 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8248 (allocate_piece_closure): Set "per_objfile" member.
8249 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8250 (locexpr_describe_location, loclist_describe_location): Use new
8251 member.
8252 * dwarf2/read.c (read_call_site_scope)
8253 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8254 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8255 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8256 handle_data_member_location): Set per_objfile member.
8257 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8258 member.
8259 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8260
8261 2020-05-27 Tom Tromey <tom@tromey.com>
8262
8263 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8264 allocate_signatured_type>: Declare new methods.
8265 <m_num_psymtabs>: New member.
8266 (struct dwarf2_per_cu_data) <index>: New member.
8267 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8268 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8269 (create_cu_from_index_list): Use allocate_per_cu.
8270 (create_signatured_type_table_from_index)
8271 (create_signatured_type_table_from_debug_names)
8272 (create_debug_type_hash_table, add_type_unit)
8273 (read_comp_units_from_section): Use allocate_signatured_type.
8274
8275 2020-05-27 Tom Tromey <tom@tromey.com>
8276
8277 * psymtab.c (partial_map_expand_apply)
8278 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8279 (psym_lookup_global_symbol_language)
8280 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8281 (psym_print_stats, psym_expand_symtabs_for_function)
8282 (psym_map_symbol_filenames, psym_map_matching_symbols)
8283 (psym_expand_symtabs_matching)
8284 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8285 (maintenance_check_psymtabs): Update.
8286 * psympriv.h (struct partial_symtab) <readin_p,
8287 get_compunit_symtab>: Add objfile parameter.
8288 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8289 Likewise.
8290 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8291 get_compunit_symtab>: Likewise.
8292 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8293
8294 2020-05-27 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8297 member.
8298 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8299 (create_cu_from_index_list)
8300 (create_signatured_type_table_from_index)
8301 (create_signatured_type_table_from_debug_names)
8302 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8303 (dwarf2_create_include_psymtab)
8304 (create_debug_type_hash_table, add_type_unit)
8305 (create_type_unit_group, read_comp_units_from_section)
8306 (dwarf2_compute_name, create_cus_hash_table)
8307 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8308 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8309 obstack.
8310 (dw2_get_real_path): Likewise. Change argument to
8311 dwarf2_per_objfile.
8312
8313 2020-05-27 Luis Machado <luis.machado@linaro.org>
8314
8315 PR tdep/26000
8316 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8317 for ldrd (immediate).
8318
8319 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8320
8321 * command.h: Add comment giving the name of class_tui.
8322 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8323 create the fake command for the help for class_tui.
8324
8325 2020-05-26 Tom Tromey <tromey@adacore.com>
8326
8327 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8328 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8329 (val_atr): New function.
8330 (value_val_atr): Use it.
8331 * ada-valprint.c (print_optional_low_bound): Change low bound
8332 handling for enums.
8333 (val_print_packed_array_elements): Don't call discrete_position.
8334 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8335 discrete_position for enum types.
8336 * language.c (default_print_array_index): Change type.
8337 * language.h (struct language_defn) <la_print_array_index>: Add
8338 index_type parameter, change type of index_value.
8339 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8340 (default_print_array_index): Update.
8341 * valprint.c (maybe_print_array_index): Don't call
8342 value_from_longest. Update.
8343 (value_print_array_elements): Don't call discrete_position.
8344
8345 2020-05-26 Tom Tromey <tromey@adacore.com>
8346
8347 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8348 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8349
8350 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8351
8352 PR gdb/13519
8353 * avr-tdep.c (avr_integer_to_address): Return data or code
8354 address accordingly to the second 'type' argument of the
8355 function.
8356
8357 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8358
8359 * infcmd.c, inferior.h: (construct_inferior_arguments):
8360 Moved function from here to gdbsupport/common-inferior.{h,cc}
8361
8362 2020-05-23 Tom Tromey <tom@tromey.com>
8363
8364 Revert commit eca1f90c:
8365 * NEWS: Remove entry for completion styling.
8366 * completer.c (_rl_completion_prefix_display_length): Move
8367 declaration later.
8368 (gdb_fnprint): Revert.
8369 (gdb_display_match_list_1): Likewise.
8370 * cli/cli-style.c (completion_prefix_style)
8371 (completion_difference_style, completion_suffix_style): Remove.
8372 (_initialize_cli_style): Revert.
8373 * cli/cli-style.h (completion_prefix_style)
8374 (completion_difference_style, completion_suffix_style): Don't
8375 declare.
8376
8377 2020-05-24 Pedro Alves <palves@redhat.com>
8378
8379 * symtab.c (completion_list_add_name): Return boolean indication
8380 of whether the symbol matched.
8381 (completion_list_add_symbol): Don't try to remove C++ aliases if
8382 the symbol didn't match in the first place.
8383 * symtab.h (completion_list_add_name): Return bool.
8384
8385 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8386
8387 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8388 type::field.
8389
8390 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8391
8392 GDB 9.2 released.
8393
8394 2020-05-23 Tom Tromey <tom@tromey.com>
8395
8396 * NEWS: Add entry for completion styling.
8397 * completer.c (_rl_completion_prefix_display_length): Move
8398 declaration earlier.
8399 (gdb_fnprint): Use completion_style.
8400 (gdb_display_match_list_1): Likewise.
8401 * cli/cli-style.c (completion_prefix_style)
8402 (completion_difference_style, completion_suffix_style): New
8403 globals.
8404 (_initialize_cli_style): Register new globals.
8405 * cli/cli-style.h (completion_prefix_style)
8406 (completion_difference_style, completion_suffix_style): Declare.
8407
8408 2020-05-23 Pedro Alves <palves@redhat.com>
8409
8410 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8411 (parse_escape): Use ISDIGIT instead of isdigit.
8412 (puts_debug): Use gdb_isprint instead of isprint.
8413 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8414 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8415 ISSPACE instead of isspace.
8416 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8417 instead of isspace.
8418 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8419 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8420 instead of isxdigit and ISDIGIT instead of isdigit.
8421
8422 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * gdbtypes.h (struct type) <field>: New method.
8425 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8426 or type::field.
8427
8428 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8431 (TYPE_FIELDS): Use type::fields. Change all call sites that
8432 modify the propery to use type::set_fields instead.
8433
8434 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8435
8436 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8437 type::num_fields instead.
8438
8439 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8442 methods.
8443 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8444 that modify the number of fields to use type::set_num_fields
8445 instead.
8446
8447 2020-05-22 Tom Tromey <tromey@adacore.com>
8448
8449 * compile/compile-object-load.h (munmap_list_free): Don't
8450 declare.
8451
8452 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8453
8454 * annotate.c (annotate_source_line): Update return type, add call
8455 to update current symtab and line.
8456 * annotate.h (annotate_source_line): Update return type, and
8457 extend header comment.
8458 * source.c (info_line_command): Check annotation_level before
8459 calling annotate_source_line.
8460 * stack.c (print_frame_info): If calling annotate_source_line
8461 returns true, then don't print any other source line information.
8462
8463 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8466
8467 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * coffread.c (patch_type): Remove NULL check before xfree.
8470 * corefile.c (set_gnutarget): Likewise.
8471 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8472 * exec.c (build_section_table): Likewise.
8473 * remote.c (remote_target::pass_signals): Likewise.
8474 * utils.c (n_spaces): Likewise.
8475 * cli/cli-script.c (document_command): Likewise.
8476 * i386-windows-tdep.c (core_process_module_section): Likewise.
8477 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8478
8479 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * symfile.c (reread_symbols): Clear objfile's section_offsets
8482 vector and section indices, re-compute them by calling
8483 sym_offsets.
8484
8485 2020-05-20 Tom Tromey <tromey@adacore.com>
8486
8487 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8488 (desc_one_bound, desc_index_type): Compute field name.
8489
8490 2020-05-20 Tom de Vries <tdevries@suse.de>
8491
8492 PR symtab/25833
8493 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8494
8495 2020-05-20 Alan Modra <amodra@gmail.com>
8496
8497 PR 25993
8498 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8499 bfd_set_filename.
8500 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8501 passed to bfd_set_filename.
8502 * symfile-mem.c (add_vsyscall_page): Likewise for string
8503 passed to symbol_file_add_from_memory.
8504 (symbol_file_add_from_memory): Make name param a const char* and
8505 don't strdup.
8506
8507 2020-05-20 Alan Modra <amodra@gmail.com>
8508
8509 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8510 rather than accessing bfd->filename directly.
8511 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8512 and use bfd_section_name.
8513 * dwarf2/frame.c (decode_frame_entry): Likewise.
8514 * exec.c (exec_set_section_address): Likewise.
8515 * solib-aix.c (solib_aix_bfd_open): Likewise.
8516 * stap-probe.c (get_stap_base_address): Likewise.
8517 * symfile.c (reread_symbols): Likewise.
8518
8519 2020-05-19 Tom Tromey <tromey@adacore.com>
8520
8521 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8522
8523 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8526
8527 2020-05-19 Pedro Alves <palves@redhat.com>
8528
8529 * NEWS (set exec-file-mismatch): Adjust entry.
8530 * exec.c: Include "build-id.h".
8531 (validate_exec_file): Try to match build IDs instead of filenames.
8532 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8533 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8534 and pass down 'warn_if_slow'.
8535 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8536 gdb_bfd_open_closure to pass it down.
8537 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8538
8539 2020-05-19 Pedro Alves <palves@redhat.com>
8540
8541 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8542 * target.c (target_fileio_open_1): Rename to target_fileio_open
8543 and make extern. Use bool.
8544 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8545 (target_fileio_read_alloc_1): Adjust.
8546 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8547 (target_fileio_open_warn_if_slow): Delete declaration.
8548
8549 2020-05-19 Pedro Alves <palves@redhat.com>
8550
8551 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8552 Adjust all callers.
8553
8554 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8555
8556 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8557 whether disp is negative.
8558
8559 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * symfile.h (struct symfile_segment_data)
8562 <~symfile_segment_data>: Remove.
8563 <segment_info>: Change to std::vector.
8564 * symfile.c (default_symfile_segments): Update.
8565 * elfread.c (elf_symfile_segments): Update.
8566
8567 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8568
8569 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8570 <segments>: New.
8571 <segment_bases, segment_sizes>: Remove.
8572 * symfile.c (default_symfile_segments): Update.
8573 * elfread.c (elf_symfile_segments): Update.
8574 * remote.c (remote_target::get_offsets): Update.
8575 * solib-target.c (solib_target_relocate_section_addresses):
8576 Update.
8577
8578 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * symfile.h (struct symfile_segment_data): Initialize fields.
8581 <~symfile_segment_data>: Add.
8582 (symfile_segment_data_up): New.
8583 (struct sym_fns) <sym_segments>: Return a
8584 symfile_segment_data_up.
8585 (default_symfile_segments): Return a symfile_segment_data_up.
8586 (free_symfile_segment_data): Remove.
8587 (get_symfile_segment_data): Return a symfile_segment_data_up.
8588 * symfile.c (default_symfile_segments): Likewise.
8589 (get_symfile_segment_data): Likewise.
8590 (free_symfile_segment_data): Remove.
8591 (symfile_find_segment_sections): Update.
8592 * elfread.c (elf_symfile_segments): Return a
8593 symfile_segment_data_up.
8594 * remote.c (remote_target::get_offsets): Update.
8595 * solib-target.c (solib_target_relocate_section_addresses):
8596 Update.
8597 * symfile-debug.c (debug_sym_segments): Return a
8598 symfile_segment_data_up.
8599
8600 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8601
8602 PR build/25981
8603 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8604 Hardcode register numbers.
8605
8606 PR build/25981
8607 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8608 procfs_find_LDT_entry): Remove.
8609 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8610 procfs_find_LDT_entry): Remove.
8611 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8612 Remove.
8613
8614 2020-05-17 Pedro Alves <palves@redhat.com>
8615 Andrew Burgess <andrew.burgess@embecosm.com>
8616 Keno Fischer <keno@juliacomputing.com>
8617
8618 PR gdb/25741
8619 * breakpoint.c (build_target_condition_list): Update comments.
8620 (build_target_command_list): Update comments and skip matching
8621 locations.
8622 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8623 a separate function. Simplify "set breakpoint auto-hw off"
8624 handling.
8625 (insert_breakpoints): Update comment.
8626 (tracepoint_locations_match): New parameter. For breakpoints,
8627 compare location types too, if the caller wants to.
8628 (handle_automatic_hardware_breakpoints): New functions.
8629 (bp_location_is_less_than): Also sort by location type and
8630 hardware breakpoint length.
8631 (update_global_location_list): Handle "set breakpoint auto-hw on"
8632 here.
8633 (update_breakpoint_locations): Ask breakpoint_locations_match to
8634 ignore location types.
8635
8636 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8639 type::name instead.
8640
8641 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * gdbtypes.h (struct type) <name, set_name>: New methods.
8644 (TYPE_CODE): Use type::name. Change all call sites used to set
8645 the name to use type::set_name instead.
8646
8647 2020-05-16 Tom Tromey <tom@tromey.com>
8648
8649 * top.c (quit_force): Update.
8650 * infrun.c (handle_no_resumed): Update.
8651 * top.h (all_uis): New function.
8652 (ALL_UIS): Remove.
8653
8654 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8657
8658 2020-05-16 Pedro Alves <palves@redhat.com>
8659
8660 * ia64-linux-nat.c
8661 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8662 Declare method.
8663 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8664
8665 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8668 (sparc64_adi_info): Likewise.
8669
8670 2020-05-15 Tom Tromey <tom@tromey.com>
8671
8672 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8673 block_objfile.
8674 (lookup_objfile_from_block): Remove.
8675 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8676 (lookup_global_symbol): Use block_objfile.
8677 * symtab.h (lookup_objfile_from_block): Don't declare.
8678 * printcmd.c (clear_dangling_display_expressions): Use
8679 block_objfile.
8680 * parse.c (operator_check_standard): Use block_objfile.
8681
8682 2020-05-15 Tom Tromey <tom@tromey.com>
8683
8684 * language.c (language_alloc_type_symbol): Set
8685 SYMBOL_SECTION.
8686 * symtab.c (initialize_objfile_symbol): Remove.
8687 (allocate_symbol): Remove.
8688 (allocate_template_symbol): Remove.
8689 * dwarf2/read.c (fixup_go_packaging): Use "new".
8690 (new_symbol): Use "new".
8691 (read_variable): Don't call initialize_objfile_symbol. Use
8692 "new".
8693 (read_func_scope): Use "new".
8694 * xcoffread.c (process_xcoff_symbol): Don't call
8695 initialize_objfile_symbol.
8696 (SYMBOL_DUP): Remove.
8697 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8698 "new".
8699 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8700 (allocate_template_symbol): Don't declare.
8701 (struct symbol): Add copy constructor. Change defaults.
8702 * jit.c (finalize_symtab): Use "new".
8703 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8704 Use "new".
8705 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8706 (common_block_end): Use "new".
8707 * mdebugread.c (parse_symbol): Use "new".
8708 (new_symbol): Likewise.
8709
8710 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8711
8712 * NEWS: Mention changes to help and apropos.
8713
8714 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8715
8716 * command.h (enum command_class): Improve comments, document
8717 that class_alias is for user-defined aliases, give the class
8718 name for each class, remove unused class_xdb.
8719 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8720 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8721 by a precise class.
8722 * infcmd.c (_initialize_infcmd): Likewise.
8723 * reverse.c (_initialize_reverse): Likewise.
8724 * stack.c (_initialize_stack): Likewise.
8725 * symfile.c (_initialize_symfile): Likewise.
8726 * tracepoint.c (_initialize_tracepoint): Likewise.
8727
8728 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8729
8730 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8731 when their aliased command is traversed.
8732 (help_cmd): Add fput_command_names_styled call to
8733 output command name and aliases when command has an alias.
8734
8735 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8736
8737 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8738 * cli/cli-decode.c (help_cmd_list): Declare as static,
8739 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8740 a command together with the command.
8741 (fput_command_name_styled, fput_command_names_styled): New functions.
8742 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8743 fput_command_name_styled.
8744 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8745 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8746
8747 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8748
8749 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8750 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8751 * command.h (cmd_show_list): Likewise.
8752 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8753 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8754
8755 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8756
8757 * unittests/command-def-selftests.c (traverse_command_structure):
8758 Verify all commands of a list have the same prefix command and
8759 that only the top cmdlist commands have a null prefix.
8760
8761 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8762
8763 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8764 as prefix, not one of its aliases.
8765 (set_cmd_prefix): Remove.
8766 (do_add_cmd): Centralize the setting of the prefix of a command, when
8767 command is defined after its full chain of prefix commands.
8768 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8769 (add_setshow_cmd_full): Likewise.
8770 (update_prefix_field_of_prefixed_commands): New function.
8771 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8772 update_prefix_field_of_prefixed_commands.
8773 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8774 addresses of remote_set_cmdlist and remote_show_cmdlist given
8775 as argument, not the address of an argument.
8776 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8777 * gdb/remote.c (_initialize_remote): Likewise.
8778
8779 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8780
8781 * cli/cli-cmds.c (alias_command): Check for an existing alias
8782 using lookup_cmd_composition, as valid_command_p is too strict
8783 and forbids aliases that are the prefix of an existing alias
8784 or command.
8785 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8786 command is properly recognised as a valid command.
8787
8788 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8789
8790 * unittests/help-doc-selftests.c: Rename to
8791 unittests/command-def-selftests.c
8792 * unittests/command-def-selftests.c (help_doc_tests): Update some
8793 comments.
8794 (command_structure_tests, traverse_command_structure): New namespace
8795 and function.
8796 (command_structure_invariants_tests): New function.
8797 (_initialize_command_def_selftests) Renamed from
8798 _initialize_help_doc_selftests, register command_structure_invariants
8799 selftest.
8800
8801 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8802
8803 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8804 an alias of 'show'.
8805
8806 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8807
8808 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8809 ada_is_fixed_point_type. Update all callers.
8810 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8811 all callers.
8812 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8813 Update all callers.
8814 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8815 print_fixed_point_type. Update all callers.
8816 * ada-valprint.c (ada_value_print_num): Replace call to
8817 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8818
8819 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8820
8821 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8822 processors.
8823 (cpu_supports_bts): Add CV_AMD case.
8824
8825 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8826 Simon Marchi <simon.marchi@efficios.com>
8827
8828 * infrun.c (stop_all_threads): Collect multiple wait events at
8829 each pass.
8830
8831 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8832
8833 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8834 type::code instead.
8835
8836 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8837
8838 * gdbtypes.h (struct type) <code, set_code>: New methods.
8839 (TYPE_CODE): Use type::code. Change all call sites used to set
8840 the code to use type::set_code instead.
8841
8842 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8843 Tom de Vries <tdevries@suse.de>
8844 Pedro Alves <palves@redhat.com>
8845
8846 PR threads/25478
8847 * infrun.c (stop_all_threads): Do NOT ignore
8848 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8849 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8850 received.
8851 (handle_no_resumed): Remove code handling a live inferior with no
8852 threads.
8853 * remote.c (has_single_non_exited_thread): New.
8854 (remote_target::update_thread_list): Do not delete a thread if is
8855 the last thread of the process.
8856 * thread.c (thread_select): Call delete_exited_threads instead of
8857 prune_threads.
8858
8859 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8860
8861 * infrun.c (stop_all_threads): Enable/disable thread events of all
8862 targets. Move a debug message denoting the end of the function
8863 into the SCOPED_EXIT block.
8864
8865 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8866
8867 * process-stratum-target.h: Include <set>.
8868 (all_non_exited_process_targets, switch_to_target_no_thread): New
8869 function declarations.
8870 * process-stratum-target.c (all_non_exited_process_targets)
8871 (switch_to_target_no_thread): New function implementations.
8872
8873 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8874
8875 * infrun.c (handle_inferior_event): Extract out a piece of code
8876 into...
8877 (mark_non_executing_threads): ...this new function.
8878
8879 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8880
8881 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8882 use.
8883
8884 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8885
8886 * regcache.c (regcache_read_pc_protected): New function
8887 implementation that returns 0 if the PC cannot read via
8888 'regcache_read_pc'.
8889 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8890 instead of 'regcache_read_pc'.
8891 (keep_going_pass_signal): Ditto.
8892
8893 2020-05-13 Tom Tromey <tromey@adacore.com>
8894
8895 * ada-lang.c (align_value): Remove.
8896 (ada_template_to_fixed_record_type_1): Use align_up.
8897
8898 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8899
8900 * async-event.c: Update the copyright year.
8901 * async-event.h: Update the copyright year.
8902
8903 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8904
8905 * objfiles.h (is_addr_in_objfile,
8906 shared_objfile_contains_address_p): Return bool.
8907 * objfile.c (is_addr_in_objfile,
8908 shared_objfile_contains_address_p): Return bool.
8909
8910 2020-05-11 Tom Tromey <tromey@adacore.com>
8911
8912 * cli/cli-cmds.c (info_command): Restore.
8913 (_initialize_cli_cmds): Use add_prefix_command for "info".
8914 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8915
8916 2020-05-11 Tom Tromey <tromey@adacore.com>
8917
8918 * ada-lang.c (ada_value_primitive_field): Now public.
8919 * ada-lang.h (ada_value_primitive_field): Declare.
8920 * ada-valprint.c (print_field_values): Use
8921 ada_value_primitive_field for wrapper fields.
8922
8923 2020-05-11 Tom de Vries <tdevries@suse.de>
8924
8925 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8926 MODULE_DOMAIN.
8927
8928 2020-05-11 Tom de Vries <tdevries@suse.de>
8929
8930 PR symtab/25941
8931 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8932 with length 0, if not gdb-produced.
8933 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8934
8935 2020-05-09 Tom de Vries <tdevries@suse.de>
8936
8937 PR gdb/25955
8938 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8939 calculation.
8940
8941 2020-05-09 Tom Tromey <tom@tromey.com>
8942
8943 * top.c (server_command): Now bool.
8944 * top.h (server_command): Now bool.
8945
8946 2020-05-08 Tom Tromey <tromey@adacore.com>
8947
8948 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8949 already being processed.
8950
8951 2020-05-08 Tom Tromey <tom@tromey.com>
8952
8953 * printcmd.c (struct display) <next>: Remove.
8954 <display>: New constructor.
8955 <exp_string>: Now a std::string.
8956 <enabled_p>: Now a bool.
8957 (display_number): Move definition earlier.
8958 (displays): Rename from display_chain. Now a std::vector.
8959 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8960 (display_command): Update.
8961 (do_one_display, disable_display)
8962 (enable_disable_display_command, do_enable_disable_display):
8963 Update.
8964 (free_display): Remove.
8965 (clear_displays): Rewrite.
8966 (delete_display): Update.
8967 (map_display_numbers): Use function_view. Remove "data"
8968 parameter. Update.
8969 (do_delete_display): Remove.
8970 (undisplay_command): Update.
8971 (do_one_display, do_displays, disable_display)
8972 (info_display_command): Update.
8973 (do_enable_disable_display): Remove.
8974 (enable_disable_display_command)
8975 (clear_dangling_display_expressions): Update.
8976
8977 2020-05-08 Tom Tromey <tom@tromey.com>
8978
8979 * symtab.c (set_symbol_cache_size)
8980 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8981 (maintenance_print_symbol_cache_statistics): Update.
8982 * symmisc.c (print_symbol_bcache_statistics)
8983 (print_objfile_statistics, maintenance_print_objfiles)
8984 (maintenance_info_symtabs, maintenance_check_symtabs)
8985 (maintenance_expand_symtabs, maintenance_info_line_tables):
8986 Update.
8987 * symfile-debug.c (set_debug_symfile): Update.
8988 * source.c (forget_cached_source_info): Update.
8989 * python/python.c (gdbpy_progspaces): Update.
8990 * psymtab.c (maintenance_info_psymtabs): Update.
8991 * probe.c (parse_probes): Update.
8992 * linespec.c (iterate_over_all_matching_symtabs)
8993 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8994 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8995 * exec.c (exec_target::close): Update.
8996 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8997 * breakpoint.c (print_one_breakpoint_location)
8998 (create_longjmp_master_breakpoint)
8999 (create_std_terminate_master_breakpoint): Update.
9000 * progspace.c (program_spaces): Now a std::vector.
9001 (maybe_new_address_space): Update.
9002 (add_program_space): Remove.
9003 (program_space::program_space): Update.
9004 (remove_program_space): Update.
9005 (number_of_program_spaces): Remove.
9006 (print_program_space, update_address_spaces): Update.
9007 * progspace.h (program_spaces): Change type.
9008 (ALL_PSPACES): Remove.
9009 (number_of_program_spaces): Don't declare.
9010 (struct program_space) <next>: Remove.
9011
9012 2020-05-08 Tom Tromey <tom@tromey.com>
9013
9014 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9015 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9016 (enable_break): Update.
9017 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9018 (frv_fdpic_find_canonical_descriptor): Update.
9019 (frv_fetch_objfile_link_map): Update.
9020 * progspace.c (program_space::free_all_objfiles): Update.
9021 (program_space::solibs): New method.
9022 * progspace.h (struct program_space) <solibs>: New method.
9023 * solist.h (master_so_list): Don't declare.
9024 (ALL_SO_LIBS): Remove.
9025 * solib.h (so_list_head): Remove.
9026 (update_solib_list): Update comment.
9027 * solib.c (master_so_list): Remove.
9028 (solib_used, update_solib_list, solib_add)
9029 (info_sharedlibrary_command, clear_solib)
9030 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9031
9032 2020-05-08 Tom Tromey <tom@tromey.com>
9033
9034 * extension.c (extension_languages): Now a std::array.
9035 (ALL_EXTENSION_LANGUAGES): Remove.
9036 (get_ext_lang_defn, get_ext_lang_of_file)
9037 (eval_ext_lang_from_control_command): Update.
9038 (finish_ext_lang_initialization)
9039 (auto_load_ext_lang_scripts_for_objfile)
9040 (ext_lang_type_printers::ext_lang_type_printers)
9041 (apply_ext_lang_type_printers)
9042 (ext_lang_type_printers::~ext_lang_type_printers)
9043 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9044 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9045 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9046 (get_matching_xmethod_workers, ext_lang_colorize)
9047 (ext_lang_before_prompt): Update.
9048 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9049
9050 2020-05-08 Tom Tromey <tom@tromey.com>
9051
9052 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9053 overload.
9054 <swap_string, m_string>: Remove.
9055 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9056 Update.
9057 * stabsread.c (define_symbol, read_type): Update.
9058 * linespec.c (find_linespec_symbols): Update.
9059 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9060 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9061 * dbxread.c (read_dbx_symtab): Update.
9062 * cp-support.h (cp_canonicalize_string_full)
9063 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9064 Return unique_xmalloc_ptr.
9065 * cp-support.c (inspect_type): Update.
9066 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9067 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9068 Likewise.
9069 * c-typeprint.c (print_name_maybe_canonical): Update.
9070 * break-catch-throw.c (check_status_exception_catchpoint):
9071 Update.
9072
9073 2020-05-08 Tom de Vries <tdevries@suse.de>
9074
9075 * infrun.c (follow_fork): Copy current_line and current_symtab to
9076 child thread.
9077
9078 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * async-event.c (struct async_signal_handler, struct
9081 async_event_handler): Reformat, remove typedef.
9082
9083 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9086 access thistype->main_type->dyn_prop_list directly.
9087
9088 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9091 (remove_dyn_prop): Remove. Update all users to use
9092 type::remove_dyn_prop.
9093 * gdbtypes.c (remove_dyn_prop): Rename to...
9094 (type::remove_dyn_prop): ... this.
9095
9096 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9097
9098 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9099 (add_dyn_prop): Remove. Update all users to use
9100 type::add_dyn_prop.
9101 * gdbtypes.c (add_dyn_prop): Rename to...
9102 (type::add_dyn_prop): ... this.
9103
9104 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9107 (get_dyn_prop): Remove. Update all users to use
9108 type::dyn_prop.
9109 * gdbtypes.c (get_dyn_prop): Rename to...
9110 (type::dyn_prop): ... this.
9111
9112 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9115
9116 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9119 instruction, skip it if it's there.
9120
9121 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9124
9125 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9128 * gdbtypes.c (recursive_dump_type): Remove use of
9129 TYPE_INCOMPLETE.
9130
9131 2020-05-03 Tom Tromey <tom@tromey.com>
9132
9133 * breakpoint.c (catch_command, tcatch_command): Remove.
9134 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9135 add_show_prefix_cmd.
9136 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9137 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9138 Remove.
9139 (add_internal_problem_command): Use add_basic_prefix_cmd,
9140 add_show_prefix_cmd.
9141 * mips-tdep.c (set_mipsfpu_command): Remove.
9142 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9143 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9144 (_initialize_index_cache): Use add_basic_prefix_cmd.
9145 * memattr.c (dummy_cmd): Remove.
9146 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9147 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9148 (_initialize_tui_win): Use add_basic_prefix_cmd,
9149 add_show_prefix_cmd.
9150 * cli/cli-logging.c (set_logging_command): Remove.
9151 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9152 add_show_prefix_cmd.
9153 (show_logging_command): Remove.
9154 * target.c (target_command): Remove.
9155 (add_target): Use add_basic_prefix_cmd.
9156
9157 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9158
9159 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9160
9161 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9162
9163 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9164 info_command.
9165
9166 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9167
9168 * nbsd-nat.c (nbsd_enable_proc_events)
9169 (nbsd_nat_target::post_startup_inferior): Add.
9170 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9171 (nbsd_nat_target::update_thread_list): Rewrite.
9172 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9173 "PTRACE_LWP_CREATE".
9174 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9175
9176 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9177
9178 * stack.c (_initialize_stack): Remove duplicated creation
9179 of "frame" command and "f" alias.
9180
9181 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9182
9183 PR gdb/18706
9184 * gdbtypes.c (check_typedef): Calculate size of array of
9185 stubbed type.
9186
9187 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9188
9189 PR gdb/15559
9190 * i386-tdep.c (i386_push_dummy_call): Call
9191 i386_thiscall_push_dummy_call.
9192 (i386_thiscall_push_dummy_call): New function.
9193 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9194 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9195 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9196
9197 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * gdbarch.sh (do_read): Add shellcheck disable directive for
9200 warning SC2162.
9201
9202 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9205 "referenced but not assigned" warning.
9206
9207 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * gdbarch.sh: Remove code that sets fallbackdefault.
9210
9211 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * gdbarch.sh: Use shell operators && and || instead of
9214 -a and -o.
9215
9216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * gdbarch.sh: Use $(...) instead of `...`.
9219
9220 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * gdbarch.sh: Use double quotes around variables.
9223
9224 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * gdbarch.sh: Use %s with printf, instead of variables in the
9227 format string.
9228
9229 2020-04-29 Tom Tromey <tromey@adacore.com>
9230
9231 PR ada/25875:
9232 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9233 type fields here.
9234 (read_enumeration_type): Call
9235 update_enumeration_type_from_children later. Update comments.
9236 (process_enumeration_scope): Don't create type fields.
9237
9238 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9239
9240 * nbsd-tdep.c: Include "xml-syscall.h".
9241 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9242
9243 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9244
9245 * nbsd-nat.c: Include "sys/wait.h".
9246 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9247 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9248 (nbsd_nat_target::remove_exec_catchpoint)
9249 (nbsd_nat_target::set_syscall_catchpoint): Add.
9250 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9251 (nbsd_nat_target::insert_exec_catchpoint)
9252 (nbsd_nat_target::remove_exec_catchpoint)
9253 (nbsd_nat_target::set_syscall_catchpoint): Add.
9254 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9255 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9256 `nbsd_get_syscall_number'.
9257
9258 2020-04-29 Tom Tromey <tom@tromey.com>
9259
9260 * stack.c (print_block_frame_labels): Remove.
9261
9262 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9263
9264 PR gdb/17320
9265 * ada-valprint.c (val_print_packed_array_elements): Move array
9266 end bracket to new line.
9267 (ada_val_print_string): Remove extra spaces before first array
9268 element.
9269 * c-valprint.c (c_value_print_array): Likewise.
9270 * m2-valprint.c (m2_print_array_contents): Likewise.
9271 (m2_value_print_inner): Likewise.
9272 * p-valprint.c (pascal_value_print_inner): Likewise.
9273 * valprint.c (generic_val_print_array): Likewise.
9274 (value_print_array_elements): Move first array element and array
9275 end bracket to new line.
9276
9277 2020-04-29 Tom de Vries <tdevries@suse.de>
9278
9279 PR symtab/25889
9280 * linespec.c (find_method): Fix ix calculation.
9281
9282 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9283
9284 * syscalls/update-netbsd.sh: New file.
9285 * syscalls/netbsd.xml: Regenerate.
9286 * data-directory/Makefile.in: Register `netbsd.xml' in
9287 `SYSCALLS_FILES'.
9288
9289 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * syscalls/update-freebsd.sh: Add double quotes.
9292
9293 2020-04-28 Tom Tromey <tom@tromey.com>
9294
9295 * NEWS: Update.
9296 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9297 (cmdpy_init): Allow class_tui.
9298
9299 2020-04-28 Mark Williams <mark@myosotissp.com>
9300
9301 PR gdb/24480
9302 * dwarf2read.c: Add missing assingments to list_in_scope when
9303 start_symtab was already called.
9304
9305 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9306
9307 PR gdb/25881
9308 * dwarf2/read.c (offset_map_type): Use
9309 gdb:hash_enum<sect_offset> as hash function.
9310
9311 2020-04-28 Tom de Vries <tdevries@suse.de>
9312
9313 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9314 with DW_AT_signature.
9315
9316 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9317
9318 * configure.ac: Remove check for fs_base/gs_base in
9319 user_regs_struct.
9320 * configure: Re-generate.
9321 * config.in: Re-generate.
9322 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9323 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9324 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9325
9326 2020-04-27 Luis Machado <luis.machado@linaro.org>
9327
9328 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9329 problematic inline frame unwinding situation.
9330 * frame.c (frame_id_computed_p): New function.
9331 * frame.h (frame_id_computed_p): New prototype.
9332
9333 2020-04-26 Tom Tromey <tom@tromey.com>
9334
9335 * command.h (enum command_class) <class_pseudo>: Remove.
9336
9337 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9338
9339 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9340 and whitespace.
9341
9342 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9343
9344 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9345 `PT_GET_PROCESS_STATE' block.
9346
9347 2020-04-24 Tom Tromey <tom@tromey.com>
9348
9349 * symtab.h (symbol_get_demangled_name): Don't declare.
9350 * symtab.c (symbol_get_demangled_name): Remove.
9351 (general_symbol_info::natural_name)
9352 (general_symbol_info::demangled_name): Update.
9353
9354 2020-04-24 Tom Tromey <tom@tromey.com>
9355
9356 PR rust/25025:
9357 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9358
9359 2020-04-24 Tom Tromey <tom@tromey.com>
9360
9361 PR symtab/12707:
9362 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9363 exists.
9364 (new_symbol): Likewise.
9365 * compile/compile-object-load.c (get_out_value_type): Use
9366 symbol_matches_search_name.
9367
9368 2020-04-24 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2/read.c (add_partial_symbol): Do not call
9371 compute_and_set_names.
9372
9373 2020-04-24 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9376 overload.
9377
9378 2020-04-24 Tom Tromey <tom@tromey.com>
9379
9380 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9381 (add_psymbol_to_list): New overload. Make old overload call new
9382 one.
9383 * psympriv.h (add_psymbol_to_list): New overload.
9384
9385 2020-04-24 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2/read.c (partial_die_info::read) <case
9388 DW_AT_linkage_name>: Use value_as_string.
9389 (dwarf2_string_attr): Use value_as_string.
9390 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9391 method.
9392 * dwarf2/attribute.c (attribute::value_as_string): New method.
9393
9394 2020-04-24 Tom Tromey <tom@tromey.com>
9395
9396 * symtab.c (general_symbol_info::natural_name)
9397 (general_symbol_info::demangled_name): Check for language_rust.
9398
9399 2020-04-24 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9402 (dwarf2_physname): ... from here.
9403 (partial_die_info::read): Add Rust "{" hack.
9404
9405 2020-04-24 Tom Tromey <tom@tromey.com>
9406
9407 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9408 method.
9409 (symbol_set_demangled_name): Don't declare.
9410 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9411 symbol_set_demangled_name.
9412 (general_symbol_info::set_language)
9413 (general_symbol_info::compute_and_set_names): Update.
9414 * minsyms.c (minimal_symbol_reader::install): Update.
9415 * dwarf2/read.c (new_symbol): Update.
9416
9417 2020-04-24 Tom Tromey <tromey@adacore.com>
9418
9419 PR python/23662:
9420 * python/py-type.c (convert_field): Handle
9421 FIELD_LOC_KIND_DWARF_BLOCK.
9422 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9423 (typy_get_dynamic): Nw function.
9424 (type_object_getset): Add "dynamic".
9425 * NEWS: Add entry.
9426
9427 2020-04-24 Tom Tromey <tromey@adacore.com>
9428
9429 * ada-typeprint.c (print_choices, print_variant_part)
9430 (print_record_field_types_dynamic): New functions.
9431 (print_record_field_types): Use print_record_field_types_dynamic.
9432
9433 2020-04-24 Tom Tromey <tromey@adacore.com>
9434
9435 * dwarf2/read.c (handle_data_member_location): New overload.
9436 (dwarf2_add_field): Use it.
9437 (decode_locdesc): Add "computed" parameter. Update comment.
9438 * gdbtypes.c (is_dynamic_type_internal): Also look for
9439 FIELD_LOC_KIND_DWARF_BLOCK.
9440 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9441 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9442 virtual base classes.
9443 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9444 FIELD_LOC_KIND_DWARF_BLOCK.
9445
9446 2020-04-24 Tom Tromey <tromey@adacore.com>
9447
9448 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9449 * gdbtypes.c (is_dynamic_type_internal): Check
9450 TYPE_HAS_DYNAMIC_LENGTH.
9451 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9452 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9453 New macros.
9454 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9455 constant.
9456
9457 2020-04-24 Tom Tromey <tromey@adacore.com>
9458
9459 * dwarf2/read.c (struct variant_field): Rewrite.
9460 (struct variant_part_builder): New.
9461 (struct nextfield): Remove "variant" field. Add "offset".
9462 (struct field_info): Add "current_variant_part" and
9463 "variant_parts".
9464 (alloc_discriminant_info): Remove.
9465 (alloc_rust_variant): New function.
9466 (quirk_rust_enum): Update.
9467 (dwarf2_add_field): Set "offset" member. Don't handle
9468 DW_TAG_variant_part.
9469 (offset_map_type): New typedef.
9470 (convert_variant_range, create_one_variant)
9471 (create_one_variant_part, create_variant_parts)
9472 (add_variant_property): New functions.
9473 (dwarf2_attach_fields_to_type): Call add_variant_property.
9474 (read_structure_type): Don't handle DW_TAG_variant_part.
9475 (handle_variant_part, handle_variant): New functions.
9476 (handle_struct_member_die): Use them.
9477 (process_structure_scope): Don't handle variant parts.
9478 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9479 (struct discriminant_info): Remove.
9480 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9481 (struct main_type) <flag_discriminated_union>: Remove.
9482 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9483 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9484 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9485 Update.
9486 * valops.c (value_union_variant): Remove.
9487 * value.h (value_union_variant): Don't declare.
9488
9489 2020-04-24 Tom Tromey <tromey@adacore.com>
9490
9491 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9492 (ada_value_primitive_packed_val): Update.
9493 * ada-valprint.c (ada_value_print_1): Update.
9494 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9495 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9496 just an address. Use evaluate_for_locexpr_baton.
9497 (dwarf2_evaluate_property): Update.
9498 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9499 array_view.
9500 * findvar.c (default_read_var_value): Update.
9501 * gdbtypes.c (compute_variant_fields_inner)
9502 (resolve_dynamic_type_internal): Update.
9503 (resolve_dynamic_type): Change type of valaddr parameter.
9504 * gdbtypes.h (resolve_dynamic_type): Update.
9505 * valarith.c (value_subscripted_rvalue): Update.
9506 * value.c (value_from_contents_and_address): Update.
9507
9508 2020-04-24 Tom Tromey <tromey@adacore.com>
9509
9510 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9511 "push_initial_value" parameter.
9512 (dwarf2_evaluate_property): Likewise.
9513 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9514
9515 2020-04-24 Tom Tromey <tromey@adacore.com>
9516
9517 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9518 (variant::matches, compute_variant_fields_recurse)
9519 (compute_variant_fields_inner, compute_variant_fields): New
9520 functions.
9521 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9522 Use resolved_type after type is made.
9523 (operator==): Add new cases.
9524 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9525 (struct discriminant_range, struct variant, struct variant_part):
9526 New.
9527 (union dynamic_prop_data) <variant_parts, original_type>: New
9528 members.
9529 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9530 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9531 constants.
9532 * value.c (unpack_bits_as_long): Now public.
9533 * value.h (unpack_bits_as_long): Declare.
9534
9535 2020-04-24 Tom Tromey <tromey@adacore.com>
9536
9537 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9538 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9539
9540 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9541
9542 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9543
9544 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9545
9546 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9547 (remove_fork_catchpoint, post_startup_inferior)
9548 (post_attach): Move...
9549 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9550 (remove_fork_catchpoint, post_startup_inferior)
9551 (post_attach): ...here.
9552 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9553 (remove_fork_catchpoint, post_startup_inferior)
9554 (post_attach): Move...
9555 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9556 (remove_fork_catchpoint, post_startup_inferior)
9557 (post_attach): ...here.
9558
9559 2020-04-24 Tom Tromey <tromey@adacore.com>
9560
9561 * nat/windows-nat.h (struct windows_thread_info)
9562 <pc_adjusted>: New member.
9563 * windows-nat.c (windows_fetch_one_register): Check
9564 pc_adjusted.
9565 (windows_nat_target::get_windows_debug_event)
9566 (windows_nat_target::wait): Set pc_adjusted.
9567
9568 2020-04-24 Tom de Vries <tdevries@suse.de>
9569
9570 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9571 Run gdb-add-index inside temp dir.
9572
9573 2020-04-23 Tom Tromey <tromey@adacore.com>
9574
9575 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9576 in loop.
9577
9578 2020-04-23 Luis Machado <luis.machado@linaro.org>
9579
9580 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9581 get_frame_register instead of gdbarch_unwind_pc.
9582
9583 2020-04-23 Tom de Vries <tdevries@suse.de>
9584
9585 * symtab.c (lookup_global_symbol): Prefer def over decl.
9586
9587 2020-04-23 Tom de Vries <tdevries@suse.de>
9588
9589 PR symtab/25807
9590 * block.c (best_symbol, better_symbol): Promote to external.
9591 * block.h (best_symbol, better_symbol): Declare.
9592 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9593 decl.
9594
9595 2020-04-23 Tom Tromey <tromey@adacore.com>
9596
9597 PR ada/25837:
9598 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9599 "const char *", not a "const std::string &".
9600 <name_and_matcher::operator==>: Update.
9601 * unittests/lookup_name_info-selftests.c: Change type of
9602 "result".
9603
9604 2020-04-23 Tom Tromey <tom@tromey.com>
9605
9606 * inferior.h (iterate_over_inferiors): Don't declare.
9607 * inferior.c (iterate_over_inferiors): Remove.
9608 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9609 Remove.
9610 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9611 use iterate_over_inferiors.
9612 (darwin_resume_inferior_it)
9613 (struct resume_inferior_threads_param)
9614 (darwin_resume_inferior_threads_it): Remove.
9615 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9616
9617 2020-04-23 Tom de Vries <tdevries@suse.de>
9618
9619 * blockframe.c (find_pc_partial_function): Use
9620 find_pc_sect_compunit_symtab rather than
9621 objfile->sf->qf->find_pc_sect_compunit_symtab.
9622
9623 2020-04-22 Tom de Vries <tdevries@suse.de>
9624
9625 PR symtab/25764
9626 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9627 in psymtabs.
9628
9629 2020-04-22 Tom de Vries <tdevries@suse.de>
9630
9631 PR symtab/25801
9632 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9633 symtabs.
9634
9635 2020-04-22 Tom de Vries <tdevries@suse.de>
9636
9637 PR symtab/25700
9638 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9639 CU if already created.
9640
9641 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9642
9643 * infrun.c (displaced_step_fixup): Switch to the event_thread
9644 before calling displaced_step_restore, not after.
9645
9646 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9647
9648 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9649 its inferior is not recorded by us.
9650 (record_btrace_target_open): Replace call to
9651 all_non_exited_threads () with call to current_inferior
9652 ()->non_exited_threads ().
9653 (record_btrace_target::stop_recording): Likewise.
9654 (record_btrace_target::close): Likewise.
9655 (record_btrace_target::wait): Likewise.
9656 (record_btrace_target::record_stop_replaying): Likewise.
9657
9658 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9659
9660 * btrace.c (btrace_enable): Throw an error on double enables and
9661 when enabling recording fails.
9662 (btrace_disable): Throw an error if the thread is not recorded.
9663
9664 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9665
9666 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9667 request if we do not have a thread_info.
9668
9669 2020-04-21 Tom de Vries <tdevries@suse.de>
9670
9671 PR gdb/25471
9672 * thread.c
9673 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9674 exception in get_frame_id.
9675
9676 2020-04-20 Tom Tromey <tromey@adacore.com>
9677
9678 * python/python.c (struct gdbpy_event): Mark move constructor as
9679 noexcept.
9680 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9681 constructor as noexcept.
9682 * completer.h (struct completion_result): Mark move constructor as
9683 noexcept.
9684 * completer.c (completion_result::completion_result): Use
9685 initialization style. Don't call reset_match_list.
9686
9687 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9688
9689 * MAINTAINERS (Write After Approval): Add myself.
9690
9691 2020-04-18 Tom Tromey <tom@tromey.com>
9692
9693 * windows-tdep.c (init_w32_command_list)
9694 (w32_prefix_command_valid): Restore.
9695 (_initialize_windows_tdep): Call init_w32_command_list.
9696
9697 2020-04-18 Tom Tromey <tom@tromey.com>
9698
9699 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9700 * value.c (value_fn_field): Update.
9701 * valops.c (find_function_in_inferior)
9702 (value_allocate_space_in_inferior): Update.
9703 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9704 Update.
9705 * tui/tui-source.c (tui_source_window::set_contents): Update.
9706 * symtab.c (lookup_global_or_static_symbol)
9707 (find_function_start_sal_1, skip_prologue_sal)
9708 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9709 * symmisc.c (dump_msymbols, dump_symtab_1)
9710 (maintenance_print_one_line_table): Update.
9711 * symfile.c (init_entry_point_info, section_is_mapped)
9712 (list_overlays_command, simple_read_overlay_table)
9713 (simple_overlay_update_1): Update.
9714 * stap-probe.c (handle_stap_probe): Update.
9715 * stabsread.c (dbx_init_float_type, define_symbol)
9716 (read_one_struct_field, read_enum_type, read_range_type): Update.
9717 * source.c (info_line_command): Update.
9718 * python/python.c (gdbpy_source_objfile_script)
9719 (gdbpy_execute_objfile_script): Update.
9720 * python/py-type.c (save_objfile_types): Update.
9721 * python/py-objfile.c (py_free_objfile): Update.
9722 * python/py-inferior.c (python_new_objfile): Update.
9723 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9724 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9725 (maintenance_check_psymtabs): Update.
9726 * printcmd.c (info_address_command): Update.
9727 * objfiles.h (struct objfile) <arch>: New method, from
9728 get_objfile_arch.
9729 (get_objfile_arch): Don't declare.
9730 * objfiles.c (get_objfile_arch): Remove.
9731 (filter_overlapping_sections): Update.
9732 * minsyms.c (msymbol_is_function): Update.
9733 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9734 (output_nondebug_symbol): Update.
9735 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9736 (mdebug_expand_psymtab): Update.
9737 * machoread.c (macho_add_oso_symfile): Update.
9738 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9739 Update.
9740 * linux-fork.c (checkpoint_command): Update.
9741 * linespec.c (convert_linespec_to_sals): Update.
9742 * jit.c (finalize_symtab): Update.
9743 * infrun.c (insert_exception_resume_from_probe): Update.
9744 * ia64-tdep.c (ia64_find_unwind_table): Update.
9745 * hppa-tdep.c (internalize_unwinds): Update.
9746 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9747 Update.
9748 * gcore.c (call_target_sbrk): Update.
9749 * elfread.c (record_minimal_symbol, elf_symtab_read)
9750 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9751 (elf_gnu_ifunc_resolve_by_got): Update.
9752 * dwarf2/read.c (create_addrmap_from_index)
9753 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9754 (read_debug_names_from_section)
9755 (process_psymtab_comp_unit_reader, add_partial_symbol)
9756 (add_partial_subprogram, process_full_comp_unit)
9757 (read_file_scope, read_func_scope, read_lexical_block_scope)
9758 (read_call_site_scope, dwarf2_ranges_read)
9759 (dwarf2_record_block_ranges, dwarf2_add_field)
9760 (mark_common_block_symbol_computed, read_tag_pointer_type)
9761 (read_tag_string_type, dwarf2_init_float_type)
9762 (dwarf2_init_complex_target_type, read_base_type)
9763 (partial_die_info::read, partial_die_info::read)
9764 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9765 (dwarf2_fetch_die_loc_sect_off): Update.
9766 * dwarf2/loc.c (dwarf2_find_location_expression)
9767 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9768 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9769 (dwarf2_loc_desc_get_symbol_read_needs)
9770 (locexpr_describe_location_piece, locexpr_describe_location_1)
9771 (loclist_describe_location): Update.
9772 * dwarf2/index-write.c (write_debug_names): Update.
9773 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9774 * dtrace-probe.c (dtrace_process_dof): Update.
9775 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9776 (process_one_symbol): Update.
9777 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9778 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9779 (coff_read_enum_type): Update.
9780 * cli/cli-cmds.c (edit_command, list_command): Update.
9781 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9782 * breakpoint.c (create_overlay_event_breakpoint)
9783 (create_longjmp_master_breakpoint)
9784 (create_std_terminate_master_breakpoint)
9785 (create_exception_master_breakpoint, get_sal_arch): Update.
9786 * block.c (block_gdbarch): Update.
9787 * annotate.c (annotate_source_line): Update.
9788
9789 2020-04-17 Tom Tromey <tromey@adacore.com>
9790
9791 * auto-load.c (show_auto_load_cmd): Remove.
9792 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9793 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9794 (maintenance_print_arc_command): Remove.
9795 * tui/tui-win.c (tui_command): Remove.
9796 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9797 * tui/tui-layout.c (tui_layout_command): Remove.
9798 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9799 * python/python.c (user_set_python, user_show_python): Remove.
9800 (_initialize_python): Use add_basic_prefix_cmd,
9801 add_show_prefix_cmd.
9802 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9803 (install_gdb_commands): Use add_basic_prefix_cmd,
9804 add_show_prefix_cmd.
9805 (info_guile_command): Remove.
9806 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9807 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9808 add_show_prefix_cmd.
9809 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9810 Remove do_set and do_show parameters.
9811 * cli/cli-style.c (set_style, show_style): Remove.
9812 (_initialize_cli_style): Use add_basic_prefix_cmd,
9813 add_show_prefix_cmd.
9814 (cli_style_option::add_setshow_commands): Remove do_set and
9815 do_show parameters.
9816 (cli_style_option::add_setshow_commands): Use
9817 add_basic_prefix_cmd, add_show_prefix_cmd.
9818 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9819 (set_style_name): Remove.
9820 * cli/cli-dump.c (dump_command, append_command): Remove.
9821 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9822 (tekhex_dump_command, binary_dump_command)
9823 (binary_append_command): Remove.
9824 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9825 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9826 (init_w32_command_list): Remove; move into ...
9827 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9828 * valprint.c (set_print, show_print, set_print_raw)
9829 (show_print_raw): Remove.
9830 (_initialize_valprint): Use add_basic_prefix_cmd,
9831 add_show_prefix_cmd.
9832 * typeprint.c (set_print_type, show_print_type): Remove.
9833 (_initialize_typeprint): Use add_basic_prefix_cmd,
9834 add_show_prefix_cmd.
9835 * record.c (set_record_command, show_record_command): Remove.
9836 (_initialize_record): Use add_basic_prefix_cmd,
9837 add_show_prefix_cmd.
9838 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9839 add_show_prefix_cmd.
9840 (info_command, show_command, set_debug, show_debug): Remove.
9841 * top.h (set_history, show_history): Don't declare.
9842 * top.c (set_history, show_history): Remove.
9843 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9844 (unset_tdesc_cmd): Remove.
9845 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9846 add_show_prefix_cmd.
9847 * symtab.c (info_module_command): Remove.
9848 (_initialize_symtab): Use add_basic_prefix_cmd.
9849 * symfile.c (overlay_command): Remove.
9850 (_initialize_symfile): Use add_basic_prefix_cmd.
9851 * sparc64-tdep.c (info_adi_command): Remove.
9852 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9853 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9854 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9855 add_show_prefix_cmd.
9856 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9857 (_initialize_serial): Use add_basic_prefix_cmd,
9858 add_show_prefix_cmd.
9859 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9860 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9861 add_show_prefix_cmd.
9862 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9863 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9864 add_show_prefix_cmd.
9865 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9866 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9867 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9868 add_show_prefix_cmd.
9869 * remote.c (remote_command, set_remote_cmd): Remove.
9870 (_initialize_remote): Use add_basic_prefix_cmd.
9871 * record-full.c (set_record_full_command)
9872 (show_record_full_command): Remove.
9873 (_initialize_record_full): Use add_basic_prefix_cmd,
9874 add_show_prefix_cmd.
9875 * record-btrace.c (cmd_set_record_btrace)
9876 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9877 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9878 (cmd_show_record_btrace_pt): Remove.
9879 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9880 add_show_prefix_cmd.
9881 * ravenscar-thread.c (set_ravenscar_command)
9882 (show_ravenscar_command): Remove.
9883 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 * mips-tdep.c (show_mips_command, set_mips_command)
9886 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9887 add_show_prefix_cmd.
9888 * maint.c (maintenance_command, maintenance_info_command)
9889 (maintenance_check_command, maintenance_print_command)
9890 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9891 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9892 add_show_prefix_cmd.
9893 (show_per_command_cmd): Remove.
9894 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9895 Remove.
9896 (maintenance_show_test_settings_cmd): Remove.
9897 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9898 add_show_prefix_cmd.
9899 * maint-test-options.c (maintenance_test_options_command):
9900 Remove.
9901 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9902 * macrocmd.c (macro_command): Remove
9903 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9904 * language.c (set_check, show_check): Remove.
9905 (_initialize_language): Use add_basic_prefix_cmd,
9906 add_show_prefix_cmd.
9907 * infcmd.c (unset_command): Remove.
9908 (_initialize_infcmd): Use add_basic_prefix_cmd.
9909 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9910 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9911 add_show_prefix_cmd.
9912 * go32-nat.c (go32_info_dos_command): Remove.
9913 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9914 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9915 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9916 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9917 (_initialize_frame): Use add_basic_prefix_cmd,
9918 add_show_prefix_cmd.
9919 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9920 (_initialize_dcache): Use add_basic_prefix_cmd,
9921 add_show_prefix_cmd.
9922 * cp-support.c (maint_cplus_command): Remove.
9923 (_initialize_cp_support): Use add_basic_prefix_cmd.
9924 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9925 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9926 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9927 add_basic_prefix_cmd, add_show_prefix_cmd.
9928 * breakpoint.c (save_command): Remove.
9929 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9930 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9931 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9932 add_show_prefix_cmd.
9933 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9934 (set_ada_command, show_ada_command): Remove.
9935 (_initialize_ada_language): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9938
9939 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9940
9941 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9942 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9943
9944 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9945
9946 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9947 warning messages.
9948
9949 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9952 import table is not at beginning of .idata section.
9953
9954 2020-04-16 Pedro Alves <palves@redhat.com>
9955
9956 * inferior.c (delete_inferior): Use delete operator directly
9957 instead of delete_program_space.
9958 * progspace.c (add_program_space): New, factored out from
9959 program_space::program_space.
9960 (remove_program_space): New, factored out from
9961 delete_program_space.
9962 (program_space::program_space): Remove intro comment. Rewrite.
9963 (program_space::~program_space): Remove intro comment. Call
9964 remove_program_space.
9965 (delete_program_space): Delete.
9966 * progspace.h (program_space::program_space): Make explicit. Move
9967 intro comment here, adjusted.
9968 (program_space::~program_space): Move intro comment here,
9969 adjusted.
9970 (delete_program_space): Remove.
9971
9972 2020-04-16 Tom Tromey <tromey@adacore.com>
9973
9974 * windows-nat.c (windows_nat::handle_access_violation): New
9975 function.
9976 * nat/windows-nat.h (handle_access_violation): Declare.
9977 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9978 windows-nat.c. Call handle_access_violation.
9979
9980 2020-04-16 Tom de Vries <tdevries@suse.de>
9981
9982 PR symtab/25791
9983 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9984 CUs without psymtab.
9985
9986 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9987
9988 * python/python.c (do_start_initialization): Don't call
9989 PyEval_InitThreads for Python 3.9 and beyond.
9990
9991 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9992
9993 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9994 thread functions.
9995 (obsd_nat_target::wait): Likewise.
9996
9997 2020-04-15 Tom Tromey <tromey@adacore.com>
9998
9999 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10000 (DEBUG_EXCEPT): Use debug_printf.
10001
10002 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10003
10004 * completer.c (class completion_tracker::completion_hash_entry)
10005 <hash_name>: New member function.
10006 (completion_tracker::discard_completions): New callback to hash a
10007 completion_hash_entry, pass this to htab_create_alloc.
10008
10009 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10010
10011 * windows-nat.c (windows_make_so): Warn rather than stopping with
10012 an error if realpath() fails.
10013
10014 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10015
10016 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10017 (nbsd_nat_target::info_proc): Add do_status.
10018
10019 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10020 Tom de Vries <tdevries@suse.de>
10021
10022 PR symtab/25718
10023 * psympriv.h (struct partial_symtab::read_symtab)
10024 (struct partial_symtab::expand_psymtab)
10025 (struct partial_symtab::read_dependencies): Update comments.
10026 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10027 read_symtab for includer.
10028 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10029 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10030 (struct dwarf2_include_psymtab::m_readin): Remove.
10031 (struct dwarf2_include_psymtab::includer): New member function.
10032 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10033
10034 2020-04-14 Tom de Vries <tdevries@suse.de>
10035
10036 PR symtab/25720
10037 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10038 with NULL symbol_matcher and lookup_name.
10039 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10040 and lookup_name.
10041 * dwarf2/read.c (dw2_expand_symtabs_matching)
10042 (dw2_debug_names_expand_symtabs_matching): Same.
10043 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10044 Make lookup_name a pointer. Update comment.
10045 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10046 lookup_name being a pointer.
10047 * symfile.c (expand_symtabs_matching): Same.
10048 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10049 * linespec.c (iterate_over_all_matching_symtabs): Same.
10050
10051 2020-04-13 Tom Tromey <tom@tromey.com>
10052
10053 * run-on-main-thread.c: Update include.
10054 * unittests/main-thread-selftests.c: Update include.
10055 * tui/tui-win.c: Update include.
10056 * tui/tui-io.c: Update include.
10057 * tui/tui-interp.c: Update include.
10058 * tui/tui-hooks.c: Update include.
10059 * top.h: Update include.
10060 * top.c: Update include.
10061 * ser-base.c: Update include.
10062 * remote.c: Update include.
10063 * remote-notif.c: Update include.
10064 * remote-fileio.c: Update include.
10065 * record-full.c: Update include.
10066 * record-btrace.c: Update include.
10067 * python/python.c: Update include.
10068 * posix-hdep.c: Update include.
10069 * mingw-hdep.c: Update include.
10070 * mi/mi-main.c: Update include.
10071 * mi/mi-interp.c: Update include.
10072 * main.c: Update include.
10073 * linux-nat.c: Update include.
10074 * interps.c: Update include.
10075 * infrun.c: Update include.
10076 * inf-loop.c: Update include.
10077 * event-top.c: Update include.
10078 * event-loop.c: Move to ../gdbsupport/.
10079 * event-loop.h: Move to ../gdbsupport/.
10080 * async-event.h: Update include.
10081 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10082
10083 2020-04-13 Tom Tromey <tom@tromey.com>
10084
10085 * tui/tui-win.c: Include async-event.h.
10086 * remote.c: Include async-event.h.
10087 * remote-notif.c: Include async-event.h.
10088 * record-full.c: Include async-event.h.
10089 * record-btrace.c: Include async-event.h.
10090 * infrun.c: Include async-event.h.
10091 * event-top.c: Include async-event.h.
10092 * event-loop.h: Move some declarations to async-event.h.
10093 * event-loop.c: Don't include ser-event.h or top.h. Move some
10094 code to async-event.c.
10095 * async-event.h: New file.
10096 * async-event.c: New file.
10097 * Makefile.in (COMMON_SFILES): Add async-event.c.
10098 (HFILES_NO_SRCDIR): Add async-event.h.
10099
10100 2020-04-13 Tom Tromey <tom@tromey.com>
10101
10102 * utils.c (flush_streams): New function.
10103 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10104
10105 2020-04-13 Tom Tromey <tom@tromey.com>
10106
10107 * event-loop.c (handle_file_event): Use warning, not
10108 printf_unfiltered.
10109
10110 2020-04-13 Tom Tromey <tom@tromey.com>
10111
10112 * event-loop.c: Include <chrono>.
10113
10114 2020-04-13 Tom Tromey <tom@tromey.com>
10115
10116 * gdb_select.h: Move to ../gdbsupport/.
10117 * event-loop.c: Update include path.
10118 * top.c: Update include path.
10119 * ser-base.c: Update include path.
10120 * ui-file.c: Update include path.
10121 * ser-tcp.c: Update include path.
10122 * guile/scm-ports.c: Update include path.
10123 * posix-hdep.c: Update include path.
10124 * ser-unix.c: Update include path.
10125 * gdb_usleep.c: Update include path.
10126 * mingw-hdep.c: Update include path.
10127 * inflow.c: Update include path.
10128 * infrun.c: Update include path.
10129 * event-top.c: Update include path.
10130
10131 2020-04-13 Tom Tromey <tom@tromey.com>
10132
10133 * configure: Rebuild.
10134 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10135
10136 2020-04-13 Tom Tromey <tom@tromey.com>
10137
10138 * event-loop.h (start_event_loop): Don't declare.
10139 * event-loop.c (start_event_loop): Move...
10140 * main.c (start_event_loop): ...here. Now static.
10141
10142 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10143
10144 * MAINTAINERS: Update my email address.
10145
10146 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10147
10148 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10149 IP_ALL.
10150
10151 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10152
10153 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10154 (nbsd_nat_target::info_proc): Add do_cmdline.
10155
10156 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10157
10158 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10159 (nbsd_nat_target::info_proc): Add do_cwd.
10160
10161 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10162
10163 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10164
10165 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10166
10167 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10168 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10169 (nbsd_nat_target::info_proc): New functions.
10170 * nbsd-nat.c (kinfo_get_vmmap): New function.
10171 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10172 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10173 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10174 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10175 functions.
10176 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10177 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10178 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10179 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10180 (KINFO_VME_FLAG_GROWS_DOWN): New.
10181
10182 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10183
10184 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10185 bit shift.
10186
10187 2020-04-10 Tom Tromey <tromey@adacore.com>
10188
10189 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10190
10191 2020-04-10 Tom Tromey <tromey@adacore.com>
10192
10193 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10194 separate debug files.
10195
10196 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10197
10198 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10199 Move to...
10200 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10201 ... here.
10202 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10203 Check for STATUS_WX86_BREAKPOINT.
10204 (windows_nat_target::wait): Same.
10205
10206 2020-04-10 Tom de Vries <tdevries@suse.de>
10207
10208 PR cli/25808
10209 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10210
10211 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10212
10213 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10214 (Write After Approval): Remove Tom de Vries.
10215
10216 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10217
10218 revert partially:
10219 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10220
10221 * buildsym.c (record_line): Fix undefined behavior and preserve
10222 lines at eof.
10223
10224 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10225
10226 * auxv.h (svr4_auxv_parse): New.
10227 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10228 and generic_auxv_parse.
10229 (svr4_auxv_parse): Add.
10230 * obsd-tdep.c: Include "auxv.h".
10231 (obsd_auxv_parse): Remove.
10232 (obsd_init_abi): Remove comment.
10233 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10234 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10235 * nbsd-tdep.c: Include "auxv.h".
10236 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10237
10238 2020-04-08 Tom Tromey <tromey@adacore.com>
10239
10240 * nat/windows-nat.h (last_wait_event): Don't declare.
10241 (wait_for_debug_event): Update comment.
10242 * nat/windows-nat.c (last_wait_event): Now static.
10243
10244 2020-04-08 Tom Tromey <tromey@adacore.com>
10245
10246 * windows-nat.c (wait_for_debug_event): Move to
10247 nat/windows-nat.c.
10248 * nat/windows-nat.h (wait_for_debug_event): Declare.
10249 * nat/windows-nat.c (wait_for_debug_event): Move from
10250 windows-nat.c. No longer static.
10251
10252 2020-04-08 Tom Tromey <tromey@adacore.com>
10253
10254 * windows-nat.c (get_windows_debug_event): Use
10255 fetch_pending_stop.
10256 * nat/windows-nat.h (fetch_pending_stop): Declare.
10257 * nat/windows-nat.c (fetch_pending_stop): New function.
10258
10259 2020-04-08 Tom Tromey <tromey@adacore.com>
10260
10261 * windows-nat.c (windows_continue): Use matching_pending_stop and
10262 continue_last_debug_event.
10263 * nat/windows-nat.h (matching_pending_stop)
10264 (continue_last_debug_event): Declare.
10265 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10266 (matching_pending_stop, continue_last_debug_event): New
10267 functions.
10268
10269 2020-04-08 Tom Tromey <tromey@adacore.com>
10270
10271 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10272 (handle_exception_result): Move to nat/windows-nat.h.
10273 (DEBUG_EXCEPTION_SIMPLE): Remove.
10274 (windows_nat::handle_ms_vc_exception): New function.
10275 (handle_exception): Move to nat/windows-nat.c.
10276 (get_windows_debug_event): Update.
10277 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10278 nat/windows-nat.c.
10279 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10280 (handle_exception_result): Move from windows-nat.c.
10281 (handle_exception): Declare.
10282 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10283 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10284 windows-nat.c.
10285
10286 2020-04-08 Tom Tromey <tromey@adacore.com>
10287
10288 * windows-nat.c (exception_count, event_count): Remove.
10289 (handle_exception, get_windows_debug_event)
10290 (do_initial_windows_stuff): Update.
10291
10292 2020-04-08 Tom Tromey <tromey@adacore.com>
10293
10294 * windows-nat.c (windows_nat::handle_load_dll)
10295 (windows_nat::handle_unload_dll): Rename. No longer static.
10296 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10297 Declare.
10298
10299 2020-04-08 Tom Tromey <tromey@adacore.com>
10300
10301 * complaints.h (stop_whining): Declare at top-level.
10302 (complaint): Don't declare stop_whining.
10303
10304 2020-04-08 Tom Tromey <tromey@adacore.com>
10305
10306 * windows-nat.c (windows_nat::handle_output_debug_string):
10307 Rename. No longer static.
10308 * nat/windows-nat.h (handle_output_debug_string): Declare.
10309
10310 2020-04-08 Tom Tromey <tromey@adacore.com>
10311
10312 * windows-nat.c (current_process_handle, current_process_id)
10313 (main_thread_id, last_sig, current_event, last_wait_event)
10314 (current_windows_thread, desired_stop_thread_id, pending_stops)
10315 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10316 (display_selectors, fake_create_process)
10317 (get_windows_debug_event): Update.
10318 * nat/windows-nat.h (current_process_handle, current_process_id)
10319 (main_thread_id, last_sig, current_event, last_wait_event)
10320 (current_windows_thread, desired_stop_thread_id, pending_stops)
10321 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10322 * nat/windows-nat.c (current_process_handle, current_process_id)
10323 (main_thread_id, last_sig, current_event, last_wait_event)
10324 (current_windows_thread, desired_stop_thread_id, pending_stops)
10325 (siginfo_er): New globals. Move from windows-nat.c.
10326
10327 2020-04-08 Tom Tromey <tromey@adacore.com>
10328
10329 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10330 (handle_load_dll): Update.
10331 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10332
10333 2020-04-08 Tom Tromey <tromey@adacore.com>
10334
10335 * windows-nat.c (enum thread_disposition_type): Move to
10336 nat/windows-nat.h.
10337 (windows_nat::thread_rec): Rename from thread_rec. No longer
10338 static.
10339 (windows_add_thread, windows_nat_target::fetch_registers)
10340 (windows_nat_target::store_registers, handle_exception)
10341 (windows_nat_target::resume, get_windows_debug_event)
10342 (windows_nat_target::get_tib_address)
10343 (windows_nat_target::thread_name)
10344 (windows_nat_target::thread_alive): Update.
10345 * nat/windows-nat.h (enum thread_disposition_type): Move from
10346 windows-nat.c.
10347 (thread_rec): Declare.
10348
10349 2020-04-08 Tom Tromey <tromey@adacore.com>
10350
10351 * windows-nat.c: Add "using namespace".
10352 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10353 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10354
10355 2020-04-08 Tom Tromey <tromey@adacore.com>
10356
10357 * nat/windows-nat.h (struct windows_thread_info): Declare
10358 destructor.
10359 * nat/windows-nat.c (~windows_thread_info): New.
10360
10361 2020-04-08 Tom Tromey <tromey@adacore.com>
10362
10363 PR gdb/22992
10364 * windows-nat.c (current_event): Update comment.
10365 (last_wait_event, desired_stop_thread_id): New globals.
10366 (struct pending_stop): New.
10367 (pending_stops): New global.
10368 (windows_nat_target) <stopped_by_sw_breakpoint>
10369 <supports_stopped_by_sw_breakpoint>: New methods.
10370 (windows_fetch_one_register): Add assertions. Adjust PC.
10371 (windows_continue): Handle pending stops. Suspend other threads
10372 when stepping. Use last_wait_event
10373 (wait_for_debug_event): New function.
10374 (get_windows_debug_event): Use wait_for_debug_event. Handle
10375 pending stops. Queue spurious stops.
10376 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10377 (windows_nat_target::kill): Use wait_for_debug_event.
10378 * nat/windows-nat.h (struct windows_thread_info)
10379 <stopped_at_software_breakpoint>: New field.
10380 * nat/windows-nat.c (windows_thread_info::resume): Clear
10381 stopped_at_software_breakpoint.
10382
10383 2020-04-08 Tom Tromey <tromey@adacore.com>
10384
10385 * windows-nat.c (enum thread_disposition_type): New.
10386 (thread_rec): Replace "get_context" parameter with "disposition";
10387 change type.
10388 (windows_add_thread, windows_nat_target::fetch_registers)
10389 (windows_nat_target::store_registers, handle_exception)
10390 (windows_nat_target::resume, get_windows_debug_event)
10391 (windows_nat_target::get_tib_address)
10392 (windows_nat_target::thread_name)
10393 (windows_nat_target::thread_alive): Update.
10394
10395 2020-04-08 Tom Tromey <tromey@adacore.com>
10396
10397 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10398 (windows_continue): Use windows_continue::resume.
10399 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10400 resume>: Declare new methods.
10401 * nat/windows-nat.c: New file.
10402 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10403
10404 2020-04-08 Tom Tromey <tromey@adacore.com>
10405
10406 * windows-nat.c (windows_add_thread, windows_delete_thread)
10407 (windows_nat_target::fetch_registers)
10408 (windows_nat_target::store_registers, fake_create_process)
10409 (windows_nat_target::resume, windows_nat_target::resume)
10410 (get_windows_debug_event, windows_nat_target::wait)
10411 (windows_nat_target::pid_to_str)
10412 (windows_nat_target::get_tib_address)
10413 (windows_nat_target::get_ada_task_ptid)
10414 (windows_nat_target::thread_name)
10415 (windows_nat_target::thread_alive): Use lwp, not tid.
10416
10417 2020-04-08 Tom Tromey <tromey@adacore.com>
10418
10419 * windows-nat.c (handle_exception)
10420 (windows_nat_target::thread_name): Update.
10421 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10422 <name>: Now unique_xmalloc_ptr.
10423
10424 2020-04-08 Tom Tromey <tromey@adacore.com>
10425
10426 * windows-nat.c (thread_rec)
10427 (windows_nat_target::fetch_registers): Update.
10428 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10429 Update comment.
10430 <debug_registers_changed, reload_context>: Now bool.
10431
10432 2020-04-08 Tom Tromey <tromey@adacore.com>
10433
10434 * windows-nat.c (windows_add_thread): Use new.
10435 (windows_init_thread_list, windows_delete_thread): Use delete.
10436 (get_windows_debug_event): Update.
10437 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10438 destructor, and initializers.
10439
10440 2020-04-08 Tom Tromey <tromey@adacore.com>
10441
10442 * windows-nat.c (struct windows_thread_info): Remove.
10443 * nat/windows-nat.h: New file.
10444
10445 2020-04-08 Tom Tromey <tromey@adacore.com>
10446
10447 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10448 (thread_rec, windows_add_thread, windows_delete_thread)
10449 (windows_continue): Update.
10450
10451 2020-04-08 Tom Tromey <tromey@adacore.com>
10452
10453 * windows-nat.c (struct windows_thread_info): Remove typedef.
10454 (thread_head): Remove.
10455 (thread_list): New global.
10456 (thread_rec, windows_add_thread, windows_init_thread_list)
10457 (windows_delete_thread, windows_continue): Update.
10458
10459 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * windows-tdep.h (windows_init_abi): Add comment.
10462 (cygwin_init_abi): New declaration.
10463 * windows-tdep.c: Split signal enumeration in two, one for
10464 Windows and one for Cygwin.
10465 (windows_gdb_signal_to_target): Only deal with signal of the
10466 Windows OS ABI.
10467 (cygwin_gdb_signal_to_target): New function.
10468 (windows_init_abi): Rename to windows_init_abi_common, don't set
10469 gdb_signal_to_target gdbarch method. Add new new function with
10470 this name.
10471 (cygwin_init_abi): New function.
10472 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10473 comment. Don't call windows_init_abi.
10474 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10475 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10476 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10477 i386_windows_init_abi_common, don't call windows_init_abi. Add
10478 a new function of this name.
10479 (i386_cygwin_init_abi): New function.
10480 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10481 OS ABI Cygwin.
10482
10483 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10484
10485 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10486 parameter.c.
10487 (dwarf2_read_gdb_index): Update.
10488
10489 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10490
10491 * nbsd-tdep.c: Include "objfiles.h".
10492 (nbsd_skip_solib_resolver): New.
10493 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10494
10495 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10496
10497 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10498 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10499 with DW_LLE_base_addressx are being emitted in DWARFv5.
10500 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10501 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10502 unsigned integer.
10503
10504 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10505
10506 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10507 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10508 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10509 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10510 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10511 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10512 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10513
10514
10515 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10516
10517 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10518 (read_loclist_index): New function definition.
10519 (lookup_loclist_base): New function definition.
10520 (read_loclist_header): New function definition.
10521 (dwarf2_cu): Add loclist_base and loclist_header field.
10522 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10523 (read_full_die_1): Read the value of DW_AT_loclists_base.
10524 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10525 (read_attribute_value): Handle DW_FORM_loclistx.
10526 (skip_one_die): Handle DW_FORM_loclistx.
10527 (loclist_header): New structure declaration.
10528 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10529
10530 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10531
10532 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10533 constructor. Remove `addr` parameter from other constructor and
10534 add `per_cu` parameter.
10535 * dwarf2/read.c (create_partial_symtab): Update.
10536
10537 2020-04-07 Tom de Vries <tdevries@suse.de>
10538
10539 PR symtab/25796
10540 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10541 (partial_die_info::fixup): Inherit has_const_value.
10542
10543 2020-04-07 Tom de Vries <tdevries@suse.de>
10544
10545 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10546 symbols without address.
10547
10548 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10549
10550 * nbsd-nat.h (struct thread_info): Add forward declaration.
10551 (nbsd_nat_target::thread_alive): Add.
10552 (nbsd_nat_target::thread_name): Likewise.
10553 (nbsd_nat_target::update_thread_list): Likewise.
10554 (update_thread_list::post_attach): Likewise.
10555 (post_attach::pid_to_str): Likewise.
10556 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10557 (nbsd_thread_lister): Add.
10558 (nbsd_nat_target::thread_alive): Likewise.
10559 (nbsd_nat_target::thread_name): Likewise.
10560 (nbsd_add_threads): Likewise.
10561 (update_thread_list::post_attach): Likewise.
10562 (nbsd_nat_target::update_thread_list): Likewise.
10563 (post_attach::pid_to_str): Likewise.
10564
10565 2020-04-06 Tom Tromey <tromey@adacore.com>
10566
10567 * ada-valprint.c (print_variant_part): Extract the variant field.
10568 (print_field_values): Use the field as the outer value when
10569 recursing.
10570
10571 2020-04-06 Tom Tromey <tromey@adacore.com>
10572
10573 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10574 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10575 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10576 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10577 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10578
10579 2020-04-06 Tom Tromey <tromey@adacore.com>
10580
10581 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10582 TYPE_CODE_ERROR.
10583
10584 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10585
10586 * nbsd-tdep.c: Include "gdbarch.h".
10587 Define enum with NetBSD signal numbers.
10588 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10589 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10590 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10591 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10592 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10593 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10594 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10595 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10596 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10597 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10598 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10599 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10600
10601 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10602
10603 PR gdb/25325
10604 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10605
10606 2020-04-03 Tom Tromey <tromey@adacore.com>
10607
10608 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10609 Read constant block.
10610
10611 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10612
10613 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10614 (gdb_bfd_get_full_section_contents): New declaration.
10615 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10616 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10617 gdb_bfd_get_full_section_contents.
10618
10619 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * exec.c (build_section_table): Replace internal_error with
10622 gdb_assert.
10623 (section_table_xfer_memory_partial): Likewise.
10624 * mdebugread.c (parse_partial_symbols): Likewise.
10625 * psymtab.c (lookup_partial_symbol): Likewise.
10626 * utils.c (wrap_here): Likewise.
10627
10628 2020-04-02 Tom Tromey <tromey@adacore.com>
10629
10630 * f-lang.c (build_fortran_types): Use arch_type to initialize
10631 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10632
10633 2020-04-02 Tom Tromey <tromey@adacore.com>
10634
10635 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10636 of attributes.
10637
10638 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10639 Bernd Edlinger <bernd.edlinger@hotmail.de>
10640 Tom Tromey <tromey@adacore.com>
10641
10642 * buildsym.c (buildsym_compunit::record_line): Remove
10643 deduplication code.
10644
10645 2020-04-02 Tom de Vries <tdevries@suse.de>
10646
10647 PR ada/24671
10648 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10649
10650 2020-04-02 Tom de Vries <tdevries@suse.de>
10651
10652 * dwarf2/read.c (dwarf2_gdb_index_functions,
10653 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10654 NULL.
10655 * psymtab.c (psym_lookup_global_symbol_language): New function.
10656 (psym_functions): Init psym_lookup_global_symbol_language with
10657 psym_lookup_global_symbol_language.
10658 * symfile-debug.c (debug_sym_quick_functions): Init
10659 lookup_global_symbol_language with NULL.
10660 * symfile.c (set_initial_language): Remove fixme comment.
10661 * symfile.h (struct quick_symbol_functions): Add
10662 lookup_global_symbol_language.
10663 * symtab.c (find_quick_global_symbol_language): New function.
10664 (find_main_name): Use find_quick_global_symbol_language.
10665
10666 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10667
10668 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10669
10670 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10671
10672 * buildsym.c (record_line): Fix undefined behavior and preserve
10673 lines at eof.
10674
10675 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10676
10677 * buildsym.c (record_line): Fix the resizing condition.
10678
10679 2020-04-01 Tom Tromey <tom@tromey.com>
10680
10681 * value.h (value_literal_complex): Add comment.
10682 * valops.c (value_literal_complex): Refer to value.h.
10683
10684 2020-04-01 Tom Tromey <tom@tromey.com>
10685
10686 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10687 (scalar_type): New rule, from typebase.
10688 (typebase): Use scalar_type. Recognize complex types.
10689 (field_name): Handle FLOAT_KEYWORD.
10690 (ident_tokens): Add _Complex and __complex__.
10691
10692 2020-04-01 Tom Tromey <tom@tromey.com>
10693
10694 PR exp/25299:
10695 * valarith.c (promotion_type, complex_binop): New functions.
10696 (scalar_binop): Handle complex numbers. Use promotion_type.
10697 (value_pos, value_neg, value_complement): Handle complex numbers.
10698
10699 2020-04-01 Tom Tromey <tom@tromey.com>
10700
10701 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10702 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10703 (parse_number): Handle complex numbers.
10704
10705 2020-04-01 Tom Tromey <tom@tromey.com>
10706
10707 * c-valprint.c (c_decorations): Change complex suffix to "i".
10708
10709 2020-04-01 Tom Tromey <tom@tromey.com>
10710
10711 * valprint.c (generic_value_print_complex): Use accessors.
10712 * value.h (value_real_part, value_imaginary_part): Declare.
10713 * valops.c (value_real_part, value_imaginary_part): New
10714 functions.
10715 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10716
10717 2020-04-01 Tom Tromey <tom@tromey.com>
10718
10719 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10720 (read_range_type): Update.
10721 * mdebugread.c (basic_type): Update.
10722 * go-lang.c (build_go_types): Use init_complex_type.
10723 * gdbtypes.h (struct main_type) <complex_type>: New member.
10724 (init_complex_type): Update.
10725 (arch_complex_type): Don't declare.
10726 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10727 Make name if none given. Use alloc_type_copy. Look for cached
10728 complex type.
10729 (arch_complex_type): Remove.
10730 (gdbtypes_post_init): Use init_complex_type.
10731 * f-lang.c (build_fortran_types): Use init_complex_type.
10732 * dwarf2/read.c (read_base_type): Update.
10733 * d-lang.c (build_d_types): Use init_complex_type.
10734 * ctfread.c (read_base_type): Update.
10735
10736 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10737
10738 * infrun.c (stop_all_threads): Update assertion, plus when
10739 stopping threads, take into account that we might be trying
10740 to stop an all-stop target.
10741 (stop_waiting): Call 'stop_all_threads' if there exists a
10742 non-stop target.
10743
10744 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10745
10746 * target.h (exists_non_stop_target): New function declaration.
10747 * target.c (exists_non_stop_target): New function.
10748
10749 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10750
10751 PR gdb/24789
10752 * eval.c (is_integral_or_integral_reference): New function.
10753 (evaluate_subexp_standard): Allow integer references in
10754 pointer arithmetic.
10755
10756 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10757
10758 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10759 check for no ptid in the stop reply when the target is non-stop.
10760
10761 2020-04-01 Tom Tromey <tromey@adacore.com>
10762
10763 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10764 "name" parameter to rvalue reference. Initialize m_name_holder.
10765 <lookup_name_info>: New overloads.
10766 <name>: Return gdb::string_view.
10767 <c_str>: New method.
10768 <make_ignore_params>: Update.
10769 <search_name_hash>: Update.
10770 <language_lookup_name>: Return const char *.
10771 <m_name>: Change type.
10772 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10773 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10774 (lookup_name_info::match_any): Update.
10775 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10776 Update.
10777 * minsyms.c (linkage_name_str): Update.
10778 * language.c (default_symbol_name_matcher): Update.
10779 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10780 Update.
10781 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10782 (ada_lookup_name_info::ada_lookup_name_info): Update.
10783 (literal_symbol_name_matcher): Update.
10784
10785 2020-04-01 Tom Tromey <tromey@adacore.com>
10786
10787 * psymtab.c (psymtab_search_name): Remove function.
10788 (psym_lookup_symbol): Create search name and lookup name here.
10789 (lookup_partial_symbol): Remove "name" parameter; add
10790 lookup_name.
10791 (psym_expand_symtabs_for_function): Update.
10792
10793 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10794
10795 PR tui/25597:
10796 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10797
10798 2020-03-31 Tom Tromey <tromey@adacore.com>
10799
10800 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10801 memcpy.
10802
10803 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10804
10805 * features/riscv/32bit-csr.xml: Regenerated.
10806 * features/riscv/64bit-csr.xml: Regenerated.
10807
10808 2020-03-30 Tom Tromey <tromey@adacore.com>
10809
10810 * ada-valprint.c (print_variant_part): Update.
10811 * ada-lang.h (ada_which_variant_applies): Update.
10812 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10813 outer_valaddr parameters; replace with "outer" value parameter.
10814 (to_fixed_variant_branch_type): Update.
10815
10816 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10817
10818 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10819 <list>. Remove inclusion of observable.h.
10820 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10821 (struct arch_lwp_info): New struct.
10822 (class ppc_linux_dreg_interface): New class.
10823 (struct ppc_linux_process_info): New struct.
10824 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10825 <low_new_clone, low_forget_process, low_prepare_to_resume>
10826 <copy_thread_dreg_state, mark_thread_stale>
10827 <mark_debug_registers_changed, register_hw_breakpoint>
10828 <clear_hw_breakpoint, register_wp, clear_wp>
10829 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10830 <num_memory_accesses, get_trigger_type>
10831 <create_watchpoint_request, hwdebug_point_cmp>
10832 <init_arch_lwp_info, get_arch_lwp_info>
10833 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10834 methods.
10835 <struct ptid_hash>: New inner struct.
10836 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10837 members.
10838 (saved_dabr_value, hwdebug_info, max_slots_number)
10839 (struct hw_break_tuple, struct thread_points, ppc_threads)
10840 (have_ptrace_hwdebug_interface)
10841 (hwdebug_find_thread_points_by_tid)
10842 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10843 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10844 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10845 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10846 use m_dreg_interface.
10847 (hwdebug_point_cmp): Change to...
10848 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10849 reference arguments instead of pointers.
10850 (ppc_linux_nat_target::ranged_break_num_registers): Use
10851 m_dreg_interface.
10852 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10853 m_dreg_interface. Call register_hw_breakpoint.
10854 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10855 m_dreg_interface. Call clear_hw_breakpoint.
10856 (get_trigger_type): Change to...
10857 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10858 comment.
10859 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10860 use m_dreg_interface. Call register_hw_breakpoint.
10861 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10862 use m_dreg_interface. Call clear_hw_breakpoint.
10863 (can_use_watchpoint_cond_accel): Change to...
10864 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10865 method. Update comment, use m_dreg_interface and
10866 m_process_info.
10867 (calculate_dvc): Change to...
10868 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10869 m_dreg_interface.
10870 (num_memory_accesses): Change to...
10871 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10872 (check_condition): Change to...
10873 (ppc_linux_nat_target::check_condition): ...this method.
10874 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10875 comment, use m_dreg_interface.
10876 (create_watchpoint_request): Change to...
10877 (ppc_linux_nat_target::create_watchpoint_request): ...this
10878 method. Use m_dreg_interface.
10879 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10880 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10881 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10882 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10883 (ppc_linux_nat_target::low_forget_process)
10884 (ppc_linux_nat_target::low_new_fork)
10885 (ppc_linux_nat_target::low_new_clone)
10886 (ppc_linux_nat_target::low_delete_thread)
10887 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10888 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10889 only call mark_thread_stale.
10890 (ppc_linux_thread_exit): Remove.
10891 (ppc_linux_nat_target::stopped_data_address): Change to...
10892 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10893 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10894 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10895 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10896 comment. Call low_stopped_data_address.
10897 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10898 m_dreg_interface.
10899 (ppc_linux_nat_target::masked_watch_num_registers): Use
10900 m_dreg_interface.
10901 (ppc_linux_nat_target::copy_thread_dreg_state)
10902 (ppc_linux_nat_target::mark_thread_stale)
10903 (ppc_linux_nat_target::mark_debug_registers_changed)
10904 (ppc_linux_nat_target::register_hw_breakpoint)
10905 (ppc_linux_nat_target::clear_hw_breakpoint)
10906 (ppc_linux_nat_target::register_wp)
10907 (ppc_linux_nat_target::clear_wp)
10908 (ppc_linux_nat_target::init_arch_lwp_info)
10909 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10910 (_initialize_ppc_linux_nat): Remove observer callback.
10911
10912 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10913
10914 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10915 (ppc_linux_nat_target::auxv_parse)
10916 (ppc_linux_nat_target::read_description)
10917 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10918 Move up.
10919
10920 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10921
10922 * linux-nat.h (low_new_clone): New method.
10923 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10924
10925 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10926
10927 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10928 (dbx_expand_psymtab): ... this.
10929 (start_psymtab): Update.
10930 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10931 (mdebug_expand_psymtab): ... this.
10932 (parse_partial_symbols): Update.
10933 (new_psymtab): Update.
10934 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10935 (xcoff_expand_psymtab): ... this.
10936 (xcoff_start_psymtab): Update.
10937
10938 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10939
10940 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10941 <expand_dependencies>: ... this.
10942 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10943 (partial_symtab::expand_dependencies): ... this.
10944 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10945 Update.
10946 (dwarf2_psymtab::expand_psymtab): Update.
10947 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10948 * mdebugread.c (psymtab_to_symtab_1): Update.
10949 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10950
10951 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10952
10953 * psympriv.h (discard_psymtab): Remove.
10954 * dbxread.c (dbx_end_psymtab): Update.
10955 * xcoffread.c (xcoff_end_psymtab): Update.
10956
10957 2020-03-28 Tom Tromey <tom@tromey.com>
10958
10959 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10960 comment.
10961
10962 2020-03-28 Tom Tromey <tom@tromey.com>
10963
10964 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10965
10966 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10967
10968 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10969
10970 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10971
10972 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10973
10974 2020-03-26 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10977 (mark_common_block_symbol_computed, read_tag_string_type)
10978 (attr_to_dynamic_prop, read_subrange_type): Update.
10979 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10980 to be methods on struct attribute.
10981 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10982 (read_call_site_scope, partial_die_info::read)
10983 (partial_die_info::read, lookup_die_type, follow_die_ref):
10984 Update.
10985 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10986 from dwarf2_get_ref_die_offset.
10987 (attribute::constant_value): New method, from
10988 dwarf2_get_attr_constant_value.
10989 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10990 Declare method.
10991 <constant_value>: New method.
10992
10993 2020-03-26 Tom Tromey <tom@tromey.com>
10994
10995 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10996 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10997 (dwarf_type_encoding_name): Move to stringify.c.
10998 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10999 * dwarf2/stringify.c: New file.
11000 * dwarf2/stringify.h: New file.
11001
11002 2020-03-26 Tom Tromey <tom@tromey.com>
11003
11004 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11005 Rewrite.
11006
11007 2020-03-26 Tom Tromey <tom@tromey.com>
11008
11009 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11010 methods.
11011 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11012 (lookup_ranges_base): Likewise.
11013 (read_cutu_die_from_dwo, read_full_die_1): Update.
11014
11015 2020-03-26 Tom Tromey <tom@tromey.com>
11016
11017 * dwarf2/read.c (read_import_statement, read_file_scope)
11018 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11019 (read_lexical_block_scope, read_call_site_scope)
11020 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11021 (handle_struct_member_die, process_structure_scope)
11022 (update_enumeration_type_from_children)
11023 (process_enumeration_scope, read_array_type, read_common_block)
11024 (read_namespace, read_module, read_subroutine_type): Update.
11025 (sibling_die): Remove.
11026
11027 2020-03-26 Tom Tromey <tom@tromey.com>
11028
11029 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11030 (build_type_psymtabs_reader, read_structure_type)
11031 (read_enumeration_type, read_full_die_1): Update.
11032 (dwarf2_attr_no_follow): Move to die.h.
11033 * dwarf2/die.h (struct die_info) <attr>: New method.
11034
11035 2020-03-26 Tom Tromey <tom@tromey.com>
11036
11037 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11038 <base_address>: Now an optional.
11039 (dwarf2_find_base_address, dwarf2_rnglists_process)
11040 (dwarf2_ranges_process, fill_in_loclist_baton)
11041 (dwarf2_symbol_mark_computed): Update.
11042
11043 2020-03-26 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2/read.c (struct die_info): Move to die.h.
11046 * dwarf2/die.h: New file.
11047
11048 2020-03-26 Tom Tromey <tom@tromey.com>
11049
11050 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11051 * dwarf2/read.c
11052 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11053 Move to line-header.c.
11054 (read_checked_initial_length_and_offset, read_formatted_entries):
11055 Likewise.
11056 (dwarf_decode_line_header): Split into two.
11057 * dwarf2/line-header.c
11058 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11059 Move from read.c.
11060 (read_checked_initial_length_and_offset, read_formatted_entries):
11061 Likewise.
11062 (dwarf_decode_line_header): New function, split from read.c.
11063
11064 2020-03-26 Tom Tromey <tom@tromey.com>
11065
11066 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11067 Declare method.
11068 * dwarf2/read.c (read_attribute_value): Update.
11069 (dwarf2_per_objfile::read_line_string): Rename from
11070 read_indirect_line_string.
11071 (read_formatted_entries): Update.
11072
11073 2020-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11076 variable.
11077
11078 2020-03-26 Tom Tromey <tom@tromey.com>
11079
11080 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11081 const.
11082 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11083 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11084 parameter const.
11085
11086 2020-03-26 Tom Tromey <tom@tromey.com>
11087
11088 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11089 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11090 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11091 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11092
11093 2020-03-26 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11096 file_names_size, file_full_name, file_file_name>: Use const.
11097 <file_name_at, file_names>: Add const overload.
11098 * dwarf2/line-header.c (line_header::file_file_name)
11099 (line_header::file_full_name): Update.
11100
11101 2020-03-26 Tom Tromey <tom@tromey.com>
11102
11103 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11104 (macro_start_file, consume_improper_spaces)
11105 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11106 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11107 (dwarf_decode_macros): Move to macro.c.
11108 * dwarf2/macro.c: New file.
11109 * dwarf2/macro.h: New file.
11110 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11111
11112 2020-03-26 Tom Tromey <tom@tromey.com>
11113
11114 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11115 method.
11116 * dwarf2/section.c: New method. From
11117 read_indirect_string_at_offset_from.
11118 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11119 (read_indirect_string_at_offset_from): Move to section.c.
11120 (read_indirect_string_at_offset): Rewrite.
11121 (read_indirect_line_string_at_offset): Remove.
11122 (read_indirect_string, read_indirect_line_string)
11123 (dwarf_decode_macro_bytes): Update.
11124
11125 2020-03-26 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/section.h (struct dwarf2_section_info)
11128 <overload_complaint>: Declare.
11129 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11130 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11131 Rename from dwarf2_section_buffer_overflow_complaint.
11132 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11133 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11134
11135 2020-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11138 Declare.
11139 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11140 Move from read.c.
11141 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11142 to section.c.
11143
11144 2020-03-26 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11147
11148 2020-03-26 Tom Tromey <tom@tromey.com>
11149
11150 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11151 "builder".
11152 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11153 parameter.
11154 (dwarf_decode_macros): Update.
11155
11156 2020-03-26 Tom Tromey <tom@tromey.com>
11157
11158 * dwarf2/read.c (read_attribute_value): Update.
11159 (read_indirect_string_from_dwz): Move to dwz.c; change into
11160 method.
11161 (dwarf_decode_macro_bytes): Update.
11162 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11163 * dwarf2/dwz.c: New file.
11164 * Makefile.in (COMMON_SFILES): Add dwz.c.
11165
11166 2020-03-26 Tom Tromey <tom@tromey.com>
11167
11168 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11169 * dwarf2/read.c: Add include.
11170 * dwarf2/index-write.c: Add include.
11171 * dwarf2/index-cache.c: Add include.
11172 * dwarf2/dwz.h: New file.
11173
11174 2020-03-25 Tom Tromey <tom@tromey.com>
11175
11176 * compile/compile-object-load.c (get_out_value_type): Mention
11177 correct symbol name in error message.
11178
11179 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11180
11181 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11182
11183 2020-03-25 Tom de Vries <tdevries@suse.de>
11184
11185 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11186 * symmisc.c (dump_symtab_1): Print user and includes fields.
11187 (maintenance_info_symtabs): Same.
11188
11189 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11190
11191 PR gdb/25534
11192 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11193 (riscv_regcache_cooked_write): New function.
11194 (riscv_push_dummy_call): Use new function.
11195 (riscv_return_value): Likewise.
11196
11197 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11198
11199 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11200 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11201 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11202 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11203 * infrun.c (follow_fork): Likewise.
11204 (follow_fork_inferior): Likewise.
11205 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11206 * linux-nat.h (class linux_nat_target): Likewise.
11207 * remote.c (class remote_target) <follow_fork>: Likewise.
11208 (remote_target::follow_fork): Likewise.
11209 * target-delegates.c: Re-generate.
11210 * target.c (default_follow_fork): Likewise.
11211 (target_follow_fork): Likewise.
11212 * target.h (struct target_ops) <follow_fork>: Likewise.
11213 (target_follow_fork): Likewise.
11214
11215 2020-03-24 Tom de Vries <tdevries@suse.de>
11216
11217 * psymtab.c (maintenance_info_psymtabs): Print user field.
11218
11219 2020-03-20 Tom Tromey <tromey@adacore.com>
11220
11221 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11222 const.
11223 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11224 const.
11225
11226 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * ptrace.m4: Don't check for ptrace declaration.
11229 * config.in: Re-generate.
11230 * configure: Re-generate.
11231 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11232 not defined.
11233
11234 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11235
11236 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11237 `PTRACE_TYPE_RET'.
11238 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11239 * sparc-nat.c (gdb_ptrace): Likewise.
11240 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11241
11242 2020-03-20 Tom Tromey <tromey@adacore.com>
11243
11244 * c-exp.y (lex_one_token): Fix assert.
11245
11246 2020-03-20 Tom Tromey <tromey@adacore.com>
11247
11248 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11249 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11250 strncpy call.
11251
11252 2020-03-20 Tom Tromey <tromey@adacore.com>
11253
11254 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11255
11256 2020-03-20 Tom Tromey <tromey@adacore.com>
11257
11258 * ada-valprint.c (print_variant_part): Remove parameters; switch
11259 to value-based API.
11260 (print_field_values): Likewise.
11261 (ada_val_print_struct_union): Likewise.
11262 (ada_value_print_1): Update.
11263
11264 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11265
11266 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11267 nbsd_nat_target instead of inf_ptrace_target.
11268 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11269 nbsd_nat_target.
11270
11271 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11272
11273 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11274 it to the ptrace call.
11275 * (store_registers): Likewise.
11276
11277 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11278
11279 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11280 it to the ptrace call.
11281 * (store_registers): Likewise.
11282
11283 2020-03-19 Luis Machado <luis.machado@linaro.org>
11284
11285 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11286 valid, fetch vg value from ptrace.
11287
11288 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11289 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11290 * inf-ptrace.c: Likewise.
11291 * (gdb_ptrace): Add.
11292 * (inf_ptrace_target::resume): Update.
11293 * (inf_ptrace_target::xfer_partial): Likewise.
11294 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11295 * (inf_ptrace_peek_poke): Update.
11296
11297 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11298
11299 * x86-bsd-nat.c (gdb_ptrace): New.
11300 * (x86bsd_dr_set): Add new argument `ptid'.
11301 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11302 x86bsd_dr_set_addr): Update.
11303
11304 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11305
11306 * remote.c (remote_target::process_stop_reply): Handle events for
11307 all threads differently.
11308
11309 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11310
11311 * completer.c (completion_tracker::remove_completion): Define new
11312 function.
11313 * completer.h (completion_tracker::remove_completion): Declare new
11314 function.
11315 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11316 when adding a C++ function symbol.
11317
11318 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11319
11320 * completer.c (completion_tracker::completion_hash_entry): Define
11321 new class.
11322 (advance_to_filename_complete_word_point): Call
11323 recompute_lowest_common_denominator.
11324 (completion_tracker::completion_tracker): Call discard_completions
11325 to setup the hash table.
11326 (completion_tracker::discard_completions): Allow for being called
11327 from the constructor, pass new equal function, and element deleter
11328 when constructing the hash table. Initialise new class member
11329 variables.
11330 (completion_tracker::maybe_add_completion): Remove use of
11331 m_entries_vec, and store more information into m_entries_hash.
11332 (completion_tracker::recompute_lcd_visitor): New function, most
11333 content taken from...
11334 (completion_tracker::recompute_lowest_common_denominator):
11335 ...here, this now just visits each item in the hash calling the
11336 above visitor.
11337 (completion_tracker::build_completion_result): Remove use of
11338 m_entries_vec, call recompute_lowest_common_denominator.
11339 * completer.h (completion_tracker::have_completions): Remove use
11340 of m_entries_vec.
11341 (completion_tracker::completion_hash_entry): Declare new class.
11342 (completion_tracker::recompute_lowest_common_denominator): Change
11343 function signature.
11344 (completion_tracker::recompute_lcd_visitor): Declare new function.
11345 (completion_tracker::m_entries_vec): Delete.
11346 (completion_tracker::m_entries_hash): Initialize to NULL.
11347 (completion_tracker::m_lowest_common_denominator_valid): New
11348 member variable.
11349 (completion_tracker::m_lowest_common_denominator_max_length): New
11350 member variable.
11351
11352 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11353
11354 * regformats/regdef.h: Put reg in gdb namespace.
11355
11356 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11357
11358 * i386-bsd-nat.c (gdb_ptrace): New.
11359 * (i386bsd_fetch_inferior_registers,
11360 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11361 * (i386bsd_fetch_inferior_registers,
11362 i386bsd_store_inferior_registers) Use gdb_ptrace.
11363
11364 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11365
11366 * amd64-bsd-nat.c (gdb_ptrace): New.
11367 * (amd64bsd_fetch_inferior_registers,
11368 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11369 * (amd64bsd_fetch_inferior_registers,
11370 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11371
11372 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11373
11374 * user-regs.c (user_reg::read): Rename to...
11375 (user_reg::xread): ...this.
11376 * (append_user_reg): Rename argument `read' to `xread'.
11377 * (user_reg_add_builtin): Likewise.
11378 * (user_reg_add): Likewise.
11379 * (value_of_user_reg): Likewise.
11380
11381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11382
11383 * sparc-nat.c (gdb_ptrace): New.
11384 * sparc-nat.c (sparc_fetch_inferior_registers)
11385 (sparc_store_inferior_registers) Remove obsolete comment.
11386 * sparc-nat.c (sparc_fetch_inferior_registers)
11387 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11388 * sparc-nat.c (sparc_fetch_inferior_registers)
11389 (sparc_store_inferior_registers) Use gdb_ptrace.
11390
11391 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11392
11393 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11394 it to the ptrace call.
11395 * sh-nbsd-nat.c (store_registers): Likewise.
11396
11397 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11398
11399 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11400 nbsd_nat_target instead of inf_ptrace_target.
11401 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11402 nbsd_nat_target.
11403
11404 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11405
11406 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11407
11408 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11409
11410 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11411 <sys/sysctl.h>.
11412 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11413
11414 2020-03-17 Tom de Vries <tdevries@suse.de>
11415
11416 PR gdb/23710
11417 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11418 fields.
11419 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11420 fields.
11421 (process_imported_unit_die): Skip import of c++ CUs.
11422
11423 2020-03-16 Tom Tromey <tom@tromey.com>
11424
11425 * p-valprint.c (pascal_object_print_value): Initialize
11426 base_value.
11427
11428 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11429 Shahab Vahedi <shahab@synopsys.com>
11430
11431 * Makefile.in: Add arch/arc.o
11432 * configure.tgt: Likewise.
11433 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11434 (_initialize_arc_tdep): Don't initialize old target descriptions.
11435 (arc_read_description): New function to cache target descriptions.
11436 * arc-tdep.h (arc_read_description): Add proto type.
11437 * arch/arc.c: New file.
11438 * arch/arc.h: Likewise.
11439 * features/Makefile: Replace old target descriptions with new.
11440 * features/arc-arcompact.c: Remove.
11441 * features/arc-arcompact.xml: Likewise.
11442 * features/arc-v2.c: Likewise
11443 * features/arc-v2.xml: Likewise
11444 * features/arc/aux-arcompact.xml: New file.
11445 * features/arc/aux-v2.xml: Likewise.
11446 * features/arc/core-arcompact.xml: Likewise.
11447 * features/arc/core-v2.xml: Likewise.
11448 * features/arc/aux-arcompact.c: Generate.
11449 * features/arc/aux-v2.c: Likewise.
11450 * features/arc/core-arcompact.c: Likewise.
11451 * features/arc/core-v2.c: Likewise.
11452 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11453
11454 2020-03-16 Tom Tromey <tromey@adacore.com>
11455
11456 PR gdb/25663:
11457 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11458 putting value into bcache.
11459
11460 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11461
11462 PR gdb/21500
11463 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11464 to...
11465 (amd64_windows_init_abi_common): ... this. Don't set size of
11466 long type.
11467 (amd64_windows_init_abi): New function.
11468 (amd64_cygwin_init_abi): New function.
11469 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11470 the Cygwin OS ABI.
11471 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11472 comment.
11473
11474 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11477 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11478 (pe_import_directory_entry): New struct type.
11479 (is_linked_with_cygwin_dll): New function.
11480 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11481 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11482 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11483
11484 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11485
11486 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11487 i386_cygwin_core_osabi_sniffer.
11488
11489 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11490
11491 * i386-cygwin-tdep.c: Rename to...
11492 * i386-windows-tdep.c: ... this.
11493 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11494 i386-windows-tdep.c.
11495 * configure.tgt: Likewise.
11496
11497 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11498
11499 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11500 * osabi.c (gdb_osabi_names): Add "Windows".
11501 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11502 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11503 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11504 i386_cygwin_osabi_sniffer.
11505 (_initialize_i386_cygwin_tdep): Register OS ABI
11506 GDB_OSABI_WINDOWS for i386.
11507 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11508 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11509 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11510 for x86-64.
11511 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11512 when the target matches '*-*-mingw*'.
11513
11514 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11515
11516 * defs.h (enum gdb_osabi): Move to...
11517 * osabi.h (enum gdb_osabi): ... here.
11518 * gdbarch.sh: Include osabi.h in gdbarch.h.
11519 * gdbarch.h: Re-generate.
11520
11521 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11522
11523 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11524 function.
11525 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11526
11527 2020-03-14 Tom Tromey <tom@tromey.com>
11528
11529 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11530 for C++.
11531 (c_type_print_modifier): Likewise. Add "language" parameter.
11532 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11533 (c_type_print_base_1): Update.
11534 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11535 constants.
11536 * type-stack.c (type_stack::insert): Handle tp_atomic and
11537 tp_restrict.
11538 (type_stack::follow_type_instance_flags): Likewise.
11539 (type_stack::follow_types): Likewise. Merge type-following code.
11540 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11541 (space_identifier, cv_with_space_id)
11542 (const_or_volatile_or_space_identifier_noopt)
11543 (const_or_volatile_or_space_identifier): Remove.
11544 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11545 rules.
11546 (ptr_operator, typebase): Update.
11547 (enum token_flag) <FLAG_C>: New constant.
11548 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11549 "_Atomic".
11550 (lex_one_token): Handle FLAG_C.
11551
11552 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11553
11554 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11555 it to the ptrace call.
11556 * m68k-bsd-nat.c (store_registers): Likewise.
11557
11558 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11559
11560 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11561 gdb_byte *.
11562 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11563 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11564 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11565
11566 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11567
11568 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11569 nbsd_nat_target instead of inf_ptrace_target.
11570 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11571 nbsd_nat_target.
11572
11573 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11574
11575 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11576 register_t.
11577
11578 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11579
11580 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11581 it to the ptrace call.
11582 * alpha-bsd-nat.c (store_registers): Likewise.
11583
11584 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11585
11586 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11587 includes.
11588 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11589 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11590 fill_fpregset): Likewise.
11591
11592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11593
11594 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11595 nbsd_nat_target instead of inf_ptrace_target.
11596 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11597 nbsd_nat_target.
11598
11599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11600
11601 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11602 register_t.
11603
11604 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11605
11606 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11607 it to the ptrace call.
11608 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11609 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11610 * arm-nbsd-nat.c (store_register): Likewise.
11611 * arm-nbsd-nat.c (store_regs): Likewise.
11612 * arm-nbsd-nat.c (store_fp_register): Likewise.
11613 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11614
11615 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11616
11617 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11618 nbsd_nat_target instead of inf_ptrace_target.
11619 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11620 nbsd_nat_target.
11621
11622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11623
11624 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11625 it to the ptrace call.
11626 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11627
11628 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11629
11630 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11631 it to the ptrace call.
11632 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11633
11634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11635
11636 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11637 gdb_byte *.
11638 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11639
11640 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11641
11642 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11643 instead of inf_ptrace_target.
11644 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11645 nbsd_nat_target.
11646
11647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11648
11649 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11650 register_t.
11651
11652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11653
11654 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11655 register_t.
11656
11657 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11658
11659 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11660 register_t.
11661
11662 2020-03-13 Tom Tromey <tom@tromey.com>
11663
11664 * value.h (val_print): Don't declare.
11665 * valprint.h (val_print_array_elements)
11666 (val_print_scalar_formatted, generic_val_print): Don't declare.
11667 * valprint.c (generic_val_print_array): Take a struct value.
11668 (generic_val_print_ptr, generic_val_print_memberptr)
11669 (generic_val_print_bool, generic_val_print_int)
11670 (generic_val_print_char, generic_val_print_complex)
11671 (generic_val_print): Remove.
11672 (generic_value_print): Update.
11673 (do_val_print): Remove unused parameters. Don't call
11674 la_val_print.
11675 (val_print): Remove.
11676 (common_val_print): Update. Don't call value_check_printable.
11677 (val_print_scalar_formatted, val_print_array_elements): Remove.
11678 * rust-lang.c (rust_val_print): Remove.
11679 (rust_language_defn): Update.
11680 * p-valprint.c (pascal_val_print): Remove.
11681 (pascal_value_print_inner): Update.
11682 (pascal_object_print_val_fields, pascal_object_print_val):
11683 Remove.
11684 (pascal_object_print_static_field): Update.
11685 * p-lang.h (pascal_val_print): Don't declare.
11686 * p-lang.c (pascal_language_defn): Update.
11687 * opencl-lang.c (opencl_language_defn): Update.
11688 * objc-lang.c (objc_language_defn): Update.
11689 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11690 * m2-lang.h (m2_val_print): Don't declare.
11691 * m2-lang.c (m2_language_defn): Update.
11692 * language.h (struct language_defn) <la_val_print>: Remove.
11693 * language.c (unk_lang_value_print_inner): Rename. Change
11694 argument types.
11695 (unknown_language_defn, auto_language_defn): Update.
11696 * go-valprint.c (go_val_print): Remove.
11697 * go-lang.h (go_val_print): Don't declare.
11698 * go-lang.c (go_language_defn): Update.
11699 * f-valprint.c (f_val_print): Remove.
11700 * f-lang.h (f_value_print): Don't declare.
11701 * f-lang.c (f_language_defn): Update.
11702 * d-valprint.c (d_val_print): Remove.
11703 * d-lang.h (d_value_print): Don't declare.
11704 * d-lang.c (d_language_defn): Update.
11705 * cp-valprint.c (cp_print_value_fields)
11706 (cp_print_value_fields_rtti, cp_print_value): Remove.
11707 (cp_print_static_field): Update.
11708 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11709 (c_val_print_struct, c_val_print_union, c_val_print_int)
11710 (c_val_print_memberptr, c_val_print): Remove.
11711 * c-lang.h (c_val_print_array, cp_print_value_fields)
11712 (cp_print_value_fields_rtti): Don't declare.
11713 * c-lang.c (c_language_defn, cplus_language_defn)
11714 (asm_language_defn, minimal_language_defn): Update.
11715 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11716 (ada_val_print_enum): Take a struct value.
11717 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11718 (ada_val_print): Remove.
11719 (ada_value_print_1): Update.
11720 (printable_val_type): Remove.
11721 * ada-lang.h (ada_val_print): Don't declare.
11722 * ada-lang.c (ada_language_defn): Update.
11723
11724 2020-03-13 Tom Tromey <tom@tromey.com>
11725
11726 * valprint.c (do_val_print): Update.
11727 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11728 a struct value.
11729 (value_to_value_object_no_release): Declare.
11730 * python/py-value.c (value_to_value_object_no_release): New
11731 function.
11732 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11733 struct value.
11734 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11735 function.
11736 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11737 a struct value.
11738 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11739 Declare.
11740 (gdbscm_apply_val_pretty_printer): Take a struct value.
11741 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11742 value.
11743 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11744 value.
11745 * extension-priv.h (struct extension_language_ops)
11746 <apply_val_pretty_printer>: Take a struct value.
11747 * cp-valprint.c (cp_print_value): Create a struct value.
11748 (cp_print_value): Update.
11749
11750 2020-03-13 Tom Tromey <tom@tromey.com>
11751
11752 * ada-valprint.c (print_field_values): Call common_val_print.
11753
11754 2020-03-13 Tom Tromey <tom@tromey.com>
11755
11756 * ada-valprint.c (val_print_packed_array_elements): Remove
11757 bitoffset and val parameters. Call common_val_print.
11758 (ada_val_print_string): Remove offset, address, and original_value
11759 parameters.
11760 (ada_val_print_array): Update.
11761 (ada_value_print_array): New function.
11762 (ada_value_print_1): Call it.
11763
11764 2020-03-13 Tom Tromey <tom@tromey.com>
11765
11766 * ada-valprint.c (ada_value_print): Use common_val_print.
11767
11768 2020-03-13 Tom Tromey <tom@tromey.com>
11769
11770 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11771
11772 2020-03-13 Tom Tromey <tom@tromey.com>
11773
11774 * ada-valprint.c (ada_value_print_num): New function.
11775 (ada_value_print_1): Use it.
11776
11777 2020-03-13 Tom Tromey <tom@tromey.com>
11778
11779 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11780
11781 2020-03-13 Tom Tromey <tom@tromey.com>
11782
11783 * ada-valprint.c (ada_value_print_ptr): New function.
11784 (ada_value_print_1): Use it.
11785
11786 2020-03-13 Tom Tromey <tom@tromey.com>
11787
11788 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11789 call common_val_print.
11790 (ada_val_print_1): Update.
11791 (ada_value_print_1): New function.
11792 (ada_value_print_inner): Rewrite.
11793
11794 2020-03-13 Tom Tromey <tom@tromey.com>
11795
11796 * cp-valprint.c (cp_print_value_fields): Update.
11797 (cp_print_value): New function.
11798
11799 2020-03-13 Tom Tromey <tom@tromey.com>
11800
11801 * m2-valprint.c (m2_value_print_inner): Use
11802 cp_print_value_fields.
11803 * cp-valprint.c (cp_print_value_fields): New function.
11804 * c-valprint.c (c_value_print_struct): New function.
11805 (c_value_print_inner): Use c_value_print_struct.
11806 * c-lang.h (cp_print_value_fields): Declare.
11807
11808 2020-03-13 Tom Tromey <tom@tromey.com>
11809
11810 * c-valprint.c (c_value_print_array): New function.
11811 (c_value_print_inner): Use it.
11812
11813 2020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * c-valprint.c (c_value_print_memberptr): New function.
11816 (c_value_print_inner): Use it.
11817
11818 2020-03-13 Tom Tromey <tom@tromey.com>
11819
11820 * c-valprint.c (c_value_print_int): New function.
11821 (c_value_print_inner): Use it.
11822
11823 2020-03-13 Tom Tromey <tom@tromey.com>
11824
11825 * c-valprint.c (c_value_print_ptr): New function.
11826 (c_value_print_inner): Use it.
11827
11828 2020-03-13 Tom Tromey <tom@tromey.com>
11829
11830 * c-valprint.c (c_value_print_inner): Rewrite.
11831
11832 2020-03-13 Tom Tromey <tom@tromey.com>
11833
11834 * valprint.c (generic_value_print_complex): New function.
11835 (generic_value_print): Use it.
11836
11837 2020-03-13 Tom Tromey <tom@tromey.com>
11838
11839 * valprint.c (generic_val_print_float): Don't call
11840 val_print_scalar_formatted.
11841 (generic_val_print, generic_value_print): Update.
11842
11843 2020-03-13 Tom Tromey <tom@tromey.com>
11844
11845 * valprint.c (generic_value_print_char): New function
11846 (generic_value_print): Use it.
11847
11848 2020-03-13 Tom Tromey <tom@tromey.com>
11849
11850 * valprint.c (generic_value_print_int): New function.
11851 (generic_value_print): Use it.
11852
11853 2020-03-13 Tom Tromey <tom@tromey.com>
11854
11855 * valprint.c (generic_value_print_bool): New function.
11856 (generic_value_print): Use it.
11857
11858 2020-03-13 Tom Tromey <tom@tromey.com>
11859
11860 * valprint.c (generic_val_print_func): Simplify.
11861 (generic_val_print, generic_value_print): Update.
11862
11863 2020-03-13 Tom Tromey <tom@tromey.com>
11864
11865 * valprint.c (generic_val_print_flags): Remove.
11866 (generic_val_print, generic_value_print): Update.
11867 (val_print_type_code_flags): Add original_value parameter.
11868
11869 2020-03-13 Tom Tromey <tom@tromey.com>
11870
11871 * valprint.c (generic_val_print): Update.
11872 (generic_value_print): Update.
11873 * valprint.c (generic_val_print_enum): Don't call
11874 val_print_scalar_formatted.
11875
11876 2020-03-13 Tom Tromey <tom@tromey.com>
11877
11878 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11879 * valprint.c (generic_value_print_ptr): New function.
11880
11881 2020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * valprint.c (generic_value_print): Rewrite.
11884
11885 2020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * p-valprint.c (pascal_object_print_value_fields)
11888 (pascal_object_print_value): New functions.
11889
11890 2020-03-13 Tom Tromey <tom@tromey.com>
11891
11892 * p-valprint.c (pascal_value_print_inner): Rewrite.
11893
11894 2020-03-13 Tom Tromey <tom@tromey.com>
11895
11896 * f-valprint.c (f_value_print_innner): Rewrite.
11897
11898 2020-03-13 Tom Tromey <tom@tromey.com>
11899
11900 * m2-valprint.c (m2_print_unbounded_array): New overload.
11901 (m2_print_unbounded_array): Update.
11902 (m2_print_array_contents): Take a struct value.
11903 (m2_value_print_inner): Rewrite.
11904
11905 2020-03-13 Tom Tromey <tom@tromey.com>
11906
11907 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11908 (d_value_print_inner): New function.
11909 * d-lang.h (d_value_print_inner): Declare.
11910 * d-lang.c (d_language_defn): Use d_value_print_inner.
11911
11912 2020-03-13 Tom Tromey <tom@tromey.com>
11913
11914 * go-valprint.c (go_value_print_inner): New function.
11915 * go-lang.h (go_value_print_inner): Declare.
11916 * go-lang.c (go_language_defn): Use go_value_print_inner.
11917
11918 2020-03-13 Tom Tromey <tom@tromey.com>
11919
11920 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11921 API.
11922 (rust_val_print): Rewrite.
11923 (rust_value_print_inner): New function, from rust_val_print.
11924 (rust_language_defn): Use rust_value_print_inner.
11925
11926 2020-03-13 Tom Tromey <tom@tromey.com>
11927
11928 * ada-valprint.c (ada_value_print_inner): New function.
11929 * ada-lang.h (ada_value_print_inner): Declare.
11930 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11931
11932 2020-03-13 Tom Tromey <tom@tromey.com>
11933
11934 * f-valprint.c (f_value_print_innner): New function.
11935 * f-lang.h (f_value_print_innner): Declare.
11936 * f-lang.c (f_language_defn): Use f_value_print_innner.
11937
11938 2020-03-13 Tom Tromey <tom@tromey.com>
11939
11940 * p-valprint.c (pascal_value_print_inner): New function.
11941 * p-lang.h (pascal_value_print_inner): Declare.
11942 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11943
11944 2020-03-13 Tom Tromey <tom@tromey.com>
11945
11946 * m2-valprint.c (m2_value_print_inner): New function.
11947 * m2-lang.h (m2_value_print_inner): Declare.
11948 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11949
11950 2020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11953 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11954 * c-valprint.c (c_value_print_inner): New function.
11955 * c-lang.h (c_value_print_inner): Declare.
11956 * c-lang.c (c_language_defn, cplus_language_defn)
11957 (asm_language_defn, minimal_language_defn): Use
11958 c_value_print_inner.
11959
11960 2020-03-13 Tom Tromey <tom@tromey.com>
11961
11962 * p-valprint.c (pascal_object_print_value_fields): Now static.
11963 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11964
11965 2020-03-13 Tom Tromey <tom@tromey.com>
11966
11967 * c-valprint.c (c_val_print_array): Simplify.
11968
11969 2020-03-13 Tom Tromey <tom@tromey.com>
11970
11971 * valprint.c (value_print_array_elements): New function.
11972 * valprint.h (value_print_array_elements): Declare.
11973
11974 2020-03-13 Tom Tromey <tom@tromey.com>
11975
11976 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11977 * mips-tdep.c (mips_print_register): Use
11978 value_print_scalar_formatted.
11979
11980 2020-03-13 Tom Tromey <tom@tromey.com>
11981
11982 * valprint.h (value_print_scalar_formatted): Declare.
11983 * valprint.c (value_print_scalar_formatted): New function.
11984
11985 2020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * valprint.h (generic_value_print): Declare.
11988 * valprint.c (generic_value_print): New function.
11989
11990 2020-03-13 Tom Tromey <tom@tromey.com>
11991
11992 * valprint.c (do_val_print): Call la_value_print_inner, if
11993 available.
11994 * rust-lang.c (rust_language_defn): Update.
11995 * p-lang.c (pascal_language_defn): Update.
11996 * opencl-lang.c (opencl_language_defn): Update.
11997 * objc-lang.c (objc_language_defn): Update.
11998 * m2-lang.c (m2_language_defn): Update.
11999 * language.h (struct language_defn) <la_value_print_inner>: New
12000 member.
12001 * language.c (unknown_language_defn, auto_language_defn): Update.
12002 * go-lang.c (go_language_defn): Update.
12003 * f-lang.c (f_language_defn): Update.
12004 * d-lang.c (d_language_defn): Update.
12005 * c-lang.c (c_language_defn, cplus_language_defn)
12006 (asm_language_defn, minimal_language_defn): Update.
12007 * ada-lang.c (ada_language_defn): Update.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * c-valprint.c (c_value_print): Use common_val_print.
12012
12013 2020-03-13 Tom Tromey <tom@tromey.com>
12014
12015 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12016
12017 2020-03-13 Tom Tromey <tom@tromey.com>
12018
12019 * f-valprint.c (f77_print_array_1, f_val_print): Use
12020 common_val_print.
12021
12022 2020-03-13 Tom Tromey <tom@tromey.com>
12023
12024 * riscv-tdep.c (riscv_print_one_register_info): Use
12025 common_val_print.
12026
12027 2020-03-13 Tom Tromey <tom@tromey.com>
12028
12029 * mi/mi-main.c (output_register): Use common_val_print.
12030
12031 2020-03-13 Tom Tromey <tom@tromey.com>
12032
12033 * infcmd.c (default_print_one_register_info): Use
12034 common_val_print.
12035
12036 2020-03-13 Tom Tromey <tom@tromey.com>
12037
12038 * valprint.h (common_val_print_checked): Declare.
12039 * valprint.c (common_val_print_checked): New function.
12040 * stack.c (print_frame_arg): Use common_val_print_checked.
12041
12042 2020-03-13 Tom Tromey <tom@tromey.com>
12043
12044 * valprint.c (do_val_print): New function, from val_print.
12045 (val_print): Use do_val_print.
12046 (common_val_print): Use do_val_print.
12047
12048 2020-03-13 Tom Tromey <tom@tromey.com>
12049
12050 * valprint.c (value_print): Use scoped_value_mark.
12051
12052 2020-03-13 Tom de Vries <tdevries@suse.de>
12053
12054 PR symtab/25646
12055 * psymtab.c (partial_symtab::partial_symtab): Don't set
12056 globals_offset and statics_offset. Push element onto
12057 current_global_psymbols and current_static_psymbols stacks.
12058 (concat): New function.
12059 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12060 element from current_global_psymbols and current_static_psymbols
12061 stacks. Concat popped elements to global_psymbols and
12062 static_symbols.
12063 (add_psymbol_to_list): Use current_global_psymbols and
12064 current_static_psymbols stacks.
12065 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12066 current_static_psymbols fields.
12067
12068 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12069
12070 * corelow.c (sniff_core_bfd): Remove.
12071 (class core_target) <m_core_vec>: Remove.
12072 (core_target::core_target): Update.
12073 (core_file_fns): Remove.
12074 (deprecated_add_core_fns): Remove.
12075 (default_core_sniffer): Remove.
12076 (sniff_core_bfd): Remove.
12077 (default_check_format): Remove.
12078 (gdb_check_format): Remove.
12079 (core_target_open): Update.
12080 (core_target::get_core_register_section): Update.
12081 (get_core_registers_cb): Update.
12082 (core_target::fetch_registers): Update.
12083 * gdbcore.h (struct core_fns): Remove.
12084 (deprecated_add_core_fns): Remove.
12085 (default_core_sniffer): Remove.
12086 (default_check_format): Remove.
12087
12088 2020-03-12 Tom Tromey <tom@tromey.com>
12089
12090 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12091 CORE_ADDR.
12092 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12093
12094 2020-03-12 Tom Tromey <tom@tromey.com>
12095
12096 * remote.c (remote_target::download_tracepoint)
12097 (remote_target::enable_tracepoint)
12098 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12099 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12100 sprintf_vma.
12101
12102 2020-03-12 Tom Tromey <tom@tromey.com>
12103
12104 * symfile-mem.c: Update CORE_ADDR size assert.
12105
12106 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12107
12108 * selftest.m4: Move to gdbsupport/.
12109 * acinclude.m4: Update path to selftest.m4.
12110
12111 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12112
12113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12114 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12115 gdbarch-selfselftests.c and selftest-arch.c.
12116 (SUBDIR_UNITTESTS_OBS): Rename to...
12117 (SELFTESTS_OBS): ... this.
12118 (COMMON_SFILES): Remove disasm-selftests.c and
12119 gdbarch-selftests.c.
12120 * configure.ac: Don't add selftest-arch.{c,o} to
12121 CONFIG_{SRCS,OBS}.
12122 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12123 preprocessor conditions.
12124
12125 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * configure.ac: Don't source bfd/development.sh.
12128 * selftest.m4: Modify comment.
12129 * configure: Re-generate.
12130
12131 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12132
12133 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12134 not "true" or "false".
12135 * configure: Re-generate.
12136
12137 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12138
12139 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12140 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12141 renamed to arm_nbsd_supply_gregset.
12142 (fetch_register): Update to call arm_nbsd_supply_gregset.
12143 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12144 (arm_netbsd_nat_target::fetch_registers): Update.
12145 (fetch_elfcore_registers): Removed.
12146 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12147 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12148 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12149 not require NetBSD system headers.
12150 (arm_nbsd_regset): New struct.
12151 (arm_nbsd_iterate_over_regset_sections): New function.
12152 (arm_netbsd_init_abi_common): Updated to call
12153 set_gdbarch_iterate_over_regset_sections.
12154 * arm-nbsd-tdep.h: New file.
12155
12156 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12157
12158 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12159 recursion.
12160
12161 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12162
12163 * configure: Re-generate.
12164
12165 2020-03-11 Tom Tromey <tromey@adacore.com>
12166
12167 * ada-typeprint.c (print_choices): Fix comment.
12168
12169 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12172 previous item in the list, when the list has no items.
12173
12174 2020-03-11 Tom de Vries <tdevries@suse.de>
12175
12176 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12177 PROP_LOCLIST handling code.
12178
12179 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12180
12181 * buildsym-legacy.c (record_line): Pass extra parameter to
12182 record_line.
12183 * buildsym.c (buildsym_compunit::record_line): Take an extra
12184 parameter, reduce duplication in the line table, and record the
12185 is_stmt flag in the line table.
12186 * buildsym.h (buildsym_compunit::record_line): Add extra
12187 parameter.
12188 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12189 non-statement lines.
12190 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12191 this to the symtab builder.
12192 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12193 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12194 through to dwarf_record_line_1.
12195 * infrun.c (process_event_stop_test): When stepping, don't stop at
12196 a non-statement instruction, and only refresh the step info when
12197 we land in the middle of a line's range. Also add an extra
12198 comment.
12199 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12200 field.
12201 * record-btrace.c (btrace_find_line_range): Only record lines
12202 marked as is-statement.
12203 * stack.c (frame_show_address): Show the frame address if we are
12204 in a non-statement sal.
12205 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12206 (maintenance_print_one_line_table): Print a header for the is_stmt
12207 column, and include is_stmt information in the output.
12208 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12209 preference to non-statements.
12210 (find_pcs_for_symtab_line): Prefer is-statement entries.
12211 (find_line_common): Likewise.
12212 * symtab.h (struct linetable_entry): Add is_stmt field.
12213 (struct symtab_and_line): Likewise.
12214 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12215 arranging the line table.
12216
12217 2020-03-07 Tom de Vries <tdevries@suse.de>
12218
12219 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12220 DIE.
12221
12222 2020-03-07 Tom Tromey <tom@tromey.com>
12223
12224 * valops.c (value_literal_complex): Remove obsolete comment.
12225 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12226 comment.
12227
12228 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12229
12230 * infrun.h: Forward-declare thread_info.
12231 (set_step_info): Add thread_info parameter, add doc.
12232 * infrun.c (set_step_info): Add thread_info parameter, move doc
12233 to header.
12234 * infrun.c (process_event_stop_test): Pass thread to
12235 set_step_info call.
12236 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12237 set_step_info.
12238 (prepare_one_step): Add thread_info parameter, pass it to
12239 set_step_frame and prepare_one_step (recursive) call.
12240 (step_1): Pass thread to prepare_one_step call.
12241 (step_command_fsm::should_stop): Pass thread to
12242 prepare_one_step.
12243 (until_next_fsm): Pass thread to set_step_frame call.
12244 (finish_command): Pass thread to set_step_info call.
12245
12246 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12247
12248 * windows-tdep.c (windows_solib_create_inferior_hook):
12249 Check if inferior is running.
12250
12251 2020-03-06 Tom de Vries <tdevries@suse.de>
12252
12253 * NEWS: Fix "the the".
12254 * ctfread.c: Same.
12255
12256 2020-03-06 Tom de Vries <tdevries@suse.de>
12257
12258 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12259
12260 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12261
12262 * .dir-locals.el: Add a comment referencing the other copies of
12263 this file.
12264
12265 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12266
12267 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12268 psargs.
12269
12270 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12271
12272 * .gitattributes: New file.
12273
12274 2020-03-04 Tom Tromey <tom@tromey.com>
12275
12276 * symmisc.c (print_symbol_bcache_statistics)
12277 (print_objfile_statistics): Update.
12278 * symfile.c (allocate_symtab): Use intern.
12279 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12280 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12281 macro_cache>: Remove.
12282 <string_cache>: New member.
12283 (struct objfile) <intern>: New methods.
12284 * elfread.c (elf_symtab_read): Use intern.
12285 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12286 (dwarf2_compute_name, dwarf2_physname)
12287 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12288 names.
12289 (guess_partial_die_structure_name): Update.
12290 (partial_die_info::fixup): Intern name.
12291 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12292 name.
12293 (dwarf2_name): Intern name. Update.
12294 * buildsym.c (buildsym_compunit::get_macro_table): Use
12295 string_cache.
12296
12297 2020-03-04 Tom Tromey <tom@tromey.com>
12298
12299 * jit.c (bfd_open_from_target_memory): Make "target" const.
12300 * corefile.c (gnutarget): Now const.
12301 * gdbcore.h (gnutarget): Now const.
12302
12303 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12304
12305 * NEWS: Mention support for WOW64 processes.
12306 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12307 (amd64_windows_segment_register_p): Remove static.
12308 (_initialize_amd64_windows_nat): Update.
12309 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12310 * i386-windows-nat.c (context_offset): Update.
12311 (i386_mappings): Rename and remove static.
12312 (i386_windows_segment_register_p): Remove static.
12313 (_initialize_i386_windows_nat): Update.
12314 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12315 (STATUS_WX86_SINGLE_STEP): New macro.
12316 (EnumProcessModulesEx): New macro.
12317 (Wow64SuspendThread): New macro.
12318 (Wow64GetThreadContext): New macro.
12319 (Wow64SetThreadContext): New macro.
12320 (Wow64GetThreadSelectorEntry): New macro.
12321 (windows_set_context_register_offsets): Add static.
12322 (windows_set_segment_register_p): Likewise.
12323 (windows_add_thread): Adapt for WOW64 processes.
12324 (windows_fetch_one_register): Likewise.
12325 (windows_nat_target::fetch_registers): Likewise.
12326 (windows_store_one_register): Likewise.
12327 (display_selector): Likewise.
12328 (display_selectors): Likewise.
12329 (handle_exception): Likewise.
12330 (windows_continue): Likewise.
12331 (windows_nat_target::resume): Likewise.
12332 (windows_add_all_dlls): Likewise.
12333 (do_initial_windows_stuff): Likewise.
12334 (windows_nat_target::attach): Likewise.
12335 (windows_get_exec_module_filename): Likewise.
12336 (windows_nat_target::create_inferior): Likewise.
12337 (windows_xfer_siginfo): Likewise.
12338 (_initialize_loadable): Initialize Wow64SuspendThread,
12339 Wow64GetThreadContext, Wow64SetThreadContext,
12340 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12341 * windows-nat.h (windows_set_context_register_offsets):
12342 Remove declaration.
12343 (windows_set_segment_register_p): Likewise.
12344 (i386_windows_segment_register_p): Add declaration.
12345 (amd64_windows_segment_register_p): Likewise.
12346
12347 2020-03-04 Luis Machado <luis.machado@linaro.org>
12348
12349 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12350 in "info registers" for AArch64/ARM.
12351
12352 The change caused "info registers" to not print GPR's.
12353
12354 gdb/ChangeLog:
12355
12356 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12357
12358 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12359 when reg->group is empty and reggroup is not.
12360
12361 2020-03-03 Tom Tromey <tromey@adacore.com>
12362
12363 * dwarf2/frame.c (struct dwarf2_frame_cache)
12364 <checked_tailcall_bottom, entry_cfa_sp_offset,
12365 entry_cfa_sp_offset_p>: Remove members.
12366 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12367 (dwarf2_frame_prev_register): Don't call
12368 dwarf2_tailcall_sniffer_first.
12369 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12370 * frame-unwind.c (add_unwinder): New fuction.
12371 (frame_unwind_init): Use it. Add tailcall unwinder.
12372
12373 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12374 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12375
12376 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12377 value should be printed as true.
12378
12379 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12380
12381 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12382 (windows_init_abi): Set and use windows_so_ops.
12383
12384 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12385
12386 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12387 when verifying if dealing with a convenience variable.
12388
12389 2020-03-03 Luis Machado <luis.machado@linaro.org>
12390
12391 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12392
12393 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12394
12395 * infrun.c (gdbarch_supports_displaced_stepping): New.
12396 (use_displaced_stepping): Break up conditions in smaller pieces.
12397 Use gdbarch_supports_displaced_stepping.
12398 (displaced_step_prepare_throw): Use
12399 gdbarch_supports_displaced_stepping.
12400
12401 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12402
12403 * NEWS: Mention new behaviour of the history filename.
12404 * top.c (write_history_p): Add comment.
12405 (show_write_history_p): Add header comment, give a different
12406 message when history writing is on, but the history filename is
12407 empty.
12408 (history_filename): Add comment.
12409 (history_filename_empty): New function.
12410 (show_history_filename): Add header comment, give a different
12411 message when the filename is empty.
12412 (init_history): Compare history_filename against nullptr, and only
12413 read history if the filename is not empty.
12414 (set_history_filename): Add header comment, and only make
12415 non-empty filenames absolute.
12416 (init_main): Make the filename argument to 'set history filename'
12417 optional.
12418
12419 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12420
12421 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12422 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12423 (fetch_fp_register): Update.
12424 (fetch_fp_regs): Update.
12425 (store_fp_register): Update.
12426 (store_fp_regs): Update.
12427 (arm_netbsd_nat_target::read_description): New function.
12428 (fetch_elfcore_registers): Update.
12429
12430 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12431
12432 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12433 general_thread if the stop reply is missing a thread-id.
12434 (remote_target::process_stop_reply): Use the first non-exited
12435 thread if the target didn't pass a thread-id.
12436 * infrun.c (do_target_wait): Move call to
12437 switch_to_inferior_no_thread to ....
12438 (do_target_wait_1): ... here.
12439
12440 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12441
12442 * debuginfod-support.c: Include defs.h first.
12443
12444 2020-02-28 Tom de Vries <tdevries@suse.de>
12445
12446 * symfile.c (set_initial_language): Use default language for lookup.
12447
12448 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12451 reader variable, pass `this` to read_cutu_die_from_dwo.
12452
12453 2020-02-27 Aaron Merey <amerey@redhat.com>
12454
12455 * source.c (open_source_file): Check for nullptr when computing
12456 srcpath.
12457
12458 2020-02-27 Tom Tromey <tromey@adacore.com>
12459
12460 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12461 member.
12462 (dwarf2_add_field): Don't update nfields.
12463 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12464
12465 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12466
12467 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12468 abs.
12469
12470 2020-02-26 Tom Tromey <tom@tromey.com>
12471
12472 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12473 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12474 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12475 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12476 per_cu_data.
12477
12478 2020-02-26 Tom Tromey <tom@tromey.com>
12479
12480 * dwarf2/index-write.c (psym_index_map): Change type.
12481 (add_address_entry_worker, write_one_signatured_type)
12482 (recursively_count_psymbols, recursively_write_psymbols)
12483 (class debug_names, psyms_seen_size, write_gdbindex)
12484 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12485
12486 2020-02-26 Aaron Merey <amerey@redhat.com>
12487
12488 * Makefile.in: Handle optional debuginfod support.
12489 * NEWS: Update.
12490 * README: Add --with-debuginfod summary.
12491 * config.in: Regenerate.
12492 * configure: Regenerate.
12493 * configure.ac: Handle optional debuginfod support.
12494 * debuginfod-support.c: debuginfod helper functions.
12495 * debuginfod-support.h: Ditto.
12496 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12497 summary.
12498 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12499 when a dwz file cannot be found.
12500 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12501 debuginfo file cannot be found.
12502 * source.c (open_source_file): Query debuginfod servers when a
12503 source file cannot be found.
12504 * top.c (print_gdb_configuration): Include
12505 --{with,without}-debuginfod in the output.
12506
12507 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12508
12509 * thread.c (thr_try_catch_cmd): Print thread name.
12510
12511 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12512
12513 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12514 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12515 dwarf2_fetch_die_type_sect_off): Move to...
12516 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12517 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12518 dwarf2_fetch_die_type_sect_off): ... here.
12519 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12520 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12521 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12522
12523 2020-02-26 Tom de Vries <tdevries@suse.de>
12524
12525 PR gdb/25603
12526 * symfile.c (set_initial_language): Exit-early if
12527 language_mode == language_mode_manual.
12528
12529 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12530
12531 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12532 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12533 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12534
12535 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12536
12537 * gdbtypes.c (create_array_type_with_stride): Handle negative
12538 array strides.
12539 * valarith.c (value_subscripted_rvalue): Likewise.
12540
12541 2020-02-25 Luis Machado <luis.machado@linaro.org>
12542
12543 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12544
12545 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12546
12547 * loc.h (dwarf2_get_die_type): Move to...
12548 * read.h (dwarf2_get_die_type): ... here.
12549 * read.c (dwarf2_get_die_type): Move doc to header.
12550
12551 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12552
12553 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12554 'gnulib/Makefile.in' to the list.
12555
12556 2020-02-24 Tom Tromey <tom@tromey.com>
12557
12558 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12559 Remove.
12560 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12561 XOBNEWVEC.
12562
12563 2020-02-24 Tom Tromey <tom@tromey.com>
12564
12565 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12566 New method.
12567 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12568 (dw2_do_instantiate_symtab, dw2_get_file_names)
12569 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12570
12571 2020-02-24 Tom Tromey <tom@tromey.com>
12572
12573 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12574 make_scoped_restore.
12575 (dwarf2_psymtab::read_symtab): Don't clear
12576 reading_partial_symbols.
12577
12578 2020-02-24 Tom de Vries <tdevries@suse.de>
12579
12580 PR gdb/25592
12581 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12582
12583 2020-02-24 Tom de Vries <tdevries@suse.de>
12584
12585 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12586 commands layout next/prev/regs.
12587
12588 2020-02-22 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12591 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12592
12593 2020-02-22 Tom Tromey <tom@tromey.com>
12594
12595 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12596
12597 2020-02-22 Tom Tromey <tom@tromey.com>
12598
12599 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12600 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12601 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12602 * tui/tui.c (_initialize_tui): Add usage text.
12603
12604 2020-02-22 Tom Tromey <tom@tromey.com>
12605
12606 * tui/tui-win.c (tui_set_focus_command)
12607 (tui_set_win_height_command): Use error_no_arg.
12608 (_initialize_tui_win): Update help text.
12609 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12610
12611 2020-02-22 Tom Tromey <tom@tromey.com>
12612
12613 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12614 * tui/tui-disasm.h (struct tui_disasm_window)
12615 <display_start_addr>: Declare.
12616 * tui/tui-source.h (struct tui_source_window)
12617 <display_start_addr>: Declare.
12618 * tui/tui-winsource.h (struct tui_source_window_base)
12619 <show_source_line, display_start_addr>: New methods.
12620 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12621 Rename and move to protected section.
12622 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12623 (tui_source_window_base::do_erase_source_content): Update.
12624 (tui_source_window_base::show_source_line): Now a method.
12625 (tui_source_window_base::show_source_content)
12626 (tui_source_window_base::tui_source_window_base)
12627 (tui_source_window_base::rerender)
12628 (tui_source_window_base::refill)
12629 (tui_source_window_base::do_scroll_horizontal)
12630 (tui_source_window_base::set_is_exec_point_at)
12631 (tui_source_window_base::update_breakpoint_info)
12632 (tui_source_window_base::update_exec_info): Update.
12633 * tui/tui-source.c (tui_source_window::set_contents)
12634 (tui_source_window::showing_source_p)
12635 (tui_source_window::do_scroll_vertical)
12636 (tui_source_window::location_matches_p)
12637 (tui_source_window::line_is_displayed): Update.
12638 (tui_source_window::display_start_addr): New method.
12639 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12640 (tui_disasm_window::do_scroll_vertical)
12641 (tui_disasm_window::location_matches_p): Update.
12642 (tui_disasm_window::display_start_addr): New method.
12643
12644 2020-02-22 Tom Tromey <tom@tromey.com>
12645
12646 * NEWS: Add entry for gdb.register_window_type.
12647 * tui/tui-layout.h (window_factory): New typedef.
12648 (tui_register_window): Declare.
12649 * tui/tui-layout.c (saved_tui_windows): New global.
12650 (tui_apply_current_layout): Use it.
12651 (tui_register_window): New function.
12652 * python/python.c (do_start_initialization): Call
12653 gdbpy_initialize_tui.
12654 (python_GdbMethods): Add "register_window_type" function.
12655 * python/python-internal.h (gdbpy_register_tui_window)
12656 (gdbpy_initialize_tui): Declare.
12657 * python/py-tui.c: New file.
12658 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12659
12660 2020-02-22 Tom Tromey <tom@tromey.com>
12661
12662 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12663
12664 2020-02-22 Tom Tromey <tom@tromey.com>
12665
12666 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12667 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12668 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12669 (tui_set_win_focus_to): Move from tui-win.c.
12670
12671 2020-02-22 Tom Tromey <tom@tromey.com>
12672
12673 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12674 functions.
12675 (known_window_types): New global.
12676 (tui_get_window_by_name): Reimplement.
12677 (initialize_known_windows): New function.
12678 (validate_window_name): Rewrite.
12679 (_initialize_tui_layout): Call initialize_known_windows.
12680
12681 2020-02-22 Tom Tromey <tom@tromey.com>
12682
12683 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12684 Remove constants.
12685 * tui/tui-winsource.h (struct tui_source_window_base)
12686 <tui_source_window_base>: Remove parameter.
12687 * tui/tui-winsource.c
12688 (tui_source_window_base::tui_source_window_base): Remove
12689 parameter.
12690 (tui_source_window_base::refill): Update.
12691 * tui/tui-stack.h (struct tui_locator_window)
12692 <tui_locator_window>: Update.
12693 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12694 Default the constructor.
12695 * tui/tui-regs.h (struct tui_data_item_window)
12696 <tui_data_item_window>: Default the constructor.
12697 (struct tui_data_window) <tui_data_window>: Likewise.
12698 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12699 Default the constructor.
12700 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12701 Default the constructor.
12702 <type>: Remove.
12703 (struct tui_win_info) <tui_win_info>: Default the constructor.
12704 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12705 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12706 Default the constructor.
12707
12708 2020-02-22 Tom Tromey <tom@tromey.com>
12709
12710 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12711 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12712 * tui/tui-win.c (tui_resize_all): Don't call
12713 tui_delete_invisible_windows.
12714 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12715 done.
12716 (tui_set_layout): Update.
12717 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12718 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12719 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12720
12721 2020-02-22 Tom Tromey <tom@tromey.com>
12722
12723 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12724 correctly.
12725
12726 2020-02-22 Tom Tromey <tom@tromey.com>
12727
12728 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12729
12730 2020-02-22 Tom Tromey <tom@tromey.com>
12731
12732 * tui/tui-winsource.h (struct tui_source_window_iterator)
12733 <inner_iterator>: New etytypedef.
12734 <tui_source_window_iterator>: Take "end" parameter.
12735 <tui_source_window_iterator>: Take iterator.
12736 <operator*, advance>: Update.
12737 <m_iter>: Change type.
12738 <m_end>: New field.
12739 (struct tui_source_windows) <begin, end>: Update.
12740 * tui/tui-layout.c (tui_windows): New global.
12741 (tui_apply_current_layout): Clear tui_windows.
12742 (tui_layout_window::apply): Update tui_windows.
12743 * tui/tui-data.h (tui_windows): Declare.
12744 (all_tui_windows): Now inline function.
12745 (class tui_window_iterator, struct all_tui_windows): Remove.
12746
12747 2020-02-22 Tom Tromey <tom@tromey.com>
12748
12749 PR tui/17850:
12750 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12751 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12752 "height" argument.
12753 (class tui_layout_window) <get_sizes>: Likewise.
12754 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12755 argument.
12756 <get_sizes>: Add "height" argument.
12757 <m_vertical>: New field.
12758 * tui/tui-layout.c (tui_layout_split::clone): Update.
12759 (tui_layout_split::get_sizes): Add "height" argument.
12760 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12761 (tui_new_layout_command): Parse "-horizontal".
12762 (_initialize_tui_layout): Update help string.
12763 (tui_layout_split::specification): Add "-horizontal" when needed.
12764 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12765 argument.
12766 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12767 New methods.
12768
12769 2020-02-22 Tom Tromey <tom@tromey.com>
12770
12771 * tui/tui-layout.h (enum tui_adjust_result): New.
12772 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12773 (class tui_layout_window) <adjust_size>: Return
12774 tui_adjust_result. Rewrite.
12775 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12776 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12777
12778 2020-02-22 Tom Tromey <tom@tromey.com>
12779
12780 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12781 parameter and return types.
12782 (class tui_layout_base) <specification>: Add "depth".
12783 (class tui_layout_window) <specification>: Add "depth".
12784 (class tui_layout_split) <specification>: Add "depth".
12785 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12786 and return types.
12787 (tui_new_layout_command): Parse sub-layouts.
12788 (_initialize_tui_layout): Update help string.
12789 (tui_layout_window::specification): Add "depth".
12790 (add_layout_command): Update.
12791
12792 2020-02-22 Tom Tromey <tom@tromey.com>
12793
12794 * NEWS: Add "tui new-layout" item.
12795 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12796 Add new-layout command to help text.
12797 (validate_window_name): New function.
12798 (tui_new_layout_command): New function.
12799 (_initialize_tui_layout): Register "new-layout".
12800 (tui_layout_window::specification): New method.
12801 (tui_layout_window::specification): New method.
12802 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12803 method.
12804 (class tui_layout_window) <specification>: New method.
12805 (class tui_layout_split) <specification>: New method.
12806
12807 2020-02-22 Tom Tromey <tom@tromey.com>
12808
12809 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12810 * tui/tui-win.c (window_name_completer): Update comment.
12811 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12812 Declare method.
12813 (class tui_layout_window) <replace_window>: Likewise.
12814 (class tui_layout_split) <replace_window>: Likewise.
12815 (tui_set_layout): Don't declare.
12816 (tui_set_initial_layout): Declare function.
12817 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12818 (asm_regs_layout): New globals.
12819 (tui_current_layout, show_layout): Remove.
12820 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12821 (find_layout, tui_apply_layout): New function.
12822 (layout_completer): Remove.
12823 (tui_next_layout): Reimplement.
12824 (tui_next_layout_command): New function.
12825 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12826 (tui_regs_layout): Reimplement.
12827 (tui_regs_layout_command): New function.
12828 (extract_display_start_addr): Rewrite.
12829 (next_layout, prev_layout): Remove.
12830 (tui_layout_window::replace_window): New method.
12831 (tui_layout_split::replace_window): New method.
12832 (destroy_layout): New function.
12833 (layout_list): New global.
12834 (add_layout_command): New function.
12835 (initialize_layouts): Update.
12836 (tui_layout_command): New function.
12837 (_initialize_tui_layout): Install "layout" commands.
12838 * tui/tui-data.h (enum tui_layout_type): Remove.
12839 (tui_current_layout): Don't declare.
12840
12841 2020-02-22 Tom Tromey <tom@tromey.com>
12842
12843 * tui/tui-regs.c (tui_reg_layout): Remove.
12844 (tui_reg_command): Use tui_regs_layout.
12845 * tui/tui-layout.h (tui_reg_command): Declare.
12846 * tui/tui-layout.c (tui_reg_command): New function.
12847
12848 2020-02-22 Tom Tromey <tom@tromey.com>
12849
12850 * tui/tui.c (tui_rl_delete_other_windows): Call
12851 tui_remove_some_windows.
12852 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12853 Declare method.
12854 (class tui_layout_window) <remove_windows>: New method.
12855 (class tui_layout_split) <remove_windows>: Declare.
12856 (tui_remove_some_windows): Declare.
12857 * tui/tui-layout.c (tui_remove_some_windows): New function.
12858 (tui_layout_split::remove_windows): New method.
12859
12860 2020-02-22 Tom Tromey <tom@tromey.com>
12861
12862 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12863 * tui/tui-layout.h (tui_next_layout): Declare.
12864 * tui/tui-layout.c (tui_next_layout): New function.
12865
12866 2020-02-22 Tom Tromey <tom@tromey.com>
12867
12868 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12869 correct coordinates.
12870
12871 2020-02-22 Tom Tromey <tom@tromey.com>
12872
12873 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12874 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12875 DATA_WIN case.
12876
12877 2020-02-22 Tom Tromey <tom@tromey.com>
12878
12879 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12880 TUI_DISASM_WIN, not tui_win_list.
12881
12882 2020-02-22 Tom Tromey <tom@tromey.com>
12883
12884 * valprint.c (generic_val_print_enum_1)
12885 (val_print_type_code_flags): Style member names.
12886 * rust-lang.c (val_print_struct, rust_print_enum)
12887 (rust_print_struct_def, rust_internal_print_type): Style member
12888 names.
12889 * p-valprint.c (pascal_object_print_value_fields): Style member
12890 names. Only call fprintf_symbol_filtered for static members.
12891 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12892 * f-valprint.c (f_val_print): Style member names.
12893 * f-typeprint.c (f_type_print_base): Style member names.
12894 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12895 call fprintf_symbol_filtered for static members.
12896 (cp_print_class_member): Style member names.
12897 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12898 member names.
12899 * ada-valprint.c (ada_print_scalar): Style enum names.
12900 (ada_val_print_enum): Likewise.
12901 * ada-typeprint.c (print_enum_type): Style enum names.
12902
12903 2020-02-21 Tom Tromey <tom@tromey.com>
12904
12905 * psympriv.h (struct partial_symtab): Update comment.
12906
12907 2020-02-21 Tom Tromey <tromey@adacore.com>
12908
12909 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12910 type is CORE_ADDR.
12911
12912 2020-02-21 Tom de Vries <tdevries@suse.de>
12913
12914 PR gdb/25534
12915 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12916 if dependencies[i]->user != NULL.
12917
12918 2020-02-21 Ali Tamur <tamur@google.com>
12919
12920 * dwarf2/read.c (dwarf2_name): Add null check.
12921
12922 2020-02-20 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12925 ">=", in binary search.
12926 (dwarf2_find_containing_comp_unit): New overload.
12927 (run_test): New self-test.
12928 (_initialize_dwarf2_read): Register new test.
12929
12930 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12931
12932 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12933 * riscv-tdep.h: Likewise.
12934 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12935 rv32-only CSR.
12936 * features/riscv/64bit-csr.xml: Regenerated.
12937
12938 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12939 Tom Tromey <tom@tromey.com>
12940
12941 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12942 of 'fputc_unfiltered'.
12943 (putchar_unfiltered): Call 'fputc_unfiltered'.
12944 (fputc_unfiltered): Call 'fputs_unfiltered'.
12945
12946 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12947
12948 * config.in: Regenerate.
12949 * configure: Regenerate.
12950 * configure.ac: Add --with-python-libdir option.
12951 * main.c: Use WITH_PYTHON_LIBDIR.
12952
12953 2020-02-19 Tom Tromey <tom@tromey.com>
12954
12955 * symtab.c (general_symbol_info::compute_and_set_names): Use
12956 obstack_strndup. Simplify call to symbol_set_demangled_name.
12957
12958 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12959
12960 * dwarf2/read.c (allocate_signatured_type_table,
12961 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12962 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12963 Remove objfile parameter, update all callers.
12964
12965 2020-02-19 Doug Evans <dje@google.com>
12966
12967 PR rust/25535
12968 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12969 rust_enum_variant calculation.
12970
12971 2020-02-19 Tom Tromey <tromey@adacore.com>
12972
12973 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12974
12975 2020-02-19 Tom Tromey <tromey@adacore.com>
12976
12977 * ada-lang.c (cache_symbol): Use obstack_strdup.
12978
12979 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12980
12981 * configure: Regenerate.
12982
12983 2020-02-19 Tom Tromey <tromey@adacore.com>
12984
12985 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12986 NULL check.
12987
12988 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12989
12990 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12991
12992 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12993
12994 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12995 if GDBSERVER is not defined.
12996 (riscv_tdesc_cache): Likewise, also store const target_desc.
12997 (STATIC_IN_GDB): Define.
12998 (riscv_create_target_description): Update declaration with
12999 STATIC_IN_GDB.
13000 (riscv_lookup_target_description): New function, only define if
13001 GDBSERVER is not defined.
13002 * arch/riscv.h (riscv_create_target_description): Declare only
13003 when GDBSERVER is defined.
13004 (riscv_lookup_target_description): New declaration when GDBSERVER
13005 is not defined.
13006 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13007 (riscv_linux_read_features): ...this, and return
13008 riscv_gdbarch_features instead of target_desc.
13009 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13010 (riscv_linux_read_description): Rename to...
13011 (riscv_linux_read_features): ...this.
13012 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13013 Update to use riscv_gdbarch_features and
13014 riscv_lookup_target_description.
13015 * riscv-tdep.c (riscv_find_default_target_description): Use
13016 riscv_lookup_target_description instead of
13017 riscv_create_target_description.
13018
13019 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * valprint.c (generic_val_print_enum_1): When printing a flag
13022 enum with value 0 and there is no enumerator with value 0, print
13023 just "0" instead of "(unknown: 0x0)".
13024
13025 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13026
13027 * valprint.c (generic_val_print_enum_1): Print unknown part of
13028 flag enum in hex.
13029
13030 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13031
13032 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13033 flag enums to contain duplicate enumerators.
13034 * valprint.c (generic_val_print_enum_1): Update comment.
13035
13036 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13037
13038 * dwarf2/read.c: Include "count-one-bits.h".
13039 (update_enumeration_type_from_children): If an enumerator has
13040 multiple bits set, don't treat the enumeration as a "flag enum".
13041 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13042 of flag enums have 0 or 1 bit set.
13043
13044 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13045
13046 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13047 conversion.
13048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13049 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13050 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13051 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13052 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13053
13054 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13055
13056 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13057
13058 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13059
13060 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13061 displaced_step_closure_up.
13062 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13063 (struct displaced_step_closure_up):
13064 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13065 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13066 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13067 Likewise.
13068 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13069 * gdbarch.c, gdbarch.h: Re-generate.
13070 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13071 displaced_step_closure_up.
13072 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13073 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13074 * infrun.h (displaced_step_closure_up): New type alias.
13075 (struct displaced_step_inferior_state) <step_closure>: Change
13076 type to displaced_step_closure_up.
13077 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13078 displaced_step_closure_up.
13079 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13080
13081 2020-02-14 Tom Tromey <tom@tromey.com>
13082
13083 * minidebug.c (gnu_debug_key): New global.
13084 (find_separate_debug_file_in_section): Use it.
13085
13086 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13087
13088 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13089 std::unique_ptr.
13090 * gdbarch.c: Re-generate.
13091 * gdbarch.h: Re-generate.
13092 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13093 change.
13094 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13095 type to std::unique_ptr.
13096 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13097 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13098 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13099 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13100 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13101 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13102 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13103 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13104 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13105
13106 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13107
13108 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13109 std::unique_ptr.
13110 (displaced_step_clear): Rename to...
13111 (displaced_step_reset): ... this. Just call displaced->reset ().
13112 (displaced_step_clear_cleanup): Rename to...
13113 (displaced_step_reset_cleanup): ... this.
13114 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13115 (displaced_step_fixup): Likewise.
13116 (resume_1): Likewise.
13117 (handle_inferior_event): Restore child's memory before calling
13118 displaced_step_fixup on the parent.
13119 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13120 to std::unique_ptr.
13121 <step_closure>: Change type to std::unique_ptr.
13122
13123 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13124
13125 * arm-tdep.c: Include count-one-bits.h.
13126 (cleanup_block_store_pc): Use count_one_bits.
13127 (cleanup_block_load_pc): Use count_one_bits.
13128 (arm_copy_block_xfer): Use count_one_bits.
13129 (thumb2_copy_block_xfer): Use count_one_bits.
13130 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13131 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13132 (thumb_get_next_pcs_raw): Use count_one_bits.
13133 (arm_get_next_pcs_raw): Use count_one_bits_l.
13134 * arch/arm.c (bitcount): Remove.
13135 * arch/arm.h (bitcount): Remove.
13136
13137 2020-02-14 Tom Tromey <tromey@adacore.com>
13138
13139 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13140 Update.
13141 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13142 * dwarf2/loc.c (call_site_find_chain_1): Return
13143 unique_xmalloc_ptr.
13144 (call_site_find_chain): Likewise.
13145
13146 2020-02-14 Richard Biener <rguenther@suse.de>
13147
13148 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13149 on expression with division operators.
13150
13151 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13152
13153 * MAINTAINERS (Write After Approval): Adding myself.
13154
13155 2020-02-12 Tom Tromey <tom@tromey.com>
13156
13157 * event-loop.c (event_data, gdb_event, event_handler_func):
13158 Remove.
13159
13160 2020-02-12 Tom Tromey <tom@tromey.com>
13161
13162 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13163 (dwarf2_frame_objfile_data): Add comment.
13164 (find_comp_unit, set_comp_unit): New functions.
13165 (dwarf2_frame_find_fde): Use find_comp_unit.
13166 (dwarf2_build_frame_info): Use set_comp_unit.
13167
13168 2020-02-12 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13171 (comp_unit): Don't initialize objfile.
13172 (execute_cfa_program): Add text_offset parameter.
13173 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13174 (dwarf2_frame_cache): Update.
13175 (dwarf2_build_frame_info): Don't set "objfile" member.
13176
13177 2020-02-12 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13180 (decode_frame_entry): Likewise.
13181 (dwarf2_build_frame_info): Update.
13182
13183 2020-02-12 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13186 (decode_frame_entry_1): Use the comp_unit obstack.
13187
13188 2020-02-12 Tom Tromey <tom@tromey.com>
13189
13190 * dwarf2/frame.c (struct comp_unit): Add initializers and
13191 constructor.
13192 (dwarf2_frame_objfile_data): Store a comp_unit.
13193 (dwarf2_frame_find_fde): Update.
13194 (dwarf2_build_frame_info): Use "new".
13195
13196 2020-02-12 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13199 (dwarf2_fde_table): Typedef for std::vector.
13200 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13201 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13202 (decode_frame_entry): Update.
13203 (dwarf2_build_frame_info): Use "new".
13204
13205 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13206
13207 * arm-tdep.c (arm_gdbarch_init): Update.
13208 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13209 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13210 have_neon, is_m>: Change to bool.
13211
13212 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13213
13214 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13215
13216 2020-02-12 Tom Tromey <tom@tromey.com>
13217
13218 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13219
13220 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13221
13222 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13223 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13224
13225 2020-02-11 Tom Tromey <tom@tromey.com>
13226
13227 * psymtab.h: Update comment.
13228
13229 2020-02-11 Tom Tromey <tom@tromey.com>
13230
13231 * gdb_obstack.h (struct auto_obstack): Use
13232 DISABLE_COPY_AND_ASSIGN.
13233
13234 2020-02-11 Tom Tromey <tom@tromey.com>
13235
13236 * dwarf2/frame.h (struct objfile): Don't forward declare.
13237
13238 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13239
13240 * cris-tdep.c (cris_supply_gregset): Change signature to match
13241 what struct regset expects.
13242 (cris_regset): New struct.
13243 (fetch_core_registers): Remove.
13244 (cris_iterate_over_regset_sections): New function.
13245 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13246 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13247
13248 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13249
13250 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13251 registers.
13252
13253 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13254
13255 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13256
13257 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13258
13259 * configure: Re-generate.
13260
13261 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13262
13263 * configure: Re-generate.
13264
13265 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13266
13267 * acinclude: Update warning.m4 path.
13268 * warning.m4: Move to gdbsupport.
13269
13270 2020-02-11 Tom Tromey <tromey@adacore.com>
13271
13272 * remote.c (remote_console_output): Update.
13273 * printcmd.c (printf_command): Update.
13274 * event-loop.c (gdb_wait_for_event): Update.
13275 * linux-nat.c (sigchld_handler): Update.
13276 * remote-sim.c (gdb_os_write_stdout): Update.
13277 (gdb_os_flush_stdout): Update.
13278 (gdb_os_flush_stderr): Update.
13279 (gdb_os_write_stderr): Update.
13280 * exceptions.c (print_exception): Update.
13281 * remote-fileio.c (remote_fileio_func_read): Update.
13282 (remote_fileio_func_write): Update.
13283 * tui/tui.c (tui_enable): Update.
13284 * tui/tui-interp.c (tui_interp::init): Update.
13285 * utils.c (init_page_info): Update.
13286 (putchar_unfiltered, fputc_unfiltered): Update.
13287 (gdb_flush): Update.
13288 (emit_style_escape): Update.
13289 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13290 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13291 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13292 (stderr_file::write): Update.
13293 (stderr_file::puts): Update.
13294 * ui-file.h (ui_file_isatty, ui_file_write)
13295 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13296 (ui_file_puts): Don't declare.
13297
13298 2020-02-10 Tom de Vries <tdevries@suse.de>
13299
13300 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13301 sentinel to char *.
13302
13303 2020-02-09 Tom de Vries <tdevries@suse.de>
13304
13305 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13306 filename if it matches "<artificial>".
13307
13308 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13309
13310 * windows-tdep.c (struct enum_value_name): New struct.
13311 (create_enum): New function.
13312 (windows_get_siginfo_type): Create and use enum types.
13313
13314 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13315
13316 * NEWS: Mention $_siginfo support for Windows.
13317 * windows-nat.c (handle_exception): Set siginfo_er.
13318 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13319 (windows_xfer_siginfo): New function.
13320 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13321 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13322 (init_windows_gdbarch_data): New function.
13323 (get_windows_gdbarch_data): New function.
13324 (windows_get_siginfo_type): New function.
13325 (windows_init_abi): Register windows_get_siginfo_type.
13326 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13327
13328 2020-02-08 Tom Tromey <tom@tromey.com>
13329
13330 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13331 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13332 <keep>: Declare method.
13333 <m_keep>: Remove member.
13334 <~cutu_reader>: Remove.
13335 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13336 (cutu_reader::cutu_reader): Update.
13337 (cutu_reader::keep): Rename from ~cutu_reader.
13338 (process_psymtab_comp_unit, build_type_psymtabs_1)
13339 (process_skeletonless_type_unit, load_partial_comp_unit)
13340 (load_full_comp_unit, dwarf2_read_addr_index)
13341 (read_signatured_type): Update.
13342
13343 2020-02-08 Tom Tromey <tom@tromey.com>
13344
13345 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13346 "want_partial_unit" parameter.
13347 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13348 Inline check for DW_TAG_partial_unit.
13349 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13350
13351 2020-02-08 Tom Tromey <tom@tromey.com>
13352
13353 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13354 read.c.
13355 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13356 read.c.
13357
13358 2020-02-08 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2/read.c (read_address): Move to comp-unit.c.
13361 (dwarf2_rnglists_process, dwarf2_ranges_process)
13362 (read_attribute_value, dwarf_decode_lines_1)
13363 (var_decode_location, decode_locdesc): Update.
13364 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13365 read.c. Remove "cu" parameter.
13366 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13367 method.
13368
13369 2020-02-08 Tom Tromey <tom@tromey.com>
13370
13371 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13372 (read_indirect_line_string): Update.
13373 * dwarf2/comp-unit.c (read_offset): Remove.
13374 (read_comp_unit_head): Update.
13375 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13376 method.
13377 (read_offset): Don't declare.
13378
13379 2020-02-08 Tom Tromey <tom@tromey.com>
13380
13381 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13382 * dwarf2/read.c (struct comp_unit_head): Move to
13383 dwarf2/comp-unit.h.
13384 (enum class rcuh_kind): Move to comp-unit.h.
13385 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13386 (read_comp_unit_head, error_check_comp_unit_head)
13387 (read_and_check_comp_unit_head): Move to comp-unit.c.
13388 (read_offset, dwarf_unit_type_name): Likewise.
13389 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13390 (cutu_reader::cutu_reader, read_call_site_scope)
13391 (find_partial_die, follow_die_offset): Update.
13392 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13393
13394 2020-02-08 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2/read.c (read_offset_1): Move to leb.c.
13397 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13398 (dwarf_decode_macro_bytes): Update.
13399 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13400 * dwarf2/leb.h (read_offset): Declare.
13401
13402 2020-02-08 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2/read.c (dwarf2_section_size): Remove.
13405 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13406 Update.
13407 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13408
13409 2020-02-08 Tom Tromey <tom@tromey.com>
13410
13411 * dwarf2/read.c (read_initial_length): Move to leb.c.
13412 * dwarf2/leb.h (read_initial_length): Declare.
13413 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13414 handle_nonstd parameter.
13415 * dwarf2/frame.c (read_initial_length): Remove.
13416 (decode_frame_entry_1): Update.
13417
13418 2020-02-08 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2/loc.c (dwarf2_find_location_expression)
13421 (dwarf_evaluate_loc_desc::get_tls_address)
13422 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13423 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13424 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13425 (dwarf2_compile_property_to_c)
13426 (dwarf2_loc_desc_get_symbol_read_needs)
13427 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13428 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13429 (loclist_describe_location, loclist_tracepoint_var_ref)
13430 (loclist_generate_c_location): Update.
13431 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13432 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13433 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13434 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13435 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13436 (dwarf2_per_cu_data::addr_size)
13437 (dwarf2_per_cu_data::ref_addr_size)
13438 (dwarf2_per_cu_data::text_offset)
13439 (dwarf2_per_cu_data::addr_type): Now methods.
13440 (per_cu_header_read_in): Make per_cu "const".
13441 (dwarf2_version): Remove.
13442 (dwarf2_per_cu_data::int_type): Now a method.
13443 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13444 (set_die_type, read_array_type, read_subrange_index_type)
13445 (read_tag_string_type, read_subrange_type): Update.
13446 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13447 offset_size, ref_addr_size, text_offset, addr_type, version,
13448 objfile, int_type, addr_sized_int_type>: Declare methods.
13449
13450 2020-02-08 Tom Tromey <tom@tromey.com>
13451
13452 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13453 Move earlier.
13454
13455 2020-02-08 Tom Tromey <tom@tromey.com>
13456
13457 * dwarf2/read.h (dwarf_line_debug): Declare.
13458 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13459 * dwarf2/read.c: Move line_header code to new files.
13460 (dwarf_line_debug): No longer static.
13461 * dwarf2/line-header.c: New file.
13462 * dwarf2/line-header.h: New file.
13463
13464 2020-02-08 Tom Tromey <tom@tromey.com>
13465
13466 * dwarf2/read.c (struct line_header) <file_full_name,
13467 file_file_name>: Return unique_xmalloc_ptr.
13468 (line_header::file_file_name): Update.
13469 (line_header::file_full_name): Update.
13470 (dw2_get_file_names_reader): Update.
13471 (macro_start_file): Update.
13472
13473 2020-02-08 Tom Tromey <tom@tromey.com>
13474
13475 * dwarf2/read.c (struct line_header) <file_full_name,
13476 file_file_name>: Declare methods.
13477 (dw2_get_file_names_reader): Update.
13478 (file_file_name): Now a method.
13479 (file_full_name): Likewise.
13480 (macro_start_file): Update.
13481
13482 2020-02-08 Tom Tromey <tom@tromey.com>
13483
13484 * dwarf2/read.c (dwarf_always_disassemble)
13485 (show_dwarf_always_disassemble): Move to loc.c.
13486 (_initialize_dwarf2_read): Move "always-disassemble" registration
13487 to loc.c.
13488 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13489 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13490 static.
13491 (show_dwarf_always_disassemble): Move from read.c.
13492 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13493
13494 2020-02-08 Tom Tromey <tom@tromey.com>
13495
13496 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13497 (create_quick_file_names_table): Return htab_up.
13498 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13499 Update.
13500 * dwarf2/read.h (struct dwarf2_per_objfile)
13501 <quick_file_names_table>: Now htab_up.
13502
13503 2020-02-08 Tom Tromey <tom@tromey.com>
13504
13505 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13506
13507 2020-02-08 Tom Tromey <tom@tromey.com>
13508
13509 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13510 Rewrite.
13511 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13512 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13513 (abbrev_table::abbrev_table): No longer inline.
13514 (ABBREV_HASH_SIZE): Remove.
13515 (abbrev_table::m_abbrevs): Now an htab_up.
13516
13517 2020-02-08 Tom Tromey <tom@tromey.com>
13518
13519 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13520 (cutu_reader): Update.
13521 (build_type_psymtabs_1): Update.
13522 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13523 (abbrev_table::alloc_abbrev): Update.
13524 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13525 (abbrev_table::read): New static method, renamed from
13526 abbrev_table_read_table.
13527 (abbrev_table::alloc_abbrev)
13528 (abbrev_table::add_abbrev): Now private.
13529 (abbrev_table::abbrev_table): Now private.
13530 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13531
13532 2020-02-08 Tom Tromey <tom@tromey.com>
13533
13534 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13535 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13536 htab_up.
13537
13538 2020-02-08 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13541 htab_up.
13542 (lookup_dwo_unit_in_dwp): Update.
13543 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13544 on obstack.
13545
13546 2020-02-08 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13549 obstack.
13550
13551 2020-02-08 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13554 line_header_hash.
13555 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13556 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13557 Change type to htab_up.
13558
13559 2020-02-08 Tom Tromey <tom@tromey.com>
13560
13561 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13562 htab_up. Don't allocate on obstack.
13563 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13564 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13565 Change type to htab_up.
13566
13567 2020-02-08 Tom Tromey <tom@tromey.com>
13568
13569 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13570 Change type to htab_up.
13571 * dwarf2/read.c (create_signatured_type_table_from_index)
13572 (create_signatured_type_table_from_debug_names)
13573 (create_all_type_units, add_type_unit)
13574 (lookup_dwo_signatured_type, lookup_signatured_type)
13575 (process_skeletonless_type_unit): Update.
13576 (create_debug_type_hash_table, create_debug_types_hash_table):
13577 Change type of types_htab.
13578 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13579 htab_up. Don't allocate on obstack.
13580 (create_cus_hash_table): Change type of cus_htab parameter.
13581 (struct dwo_file) <cus, tus>: Now htab_up.
13582 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13583 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13584 (queue_and_load_all_dwo_tus): Update.
13585 * dwarf2/index-write.c (write_gdbindex): Update.
13586 (write_debug_names): Update.
13587
13588 2020-02-08 Tom Tromey <tom@tromey.com>
13589
13590 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13591 dwarf2/read.c. Remove "next" member. Add constructor ntad
13592 destructor.
13593 (struct dwarf2_per_objfile) <queue>: New member.
13594 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13595 dwarf2/read.h.
13596 (dwarf2_queue, dwarf2_queue_tail): Remove.
13597 (class dwarf2_queue_guard): Add parameter to constructor. Use
13598 DISABLE_COPY_AND_ASSIGN.
13599 <m_per_objfile>: New member.
13600 <~dwarf2_queue_guard>: Rewrite.
13601 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13602 Update.
13603 (~dwarf2_queue_item): New.
13604
13605 2020-02-08 Tom Tromey <tom@tromey.com>
13606
13607 * dwarf2/read.c (struct die_info) <has_children>: New member.
13608 (dw2_get_file_names_reader): Remove has_children.
13609 (dw2_get_file_names): Update.
13610 (read_cutu_die_from_dwo): Remove has_children.
13611 (cutu_reader::init_tu_and_read_dwo_dies)
13612 (cutu_reader::cutu_reader): Update.
13613 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13614 Remove has_children.
13615 (build_type_psymtabs_1, process_skeletonless_type_unit)
13616 (load_partial_comp_unit, load_full_comp_unit): Update.
13617 (create_dwo_cu_reader): Remove has_children.
13618 (create_cus_hash_table, read_die_and_children): Update.
13619 (read_full_die_1,read_full_die): Remove has_children.
13620 (read_signatured_type): Update.
13621 (class cutu_reader) <has_children>: Remove.
13622
13623 2020-02-08 Tom Tromey <tom@tromey.com>
13624
13625 * dwarf2/expr.c: Rename from dwarf2expr.c.
13626 * dwarf2/expr.h: Rename from dwarf2expr.h.
13627 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13628 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13629 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13630 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13631 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13632 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13633 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13634 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13635 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13636 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13637 * dwarf2/loc.c: Rename from dwarf2loc.c.
13638 * dwarf2/loc.h: Rename from dwarf2loc.h.
13639 * dwarf2/read.c: Rename from dwarf2read.c.
13640 * dwarf2/read.h: Rename from dwarf2read.h.
13641 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13642 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13643 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13644 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13645 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13646 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13647 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13648 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13649 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13650 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13651 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13652 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13653 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13654 Update.
13655 * Makefile.in (COMMON_SFILES): Update.
13656 (HFILES_NO_SRCDIR): Update.
13657
13658 2020-02-08 Tom Tromey <tom@tromey.com>
13659
13660 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13661 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13662
13663 2020-02-08 Tom Tromey <tom@tromey.com>
13664
13665 * dwarf2read.h (struct die_info): Don't declare.
13666
13667 2020-02-08 Tom Tromey <tom@tromey.com>
13668
13669 * dwarf2read.h (die_info_ptr): Remove typedef.
13670
13671 2020-02-08 Tom Tromey <tom@tromey.com>
13672
13673 * dwarf2read.c (read_call_site_scope)
13674 (handle_data_member_location, dwarf2_add_member_fn)
13675 (mark_common_block_symbol_computed, read_common_block)
13676 (attr_to_dynamic_prop, partial_die_info::read)
13677 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13678 (dwarf2_symbol_mark_computed, set_die_type): Update.
13679 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13680 method.
13681 (attr_form_is_block): Don't declare.
13682 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13683
13684 2020-02-08 Tom Tromey <tom@tromey.com>
13685
13686 * dwarf2read.c (dwarf2_find_base_address, )
13687 (read_call_site_scope, rust_containing_type)
13688 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13689 (handle_data_member_location, dwarf2_add_member_fn)
13690 (get_alignment, read_structure_type, process_structure_scope)
13691 (mark_common_block_symbol_computed, read_common_block)
13692 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13693 (partial_die_info::read, read_attribute_value, new_symbol)
13694 (lookup_die_type, dwarf2_get_ref_die_offset)
13695 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13696 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13697 (dwarf2_symbol_mark_computed): Update.
13698 * dwarf2/attribute.h (struct attribute) <value_as_address,
13699 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13700 methods.
13701 (value_as_address, attr_form_is_section_offset)
13702 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13703 * dwarf2/attribute.c (attribute::value_as_address)
13704 (attribute::form_is_section_offset, attribute::form_is_constant)
13705 (attribute::form_is_ref): Now methods.
13706
13707 2020-02-08 Tom Tromey <tom@tromey.com>
13708
13709 * dwarf2read.c (struct attribute, DW_STRING)
13710 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13711 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13712 (attr_form_is_block, attr_form_is_section_offset)
13713 (attr_form_is_constant, attr_form_is_ref): Move.
13714 * dwarf2/attribute.h: New file.
13715 * dwarf2/attribute.c: New file, from dwarf2read.c.
13716 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13717
13718 2020-02-08 Tom Tromey <tom@tromey.com>
13719
13720 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13721 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13722 Move.
13723 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13724 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13725 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13726 abbrev.c.
13727 * dwarf2/abbrev.h: New file.
13728 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13729 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13730
13731 2020-02-08 Tom Tromey <tom@tromey.com>
13732
13733 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13734 (dwarf2_section_size, dwarf2_get_section_info)
13735 (create_signatured_type_table_from_debug_names)
13736 (create_addrmap_from_aranges, read_debug_names_from_section)
13737 (get_gdb_index_contents_from_section, read_comp_unit_head)
13738 (error_check_comp_unit_head, read_abbrev_offset)
13739 (create_debug_type_hash_table, init_cu_die_reader)
13740 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13741 (read_comp_units_from_section, create_cus_hash_table)
13742 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13743 (create_dwp_v2_section, dwarf2_rnglists_process)
13744 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13745 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13746 (read_indirect_string_from_dwz, read_addr_index_1)
13747 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13748 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13749 (fill_in_loclist_baton): Update.
13750 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13751 get_containing_section, get_bfd_owner, get_bfd_section,
13752 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13753 (dwarf2_read_section, get_section_name, get_section_file_name)
13754 (get_containing_section, get_section_bfd_owner)
13755 (get_section_bfd_section, get_section_name, get_section_file_name)
13756 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13757 declare.
13758 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13759 (dwarf2_section_info::get_bfd_owner)
13760 (dwarf2_section_info::get_bfd_section)
13761 (dwarf2_section_info::get_name)
13762 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13763 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13764 (dwarf2_section_info::read): Now methods.
13765 * dwarf-index-write.c (class debug_names): Update.
13766
13767 2020-02-08 Tom Tromey <tom@tromey.com>
13768
13769 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13770 Move to dwarf2/section.h.
13771 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13772 (get_section_bfd_section, get_section_name)
13773 (get_section_file_name, get_section_id, get_section_flags)
13774 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13775 dwarf2/section.c.
13776 * dwarf2/section.h: New file.
13777 * dwarf2/section.c: New file, from dwarf2read.c.
13778 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13779
13780 2020-02-08 Tom Tromey <tom@tromey.com>
13781
13782 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13783 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13784 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13785 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13786 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13787 * dwarf2/leb.h: New file, from dwarf2read.c.
13788 * dwarf2/leb.c: New file, from dwarf2read.c.
13789 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13790 Remove.
13791 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13792 (COMMON_SFILES): Add dwarf2/leb.c.
13793
13794 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13795
13796 GDB 9.1 released.
13797
13798 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13799
13800 PR gdb/25190:
13801 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13802 * gdb/remote.c (remote_console_output): Update.
13803 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13804 (ui_file_puts): ...this.
13805 * gdb/ui-file.h (ui_file_puts): Add declaration.
13806 * gdb/utils.c (emit_style_escape): Update.
13807 (flush_wrap_buffer): Update.
13808 (fputs_maybe_filtered): Update.
13809 (fputs_unfiltered): Add function.
13810
13811 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13812
13813 * gdb/event-loop.c (gdb_wait_for_event): Update.
13814 * gdb/printcmd.c (printf_command): Update.
13815 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13816 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13817 (gdb_os_flush_stderr): Update.
13818 * gdb/remote.c (remote_console_output): Update.
13819 * gdb/ui-file.c (gdb_flush): Rename to...
13820 (ui_file_flush): ...this.
13821 (stderr_file::write): Update.
13822 (stderr_file::puts): Update.
13823 * gdb/ui-file.h (gdb_flush): Rename to...
13824 (ui_file_flush): ...this.
13825 * gdb/utils.c (gdb_flush): Add function.
13826 * gdb/utils.h (gdb_flush): Add declaration.
13827
13828 2020-02-07 Tom Tromey <tromey@adacore.com>
13829
13830 PR breakpoints/24915:
13831 * source.c (find_and_open_source): Do not check basenames_may_differ.
13832
13833 2020-02-07 Tom Tromey <tom@tromey.com>
13834
13835 * README: Update gdbserver documentation.
13836 * gdbserver: Move to top level.
13837 * configure.tgt (build_gdbserver): Remove.
13838 * configure.ac: Remove --enable-gdbserver.
13839 * configure: Rebuild.
13840 * Makefile.in (distclean): Don't mention gdbserver.
13841
13842 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13843
13844 * source-cache.c (source_cache::ensure): Surround
13845 get_plain_source_lines with a try/catch.
13846 (source_cache::get_line_charpos): Get rid of try/catch
13847 and only check for the return value of "ensure".
13848 * tui/tui-source.c (tui_source_window::set_contents):
13849 Simplify "nlines" calculation.
13850
13851 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13852
13853 * MAINTAINERS (Write After Approval): Add myself.
13854
13855 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13856
13857 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13858 function call.
13859
13860 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13861
13862 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13863
13864 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13865
13866 * nat/riscv-linux-tdesc.h: New file.
13867 * nat/riscv-linux-tdesc.c: New file, taking code from...
13868 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13869 ... here.
13870 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13871 NATDEPFILES.
13872
13873 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13874
13875 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13876 we don't set the fake simulator ptid to the null_ptid.
13877
13878 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13881 * gdbthread.h (class thread_info) <resumed>: Likewise.
13882 * infrun.c (resume_1): Likewise.
13883 (proceed): Likewise.
13884 (infrun_thread_stop_requested): Likewise.
13885 (stop_all_threads): Likewise.
13886 (handle_inferior_event): Likewise.
13887 (restart_threads): Likewise.
13888 (finish_step_over): Likewise.
13889 (keep_going_stepped_thread): Likewise.
13890 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13891 (linux_handle_extended_wait): Likewise.
13892 * record-btrace.c (get_thread_current_frame_id): Likewise.
13893 * record-full.c (record_full_wait_1): Likewise.
13894 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13895 * target.c (target_resume): Likewise.
13896 * thread.c (set_running_thread): Likewise.
13897
13898 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13899
13900 * f-valprint.c (f77_print_array_1): Changed datatype of index
13901 variable to LONGEST from int to enable it to contain bound
13902 values correctly.
13903
13904 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13905
13906 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13907 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13908 offsets according to FLEN determined.
13909 (riscv_linux_nat_target::read_description): Determine FLEN
13910 dynamically.
13911 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13912 according to FLEN determined.
13913 (riscv_linux_nat_target::store_registers): Likewise.
13914
13915 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13916
13917 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13918 when reg->group is empty and reggroup is not.
13919
13920 2020-01-31 Tom Tromey <tromey@adacore.com>
13921
13922 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13923 Call beneath target's mourn_inferior after unpushing.
13924
13925 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13926
13927 PR tui/9765
13928 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13929 have enough lines to fill the screen, still return the lowest
13930 address we found.
13931
13932 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13933
13934 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13935 '-', '<', and '>' commands.
13936
13937 2020-01-29 Pedro Alves <palves@redhat.com>
13938 Sergio Durigan Junior <sergiodj@redhat.com>
13939
13940 * infcmd.c (construct_inferior_arguments): Assert that
13941 'argc' is greater than 0.
13942
13943 2020-01-29 Luis Machado <luis.machado@linaro.org>
13944
13945 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13946 (BRK_INSN_MASK): Define to 0xd4200000.
13947 (aarch64_program_breakpoint_here_p): New function.
13948 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13949 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13950 breakpoint.c.
13951 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13952 breakpoint.h
13953 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13954 call gdbarch_program_breakpoint_here_p.
13955 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13956 default_program_breakpoint_here_p, changed return type to bool and
13957 simplified.
13958 * breakpoint.h (program_breakpoint_here): Moved prototype to
13959 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13960 return type to bool.
13961 * gdbarch.c: Regenerate.
13962 * gdbarch.h: Regenerate.
13963 * gdbarch.sh (program_breakpoint_here_p): New method.
13964 * infrun.c (handle_signal_stop): Call
13965 gdbarch_program_breakpoint_here_p.
13966
13967 2020-01-26 Tom Tromey <tom@tromey.com>
13968
13969 * ctfread.c (struct ctf_fp_info): Reindent.
13970 (_initialize_ctfread): Remove.
13971
13972 2020-01-26 Tom Tromey <tom@tromey.com>
13973
13974 * psymtab.c (partial_map_expand_apply)
13975 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13976 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13977 (psym_print_stats, psym_expand_symtabs_for_function)
13978 (psym_map_symbol_filenames, psym_map_matching_symbols)
13979 (psym_expand_symtabs_matching)
13980 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13981 (maintenance_check_psymtabs): Use new methods.
13982 * psympriv.h (struct partial_symtab) <readin_p,
13983 get_compunit_symtab>: New methods.
13984 <readin, compunit_symtab>: Remove members.
13985 (struct standard_psymtab): New.
13986 (struct legacy_psymtab): Derive from standard_psymtab.
13987 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13988 standard_psymtab.
13989 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13990
13991 2020-01-26 Tom Tromey <tom@tromey.com>
13992
13993 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13994 read_dependencies. Add assert.
13995 * psymtab.c (partial_symtab::read_dependencies): New method.
13996 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13997 method.
13998 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13999 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14000 read_dependencies.
14001 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14002 Add assert.
14003
14004 2020-01-26 Tom Tromey <tom@tromey.com>
14005
14006 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14007 Call expand_psymtab.
14008 (xcoff_read_symtab): Call expand_psymtab.
14009 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14010 legacy_expand_psymtab.
14011 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14012 method.
14013 (struct legacy_psymtab) <expand_psymtab>: Implement.
14014 <legacy_expand_psymtab>: New member.
14015 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14016 (parse_partial_symbols): Set legacy_expand_psymtab.
14017 (psymtab_to_symtab_1): Change argument order. Call
14018 expand_psymtab.
14019 (new_psymtab): Set legacy_expand_psymtab.
14020 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14021 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14022 expand_psymtab.
14023 (dwarf2_psymtab::expand_psymtab): Rename from
14024 psymtab_to_symtab_1. Call expand_psymtab.
14025 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14026 (dbx_end_psymtab): Likewise.
14027 (dbx_psymtab_to_symtab_1): Change argument order. Call
14028 expand_psymtab.
14029 (dbx_read_symtab): Call expand_psymtab.
14030 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14031 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14032 (ctf_psymtab::read_symtab): Call expand_psymtab.
14033
14034 2020-01-26 Tom Tromey <tom@tromey.com>
14035
14036 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14037 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14038 messages.
14039 * mdebugread.c (mdebug_read_symtab): Remove prints.
14040 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14041 assert.
14042 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14043
14044 2020-01-26 Tom Tromey <tom@tromey.com>
14045
14046 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14047 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14048 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14049 legacy_symtab.
14050 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14051 * psymtab.c (psymtab_to_symtab): Call method.
14052 (dump_psymtab): Update.
14053 * psympriv.h (struct partial_symtab): Add virtual destructor.
14054 <read_symtab>: New method.
14055 (struct legacy_symtab): New.
14056 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14057 (struct pst_map) <pst>: Now a legacy_psymtab.
14058 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14059 (new_psymtab): Use legacy_psymtab.
14060 * dwarf2read.h (struct dwarf2_psymtab): New.
14061 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14062 * dwarf2read.c (dwarf2_create_include_psymtab)
14063 (dwarf2_build_include_psymtabs, create_type_unit_group)
14064 (create_partial_symtab, process_psymtab_comp_unit_reader)
14065 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14066 (set_partial_user): Use dwarf2_psymtab.
14067 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14068 (psymtab_to_symtab_1, process_full_comp_unit)
14069 (process_full_type_unit, dwarf2_ranges_read)
14070 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14071 (dwarf_decode_lines): Use dwarf2_psymtab.
14072 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14073 (add_address_entry_worker, write_one_signatured_type)
14074 (recursively_count_psymbols, recursively_write_psymbols)
14075 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14076 (write_debug_names): Likewise.
14077 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14078 <pst>: Now a legacy_psymtab.
14079 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14080 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14081 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14082 * ctfread.c (struct ctf_psymtab): New.
14083 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14084 ctf_psymtab.
14085 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14086 (create_partial_symtab): Return a ctf_psymtab.
14087 (scan_partial_symbols): Update.
14088
14089 2020-01-26 Tom Tromey <tom@tromey.com>
14090
14091 * xcoffread.c (xcoff_start_psymtab): Use new.
14092 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14093 renamed from start_psymtab_common.
14094 * psympriv.h (struct partial_symtab): Add new constructor.
14095 (start_psymtab_common): Don't declare.
14096 * mdebugread.c (parse_partial_symbols): Use new.
14097 * dwarf2read.c (create_partial_symtab): Use new.
14098 * dbxread.c (start_psymtab): Use new.
14099 * ctfread.c (create_partial_symtab): Use new.
14100
14101 2020-01-26 Tom Tromey <tom@tromey.com>
14102
14103 * xcoffread.c (xcoff_end_psymtab): Use new.
14104 * psymtab.c (start_psymtab_common): Use new.
14105 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14106 Update.
14107 * psympriv.h (struct partial_symtab): Add parameters to
14108 constructor. Don't inline.
14109 (allocate_psymtab): Don't declare.
14110 * mdebugread.c (new_psymtab): Use new.
14111 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14112 * dbxread.c (dbx_end_psymtab): Use new.
14113
14114 2020-01-26 Tom Tromey <tom@tromey.com>
14115
14116 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14117 allocate_psymtab. Update documentation.
14118 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14119 allocate_psymtab. Do not use new.
14120 (allocate_psymtab): Use new. Update.
14121
14122 2020-01-26 Tom Tromey <tom@tromey.com>
14123
14124 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14125 * psymtab.c (psym_print_stats): Update.
14126 * psympriv.h (struct partial_symtab) <readin,
14127 psymtabs_addrmap_supported, anonymous>: Now bool.
14128 * mdebugread.c (psymtab_to_symtab_1): Update.
14129 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14130 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14131 (process_full_comp_unit, process_full_type_unit): Update.
14132 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14133 * ctfread.c (psymtab_to_symtab): Update.
14134
14135 2020-01-26 Tom Tromey <tom@tromey.com>
14136
14137 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14138 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14139 * psymtab.c (psymtab_storage): Delete psymtabs.
14140 (psymtab_storage::allocate_psymtab): Use new.
14141 (psymtab_storage::discard_psymtab): Use delete.
14142 * psympriv.h (struct partial_symtab): Add constructor and
14143 initializers.
14144
14145 2020-01-26 Tom Tromey <tom@tromey.com>
14146
14147 * machoread.c: Do not include psympriv.h.
14148
14149 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14150
14151 * NEWS: Mention the new option and the set/show commands.
14152
14153 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14154
14155 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14156 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14157 (validate_exec_file): New variables, enums, functions.
14158 (exec_file_locate_attach, print_section_info): Style the filenames.
14159 (_initialize_exec): Install show_exec_file_mismatch_command and
14160 set_exec_file_mismatch_command.
14161 * gdbcore.h (validate_exec_file): Declare.
14162 * infcmd.c (attach_command): Call validate_exec_file.
14163 * remote.c ( remote_target::remote_add_inferior): Likewise.
14164
14165 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14166
14167 * frame.c (find_frame_sal): Move call to get_next_frame into more
14168 inner scope.
14169 * inline-frame.c (inilne_state) <inline_state>: Update argument
14170 types.
14171 (inilne_state) <skipped_symbol>: Rename to...
14172 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14173 (skip_inline_frames): Build vector of skipped symbols and use this
14174 to reate the inline_state.
14175 (inline_skipped_symbol): Add a comment and some assertions, fetch
14176 skipped symbol from the list.
14177
14178 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14179
14180 * buildsym.c (lte_is_less_than): Delete.
14181 (buildsym_compunit::end_symtab_with_blockvector): Create local
14182 lambda function to sort line table entries, and use
14183 std::stable_sort instead of std::sort.
14184 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14185 markers when looking for a previous line.
14186
14187 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14188
14189 * dwarf2read.c (lnp_state_machine::record_line): Include
14190 end_sequence parameter in debug print out. Record the line if we
14191 are at an end_sequence marker even if it's not the start of a
14192 statement.
14193 * symmisc.c (maintenance_print_one_line_table): Print end of
14194 sequence markers with 'END' not '0'.
14195
14196 2020-01-24 Pedro Alves <palves@redhat.com>
14197
14198 PR gdb/25410
14199 * thread.c (scoped_restore_current_thread::restore): Use
14200 switch_to_inferior_no_thread.
14201 * exec.c: Include "progspace-and-thread.h".
14202 (add_target_sections, remove_target_sections):
14203 scoped_restore_current_pspace_and_thread instead of
14204 scoped_restore_current_thread.
14205 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14206 and aspace to the inferior before calling clone_program_space.
14207 Remove stale comment.
14208
14209 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14210
14211 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14212 (arm_netbsd_nat_target::fetch_registers): ...this.
14213 (arm_nbsd_nat_target::store_registers): Rename to...
14214 (arm_netbsd_nat_target::store_registers): ...this.
14215
14216 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14217
14218 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14219 register_t.
14220
14221 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14222
14223 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14224 Update comment.
14225 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14226 Likewise.
14227 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14228 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14229 the correct replacement (iterate_over_regset_sections).
14230 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14231 Update comment.
14232
14233 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14234
14235 PR gdb/23718
14236 * gdb/python/python.c (execute_gdb_command): Call
14237 async_enable_stdin in catch block.
14238
14239 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14240
14241 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14242 SWITCH_THRU_ALL_UIS.
14243
14244 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14245
14246 PR tui/9765
14247 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14248 comment, add extra parameter, and update to store previous symbol
14249 when appropriate.
14250 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14251 add extra parameter.
14252 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14253 remove unneeded parameter, add try/catch around gdb_print_insn,
14254 rewrite to add items to asm_lines vector.
14255 (tui_find_backward_disassembly_start_address): New function.
14256 (tui_find_disassembly_address): Updated throughout.
14257 (tui_disasm_window::set_contents): Update for changes to
14258 tui_disassemble.
14259 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14260 number of lines to scroll.
14261
14262 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14263
14264 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14265 (SECT_OFF_DATA): Likewise.
14266 (SECT_OFF_RODATA): Likewise.
14267 (SECT_OFF_TEXT): Likewise.
14268 (SECT_OFF_BSS): Likewise.
14269 (struct objfile) <text_section_offset, data_section_offset>: New
14270 methods.
14271 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14272 objfile::text_section_offset.
14273 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14274 * coffread.c (coff_symtab_read): Likewise.
14275 (enter_linenos): Likewise.
14276 (process_coff_symbol): Likewise.
14277 * ctfread.c (get_objfile_text_range): Likewise.
14278 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14279 Use objfile::data_section_offset.
14280 * dwarf2-frame.c (execute_cfa_program): Use
14281 objfile::text_section_offset.
14282 (dwarf2_frame_find_fde): Likewise.
14283 * dwarf2read.c (create_addrmap_from_index): Likewise.
14284 (create_addrmap_from_aranges): Likewise.
14285 (dw2_find_pc_sect_compunit_symtab): Likewise.
14286 (process_psymtab_comp_unit_reader): Likewise.
14287 (add_partial_symbol): Likewise.
14288 (add_partial_subprogram): Likewise.
14289 (process_full_comp_unit): Likewise.
14290 (read_file_scope): Likewise.
14291 (read_func_scope): Likewise.
14292 (read_lexical_block_scope): Likewise.
14293 (read_call_site_scope): Likewise.
14294 (dwarf2_rnglists_process): Likewise.
14295 (dwarf2_ranges_process): Likewise.
14296 (dwarf2_ranges_read): Likewise.
14297 (dwarf_decode_lines_1): Likewise.
14298 (new_symbol): Likewise.
14299 (dwarf2_fetch_die_loc_sect_off): Likewise.
14300 (dwarf2_per_cu_text_offset): Likewise.
14301 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14302 * hppa-tdep.c (read_unwind_info): Likewise.
14303 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14304 * psympriv.h (struct partial_symtab): Likewise.
14305 * psymtab.c (find_pc_sect_psymtab): Likewise.
14306 * solib-svr4.c (enable_break): Likewise.
14307 * stap-probe.c (relocate_address): Use
14308 objfile::data_section_offset.
14309 * xcoffread.c (enter_line_range): Use
14310 objfile::text_section_offset.
14311 (read_xcoff_symtab): Likewise.
14312
14313 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14314
14315 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14316 declaration to narrower scopes.
14317
14318 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14319
14320 * darwin-nat.h (struct darwin_exception_msg, enum
14321 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14322 Move up.
14323 (class darwin_nat_target) <wait_1, check_new_threads,
14324 decode_exception_message, decode_message, stop_inferior,
14325 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14326 * darwin-nat.c (darwin_check_new_threads): Rename to...
14327 (darwin_nat_target::check_new_threads): ... this.
14328 (darwin_suspend_inferior_it): Remove.
14329 (darwin_decode_exception_message): Rename to...
14330 (darwin_nat_target::decode_exception_message): ... this.
14331 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14332 (darwin_decode_message): Rename to...
14333 (darwin_nat_target::decode_message): ... this.
14334 (cancel_breakpoint): Rename to...
14335 (darwin_nat_target::cancel_breakpoint): ... this.
14336 (darwin_wait): Rename to...
14337 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14338 instead of iterate_over_inferiors.
14339 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14340 (darwin_stop_inferior): Rename to...
14341 (darwin_nat_target::stop_inferior): ... this.
14342 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14343 (darwin_init_thread_list): Rename to...
14344 (darwin_nat_target::init_thread_list): ... this.
14345 (darwin_ptrace_him): Rename to...
14346 (darwin_nat_target::ptrace_him): ... this.
14347 (darwin_nat_target::create_inferior): Pass lambda function to
14348 fork_inferior.
14349 (darwin_nat_target::detach): Call stop_inferior instead of
14350 darwin_stop_inferior.
14351 * fork-inferior.h (fork_inferior): Change init_trace_fun
14352 parameter to gdb::function_view.
14353 * fork-inferior.c (fork_inferior): Likewise.
14354
14355 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14356
14357 * i386-cygwin-tdep.c (core_process_module_section): Update.
14358 * windows-nat.c (struct lm_info_windows): Add text_offset.
14359 (windows_xfer_shared_libraries): Update.
14360 * windows-tdep.c (windows_xfer_shared_library):
14361 Add text_offset_cached argument.
14362 * windows-tdep.h (windows_xfer_shared_library): Update.
14363
14364 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14365
14366 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14367
14368 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14369
14370 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14371 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14372 replace with range-based for.
14373 (gdbsim_interrupt_inferior): Remove.
14374 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14375 with a range-based for. Inline code from
14376 gdbsim_interrupt_inferior.
14377
14378 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14379
14380 * infrun.c (proceed): Fix indentation.
14381
14382 2020-01-21 Tom Tromey <tromey@adacore.com>
14383
14384 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14385 * python/python.c (python_extension_ops): Update.
14386 (gdbpy_colorize): New function.
14387 * python/lib/gdb/__init__.py (colorize): New function.
14388 * extension.h (ext_lang_colorize): Declare.
14389 * extension.c (ext_lang_colorize): New function.
14390 * extension-priv.h (struct extension_language_ops) <colorize>: New
14391 member.
14392 * cli/cli-style.c (_initialize_cli_style): Update help text.
14393
14394 2020-01-21 Luis Machado <luis.machado@linaro.org>
14395
14396 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14397 <cond>: Change type to bool.
14398 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14399 (aarch64_displaced_step_cb): Likewise.
14400 (aarch64_displaced_step_tb): Likewise.
14401
14402 2020-01-21 Luis Machado <luis.machado@linaro.org>
14403
14404 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14405 output.
14406
14407 2020-01-21 Luis Machado <luis.machado@linaro.org>
14408
14409 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14410 <pc_adjust>: Adjust the documentation.
14411 (aarch64_displaced_step_fixup): Check if PC really moved before
14412 adjusting it.
14413
14414 2020-01-19 Tom Tromey <tom@tromey.com>
14415
14416 * disasm.c (~gdb_disassembler): New destructor.
14417 (gdb_buffered_insn_length): Call disassemble_free_target.
14418 * disasm.h (class gdb_disassembler): Declare destructor. Use
14419 DISABLE_COPY_AND_ASSIGN.
14420
14421 2020-01-19 Tom Tromey <tom@tromey.com>
14422
14423 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14424 (die_reader_func_ftype): Remove.
14425 (cutu_reader): New class.
14426 (dw2_get_file_names_reader): Remove "data" parameter.
14427 (dw2_get_file_names): Use cutu_reader.
14428 (create_debug_type_hash_table): Update.
14429 (read_cutu_die_from_dwo): Update comment.
14430 (lookup_dwo_unit): Add dwo_name parameter.
14431 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14432 die_reader_func_ftype and data parameters.
14433 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14434 Remove die_reader_func_ftype and data parameters.
14435 (~cutu_reader): New; from init_cutu_and_read_dies.
14436 (cutu_reader::cutu_reader): Rename from
14437 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14438 and data parameters.
14439 (init_cutu_and_read_dies_simple): Remove.
14440 (struct process_psymtab_comp_unit_data): Remove.
14441 (process_psymtab_comp_unit_reader): Remove data parameter; add
14442 want_partial_unit and pretend_language parameters.
14443 (process_psymtab_comp_unit): Use cutu_reader.
14444 (build_type_psymtabs_reader): Remove data parameter.
14445 (build_type_psymtabs_1): Use cutu_reader.
14446 (process_skeletonless_type_unit): Likewise.
14447 (load_partial_comp_unit_reader): Remove.
14448 (load_partial_comp_unit): Use cutu_reader.
14449 (load_full_comp_unit_reader): Remove.
14450 (load_full_comp_unit): Use cutu_reader.
14451 (struct create_dwo_cu_data): Remove.
14452 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14453 dwo_unit parameters.
14454 (create_cus_hash_table): Use cutu_reader.
14455 (struct dwarf2_read_addr_index_data): Remove.
14456 (dwarf2_read_addr_index_reader): Remove.
14457 (dwarf2_read_addr_index): Use cutu_reader.
14458 (read_signatured_type_reader): Remove.
14459 (read_signatured_type): Use cutu_reader.
14460
14461 2020-01-19 Tom Tromey <tom@tromey.com>
14462
14463 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14464 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14465 (tui_wrefresh): Declare.
14466 * tui/tui-wingeneral.c (suppress_output): New global.
14467 (tui_suppress_output, ~tui_suppress_output): New constructor and
14468 destructor.
14469 (tui_wrefresh): New function.
14470 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14471 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14472 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14473 method.
14474 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14475 tui_wrefresh.
14476 (tui_data_window::no_refresh): New method.
14477 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14478 (tui_reg_command): Use tui_suppress_output
14479 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14480 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14481 method.
14482 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14483
14484 2020-01-19 Tom Tromey <tom@tromey.com>
14485
14486 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14487 Handle case where symtab is null.
14488
14489 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14490
14491 * linux-fork.c (one_fork_p): Simplify.
14492
14493 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14494
14495 * top.c (struct qt_args): Remove.
14496 (kill_or_detach): Change return type to void, replace `void *`
14497 parameter with a proper one.
14498 (print_inferior_quit_action): Likewise.
14499 (quit_confirm): Use range-based for loop to iterate over inferiors.
14500 (quit_force): Likewise.
14501
14502 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14505 `void *` parameter with proper parameters.
14506 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14507 (print_one_inferior): Change return type to void, replace `void *`
14508 parameter with proper parameters.
14509 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14510 inferiors.
14511 (get_other_inferior): Remove.
14512 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14513 inferiors.
14514
14515 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14516
14517 * mi/mi-interp.c (report_initial_inferior): Remove.
14518 (mi_interp::init): Use range-based for to iterate over inferiors.
14519
14520 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14521
14522 * python/py-inferior.c (build_inferior_list): Remove.
14523 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14524
14525 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14526
14527 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14528 (btrace_stitch_trace): Likewise.
14529 * charset.c (intermediate_encoding): Likewise (vaild).
14530 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14531 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14532 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14533
14534 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14535
14536 * windows-tdep.c (windows_get_tlb_type):
14537 Add rtl_user_process_parameters type.
14538
14539 2020-01-16 Pedro Alves <palves@redhat.com>
14540 Norbert Lange <nolange79@gmail.com>
14541
14542 PR build/24805
14543 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14544 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14545 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14546 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14547 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14548 (ps_plog): Redeclare exported functions with default visibility.
14549
14550 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14551
14552 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14553 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14554
14555 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14556
14557 * infcmd.c (post_create_inferior): Use get_thread_regcache
14558 instead of get_current_regcache.
14559
14560 2020-01-14 Tom Tromey <tom@tromey.com>
14561
14562 PR symtab/12535:
14563 * python/python.c (gdbpy_decode_line): Treat empty string the same
14564 as no argument.
14565
14566 2020-01-14 Tom Tromey <tom@tromey.com>
14567
14568 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14569
14570 2020-01-14 Tom Tromey <tom@tromey.com>
14571
14572 * nat/linux-btrace.c: Don't include <config.h>.
14573 * nat/linux-ptrace.c: Don't include <config.h>.
14574 * nat/x86-linux-dregs.c: Don't include <config.h>.
14575
14576 2020-01-14 Tom Tromey <tom@tromey.com>
14577
14578 * configure: Rebuild.
14579 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14580
14581 2020-01-14 Tom Tromey <tom@tromey.com>
14582
14583 * nat/x86-linux-dregs.c: Include configh.h.
14584 * nat/linux-ptrace.c: Include configh.h.
14585 * nat/linux-btrace.c: Include configh.h.
14586 * defs.h: Include config.h, bfd.h.
14587 * configure.ac: Don't source common.host.
14588 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14589 * configure: Rebuild.
14590 * acinclude.m4: Update path.
14591 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14592 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14593 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14594 (CLIBS): Add LIBSUPPORT.
14595 (CDEPS): Likewise.
14596 (COMMON_SFILES): Remove gdbsupport files.
14597 (HFILES_NO_SRCDIR): Likewise.
14598 (stamp-version): Update path to create-version.sh.
14599 (ALLDEPFILES): Remove gdbsupport files.
14600
14601 2020-01-14 Tom Tromey <tom@tromey.com>
14602
14603 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14604 USE_WIN32API when needed.
14605 * configure.ac (USE_WIN32API): Don't define.
14606 (WIN32LIBS): Use WIN32APILIBS.
14607 * configure: Rebuild.
14608
14609 2020-01-14 Tom Tromey <tom@tromey.com>
14610
14611 * configure: Rebuild.
14612 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14613
14614 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14615
14616 * skip.c (skip_function_command): Make skip w/o arguments use the
14617 name of the inlined function if pc is inside any inlined function.
14618
14619 2020-01-14 Luis Machado <luis.machado@linaro.org>
14620
14621 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14622 * infrun.c (resume_1): Likewise.
14623 (handle_inferior_event): Remove stale comment.
14624 * linux-nat.c (linux_nat_target::resume): Update comments.
14625 (save_stop_reason): Likewise.
14626 (linux_nat_filter_event): Likewise.
14627 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14628
14629 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14630
14631 * elfread.c (record_minimal_symbol): Set section index to 0 for
14632 non-allocatable sections.
14633
14634
14635 2020-01-13 Ali Tamur <tamur@google.com>
14636
14637 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14638 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14639 to gdb::optional. Update comments.
14640 (dwo_file): Update comments.
14641 (read_attribute): Update API to take an additional out parameter,
14642 need_reprocess. This is used to mark attributes that need other
14643 attributes (e.g. str_offsets_base) for correct computation which may not
14644 have been read yet.
14645 (read_attribute_reprocess): New function declaration.
14646 (read_addr_index): Likewise.
14647 (read_dwo_str_index): Likewise.
14648 (read_stub_str_index): Likewise.
14649 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14650 (lookup_addr_base): New function definition.
14651 (lookup_ranges_base): Likewise.
14652 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14653 lookup_ranges_base.
14654 (init_cutu_and_read_dies): Update comments.
14655 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14656 unit. This is used to inherit parent's str_offsets_base and addr_base.
14657 Update comments.
14658 (init_cutu_and_read_dies_simple): Reflect API changes.
14659 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14660 (create_cus_hash_table): Change API to take parent compile unit.
14661 Reflect API changes.
14662 (open_and_init_dwo_file): Reflect API changes.
14663 (dwarf2_get_pc_bounds): Update comments.
14664 (dwarf2_record_block_ranges): Likewise.
14665 (read_full_die_1): Change implementation to reprocess attributes that
14666 need str_offsets_base and addr_base.
14667 (partial_die_info::read): Likewise.
14668 (read_attribute_reprocess): New function definition.
14669 (read_attribute_value): Change API to take an additional out parameter,
14670 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14671 when a non-dwo compile unit has index based attributes.
14672 (read_attribute): Reflect API changes.
14673 (read_addr_index_1): Reflect API changes. Update comments.
14674 (dwarf2_read_addr_index_data): Reflect API changes.
14675 (dwarf2_read_addr_index): Likewise.
14676 (read_str_index): Change API and implementation. This becomes a helper
14677 to be used by the new string index related methods. Update error
14678 message and comments.
14679 (read_dwo_str_index): New function definition.
14680 (read_stub_str_index): Likewise.
14681 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14682 * symfile.h (dwarf2_debug_sections): Likewise.
14683 * xcoffread.c (dwarf2_debug_sections): Likewise.
14684
14685 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14686
14687 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14688 core_reg_sect type to gdb_byte *.
14689 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14690 * cris-tdep.c (fetch_core_registers): Likewise.
14691 * corelow.c (core_target::get_core_register_section): Change
14692 type of `contents` to gdb::byte_vector.
14693
14694 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14695
14696 * tui/tui-wingeneral.c (box_win): Position the title in the center
14697 of the border.
14698
14699 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14700
14701 * corelow.c (core_target::get_core_register_section): Use
14702 std::vector instead of alloca.
14703
14704 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14705
14706 * warning.m4: Add -Wmissing-declarations to build_warnings.
14707 * configure: Re-generate.
14708
14709 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14710
14711 * python/python.c (init__gdb_module): Add declaration.
14712
14713 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14714
14715 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14716 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14717 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14718 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14719 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14720 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14721 * ada-exp.y (_initialize_ada_exp): Add declaration.
14722 * ada-lang.c (_initialize_ada_language): Add declaration.
14723 * ada-tasks.c (_initialize_tasks): Add declaration.
14724 * agent.c (_initialize_agent): Add declaration.
14725 * aix-thread.c (_initialize_aix_thread): Add declaration.
14726 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14727 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14728 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14729 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14730 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14731 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14732 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14733 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14734 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14735 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14736 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14737 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14738 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14739 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14740 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14741 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14742 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14743 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14744 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14745 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14746 * annotate.c (_initialize_annotate): Add declaration.
14747 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14748 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14749 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14750 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14751 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14752 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14753 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14754 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14755 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14756 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14757 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14758 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14759 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14760 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14761 * auto-load.c (_initialize_auto_load): Add declaration.
14762 * auxv.c (_initialize_auxv): Add declaration.
14763 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14764 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14765 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14766 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14767 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14768 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14769 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14770 * breakpoint.c (_initialize_breakpoint): Add declaration.
14771 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14772 * btrace.c (_initialize_btrace): Add declaration.
14773 * charset.c (_initialize_charset): Add declaration.
14774 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14775 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14776 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14777 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14778 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14779 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14780 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14781 * coffread.c (_initialize_coffread): Add declaration.
14782 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14783 * compile/compile.c (_initialize_compile): Add declaration.
14784 * complaints.c (_initialize_complaints): Add declaration.
14785 * completer.c (_initialize_completer): Add declaration.
14786 * copying.c (_initialize_copying): Add declaration.
14787 * corefile.c (_initialize_core): Add declaration.
14788 * corelow.c (_initialize_corelow): Add declaration.
14789 * cp-abi.c (_initialize_cp_abi): Add declaration.
14790 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14791 * cp-support.c (_initialize_cp_support): Add declaration.
14792 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14793 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14794 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14795 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14796 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14797 * ctfread.c (_initialize_ctfread): Add declaration.
14798 * d-lang.c (_initialize_d_language): Add declaration.
14799 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14800 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14801 * dbxread.c (_initialize_dbxread): Add declaration.
14802 * dcache.c (_initialize_dcache): Add declaration.
14803 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14804 * disasm.c (_initialize_disasm): Add declaration.
14805 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14806 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14807 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14808 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14809 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14810 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14811 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14812 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14813 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14814 * elfread.c (_initialize_elfread): Add declaration.
14815 * exec.c (_initialize_exec): Add declaration.
14816 * extension.c (_initialize_extension): Add declaration.
14817 * f-lang.c (_initialize_f_language): Add declaration.
14818 * f-valprint.c (_initialize_f_valprint): Add declaration.
14819 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14820 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14821 * filesystem.c (_initialize_filesystem): Add declaration.
14822 * findcmd.c (_initialize_mem_search): Add declaration.
14823 * findvar.c (_initialize_findvar): Add declaration.
14824 * fork-child.c (_initialize_fork_child): Add declaration.
14825 * frame-base.c (_initialize_frame_base): Add declaration.
14826 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14827 * frame.c (_initialize_frame): Add declaration.
14828 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14829 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14830 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14831 * gcore.c (_initialize_gcore): Add declaration.
14832 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14833 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14834 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14835 * gdbarch.c (_initialize_gdbarch): Add declaration.
14836 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14837 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14838 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14839 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14840 * go-lang.c (_initialize_go_language): Add declaration.
14841 * go32-nat.c (_initialize_go32_nat): Add declaration.
14842 * guile/guile.c (_initialize_guile): Add declaration.
14843 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14844 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14845 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14846 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14847 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14848 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14849 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14850 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14851 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14852 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14853 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14854 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14855 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14856 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14857 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14858 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14859 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14860 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14861 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14862 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14863 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14864 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14865 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14866 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14867 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14868 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14869 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14870 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14871 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14872 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14873 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14874 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14875 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14876 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14877 * infcall.c (_initialize_infcall): Add declaration.
14878 * infcmd.c (_initialize_infcmd): Add declaration.
14879 * inflow.c (_initialize_inflow): Add declaration.
14880 * infrun.c (_initialize_infrun): Add declaration.
14881 * interps.c (_initialize_interpreter): Add declaration.
14882 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14883 * jit.c (_initialize_jit): Add declaration.
14884 * language.c (_initialize_language): Add declaration.
14885 * linux-fork.c (_initialize_linux_fork): Add declaration.
14886 * linux-nat.c (_initialize_linux_nat): Add declaration.
14887 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14888 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14889 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14890 * m2-lang.c (_initialize_m2_language): Add declaration.
14891 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14892 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14893 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14894 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14895 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14896 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14897 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14898 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14899 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14900 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14901 * machoread.c (_initialize_machoread): Add declaration.
14902 * macrocmd.c (_initialize_macrocmd): Add declaration.
14903 * macroscope.c (_initialize_macroscope): Add declaration.
14904 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14905 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14906 * maint.c (_initialize_maint_cmds): Add declaration.
14907 * mdebugread.c (_initialize_mdebugread): Add declaration.
14908 * memattr.c (_initialize_mem): Add declaration.
14909 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14910 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14911 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14912 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14913 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14914 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14915 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14916 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14917 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14918 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14919 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14920 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14921 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14922 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14923 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14924 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14925 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14926 * mipsread.c (_initialize_mipsread): Add declaration.
14927 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14928 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14929 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14930 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14931 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14932 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14933 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14934 * nto-procfs.c (_initialize_procfs): Add declaration.
14935 * objc-lang.c (_initialize_objc_language): Add declaration.
14936 * observable.c (_initialize_observer): Add declaration.
14937 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14938 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14939 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14940 * osabi.c (_initialize_gdb_osabi): Add declaration.
14941 * osdata.c (_initialize_osdata): Add declaration.
14942 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14943 * parse.c (_initialize_parse): Add declaration.
14944 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14945 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14946 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14947 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14948 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14949 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14950 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14951 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14952 * printcmd.c (_initialize_printcmd): Add declaration.
14953 * probe.c (_initialize_probe): Add declaration.
14954 * proc-api.c (_initialize_proc_api): Add declaration.
14955 * proc-events.c (_initialize_proc_events): Add declaration.
14956 * proc-service.c (_initialize_proc_service): Add declaration.
14957 * procfs.c (_initialize_procfs): Add declaration.
14958 * producer.c (_initialize_producer): Add declaration.
14959 * psymtab.c (_initialize_psymtab): Add declaration.
14960 * python/python.c (_initialize_python): Add declaration.
14961 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14962 * record-btrace.c (_initialize_record_btrace): Add declaration.
14963 * record-full.c (_initialize_record_full): Add declaration.
14964 * record.c (_initialize_record): Add declaration.
14965 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14966 * regcache.c (_initialize_regcache): Add declaration.
14967 * reggroups.c (_initialize_reggroup): Add declaration.
14968 * remote-notif.c (_initialize_notif): Add declaration.
14969 * remote-sim.c (_initialize_remote_sim): Add declaration.
14970 * remote.c (_initialize_remote): Add declaration.
14971 * reverse.c (_initialize_reverse): Add declaration.
14972 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14973 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14974 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14975 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14976 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14977 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14978 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14979 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14980 Add declaration.
14981 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14982 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14983 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14984 * rust-exp.y (_initialize_rust_exp): Add declaration.
14985 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14986 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14987 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14988 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14989 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14990 * score-tdep.c (_initialize_score_tdep): Add declaration.
14991 * ser-go32.c (_initialize_ser_dos): Add declaration.
14992 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14993 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14994 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14995 * ser-uds.c (_initialize_ser_socket): Add declaration.
14996 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14997 * serial.c (_initialize_serial): Add declaration.
14998 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14999 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15000 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15001 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15002 * skip.c (_initialize_step_skip): Add declaration.
15003 * sol-thread.c (_initialize_sol_thread): Add declaration.
15004 * solib-aix.c (_initialize_solib_aix): Add declaration.
15005 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15006 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15007 * solib-frv.c (_initialize_frv_solib): Add declaration.
15008 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15009 * solib-target.c (_initialize_solib_target): Add declaration.
15010 * solib.c (_initialize_solib): Add declaration.
15011 * source-cache.c (_initialize_source_cache): Add declaration.
15012 * source.c (_initialize_source): Add declaration.
15013 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15014 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15015 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15016 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15017 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15018 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15019 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15020 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15021 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15022 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15023 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15024 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15025 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15026 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15027 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15028 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15029 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15030 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15031 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15032 * stabsread.c (_initialize_stabsread): Add declaration.
15033 * stack.c (_initialize_stack): Add declaration.
15034 * stap-probe.c (_initialize_stap_probe): Add declaration.
15035 * std-regs.c (_initialize_frame_reg): Add declaration.
15036 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15037 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15038 * symfile.c (_initialize_symfile): Add declaration.
15039 * symmisc.c (_initialize_symmisc): Add declaration.
15040 * symtab.c (_initialize_symtab): Add declaration.
15041 * target.c (_initialize_target): Add declaration.
15042 * target-connection.c (_initialize_target_connection): Add
15043 declaration.
15044 * target-dcache.c (_initialize_target_dcache): Add declaration.
15045 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15046 * thread.c (_initialize_thread): Add declaration.
15047 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15048 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15049 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15050 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15051 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15052 * tracectf.c (_initialize_ctf): Add declaration.
15053 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15054 * tracefile.c (_initialize_tracefile): Add declaration.
15055 * tracepoint.c (_initialize_tracepoint): Add declaration.
15056 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15057 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15058 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15059 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15060 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15061 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15062 * tui/tui.c (_initialize_tui): Add declaration.
15063 * typeprint.c (_initialize_typeprint): Add declaration.
15064 * ui-style.c (_initialize_ui_style): Add declaration.
15065 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15066 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15067 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15068 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15069 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15070 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15071 * unittests/filtered_iterator-selftests.c
15072 (_initialize_filtered_iterator_selftests): Add declaration.
15073 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15074 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15075 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15076 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15077 * unittests/main-thread-selftests.c
15078 (_initialize_main_thread_selftests): Add declaration.
15079 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15080 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15081 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15082 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15083 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15084 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15085 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15086 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15087 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15088 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15089 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15090 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15091 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15092 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15093 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15094 declaration.
15095 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15096 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15097 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15098 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15099 * user-regs.c (_initialize_user_regs): Add declaration.
15100 * utils.c (_initialize_utils): Add declaration.
15101 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15102 * valops.c (_initialize_valops): Add declaration.
15103 * valprint.c (_initialize_valprint): Add declaration.
15104 * value.c (_initialize_values): Add declaration.
15105 * varobj.c (_initialize_varobj): Add declaration.
15106 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15107 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15108 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15109 * windows-nat.c (_initialize_windows_nat): Add declaration.
15110 (_initialize_check_for_gdb_ini): Add declaration.
15111 (_initialize_loadable): Add declaration.
15112 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15113 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15114 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15115 * xcoffread.c (_initialize_xcoffread): Add declaration.
15116 * xml-support.c (_initialize_xml_support): Add declaration.
15117 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15118 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15119 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15120 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15121
15122 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15123
15124 * regformats/regdat.sh: Generate declaration for init function.
15125
15126 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15127
15128 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15129 up.
15130 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15131 close_one_inferior>: New methods.
15132 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15133 pass down target to find_inferior_pid.
15134 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15135 Pass down target to find_inferior_ptid.
15136 (gdbsim_target::create_inferior): Pass down target to
15137 add_thread_silent.
15138 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15139 target down to find_inferior_ptid and switch_to_thread.
15140 (gdbsim_target::close): Update to call close_one_inferior.
15141 (struct resume_data): Remove.
15142 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15143 directly, rather than through a void pointer.
15144 (gdbsim_target::resume): Update to call resume_one_inferior.
15145
15146 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15147
15148 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15149
15150 2020-01-12 Pedro Alves <palves@redhat.com>
15151
15152 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15153 directly for the current inferior instead of
15154 discard_all_inferiors.
15155 (discard_all_inferiors): Delete.
15156
15157 2020-01-11 Tom Tromey <tom@tromey.com>
15158
15159 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15160 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15161 deprecated_safe_get_selected_frame.
15162
15163 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15164
15165 * inferior.c (print_inferior): Switch inferior before printing it.
15166
15167 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15168 Pedro Alves <palves@redhat.com>
15169
15170 * progspace-and-thread.c (switch_to_program_space_and_thread):
15171 Assert there's an inferior for PSPACE. Use
15172 switch_to_inferior_no_thread to switch the inferior too.
15173 * progspace.c (program_space::~program_space): Call
15174 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15175 (program_space::free_all_objfiles): Don't call clear_symtab_users
15176 here.
15177 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15178
15179 2020-01-10 Pedro Alves <palves@redhat.com>
15180
15181 * NEWS: Mention multi-target debugging, "info connections", and
15182 "add-inferior -no-connection".
15183
15184 2020-01-10 Pedro Alves <palves@redhat.com>
15185
15186 * infrun.c: Include "target-connection.h".
15187 (check_multi_target_resumption): New.
15188 (proceed): Call it.
15189 * target-connection.c (make_target_connection_string): Make
15190 extern.
15191 * target-connection.h (make_target_connection_string): Declare.
15192
15193 2020-01-10 Pedro Alves <palves@redhat.com>
15194
15195 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15196 * inferior.c (uiout_field_connection): New function.
15197 (print_inferior): Add new "connection-id" column.
15198 (add_inferior_command): Show connection number/string of added
15199 inferior.
15200 * process-stratum-target.h
15201 (process_stratum_target::connection_string): New virtual method.
15202 (process_stratum_target::connection_number): New field.
15203 * remote.c (remote_target::connection_string): New override.
15204 * target-connection.c: New file.
15205 * target-connection.h: New file.
15206 * target.c (decref_target): Remove process_stratum targets from
15207 the connection list.
15208 (target_stack::push): Add process_stratum targets to the
15209 connection list.
15210
15211 2020-01-10 Pedro Alves <palves@redhat.com>
15212
15213 Revert:
15214 2016-04-12 Pedro Alves <palves@redhat.com>
15215 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15216 Remove references to name.
15217 * serial.h (struct serial) <name>: Delete.
15218
15219 2020-01-10 Pedro Alves <palves@redhat.com>
15220
15221 * gdbarch-selftests.c (register_to_value_test): Remove "target
15222 already pushed" check.
15223
15224 2020-01-10 Pedro Alves <palves@redhat.com>
15225 John Baldwin <jhb@FreeBSD.org>
15226
15227 * aarch64-linux-nat.c
15228 (aarch64_linux_nat_target::thread_architecture): Adjust.
15229 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15230 (task_command_1): Likewise.
15231 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15232 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15233 (aix_thread_target::store_registers)
15234 (aix_thread_target::thread_alive): Adjust.
15235 * amd64-fbsd-tdep.c: Include "inferior.h".
15236 (amd64fbsd_get_thread_local_address): Pass down target.
15237 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15238 thread's gdbarch instead of target_gdbarch.
15239 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15240 get_last_target_status.
15241 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15242 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15243 inferiors.
15244 (update_inserted_breakpoint_locations): Skip if inferiors with no
15245 execution.
15246 (update_global_location_list): When handling moribund locations,
15247 find representative inferior for location's pspace, and use thread
15248 count of its process_stratum target.
15249 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15250 * bsd-uthread.c (bsd_uthread_target::wait): Use
15251 as_process_stratum_target and adjust thread_change_ptid and
15252 add_thread calls.
15253 (bsd_uthread_target::update_thread_list): Use
15254 as_process_stratum_target and adjust find_thread_ptid,
15255 thread_change_ptid and add_thread calls.
15256 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15257 find_thread_ptid call.
15258 * corelow.c (add_to_thread_list): Adjust add_thread call.
15259 (core_target_open): Adjust add_thread_silent and thread_count
15260 calls.
15261 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15262 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15263 * event-top.c (async_disconnect): Pop targets from all inferiors.
15264 * exec.c (add_target_sections): Push exec target on all inferiors
15265 sharing the program space.
15266 (remove_target_sections): Remove the exec target from all
15267 inferiors sharing the program space.
15268 (exec_on_vfork): New.
15269 * exec.h (exec_on_vfork): Declare.
15270 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15271 Pass it down.
15272 (fbsd_nat_target::update_thread_list): Adjust.
15273 (fbsd_nat_target::resume): Adjust.
15274 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15275 down.
15276 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15277 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15278 get_thread_arch_regcache call.
15279 * fork-child.c (gdb_startup_inferior): Pass target down to
15280 startup_inferior and set_executing.
15281 * gdbthread.h (struct process_stratum_target): Forward declare.
15282 (add_thread, add_thread_silent, add_thread_with_info)
15283 (in_thread_list): Add process_stratum_target parameter.
15284 (find_thread_ptid(inferior*, ptid_t)): New overload.
15285 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15286 parameter.
15287 (all_threads()): Delete overload.
15288 (all_threads, all_non_exited_threads): Add process_stratum_target
15289 parameter.
15290 (all_threads_safe): Use brace initialization.
15291 (thread_count): Add process_stratum_target parameter.
15292 (set_resumed, set_running, set_stop_requested, set_executing)
15293 (threads_are_executing, finish_thread_state): Add
15294 process_stratum_target parameter.
15295 (switch_to_thread): Use is_current_thread.
15296 * i386-fbsd-tdep.c: Include "inferior.h".
15297 (i386fbsd_get_thread_local_address): Pass down target.
15298 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15299 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15300 have_inferiors check.
15301 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15302 (inf_ptrace_target::attach): Adjust.
15303 * infcall.c (run_inferior_call): Adjust.
15304 * infcmd.c (run_command_1): Pass target to
15305 scoped_finish_thread_state.
15306 (proceed_thread_callback): Skip inferiors with no execution.
15307 (continue_command): Rename 'all_threads' local to avoid hiding
15308 'all_threads' function. Adjust get_last_target_status call.
15309 (prepare_one_step): Adjust set_running call.
15310 (signal_command): Use user_visible_resume_target. Compare thread
15311 pointers instead of inferior_ptid.
15312 (info_program_command): Adjust to pass down target.
15313 (attach_command): Mark target's 'thread_executing' flag.
15314 (stop_current_target_threads_ns): New, factored out from ...
15315 (interrupt_target_1): ... this. Switch inferior before making
15316 target calls.
15317 * inferior-iter.h
15318 (struct all_inferiors_iterator, struct all_inferiors_range)
15319 (struct all_inferiors_safe_range)
15320 (struct all_non_exited_inferiors_range): Filter on
15321 process_stratum_target too. Remove explicit.
15322 * inferior.c (inferior::inferior): Push dummy target on target
15323 stack.
15324 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15325 Add process_stratum_target parameter, and pass it down.
15326 (have_live_inferiors): Adjust.
15327 (switch_to_inferior_and_push_target): New.
15328 (add_inferior_command, clone_inferior_command): Handle
15329 "-no-connection" parameter. Use
15330 switch_to_inferior_and_push_target.
15331 (_initialize_inferior): Mention "-no-connection" option in
15332 the help of "add-inferior" and "clone-inferior" commands.
15333 * inferior.h: Include "process-stratum-target.h".
15334 (interrupt_target_1): Use bool.
15335 (struct inferior) <push_target, unpush_target, target_is_pushed,
15336 find_target_beneath, top_target, process_target, target_at,
15337 m_stack>: New.
15338 (discard_all_inferiors): Delete.
15339 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15340 (all_inferiors, all_non_exited_inferiors): Add
15341 process_stratum_target parameter.
15342 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15343 (target_last_proc_target): New global.
15344 (follow_fork_inferior): Push target on new inferior. Pass target
15345 to add_thread_silent. Call exec_on_vfork. Handle target's
15346 reference count.
15347 (follow_fork): Adjust get_last_target_status call. Also consider
15348 target.
15349 (follow_exec): Push target on new inferior.
15350 (struct execution_control_state) <target>: New field.
15351 (user_visible_resume_target): New.
15352 (do_target_resume): Call target_async.
15353 (resume_1): Set target's threads_executing flag. Consider resume
15354 target.
15355 (commit_resume_all_targets): New.
15356 (proceed): Also consider resume target. Skip threads of inferiors
15357 with no execution. Commit resumtion in all targets.
15358 (start_remote): Pass current inferior to wait_for_inferior.
15359 (infrun_thread_stop_requested): Consider target as well. Pass
15360 thread_info pointer to clear_inline_frame_state instead of ptid.
15361 (infrun_thread_thread_exit): Consider target as well.
15362 (random_pending_event_thread): New inferior parameter. Use it.
15363 (do_target_wait): Rename to ...
15364 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15365 down.
15366 (threads_are_resumed_pending_p, do_target_wait): New.
15367 (prepare_for_detach): Adjust calls.
15368 (wait_for_inferior): New inferior parameter. Handle it. Use
15369 do_target_wait_1 instead of do_target_wait.
15370 (fetch_inferior_event): Adjust. Switch to representative
15371 inferior. Pass target down.
15372 (set_last_target_status): Add process_stratum_target parameter.
15373 Save target in global.
15374 (get_last_target_status): Add process_stratum_target parameter and
15375 handle it.
15376 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15377 (context_switch): Check inferior_ptid == null_ptid before calling
15378 inferior_thread().
15379 (get_inferior_stop_soon): Pass down target.
15380 (wait_one): Rename to ...
15381 (poll_one_curr_target): ... this.
15382 (struct wait_one_event): New.
15383 (wait_one): New.
15384 (stop_all_threads): Adjust.
15385 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15386 event's target.
15387 (switch_back_to_stepped_thread): Also consider target.
15388 (print_stop_event): Update.
15389 (normal_stop): Update. Also consider the resume target.
15390 * infrun.h (wait_for_inferior): Remove declaration.
15391 (user_visible_resume_target): New declaration.
15392 (get_last_target_status, set_last_target_status): New
15393 process_stratum_target parameter.
15394 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15395 process_stratum_target parameter, and use it.
15396 (clear_inline_frame_state (thread_info*)): New.
15397 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15398 process_stratum_target parameter.
15399 (clear_inline_frame_state (thread_info*)): Declare.
15400 * linux-fork.c (delete_checkpoint_command): Pass target down to
15401 find_thread_ptid.
15402 (checkpoint_command): Adjust.
15403 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15404 instead of just tweaking inferior_ptid.
15405 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15406 (exit_lwp): Pass target down to find_thread_ptid.
15407 (attach_proc_task_lwp_callback): Pass target down to
15408 add_thread/set_running/set_executing.
15409 (linux_nat_target::attach): Pass target down to
15410 thread_change_ptid.
15411 (get_detach_signal): Pass target down to find_thread_ptid.
15412 Consider last target status's target.
15413 (linux_resume_one_lwp_throw, resume_lwp)
15414 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15415 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15416 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15417 (linux_nat_target::async_wait_fd): New.
15418 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15419 target down.
15420 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15421 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15422 * linux-thread-db.c (struct thread_db_info::process_target): New
15423 field.
15424 (add_thread_db_info): Save target.
15425 (get_thread_db_info): New process_stratum_target parameter. Also
15426 match target.
15427 (delete_thread_db_info): New process_stratum_target parameter.
15428 Also match target.
15429 (thread_from_lwp): Adjust to pass down target.
15430 (thread_db_notice_clone): Pass down target.
15431 (check_thread_db_callback): Pass down target.
15432 (try_thread_db_load_1): Always push the thread_db target.
15433 (try_thread_db_load, record_thread): Pass target down.
15434 (thread_db_target::detach): Pass target down. Always unpush the
15435 thread_db target.
15436 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15437 target down. Always unpush the thread_db target.
15438 (find_new_threads_callback, thread_db_find_new_threads_2)
15439 (thread_db_target::update_thread_list): Pass target down.
15440 (thread_db_target::pid_to_str): Pass current inferior down.
15441 (thread_db_target::get_thread_local_address): Pass target down.
15442 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15443 target down.
15444 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15445 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15446 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15447 (procfs_init_inferior): Rename to ...
15448 (procfs_target::procfs_init_inferior): ... this and adjust.
15449 (procfs_target::create_inferior, procfs_notice_thread)
15450 (procfs_do_thread_registers): Adjust.
15451 * ppc-fbsd-tdep.c: Include "inferior.h".
15452 (ppcfbsd_get_thread_local_address): Pass down target.
15453 * proc-service.c (ps_xfer_memory): Switch current inferior and
15454 program space as well.
15455 (get_ps_regcache): Pass target down.
15456 * process-stratum-target.c
15457 (process_stratum_target::thread_address_space)
15458 (process_stratum_target::thread_architecture): Pass target down.
15459 * process-stratum-target.h
15460 (process_stratum_target::threads_executing): New field.
15461 (as_process_stratum_target): New.
15462 * ravenscar-thread.c
15463 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15464 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15465 down.
15466 * record-btrace.c (record_btrace_target::info_record): Adjust.
15467 (record_btrace_target::record_method)
15468 (record_btrace_target::record_is_replaying)
15469 (record_btrace_target::fetch_registers)
15470 (get_thread_current_frame_id, record_btrace_target::resume)
15471 (record_btrace_target::wait, record_btrace_target::stop): Pass
15472 target down.
15473 * record-full.c (record_full_wait_1): Switch to event thread.
15474 Pass target down.
15475 * regcache.c (regcache::regcache)
15476 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15477 process_stratum_target parameter and handle it.
15478 (current_thread_target): New global.
15479 (get_thread_regcache): Add process_stratum_target parameter and
15480 handle it. Switch inferior before calling target method.
15481 (get_thread_regcache): Pass target down.
15482 (get_thread_regcache_for_ptid): Pass target down.
15483 (registers_changed_ptid): Add process_stratum_target parameter and
15484 handle it.
15485 (registers_changed_thread, registers_changed): Pass target down.
15486 (test_get_thread_arch_aspace_regcache): New.
15487 (current_regcache_test): Define a couple local test_target_ops
15488 instances and use them for testing.
15489 (readwrite_regcache): Pass process_stratum_target parameter.
15490 (cooked_read_test, cooked_write_test): Pass mock_target down.
15491 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15492 (get_thread_arch_aspace_regcache): Add process_stratum_target
15493 parameter.
15494 (regcache::target): New method.
15495 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15496 (regcache::registers_changed_ptid): Add process_stratum_target
15497 parameter.
15498 (regcache::m_target): New field.
15499 (registers_changed_ptid): Add process_stratum_target parameter.
15500 * remote.c (remote_state::supports_vCont_probed): New field.
15501 (remote_target::async_wait_fd): New method.
15502 (remote_unpush_and_throw): Add remote_target parameter.
15503 (get_current_remote_target): Adjust.
15504 (remote_target::remote_add_inferior): Push target.
15505 (remote_target::remote_add_thread)
15506 (remote_target::remote_notice_new_inferior)
15507 (get_remote_thread_info): Pass target down.
15508 (remote_target::update_thread_list): Skip threads of inferiors
15509 bound to other targets. (remote_target::close): Don't discard
15510 inferiors. (remote_target::add_current_inferior_and_thread)
15511 (remote_target::process_initial_stop_replies)
15512 (remote_target::start_remote)
15513 (remote_target::remote_serial_quit_handler): Pass down target.
15514 (remote_target::remote_unpush_target): New remote_target
15515 parameter. Unpush the target from all inferiors.
15516 (remote_target::remote_unpush_and_throw): New remote_target
15517 parameter. Pass it down.
15518 (remote_target::open_1): Check whether the current inferior has
15519 execution instead of checking whether any inferior is live. Pass
15520 target down.
15521 (remote_target::remote_detach_1): Pass down target. Use
15522 remote_unpush_target.
15523 (extended_remote_target::attach): Pass down target.
15524 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15525 (remote_target::append_resumption): Pass down target.
15526 (remote_target::append_pending_thread_resumptions)
15527 (remote_target::remote_resume_with_hc, remote_target::resume)
15528 (remote_target::commit_resume): Pass down target.
15529 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15530 (remote_target::interrupt_query)
15531 (remote_target::remove_new_fork_children)
15532 (remote_target::check_pending_events_prevent_wildcard_vcont)
15533 (remote_target::remote_parse_stop_reply)
15534 (remote_target::process_stop_reply): Pass down target.
15535 (first_remote_resumed_thread): New remote_target parameter. Pass
15536 it down.
15537 (remote_target::wait_as): Pass down target.
15538 (unpush_and_perror): New remote_target parameter. Pass it down.
15539 (remote_target::readchar, remote_target::remote_serial_write)
15540 (remote_target::getpkt_or_notif_sane_1)
15541 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15542 down target.
15543 (remote_target::mourn_inferior): Pass down target. Use
15544 remote_unpush_target.
15545 (remote_target::core_of_thread)
15546 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15547 (remote_target::pid_to_exec_file)
15548 (remote_target::thread_handle_to_thread_info): Pass down target.
15549 (remote_target::async_wait_fd): New.
15550 * riscv-fbsd-tdep.c: Include "inferior.h".
15551 (riscv_fbsd_get_thread_local_address): Pass down target.
15552 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15553 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15554 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15555 Adjust.
15556 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15557 * solib-svr4.c (enable_break): Pass down target.
15558 * spu-multiarch.c (parse_spufs_run): Pass down target.
15559 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15560 * target-delegates.c: Regenerate.
15561 * target.c (g_target_stack): Delete.
15562 (current_top_target): Return the current inferior's top target.
15563 (target_has_execution_1): Refer to the passed-in inferior's top
15564 target.
15565 (target_supports_terminal_ours): Check whether the initial
15566 inferior was already created.
15567 (decref_target): New.
15568 (target_stack::push): Incref/decref the target.
15569 (push_target, push_target, unpush_target): Adjust.
15570 (target_stack::unpush): Defref target.
15571 (target_is_pushed): Return bool. Adjust to refer to the current
15572 inferior's target stack.
15573 (dispose_inferior): Delete, and inline parts ...
15574 (target_preopen): ... here. Only dispose of the current inferior.
15575 (target_detach): Hold strong target reference while detaching.
15576 Pass target down.
15577 (target_thread_name): Add assertion.
15578 (target_resume): Pass down target.
15579 (target_ops::beneath, find_target_at): Adjust to refer to the
15580 current inferior's target stack.
15581 (get_dummy_target): New.
15582 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15583 has a thread running.
15584 (initialize_targets): Rename to ...
15585 (_initialize_target): ... this.
15586 * target.h: Include "gdbsupport/refcounted-object.h".
15587 (struct target_ops): Inherit refcounted_object.
15588 (target_ops::shortname, target_ops::longname): Make const.
15589 (target_ops::async_wait_fd): New method.
15590 (decref_target): Declare.
15591 (struct target_ops_ref_policy): New.
15592 (target_ops_ref): New typedef.
15593 (get_dummy_target): Declare function.
15594 (target_is_pushed): Return bool.
15595 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15596 (all_matching_threads_iterator::all_matching_threads_iterator):
15597 Handle filter target.
15598 * thread-iter.h (struct all_matching_threads_iterator, struct
15599 all_matching_threads_range, class all_non_exited_threads_range):
15600 Filter by target too. Remove explicit.
15601 * thread.c (threads_executing): Delete.
15602 (inferior_thread): Pass down current inferior.
15603 (clear_thread_inferior_resources): Pass down thread pointer
15604 instead of ptid_t.
15605 (add_thread_silent, add_thread_with_info, add_thread): Add
15606 process_stratum_target parameter. Use it for thread and inferior
15607 searches.
15608 (is_current_thread): New.
15609 (thread_info::deletable): Use it.
15610 (find_thread_ptid, thread_count, in_thread_list)
15611 (thread_change_ptid, set_resumed, set_running): New
15612 process_stratum_target parameter. Pass it down.
15613 (set_executing): New process_stratum_target parameter. Pass it
15614 down. Adjust reference to 'threads_executing'.
15615 (threads_are_executing): New process_stratum_target parameter.
15616 Adjust reference to 'threads_executing'.
15617 (set_stop_requested, finish_thread_state): New
15618 process_stratum_target parameter. Pass it down.
15619 (switch_to_thread): Also match inferior.
15620 (switch_to_thread): New process_stratum_target parameter. Pass it
15621 down.
15622 (update_threads_executing): Reimplement.
15623 * top.c (quit_force): Pop targets from all inferior.
15624 (gdb_init): Don't call initialize_targets.
15625 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15626 Declare.
15627 (windows_add_thread, windows_delete_thread): Adjust.
15628 (get_windows_debug_event): Rename to ...
15629 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15630 * tracefile-tfile.c (tfile_target_open): Pass down target.
15631 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15632 Forward declare.
15633 (switch_to_thread): Add process_stratum_target parameter.
15634 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15635 parameter. Use it.
15636 (mi_on_resume): Pass target down.
15637 * nat/fork-inferior.c (startup_inferior): Add
15638 process_stratum_target parameter. Pass it down.
15639 * nat/fork-inferior.h (startup_inferior): Add
15640 process_stratum_target parameter.
15641 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15642
15643 2020-01-10 Pedro Alves <palves@redhat.com>
15644
15645 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15646 directly. Instead find the first thread in the thread list and
15647 use switch_to_thread.
15648
15649 2020-01-10 Pedro Alves <palves@redhat.com>
15650
15651 * remote.c (remote_target::remote_add_inferior): Don't bind a
15652 process to the current inferior if the current inferior is already
15653 bound to a process.
15654
15655 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15656 Pedro Alves <palves@redhat.com>
15657
15658 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15659 If no process is specified, return null_ptid instead of
15660 inferior_ptid.
15661 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15662 TARGET_WAITKIND_SIGNALLED with no pid.
15663
15664 2020-01-10 Pedro Alves <palves@redhat.com>
15665
15666 * remote.c (first_remote_resumed_thread): New.
15667 (remote_target::wait_as): Use it as default event_ptid instead of
15668 inferior_ptid.
15669
15670 2020-01-10 Pedro Alves <palves@redhat.com>
15671
15672 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15673
15674 2020-01-10 Pedro Alves <palves@redhat.com>
15675
15676 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15677 not -1.
15678
15679 2020-01-10 Pedro Alves <palves@redhat.com>
15680
15681 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15682 ptid to get_last_target_status.
15683 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15684 ptid to get_last_target_status.
15685 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15686 get_last_target_status.
15687 (info_program_command): Don't pass a target_waitstatus to
15688 get_last_target_status.
15689 * infrun.c (init_wait_for_inferior): Use
15690 nullify_last_target_wait_ptid.
15691 (get_last_target_status): Handle nullptr arguments.
15692 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15693 (print_stop_event): Don't pass a ptid to get_last_target_status.
15694 (normal_stop): Don't pass a ptid to get_last_target_status.
15695 * infrun.h (get_last_target_status, set_last_target_status): Move
15696 comments here and update.
15697 (nullify_last_target_wait_ptid): Declare.
15698 * linux-fork.c (fork_load_infrun_state): Remove local extern
15699 declaration of nullify_last_target_wait_ptid.
15700 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15701 to get_last_target_status.
15702
15703 2020-01-10 Pedro Alves <palves@redhat.com>
15704
15705 * gdbthread.h (scoped_restore_current_thread)
15706 <dont_restore, restore, m_dont_restore>: Declare.
15707 * thread.c (thread_alive): Add assertion. Return bool.
15708 (switch_to_thread_if_alive): New.
15709 (prune_threads): Switch inferior/thread.
15710 (print_thread_info_1): Switch thread before calling target methods.
15711 (scoped_restore_current_thread::restore): New, factored out from
15712 ...
15713 (scoped_restore_current_thread::~scoped_restore_current_thread):
15714 ... this.
15715 (scoped_restore_current_thread::scoped_restore_current_thread):
15716 Add assertion.
15717 (thread_apply_all_command, thread_select): Use
15718 switch_to_thread_if_alive.
15719 * infrun.c (proceed, restart_threads, handle_signal_stop)
15720 (switch_back_to_stepped_thread): Switch current thread before
15721 calling target methods.
15722
15723 2020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * inferior.c (switch_to_inferior_no_thread): New function,
15726 factored out from ...
15727 (inferior_command): ... here.
15728 * inferior.h (switch_to_inferior_no_thread): Declare.
15729 * mi/mi-main.c (run_one_inferior): Use
15730 switch_to_inferior_no_thread.
15731
15732 2020-01-10 Pedro Alves <palves@redhat.com>
15733
15734 * infcmd.c (kill_command): Remove dead code.
15735
15736 2020-01-10 Pedro Alves <palves@redhat.com>
15737
15738 * remote.c (remote_target::mourn_inferior): No longer check
15739 whether the target is running.
15740
15741 2020-01-10 Pedro Alves <palves@redhat.com>
15742
15743 * corelow.c (core_target::has_execution): Change parameter type to
15744 inferior pointer.
15745 * inferior.c (number_of_live_inferiors): Use
15746 inferior::has_execution instead of target_has_execution_1.
15747 * inferior.h (inferior::has_execution): New.
15748 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15749 inferior::has_execution instead of target_has_execution_1.
15750 * process-stratum-target.c
15751 (process_stratum_target::has_execution): Change parameter type to
15752 inferior pointer. Check the inferior's PID instead of
15753 inferior_ptid.
15754 * process-stratum-target.h
15755 (process_stratum_target::has_execution): Change parameter type to
15756 inferior pointer.
15757 * record-full.c (record_full_core_target::has_execution): Change
15758 parameter type to inferior pointer.
15759 * target.c (target_has_execution_1): Change parameter type to
15760 inferior pointer.
15761 (target_has_execution_current): Adjust.
15762 * target.h (target_ops::has_execution): Change parameter type to
15763 inferior pointer.
15764 (target_has_execution_1): Change parameter type to inferior
15765 pointer. Change return type to bool.
15766 * tracefile.h (tracefile_target::has_execution): Change parameter
15767 type to inferior pointer.
15768
15769 2020-01-10 Pedro Alves <palves@redhat.com>
15770
15771 * exceptions.c (print_flush): Remove current_top_target() check.
15772
15773 2020-01-10 Pedro Alves <palves@redhat.com>
15774
15775 * remote.c (show_remote_exec_file): Show the current inferior's
15776 exec-file instead of the command variable's value.
15777
15778 2020-01-10 Pedro Alves <palves@redhat.com>
15779
15780 * record-full.c (record_full_resume_ptid): New global.
15781 (record_full_target::resume): Set it.
15782 (record_full_wait_1): Use record_full_resume_ptid instead of
15783 inferior_ptid.
15784
15785 2020-01-10 Pedro Alves <palves@redhat.com>
15786
15787 * gdbthread.h (scoped_restore_current_thread)
15788 <dont_restore, restore, m_dont_restore>: Declare.
15789 * thread.c (thread_alive): Add assertion. Return bool.
15790 (switch_to_thread_if_alive): New.
15791 (prune_threads): Switch inferior/thread.
15792 (print_thread_info_1): Switch thread before calling target methods.
15793 (scoped_restore_current_thread::restore): New, factored out from
15794 ...
15795 (scoped_restore_current_thread::~scoped_restore_current_thread):
15796 ... this.
15797 (scoped_restore_current_thread::scoped_restore_current_thread):
15798 Add assertion.
15799 (thread_apply_all_command, thread_select): Use
15800 switch_to_thread_if_alive.
15801
15802 2020-01-10 George Barrett <bob@bob131.so>
15803
15804 * stap-probe.c (stap_modify_semaphore): Don't check for null
15805 semaphores.
15806 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15807 for null semaphores.
15808
15809 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15810
15811 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15812 all source windows, and maintain horizontal scroll status while
15813 doing so.
15814
15815 2020-01-09 Tom Tromey <tom@tromey.com>
15816
15817 PR tui/18932:
15818 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15819 update_source_window, not print_source_lines.
15820
15821 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15822
15823 * tui/tui.c (tui_enable): Register tui hooks after calling
15824 tui_display_main.
15825
15826 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15827
15828 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15829
15830 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * thread.c (print_thread_info_1): Fix indentation.
15833
15834 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15835
15836 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15837 unique_xmalloc_ptr outside the if to always free the demangled name.
15838
15839 2020-01-08 Tom Tromey <tromey@adacore.com>
15840
15841 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15842 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15843 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15844 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15845 Remove.
15846 (section_offsets): New typedef.
15847 * symtab.c (fixup_section, get_msymbol_address): Update.
15848 * symmisc.c (dump_msymbols): Update.
15849 * symfile.h (relative_addr_info_to_section_offsets)
15850 (symfile_map_offsets_to_segments): Update.
15851 * symfile.c (build_section_addr_info_from_objfile)
15852 (init_objfile_sect_indices): Update.
15853 (struct place_section_arg): Change type of "offsets".
15854 (place_section): Update.
15855 (relative_addr_info_to_section_offsets): Change type of
15856 "section_offsets". Remove "num_sections" parameter.
15857 (default_symfile_offsets, syms_from_objfile_1)
15858 (set_objfile_default_section_offset): Update.
15859 (reread_symbols): No need to preserve section offsets by hand.
15860 (symfile_map_offsets_to_segments): Change type of "offsets".
15861 * stap-probe.c (relocate_address): Update.
15862 * stabsread.h (process_one_symbol): Update.
15863 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15864 (solib_target_relocate_section_addresses): Update.
15865 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15866 Update.
15867 * solib-frv.c (frv_relocate_main_executable): Update.
15868 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15869 * solib-aix.c (solib_aix_get_section_offsets): Change return
15870 type.
15871 (solib_aix_solib_create_inferior_hook): Update.
15872 * remote.c (remote_target::get_offsets): Update.
15873 * psymtab.c (find_pc_sect_psymtab): Update.
15874 * psympriv.h (struct partial_symbol) <address, text_low,
15875 text_high>: Update.
15876 * objfiles.h (obj_section_offset): Update.
15877 (struct objfile) <section_offsets>: Change type.
15878 <num_sections>: Remove.
15879 (objfile_relocate): Update.
15880 * objfiles.c (entry_point_address_query): Update
15881 (relocate_one_symbol): Change type of "section_offsets".
15882 (objfile_relocate1, objfile_relocate1): Change type of
15883 "new_offsets".
15884 (objfile_rebase1): Update.
15885 * mipsread.c (mipscoff_symfile_read): Update.
15886 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15887 parameter.
15888 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15889 (parse_external, psymtab_to_symtab_1): Update.
15890 * machoread.c (macho_symfile_offsets): Update.
15891 * ia64-tdep.c (ia64_find_unwind_table): Update.
15892 * hppa-tdep.c (read_unwind_info): Update.
15893 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15894 * dwarf2read.c (create_addrmap_from_index)
15895 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15896 (process_psymtab_comp_unit_reader, add_partial_symbol)
15897 (add_partial_subprogram, process_full_comp_unit)
15898 (read_file_scope, read_func_scope, read_lexical_block_scope)
15899 (read_call_site_scope, dwarf2_rnglists_process)
15900 (dwarf2_ranges_process, dwarf2_ranges_read)
15901 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15902 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15903 Update.
15904 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15905 Update.
15906 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15907 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15908 (process_one_symbol): Change type of "section_offsets".
15909 * ctfread.c (get_objfile_text_range): Update.
15910 * coffread.c (coff_symtab_read, enter_linenos)
15911 (process_coff_symbol): Update.
15912 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15913 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15914
15915 2020-01-08 Tom Tromey <tromey@adacore.com>
15916
15917 * dwarf2read.c (parse_macro_definition): Use std::string.
15918 (parse_macro_definition): Likewise.
15919
15920 2020-01-08 Tom Tromey <tromey@adacore.com>
15921
15922 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15923 (ATTR_ALLOC_CHUNK): Remove.
15924
15925 2020-01-08 Tom Tromey <tromey@adacore.com>
15926
15927 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15928
15929 2020-01-08 Tom Tromey <tromey@adacore.com>
15930
15931 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15932 (dwarf2_compute_name, open_dwo_file): Likewise.
15933 (process_enumeration_scope): Use std::vector.
15934 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15935 (partial_die_info::fixup, dwarf2_start_subfile)
15936 (guess_full_die_structure_name, dwarf2_name): Likewise.
15937 (determine_prefix): Update.
15938 (guess_full_die_structure_name): Make return type const.
15939 (partial_die_full_name): Return unique_xmalloc_ptr.
15940 (DW_FIELD_ALLOC_CHUNK): Remove.
15941
15942 2020-01-07 Tom Tromey <tromey@adacore.com>
15943
15944 PR build/24937:
15945 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15946
15947 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15948
15949 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15950
15951 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15952
15953 * stack.c (print_frame_info): Move disassemble_next_line code
15954 inside source_print block.
15955
15956 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15957
15958 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15959 gdb/signals.h, as we are now using native signal symbols.
15960
15961 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15962
15963 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15964 overflow by an early check of content vs threshold.
15965 * tui/tui-source.c (tui_source_window::line_is_displayed):
15966 Likewise.
15967
15968 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15969
15970 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15971
15972 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15973
15974 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15975 export table if no section contains it's RVA.
15976
15977 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15978
15979 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15980
15981 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15982
15983 * source.c (print_source_lines_base): Set last_line_listed.
15984
15985 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15986
15987 * tui/tui-disasm.c: Remove trailing spaces.
15988
15989 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15990 Pedro Alves <palves@redhat.com>
15991
15992 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15993 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15994 (windows_gdb_signal_to_target): New function, uses the above
15995 enumeration to convert GDB internal signal codes to equivalent
15996 Windows codes.
15997 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15998 * windows-nat.c: Include "gdb_wait.h".
15999 (get_windows_debug_event): Extract the fatal exception from the
16000 exit status and convert to the equivalent Posix signal number.
16001 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16002 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16003 * gdbsupport/gdb_wait.c: New file, implements
16004 windows_status_to_termsig.
16005 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16006 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16007
16008 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16009
16010 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16011 show_layout.
16012
16013 2020-01-05 Luis Machado <luis.machado@linaro.org>
16014
16015 * aarch64-linux-nat.c
16016 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16017 and bfd_mach_aarch64.
16018
16019 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16020
16021 * ui-file.c (stdio_file::can_emit_style_escape)
16022 (tee_file::can_emit_style_escape): Ensure style is used also on
16023 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16024 to gdb_stdout.
16025 * main.c (set_gdb_data_directory): Use file style to output the
16026 warning that the given pathname is not a directory.
16027 * top.c (show_history_filename, gdb_safe_append_history)
16028 (show_gdb_datadir): Use file style.
16029
16030 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16031
16032 * solib-target.c (struct lm_info_target):
16033 Change offsets to be a unique_xmalloc_ptr.
16034 (solib_target_relocate_section_addresses): Update.
16035
16036 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16037
16038 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16039
16040 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16041
16042 * MAINTAINERS (Write After Approval): Add myself.
16043
16044 2020-01-02 Luis Machado <luis.machado@linaro.org>
16045
16046 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16047 Cell BE architecture.
16048 * target.h (struct target_ops) <thread_architecture>: Likewise.
16049
16050 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16051
16052 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16053
16054 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16055
16056 * MAINTAINERS (Write After Approval): Add myself.
16057
16058 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16059
16060 * gdbarch.sh: Update copyright year range of generated files.
16061
16062 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16063
16064 Update copyright year range in all GDB files.
16065
16066 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16067
16068 * copyright.py: Convert to Python 3.
16069
16070 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16071
16072 * copyright.py: Adapt after move of gnulib directory from gdb
16073 directory to toplevel directory.
16074
16075 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16076
16077 * copyright.py (main): Exit if run from the wrong directory.
16078
16079 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16080
16081 * top.c (print_gdb_version): Change copyright year to 2020.
16082
16083 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16084
16085 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16086
16087 For older changes see ChangeLog-2019.
16088 \f
16089 Local Variables:
16090 mode: change-log
16091 left-margin: 8
16092 fill-column: 74
16093 version-control: never
16094 coding: utf-8
16095 End:
This page took 0.364231 seconds and 5 git commands to generate.